]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
f17889b3
RD
12009-04-09 Robert Dewar <dewar@adacore.com>
2
3 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
4
5 * atree.h: Add Elist26
6
7 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8 backends.
9
b16d9747
JM
102009-04-09 Javier Miranda <miranda@adacore.com>
11
12 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
13 retrieve from the Dispatch_Table_Wrappers list the external name.
14 Addition of documentation.
15 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
16 used to export secondary dispatch tables (in the previous version of
17 the frontend only primary dispatch tables were exported). Addition of
18 documentation.
19 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
20 dispatch table of a given tagged type.
21 (Make_Tags): Modified to import secondary dispatch tables.
22
23 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
24 (Constant_Redeclaration): Code cleanup.
25
26 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
27 Dispatch_Table_Wrappers. Update documentation.
28
29 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
30 Renamed to Dispatch_Table_Wrappers.
31
32 * sem_util.adb (Collect_Interface_Components): Improve handling of
33 private types.
34
35 * atree.ads (Elist26, Set_Elist26): New subprograms
36
37 * atree.adb (Elist26, Set_Elist26): New subprograms
38
59262ebb
AC
392009-04-09 Javier Miranda <miranda@adacore.com>
40
41 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
42 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
43 tagged types.
44
452009-04-09 Robert Dewar <dewar@adacore.com>
46
47 * s-direio.adb: Minor reformatting
48
49 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
50
fa969310
AC
512009-04-09 Robert Dewar <dewar@adacore.com>
52
53 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
54
552009-04-09 Pascal Obry <obry@adacore.com>
56
57 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
58 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
59 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
60 a-filico.ads: Add some missing overriding keywords.
61
3c25856a
AC
622009-04-09 Pascal Obry <obry@adacore.com>
63
64 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
65 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
66 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
67 reformatting.
68
692009-04-09 Ed Schonberg <schonberg@adacore.com>
70
71 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
72 missing overriding indicator if the new declaration is not seen as
73 primitive.
74
76c597a1
AC
752009-04-09 Thomas Quinot <quinot@adacore.com>
76
77 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
78 overflows in computation of bounds.
79
802009-04-09 Pascal Obry <obry@adacore.com>
81
82 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
83 typos in comment.
84
95b89f1b
AC
852009-04-09 Robert Dewar <dewar@adacore.com>
86
87 * sem_attr.adb (Check_Stream_Attribute): Check violation of
88 restriction No_Streams
89
90 * gnat_rm.texi: Clarify No_Streams restriction
91
92 * g-socket.adb: Minor reformatting.
93
942009-04-09 Thomas Quinot <quinot@adacore.com>
95
96 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
97
982009-04-09 Geert Bosch <bosch@adacore.com>
99
100 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
101 (Set_Result): Likewise.
102 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
103 conversion, as required by RM 4.6(31).
104
3d5952be
AC
1052009-04-08 Robert Dewar <dewar@adacore.com>
106
107 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
108 suppressed.
109
110 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
111 resolution steps.
112
1132009-04-08 Robert Dewar <dewar@adacore.com>
114
115 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
116 No_Local_Allocators restriction preventing local instantiation.
117
1182009-04-08 Thomas Quinot <quinot@adacore.com>
119
120 * sem_eval.adb: Minor comment fix
121
1222009-04-08 Thomas Quinot <quinot@adacore.com>
123
124 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
125 New limited controlled type used to automate the initialization and
126 finalization of the sockets implementation.
127 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
128
1292009-04-08 Vincent Celier <celier@adacore.com>
130
131 * prj-attr.adb: New read-only project-level attribute Project_Dir
132
133 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
134 read-only attribute of the same name.
135 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
136 (Recursive_Process): Ditto
137
138 * snames.adb: Add new standard name Project_Dir
139
140 * snames.ads: Add new standard name Project_Dir
141
b568955d
AC
1422009-04-08 Thomas Quinot <quinot@adacore.com>
143
144 * checks.adb: Minor reformatting
145
1462009-04-08 Vincent Celier <celier@adacore.com>
147
148 * vms_data.ads: Add documentation for new style keyword
149 OVERRIDING_INDICATORS
150
1512009-04-08 Robert Dewar <dewar@adacore.com>
152
153 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
154 spec is in the current unit.
155
ed57136d
AC
1562009-04-08 Ed Schonberg <schonberg@adacore.com>
157
158 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
159 presence of entity.
160
161 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
162
1632009-04-08 Vincent Celier <celier@adacore.com>
164
165 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
166
1672009-04-08 Thomas Quinot <quinot@adacore.com>
168
169 * checks.ads: Minor reformatting
170
1712009-04-08 Robert Dewar <dewar@adacore.com>
172
173 * gnat_rm.texi: Update documentation of pragma Obsolescent
174
175 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
176 be omitted, and allow Entity parameter to be omitted.
177
ef7c5692
AC
1782009-04-08 Thomas Quinot <quinot@adacore.com>
179
180 * exp_util.adb: Minor comment fix
181
1822009-04-08 Robert Dewar <dewar@adacore.com>
183
184 * g-socket.ads: Fix bad syntax in pragma Obsolescent
185
186 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
187 argument with no identifier following one that has an identifier. Was
188 missed in some cases.
189
190 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
191 identifier.
192 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
193
194 * snames.adb: Add Name_Policy
195
196 * snames.ads: Add Name_Policy
197
0c7f5241
RD
1982009-04-08 Robert Dewar <dewar@adacore.com>
199
200 * gnat_rm.texi: Minor reformatting
201
202 * par-ch2.adb: Minor reformatting
203
ae8c7d87
RD
2042009-04-08 Robert Dewar <dewar@adacore.com>
205
206 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
207
ff69f95a
RD
2082009-04-08 Robert Dewar <dewar@adacore.com>
209
210 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
211 properly in the presence of Remote_Types or Remote_Call_Interface.
212
213 * sem_util.adb: Add comment.
214
2db15b1d
AC
2152009-04-08 Robert Dewar <dewar@adacore.com>
216
217 * ug_words: Add /ASSUME_VALID for -gnatB
218
219 * vms_data.ads: Add /ASSUME_VALID for -gnatB
220
221 * sem_cat.adb: Add clarifying commment
222
223 * a-direio.ads (Bytes): Make sure value is non-zero
224
2252009-04-08 Ed Schonberg <schonberg@adacore.com>
226
227 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
228 that does not come from source, check for a rewritten function call in
229 prefixed notation before other forms of rewriting.
230
2312009-04-08 Robert Dewar <dewar@adacore.com>
232
233 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
234 these are now obsolescent units used only for bootrapping with an
235 older compiler.
236
94fd3dc6
AC
2372009-04-08 Robert Dewar <dewar@adacore.com>
238
239 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
240
241 * sem_ch3.adb: Minor comment updates
242
2432009-04-08 Ed Schonberg <schonberg@adacore.com>
244
245 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
246 that come from source.
247
40a14772
TG
2482009-04-08 Tristan Gingold <gingold@adacore.com>
249
250 * gcc-interface/utils.c, gcc-interface/decl.c, gcc-interface/gigi.h:
251 Add support for pragma Thread_Local_Storage
252
46ff89f3
AC
2532009-04-08 Ed Schonberg <schonberg@adacore.com>
254
255 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
256 by the back-end if it contains a call to a subprogram without a
257 previous spec that is declared in the same unit.
258
259 * errout.ads: Update comments on uses of dirs
260
2612009-04-08 Robert Dewar <dewar@adacore.com>
262
263 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
264
812f574f
AC
2652009-04-08 Tristan Gingold <gingold@adacore.com>
266
267 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
268 variables.
269 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
270
2712009-04-08 Vincent Celier <celier@adacore.com>
272
273 * prj-nmsc.adb:
274 (Add_Source): Add the mapping of the unit name to source file name in
275 the Unit_Sources_HT hash table, if the unit name is not null.
276
277 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
278
279 * prj.ads (Unit_Sources_Htable): New hash table instantiation
280 (Project_Tree_Data): New component Unit_Sources_HT
281
4c8a5bb8
AC
2822009-04-08 Thomas Quinot <quinot@adacore.com>
283
284 * sem_ch8.adb: Minor reformatting.
285 Minor code reorganization.
286
2872009-04-08 Robert Dewar <dewar@adacore.com>
288
289 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
290 snames.ads, freeze.adb, par-prag.adb: Add implementation of
291 pragma Thread_Local_Storage, setting new flag
292 Has_Pragma_Thread_Local_Storage in corresponding entities.
293
ecc4ddde
AC
2942009-04-08 Emmanuel Briot <briot@adacore.com>
295
296 * prj.ads: Update comment on switches file
297
298 * prj-nmsc.adb: Code clean up. Use renaming clauses.
299
3002009-04-08 Robert Dewar <dewar@adacore.com>
301
302 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
303
3042009-04-08 Thomas Quinot <quinot@adacore.com>
305
306 * ali-util.adb: Minor comment fix
307
3082009-04-08 Ed Schonberg <schonberg@adacore.com>
309
310 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
311 appears in a context clause, and the enclosing package is mentioned in
312 a limited_with_clause.
313 (Use_One_Type): Reject clause if type is still incomplete.
314
a29262fd
AC
3152009-04-08 Emmanuel Briot <briot@adacore.com>
316
317 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
318 avoid copies of Source_Data variables when possible, since these
319 involve calls to memcpy() which are done too many times.
320
3212009-04-08 Robert Dewar <dewar@adacore.com>
322
323 * exp_ch4.adb (Expand_Concatenate): Clean up code
324
a2dc5812
AC
3252009-04-07 Thomas Quinot <quinot@adacore.com>
326
327 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
328 type for the case of concatenating a constrained array indexed by an
329 enumeration type.
330
3312009-04-07 Ed Schonberg <schonberg@adacore.com>
332
333 * sem_ch6.adb (Check_Conformance): when checking conformance of an
334 operation that overrides an abstract operation inherited from an
335 interface, return False if only one of the controlling formals is an
336 access parameter.
337
3382009-04-07 Ed Schonberg <schonberg@adacore.com>
339
340 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
341 mandated by AI05-105.
342
3432009-04-07 Vincent Celier <celier@adacore.com>
344
345 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
346
3472009-04-07 Thomas Quinot <quinot@adacore.com>
348
349 * usage.adb: Minor fix in usage message.
350
351 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
352 match declaration; the correct subtype is Node_Id, not Entity_Id,
353 because the expected node kind is an identifier, not a defining
354 identifier.
355
356 * switch-c.adb: Minor reformatting.
357
358 * uintp.adb: Minor reformatting.
359
3602009-04-07 Robert Dewar <dewar@adacore.com>
361
362 * exp_ch13.adb: Minor reformatting
363
0ac73189
AC
3642009-04-07 Robert Dewar <dewar@adacore.com>
365
366 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
367 against missing parent.
368
3692009-04-07 Thomas Quinot <quinot@adacore.com>
370
371 * xoscons.adb: Minor reformatting
372
3732009-04-07 Robert Dewar <dewar@adacore.com>
374
375 * rtsfind.ads: Remove obsolete string concatenation entries
376
3772009-04-07 Robert Dewar <dewar@adacore.com>
378
379 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
380
3812009-04-07 Ed Schonberg <schonberg@adacore.com>
382
383 * sem_ch10.adb (Check_Body_Required): Handle properly imported
384 subprograms.
385
3862009-04-07 Gary Dismukes <dismukes@adacore.com>
387
388 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
389 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
390 is of a scalar or string type then suppress the setting of the
391 expression to Empty.
392
393 * freeze.adb (Warn_Overlay): Also emit the warnings about default
394 initialization for the cases of scalar and string objects when
395 Init_Or_Norm_Scalars is True.
396
1732c156
AC
3972009-04-07 Bob Duff <duff@adacore.com>
398
399 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
400
4012009-04-07 Bob Duff <duff@adacore.com>
402
403 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
404 Form parameter of Text_Translation=No allows binary mode for Text_IO
405 files.
406
407 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
408
4092009-04-07 Javier Miranda <miranda@adacore.com>
410
411 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
412 processing the bounds for bit packed arrays or VM target machines.
413
f16d05d9
AC
4142009-04-07 Thomas Quinot <quinot@adacore.com>
415
416 * g-sothco.ads (Int_Access): Remove extraneous access type (use
417 anonymous access instead).
418 (Get_Socket_From_Set): Fix incorrectly reverted formals
419 Last and Socket to match the underlying C routine.
420
ad1536a1 421 * g-socket.adb, g-socket.ads
f16d05d9
AC
422 (Get): Use named parameter associations instead of positional ones in
423 call go Get_Socket_From_Set, since this routine has two formals of the
424 same type.
ad1536a1 425 (Image): New procedure.
f16d05d9
AC
426
427 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
428 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
429 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
430 for type of Arg formal.
431
432 * sem_warn.adb: Minor reformatting
433
4342009-04-07 Ed Schonberg <schonberg@adacore.com>
435
436 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
437 over record components.
438
4392009-04-07 Nicolas Roche <roche@adacore.com>
440
441 * gsocket.h:
442 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
443 has disappeared between VxWorks 6.4 and VxWorks 6.5
444 In RTP mode use time.h instead of times.h
445
4462009-04-07 Robert Dewar <dewar@adacore.com>
447
448 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
449
4502009-04-07 Kevin Pouget <pouget@adacore.com>
451
452 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
453 expanded code for constrained types.
454
4552009-04-07 Ed Schonberg <schonberg@adacore.com>
456
457 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
458 AI05-105: in an object renaming declaration, anonymousness is a name
459 resolution rule.
460
461 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
462
4632009-04-07 Arnaud Charlet <charlet@adacore.com>
464
465 * g-comlin.adb (Expansion): Fix old regression: also return directory
466 names when matching.
467
2fc05e3d
AC
4682009-04-07 Robert Dewar <dewar@adacore.com>
469
470 * exp_ch4.adb:
471 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
472 (Expand_Concatenate): New name for Expand_Concatenate_String which has
473 been rewritten to handle all types.
474 (Expand_Concatenate_Other): Remove
475
4762009-04-07 Ed Schonberg <schonberg@adacore.com>
477
478 * lib-xref.adb (Generate_Reference): A default subprogram in an
479 instance appears within the tree for the instance, but generates an
480 implicit reference in the ALI.
481
fdac1f80
AC
4822009-04-07 Javier Miranda <miranda@adacore.com>
483
484 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
485 derived type that has discriminants, propagate the list of interfaces
486 to the corresponding new base type. In addition, propagate also
487 attribute Limited_Present (found working in this patch).
488
4892009-04-07 Robert Dewar <dewar@adacore.com>
490
491 * exp_ch4.adb: Rewrite concatenation expansion.
492
8dbd1460
AC
4932009-04-07 Ed Schonberg <schonberg@adacore.com>
494
495 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
496 relevant to packages.
497
4982009-04-07 Robert Dewar <dewar@adacore.com>
499
500 * sem_attr.adb: Minor reformatting
501
502 * sem_ch6.adb: Minor reformatting
503
2ddc2000
AC
5042009-04-07 Tristan Gingold <gingold@adacore.com>
505
506 * socket.c: Add more protections against S_resolvLib_ macros.
507
5082009-04-07 Thomas Quinot <quinot@adacore.com>
509
510 * sem_attr.adb: Minor reformatting
511
5122009-04-07 Ed Schonberg <schonberg@adacore.com>
513
514 * sem_ch6.adb (New_Overloaded_Entity): New predicate
515 Is_Overriding_Alias to handle properly types that inherit two homonym
516 operations that have distinct dispatch table entries.
517
06a16f58
AC
5182009-04-07 Emmanuel Briot <briot@adacore.com>
519
520 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
521 looking for the end of a parenthesis group
522
5232009-04-07 Tristan Gingold <gingold@adacore.com>
524
525 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
526
527 * socket.c Don't use resolvLib_ macros if not defined.
528
df46b832
AC
5292009-04-07 Robert Dewar <dewar@adacore.com>
530
531 * g-socket.adb: Minor reformatting.
532
533 * g-socthi-mingw.adb: Minor reformatting
534
535 * g-sothco.ads: Minor reformatting
536
537 * exp_ch4.adb:
538 (Expand_Concatenate_String): Complete rewrite to generate efficient code
539 inline instead of relying on external library routines.
540
541 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
542 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
543 obsolescent
544
5452009-04-07 Ed Schonberg <schonberg@adacore.com>
546
547 * sem_attr.adb:
548 (Eval_Attribute): for attributes of array objects that are not strings,
549 attributes are not static if nominal subtype of object is unconstrained.
550
5512009-04-07 Ed Schonberg <schonberg@adacore.com>
552
553 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
554 operations for a type T in an instance do not override each other,
555 when T is derived from a formal private type, the corresponding
556 operations inherited by a type derived from T outside
557 of the instance do not override each other either.
558
3dd9959c
AC
5592009-04-07 Robert Dewar <dewar@adacore.com>
560
561 (Osint.Fail): Change calling sequence to have one string arg
562 (Make.Make_Failed): Same change
563 All callers are adjusted to use concatenation
564
5652009-04-07 Robert Dewar <dewar@adacore.com>
566
567 * exp_ch4.adb: Fix documentation typo
568
5692009-04-07 Robert Dewar <dewar@adacore.com>
570
571 * tbuild.ads: Minor reformatting
572
5732009-04-07 Javier Miranda <miranda@adacore.com>
574
575 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
576 when compiling under ZFP runtime.
577
5782009-04-07 Robert Dewar <dewar@adacore.com>
579
580 * g-comlin.adb: Minor reformatting
581
5822009-04-07 Thomas Quinot <quinot@adacore.com>
583
584 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
585 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
586 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
587 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
588
dcd8728b
RD
5892009-04-07 Robert Dewar <dewar@adacore.com>
590
591 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
592
593 * opt.ads (Sprint_Line_Limit): New parameter
594
595 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
596
597 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
598
599 * usage.adb: Output information for -gnatGnn -gnatDnn
600
6012009-04-07 Robert Dewar <dewar@adacore.com>
602
603 * make.adb: Minor reformatting
604
6052009-04-07 Robert Dewar <dewar@adacore.com>
606
607 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
608
6092009-04-07 Robert Dewar <dewar@adacore.com>
610
611 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
612
c27f2f15
RD
6132009-04-07 Robert Dewar <dewar@adacore.com>
614
615 * checks.adb:
616 Remove Assume_Valid parameter from In_Subrange_Of calls
617
618 * sem_eval.adb:
619 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
620 (Is_In_Range): Remove incorrect use of Assume_Valid
621 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
622
623 * sem_eval.ads:
624 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
625 (Is_In_Range): Documentation cleanup
626 (Is_Out_Of_Range): Documentation cleanup
627
628 * gnat_rm.texi:
629 Add documentation for Assume_No_Invalid_Values pragma
630
631 * sem_ch12.adb: Minor reformatting
632
633 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
634
635 * sem_prag.adb: Improve error message.
636
637 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
638 LF/CR no longer recognized as line terminator
639
640 * switch.ads: Minor documentation improvement
641
642 * vms_data.ads: Minor reformatting
643
c800f862
RD
6442009-04-07 Robert Dewar <dewar@adacore.com>
645
646 * checks.adb (Determine_Range): Add Assume_Valid parameter
647
648 * checks.ads (Determine_Range): Add Assume_Valid parameter
649
650 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
651 Is_Null_Loop to suppress warnings in a loop body.
652
653 * exp_ch4.adb:
654 (Rewrite_Comparison): Major rewrite to accomodate invalid values
655
656 * exp_ch5.adb:
657 (Expand_N_Loop_Statement): Delete loop known not to execute
658
659 * opt.ads:
660 (Assume_No_Invalid_Values): Now set to False, and as documented, this
661 fully enables the proper handling of invalid values.
662
663 * sem_attr.adb:
664 New calling sequence for Is_In_Range
665
666 * sem_ch5.adb:
667 (Analyze_Iteration_Scheme): Accomodate possible invalid values
668 in determining if a loop range is null.
669
670 * sem_eval.adb:
671 (Is_In_Range): Add Assume_Valid parameter
672 (Is_Out_Of_Range): Add Assume_Valid_Parameter
673 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
674 also to do more accurate and complete range analysis, catching more
675 cases.
676
677 * sem_eval.ads:
678 (Is_In_Range): Add Assume_Valid parameter
679 (Is_Out_Of_Range): Add Assume_Valid_Parameter
680
681 * sem_util.adb:
682 New calling sequence for Is_In_Range
683
684 * sinfo.adb:
685 (Suppress_Loop_Warnings): New flag
686
687 * sinfo.ads:
688 (Is_Null_Loop): Update documentation
689 (Suppress_Loop_Warnings): New flag
690
691 * gnat_ugn.texi: Document -gnatB switch
692
9d00840d
AC
6932009-04-07 Arnaud Charlet <charlet@adacore.com>
694
695 * gnatvsn.ads: Bump version number.
696
5f143024
AC
6972009-04-07 Thomas Quinot <quinot@adacore.com>
698
699 * exp_ch3.adb: Minor rewording (comments)
700
7012009-04-07 Robert Dewar <dewar@adacore.com>
702
703 * exp_disp.adb: Minor reformatting
704
d5859bf4
EB
7052009-04-07 Eric Botcazou <ebotcazou@adacore.com>
706
707 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
708 underlying type.
709 * gcc-interface/trans.c (lvalue_required_p): Likewise.
710
c86f07f6
EB
7112009-04-07 Eric Botcazou <ebotcazou@adacore.com>
712
713 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
714 Do not convert the result. Remove obsolete comment.
715
2d5be6c1
EB
7162009-04-07 Eric Botcazou <ebotcazou@adacore.com>
717
718 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
719 DECL_CONTEXT.
720 (Subprogram_Body_to_gnu): Fix pasto.
721
10069d53
EB
7222009-04-07 Eric Botcazou <ebotcazou@adacore.com>
723
724 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
725 (void_type_decl_node): Remove.
726 (init_gigi_decls): Likewise.
727 (gnat_install_builtins): Declare.
728 (record_builtin_type): Likewise.
729 (create_type_stub_decl): Likewise.
730 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
731 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
732 artificial.
733 <E_Array_Subtype>: Use the index types, not only their name, in the
734 record giving the names of the bounds, if any.
735 For a packed array type, make it artificial only if the base type
736 was artificial as well. Remove redundant statement.
737 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
738 dummy types.
739 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
740 (rest_of_type_decl_compilation_no_defer): Likewise.
741 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
742 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
743 and use create_type_stub_decl to build it.
744 (gnat_pushdecl): Rewrite condition.
745 (gnat_install_builtins): Remove bogus declaration.
746 (record_builtin_type): New function.
747 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
748 of types.
749 (create_type_stub_decl): New function.
750 (create_type_decl): Assert that the type is not dummy. If the type
751 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
752 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
753 (build_vms_descriptor): Likewise.
754 (init_gigi_decls): Delete and move bulk of code to...
755 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
756 (emit_range_check): Add gnat_node parameter.
757 (emit_index_check): Likewise.
758 (emit_check): Likewise.
759 (build_unary_op_trapv): Likewise.
760 (build_binary_op_trapv): Likewise.
761 (convert_with_check): Likewise.
762 (Attribute_to_gnu): Adjust calls for above changes.
763 (call_to_gnu): Likewise.
764 (gnat_to_gnu): Likewise.
765 (assoc_to_constructor): Likewise.
766 (pos_to_constructor): Likewise.
767 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
768 (process_type): Do not create TYPE_DECL for dummy types.
769
229077b0
EB
7702009-04-07 Eric Botcazou <ebotcazou@adacore.com>
771
1e17ef87
EB
772 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
773 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
774 * gcc-interface/utils.c: Fix comments.
775
7762009-04-07 Eric Botcazou <ebotcazou@adacore.com>
777
778 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
779 move around.
229077b0
EB
780 (gnat_to_gnu_type): Move around.
781 (get_unpadded_type): Likewise.
1e17ef87
EB
782 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
783 Tidy comments.
229077b0 784
aa1aa786
EB
7852009-04-07 Eric Botcazou <ebotcazou@adacore.com>
786
787 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
788 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
789 (call_to_gnu): Invoke it instead of manually checking.
790
63787194
EB
7912009-04-04 Eric Botcazou <ebotcazou@adacore.com>
792
793 * gcc-interface/utils.c (finish_record_type): Force structural equality
794 checks if the record type is discriminated.
795
d236ace7
EB
7962009-03-31 Eric Botcazou <ebotcazou@adacore.com>
797
798 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
799 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
800 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
801 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
802 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
803 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
804 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
805
bd9f68e0
PB
8062009-03-30 Paolo Bonzini <bonzini@gnu.org>
807
d7be99f1
EB
808 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
809 of TREE_CONSTANT_OVERFLOW.
bd9f68e0 810
8ce94e44
JM
8112009-03-30 Joseph Myers <joseph@codesourcery.com>
812
813 PR rtl-optimization/323
814 * gcc-interface/misc.c (gnat_post_options): Set
815 flag_excess_precision_cmdline. Give an error for
816 -fexcess-precision=standard for processors where the option is
817 significant.
818
d9223014
L
8192009-03-27 H.J. Lu <hongjiu.lu@intel.com>
820
821 PR c/39323
822 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
823 on bit_align.
824
76761bbd
OH
8252009-03-11 Olivier Hainque <hainque@adacore.com>
826
827 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
828 checks processing, remove unintended TREE_TYPE walk on index type.
829
39ae51e0
EB
8302009-03-01 Eric Botcazou <ebotcazou@adacore.com>
831
832 PR ada/39264
833 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
834 call make_packable_type on fat pointer types.
835 <E_Array_Subtype>: Likewise.
836 <E_Record_Subtype>: Call make_packable_type on all record types
837 except for fat pointer types.
838 (make_packable_type): Likewise.
839 (gnat_to_gnu_field): Likewise.
840
7d01864f
EB
8412009-02-28 Eric Botcazou <ebotcazou@adacore.com>
842
843 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
67901d32 844 EH_MECHANISM change made on 2007-12-06.
7d01864f 845
a760c977
AS
8462009-02-26 Andreas Schwab <schwab@suse.de>
847
4c354194 848 PR ada/39172
a760c977 849 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
a760c977
AS
850 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
851 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
852 (AWK): Substitute.
853 (target_cpu_default): Substitute.
854
054efbba
LG
8552009-02-25 Laurent GUERBY <laurent@guerby.net>
856
975a4fd6 857 PR ada/39221
a760c977
AS
858 * a-teioed.adb (Expand): Fix Result overflow.
859
2692d7f5
LG
8602009-02-25 Laurent GUERBY <laurent@guerby.net>
861
a760c977
AS
862 * gcc-interface/Makefile.in: Fix multilib handling for
863 sparc64-linux.
864
ea675ec3
RO
8652009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
866
867 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
868
e98c0739
L
8692009-02-18 H.J. Lu <hongjiu.lu@intel.com>
870
871 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
872
70f5fc7c
EB
8732009-02-16 Eric Botcazou <ebotcazou@adacore.com>
874
875 * gcc-interface/deftarg.c: Remove.
876
794511d2 8772009-02-10 Olivier Hainque <hainque@adacore.com>
e98c0739 878 Eric Botcazou <ebotcazou@adacore.com>
794511d2
EB
879
880 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
881 (copy_alias_set): Rename into...
882 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
883 underlying array of unconstrained arrays for the new type as well.
884 If the old and new alias sets don't conflict, make one a subset of
885 the other as per the OP parameter.
886 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
887 <E_Record_Type>: Do not copy the alias set for derived types.
888 For all types, make the alias set of derived types a superset of
889 that of their parent type.
890 (make_aligning_type): Adjust calls to copy_alias_set.
891 (make_packable_type): Likewise.
892 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
893 Check for alias set conflict instead of strict equality to issue the
894 warning.
895
c3734896
EB
8962009-02-09 Eric Botcazou <ebotcazou@adacore.com>
897
898 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
899 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
900 (copy_alias_set): Assert that arrays have the same aliasing settings.
901 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
902
9a58d4d2
EB
9032009-02-08 Eric Botcazou <ebotcazou@adacore.com>
904
905 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
906 Set TYPE_NONALIASED_COMPONENT on the array type.
907
d0ec4c99
LG
9082009-01-31 Laurent GUERBY <laurent@guerby.net>
909
910 * gcc-interface/Makefile.in: Fix mipsel linux handling.
a760c977 911
4dcb8fd1
JJ
9122009-01-16 Jakub Jelinek <jakub@redhat.com>
913
914 * gcc-interface/Makefile.in: Fix multilib handling for
915 powerpc64-linux.
916
3b9c1abd
EB
9172009-01-12 Eric Botcazou <ebotcazou@adacore.com>
918
919 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
920 only useless conversions around renamed objects.
921
13318d2f
EB
9222009-01-11 Eric Botcazou <ebotcazou@adacore.com>
923
924 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
925 the _Tag field before any discriminants in the field list.
926 (components_to_record): Remove obsolete comment.
927
6f9f0ce3
JJ
9282008-12-09 Jakub Jelinek <jakub@redhat.com>
929
930 PR ada/38450
931 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
932 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
933 Likewise.
934
9ff4a9da 9352008-12-05 Sebastian Pop <sebastian.pop@amd.com>
250d2fb5
JJ
936
937 PR bootstrap/38262
938 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
939
f9805f52
EB
9402008-11-29 Eric Botcazou <ebotcazou@adacore.com>
941
942 PR ada/30827
943 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
944
2ddc34ba
EB
9452008-11-27 Eric Botcazou <ebotcazou@adacore.com>
946
947 * gcc-interface/decl.c: Fix various nits.
948
58612565
EB
9492008-11-20 Eric Botcazou <ebotcazou@adacore.com>
950
951 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
952
e66e5d9e
EB
9532008-11-16 Eric Botcazou <ebotcazou@adacore.com>
954
955 PR ada/38127
d74b4b00
EB
956 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
957 special-case boolean types. Propagate the name.
e66e5d9e
EB
958 * gcc-interface/targtyps.c: Tweak comment.
959
7348f18c
GB
9602008-11-15 Geert Bosch <bosch@adacore.com>
961
962 * gcc-interface/trans.c (emit_check): Put back a final save_expr
963 to prevent exponential expansion during gimplification.
964
708bceb7
EB
9652008-11-15 Eric Botcazou <ebotcazou@adacore.com>
966
967 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
968
a5b8aacd
EB
9692008-11-15 Eric Botcazou <ebotcazou@adacore.com>
970
971 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
972 initialized to a static constant to be statically allocated even if
973 they are of a padding type, provided the original type also has
974 constant size.
975
4364e851
LG
9762008-11-15 Laurent Guerby <laurent@guerby.net>
977
978 PR ada/37993
979 * gcc-interface/Makefile.in: Add multilib handling for x86_64
980 on darwin.
981 * system-darwin-x86_64.ads: New file.
982
255e5b04
OH
9832008-11-13 Olivier Hainque <hainque@adacore.com>
984
985 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
986 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
987 are explicit to the middle-end. Tidy.
988
82d3b03a
EB
9892008-11-09 Eric Botcazou <ebotcazou@adacore.com>
990
991 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
992 (MINUS_NOMOD_EXPR): Likewise.
993 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
994 unreachable.
995 <PLUS_NOMOD_EXPR>: New case.
996 <MINUS_NOMOD_EXPR>: Likewise.
997 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
998 assignment statement instead of using an increment operator.
999
f5026442
RO
10002008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1001
1002 * system-irix-n64.ads: New file.
1003 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
1004 multilibs.
1005
10062008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1007
1008 PR ada/37681
1009 * system-solaris-x86_64.ads: New file.
1010 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
1011
7fee6a39 10122008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
e98c0739 1013 Eric Botcazou <ebotcazou@adacore.com>
7fee6a39
BZ
1014
1015 PR ada/34289
1016 * lib.ads: (Enable_Switch_Storing): Declare.
1017 * lib.adb: (Enable_Switch_Storing): New procedure.
1018 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
1019 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
1020 (Display): Never display -gnatea
1021 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
1022
9ed0e483
TQ
10232008-11-07 Thomas Quinot <quinot@adacore.com>
1024
1025 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
1026 for empty range in original base type, not converted result type.
1027
58e94443
GB
10282008-11-07 Geert Bosch <bosch@adacore.com>
1029
1030 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
1031 and result for call to __gnat_mulv64.
1032
a7c43bbc
EB
10332008-11-07 Eric Botcazou <ebotcazou@adacore.com>
1034
1035 * gcc-interface/trans.c: Fix formatting nits.
1036
2575024c
GB
10372008-11-07 Geert Bosch <bosch@adacore.com>
1038
1039 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
1040 overflow check for constant result.
1041
4ae39383
GB
10422008-11-07 Geert Bosch <bosch@adacore.com>
1043
1044 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
1045 overflow check for addition/subtraction if neither operand is constant.
1046
6818f0fc
EB
10472008-11-06 Eric Botcazou <ebotcazou@adacore.com>
1048
1049 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
1050 files for the target-dependent part of the runtime.
1051 (SPARC/Linux): Likewise.
1052
8d3323de
EB
10532008-11-06 Eric Botcazou <ebotcazou@adacore.com>
1054
1055 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
1056 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
1057 purposes.
1058
baf6e6a8
EB
10592008-11-06 Eric Botcazou <ebotcazou@adacore.com>
1060
1061 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
1062 in GC memory.
1063
8b659f79
EB
10642008-11-06 Eric Botcazou <ebotcazou@adacore.com>
1065
1066 PR ada/19419
1067 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
1068 Generate a call to memmove for an assignment between overlapping
1069 array slices.
1070
358ef7fb
AK
10712008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1072
1073 PR target/37977
1074 * gcc-interface/Makefile.in: Add multilib handling for
1075 s390-linux and s390x-linux.
1076
7134e605
JJ
10772008-10-24 Jakub Jelinek <jakub@redhat.com>
1078
1079 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
1080 check-acats-subtargets and check-gnat-subtargets.
1081 (check_acats_targets): New variable.
1082 (check-acats-subtargets, check-acats%): New targets.
1083 (check-acats): If -j is used and CHAPTERS is empty, run the testing
1084 in multiple make goals, possibly parallel, and afterwards run
1085 dg-extract-results.sh to merge the sum and log files.
1086
82f7c45f
GB
10872008-10-17 Geert Bosch <bosch@adacore.com>
1088
1089 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
1090 to use only a single check instead of three, and avoid unnecessary
1091 COMPOUND_EXPR.
1092 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
1093 creating more opportunities for optimizations.
1094
0adef32b
JJ
10952008-10-13 Jakub Jelinek <jakub@redhat.com>
1096
1097 PR middle-end/37601
1098 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
1099 NULL TYPE_DOMAIN.
1100
9cf18af8
EB
11012008-10-07 Eric Botcazou <ebotcazou@adacore.com>
1102
1103 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
1104 dealing with volatileness to after code dealing with renaming.
1105
e84319a3
EB
11062008-10-06 Eric Botcazou <ebotcazou@adacore.com>
1107
1108 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
1109 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
1110
afcea859
EB
11112008-10-06 Eric Botcazou <ebotcazou@adacore.com>
1112
1113 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
1114 (unchecked_convert): Use it to disable problematic folding with
1115 VIEW_CONVERT_EXPR in the general case. Always disable it for the
1116 special VIEW_CONVERT_EXPR built for integral types and cope with
1117 its addressability issues by preserving the first conversion.
1118
9e81dbc7
AS
11192008-10-01 Andreas Schwab <schwab@suse.de>
1120
1121 * system-linux-ppc64.ads: New file.
1122 * gcc-interface/Makefile.in: Add multilib handling for
1123 powerpc-linux.
1124
bb3da4f2
EB
11252008-09-26 Eric Botcazou <ebotcazou@adacore.com>
1126
1127 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
1128 to that of ptr_mode instead of word_mode.
1129
8f5730b9
EB
11302008-09-26 Eric Botcazou <ebotcazou@adacore.com>
1131
1132 PR ada/5911
1133 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
1134
3ca37eb7
ST
11352008-09-25 Samuel Tardieu <sam@rfc1149.net>
1136
1137 PR ada/37641
1138 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
1139 instead of deprecated FILE_WRITE_PROPERTIES.
1140
22868cbf
OH
11412008-09-22 Olivier Hainque <hainque@adacore.com>
1142
1143 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
1144 are never assigned, volatile entities are not constant for code
1145 generation purposes.
1146
7193e639
LG
11472008-09-21 Laurent Guerby <laurent@guerby.net>
1148
9e81dbc7 1149 PR ada/5911
7193e639
LG
1150 * gcc-interface/Makefile.in: Add multilib handling for x86_64
1151 and sparc.
1152 * system-linux-sparcv9.ads: New file.
9e81dbc7 1153
7fda1596
EB
11542008-09-20 Eric Botcazou <ebotcazou@adacore.com>
1155
1156 * exp_dbug.ads: Document new convention for the XVZ variable.
1157 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
1158 debug info if necessary for the type padding the component type.
1159 <E_Array_Subtype>: Likewise.
1160 (maybe_pad_type): Emit the XVZ variable in units.
1161 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
1162 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
1163 on statements generated to initialize the parameter attributes cache.
1164 Set the source line of the end label of the body on the special return
1165 statement built for a procedure with copy-in copy-out parameters.
1166
d84b344a
EB
11672008-09-20 Eric Botcazou <ebotcazou@adacore.com>
1168
1169 PR ada/37585
1170 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
1171 inlined external functions if they contain a nested function not
1172 declared inline.
1173
4db26d6c
JH
11742008-09-18 Jan Hubicka <jh@suse.cz>
1175
1176 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
1177 (end_subprog_body): Do not set DECL_INLINE.
1178
03e74118
PR
11792008-09-17 Pascal Rigaux <pixel@mandriva.com>
1180
1181 PR ada/21327
1182 * gnat_ugn.texi: Use proper format in direntry.
1183
6a7a3f31
EB
11842008-09-15 Eric Botcazou <ebotcazou@adacore.com>
1185
1186 * gcc-interface/trans.c (gigi): Declare the name of the compilation
1187 unit as the first global name.
1188
f67894ed
JH
11892008-09-14 Jan Hubicka <jh@suse.cz>
1190
6a7a3f31 1191 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
f67894ed 1192
16b05213
RW
11932008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1194
1195 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
1196 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
1197 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
1198 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
1199 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
1200 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
1201 gcc-interface/gigi.h, gcc-interface/trans.c,
1202 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
1203 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
1204 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
1205 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
1206 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
1207 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
1208 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
1209 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
1210 comments.
1211 * gnathtml.pl: Fix typos.
1212
1011d8a2
JS
12132008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
1214
1215 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
1216 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
1217 layer. RTEMS binds to OS provided adapter routines so there are
1218 no modifications to s-osinte-rtems.adb.
1219
e5c73177
AC
12202008-09-09 Arnaud Charlet <charlet@adacore.com>
1221 Joel Sherrill <joel.sherrill@oarcorp.com>
1222
1223 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
1224
1225 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
1226
1227 * s-interr-hwint.adb: New file.
1228
1229 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
1230 needed by s-interr-hwint.adb.
1231
1232 * s-osinte-vxworks-kernel.adb: New file.
1233
56cc5928
JS
12342008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1235
1236 * s-stchop-rtems.adb: Add file missed in early commit. Already
1237 referenced in gcc-interface/Makefile.in.
1238
21bacb7e
TQ
12392008-08-30 Thomas Quinot <quinot@adacore.com>
1240
1241 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
1242 be built even without a separate libada directory.
1243
5b2da948
AC
12442008-08-22 Arnaud Charlet <charlet@adacore.com>
1245
1246 * lib-xref.ads: Fix typo in subprogram reference definition.
1247
12482008-08-22 Robert Dewar <dewar@adacore.com>
1249
c9f1fdfe
RD
1250 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
1251 to avoid warning.
5b2da948 1252
c9f1fdfe 1253 * g-trasym.adb: Ditto
5b2da948
AC
1254
1255 * s-utf_32.adb (Get_Category): Fix obvious typo
1256
1257 * s-wwdcha.adb: Minor code reorganization
1258 Remove dead code
1259
4351c21b
AC
12602008-08-22 Robert Dewar <dewar@adacore.com>
1261
1262 * checks.adb (Determine_Range): Deal with values that might be invalid
1263
e5c73177
AC
1264 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
1265 configuration switches.
4351c21b
AC
1266
1267 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
1268
1269 * sem_prag.adb: Implement pragma Assume_No_Default_Values
1270
1271 * snames.adb, snames.ads, snames.h:
1272 Add entries for pragma Assume_No_Invalid_Values
1273
1274 * switch-c.adb: Add processing for -gnatB switch
1275
1276 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
1277
12782008-08-22 Javier Miranda <miranda@adacore.com>
1279
1280 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
1281 init procedure all the expanded code associated with the spec of
1282 task types and protected types.
1283
2743d81d
AC
12842008-08-22 Gary Dismukes <dismukes@adacore.com>
1285
1286 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
1287 component expression copies rather than directly setting Etype and
1288 Is_Static_Expression.
1289
12902008-08-22 Gary Dismukes <dismukes@adacore.com>
1291
1292 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
1293 private types to allow for types derived from a private type with
1294 preelaborable initialization, but return False for a private extension
1295 (unless it has the pragma).
1296
12972008-08-22 Robert Dewar <dewar@adacore.com>
1298
1299 * opt.ads: Minor code reorganization (put entries in alpha order)
1300
a5ad3248
AC
13012008-08-22 Pascal Obry <obry@adacore.com>
1302
1303 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
1304 spawn.
1305
6eca32ba
GB
13062008-08-22 Geert Bosch <bosch@adacore.com>
1307
1308 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
1309 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
1310
1c7717c3
AC
13112008-08-22 Doug Rupp <rupp@adacore.com>
1312
1313 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
1314 __gnat_set_features.
1315
1316 * init.c
1317 (__gnat_set_features): New function.
1318 (__gnat_features_set): New tracking variable.
1319 (__gl_no_malloc_64): New feature global variable
1320
13212008-08-22 Ed Schonberg <schonberg@adacore.com>
1322
1323 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
1324 use_type_clause in an instance.
1325
13262008-08-22 Bob Duff <duff@adacore.com>
1327
1328 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
1329
13302008-08-22 Robert Dewar <dewar@adacore.com>
1331
1332 * exp_ch6.adb: Minor reformatting
1333
1334 * exp_ch7.adb: Minor reformatting
1335
1336 * exp_ch7.ads: Put routines in proper alpha order
1337
1338 * exp_dist.adb: Minor reformatting
1339
13402008-08-22 Vincent Celier <celier@adacore.com>
1341
1342 * prj.ads: Minor comment update
1343
13442008-08-22 Robert Dewar <dewar@adacore.com>
1345
1346 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
1347
13482008-08-22 Ed Schonberg <schonberg@adacore.com>
1349
1350 * exp_tss.adb:
1351 (Base_Init_Proc): For a protected subtype, use the base type of the
1352 corresponding record to locate the propoer initialization procedure.
1353
13542008-08-22 Robert Dewar <dewar@adacore.com>
1355
1356 * checks.adb:
1357 (In_Subrange_Of): New calling sequence
1358 (Determine_Range): Prepare for new processing using base type
1359
1360 * exp_ch4.adb:
1361 (Compile_Time_Compare): Use new calling sequence
1362
1363 * exp_ch5.adb:
1364 (Compile_Time_Compare): Use new calling sequence
1365
1366 * sem_eval.adb:
1367 (Compile_Time_Compare): New calling sequence allows dealing with
1368 invalid values.
1369 (In_Subrange_Of): Ditto
1370
1371 * sem_eval.ads:
1372 (Compile_Time_Compare): New calling sequence allows dealing with
1373 invalid values.
1374 (In_Subrange_Of): Ditto
1375
13762008-08-22 Pascal Obry <obry@adacore.com>
1377
1378 * adaint.c: Fix possible race condition on win32_wait().
1379
048e5cef
BD
13802008-08-22 Bob Duff <duff@adacore.com>
1381
1382 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
1383 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
1384 exp_intr.adb, exp_ch3.adb: Rename:
1385 Exp_Ch7.Controlled_Type => Needs_Finalization
1386 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
1387 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
1388 Has_Controlled_Parts
1389 (Has_Some_Controlled_Component): Fix bug in array case.
1390
da2f5d14
AC
13912008-08-22 Robert Dewar <dewar@adacore.com>
1392
1393 * sem_ch8.adb: Minor reformatting
1394
13952008-08-22 Kevin Pouget <pouget@adacore.com>
1396
1397 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
1398 Shared_Var_Close procedure specifications from package spec to package body.
1399
1400 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
1401 RE_Shared_Var_WOpen entries.
1402
1403 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
1404 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
1405
14062008-08-22 Eric Botcazou <ebotcazou@adacore.com>
1407
1408 * init.c: adjust EH support code on Alpha/Tru64 as well.
1409
1410 * raise-gcc.c: Add back a couple of comments.
1411
14122008-08-22 Ed Schonberg <schonberg@adacore.com>
1413
1414 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
1415 involved and the return type is class-wide, use the type of the expression
1416 for the generated access type. Suppress useless discriminant checks on the
1417 allocator.
1418
14192008-08-22 Bob Duff <duff@adacore.com>
1420
1421 * exp_ch7.adb: Minor comment fix
1422
1423 * exp_ch6.ads: Minor comment fix
1424
1dcdbfab
AC
14252008-08-22 Thomas Quinot <quinot@adacore.com>
1426
1427 * sem_ch8.adb: Minor reformatting
1428 Minor code reorganization (introduce subprogram to factor duplicated
1429 code).
1430
14312008-08-22 Sergey Rybin <rybin@adacore.com>
1432
1433 * gnat_ugn.texi: Change the description of gnatcheck default rule
1434 settings.
1435
14362008-08-22 Eric Botcazou <ebotcazou@adacore.com>
1437
1438 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
1439 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
1440 do not adjust the PC anymore.
1441 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
1442 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
1443
1444 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
1445 instead of _Unwind_GetIP.
1446
14472008-08-22 Gary Dismukes <dismukes@adacore.com>
1448
1449 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
1450 with a range is transformed into a positional aggregate, any copied
1451 component literals should be marked Is_Static_Expression.
1452
1453 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
1454 not being known at at compile time when Configurable_Run_Time_Mode is
1455 true.
1456
14572008-08-22 Robert Dewar <dewar@adacore.com>
1458
1459 * exp_attr.adb:
1460 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
1461 Read or Input attribute.
1462
0d4aed99
AC
14632008-08-22 Ed Schonberg <schonberg@adacore.com>
1464
1465 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
1466 clauses in related units is redundant, if one of the units is a package
1467 instantiation, use its instance_spec to determine which unit is the
1468 ancestor of the other.
1469
14702008-08-22 Javier Miranda <miranda@adacore.com>
1471
1472 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
1473 attributes add missing support to handle designated types that come
1474 from the limited view.
1475
1476 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
1477
14782008-08-22 Sergey Rybin <rybin@adacore.com>
1479
1480 * vms_data.ads: Add entry for new gnatcheck -mNNN option
1481
1482 * gnat_ugn.texi: Add description for gnatcheck option '-m'
1483
5d41bf55
AC
14842008-08-22 Sergey Rybin <rybin@adacore.com>
1485
1486 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
1487 acoording to the latest changes in the metric rule interface
1488
14892008-08-22 Vincent Celier <celier@adacore.com>
1490
1491 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
1492 (Check): Check if the file names registered in the ALI file for the
1493 spec, the body and each of the subunits are the ones expected.
1494
14952008-08-22 Robert Dewar <dewar@adacore.com>
1496
1497 * g-catiio.adb: Code cleanup.
1498
9299a27c
AC
14992008-08-20 Vincent Celier <celier@adacore.com>
1500
1501 * make.adb (Gnatmake): Remove extra space in version line
1502
1503 * ali.adb:
1504 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
1505 as the name may already have been entered in the table by the Project
1506 Manager.
1507
15082008-08-20 Jose Ruiz <ruiz@adacore.com>
1509
1510 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
1511 weak symbols so we use the version provided by MaRTE when available.
1512
15132008-08-20 Emmanuel Briot <briot@adacore.com>
1514
1515 * g-catiio.ads, g-catiio.adb:
1516 (Value): Avoid an unnecessary system call to Clock in most cases.
1517 This call is only needed when only the time is provided in the string,
1518 and ignored in all other cases. This is more efficient.
1519
15202008-08-20 Eric Botcazou <ebotcazou@adacore.com>
1521
1522 * raise-gcc.c: Fix formatting nits.
1523
5e5dc75a
RD
15242008-08-20 Robert Dewar <dewar@adacore.com>
1525
1526 * sem_ch13.adb:
1527 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
1528 non-existing component clause.
1529
1530 * exp_ch5.adb: Minor reformatting
1531
1532 * g-comlin.adb: Minor reformatting
1533
1534 * make.adb: Minor reformatting
1535
1536 * prj-proc.adb: Minor reformatting
1537
1538 * stylesw.ads: Minor reformatting
1539
235f4375
AC
15402008-08-20 Vincent Celier <celier@adacore.com>
1541
1542 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
1543 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
1544 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
1545 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
1546 and a switch is not recognized by gnatmake.
1547 (Gnatmake): Implement new scheme for gnatmake switches and global
1548 compilation switches.
1549 (Switches_Of): Try successively Switches (<file name>),
1550 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
1551
15522008-08-20 Ed Schonberg <schonberg@adacore.com>
1553
1554 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
1555 implement style check that overriding operations are explicitly marked
1556 at such.
1557
1558 * style.ads (Missing_Overriding): new procedure that provides interface
1559 to previous one.
1560
1561 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
1562 that the declaration or body of overriding operations carries an
1563 explicit overriding indicator.
1564
1565 * sem_ch8.adb
1566 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
1567 explicit indicator should be present.
1568
1569 * sem_ch6.adb (Verify_Overriding_Indicator,
1570 Check_Overriding_Indicator): If operation is overriding, check whether
1571 declaration and/or body of subprogram should be present
1572
7486d8e0
AC
15732008-08-20 Vincent Celier <celier@adacore.com>
1574
1575 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
1576 gprbuild when casing is MixedCase, whatever the casing of the letters
1577 in the file name.
1578
15792008-08-20 Gary Dismukes <dismukes@adacore.com>
1580
1581 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
1582 creating dummy init proc.
1583 (Requires_Init_Proc): Return False in the case No_Default_Initialization
1584 is in force and the type does not have associated default
1585 initialization. Move test of Is_Public (with tests of restrictions
1586 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
1587 for default initialization.
1588
15892008-08-20 Jerome Lambourg <lambourg@adacore.com>
1590
1591 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
1592 of any alias or prefix but having attached parameters (as \"-O2\").
1593
fe5dbc2c
AC
15942008-08-20 Robert Dewar <dewar@adacore.com>
1595
1596 * s-fileio.adb: Minor reformatting
1597
15982008-08-20 Thomas Quinot <quinot@adacore.com>
1599
1600 * exp_strm.adb (Build_Elementary_Input_Call,
1601 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
1602 selects the stream attribute routines for long float types.
1603
16042008-08-20 Vincent Celier <celier@adacore.com>
1605
1606 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
1607
1608 * prj.ads (Array_Data): Add a component Location
1609
16102008-08-20 Ed Schonberg <schonberg@adacore.com>
1611
1612 * sem_prag.adb:
1613 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
1614 argument for ASIS and navigation use.
1615
16162008-08-20 Ed Schonberg <schonberg@adacore.com>
1617
1618 * einfo.ads: Add comment.
1619
16202008-08-20 Bob Duff <duff@adacore.com>
1621
1622 * sem_eval.ads: Minor comment fix.
1623
16242008-08-20 Bob Duff <duff@adacore.com>
1625
1626 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
1627 folding. We were folding things like "False and then ...", but not
1628 "X and then ..." where X is a constant whose value is known at compile
1629 time.
1630
16312008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
1632
1633 * exp_ch5.adb (Controlled_Type): New routine.
1634 (Expand_N_Extended_Return_Statement): When generating a move of the
1635 final list in extended return statements, check the type of the
1636 function and in the case of double expanded return statements, the type
1637 of the returned object.
1638 (Expand_Simple_Function_Return): Perform an interface conversion when
1639 the type of the returned object is an interface and the context is an
1640 extended return statement.
1641
16422008-08-20 Ed Schonberg <schonberg@adacore.com>
1643
1644 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
1645 and the full view is visible, set flag on full view as well.
1646
16472008-08-20 Thomas Quinot <quinot@adacore.com>
1648
1649 * g-comlin.adb: Minor reformatting
1650 Minor code reorganization.
1651
1652 * freeze.adb: Minor reformatting
1653
16542008-08-20 Vincent Celier <celier@adacore.com>
1655
1656 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
1657 source of another project.
1658
16592008-08-20 Pascal Obry <obry@adacore.com>
1660
1661 * s-os_lib.ads: Minor reformatting.
1662
c4075a15
AC
16632008-08-20 Arnaud Charlet <charlet@adacore.com>
1664
1665 * gnatvsn.ads: Minor reformatting.
1666
0dd8a0b1
AC
16672008-08-20 Arnaud Charlet <charlet@adacore.com>
1668
1669 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
1670 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
1671 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
1672 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
1673 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
1674 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
1675 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
1676 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
1677 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
1678 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
1679 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
1680 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
1681 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
1682 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
1683 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
1684 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
1685 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
1686 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
1687 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
1688 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
1689 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
1690 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
1691 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
1692 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
1693 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
1694 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
1695 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
1696 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
1697 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
1698 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
1699 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
1700 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
1701 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
1702 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
1703 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
1704 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
1705 s-poosiz.adb, link.c: Fix copyright notice.
1706
f4857d6e
AC
17072008-08-20 Arnaud Charlet <charlet@adacore.com>
1708
1709 * g-comlin.ads: Update comments.
1710
8b4261b3
AC
17112008-08-20 Ed Schonberg <schonberg@adacore.com>
1712
1713 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
1714
17152008-08-20 Gary Dismukes <dismukes@adacore.com>
1716
1717 * exp_ch11.adb:
1718 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
1719 Make_Implicit_Exception_Handler when rewriting an exception handler with
1720 a choice parameter, and pass the handler's Sloc instead of that of the
1721 handled sequence of statements. Make_Implicit_Exception_Handler sets the
1722 Sloc to No_Location (unless debugging generated code), which we don't
1723 want for the case of a user handler.
1724
c6084ae0
AC
17252008-08-20 Robert Dewar <dewar@adacore.com>
1726
1727 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
9e81dbc7 1728
c6084ae0
AC
1729 * sem_ch13.adb:
1730 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
1731 now labeled as info msgs, not warnings.
1732
1733 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
1734
1735 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
1736
1737 * a-textio.adb: Remove redundant test.
1738
1739 * a-witeio.adb: Minor code reorganization
1740 Remove redundant test found working on another issue
1741
1742 * a-ztexio.adb: Minor code reorganization
1743 Remove redundant test found working on another issue
1744
17452008-08-20 Thomas Quinot <quinot@adacore.com>
1746
1747 * s-fileio.adb (Open) Use C helper function to determine whether a
1748 given errno value corresponds to a "file not found" error.
1749
1750 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
1751
17522008-08-20 Jose Ruiz <ruiz@adacore.com>
1753
1754 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
1755 to get access to the per-task errno variable.
1756 (__set_errno for MaRTE): Do not redefine this function here since it is
1757 already defined in MaRTE.
1758
17592008-08-20 Tristan Gingold <gingold@adacore.com>
1760
1761 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
1762
6e7f835f
AC
17632008-08-20 Robert Dewar <dewar@adacore.com>
1764
1765 * freeze.adb: Minor reformatting
1766
1767 * g-comlin.adb: Minor reformatting
1768
1769 * g-socket.adb: Minor reformatting
1770
1771 * g-socthi-mingw.adb: Minor reformatting
1772
1773 * g-stheme.adb: Minor reformatting
1774
2af92e28
ES
17752008-08-20 Ed Schonberg <schonberg@adacore.com>
1776
1777 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
1778 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
1779 confusion between partial and full views of an ancestor of the context
1780 type when the parent is a private extension declared in a parent unit,
1781 and full views are available for the context type.
1782
79a14178 17832008-08-18 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 1784 Robert Dewar <dewar@adacore.com>
79a14178
ST
1785
1786 PR ada/30827
1787 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
1788 version string.
1789 Move comment in the right place.
1790 * g-comver.adb (Version): Look for a zero-termination in
1791 addition to a closing parenthesis.
1792
b9b2405f
ST
17932008-08-18 Samuel Tardieu <sam@rfc1149.net>
1794
1795 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
1796 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
1797 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
1798 Is_Package_Or_Generic_Package instead of hand-crafted tests.
1799
51c16e29
ST
18002008-08-18 Samuel Tardieu <sam@rfc1149.net>
1801
1802 PR ada/15808
1803 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
1804 as well.
1805
c8bbc9ef
AL
18062008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1807
1808 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
1809
e650b83a
EB
18102008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1811
1812 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
1813 for back-copy statements in lieu of that of the actual.
1814
b38f3813
EB
18152008-08-16 Eric Botcazou <ebotcazou@adacore.com>
1816
1817 PR ada/20548
1818 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
12f89f6c 1819 setjmp test consistently. Adjust for new behavior of flag_stack_check.
b38f3813 1820 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
12f89f6c 1821 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
b38f3813 1822
2d14501c
ST
18232008-08-13 Samuel Tardieu <sam@rfc1149.net>
1824
1825 PR ada/36777
1826 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
1827 * sem_attr.adb (Check_Type): The current instance of a protected
1828 object is not a type name.
1829 (Analyze_Access_Attribute): Accept instances of protected objects.
1830 (Analyze_Attribute, Attribute_Address clause): Ditto.
1831 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
1832 the prefix as being the current instance if needed.
1833
62641193
DS
18342008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1835
0490fbb8
EB
1836 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
1837 Remove duplicate s-win32.o. Add s-winext.o.
62641193 1838
2a04ce75
DS
18392008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
1840
1841 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
1842 with SOSC.SOCK__STREAM.
1843 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
1844 SOSC.MSG_OOB.
1845
269b85b7
JS
18462008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
1847
1848 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
1849 * gsocket.h, socket.c: Update to support RTEMS.
1850 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
1851
abcbd24c 18522008-08-10 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 1853 Robert Dewar <dewar@adacore.com>
abcbd24c
ST
1854
1855 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
1856 left argument even when right argument is 0.
1857 (Expand_N_Op_Mod): Ditto when right argument is 1.
1858 (Expand_N_Op_Multiply): Ditto when any argument is 0.
1859 (Expand_N_Op_Rem): Ditto when right argument is 1.
1860
98e48a7f
MLI
18612008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1862
1863 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
1864 by warn_unused.
9e81dbc7 1865
70d904ca
ES
18662008-08-08 Ed Schonberg <schonberg@adacore.com>
1867
1868 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
1869 from Freeze_Entity. Used to generate cross-reference information for
1870 types declared in generic packages.
1871
cfb53555
TQ
18722008-08-08 Thomas Quinot <quinot@adacore.com>
1873
1874 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
1875 compatibility shim.
1876
a3ea9137
AC
18772008-08-08 Thomas Quinot <quinot@adacore.com>
1878
1879 * gsocket.h:
1880 On Windows, include <errno.h> and redefine only selected errno values
1881 from their <winsock2.h> definitions.
1882
1883 * s-osinte-freebsd.ads: Minor reformatting
1884
1885 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
1886
1887 * g-soccon.ads: New file.
1888
1889 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
1890 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
1891 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
1892 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
1893 unit, to allow building software that depends on this internal unit
1894 with both older and newer compilers.
1895
18962008-08-08 Robert Dewar <dewar@adacore.com>
1897
1898 * s-strxdr.adb: Minor reformatting
1899
19002008-08-08 Bob Duff <duff@adacore.com>
1901
1902 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
1903 checking for integer operations (including division by zero)", which
1904 is wrong -- divide by zero is not part of overflow checking.
1905 Also added misc clarification about what check-suppression means.
1906
1907 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
1908
19092008-08-08 Jerome Lambourg <lambourg@adacore.com>
1910
1911 * g-comlin.adb (Add_Switch): Handle addition of switches at the
1912 begining of the command line.
1913 (Append, Add): Renaming of Append to Add as this now allows addition
1914 at the begining of the list.
9e81dbc7 1915
a3ea9137
AC
1916 * g-comlin.ads (Add_Switch): Handle addition of switches at the
1917 begining of the command line.
1918
19192008-08-08 Thomas Quinot <quinot@adacore.com>
1920
1921 * g-sercom.ads:
1922 (Name): Document application scope (only legacy PC serial ports on
1923 Linux and Windows).
1924
15d2e2d4
TQ
19252008-08-08 Thomas Quinot <quinot@adacore.com>
1926
1927 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
1928 previous change, not needed after all.
1929
51e4c4b9
AC
19302008-08-08 Ed Schonberg <schonberg@adacore.com>
1931
1932 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
1933 exclusion indicator is present
1934
19352008-08-08 Robert Dewar <dewar@adacore.com>
1936
1937 * g-comlin.adb: Minor code reorganization
1938 Minor reformatting
1939
1940 * g-comlin.ads: Minor reformatting
1941
1942 * s-fileio.adb: Minor reformatting
1943
1944 * sem_attr.adb: Minor code reorganization (use Nkind_In)
1945 Minor reformatting
1946
6f371a2e
ST
19472008-08-06 Samuel Tardieu <sam@rfc1149.net>
1948
1949 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
1950 with s-oscons-tmplt.i.
1951
6a69bcf4
ST
19522008-08-06 Samuel Tardieu <sam@rfc1149.net>
1953
1954 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
1955
ef9e1eff
AC
19562008-08-06 Ed Schonberg <schonberg@adacore.com>
1957
1958 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
1959 of incomplete type.
1960
1961 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
1962 of a formal parameter of an incomplete type. Improve error message for
1963 other improper uses of incomplete types.
1964
19652008-08-06 Robert Dewar <dewar@adacore.com>
1966
1967 * gnat_ugn.texi: Clarify -gnato documentation
1968
19692008-08-06 Thomas Quinot <quinot@adacore.com>
1970
1971 * gcc-interface/Makefile.in,
1972 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
1973 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
1974 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
1975 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
1976 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
1977 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
1978 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
1979 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
1980 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
1981 Remove GNAT.Sockets.Constants. This internal package is replaced by
1982 System.OS_Constants.
1983
e93d146b
TQ
19842008-08-06 Thomas Quinot <quinot@adacore.com>
1985
1986 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
1987 Remove obsolete targets referencing gen-soccon
1988 When generating s-oscons.ads, use a file name that includes the
1989 THREAD_KIND, to ensure that the (potentially different) version from a
1990 previous build with a different threads flavour does not get reused.
1991
c6aecf3b
AC
19922008-08-06 Thomas Quinot <quinot@adacore.com>
1993
1994 * sem_res.adb: Minor reformatting
1995
1996 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
1997 only when the operating system reports a non-existing file or directory
1998 (ENOENT), otherwise raise Name_Error.
1999
2000 * exp_ch11.adb: Minor reformatting
2001
20022008-08-06 Ed Schonberg <schonberg@adacore.com>
2003
2004 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
2005 incomplete, add the access_to_subprogram type to the list of private
2006 dependents only if the incomplete type will be completed in the current
2007 scope.
2008 (Build_Discriminant_Constraints): If the type of the discriminant is
2009 access_to_variable, reject a constraint that is access_to_constant.
2010
6594c0f3
AC
20112008-08-06 Thomas Quinot <quinot@adacore.com>
2012
2013 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
2014 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
2015 g-sttsne-dummy.ads: New files.
2016
2017 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
2018 with pragma Unimplemented_Unit for sockets packages on Nucleus.
2019
20202008-08-06 Pascal Obry <obry@adacore.com>
2021
2022 * adaint.c: Another fix for ACL support on Windows.
2023
20242008-08-06 Javier Miranda <miranda@adacore.com>
2025
2026 * exp_disp (Expand_Interface_Actuals): Adds missing support for
2027 expansion of calls to subprograms using selected components.
2028
20292008-08-06 Ed Schonberg <schonberg@adacore.com>
2030
2031 * sem_res.adb (Resolve_Call): Use base type to determine whether a
2032 dereference is needed because a subtype of an access_to_subprogram is
2033 simply an access-subtype
2034
20352008-08-06 Jerome Lambourg <lambourg@adacore.com>
2036
2037 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
2038 parameters, always specify the expected separator.
2039
f9325b03
AC
20402008-08-06 Thomas Quinot <quinot@adacore.com>
2041
2042 * xnmake.adb: Use new XUtil package for platform independent text
2043 output.
2044
20452008-08-06 Vincent Celier <celier@adacore.com>
2046
2047 * gnat_ugn.texi: Document compiler switch -gnateG
2048
20492008-08-06 Quentin Ochem <ochem@adacore.com>
2050
2051 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
2052 in the case of an empty pattern size.
2053 (Compute_Result): Do not do any computation in the case of an empty
2054 pattern size.
2055 (Report_Result): Fixed computation of the overflow guard.
2056
20572008-08-06 Ed Schonberg <schonberg@adacore.com>
2058
2059 * g-awk.adb (Finalize): Do not use directly objects of the type in the
2060 finalization routine to prevent elaboration order anomalies in new
2061 finalization scheme.
2062
20632008-08-06 Ed Schonberg <schonberg@adacore.com>
2064
2065 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
2066 declaration for the same type.
2067
20682008-08-06 Thomas Quinot <quinot@adacore.com>
2069
2070 * sem.adb: Minor rewording (comment)
2071
20722008-08-06 Jerome Lambourg <lambourg@adacore.com>
2073
2074 * g-comlin.adb (Define_Switch, Get_Switches): New.
2075 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
2076 ungrouping switches.
2077 (For_Each_Simple_Switch): Allow more control over parameters handling.
2078 This generic method now allows ungrouping of switches with parameters
2079 and switches with more than one letter after the prefix.
2080 (Set_Command_Line): Take care of switches that are prefixed with a
2081 switch handling parameters without delimiter (-gnatya and -gnaty3 for
2082 example).
2083 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
2084 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
2085 the operation.
2086 (Start, Alias_Switches, Group_Switches): Take care of parameters
2087 possibly present inside a group.
2088
2089 * g-comlin.ads (Define_Switch): New method used to define a list of
2090 expected switches, that are necessary for correctly ungrouping switches
2091 with more that one character after the prefix.
2092 (Get_Switches): Method that builds a getopt string from the list of
2093 switches as set previously by Define_Switch.
2094 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
2095 status of the operation. Also allow the removal of switches with
2096 parameters only.
2097 (Command_Line_Configuration_Record): Maintain a list of expected
2098 switches.
2099
f0a631aa
DR
21002008-08-06 Doug Rupp <rupp@adacore.com>
2101
2102 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
2103 TARGET_MALLOC64 clear.
2104
2105 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
2106 if TARGET_MALLOC64 clear.
2107
2108 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
2109 (TARGET_MALLC64): New macro. Default to clear.
2110
31fcb30f
DR
21112008-08-06 Doug Rupp <rupp@adacore.com>
2112
2113 * gcc-interface/utils2.c (snames.h) Include
2114 (TARGET_ABI_OPEN_VMS): Initialize.
2115 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
2116 for Convention C.
2117
ea08fcdc
AC
21182008-08-06 Ed Schonberg <schonberg@adacore.com>
2119
2120 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
2121 null exclusion in a discriminant declaration
2122
2123 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
2124 indicators when type is not an access type.
2125
2126 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
2127 indicators when type is not an access type.
2128
21292008-08-06 Javier Miranda <miranda@adacore.com>
2130
2131 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
2132 with the target interface before expanding the code of the interface
2133 conversion.
2134
aecf0203
AC
21352008-08-05 Ed Schonberg <schonberg@adacore.com>
2136
2137 * freeze.adb:
2138 (Freeze_Entity): A deferred constant does not violate the restriction
9e81dbc7 2139 No_Default_Initialization,
aecf0203
AC
2140
2141 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
2142 can carry a null exclusion indicator, and on which an error may be
2143 posted if the indicator is redundant.
2144
2145 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
2146 does not apply to a subtype mark that already excludes null.
2147
2148 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
2149 exclusion does not apply to a subtype mark that already excludes null.
2150
21512008-08-05 Thomas Quinot <quinot@adacore.com>
2152
2153 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
2154
21552008-08-05 Doug Rupp <rupp@adacore.com>
2156
2157 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
2158
434d3cf1
AC
21592008-08-05 Thomas Quinot <quinot@adacore.com>
2160
2161 * gsocket.h: Make this file includable in a Nucleus environment, which
2162 does not support sockets.
2163
2164 * socket.c: Remove Nucleus-specific hack.
2165
21662008-08-05 Pascal Obry <obry@adacore.com>
2167
2168 * adaint.c: Remove support for readable attribute on vxworks and nucleus
2169
21702008-08-05 Ed Schonberg <schonberg@adacore.com>
2171
2172 * sem_attr.adb:
2173 (Analyze_Attribute, case 'Result): handle properly the case where some
2174 operand of the expression in a post-condition generates a transient
2175 block.
2176
2177 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
2178 right-hand side when it is an anonymous access_to_subprogram, to force
2179 static accessibility check when needed.
2180
49331b42
AC
21812008-08-05 Sergey Rybin <rybin@adacore.com>
2182
2183 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
2184 rule according to the change in the rule option.
2185 Add documentation for -gnatw.b/-gnatw.B
2186
21872008-08-05 Robert Dewar <dewar@adacore.com>
2188
2189 * ug_words: Add entries for -gnatw.b/-gnatw.B
2190
2191 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
2192
21f560ba
VC
21932008-08-05 Vincent Celier <celier@adacore.com>
2194
2195 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
2196 (File).
9e81dbc7 2197
21f560ba
VC
2198 * a-ztdeio.adb: Ditto.
2199
43540ec6
AC
22002008-08-05 Pascal Obry <obry@adacore.com>
2201
2202 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
2203 readable attribute.
2204
22052008-08-05 Vincent Celier <celier@adacore.com>
2206
2207 * s-wchwts.adb:
2208 (Wide_String_To_String): Returns a String with the same 'First as its
2209 parameter S.
2210 (Wide_Wide_String_To_String): Ditto
9e81dbc7 2211
43540ec6
AC
2212 * s-wchwts.ads:
2213 (Wide_String_To_String): Document that the lowest index of the returned
2214 String is equal to S'First.
2215
2d4d7e29
TQ
22162008-08-05 Thomas Quinot <quinot@adacore.com>
2217
2218 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
2219
2220 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
2221 s-oscons.ads
2222
4ae23b62
AC
22232008-08-05 Robert Dewar <dewar@adacore.com>
2224
2225 * opt.ads (Warn_On_Biased_Representation): New flag
9e81dbc7 2226
4ae23b62
AC
2227 * sem_ch13.adb:
2228 (Analyze_Attribute_Definition_Clause): Issue warning when biased
2229 representation is required.
2230 (Minimum_Size): Don't allow biasing if enum rep clause case
9e81dbc7 2231
4ae23b62
AC
2232 * sem_warn.adb:
2233 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
2234 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
9e81dbc7 2235
4ae23b62
AC
2236 * usage.adb: Add lines for -gnatw.b/B switches
2237
22382008-08-05 Pascal Obry <obry@adacore.com>
2239
2240 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
2241
2242 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
2243
22442008-08-05 Thomas Quinot <quinot@adacore.com>
2245
2246 * socket.c: Minor reformatting.
2247
ba3fa650
AC
22482008-08-05 Robert Dewar <dewar@adacore.com>
2249
2250 * sem_ch3.adb: Minor reformatting
2251
2252 * prj-nmsc.adb: Minor reformatting
2253
22542008-08-05 Ed Schonberg <schonberg@adacore.com>
2255
2256 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
2257 visibility check on the component type if the simple test fails.
2258
c775e4a1
AC
22592008-08-05 Jose Ruiz <ruiz@adacore.com>
2260
2261 * init.c (__gnat_install_handler for linux): If we are building the
2262 Xenomai run time then we need to do two additional things: avoid
2263 memory swapping and transform the Linux environment task into a native
2264 Xenomai task.
2265
2266 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
2267 time): Use interface to Xenomai native skin and avoid linux-specific
2268 way of setting CPU affinity.
2269 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
2270
22712008-08-05 Bob Duff <duff@adacore.com>
2272
2273 * checks.ads: Minor comment fix
2274
22752008-08-05 Thomas Quinot <quinot@adacore.com>
2276
2277 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
2278 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
2279 CS8.
2280
22812008-08-05 Robert Dewar <dewar@adacore.com>
2282
2283 * mlib.adb: Minor code reorganization
2284 Minor reformatting
2285
2286 * make.adb: Minor reformatting
2287
2288 * prj-attr.ads: Minor reformatting
2289
2290 * s-os_lib.adb: Minor reformatting
2291
2292 * s-fileio.adb: Minor code reorganization
2293 Minor reformatting
2294
2295 * prj.ads: Minor reformatting
2296
22972008-08-05 Bob Duff <duff@adacore.com>
2298
2299 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
2300 unresolved initial value of "null", because it causes implicitly
2301 generated "=" operators to be ambiguous, and because this type should
2302 not be passed to gigi.
2303
0df218a9
AC
23042008-08-05 Vincent Celier <celier@adacore.com>
2305
2306 * mlib.adb: Update comments.
2307
2308 * make.adb (Switches_Of): Check for Switches (others), before checking
2309 for Default_Switches ("Ada").
2310 (Gnatmake): Use Builder'Switches (others) in preference to
2311 Builder'Default_Switches ("Ada") if there are several mains.
2312
2313 * prj-attr-pm.adb:
2314 (Add_Attribute): Add component Others_Allowed in Attribute_Record
2315 aggregate.
2316
2317 * prj-attr.adb:
2318 Add markers to indicates that attributes Switches allow others as index
2319 (Others_Allowed_For): New Boolean function, returning True for
2320 attributes with the mark.
2321 (Initialize): Recognize optional letter 'O' as the marker for
2322 associative array attributes where others is allowed as the index.
2323
2324 * prj-attr.ads:
2325 (Others_Allowed_For): New Boolean function
2326 (Attribute_Record): New Boolean component Others_Allowed
9e81dbc7 2327
0df218a9
AC
2328 * prj-dect.adb:
2329 (Parse_Attribute_Declaration): For associative array attribute where
2330 others is allowed as the index, allow others as an index.
2331
2332 * prj-nmsc.adb:
2333 (Process_Binder): Skip associative array attributes with index others
2334 (Process_Compiler): Ditto
2335
2336 * prj-util.adb:
2337 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
2338 index is All_Other_Names.
2339
2340 * prj.ads:
2341 (All_Other_Names): New constant
2342
2343 * prj-proc.adb:
2344 (Process_Declarative_Items): Skip associative array attribute when index
2345 is reserved word "others".
2346
23472008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
2348
2349 * gen-oscons.c: Adapt for VMS where termios.h is not available.
2350
c7d920ad
TQ
23512008-08-05 Thomas Quinot <quinot@adacore.com>
2352
2353 * a-rttiev.adb: Minor reformatting (comments)
2354
2355 * gen-soccon.c: Rename to gen-oscons.c
2356
2357 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
2358 GNAT.Sockets.Constants.
2359 Add new constants for GNAT.Serial_Communications and System.File_IO.
2360
8b79ad42
AC
23612008-08-05 Javier Miranda <miranda@adacore.com>
2362
2363 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
2364 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
2365 implementation of this routine has been simplified.
2366
23672008-08-05 Pascal Obry <obry@adacore.com>
2368
2369 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
2370 Set_Read_Only Win32 implementation.
2371
99e81db6
TQ
23722008-08-05 Thomas Quinot <quinot@adacore.com>
2373
2374 * exp_strm.adb: Minor reformatting (comments)
2375
2376 * sem_ch12.adb: Minor reformatting.
2377
dce86910
AC
23782008-08-05 Robert Dewar <dewar@adacore.com>
2379
2380 * sem_ch3.adb: Minor reformatting
2381
2382 * checks.adb: Minor reformatting
2383
23842008-08-05 Thomas Quinot <quinot@adacore.com>
2385
2386 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
2387 restriction on Prefix.
2388
23892008-08-05 Jerome Lambourg <lambourg@adacore.com>
2390
2391 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
2392 methods needed to handle switch sections when building a command line.
2393 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
2394 Current_Section): New public methods or methods modified to handle
2395 building command lines with sections.
2396 (Set_Command_Line): Take into account sections when analysing a switch
2397 string.
2398 (Start): Sort the switches by sections before iterating the command line
2399 elements.
9e81dbc7 2400
dce86910
AC
2401 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
2402 Is_New_Section, Current_Section): New methods or methods modified to
2403 handle building command lines with sections.
2404
24052008-08-05 Ed Schonberg <schonberg@adacore.com>
2406
2407 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
2408 discriminants, indicate that the corresponding object declaration has
2409 no initialization, to prevent spurious warnings when the access type is
2410 null-excluding.
2411
24122008-08-05 Ed Schonberg <schonberg@adacore.com>
2413
2414 * sem_res.adb (Resolve_Call): If this is a call to the predefined
2415 Abort_Task, warn if the call appears within a protected operation.
2416
52fb73c2
AC
24172008-08-04 Robert Dewar <dewar@adacore.com>
2418
2419 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
2420
24212008-08-04 Ed Schonberg <schonberg@adacore.com>
2422
2423 * sem_ch3.adb:
2424 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
2425 anonymous access to protected subprogram that is the return type of the
2426 specification of a subprogram body.
2427
2428 * sem_ch6.adb:
2429 (Analyze_Subprogram_Body): if the return type is an anonymous access to
2430 subprogram, freeze it now to prevent access anomalies in the back-end.
2431
2432 * exp_ch9.adb: Minor code cleanup.
2433 Make sure that new declarations are inserted into the tree before
2434 analysis (from code reading).
2435
24362008-08-04 Robert Dewar <dewar@adacore.com>
2437
2438 * exp_ch5.adb:
2439 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
2440 at point of return.
2441
367a9e66
AC
24422008-08-04 Thomas Quinot <quinot@adacore.com>
2443
2444 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
2445
24462008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
2447
2448 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
2449
24502008-08-04 Javier Miranda <miranda@adacore.com>
2451
2452 * sem_prag.adb (Process_Convention): Add missing support for
2453 N_Private_Extension_Declaration nodes.
2454
24552008-08-04 Robert Dewar <dewar@adacore.com>
2456
2457 * exp_ch4.adb: Minor reformatting
2458
a07c3593
AC
24592008-08-04 Pascal Obry <obry@adacore.com>
2460
2461 * adaint.h: Add missing prototype.
2462
2463 * adaint.c: Refine support for Windows file attributes.
2464
24652008-08-04 Robert Dewar <dewar@adacore.com>
2466
2467 * sem_res.adb:
2468 (Valid_Conversion): Catch case of designated types having different
2469 sizes, even though they statically match.
2470
24712008-08-04 Javier Miranda <miranda@adacore.com>
2472
2473 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
2474 added in previous patch to handle access to subprograms.
2475
24762008-08-04 Robert Dewar <dewar@adacore.com>
2477
2478 * freeze.adb:
2479 (Freeze_Entity): Only check No_Default_Initialization restriction for
2480 constructs that come from source
2481
24822008-08-04 Thomas Quinot <quinot@adacore.com>
2483
2484 * exp_ch6.adb: Minor comment fix.
2485
2486 * sem_ch4.adb: Minor reformatting.
2487
d559d5c6
AC
24882008-08-04 Robert Dewar <dewar@adacore.com>
2489
2490 * sem_res.adb: (Large_Storage_Type): Improve previous change.
2491
24922008-08-04 Pascal Obry <obry@adacore.com>
2493
2494 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
2495 file attributes.
2496
b1c11e0e
JM
24972008-08-04 Javier Miranda <miranda@adacore.com>
2498
2499 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
2500 for N_Formal_Object_Declaration nodes. Adding kludge required by
2501 First_Formal to provide its functionality with access to functions.
2502 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
2503 for anonymous access types returned by functions.
2504
2505 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
2506 conversion of null-excluding access types (required only once to force
2507 the generation of the required runtime check).
2508
2509 * sem_type.adb (Covers): minor reformating
2510
2511 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
2512 with internally generated nodes. Avoid generating the error inside init
2513 procs.
2514
2515 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
2516 (Resolve_Null): Generate the null-excluding check in case of assignment
2517 to a null-excluding object.
2518 (Valid_Conversion): Add missing support for anonymous access to
2519 subprograms.
2520
2521 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
2522 anonymous access types whose designated type is an itype. This case
2523 occurs with anonymous access to protected subprograms types.
2524 (Analyze_Return_Type): Add missing support for anonymous access to
2525 protected subprogram.
2526
2527 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
2528 subprograms addition of missing check on matching convention. Required
2529 to properly handle access to protected subprogram types.
2530
2531 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
2532 null excluding access types.
2533
b282ab37
AC
25342008-08-04 Ed Schonberg <schonberg@adacore.com>
2535
2536 * sem_ch12.adb: Add comments
2537
2538 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
2539 access type and the allocator is not initialized, warn rather than
2540 reporting an error.
2541
25422008-08-04 Robert Dewar <dewar@adacore.com>
2543
2544 * exp_ch4.adb: Minor reformatting
2545
2546 * exp_dist.adb: Minor reformatting
2547
2548 * g-comlin.adb: Minor reformatting
2549
25502008-08-04 Gary Dismukes <dismukes@adacore.com>
2551
2552 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
2553 target to the type of the aggregate in the case where the target object
2554 is class-wide.
2555
2556 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
2557 result type is class-wide and inherently limited, and the expression
2558 has a specific type, create a return object of the specific type, for
2559 more efficient handling of returns of build-in-place aggregates (avoids
2560 conversions of the class-wide return object to the specific type on
2561 component assignments).
2562
2563 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
2564 about a type mismatch for a class-wide function with a return object
2565 having a specific type when the object declaration doesn't come from
2566 source. Such an object can result from the expansion of a simple return.
2567
25682008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
2569
2570 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
2571
2572 * gcc-interface/Makefile.in: Use 64bit-specific system files when
2573 compiling for 64bit windows.
2574
54838d1f
AC
25752008-08-04 Jerome Lambourg <lambourg@adacore.com>
2576
2577 * g-comlin.adb (Group_Switches): Preserve the switch order when
2578 grouping and allow switch grouping of switches with more than one
2579 character extension (e.g. gnatw.x).
2580 (Args_From_Expanded): Remove this now obsolete method.
2581
25822008-08-04 Ed Schonberg <schonberg@adacore.com>
2583
2584 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
2585 chain at once, to ensure that type is properly decorated for back-end,
2586 when allocator appears within a loop.
2587
25882008-08-04 Kevin Pouget <pouget@adacore.com>
2589
2590 * snames.h, snames.adb, snames.ads:
2591 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
2592
2593 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
2594 Build_To_Any_Call and Build_TypeCode_Call procedures.
2595
2596 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
2597
2598 * rtsfind.ads: Add corresponding names.
2599
2600 * tbuild.adb: Update prefix restrictions to allow '_' character.
2601
819fad69
AC
26022008-08-04 Doug Rupp <rupp@adacore.com>
2603
2604 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
2605 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
2606 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
2607 use it. Calculate pointer range overflow using 64bit types.
2608
26092008-08-04 Ed Schonberg <schonberg@adacore.com>
2610
2611 * sem_ch3.adb (Access_Definition): A formal object declaration is a
2612 legal context for an anonymous access to subprogram.
2613
2614 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
2615 indirect call, report success to the caller to include possible
2616 interpretation.
2617
2618 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
2619 check when the type
2620 of the extended return is an anonymous access_to_subprogram type.
2621
2622 * sem_res.adb:
2623 (Resolve_Call): Insert a dereference if the type of the subprogram is an
2624 access_to_subprogram and the context requires its return type, and a
2625 dereference has not been introduced previously.
2626
26272008-08-04 Arnaud Charlet <charlet@adacore.com>
2628
2629 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
2630 gnatcheck support in GPS.
2631
26322008-08-04 Vincent Celier <celier@adacore.com>
2633
2634 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
2635 requested
2636
a037f912
VC
26372008-08-04 Vincent Celier <celier@adacore.com>
2638
2639 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
2640 variable, but don't check the resulting value as it has no impact on
2641 the processing.
9e81dbc7 2642
a037f912
VC
2643 * opt.ads:
2644 (Generate_Processed_File): New Boolean flag, set to True in the compiler
2645 when switch -gnateG is used.
9e81dbc7 2646
a037f912
VC
2647 * prep.adb:
2648 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
2649 when the source is modified by the preprocessor and there is no
2650 preprocessing errors.
9e81dbc7 2651
a037f912 2652 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
9e81dbc7 2653
a037f912
VC
2654 * sinput-l.adb:
2655 (Load_File): Output the result of preprocessing if the source text was
2656 modified.
9e81dbc7 2657
a037f912 2658 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
9e81dbc7 2659
a037f912 2660 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
9e81dbc7 2661
a037f912 2662 * ug_words: Add VMS equivalent for -gnateG
9e81dbc7 2663
a037f912
VC
2664 * vms_data.ads:
2665 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
2666
bdc33a55
AC
26672008-08-04 Doug Rupp <rupp@adacore.com>
2668
2669 * gcc-interface/utils2.c:
2670 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
2671 in 32bit descriptor.
2672
26732008-08-04 Robert Dewar <dewar@adacore.com>
2674
2675 * par-ch10.adb: Minor reformatting
2676
2677 * i-cobol.adb: Minor reformatting.
2678
26792008-08-04 Ed Schonberg <schonberg@adacore.com>
2680
2681 * sem_ch3.adb (Access_Definition): Create an itype reference for an
2682 anonymous access return type of a regular function that is not a
2683 compilation unit.
2684
26852008-08-04 Vincent Celier <celier@adacore.com>
2686
2687 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
9e81dbc7 2688
bdc33a55 2689 * snames.adb: New standard name Global_Compilation_Switches
9e81dbc7 2690
bdc33a55
AC
2691 * snames.ads: New standard name Global_Compilation_Switches
2692
2693 * make.adb: Correct spelling error in comment
2694
26952008-08-04 Arnaud Charlet <charlet@adacore.com>
2696
2697 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
2698 target.
2699
27002008-08-04 Thomas Quinot <quinot@adacore.com>
2701
2702 * sem_ch10.adb: Minor comment fix.
2703
fc1b906a
AC
27042008-08-04 Robert Dewar <dewar@adacore.com>
2705
2706 * restrict.adb: Improved messages for restriction warnings
2707
2708 * restrict.ads: Improved messages for restriction messages
2709
2710 * s-rident.ads (Profile_Name): Add No_Profile
2711
27122008-08-04 Robert Dewar <dewar@adacore.com>
2713
2714 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
2715
27162008-08-04 Robert Dewar <dewar@adacore.com>
2717
2718 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
2719
27202008-08-04 Vincent Celier <celier@adacore.com>
2721
2722 * prj-proc.adb:
2723 (Copy_Package_Declarations): When inheriting package Naming from a
2724 project being extended, do not inherit source exception names.
2725
27262008-08-04 Ed Schonberg <schonberg@adacore.com>
2727
2728 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
2729 list of declaration to find previous subprogram, do not go to the
2730 original node of a generic unit.
2731
d2143736
EB
27322008-08-02 Eric Botcazou <ebotcazou@adacore.com>
2733
2734 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
2735 New case. Convert BOOLEAN_TYPE operation to the default integer type.
2736
a981c964
EB
27372008-08-01 Eric Botcazou <ebotcazou@adacore.com>
2738
2739 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
2740 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
2741 and adjust for above renaming.
2742 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
2743 gnu_expr_alt_type parameter. Convert the expression to it instead
2744 of changing its type in place.
2745 (build_function_stub): Adjust call to above function.
2746
8df2e902
EB
27472008-08-01 Eric Botcazou <ebotcazou@adacore.com>
2748
2749 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
2750 code. Do not get full definition of deferred constants with address
2751 clause for a use. Do not ignore deferred constant definitions with
2752 address clause. Ignore constant definitions already marked with the
2753 error node.
2754 <object>: Remove obsolete comment. For a deferred constant with
2755 address clause, get the initializer from the full view.
2756 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
2757 Rework and remove obsolete comment.
2758 <N_Object_Declaration>: For a deferred constant with address clause,
2759 mark the full view with the error node.
2760 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
2761 formatting nits.
2762
585df50b
AC
27632008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2764
2765 * rtsfind.ads: Add block IO versions of stream routines for Strings.
9e81dbc7 2766
585df50b
AC
2767 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
2768 sem_prag.adb, snames.adb, snames.ads, snames.h,
2769 par-prag.adb: Undo previous stream related changes.
9e81dbc7 2770
585df50b 2771 * s-rident.ads: Add new restriction No_Stream_Optimizations.
9e81dbc7 2772
585df50b
AC
2773 * s-ststop.ads, s-ststop.adb: Comment reformatting.
2774 Define enumeration type to designate different IO mechanisms.
2775 Enchance generic package Stream_Ops_Internal to include an
2776 implementation of Input and Output.
2777
2778 * exp_attr.adb (Find_Stream_Subprogram): If restriction
2779 No_Stream_Optimization is active, choose the default byte IO
2780 implementations of stream attributes for Strings.
2781 Otherwise use the corresponding block IO version.
2782
2eee5152 27832008-08-01 Olivier Hainque <hainque@adacore.com>
9e81dbc7 2784
585df50b
AC
2785 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
2786 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
2787
27882008-08-01 Robert Dewar <dewar@adacore.com>
2789
2790 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
2791 convert plain identifier into defining identifier.
2eee5152 2792
2b747305
AC
27932008-08-01 Robert Dewar <dewar@adacore.com>
2794
2795 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
2796 warnings
2797
2798 * lib-xref.adb: Add error defense.
2799
28002008-08-01 Bob Duff <duff@adacore.com>
2801
2802 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
2803
0c246603
AC
28042008-08-01 Gary Dismukes <dismukes@adacore.com>
2805
2806 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
2807 correct accessibility levels. In the "when others" case, retrieve the
2808 access level of the Etype of Prev rather than Prev_Orig, because the
2809 original exression has not always been analyzed.
2810
28112008-08-01 Robert Dewar <dewar@adacore.com>
2812
2813 * prj-nmsc.adb: Minor reformatting
2814
2815 * sem_ch4.adb: Minor reformatting
2816 Minor code reorganization
2817
2818 * prj.ads: Minor reformatting
2819
2820 * s-os_lib.adb: Minor reformatting
2821
2822 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
2823 half encodings
2824
2825 * scans.ads: Minor reformatting.
2826
2827 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
2828 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
2829
2830 * sem_res.adb:
2831 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2832
2833 * sem_ch12.adb: Minor comment reformatting
2834
2835 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
2836 keyword
2837
1cb17b78
AC
28382008-08-01 Robert Dewar <dewar@adacore.com>
2839
2840 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
2841 generating code
2842
28432008-08-01 Ed Schonberg <schonberg@adacore.com>
2844
2845 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
2846 converted is a real literal and the target type has static bounds,
2847 perform the conversion exactly to prevent floating-point anomalies on
2848 some targets.
2849
28502008-08-01 Vincent Celier <celier@adacore.com>
2851
2852 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
9e81dbc7 2853
1cb17b78 2854 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
9e81dbc7 2855
1cb17b78
AC
2856 * prj.adb (Object_Exist_For): Use Object_Generated, not
2857 Objects_Generated that is removed and was never modified anyway.
2858
2859 * prj.ads:
2860 (Path_Syntax_Kind): New enumeration type
2861 (Language_Config): New component Path_Syntax, defaulted to Host.
2862 Components PIC_Option and Objects_Generated removed, as they are not
2863 used.
2864
2865 * snames.adb: New standard name Path_Syntax
9e81dbc7 2866
1cb17b78
AC
2867 * snames.ads: New standard name Path_Syntax
2868
28692008-08-01 Vincent Celier <celier@adacore.com>
2870
2871 * mlib-utl.adb:
2872 (Adalib_Path): New variable to store the path of the adalib directory
2873 when procedure Specify_Adalib_Dir is called.
2874 (Lib_Directory): If Adalib_Path is not null, return its value
2875 (Specify_Adalib_Dir): New procedure
9e81dbc7 2876
1cb17b78
AC
2877 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
2878
28792008-08-01 Ed Schonberg <schonberg@adacore.com>
2880
2881 * sem_prag.adb:
2882 (Check_Precondition_Postcondition): If not generating code, analyze the
2883 expression in a postcondition that appears in a subprogram body, so that
2884 it is properly decorated for ASIS use.
2885
28862008-08-01 Gary Dismukes <dismukes@adacore.com>
2887
2888 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
2889 Orig_Prev to Prev in the case where the actual is N_Function_Call or
2890 N_Identifier. This was interfering with other cases that are rewritten
2891 as N_Identifier, such as allocators, resulting in passing of the wrong
2892 accessibility level, and based on testing this code is apparently no
2893 longer needed at all.
2894
28952008-08-01 Ed Schonberg <schonberg@adacore.com>
2896
2897 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
2898 procedure call whose prefix
2899 is a parameterless function call that returns an access_to_procedure.
2900
d1b4f87d
AC
29012008-08-01 Jose Ruiz <ruiz@adacore.com>
2902
2903 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
2904 for RTX. Adding a suffix that is incremented at each iteration.
2905
29062008-08-01 Robert Dewar <dewar@adacore.com>
2907
2908 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
2909 Raise_Exception
2910
29112008-08-01 Jerome Lambourg <lambourg@adacore.com>
2912
2913 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
2914 paths, which are authorized by Windows but can lead to errors when used
2915 elsewhere.
2916
cfb02ad1
AC
29172008-08-01 Ed Schonberg <schonberg@adacore.com>
2918
2919 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
2920 a pending instantiation for the body of a subprogram that is to be
2921 inlined.
2922
2923 * sem_ch12.adb:
2924 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
2925
2926 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
2927 create a pending instance for its body, so that calls to the subprogram
2928 can be inlined by the back-end.
2929
29302008-08-01 Jose Ruiz <ruiz@adacore.com>
2931
2932 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
2933 rts-rtx-w32).
2934
e1bb4e71
AC
29352008-08-01 Robert Dewar <dewar@adacore.com>
2936
2937 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
2938
29392008-08-01 Doug Rupp <rupp@adacore.com>
2940
2941 * gnat_rm.texi: Document new mechanism Short_Descriptor.
9e81dbc7 2942
e1bb4e71
AC
2943 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
2944 mechanism values.
2945
2946 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2947 mechanism and Short_Descriptor mechanism values.
2948
2949 * snames.adb (preset_names): Add short_descriptor entry.
2950
2951 * snames.ads: Add Name_Short_Descriptor.
2952
2953 * types.h: Add new By_Short_Descriptor mechanism values.
2954
2955 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
2956 mechanism and Short_Descriptor mechanism values.
2957
2958 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
2959 values.
2960 (Descriptor_Codes): Modify range for new mechanism values.
2961
2962 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
2963 mechanism values.
2964
2965 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
2966 (gnat_to_gnu_param): Handle By_Short_Descriptor.
2967
2968 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
2969 (build_vms_descriptor32): New prototype.
2970 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
2971
2972 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
2973 argument in call fill_vms_descriptor.
2974
2975 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
2976 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
9e81dbc7 2977 (build_vms_descriptor): Renamed from build_vms_descriptor64.
e1bb4e71
AC
2978 (convert_vms_descriptor32): New function.
2979 (convert_vms_descriptor64): New function.
2980 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
2981 descriptors.
2982
2983 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
2984 no longer needed.
2985
29862008-08-01 Jose Ruiz <ruiz@adacore.com>
2987
2988 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
2989 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
2990 name.
2991
bca3ab79
AC
29922008-08-01 Jose Ruiz <ruiz@adacore.com>
2993
2994 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
2995 current directory so only fully qualified names are allowed.
2996
29972008-08-01 Robert Dewar <dewar@adacore.com>
2998
2999 * gnat_ugn.texi:
3000 Minor editing, remove uncomfortable use of semicolon
3001
3002 * s-ststop.adb: Add some ??? comments
3003
3004 * sem_ch10.adb: Minor reformatting
3005
3006 * snames.ads:
3007 Minor comment fixes, some pragmas were not properly
3008 categorized in the comments, documentation change only
3009
3010 * xref_lib.adb: Minor reformatting
3011
3012 * sinput.adb: Minor reformatting
3013
3014 * gnatchop.adb: Minor reformatting
3015
3016 * sem_util.ads: Minor reformatting.
3017
3018 * opt.ads: Minor documentation fix
3019
3020 * scng.adb: Minor reformatting
3021
3022 * prj-part.adb: Update comments
3023
30242008-08-01 Ed Schonberg <schonberg@adacore.com>
3025
3026 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
3027 tagged synchronized type, use corresponding record type.
3028
30292008-08-01 Doug Rupp <rupp@adacore.com>
3030
3031 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
3032 dummy transfer address for debugging.
9e81dbc7 3033
bca3ab79
AC
3034 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
3035
3036 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
3037
4c5a0615
EB
30382008-07-31 Eric Botcazou <ebotcazou@adacore.com>
3039
3040 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
3041 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
3042
964771d9
AC
30432008-07-31 Pascal Obry <obry@adacore.com>
3044
3045 * prj-nmsc.adb: Keep Object and Exec directory casing.
3046
30472008-07-31 Jose Ruiz <ruiz@adacore.com>
3048
3049 * system-rtx-rtss.ads
3050 Change the default stack size. It is important to set the commit part.
9e81dbc7 3051
964771d9
AC
3052 * s-taprop-rtx.adb
3053 (Initialize): Get the clock resolution.
3054 (RT_Resolution): Return the clock resolution that is indicated by the
3055 system.
3056
3057 * s-parame-vxworks.adb
3058 Document that this body is used for RTX in RTSS (kernel) mode.
3059
3060 * gcc-interface/Makefile.in
3061 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
3062 s-parame-vxworks.adb body in order to have reasonable stack sizes in
3063 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
3064 cannot ask for too big values.
3065
30662008-07-31 Robert Dewar <dewar@adacore.com>
3067
3068 * exp_aggr.adb: Minor reformatting
3069
3070 * makeutl.adb: Minor reformatting
3071
3072 * prj-env.adb: Minor reformatting
3073
1e0f7ffb
AC
30742008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3075
3076 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
3077 tagged type is completed by a concurrent type.
3078
30792008-07-31 Gary Dismukes <dismukes@adacore.com>
3080
3081 * sem_aggr.adb:
3082 (Resolve_Record_Aggregate): Bypass error that a type without
3083 components must have a "null record" aggregate when compiling for Ada
3084 2005, since it's legal to give an aggregate of form (others => <>)
3085 for such a type.
3086
fa4bc5ab
AC
30872008-07-31 Javier Miranda <miranda@adacore.com>
3088
3089 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
3090 handle synchronized types. Required to handle well the object.operation
3091 notation applied to synchronized types.
3092
30932008-07-31 Quentin Ochem <ochem@adacore.com>
3094
3095 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
3096 anymore - just used internally.
3097 Added handling of very small tasks - when the theoretical size is
3098 already full at the point of the call.
3099 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
3100 not need to be added to the result.
3101
31022008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3103
3104 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
3105 corresponding spec is a primitive wrapper. Update comment.
3106
31072008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3108
3109 * bindgen.adb Comment reformatting. Update the list of run-time globals.
3110 (Gen_Adainit_Ada): Add the declaration, import and value set for
3111 configuration flag Canonical_Streams.
3112 (Gen_Adainit_C): Add the declaration and initial value of external
3113 symbol __gl_canonical_streams.
9e81dbc7 3114
fa4bc5ab 3115 * init.c: Update the list of global values computed by the binder.
9e81dbc7 3116
fa4bc5ab 3117 * opt.ads: Add flag Canonical_Streams.
9e81dbc7 3118
fa4bc5ab
AC
3119 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
3120 semantically handled pragmas.
9e81dbc7 3121
fa4bc5ab
AC
3122 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
3123 (Analyze_Pragma): Add case for pragma Canonical_Streams.
9e81dbc7 3124
fa4bc5ab 3125 * snames.adb: Add character value for name Canonical_Streams.
9e81dbc7 3126
fa4bc5ab
AC
3127 * snames.ads:
3128 Add Name_Canonical_Streams to the list of configuration pragmas.
3129 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
9e81dbc7 3130
fa4bc5ab 3131 * snames.h: Add a definition for Pragma_Canonical_Streams.
9e81dbc7 3132
fa4bc5ab
AC
3133 * s-ststop.adb:
3134 Add a flag and import to seize the value of external symbol
3135 __gl_canonical_streams. Update comment and initial value of constant
3136 Use_Block_IO.
9e81dbc7 3137
fa4bc5ab 3138 * gnat_rm.texi: Add section of pragma Canonical_Streams.
9e81dbc7 3139
fa4bc5ab
AC
3140 * gnat_ugn.texi:
3141 Add pragma Canonical_Streams to the list of configuration pragmas.
3142
31432008-07-31 Ed Schonberg <schonberg@adacore.com>
3144
3145 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
3146 has the form A.B.C and B is a unit renaming, analyze its compilation
3147 unit and add a with_clause on A.b to the context.
3148
f32b9cd1
AC
31492008-07-31 Vincent Celier <celier@adacore.com>
3150
3151 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
3152 return the empty string, instead of raising Constraint_Error.
3153
31542008-07-31 Gary Dismukes <dismukes@adacore.com>
3155
3156 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
9e81dbc7 3157
f32b9cd1
AC
3158 * checks.adb (Apply_Accessibility_Check): Insert the check on
3159 Insert_Node.
9e81dbc7 3160
f32b9cd1
AC
3161 * exp_attr.adb:
3162 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
3163 to new parameter Insert_Node on call to Apply_Accessibility_Check.
3164 Necessary to distinguish the insertion node because the dereferenced
3165 formal may come from a rename, but the check must be inserted in
3166 front of the attribute.
9e81dbc7 3167
f32b9cd1
AC
3168 * exp_ch4.adb:
3169 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
3170 call to Apply_Accessibility_Check.
3171 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
3172 on call to Apply_Accessibility_Check.
3173 Minor reformatting
3174
31752008-07-31 Javier Miranda <miranda@adacore.com>
3176
3177 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
3178 types when the candidate type is a synchronized type.
9e81dbc7 3179
f32b9cd1
AC
3180 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
3181 types, and complete management of synchronized types adding missing
3182 code to handle formal that is a synchronized type.
9e81dbc7 3183
f32b9cd1
AC
3184 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
3185 are not available and cause the compiler to blowup. Found compiling
3186 test with switch -gnatc
9e81dbc7 3187
f32b9cd1
AC
3188 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
3189 Has_Correct_Formal_Mode plus code cleanup.
3190
e92c92b2
AC
31912008-07-31 Bob Duff <duff@adacore.com>
3192
3193 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
3194 recognized as two end-of-lines, but it should be just one.
3195
31962008-07-31 Thomas Quinot <quinot@adacore.com>
3197
3198 * exp_ch9.adb: Minor reformatting
3199
3200 * tbuild.ads: Fix several occurrences of incorrectly referring to
3201 Name_Find as Find_Name.
3202
32032008-07-31 Ed Schonberg <schonberg@adacore.com>
3204
3205 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
3206 and the context is an object declaration with non-static bounds, treat
3207 the aggregate as non-static.
3208
32092008-07-31 Vincent Celier <celier@adacore.com>
3210
3211 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
3212 Move back spec of Parse_Single_Project to body, as it is not called
3213 outside of package Prj.Part.
3214 (Project_Data): Remove components Linker_Name, Linker_Path and
3215 Minimum_Linker_Options as they are no longer set.
3216 Remove function There_Are_Ada_Sources from package Prj and move code
3217 in the only place it was used, in Prj.Env.Set_Ada_Paths.
3218
ee5d7272
AC
32192008-07-31 Arnaud Charlet <charlet@adacore.com>
3220
3221 * mlib-utl.ads: Fix typo.
3222
32232008-07-31 Robert Dewar <dewar@adacore.com>
3224
3225 * sem_ch12.adb: Minor reformatting
3226
32272008-07-31 Sergey Rybin <rybin@adacore.com>
3228
3229 * gnat_ugn.texi: Change the description of the
3230 Overly_Nested_Control_Structures: now the rule always requires a
3231 positive parameter for '+R' option
3232
32332008-07-31 Thomas Quinot <quinot@adacore.com>
3234
3235 * g-pehage.adb: Minor reformatting
3236
32372008-07-31 Pascal Obry <obry@adacore.com>
3238
3239 * s-finimp.ads: Minor reformatting.
3240
32412008-07-31 Vincent Celier <celier@adacore.com>
3242
3243 * s-regexp.ads: Minor comment fix
3244
32452008-07-31 Arnaud Charlet <charlet@adacore.com>
3246
3247 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
3248 so that we can compile this file successfully with -gnatc.
3249
32502008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3251
3252 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
3253 of the type when looking for stream subprograms for type String,
3254 Wide_String and Wide_Wide_String.
9e81dbc7 3255
ee5d7272
AC
3256 * s-ststop.adb: Change the initialization expression of constant
3257 Use_Block_IO.
3258
32592008-07-31 Geert Bosch <bosch@adacore.com>
3260
3261 * arit64.c:
3262 New file implementing __gnat_mulv64 signed integer multiplication with
3263 overflow checking
3264
3265 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
3266
3267 * gcc-interface/gigi.h:
3268 (standard_types): Add ADT_mulv64_decl
3269 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
3270
3271 * gcc-interface/utils.c:
3272 (init_gigi_decls): Add initialization of mulv64_decl
3273
3274 * gcc-interface/trans.c:
3275 (build_unary_op_trapv): New function
3276 (build_binary_op_trapv): New function
3277 (gnat_to_gnu): Use the above functions instead of
3278 build_{unary,binary}_op
3279
3280 * gcc-interface/Makefile.in
3281 (LIBGNAT_SRCS): Add arit64.c
3282 (LIBGNAT_OBJS): Add arit64.o
3283
32842008-07-31 Vincent Celier <celier@adacore.com>
3285
3286 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
3287 Linker'Default_Switches are declared. Warn if they are declared.
3288
32892008-07-31 Ed Schonberg <schonberg@adacore.com>
3290
3291 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
3292 Insert_Actions to place the pointer declaration in the code, rather
3293 than Insert_Before_And_Analyze, so that insertions of temporaries are
3294 kept in the proper order when transient scopes are present.
3295
3296
b38c3c9e
AC
32972008-07-31 Robert Dewar <dewar@adacore.com>
3298
3299 * einfo.adb (Spec_PPC): Now defined for generic subprograms
9e81dbc7 3300
b38c3c9e 3301 * einfo.ads (Spec_PPC): Now defined for generic subprograms
9e81dbc7 3302
b38c3c9e
AC
3303 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
3304 subprogram case
3305
33062008-07-31 Vincent Celier <celier@adacore.com>
3307
3308 * s-os_lib.adb: Minor comment fix
3309
33102008-07-31 Ed Schonberg <schonberg@adacore.com>
3311
3312 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
3313 transfer pre/postconditions from generic copy to original tree, so that
3314 they will appear in each instance.
3315 (Process_PPCs): Do not transform postconditions into a procedure in a
3316 generic context, to prevent double expansion of check pragmas.
9e81dbc7 3317
b38c3c9e
AC
3318 * sem_attr.adb: In an instance, the prefix of the 'result attribute
3319 can be the renaming of the
3320 current instance, so check validity of the name accordingly.
3321
024238a2
AC
33222008-07-31 Robert Dewar <dewar@adacore.com>
3323
3324 * mlib-utl.ads: Minor reformatting
3325
33262008-07-31 Ed Schonberg <schonberg@adacore.com>
3327
3328 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
3329 from context. This attribute must be usable in Ada95 mode.
3330 The attribute can appear in the body of a function marked
3331 Inline_Always, but in this case the postocondition is not enforced.
9e81dbc7 3332
024238a2
AC
3333 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
3334 of an inlined call pre- and postconditions are legal
3335
33362008-07-31 Vincent Celier <celier@adacore.com>
3337
3338 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
3339 were for gprmake only
3340
33412008-07-31 Robert Dewar <dewar@adacore.com>
3342
3343 * gnat_ugn.texi: Update -gnatN documentation.
3344
3345 * gnat_rm.texi: Add note about pre/postcondition
3346 pragmas not checked in conjunction with front-end inlining.
3347
035b2a77
AC
33482008-07-31 Robert Dewar <dewar@adacore.com>
3349
3350 * g-pehage.adb, g-pehage.ads: Minor reformatting
3351
33522008-07-31 Arnaud Charlet <charlet@adacore.com>
3353
3354 * mlib-utl.ads, prj-makr.ads: Add comments.
3355
636b71b9
AL
33562008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3357
9e81dbc7 3358 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
636b71b9
AL
3359 [WINDOWS]: Add s-winext.o.
3360
01ddebf2
EB
33612008-07-30 Eric Botcazou <ebotcazou@adacore.com>
3362
3363 PR ada/36554
3364 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
3365 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
3366 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
3367 Set precision to 1 for subtype of BOOLEAN_TYPE.
3368 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
3369 (make_type_from_size): Deal with BOOLEAN_TYPE.
3370 * gcc-interface/misc.c (gnat_print_type): Likewise.
3371 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
3372 Set boolean_type_node as its translation in the table, as well
3373 as boolean_false_node for False and boolean_true_node for True.
3374 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
3375 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
3376 (create_param_decl): Deal with BOOLEAN_TYPE.
3377 (build_vms_descriptor): Likewise.
3378 (build_vms_descriptor64): Likewise.
3379 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
3380
2a9cc4de
AC
33812008-07-30 Robert Dewar <dewar@adacore.com>
3382
3383 * exp_ch9.adb: Minor reformatting
3384
3385 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
3386 if no primitive operation is found.
3387
3388 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
3389
3390 * sem_ch8.adb: Minor reformatting
3391
33922008-07-30 Laurent Pautet <pautet@adacore.com>
3393
3394 * g-pehage.adb:
3395 Remove a limitation on the length of the words handled by the minimal
3396 perfect hash function generator.
3397
3398 * g-pehage.ads:
3399 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
3400 Fix some typos.
3401
5cc6fa41
AC
34022008-07-30 Robert Dewar <dewar@adacore.com>
3403
3404 * gnatlink.adb: Minor reformatting
3405
34062008-07-30 Thomas Quinot <quinot@adacore.com>
3407
3408 * rtsfind.adb (Check_RPC): Check version consistency even when not
3409 generating RCI stubs. Provide more detailed error message in case of
3410 mismatch.
3411
34122008-07-30 Ed Schonberg <schonberg@adacore.com>
3413
3414 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
3415 as a actual in an instance, check for a missing attribute to prevent
3416 program_error on an illegal program.
9e81dbc7 3417
5cc6fa41
AC
3418 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
3419 error if primitive is not found, so that exception can be handled
3420 elsewhere on illegal programs.
3421
34222008-07-30 Robert Dewar <dewar@adacore.com>
3423
3424 * uintp.adb (UI_GCD): Fix potential overflow
3425
34262008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
3427
3428 * einfo.adb: Flag245 is now used.
3429 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
3430 check to include functions.
3431 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
3432 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
3433 include functions.
3434 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
3435 to the list of displayed flags.
3436
3437 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
3438 Wrapped_Entity. These two flags are now present in functions.
3439 New flag Is_Private_Primitive.
3440 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
3441
3442 * exp_ch9.adb:
3443 (Build_Wrapper_Bodies): New subprogram.
3444 (Build_Wrapper_Body): The spec and body have been moved to in
3445 Build_Wrapper_ Bodies. Code cleanup.
3446 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
3447 Wrappers are now generated for primitives declared between the private
3448 and full view of a concurrent type that implements an interface.
3449 (Build_Wrapper_Specs): New subprogram.
3450 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
3451 creation mechanism with a call to Build_Wrapper_Bodies.
3452 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
3453 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
3454 (Expand_N_Task_Body): Replace the wrapper body creation
3455 mechanism with a call to Build_Wrapper_Bodies.
3456 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
3457 creation mechanism with a call to Build_Wrapper_Specs.
3458 (Is_Private_Primitive_Subprogram): New subprogram.
3459 (Overriding_Possible): Code cleanup.
3460 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
3461
3462 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
3463
3464 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
3465 (Process_Full_View): Build wrapper specs for all primitives
3466 that belong to a private view completed by a concurrent type
3467 implementing an interface.
9e81dbc7 3468
5cc6fa41
AC
3469 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
3470 is a primitive of a
3471 concurrent type with a private view that implements an interface, try to
3472 find the proper spec.
3473 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
3474 primitive if the type of its first parameter is a non-generic tagged
3475 private type.
3476 (Analyze_Subprogram_Specification): Code reformatting.
3477 (Disambiguate_Spec): New routine.
3478 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
3479 (Is_Private_Concurrent_Primitive): New routine.
3480
3481 * sem_ch6.ads:
3482 (Find_Corresponding_Spec): Add a formal to control the output of errors.
3483
6ca2b0a0
DR
34842008-07-30 Doug Rupp <rupp@adacore.com>
3485
3486 * gigi.h (build_vms_descriptor64): New function prototype.
3487 (fill_vms_descriptor): Modified function prototype.
3488
3489 * utils.c (build_vms_descriptor64): New function.
3490
3491 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
3492
3493 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
3494 argument.
3495
3496 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
3497 64bit and 32bit descriptor and save the 64bit version as an alternate
3498 TREE_TYPE in the parameter.
3499 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
3500 thin pointer.
3501
3502 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
3503
002b2ad6
AC
35042008-07-30 Robert Dewar <dewar@adacore.com>
3505
3506 * make.adb: Minor reformatting
3507
3508 * mlib-utl.adb: Minor reformatting
3509
3510 * osint.ads: Minor reformatting
3511
35122008-07-30 Jose Ruiz <ruiz@adacore.com>
3513
3514 * adaint.c
3515 (__gnat_file_exists): Do not use __gnat_stat for RTX.
3516 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
3517 avoid the use of this symbol from libgcc.a in RTX kernel mode.
3518
3519 * cio.c
3520 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
3521 the function RtPrintf for console output.
9e81dbc7 3522
002b2ad6 3523 * argv.c Do not use the environ variable for RTX.
9e81dbc7 3524
002b2ad6
AC
3525 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
3526 been moved before the call to Osint.Add_Default_Search_Dirs in order
3527 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
3528 from the appropriate run time.
9e81dbc7 3529
002b2ad6
AC
3530 * targparm.ads
3531 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
3532 target is a RTSS module for RTX.
9e81dbc7 3533
002b2ad6
AC
3534 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
3535 RTX_RTSS_Kernel_Module
3536 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
3537
3538 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
3539 exception handling mechanism for Windows and RTX in Win32 mode, but
3540 not for RTX in kernel mode (RTSS).
3541 (LIBGNAT_SRCS): Remove ada.h
3542
00afcaa0
PB
35432008-07-30 Paolo Bonzini <bonzini@gnu.org>
3544
3545 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
3546 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
3547 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
3548 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
3549 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
3550 ALL_ADA_CFLAGS): Remove.
3551 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
3552 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
3553 (GCC_CFLAGS): Remove X_CFLAGS.
3554 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
3555 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
3556 (ADA_CFLAGS): Substitute.
3557
a7dafa20
LG
35582008-07-30 Laurent Guerby <laurent@guerby.net>
3559
9e81dbc7
AS
3560 PR ada/5911
3561 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
3562 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
3563 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
3564 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
3565 by stamp-gnatlib2-rts.
3566
70b1e376
RW
35672008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3568
3569 PR documentation/15479
3570 * gnat-style.texi: Remove AdaCore copyright statement and GPL
3571 statement for GNAT. Add @copying stanza, use it. Update to
3572 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
3573 title as Front-Cover Text.
3574 * gnat_rm.texi: Likewise.
3575 * gnat_ugn.texi: Likewise.
3576
343eba42
JH
35772008-07-29 Jan Hubicka <jh@suse.cz>
3578
3579 * trans.c (process_inlined_subprograms): Remove tree_really_inline
3580 check.
3581
ebf5ba04
AC
35822008-07-29 Arnaud Charlet <charlet@adacore.com>
3583
3584 * gcc-interface: New directory.
3585
3586 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
3587 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
3588 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
3589 to gcc-interface subdirectory.
3590
46897370
AL
35912008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3592
3593 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
3594
e90acd93
JH
35952008-07-28 Jan Hubicka <jh@suse.cz>
3596
3597 * misc.c (gnat_post_options): Do not set flag_no_inline.
3598
726a989a
RB
35992008-07-28 Richard Guenther <rguenther@suse.de>
3600
3601 Merge from gimple-tuples-branch.
3602
3603 2008-07-22 Olivier Hainque <hainque@adacore.com>
3604
3605 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
3606 this is called for an elab proc to be discarded if empty.
3607 * utils.c (end_subprog_body): Honor ELAB_P.
3608 (build_function_stub): Adjust call to end_subprog_body.
3609 * trans.c (Subprogram_Body_to_gnu): Likewise.
3610 (gigi): Reorganize processing of elab procs to prevent
3611 gimplifying twice, using the new end_subprog_body argument.
3612
3613 2008-07-19 Richard Guenther <rguenther@suse.de>
3614
3615 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
3616 (utils.o): Likewise.
3617 * trans.c: Include tree-iterator.h.
3618 (gnat_gimplify_expr): Adjust prototype. Fix typo.
3619 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
3620 (set_expr_location_from_node): Likewise.
3621 (gigi): Tuplify.
3622 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
3623 of GENERIC_NEXT.
3624 * utils.c: Include tree-iterator.h.
3625 * gigi.h (gnat_gimplify_expr): Adjust prototype.
3626
3627 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
3628
3629 * trans.c: Include gimple.h instead of tree-gimple.h.
3630 * utils.c: Same.
3631
3632 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
3633
3634 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
3635
8ae3959e 36362008-07-25 Jan Hubicka <jh@suse.cz>
7e8b322a 3637
8ae3959e
EB
3638 * utils.c (end_subprog_body): Remove inline trees check.
3639 * misc.c (gnat_post_options): Do not set flag_inline_trees.
7e8b322a 3640
4a7bb85b
RO
36412008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3642
3643 * raise-gcc.c: Move tsystem.h before tm.h.
3644
ec45d105
AC
36452008-07-20 Arnaud Charlet <charlet@adacore.com>
3646
3647 * gnathtml.pl: New file.
3648
95331614 36492008-07-19 Olivier Hainque <hainque@adacore.com>
8ae3959e 3650
95331614
OH
3651 * targtyps.c (get_target_default_allocator_alignment): Use
3652 MALLOC_ABI_ALIGNMENT.
3653
dd7ac716
OH
36542008-07-17 Olivier Hainque <hainque@adacore.com>
3655
3656 * adaint.c (__MINGW32__ section): Include ctype.h and define
3657 a fallback ISALPHA if IN_RTS.
9e81dbc7 3658 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
dd7ac716 3659
a7a46bb2
OH
36602008-07-17 Olivier Hainque <hainque@adacore.com>
3661
3662 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
3663 argument, to apply to references in addition to definitions. Prevent
3664 setting TREE_STATIC on externals.
3665 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
3666
66bfd481
RW
36672008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3668
3669 PR documentation/15479
3670 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
3671 Replace backets around optional parameters with @ovar
3672 where possible, use @r{[}, @r{]} otherwise.
3673 Replace some @r, @i, and @emph with @var where appropriate.
3674
7a803dd8
EB
36752008-07-02 Eric Botcazou <ebotcazou@adacore.com>
3676
3677 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
3678
7d71283c
KG
36792008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3680
3681 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
3682 -Wc++-compat warnings.
3683 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
3684 __gnat_locate_exec_on_path): Likewise.
3685 * decl.c (annotate_value): Likewise.
3686 * misc.c (gnat_handle_option): Likewise.
3687 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
3688 post_error_ne_tree): Likewise.
3689
d9338c67
EB
36902008-06-27 Eric Botcazou <ebotcazou@adacore.com>
3691
3692 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
3693 version of its type, attempt to first convert its elements.
3694
b4b010ad
CP
36952008-06-26 Chris Proctor <chrisp_42@bigpond.com>
3696
3697 * Makefile.in: Fix *86 kfreebsd target specific pairs.
3698
0ee61065
ST
36992008-06-25 Samuel Tardieu <sam@rfc1149.net>
3700
3701 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
3702
324ed5a6
EB
37032008-06-24 Eric Botcazou <ebotcazou@adacore.com>
3704
3705 * utils2.c (known_alignment): Derive the alignment from pointed-to
3706 types only if it is otherwise unknown.
3707 <INTEGER_CST>: Tidy.
3708 <MULT_EXPR>: Likewise.
3709 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
3710 that of the base.
3711
2d31e498
JDA
37122008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3713
3714 PR ada/36573
3715 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
3716
6ccde948
RW
37172008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3718
3719 * gnat_rm.texi (Implementation Defined Characteristics)
3720 (Standard Library Routines): Use @smallexample for indented
3721 text. Drop Indentation outside examples.
3722 * gnat_ugn.texi: Likewise.
3723
d8612af2
OH
37242008-06-13 Olivier Hainque <hainque@adacore.com>
3725
3726 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
3727 if undefined.
3728 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
3729 realignment with force_align_arg_pointer attribute on foreign
3730 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
9e81dbc7 3731
ca789c7f
OH
37322008-06-13 Olivier Hainque <hainque@adacore.com>
3733
3734 * utils.c (rest_of_record_type_compilation): When computing
3735 encodings for the components of a variable size type, early
3736 strip conversions on the current position expression to make
3737 sure it's shape is visible. Use remove_conversions for this
3738 purpose.
3739
1dd4a3e6
EB
37402008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3741
3742 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
3743 constrained subtype of a discriminated type, discard the fields that
3744 are beyond its limits according to its size.
3745
12ae9b26
OH
37462008-06-10 Olivier Hainque <hainque@adacore.com>
3747
3748 * utils.c (create_subprog_decl): If this is for the 'main' entry
3749 point according to the asm name, redirect main_identifier_node.
3750
912cb442
EB
37512008-06-09 Eric Botcazou <ebotcazou@adacore.com>
3752
3753 * decl.c (components_to_record): Adjust the packedness for the
3754 qualified union as well.
3755
4a598c32
AC
37562008-06-09 Arnaud Charlet <charlet@adacore.com>
3757
3758 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
3759 checks non fatal.
3760
4b92fd3c
ST
37612008-06-07 Samuel Tardieu <sam@rfc1149.net>
3762
3763 * sem_res.adb (Large_Storage_Type): A type is large if it
3764 requires as many bits as Positive to store its values and its
3765 bounds are known at compile time.
3766 * sem_ch13.adb (Minimum_Size): Note that this function returns
3767 0 if the size is not known at compile time.
3768
968c8001
OH
37692008-06-06 Nicolas Setton <setton@adacore.com>
3770 Olivier Hainque <hainque@adacore.com>
3771
3772 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
3773 attribute, parallel descriptive type attached to another
3774 type for debug info generation purposes.
3775 * utils.c (add_parallel_type): New function, register
3776 parallel type to be attached to a type.
3777 (get_parallel_type): New function, fetch a registered
3778 parallel type, if any.
3779 (rest_of_record_type_compilation): Register the parallel
3780 type we make for variable size records.
3781 * gigi.h (add_parallel_type, get_parallel_type): Declare.
3782 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
3783 parallel debug types we make.
3784 * trans.c (extract_encoding, decode_name): New functions.
3785 (gigi): If the DWARF attribute extensions are available, setup
3786 to use them.
3787 * lang.opt: Register language specific processing request
3788 for -gdwarf+.
3789 * misc.c (gnat_dwarf_extensions): New global variable. How much
3790 do we want of our DWARF extensions. 0 by default.
3791 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
3792 (gnat_post_options): Map gnat_dwarf_extensions to the
3793 commonuse_gnu_debug_info_extensions for later processing.
9e81dbc7 3794
b30199b8
ST
37952008-06-04 Samuel Tardieu <sam@rfc1149.net>
3796
3797 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
3798
30783513
RW
37992008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3800
3801 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
3802 * gnat_ugn.texi (Style Checking)
3803 (Adding the Results of Compiler Checks to gnatcheck Output)
3804 (Example of Binder Output File): Fix typos.
3805 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
3806 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
3807 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
3808 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
3809 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
3810 sinfo.ads, utils.c: Fix typos in comments.
3811 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
3812
fb8368fd
AC
38132008-05-29 Thomas Quinot <quinot@adacore.com>
3814
3815 * sem_eval.adb: Minor reformatting
3816
38172008-05-29 Ed Schonberg <schonberg@adacore.com>
3818
3819 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
3820 is abstract, do not apply abstractness check on subprogram if this is
3821 a renaming declaration.
3822
38232008-05-29 Arnaud Charlet <charlet@adacore.com>
3824
3825 PR ada/864
3826 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
3827 allow recognition of program suffix in addition to prefix.
9e81dbc7 3828
fb8368fd 3829 * gnatchop.adb (Locate_Executable): Add support for prefix.
9e81dbc7 3830
fb8368fd
AC
3831 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
3832 mlib-utl.adb: Adjust calls to Program_Name.
3833
fff3f472
AC
38342008-05-29 Robert Dewar <dewar@adacore.com>
3835
3836 * sem_ch3.adb: Minor reformatting
3837 * sem_prag.adb: Minor reformatting
3838 * sem_res.adb: Minor reformatting
3839 * sinput-p.ads: Minor reformatting
3840
38412008-05-29 Javier Miranda <miranda@adacore.com>
3842
3843 * sem_util.adb:
3844 (Abstract_Interface_List): Add missing support for full type-declaration
3845 associated with synchronized types.
3846
38472008-05-29 Robert Dewar <dewar@adacore.com>
3848
3849 * sem_eval.adb (Is_Same_Value): Take care of several more cases
3850
acca98c0
AC
38512008-05-28 Ed Schonberg <schonberg@adacore.com>
3852
3853 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
3854 access type, wrap the expression in a conversion to force an
3855 accessibility check.
3856
3857 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
3858 accessibility checks even when expansion is disabled in order to
3859 generate messages in the presence of previous errors or in
3860 semantics-only mode.
3861
38622008-05-28 Eric Botcazou <ebotcazou@adacore.com>
3863
3864 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
3865 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
3866
38672008-05-28 Vincent Celier <celier@adacore.com>
3868
3869 PR ada/34446
3870 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
3871 preprocessing expressions
3872
38732008-05-28 Vincent Celier <celier@adacore.com>
3874
3875 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
3876 for preprocessing
9e81dbc7 3877
acca98c0
AC
3878 * sinput-p.ads: Minor comment update and reformatting
3879
38802008-05-28 Ed Schonberg <schonberg@adacore.com>
3881
3882 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
3883 type has a deeper level than any master only when it is the type of an
3884 access parameter.
3885
8250171b
AC
38862008-05-28 Javier Miranda <miranda@adacore.com>
3887
3888 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
3889
38902008-05-28 Javier Miranda <miranda@adacore.com>
3891
3892 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
3893 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
3894 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
3895 Add code that was previously located in
3896 Find_Overridden_Synchronized_Primitive because it is only used here.
3897
38982008-05-28 Sergey Rybin <rybin@adacore.com>
3899
3900 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
3901 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
3902
00ea9517
RD
39032008-05-28 Robert Dewar <dewar@adacore.com>
3904
3905 * restrict.ads:
3906 Add missing restrictions, and properly label all GNAT defined ones
9e81dbc7 3907
00ea9517
RD
3908 * rtsfind.ads:
3909 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
3910 Add entry for Ada.Task_Termination.Set_Specific_Handler
3911 Add entry for Ada.Task_Termination.Specific_Handler
9e81dbc7 3912
00ea9517
RD
3913 * s-rident.ads:
3914 Add missing restrictions and properly mark all gnat defined ones
9e81dbc7 3915
00ea9517
RD
3916 * sem_ch3.adb:
3917 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
9e81dbc7 3918
00ea9517
RD
3919 * sem_res.adb:
3920 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
3921
3922 * gnat_rm.texi: Add missing restrictions, and properly label all
3923 GNAT defined ones
3924
39252008-05-28 Robert Dewar <dewar@adacore.com>
3926
3927 * restrict.adb:
3928 (Check_Restriction): violation of restriction No_Finalization is
3929 treated as a serious error to stop expansion
3930
39312008-05-28 Robert Dewar <dewar@adacore.com>
3932
3933 * exp_util.adb: Minor reformatting
3934 * exp_util.ads: Minor reformatting.
3935
0b795892
AC
39362008-05-28 Arnaud Charlet <charlet@adacore.com>
3937
3938 * Make-lang.in: Remove gprmake.
3939
3940 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
3941
5840819a
AC
39422008-05-28 Ed Schonberg <schonberg@adacore.com>
3943
3944 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
3945 improper progenitor names, and avoid cascaded errors.
3946
39472008-05-28 Robert Dewar <dewar@adacore.com>
3948
3949 * gnat_rm.texi: Add note on Old giving warning when applied to constant
3950
3951 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
3952 a constant
3953
39542008-05-28 Robert Dewar <dewar@adacore.com>
3955
3956 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
3957 size
3958
39592008-05-28 Robert Dewar <dewar@adacore.com>
3960
3961 * exp_ch5.adb:
3962 (Expand_Simple_Function_Return): Copy unaligned result into temporary
3963
8c3dd7a8
JM
39642008-05-28 Javier Miranda <miranda@adacore.com>
3965
3966 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
3967 for user-defined predefined primitives.
9e81dbc7 3968
8c3dd7a8
JM
3969 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
3970 (Find_Overridden_Synchronized_Primitive): Ditto.
3971
3972 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
3973
35b80405
AC
39742008-05-27 Arnaud Charlet <charlet@adacore.com>
3975
3976 * a-ststio.adb, s-direio.adb:
3977 Further code clean up of previous change.
3978 Update comments.
3979
39802008-05-27 Vincent Celier <celier@adacore.com>
3981
3982 * prj-nmsc.adb: Minor reformatting
3983
39842008-05-27 Bob Duff <duff@adacore.com>
3985
3986 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
3987 untagged private type with a tagged full type, where the full type has
3988 a self reference, create the corresponding class-wide type early, in
3989 case the self reference is "access T'Class".
3990
39912008-05-27 Ed Schonberg <schonberg@adacore.com>
3992
3993 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
3994 tasks and context is an object declaration. create master entity before
3995 expansion.
3996
39972008-05-27 Robert Dewar <dewar@adacore.com>
3998
3999 * mlib-prj.adb: Minor reformatting
4000
4001 * prj-part.adb: Minor reformatting
4002
4003 * prj.ads: Minor reformatting
4004
4005 * exp_ch3.adb: Minor reformatting.
4006
4007 * sem_ch3.ads: Minor reformatting
4008
4009 * sem_eval.adb: Minor reformatting
4010
d5c998a9
AC
40112008-05-27 Vincent Celier <celier@adacore.com>
4012
4013 * gnatcmd.adb:
4014 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
4015
40162008-05-27 Ed Schonberg <schonberg@adacore.com>
4017
4018 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
4019 tasks, create an activation chain now, before the expansion into
4020 assignments and build-in-place calls that require the presence of an
4021 activation chain.
4022 (Backend_Processing_Possible): If the component type is inherently
4023 limited, the aggregate must be expanded into individual built-in-place
4024 assignments.
4025
4026 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
4027 determine whether an allocation extra parameter must be built, to
4028 handle case of a private type whose full type is a discriminated type
4029 with defaults.
4030
40312008-05-27 Bob Duff <duff@adacore.com>
4032
4033 * gnat_rm.texi:
4034 Document the new behavior regarding trampolines.
4035
40362008-05-27 Arnaud Charlet <charlet@adacore.com>
4037
4038 * a-direio.adb, a-sequio.adb: Replace address clause by
4039 unrestricted_access, simpler and compatible with .NET.
4040
40412008-05-27 Vincent Celier <celier@adacore.com>
4042
4043 * prj-part.adb:
4044 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
4045 a project file, so that symbolic links are not resolved.
4046
40472008-05-27 Arnaud Charlet <charlet@adacore.com>
4048
4049 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
4050 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
4051 portable across GNAT targets, since this kind of address clause is not
4052 supported by VM back-ends (.NET/JGNAT).
4053
79d2a727
AC
40542008-05-27 Arnaud Charlet <charlet@adacore.com>
4055
4056 * bindgen.adb: Update comments.
9e81dbc7 4057
79d2a727
AC
4058 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
4059
40602008-05-27 Vincent Celier <celier@adacore.com>
4061
4062 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
4063 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
4064 mlib-tgt.adb, prj-env.adb, prj-env.ads:
4065 (Path_Information): New record type
4066 Use component of type Path_Information when there are two paths, one in
4067 canonical format and one in display format.
4068 Update the project manager to these new components.
4069
0f99f391
AC
40702008-05-27 Robert Dewar <dewar@adacore.com>
4071
4072 * makeutl.adb: Minor reformatting
4073 * prj-nmsc.adb: Minor reformatting
4074 * s-stausa.adb: Minor reformatting
4075 * s-stausa.ads: Minor reformatting
4076 * sem_ch6.adb: Minor reformatting
4077
40782008-05-27 Thomas Quinot <quinot@adacore.com>
4079
4080 * sem_res.adb: Minor comment fixes
4081
d18af35f
AC
40822008-05-27 Thomas Quinot <quinot@adacore.com>
4083
4084 * makeutl.adb: Minor code reorganization
4085
4086 * exp_aggr.adb: Add ??? comment
4087 Fix typo
4088
4089 * exp_ch6.adb: Minor reformatting
4090
40912008-05-27 Quentin Ochem <ochem@adacore.com>
4092
4093 * s-stausa.adb (Initialize): Updated result initialization, and
4094 initialization of environment stack.
4095 (Fill_Stack): Improved computation of the pattern zone, taking into
4096 account already filled at the calling point.
4097 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
4098 Measure and Overflow_Guard.
4099 (Report_Result): Fixed computation of the result using new fields of
4100 Stack_Analyzer.
9e81dbc7 4101
d18af35f
AC
4102 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
4103 params by more explicit Stack_Size / Max_Pattern_Size params.
4104 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
4105 Added Stack_Used_When_Filling field.
4106 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
4107 Min_Measure and Max_Measure fields.
9e81dbc7 4108
d18af35f
AC
4109 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
4110
41112008-05-27 Vincent Celier <celier@adacore.com>
4112
4113 * prj-nmsc.adb:
4114 (Check_File): Make sure that a unit that replaces the same unit in a
4115 project being extended is properly processed.
4116
41172008-05-27 Ed Schonberg <schonberg@adacore.com>
4118
4119 * sem_ch3.adb:
4120 (Get_Discr_Value): Remove obsolete code that failed to find the value
4121 of a discriminant for an inherited task component appearing in a type
4122 extension.
4123
41242008-05-27 Thomas Quinot <quinot@adacore.com>
4125
4126 (System.File_IO.{Close, Delete, Reset}):
4127 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
9e81dbc7 4128
d18af35f
AC
4129 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
4130 Pass File parameter by reference.
4131
aeff280b
AC
41322008-05-27 Vincent Celier <celier@adacore.com>
4133
4134 * prj-nmsc.adb:
4135 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
4136 sources of the same project that have the same object file name.
4137 (Find_Explicit_Sources): Always remove a source exception that was not
4138 found.
4139
41402008-05-27 Thomas Quinot <quinot@adacore.com>
4141
4142 * sem_ch3.adb: Minor reformatting
4143
41442008-05-27 Ed Schonberg <schonberg@adacore.com>
4145
4146 * sem_ch6.adb:
4147 (Is_Interface_Conformant): Handle properly a primitive operation that
4148 overrides an interface function with a controlling access result.
4149 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
4150 inherited and overriding operations, omit as well the conformance check
4151 on result types, to prevent spurious errors.
4152
41532008-05-27 Vincent Celier <celier@adacore.com>
4154
4155 * makeutl.ads, makeutl.adb:
4156 (Set_Location): New procedure
4157 (Get_Location): New function
4158 (Update_Main): New procedure
4159
7bf402c1
AC
41602008-05-27 Vincent Celier <celier@adacore.com>
4161
4162 * prj-nmsc.adb:
4163 (Check_Library): Allow standard project to be extended as a static
4164 library project.
4165 (Get_Mains): Do not inherit attribute Main in an extending library
4166 project.
4167
41682008-05-27 Eric Botcazou <ebotcazou@adacore.com>
4169
4170 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
4171 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
4172 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
4173 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
4174 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
4175 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
4176 * system-mingw.ads (Always_Compatible_Rep): Likewise.
4177 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
4178 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
4179 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
9e81dbc7 4180
52268145
AC
41812008-05-27 Ed Schonberg <schonberg@adacore.com>
4182
4183 * sem_attr.adb: add guard to previous patch.
4184
41852008-05-27 Ed Schonberg <schonberg@adacore.com>
4186
4187 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
4188 a synchronized tagged type, do not attempt to build dispatch table for
4189 full view. The table is built for the corresponding record type, which
4190 has its own declaration.
4191
41922008-05-27 Gary Dismukes <dismukes@adacore.com>
4193
4194 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
4195 to the known type entity E, rather than setting it to Any_Type. Fixes
4196 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
4197 for objects whose type had an illegal constraint.
4198
41992008-05-27 Vincent Celier <celier@adacore.com>
4200
4201 * gnat_ugn.texi:
4202 Add succinct documentation for attribute Excluded_Source_List_File
4203
42042008-05-27 Vincent Celier <celier@adacore.com>
4205
4206 * prj-attr.adb: Add new project level attribute Map_File_Option
9e81dbc7 4207
52268145 4208 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
9e81dbc7 4209
52268145
AC
4210 * prj.ads: Minor reformatting and comment update
4211 (Project_Configuration): New component Map_File_Option
9e81dbc7 4212
52268145 4213 * snames.adb: New standard name Map_File_Option
9e81dbc7 4214
52268145
AC
4215 * snames.ads: New standard name Map_File_Option
4216
42172008-05-27 Vincent Celier <celier@adacore.com>
4218
4219 * xsnames.adb: Remove unused variable Oname
4220
42212008-05-27 Doug Rupp <rupp@adacore.com>
4222
4223 * exp_ch6.adb:
4224 (Expand_N_Function_Call): Fix comments. Minor reformatting.
4225
4226 * exp_vfpt.ads:
4227 (Expand_Vax_Foreign_Return): Fix comments.
4228
42292008-05-27 Thomas Quinot <quinot@adacore.com>
4230
4231 * exp_dist.adb: Minor reformating
4232
094d7cfa
AC
42332008-05-26 Gary Dismukes <dismukes@adacore.com>
4234
4235 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
4236 No_Default_Initialization, which is now delayed until the freeze point
4237 of the object. Add a comment about deferral of the check.
9e81dbc7 4238
094d7cfa
AC
4239 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
4240 on objects is moved here.
4241
42422008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4243
4244 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
4245 (Compare_Array_S16): Adjust for above change.
4246 * s-casi32.adb (Uword): Likewise.
4247 (Compare_Array_S32): Likewise.
4248 * s-casi64.adb (Uword): Likewise.
4249 (Compare_Array_S64): Likewise.
4250 * s-caun16.adb (Uhalf): Likewise.
4251 (Compare_Array_U16): Likewise.
4252 * s-caun32.adb (Uword): Likewise.
4253 (Compare_Array_U32): Likewise.
4254 * s-caun64.adb (Uword): Likewise.
4255 (Compare_Array_U64): Likewise.
9e81dbc7 4256
094d7cfa
AC
42572008-05-26 Robert Dewar <dewar@adacore.com>
4258
4259 * exp_ch6.adb: Add ??? comment for previous change
4260
4261 * exp_vfpt.adb: Minor reformatting
4262
4263 * exp_vfpt.ads: Add ??? comment for last change
4264
4265 * sem_attr.adb: Add some ??? comments for previous change
4266
4267 * s-vaflop.ads: Add comments for previous change
4268
42692008-05-26 Doug Rupp <rupp@adacore.com>
4270
4271 * s-vaflop-vms-alpha.adb:
4272 Remove System.IO use clause, to prevent spurious ambiguities when
4273 package is access through rtsfind.
4274
42752008-05-26 Sergey Rybin <rybin@adacore.com>
4276
4277 * tree_io.ads (ASIS_Version_Number): Update because of the changes
4278 made in front-end
4279
9019f3fc
AC
42802008-05-26 Ed Schonberg <schonberg@adacore.com>
4281
4282 * sem_attr.adb:
4283 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
4284 converted to S (A)'address only if A .. B is known to be a non-null
4285 range.
4286
42872008-05-26 Doug Rupp <rupp@adacore.com>
4288
4289 * s-vaflop.adb:
4290 (Return_D, Return_F, Return_G): New functions.
4291
4292 * s-vaflop.ads:
4293 (Return_D, Return_F, Return_G): New functions.
4294
4295 * exp_vfpt.adb:
4296 (Expand_Vax_Foreign_Return): New procedure
4297
4298 * exp_vfpt.ads:
4299 (Expand_Vax_Foreign_Return): New procedure
4300
4301 * rtsfind.ads:
4302 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
4303 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
4304
4305 * exp_ch6.adb:
4306 Import Exp_Vfpt
4307 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
4308
4309 * s-vaflop-vms-alpha.adb:
4310 (Return_D, Return_F, Return_G): New functions.
4311
43122008-05-26 Gary Dismukes <dismukes@adacore.com>
4313
4314 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
4315 init proc entity when there is actual default initialization associated
4316 with the component type, to avoid spurious errors on objects of scalar
4317 array types that are marked Is_Public when No_Default_Initialization
4318 applies.
4319
d693e39d
TQ
43202008-05-26 Thomas Quinot <quinot@adacore.com>
4321
4322 * rtsfind.ads, rtsfind.adb:
4323 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
4324 (Check_RPC): Support per-PCS-kind API versioning.
9e81dbc7 4325
d693e39d
TQ
4326 exp_dist.ads, exp_dist.adb:
4327 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
4328 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
4329 library function Get_RACW.
4330 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
4331 library function Get_Reference.
4332 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
4333 through an intermediate Any.
4334 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
4335 going through an intermediate Any.
9e81dbc7 4336
d693e39d
TQ
4337 * sem_dist.adb: Minor reformatting.
4338
ad89bc8d
AC
43392008-05-26 Javier Miranda <miranda@adacore.com>
4340
4341 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
4342 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
4343 (Is_Internal): Adding documentation on internal entities that have
4344 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
4345
4346 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
4347 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
4348 Added assertion to force entities with this attribute to have
4349 attribute Is_Internal set to True.
4350 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
4351
4352 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
4353 renamed as Derive_Progenitor_Subprograms. In addition, its code is
4354 a new implementation.
4355 (Add_Interface_Tag_Components): Remove special management of
4356 synchronized interfaces.
4357 (Analyze_Interface_Declaration): Minor reformating
4358 (Build_Derived_Record_Type): Minor reformating
4359 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
4360 predefined primitive inherited from interface type because the body of
4361 internally generated predefined primitives of tagged types are generated
4362 later by Freeze_Type
4363 (Derive_Subprogram): Avoid generating an internal name if the parent
4364 subprogram overrides an interface primitive.
4365 (Derive_Subprograms): New implementation that keeps separate the
4366 management of tagged types not implementing interfaces, from tagged
4367 types that implement interfaces.
4368 (Is_Progenitor): New implementation.
4369 (Process_Full_View): Add documentation
4370 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
4371 by call to Derive_Progenitor_Subprograms.
4372
4373 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
4374 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
4375 Skip_Controlling_Formals.
4376
4377 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
4378 (Check_Conventions): New implementation. Remove local subprogram
4379 Skip_Check. Remove formal Search_From of routine Check_Convention.
4380 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
4381 Skip_Controlling_Formals.
4382 (New_Overloaded_Entity): Enable addition of predefined dispatching
4383 operations.
4384
4385 * sem_disp.ads
4386 (Find_Primitive_Covering_Interface): New subprogram.
4387
4388 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
4389 the task body procedure as a primitive of the corresponding tagged
4390 type.
4391 (Check_Operation_From_Private_Type): Avoid adding twice an entity
4392 to the list of primitives.
4393 (Find_Primitive_Covering_Interface): New subprogram.
4394 (Override_Dispatching_Operation): Add documentation.
4395
4396 * sem_type.adb (Covers): Minor reformatings
4397
4398 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
4399 Collect_Interfaces.
4400 Rename formal.
4401 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
4402 (Implements_Interface): New subprogram.
4403 (Is_Parent): Removed.
4404 (Primitive_Names_Match): New subprogram.
4405 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
4406 (Ultimate_Alias): New subprogram.
4407
4408 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
4409 Collect_Interfaces.
4410 Remove special management for synchronized types. Rename formal. Remove
4411 internal subprograms Interface_Present_In_Parent and Add_Interface.
4412 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
4413 on non-record types by code to return false in such case.
4414 (Implements_Interface): New subprogram.
4415 (Is_Parent): Removed. No special management is now required for
4416 synchronized types covering interfaces.
4417 (Primitive_Names_Match): New subprogram.
4418 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
4419 (Ultimate_Alias): New subprogram.
4420
4421 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
4422 Add internal entities associated with secondary dispatch tables to
4423 the list of tagged type primitives that are not interfaces.
4424 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
4425 (Make_Predefined_Primitive_Specs): Code reorganization to improve
4426 the management of predefined equality operator. In addition, if
4427 the type has an equality function corresponding with a primitive
4428 defined in an interface type, the inherited equality is abstract
4429 as well, and no body can be created for it.
4430
4431 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
4432 exp_util to exp_disp.
4433 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
4434 an entity corresponds with one of the predefined primitives required
4435 to implement interfaces.
4436 Update copyright notice.
4437
4438 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
4439 final check on abstract subprograms all the primitives associated with
4440 interface primitives because they must be visible in the public and
4441 private part.
4442 (Write_DT): Use Find_Dispatching_Type to locate the name of the
4443 interface type. This allows the use of this routine, for debugging
4444 purposes, when the tagged type is not fully decorated.
4445 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
4446 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
4447 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
4448 entity corresponds with one of the predefined primitives required to
4449 implement interfaces.
4450
4451 * exp_util.adb (Find_Interface_ADT): New implementation
4452 (Find_Interface): Removed.
4453
4454 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
4455 list of interfaces associated with nodes
4456 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
4457
44582008-05-26 Thomas Quinot <quinot@adacore.com>
4459
4460 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
4461 condition for assignment to temporary.
4462
c878b2ef
AC
44632008-05-26 Ed Schonberg <schonberg@adacore.com>
4464
4465 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
4466 checks on the upper bound if the index type is a modular type, to
4467 prevent wrap-around computations when size is close to upper bound of
4468 type.
4469
44702008-05-26 Robert Dewar <dewar@adacore.com>
4471
4472 * sem_ch3.adb: Minor reformatting
4473
39281edf
AC
44742008-05-26 Ed Schonberg <schonberg@adacore.com>
4475
4476 * sem_ch12.adb (Remove_Parent): Use specification of instance
4477 to retrieve generic parent,
4478 to handle properly the case where the instance is a child unit.
4479 Add guard to handle properly wrapper packages.
4480 Minor reformatting
4481
44822008-05-26 Thomas Quinot <quinot@adacore.com>
4483
4484 * sinfo.ads: Minor reformatting
4485
44862008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
4487
4488 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
4489 Generate a tag check when the result subtype of a function, defined by
4490 an access definition, designates a specific tagged type.
4491 (Make_Tag_Check): New routine.
4492
d6ca724c
AC
44932008-05-26 Arnaud Charlet <charlet@adacore.com>
4494
4495 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
4496
c654b659
EB
44972008-05-26 Eric Botcazou <ebotcazou@adacore.com>
4498
4499 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
4500 (builtin_decl_for): Likewise.
4501 * trans.c (gigi): Likewise.
4502 * utils.c (def_builtin_1): Fix formatting.
4503
1c331d2d
AC
45042008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
4505
4506 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
4507 Create the statements which map a string name to protected or task
4508 entry indix.
4509
4510 * exp_ch9.adb: Add with and use clause for Stringt.
4511 Minor code reformatting.
4512 (Build_Entry_Names): New routine.
4513 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
4514 for flag Build_Entry_Names which controls the allocation of the data
4515 structure for the string names of entries.
4516
4517 * exp_ch9.ads (Build_Entry_Names): New subprogram.
4518
4519 * exp_util.adb (Entry_Names_OK): New function.
4520
4521 * exp_util.ads (Entry_Names_OK): New function.
4522
4523 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
4524 enumerations RE_Id and RE_Unit_Table.
4525
4526 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
4527 (Free_Entry_Names_Array): New routine.
4528
4529 * s-taskin.ads: Comment reformatting.
4530 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
4531 Add component Entry_Names to record Ada_Task_Control_Block.
4532 (Free_Entry_Names_Array): New routine.
4533
4534 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
4535 dynamically allocate an array
4536 of string pointers. This structure holds string entry names.
4537 (Free_Entry_Names): New routine.
4538 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
4539 (Set_Entry_Names): New routine.
4540
4541 * s-tassta.ads:
4542 (Create_Task): Add formal Build_Entry_Names. The flag is used to
4543 control the allocation of the data structure which stores entry names.
4544 (Set_Entry_Name): New routine.
4545
4546 * s-tpoben.adb:
4547 Add with and use clause for Ada.Unchecked_Conversion.
4548 (Finalize): Deallocate the entry names array.
4549 (Free_Entry_Names): New routine.
4550 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
4551 create an array of string pointers to hold the entry names.
4552 (Set_Entry_Name): New routine.
4553
4554 * s-tpoben.ads:
4555 Add field Entry_Names to record Protection_Entries.
4556 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
4557 (Set_Entry_Name): New routine.
4558
45592008-05-26 Vincent Celier <celier@adacore.com>
4560
4561 * prj-nmsc.adb:
4562 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
4563
4564 * prj.ads:
4565 (Project_Configuration): New component Shared_Lib_Driver
4566
45672008-05-26 Ed Schonberg <schonberg@adacore.com>
4568
4569 * inline.adb:
4570 (Cleanup_Scopes): For a protected operation, transfer finalization list
4571 to protected body subprogram, to force cleanup actions when needed.
4572
45732008-05-26 Robert Dewar <dewar@adacore.com>
4574
4575 * sem_cat.adb: Minor reformatting
4576
4577 * gnatname.adb: Minor reformatting
4578
4579 * osint.ads: Minor reformatting
4580
4581 * s-carun8.ads: Minor reformatting
4582
4583 * g-heasor.ads: Minor comment fix (unit is now pure)
4584
45852008-05-26 Robert Dewar <dewar@adacore.com>
4586
4587 * exp_ch2.adb:
4588 (Expand_Current_Value): Properly type generated integer literal
4589
45902008-05-26 Sergey Rybin <rybin@adacore.com>
4591
4592 * gnat_ugn.texi: Add description for the new gnatcheck rule -
4593 Separate_Numeric_Error_Handlers.
4594
45952008-05-26 Pascal Obry <obry@adacore.com>
4596
4597 * sem_aggr.adb: Minor reformatting.
4598
45992008-05-26 Jose Ruiz <ruiz@adacore.com>
4600
4601 * s-osinte-aix.adb:
4602 (To_Target_Priority): Setting the time slice value to 0 or greater sets
4603 the scheduling policy to FIFO within priorities or round-robin
4604 respectively.
4605 Hence, the priority must be set in this case to the one selected by the
4606 user.
9e81dbc7 4607
1c331d2d
AC
46082008-05-26 Ed Schonberg <schonberg@adacore.com>
4609
4610 * sem_ch12.adb:
4611 (Remove_Parent): If the enclosing scope is an instance whose generic
4612 parent is declared within some parent scope of the just completed
4613 instance, make full views of the entities in that parent visible, when
4614 applicable.
9e81dbc7 4615
a28e8f45
KT
46162008-05-26 Kai Tietz <kai.tietz@onevision.com>
4617
4618 * mingw32.h (STD_MINGW): Set to true for target w64.
4619
3651f7ad
EB
46202008-05-25 Eric Botcazou <ebotcazou@adacore.com>
4621
4622 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
4623 instead of TREE_STATIC on the ADDR_EXPR.
4624
58272d79
EB
46252008-05-24 Eric Botcazou <ebotcazou@adacore.com>
4626
4627 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
4628 (Sloc_to_locus): Do not overwrite known GCC locations when translating
4629 GNAT standard locations.
4630
4c8125f4
EB
46312008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4632
4633 * gigi.h (mark_visited): Declare.
4634 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
4635 only the topmost node of expressions.
b86c6d94 4636 (elaborate_expression_1): Look deeper for read-only variables.
4c8125f4
EB
4637 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
4638 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
4639 (mark_visited_r): New function.
4640
d1ba4e42
AC
46412008-05-23 Vincent Celier <celier@adacore.com>
4642
b86c6d94 4643 * snames.adb: New standard name Excluded_Source_List_File.
d1ba4e42 4644
b86c6d94 4645 * snames.ads: New standard name Excluded_Source_List_File.
d1ba4e42 4646
b86c6d94 4647 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
d1ba4e42 4648
b86c6d94 4649 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
d1ba4e42
AC
4650 Get excluded sources from
4651 file indicated by attribute Excluded_Source_List_File, when present and
4652 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
4653
46542008-05-23 Robert Dewar <dewar@adacore.com>
4655
4656 * exp_dist.adb: Minor reformatting
4657
46582008-05-23 Ed Schonberg <schonberg@adacore.com>
4659
4660 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
4661 slice, convert it to an indexed component, which is equivalent, more
4662 efficient, and usable even if the slice itself is not addressable.
4663
46642008-05-23 Olivier Hainque <hainque@adacore.com>
4665
4666 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
4667 convention also allows access to named compiler built-in subprograms
4668 such as the GCC __builtin family.
4669
ffd0dd6c
AC
46702008-05-23 Vincent Celier <celier@adacore.com>
4671
4672 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
4673 sep. If there are several possibilities, choose the one with the
4674 longer prefix.
4675
46762008-05-23 Vincent Celier <celier@adacore.com>
4677
4678 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
4679 back end switches when executable specified with --GCC= is same as
4680 default, even if there are additional options.
4681
4682 * gnat_ugn.texi:
4683 Document when the back end switches from the ALI file are taken into
4684 account when gnatlink is invoked with --GCC=
4685
46862008-05-23 Thomas Quinot <quinot@adacore.com>
4687
4688 * s-os_lib.adb:
4689 (copy_File): Do not open destination file if source file is unreadable.
4690
3fda3252
EB
46912008-05-23 Eric Botcazou <ebotcazou@adacore.com>
4692
4693 * utils.c (handle_type_generic_attribute): Adjust to accept
4694 fixed arguments before an elipsis.
4695
92c708d2
TQ
46962008-05-21 Thomas Quinot <quinot@adacore.com>
4697
4698 * g-sothco.ads, g-sothco.adb: New files.
4699
93a7c573
AC
47002008-05-20 Thomas Quinot <quinot@adacore.com>
4701
4702 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
4703
4704 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
4705 Add missing "with" of Ada.Unchecked_Conversion
4706
9e81dbc7
AS
4707 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
4708 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
4709 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4710 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4711 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
4712 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
93a7c573
AC
4713 Move common code out of GNAT.Sockets.Thin implementations and into
4714 Thin_Common.
4715 New constant SIZEOF_fd_set
4716 New flag Has_Sockaddr_Len
4717 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4718
4719 * g-stsifd-sockets.adb
4720 (Create): Remove call to Set_Length; use Set_Family to set the family
4721 and (on appropriate platforms) length fields in struct sockaddr.
4722
9e81dbc7
AS
4723 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
4724 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
93a7c573
AC
4725 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
4726 Move common code out of GNAT.Sockets.Thin implementations and into
4727 Thin_Common.
4728
9e81dbc7 4729 * g-socket.ads, g-socket.adb:
93a7c573
AC
4730 Move common code out of GNAT.Sockets.Thin implementations and into
4731 Thin_Common.
4732 (Connect_Socket, Accept_Socket): Provide new versions of these two
4733 routines that operate with a user specified timeout.
4734 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
4735 this is now handled automatically by Set_Family on platforms that
4736 require it.
4737
9e81dbc7 4738 * gen-soccon.c:
93a7c573
AC
4739 Move common code out of GNAT.Sockets.Thin implementations and into
4740 Thin_Common.
4741 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
4742 this constant to 0 (not -1) because we use it to initialize an
4743 unsigned_char value.
4744 Align values for numeric constants only.
4745 Handle the case of systems that do not support AF_INET6.
4746 New constant SIZEOF_fd_set
4747 New flag Has_Sockaddr_Len
4748 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4749
4750 * gsocket.h: New flag Has_Sockaddr_Len
4751 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
4752
47532008-05-20 Santiago Uruena <uruena@adacore.com>
4754
4755 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
4756
47572008-05-20 Arnaud Charlet <charlet@adacore.com>
4758
4759 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
4760 the underlying issue with malloc/free has been fixed. Remove associated
4761 comments.
4762 Minor reformatting.
4763 Related to PR ada/24533
4764
47652008-05-20 Robert Dewar <dewar@adacore.com>
4766
4767 * ali.adb: Correct casing of ASCII.NUL
4768
4769 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
4770 properly.
4771
47722008-05-20 Robert Dewar <dewar@adacore.com>
4773 Gary Dismukes <dismukes@adacore.com>
4774
4775 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
4776 overflow if result converted to wider integer type.
4777 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
4778 discriminated types when discriminant checks are suppressed.
4779
47802008-05-20 Vincent Celier <celier@adacore.com>
4781
4782 * cstand.adb (Print_Standard): Issue the correct Size clause for type
4783 Wide_Wide_Character.
4784
47852008-05-20 Tristan Gingold <gingold@adacore.com>
4786
4787 * decl.c: Do not emit a variable for a object that has an address
4788 representation clause whose value is known at compile time.
4789 When a variable has an address clause whose value is known at compile
4790 time, refer to this variable by using directly the address instead of
4791 dereferencing a pointer.
4792
47932008-05-20 Robert Dewar <dewar@adacore.com>
4794
4795 PR ada/30740
4796 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
4797 subtypes, always False for non-modular types.
4798 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
4799 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
4800 for Shared_Storage package.
4801 (Is_RACW_Stub_Type): New entity flag.
4802
4803 * exp_ch4.adb
4804 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
4805 case where we have a modular type with a non-binary modules.
4806 Comments reformattings.
4807
4808 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
4809 all types.
4810
48112008-05-20 Javier Miranda <miranda@adacore.com>
4812
4813 * exp_aggr.adb
4814 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
4815 tests did not covered the case in which the type of the aggregate has
4816 no progenitors but some its parents has progenitors.
4817
48182008-05-20 Gary Dismukes <dismukes@adacore.com>
4819 Hristian Kirtchev <kirtchev@adacore.com>
4820
4821 * exp_ch3.adb
4822 (Expand_N_Object_Declaration): Correct the condition which triggers the
4823 generation of a call to Displace when initializing a class-wide object.
4824 (Build_Dcheck_Functions): Build discriminant-checking for null variants
4825 when Frontend_Layout_On_Target is true to ensure that they're available
4826 for calling when a record variant size function is built in Layout.
4827
48282008-05-20 Ed Schonberg <schonberg@adacore.com>
4829
4830 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4831 procedure for a derived type retrieve the discriminant values from the
4832 parent using the corresponding discriminant.
4833 (Expand_N_Assignment_Statement): Skip generation of implicit
4834 if-statement associated with controlled types if we are
4835 compiling with restriction No_Finalization.
4836
48372008-05-20 Vincent Celier <celier@adacore.com>
4838
4839 * prj.adb (Hash (Project_Id)): New function
4840 (Project_Empty): Add new component Interfaces_Defined
4841
4842 * prj.ads (Source_Data): New component Object_Linked
4843 (Language_Config): New components Object_Generated and Objects_Linked
4844 (Hash (Project_Id)): New function
4845 (Source_Data): New Boolean components In_Interfaces and
4846 Declared_In_Interfaces.
4847 (Project_Data): New Boolean component Interfaces_Defined
4848
9e81dbc7 4849 * prj-attr.adb:
93a7c573
AC
4850 New project level attribute Object_Generated and Objects_Linked
4851 Add new project level attribute Interfaces
4852
4853 * prj-dect.adb: Use functions Present and No throughout
4854 (Parse_Variable_Declaration): If a string type is specified as a simple
4855 name and is not found in the current project, look for it also in the
4856 ancestors of the project.
4857
9e81dbc7 4858 * prj-makr.adb:
93a7c573
AC
4859 Replace procedure Make with procedures Initialize, Process and Finalize
4860 to implement H414-023: process different directories with different
4861 patterns.
4862 Use functions Present and No throughout
4863
9e81dbc7 4864 * prj-makr.ads:
93a7c573
AC
4865 Replace procedure Make with procedures Initialize, Process and Finalize
4866
4867 * prj-nmsc.adb
4868 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
4869 the language configuration.
4870 (Process_Project_Level_Array_Attributes): Process new attributes
4871 Object_Generated and Object_Linked.
4872 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
4873 False, to indicate that the erreor/warning is a continuation.
4874 (Check): Call Report_No_Sources with Contnuation = True after the first
4875 call.
4876 (Error_Msg): Process successively contnuation character and warning
4877 character.
4878 (Find_Explicit_Sources): Check that all declared sources have been found
4879 (Check_File): Indicate in hash table Source_Names when a declared source
4880 is found.
4881 (Check_File): Set Other_Part when found
4882 (Find_Explicit_Sources): In multi language mode, check if all exceptions
4883 to the naming scheme have been found. For Ada, report an error if an
4884 exception has not been found. Otherwise, disregard the exception.
4885 (Check_Interfaces): New procedure
4886 (Add_Source): When Other_Part is defined, set mutual pointers in spec
4887 and body.
4888 (Check): In multi-language mode, call Check_Interfaces
4889 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
4890 for an excluded source.
4891 (Remove_Source): A source replacing a source in the interfaces is also
4892 in the interfaces.
4893
4894 * prj-pars.adb: Use function Present
4895
4896 * prj-part.adb: Use functions Present and No throughout
4897 (Parse_Single_Project): Set the parent project for child projects
4898 (Create_Virtual_Extending_Project): Register project with no qualifier
4899 (Parse_Single_Project): Allow an abstract project to be extend several
4900 times. Do not allow an abstract project to extend a non abstract
4901 project.
4902
4903 * prj-pp.adb: Use functions Present and No throughout
4904 (Print): Take into account the full associative array attribute
4905 declarations.
4906
4907 * prj-proc.adb: Use functions Present and No throughout
4908 (Expression): Call itself with the same From_Project_Node for the
4909 default value of an external reference.
4910
4911 * prj-strt.adb: Use functions Present and No throughout
4912 (Parse_Variable_Reference): If a variable is specified as a simple name
4913 and is not found in the current project, look for it also in the
4914 ancestors of the project.
4915
4916 * prj-tree.ads, prj-tree.adb (Present): New function
4917 (No): New function
4918 Use functions Present and No throughout
4919 (Parent_Project_Of): New function
4920 (Set_Parent_Project_Of): New procedure
4921
9e81dbc7 4922 * snames.ads, snames.adb:
93a7c573
AC
4923 Add new standard names Object_Generated and Objects_Linked
4924
49252008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
4926
4927 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
4928 and the derived type are of the same kind.
4929 (Expand_Call): Generate type conversions for actuals of
4930 record or array types when the parent and the derived types differ in
4931 size and/or packed status.
4932
49332008-05-20 Javier Miranda <miranda@adacore.com>
4934 Ed Schonberg <schonberg@adacore.com>
4935
4936 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
4937 generating dispatch tables of locally defined tagged types statically.
4938 Remove implicit if-statement that is no longer required.
4939 (Expand_Dispatching_Call): If this is a call to an instance of the
4940 generic dispatching constructor, the type of the first argument may be
4941 a subtype of Tag, so always use the base type to recognize this case.
4942
49432008-05-20 Thomas Quinot <quinot@adacore.com>
4944
4945 * exp_dist.adb
4946 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
4947 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
4948 assigning NULL into the result, to avoid a spurious warning.
4949 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
4950 is not frozen.
4951 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
4952 type.
4953 (Build_From_Any_Function, Build_To_Any_Function,
4954 Build_TypeCode_Function): For a type that has user-specified stream
4955 attributes, use an opaque sequence of octets as the representation.
4956
49572008-05-20 Kevin Pouget <pouget@adacore.com>
4958
4959 * exp_smem.ads, exp_smem.adb: Construction of access and assign
4960 routines has been replaced by an instantiation of
4961 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
4962 shared variable declaration.
4963 Calls to access and assign routines have been replaced by calls to
4964 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
4965 instantiated package.
9e81dbc7 4966
93a7c573
AC
4967 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
4968 It identifies the new generic package added in s-shasto.
4969
4970 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
4971 is instantiated for each shared passive variable. It provides
4972 supporting procedures called upon each read or write access by the
4973 expanded code.
4974
4975 * sem_attr.adb:
4976 For this runtime unit (always compiled in GNAT mode), we allow
4977 stream attributes references for limited types for the case where
4978 shared passive objects are implemented using stream attributes,
4979 which is the default in GNAT's persistent storage implementation.
4980
49812008-05-20 Ed Schonberg <schonberg@adacore.com>
4982
4983 * freeze.adb
4984 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
4985 convention from its base type, do not set the type to that of integer,
4986 because it may inherit a size clause.
4987 Warn on a size clause with a size different
4988 from that of Integer, if the type has convention C.
4989
49902008-05-20 Vincent Celier <celier@adacore.com>
4991
4992 * gnatname.adb
4993 (Scan_Args): Rewrite to take into account new switch --and to separate
4994 arguments into sections.
4995 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
4996 section, then Finalize.
4997
49982008-05-20 Tristan Gingold <gingold@adacore.com>
4999
5000 * init.c: Enable stack probing on ppc-linux.
5001
5002 * tracebak.c: Add symbolic traceback for ppc-linux.
5003
5004 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
5005
50062008-05-20 Arnaud Charlet <charlet@adacore.com>
5007
5008 * Makefile.in
5009 (common-tools): New rule, to avoid parallel build failure on gnat tools.
5010 Reenable parallel builds on this Makefile.
5011
5012 * Make-lang.in: Update dependencies.
5013
50142008-05-20 Robert Dewar <dewar@adacore.com>
5015
5016 * opt.ads (Treat_Restrictions_As_Warnings): New switch
5017
5018 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
5019 Treat_Restrictions_As_Warnings.
5020
5021 * switch-c.adb: Recognize new switch -gnatr
5022
5023 * usage.adb: Add line for -gnatr
5024
50252008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
5026
5027 * par-ch3.adb
5028 (P_Access_Definition): Change the error message when parsing "access
5029 all" in Ada 95 mode. The message no longer forces the user to recompile
5030 in 05 mode only to discover that anonymous access types are not allowed
5031 to have "all".
5032
50332008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
5034
5035 * par-ch9.adb
5036 (P_Protected): Update the error message on missing "-gnat05" switch when
5037 using interfaces in conjunction with protected types. Remove the
5038 incorrect error message associated with the presence of "private" after
5039 a "with".
5040
50412008-05-20 Ed Schonberg <schonberg@adacore.com>
5042
5043 * sem_aggr.adb: Update comments.
5044 Improve previous change for PR ada/17985
5045
50462008-05-20 Thomas Quinot <quinot@adacore.com>
5047
5048 * sem_cat.adb
5049 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
5050 the visible part of the spec of a remote types unit.
5051 (Validate_Remote_Access_Object_Type_Declaration):
5052 New local subprogram Is_Valid_Remote_Object_Type, replaces
5053 Is_Recursively_Limited_Private.
5054 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
5055 non-controlling formals (and the return type, even though this is not
5056 explicit in the standard) must support external streaming.
5057 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
5058 as above for of RAS types and RCI subprograms. (The return type is not
5059 checked yet).
5060 Update comments related to RACWs designating limited interfaces per
5061 ARG ruling on AI05-060.
5062
5063 * sem_util.ads, sem_util.adb
5064 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
5065 Is_Remote_Call_Interface to identify RACW types in a stable and
5066 consistent way. We used to rely in this predicate on the privateness of
5067 the designated type and its ancestors, but depending on the currently
5068 visible private parts, this caused false negatives. We now uniformly
5069 rely on checks made at the point where the RACW type is declared.
5070 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
5071
50722008-05-20 Javier Miranda <miranda@adacore.com>
5073 Ed Schonberg <schonberg@adacore.com>
5074 Hristian Kirtchev <kirtchev@adacore.com>
5075
5076 * sem_ch3.adb
5077 (Analyze_Object_Declaration): Fix over-conservative condition
5078 restricting use of predefined assignment with tagged types that have
5079 convention CPP.
5080 (Analyze_Object_Declaration): Relax the check regarding deferred
5081 constants declared in scopes other than packages since they can be
5082 completed with pragma Import.
5083 Add missing escaping of all-caps word 'CPP' in error messages.
5084 (Build_Discriminated_Subtype): Do not inherit representation clauses
5085 from parent type if subtype already carries them, because they are
5086 inherited earlier during derivation and already include those that may
5087 come from a partial view.
5088
5089 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
5090 Check the declarations of a subprogram body for proper deferred
5091 constant completion.
5092
5093 * sem_ch7.ads, sem_ch7.adb
5094 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
5095
50962008-05-20 Ed Schonberg <schonberg@adacore.com>
5097 Thomas Quinot <quinot@adacore.com>
5098
5099 * sem_ch4.adb
5100 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
5101 F is a parameterless function that returns an array, and S is a subtype
5102 mark.
5103 (Analyze_Call): Insert dereference when the prefix is a parameterless
5104 function that returns an access to subprogram and the call has
5105 parameters.
5106 Reject a non-overloaded call whose name resolves to denote
5107 a primitive operation of the stub type generated to support a remote
5108 access-to-class-wide type.
5109
51102008-05-20 Ed Schonberg <schonberg@adacore.com>
5111
5112 * sem_ch8.adb
5113 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
5114 when there is a use clause for the same entity in the context.
5115 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
5116 created for a stream attribute of an abstract type or interface type.
5117
51182008-05-20 Thomas Quinot <quinot@adacore.com>
5119
5120 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
5121 subprogram.
5122
5123 * sem_type.adb
5124 (Add_One_Interp): Ignore any interpretation that is a primitive
5125 operation of an RACW stub type (these primitives are only executed
5126 through dispatching, never through static calls).
5127 (Collect_Interps): When only one interpretation has been found, set N's
5128 Entity and Etype to that interpretation, otherwise Entity and Etype may
5129 still refer to an interpretation that was ignored by Add_One_Interp,
5130 in which case would end up with being marked as not overloaded but with
5131 an Entity attribute not pointing to its (unique) correct interpretation.
5132
51332008-05-20 Ed Schonberg <schonberg@adacore.com>
5134
5135 * sem_eval.adb
5136 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
5137 denotes the whole array of its prefix.
5138
51392008-05-20 Robert Dewar <dewar@adacore.com>
5140
5141 * sem_res.adb (Resolve_Op_Not): Warn on double negation
5142
51432008-05-20 Ed Schonberg <schonberg@adacore.com>
5144
5145 * sprint.adb
5146 (Print_Itype): Do not modify the sloc of the component type of a
5147 (packed) array itype, because it is an unrelated type whose source
5148 location is independent of the point of creation of the itype itself.
5149
51502008-05-20 Thomas Quinot <quinot@adacore.com>
5151
5152 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
5153 Append.
5154
51552008-05-20 Robert Dewar <dewar@adacore.com>
5156 Vincent Celier <celier@adacore.com>
5157
5158 * vms_data.ads: Add entry for -gnatr
5159 Put GNAT SYNC section in proper alpha order
5160 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
5161
5162 * gnat_ugn.texi: Add documentation for new gnatname switch --and
5163 Update the style checks section
5164 Add documentation of -gnatr
5165 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
5166 subsection the explanation how compiler checks should be disabled for
5167 gnatcheck.
5168 Update the list of Ada 95 reserved words used by in the project language
5169 Add documentation for project qualifiers.
5170 Document that abstract projects may be extended by different projects in
5171 the same project tree.
5172 Add documentation for gnatmake switch -d
5173
5174 * ug_words: Add -gnatyy VMS equivalence string.
5175 Add entry for -gnatr
5176
51772008-05-20 Bob Duff <duff@adacore.com>
5178
5179 * a-rttiev.adb
5180 (Set_Handler): Remove code from both of these that implements
5181 RM-D.15(15/2), because it causes a race condition and potential
5182 deadlock.
5183 (Process_Queued_Events): Add comment explaining "exception when others
5184 => null". Add clarifying ".all", even though implicit .all is legal
5185 here.
5186
51872008-05-20 Arnaud Charlet <charlet@adacore.com>
5188
5189 * s-winext.ads: Replace representation clause by pragma Pack. Gives
5190 equivalent representation, but has the advantage of allowing
5191 compilation of this file under 64 bits platforms.
5192
5193 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
5194
5195 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
5196
9e81dbc7 5197 * adaint.c:
93a7c573
AC
5198 Don't define dummy implementation of convert_addresses on ppc-linux.
5199
52002008-05-20 Ed Schonberg <schonberg@adacore.com>
5201
5202 * exp_ch7.adb
5203 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
5204 if expression is aggregate component.
5205
52062008-05-20 Robert Dewar <dewar@adacore.com>
5207
5208 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
5209 sem_ch12.adb: Update comments. Minor reformatting.
5210
5211 * exp_ch2.adb: Typo
5212
5213 * s-unstyp.ads: Fixed some typos in comments.
5214
1b686dc4
AC
52152008-05-20 Arnaud Charlet <charlet@adacore.com>
5216
5217 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
5218 type/constant.
5219
5220 * g-socthi-vxworks.ads: Update to latest socket changes.
5221
5222 * a-caldel-vms.adb: Resync with a-caldel spec.
5223
6357e162
AC
5224 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
5225 Update comments.
5226
74c11a6c
EB
52272008-05-17 Eric Botcazou <ebotcazou@adacore.com>
5228
5229 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
5230 for dummy types pointed to by the converted pointer types.
5231
f730e42f
EB
52322008-05-15 Eric Botcazou <ebotcazou@adacore.com>
5233
5234 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
5235 of records and unions.
5236 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
5237
eaa2f8c7 52382008-05-14 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 5239 Robert Dewar <dewar@adacore.com>
eaa2f8c7
ST
5240
5241 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
5242 restrictions to the prefix of 'Old.
5243 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
5244 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
5245 variables.
5246
f80cddcb
EB
52472008-05-13 Eric Botcazou <ebotcazou@adacore.com>
5248
5249 PR ada/24880
5250 PR ada/26635
5251 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
5252 expression to an integral type with lower precision, use NOP_EXPR
5253 directly in a couple of special cases.
5254
ea0a7f39 52552008-05-12 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 5256 Ed Schonberg <schonberg@adacore.com>
ea0a7f39
ST
5257
5258 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
5259 constraint expressions.
5260
751d1520
TB
52612008-05-12 Tomas Bily <tbily@suse.cz>
5262
ea0a7f39
ST
5263 * utils2.c (known_alignment, contains_save_expr_p)
5264 (gnat_mark_addressable): Use CASE_CONVERT.
5265 * decl.c (annotate_value): Likewise.
5266 * trans.c (maybe_stabilize_reference): Likewise.
5267 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
5268 * utils.c (rest_of_record_type_compilation): Likewise.
5269 * trans.c (protect_multiple_eval, Attribute_to_gnu)
5270 (protect_multiple_eval): Likewise.
751d1520 5271
a1b66071
AS
52722008-05-08 Andreas Schwab <schwab@suse.de>
5273
5274 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
5275 DECL_IS_PURE to DECL_PURE_P.
5276
bba74577
EB
52772008-05-05 Eric Botcazou <ebotcazou@adacore.com>
5278
5279 * decl.c (maybe_pad_type): Add ??? comment.
5280
8f85525e
EB
52812008-05-03 Eric Botcazou <ebotcazou@adacore.com>
5282
5283 * decl.c (components_to_record): Zero the alignment of the qualified
5284 union built for the variant part upon creating it.
5285
88f36b7e
EB
52862008-05-03 Eric Botcazou <ebotcazou@adacore.com>
5287
5288 * decl.c (maybe_pad_type): Try to get a form of the type with integral
5289 mode even if the alignment is not a factor of the original size. But
5290 make sure to create the inner field with the original size. Reorder.
5291 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
5292 record as always addressable.
5293 * utils.c (convert): Deal specially with conversions between original
5294 and packable versions of a record type.
5295 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
5296 recognizing an assignment between padded objects.
5297
8665c7ca
EB
52982008-05-01 Eric Botcazou <ebotcazou@adacore.com>
5299
5300 * decl.c (make_packable_type): Resize the last component to its RM size
5301 only if it is of an aggregate type.
5302 * trans.c (call_to_gnu): Fix nit in comment.
5303 (gnat_to_gnu): Likewise.
5304
ea342909
ST
53052008-04-30 Samuel Tardieu <sam@rfc1149.net>
5306
5307 * Makefile.in: Adapt sh4-linux target.
5308
af4133b2
ST
53092008-04-29 Ed Schonberg <schonberg@adacore.com>
5310
5311 PR ada/35792
5312 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
5313 tagged type by an untagged protected or task type.
5314
805100b5 53152008-04-28 Eric Botcazou <ebotcazou@adacore.com>
9e81dbc7 5316 Tristan Gingold <gingold@adacore.com>
805100b5
EB
5317
5318 PR ada/36007
5319 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
5320 of aliased objects with an unconstrained nominal subtype.
5321 Cap the promotion to the effective alignment of the word mode.
5322
99c2eec1
RW
53232008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5324
5325 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
5326 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
5327 Use '&&' instead of ';'.
5328
22a81267
OH
53292008-04-24 Olivier Hainque <hainque@adacore.com>
5330
5331 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
5332 doesn't require signed arithmetic anymore.
5333
51eed280
PB
53342008-04-23 Paolo Bonzini <bonzini@gnu.org>
5335
5336 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
5337 (call_to_gnu): Don't set TREE_INVARIANT.
5338 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
5339
d9126ef8
JS
53402008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
5341
5342 * s-osinte-rtems.adb: Add sigalstack function.
5343 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
5344 function. Add Alternate_Stack and Alternate_Stack_Size.
5345 Add missing process_shared field to pthread_condattr_t
5346 and change ss_low_priority to int from timespec.
5347
0a58c87e
ST
53482008-04-22 Samuel Tardieu <sam@rfc1149.net>
5349
5350 * i-forbla.adb: Link against -llapack and -lblas by default
5351 instead of the private -lgnalasup.
5352
009890be
OH
53532008-04-21 Olivier Hainque <hainque@adacore.com>
5354
5355 Access to most C builtins from Ada
5356 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
5357 (handle_pure_attribute, handle_novops_attribute,
5358 handle_nonnull_attribute, handle_sentinel_attribute,
5359 handle_noreturn_attribute, handle_malloc_attribute,
5360 handle_type_generic_attribute): New attribute handlers, from C fe.
5361 (gnat_internal_attribute_table): Map the new handlers.
5362 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
5363 (init_gigi_decls): ... here.
5364 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
5365 Move to a section dedicated to builtins processing.
5366 (build_void_list_node, builtin_type_for_size): New functions.
5367 (def_fn_type, get_nonnull_operand): Likewise.
5368 (install_builtin_elementary_type, install_builtin_function_types,
5369 install_builtin_attributes): Likewise.
5370 (fake_attribute_handler): Fake handler for attributes we don't
5371 support in Ada.
5372 (def_builtin_1): New function, worker for DEF_BUILTIN.
5373 (install_builtin_functions): New function.
5374 (gnat_install_builtins): Move to the builtins processing section.
5375 Now calling the newly introduced installers.
5376
e871a873
EB
53772008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5378
5379 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
5380 constant objects, but not exceptions.
5381 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
5382 compatibility test.
5383 * utils.c (create_var_decl_1): Likewise.
5384 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
5385 the type when copying to padded object and the source is a constructor.
5386
98ae7998
EB
53872008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5388
5389 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
5390 alignment, reset it to zero if it would end up not being greater
5391 than that of the type.
5392
3569056b
EB
53932008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5394
5395 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
5396 the padded type has a variable size.
5397
9a089d8b
EB
53982008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5399
5400 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
5401 target pointer mechanism as soon as the size is not constant.
5402
0cb5c2a7
EB
54032008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5404
5405 * gigi.h (create_var_decl_1): Declare.
5406 (create_var_decl): Turn into a macro invoking create_var_decl_1.
5407 (create_true_var_decl): Likewise.
5408 * utils.c (create_var_decl_1): Make global and reorder parameters.
5409 (create_var_decl): Delete.
5410 (create_true_var_decl): Likewise.
5411
90d6701e
EB
54122008-04-17 Eric Botcazou <ebotcazou@adacore.com>
5413
5414 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
5415 objects by default.
5416 * fe.h (Debug_Flag_Dot_A): Delete.
5417 * debug.adb (-gnatd.a): Update documentation.
5418
35485e12
ST
54192008-04-17 Samuel Tardieu <sam@rfc1149.net>
5420
5421 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
5422 "not null" parameter.
5423
111c1cd9
ST
54242008-04-17 Samuel Tardieu <sam@rfc1149.net>
5425
5426 * g-socket.adb: Add a message "IPv6 not supported" to the
5427 Socket_Error exception.
5428
35c91e05
ST
54292008-04-16 Samuel Tardieu <sam@rfc1149.net>
5430
5431 PR ada/29015
5432 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
5433 the type is known instead of the underlying type.
5434
b48a6531
ST
54352008-04-15 Ed Schonberg <schonberg@adacore.com>
5436
5437 PR ada/22387
5438 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
5439 procedure for a derived type retrieve the discriminant values from
5440 the parent using the corresponding discriminant.
5441
462c31ef 54422008-04-15 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 5443 Gary Dismukes <dismukes@adacore.com>
462c31ef
ST
5444
5445 PR ada/28733
5446 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
5447 which is not an entity (and hence not a package).
5448 (End_Use_Package): Ditto.
5449
8abe457a
ST
54502008-04-15 Ed Schonberg <schonberg@adacore.com>
5451
5452 PR ada/16086
5453 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
5454 protected operation that matches the signature, not only an entry, a
5455 regular subprogram or a literal.
5456
29f4754f
EB
54572008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5458
5459 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
5460 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
5461 if a size or alignment is specified. Do not take into account
5462 alignment promotions for the computation of the object's size.
5463 <type>: Call maybe_pad_type only if a size or alignment is specified.
5464 (maybe_pad_type): Really reuse the RM_Size of the original type if
5465 requested.
5466 * trans.c (Attribute_to_gnu): Fix a couple of nits.
5467 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
5468 statements. Use the padded view of the type when copying between
5469 padded objects of the same underlying type.
5470
f3d0f304
RW
54712008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5472
5473 * vms_data.ads: Fix typo in constant.
5474 * gen-soccon.c: Fix typo in error string.
5475 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
5476 Fix typos.
5477 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
5478 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
5479 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
5480 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
5481 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
5482 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
5483 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
5484 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
5485 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
5486 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
5487 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
5488 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
5489 sinfo.ads: Fix typos in comments.
5490
2efcad9f
RD
54912008-04-14 Robert Dewar <dewar@adacore.com>
5492
5493 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
5494 to every non-object and change error message.
5495
8f3723e0
RD
54962008-04-14 Robert Dewar <dewar@adacore.com>
5497
5498 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
5499 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
5500 directly.
5501
32f7efe1
ST
55022008-04-14 Samuel Tardieu <sam@rfc1149.net>
5503
5504 PR ada/18680
5505 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
5506 apply pragma Linker_Section on type.
5507
b039b10e
ST
55082008-04-14 Samuel Tardieu <sam@rfc1149.net>
5509
5510 PR ada/16098
5511 * sem_prag.adb (Error_Pragma_Ref): New.
5512 (Process_Convention): Specialized message for non-local
5513 subprogram renaming. Detect the problem in homonyms as well.
5514
cb572b75
ST
55152008-04-14 Samuel Tardieu <sam@rfc1149.net>
5516
5517 PR ada/15915
5518 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
5519 * sem_ch12.adb (Instantiate_Object): Use it.
5520 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
5521 storage pool denotes a variable as per RM 13.11(15).
5522
17972da7
ST
55232008-04-14 Samuel Tardieu <sam@rfc1149.net>
5524
5525 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
5526 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
5527
57f80aa9
RE
55282008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
5529
5530 PR ada/20822
5531 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
5532 line endings even on non-Unix platforms.
5533
9ff231e2
ST
55342008-04-14 Samuel Tardieu <sam@rfc1149.net>
5535
5536 PR ada/35050
5537 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
5538 renaming information.
5539
9e81dbc7 55402008-04-13 Samuel Tardieu <sam@rfc1149.net>
92d4508a
ST
5541
5542 PR ada/17985
5543 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
5544 itself.
5545
12a13f01
RW
55462008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5547
3354f96d
RW
5548 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
5549 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
5550 snames.ads, sprint.adb, stand.ads, stringt.ads,
5551 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
5552 switch.ads, sysdep.c, table.adb, table.ads,
5553 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
5554 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
5555 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
5556 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
5557 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
5558 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
5559 Fix comment typos.
5560
f3d57416
RW
5561 * sem_ch10.adb, sem_ch10.ads,
5562 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
5563 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
5564 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5565 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
5566 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
5567 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
5568 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
5569 sem_warn.ads: Fix comment typos.
5570
12a13f01
RW
5571 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
5572 s-soflin.ads, s-stalib.ads, s-stausa.adb,
5573 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
5574 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5575 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
5576 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5577 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
5578 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
5579 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
5580 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
5581 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
5582 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
5583 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
5584 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
5585 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
5586 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
5587 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
5588 sem_cat.adb, sem_cat.ads: Fix comment typos.
5589
2b699ab1
JS
55902008-04-12 Joel Sherrill <joel@oarcorp.com>
5591
5592 PR ada/35825
5593 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
5594
1e273538
AC
55952008-04-12 Arnaud Charlet <charlet@adacore.com>
5596
5597 * s-linux-hppa.ads: Fix syntax errors.
5598
276e95ca
RW
55992008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5600
5601 * gnat_ugn.texi: Fix typos.
5602 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
5603 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
5604 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
5605 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
5606 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
5607 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
5608 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
5609 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
5610 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
5611 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
5612 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
5613 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
5614 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
5615 s-osinte-darwin.ads, s-osinte-freebsd.ads,
5616 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
5617 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
5618 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
5619 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
5620 s-parame-hpux.ads, s-parame-vms-alpha.ads,
5621 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
5622 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
5623 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
5624 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
5625 s-rident.ads: Fix comment typos.
5626
ce4e59c4
ST
56272008-04-09 Samuel Tardieu <sam@rfc1149.net>
5628
5629 PR ada/28305
5630 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
5631 environment if generic instance is a top-level one.
5632
6d21c8af
DR
56332008-04-09 Doug Rupp <rupp@adacore.com>
5634
5635 * decl.c (validate_size): Set minimum size for fat pointers same as
5636 access types. Code clean ups.
5637
5638 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
5639 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
5640
5641 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
5642
5643 * s-crtl.ads (malloc32) New function, alias for malloc
5644 (realloc32) New function, alias for realloc
5645
5646 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
5647
5648 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
5649 allocator size is 32 and default pointer size is 64.
5650 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
5651 lhs type if smaller, whatever the modes.
5652
5653 * gigi.h (malloc32_decl): New macro definition
5654
5655 * utils.c (init_gigi_decls): New malloc32_decl
5656 Various code clean ups.
5657
5658 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
5659 Task_Address vice System.Address.
5660
5661 * s-taspri-vms.ads: Import System.Aux_DEC
5662 (Task_Address): New subtype of System.Aux_DEC.Short_Address
5663 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
5664
5665 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
5666 Task_Address vice System.Address.
5667
5668 * s-inmaop-vms.adb: Import System.Task_Primitives
5669 (To_Address): Unchecked convert to Task_Address vice System.Address
5670
5671 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
5672 expires now.
5673 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
5674 (To_Address) Unchecked convert to Task_Address vice System.Address
5675
5676 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
5677
5678 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
5679
581edf92
EB
56802008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5681
5682 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
5683 (fdesc_type_node): Define.
5684 (null_fdesc_node): Likewise.
5685 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
5686 uses descriptors for vtables and the type comes from a dispatch table,
5687 return the descriptor type.
5688 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
5689 uses descriptors for vtables and the type comes from a dispatch table,
5690 build a descriptor in the static case and copy the existing one in the
5691 non-static case.
5692 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
5693 the type is a pointer-to-subprogram coming from a dispatch table,
5694 return the null descriptor.
5695 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
5696 vtables, the source type is the descriptor type and the target type
5697 is a pointer type, first build the pointer.
5698 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
5699 build the descriptor type and the null descriptor.
5700
e1da2b17
EB
57012008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5702
5703 * decl.c (prepend_attributes): Fix typo.
5704 * trans.c (Pragma_to_gnu): Likewise.
5705 * utils.c (gnat_genericize): Likewise.
5706
2b3dffa6 57072008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9e81dbc7 5708 Richard Kenner <kenner@adacore.com>
2b3dffa6
EB
5709
5710 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
5711 * decl.c (gnat_to_gnu_entity): Adjust for above change.
5712 <E_Record_Type>: Try to get a better form of the component for
5713 packing, even if it has an integral mode.
5714 <E_Record_Subtype>: Likewise.
5715 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
5716 exception suppressing the final conversion between record types.
5717
ba3f46d0
EB
57182008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5719
5720 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
5721 alignment for space, promote the alignment of non-scalar variables with
5722 no size and alignment.
5723 * gigi.h (gnat_types_compatible_p): Declare.
5724 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
5725 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
5726 * utils.c (gnat_types_compatible_p) : New predicate.
5727 (convert): Use it throughout to test for cases where a mere view
5728 conversion is sufficient.
5729 * utils2.c (build_binary_op): Minor tweaks.
5730 (build_unary_op): Likewise.
5731
373140ef
EB
57322008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5733
5734 * decl.c (adjust_packed): Expand comment.
5735
ea081ad7
AC
57362008-04-08 Arnaud Charlet <charlet@adacore.com>
5737
5738 * s-tasuti.ads: Use Task_Address instead of System.Address.
5739
5740 * makeutl.adb (Path_Or_File_Name): New function
5741
5742 * nlists.ads, itypes.ads: Update comments.
5743
5744 * s-crtl.ads (malloc32, realloc32): New functions.
5745
5746 * s-auxdec.ads (Short_Address_Size): New constant.
5747
5748 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
5749
5750 * s-ststop.ads, s-ststop.adb: New file.
5751
5752 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
5753 Minor reformatting.
5754
d563d3f0
AC
57552008-04-08 Pascal Obry <obry@adacore.com>
5756
5757 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
5758 (Stop_Bits_Number): New type.
5759 (Parity_Check): Likewise.
5760 (Set): Add parameter to set the number of stop bits and
5761 the parity. Parameter timeout is now a duration instead
5762 of a plain integer.
5763
5764 * g-sercom-linux.adb:
5765 Implement the stop bits and parity support for GNU/Linux.
5766 Fix handling of timeout, it must be given in tenth of seconds.
9e81dbc7 5767
d563d3f0
AC
5768 * g-sercom-mingw.adb:
5769 Implement the stop bits and parity support for Windows.
5770 Use new s-win32.ads unit instead of declaring Win32 services
5771 directly into this body.
5772 Update handling of timeout as now a duration.
5773
5774 * s-win32.ads, s-winext.ads: New files.
5775
57762008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5777 Arnaud Charlet <charlet@adacore.com>
5778
5779 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
5780
5781 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
5782 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
5783
5784 * s-osinte-lynxos-3.ads,
5785 (Alternate_Stack): Remove when not needed. Simplify declaration
5786 otherwise.
5787 (Alternate_Stack_Size): New constant.
5788
5789 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
5790 'Unrestricted_Access.
5791
5792 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
5793 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
5794 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
5795 s-osinte-solaris.ads, s-osinte-vms.ads
5796 (SA_ONSTACK): New constant.
5797 (stack_t): New record type.
5798 (sigaltstack): New imported function.
5799 (Alternate_Stack): New imported variable.
5800 (Alternate_Stack_Size): New constant.
5801
5802 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
5803
5804 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
ea081ad7
AC
5805 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
5806 s-taspri-vms.ads (Task_Address): New subtype of System.Address
d563d3f0
AC
5807 (Task_Address_Size): New constant size of System.Address
5808 (Alternate_Stack_Size): New constant.
5809
5810 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
5811 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
5812 Establish the alternate stack if the platform makes use of n alternate
5813 signal stack for stack overflows.
5814 (Create_Task): Take into account the alternate stack in the stack size.
5815 (Initialize): Save the address of the alternate stack into the ATCB for
5816 the environment task.
5817 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
5818
ea081ad7 5819 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
d563d3f0
AC
5820
5821 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
5822
9e81dbc7 5823 * s-intman-posix.adb:
d563d3f0
AC
5824 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
5825 alternate signal stack for stack overflows.
5826
5827 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
5828 x86-64, adjust the saved value of the stack pointer if the signal was
5829 raised by a stack checking probe.
5830 (HP-UX section): Use global __gnat_alternate_stack as signal handler
5831 stack and only for SIGSEGV.
5832 (Linux section): Likewise on x86 and x86-64.
5833 [VxWorks section]
5834 (__gnat_map_signal): Now static.
5835 (__gnat_error_handler): Not static any more.
5836 (__gnat_adjust_context_for_raise): New function. Signal context
5837 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
5838 propagation circuitry.
5839 (__gnat_error_handler): Second argument of a sigaction handler is a
5840 pointer, not an int, and is unused.
5841 Adjust signal context before mapping to exception.
5842 Install signal handlers for LynxOS case.
5843
5844 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
5845 (Task_Id): Set size to Task_Address_Size
5846 (To_Task_id): Unchecked convert from Task_Address vice System.Address
5847 (To_Address): Unchecked convert to Task_Address vice System.Address
5848
5849 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
5850 address into the ATCB if the platform makes use of an alternate signal
5851 stack for stack overflows.
5852 (Free_Task): Add call to Finalize_Attributes_Link.
5853 Add argument Relative_Deadline to pass the value specified for
5854 the task. This is not yet used for any target.
5855
5856 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
5857 the value specified for the task.
5858
58592008-04-08 Arnaud Charlet <charlet@adacore.com>
5860
5861 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
5862 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
5863 s-vxwext-rtp.adb): New files.
5864
9e81dbc7 5865 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
d563d3f0
AC
5866 Minor updates to accomodate changes above.
5867
58682008-04-08 Pascal Obry <obry@adacore.com>
5869
5870 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
5871 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
5872 Use new s-win32.ads unit instead of declaration
5873 from s-osinte-mingw.ads.
9e81dbc7 5874
d563d3f0
AC
5875 * s-osinte-mingw.ads:
5876 Move all non tasking based interface to s-win32.ads.
9e81dbc7 5877
d563d3f0
AC
5878 * s-osprim-mingw.adb:
5879 Remove duplicated declarations and use s-win32.ads
5880 unit instead.
5881
58822008-04-08 Vincent Celier <celier@adacore.com>
5883 Arnaud Charlet <charlet@adacore.com>
5884
5885 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
5886 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
5887 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5888 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5889 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
5890
5891 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
5892 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
5893 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
5894 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
5895 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
5896 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
5897 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
5898 mlib-tgt-specific-mingw.adb: New names.
5899
9e81dbc7 5900 * Makefile.in:
d563d3f0
AC
5901 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
5902 Get rid of gnatbl.
5903 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
5904 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
5905 Minor updates for VMS
5906
ea081ad7
AC
5907 * gnatbl.c: Removed.
5908
d563d3f0
AC
59092008-04-08 Thomas Quinot <quinot@adacore.com>
5910
5911 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
5912 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
5913 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
5914 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
5915 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
5916 ASCII.NUL throughout.
5917
59182008-04-08 Arnaud Charlet <charlet@adacore.com>
5919 Matthew Heaney <heaney@adacore.com>
5920
5921 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
5922 renaming.
5923
9e81dbc7 5924 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
d563d3f0
AC
5925 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
5926 to convention for non-RM specs.
5927 Add descriptive header, and documented each operation
5928 document each operation
5929
59302008-04-08 Robert Dewar <dewar@adacore.com>
5931 Bob Duff <duff@adacore.com>
5932 Gary Dismukes <dismukes@adacore.com>
5933 Ed Schonberg <schonberg@adacore.com>
5934
5935 * alloc.ads: Add entries for Obsolescent_Warnings table
5936
5937 * einfo.ads, einfo.adb: Minor reformatting.
5938 (Is_Discriminal): New subprogram.
5939 (Is_Prival): New subprogram.
5940 (Is_Protected_Component): New subprogram.
5941 (Is_Protected_Private): Removed.
5942 (Object_Ref, Set_Object_Ref): Removed.
5943 (Prival, Set_Prival): Change assertion.
5944 (Privals_Chain, Set_Privals_Chain): Removed.
5945 (Prival_Link, Set_Prival_Link): New subprogram.
5946 (Protected_Operation, Set_Protected_Operation): Removed.
5947 (Protection_Object, Set_Protection_Object): New subprogram.
5948 (Write_Field17_Name): Remove case for Object_Ref.
5949 (Write_Field20_Name): Add case for Prival_Link.
5950 (Write_Field22_Name): Remove case for Protected_Operation,
5951 Privals_Chain.
5952 Add case for Protection_Object.
5953 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
5954 so clients
5955 (Overlays_Constant): New flag
5956 (Is_Constant_Object): New predicate
5957 (Is_Standard_Character_Type): New predicate
5958 (Optimize_Alignment_Space): New flag
5959 (Optimize_Alignment_Time): New flag
5960 (Has_Postconditions): New flag
5961 (Obsolescent_Warrning): Field removed
5962 (Spec_PPC_List): New field
5963 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
5964 subprograms to get and set the relative deadline associated to a task.
5965
5966 * exp_attr.adb (May_Be_External_Call): Account for the case where the
5967 Access attribute is part of a named parameter association.
5968 (Expand_Access_To_Protected_Op): Test for the attribute occurring
5969 within an init proc and use that directly as the scope rather than
5970 traversing up to the protected operation's enclosing scope. Only apply
5971 assertion on Is_Open_Scopes in the case the scope traversal is done.
5972 For the init proc case use the address of the first formal (_init) as
5973 the protected object reference.
5974 Implement Invalid_Value attribute
5975 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
5976 contents of the dispatch table there is no need to duplicate the
5977 itypes associated with record types (i.e. the implicit full view
5978 of private types).
5979 Implement Enum_Val attribute
5980 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
5981 within _Postconditions procedure
5982 (Expand_N_Attribute_Reference, case Result): Implement new attribute
5983
5984 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
5985 a return statement calls a function that is not available in
5986 configurable runtime.
5987 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
5988 (Expand_Non_Function_Return): Generate call to _Postconditions proc
5989 (Expand_Simple_Function_Return): Ditto
5990
5991 * frontend.adb: Add call to Sem_Aux.Initialize
5992
5993 * sem_aux.ads, sem_aux.adb: New file.
5994
5995 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
5996 Add new Pragma_Relative_Deadline.
5997 Add support for pragmas Check and Check_Policy
5998
5999 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
6000 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
6001 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
6002 missing check because they are not allowed in CPP tagged types.
6003 Add Sure parameter to Note_Possible_Modification calls
6004 Add implementation of Invalid_Value attribute
6005 Implement new attribute Has_Tagged_Values
6006 Implement Enum_Val attribute
6007 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
6008 generated attributes.
6009 (Analyze_Attribute, case Result): If prefix of the attribute is
6010 overloaded, it always resolves to the enclosing function.
6011 (Analyze_Attribute, case Result): Properly deal with analysis when
6012 Postconditions are not active.
6013 (Resolve_Attribute, case Result): Properly deal with appearence during
6014 preanalysis in spec.
6015 Add processing for attribute Result
6016
6017 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
6018 for operators.
6019 (Analyze_Subprogram_Body): Install private_with_clauses when the body
6020 acts as a spec.
6021 (Check_Inline_Pragma): recognize an inline pragma that appears within
6022 the subprogram body to which it applies.
6023 (Analyze_Function_Return): Check that type of the expression of a return
6024 statement in a function with a class-wide result is not declared at a
6025 deeper level than the function.
6026 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
6027 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
6028 user- defined operators.
6029 (Install_Formals): Moved to spec to allow use from Sem_Prag for
6030 analysis of precondition/postcondition pragmas.
6031 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
6032 Last_Formal, along with lots of comments on what this is about
6033 (Analyze_Subprogram_Body): Fix case where we move entities from the
6034 spec to the body when there are no body entities (now possible with
6035 precondition and postcondition pragmas).
6036 (Process_PPCs): New procedure
6037 (Analyze_Subprogram_Body): Add call to Process_PPCs
6038
6039 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
6040 clause.
6041 (Pop_Scope): Restore Check_Policy_List on scope exit
6042 (Push_Scope): Save Check_Policy_List on scope entry
6043 Change name In_Default_Expression => In_Spec_Expression
6044 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6045 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6046 (Analyze_Object_Renaming): Allow 'Reference as object
6047 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
6048 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
6049 of restriction identifier.
6050 Add Sure parameter to Note_Possible_Modication calls
6051
6052 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
6053 Don't check for primitive operations when calling Rep_Item_Too_Late.
6054 (Process_Import_Or_Interface): Do not place flag on formal
6055 subprograms.
6056 (Analyze_Pragma, case Export): If the entity is a deferred constant,
6057 propagate information to full view, which is the one elaborated by the
6058 back-end.
6059 (Make_Inline): the pragma is effective if it applies to an internally
6060 generated subprogram declaration for a body that carries the pragma.
6061 (Analyze_Pragma, case Optimize_Alignment): Set new flag
6062 Optimize_Alignment_Local.
6063 (Analyze_PPC_In_Decl_Part): New procedure
6064 (Get_Pragma_Arg): Moved to outer level
6065 (Check_Precondition_Postcondition): Change to allow new visibility
6066 rules for package spec
6067 (Analyze_Pragma, case Check_Policy): Change placement rules to be
6068 same as pragma Suppress/Unsuppress.
6069 Change name In_Default_Expression => In_Spec_Expression
6070 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6071 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6072 (Check_Precondition_Postcondition): Do proper visibility preanalysis
6073 for the case of these pragmas appearing in the spec.
6074 (Check_Enabled): New function
6075 (Initialize): New procedure
6076 (Tree_Read): New procedure
6077 (Tree_Write): New procedure
6078 (Check_Precondition_Postcondition): New procedure
6079 Implement pragmas Check and Check_Policy
6080 Merge Assert processing with Check
6081
6082 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
6083 New warning flag -gnatw.e
6084
6085 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
6086 returning whether a task (or main procedure) has a pragma
6087 Relative_Deadline.
6088 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
6089 (or main procedure) has a pragma Relative_Deadline.
6090 Add Next_Pragma field to N_Pragma node
6091 (PPC_Enabled): New flag
6092 (Next_Pragma): Now used for Pre/Postcondition processing
6093
6094 * snames.h, snames.ads, snames.adb: New standard name
6095 Inherit_Source_Path
6096 Add entry for 'Invalid_Value attribute
6097 Add entry for new attribute Has_Tagged_Values
6098 Add entry for Enum_Val attribute
6099 Add new standard names Aggregate, Configuration and Library.
6100 Add _Postconditions
6101 Add _Result
6102 Add Pragma_Precondition
6103 Add Pragma_Postcondition
6104 Add Attribute_Result
6105 New standard name Archive_Builder_Append_Option
6106 (Preset_Names): Add _relative_deadline and relative_deadline definitions
6107 There was also a missing non_preemptive_within_priorities.
6108 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
6109 Relative_Deadline.
6110 Add support for pragmas Check and Check_Policy
6111
6112 * tree_gen.adb: Call Sem_Aux.Tree_Write
6113
6114 * tree_in.adb: Call Sem_Aux.Tree_Read
6115
6116 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
6117 sequence
6118
6119 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
6120 sequence
6121
6122 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
6123 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
6124 Relative_Deadline.
6125 (Expand_Pragma_Check): New procedure
6126
6127 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
6128 buffer.
6129
6130 * sinfo.adb (PPC_Enabled): New flag
6131
61322008-04-08 Robert Dewar <dewar@adacore.com>
6133 Gary Dismukes <dismukes@adacore.com>
6134 Javier Miranda <miranda@adacore.com>
6135 Ed Schonberg <schonberg@adacore.com>
6136
6137 * fe.h: Remove global Optimize_Alignment flag, no longer used
6138
6139 * layout.adb: Test Optimize_Alignment flags rather than global switch
6140
6141 * lib.ads, lib.adb: New OA_Setting field in library record
6142
6143 * lib-load.adb: New OA_Setting field in library record
6144
6145 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
6146 units mentioned in limited_with_ clauses in the ali file, with an
6147 'Y' marker.
6148 New Ox fields in U line
6149
6150 * opt.adb: New flag Optimize_Alignment_Local
6151 (Check_Policy_List[_Config]): New flags
6152
6153 * opt.ads (Invalid_Value_Used): New flag
6154 New switch Optimize_Alignment_Local
6155 (Warn_On_Parameter_Order): New flag
6156 (Check_Policy_List[_Config]): New flags
6157
6158 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
6159 limited_with clauses.
6160 New data structures for Optimize_Alignment
6161
6162 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
6163 New procedure
6164 (Check_Consistent_Optimize_Alignment): Rework for new structure
6165 (Check_Consistent_Restrictions): Fix incorrect error message
6166
6167 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
6168 created class-wide type (to the Parent field of the specific type).
6169 (Install_Siblings): Handle properly private_with_clauses on subprogram
6170 bodies and on generic units.
6171 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
6172 illegal limited_with_clause that names a non-existent package.
6173 (Check_Body_Required): Determine whether a unit named a limited_with
6174 clause needs a body.
6175 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
6176 Capture Optimize_Alignment settings to set new OA_Setting field in
6177 library record.
6178 (Build_Limited_Views): Include task and protected type declarations.
6179
6180 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
6181 case of a possible constant redeclaration where the current object is
6182 an entry index constant.
6183 (Analyze_Object_Declaration): Generate an error in case of CPP
6184 class-wide object initialization.
6185 (Analyze_Object_Declaration): Add extra information on warnings for
6186 declaration of unconstrained objects.
6187 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
6188 conflicts with the setting of Stored_Constraint in the case where the
6189 access type entity has already been created as an E_Incomplete_Type due
6190 to a limited with clause.
6191 Use new Is_Standard_Character_Type predicate
6192 (Analyze_Object_Declaration): Apply access_constant check only after
6193 expression has been resolved, given that it may be overloaded with
6194 several access types.
6195 (Constant_Redeclaration): Additional legality checks for deferred
6196 constant declarations tha involve anonymous access types and/or null
6197 exclusion indicators.
6198 (Analyze_Type_Declaration): Set Optimize_Alignment flags
6199 (Analyze_Subtype_Declaration): Ditto
6200 (Analyze_Object_Declaration): Ditto
6201 (Analyze_Object_Declaration): Don't count tasks in generics
6202 Change name In_Default_Expression => In_Spec_Expression
6203 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6204 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6205 (Process_Discriminants): Additional check for illegal use of default
6206 expressions in access discriminant specifications in a type that is not
6207 explicitly limited.
6208 (Check_Abstract_Overriding): If an inherited function dispaches on an
6209 access result, it must be overridden, even if the type is a null
6210 extension.
6211 (Derive_Subprogram): The formals of the derived subprogram have the
6212 names and defaults of the parent subprogram, even if the type is
6213 obtained from the actual subprogram.
6214 (Derive_Subprogram): In the presence of interfaces, a formal of an
6215 inherited operation has the derived type not only if it descends from
6216 the type of the formal of the parent operation, but also if it
6217 implements it. This is relevant for the renamings created for the
6218 primitive operations of the actual for a formal derived type.
6219 (Is_Progenitor): New predicate, to determine whether the type of a
6220 formal in the parent operation must be replaced by the derived type.
6221
6222 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
6223 predicate recursive to handle components that have a user-defined
6224 Initialize procedure. Handle controlled derived types whose ancestor
6225 has a user-defined Initialize procedured.
6226 (Note_Possible_Modification): Add Sure parameter, generate warning if
6227 sure modification of constant
6228 Use new Is_Standard_Character_Type predicate
6229 (Find_Parameter_Type): when determining whether a protected operation
6230 implements an interface operation, retrieve the type of the formal from
6231 the entity when the formal is an access parameter or an
6232 anonymous-access-to-subprogram.
6233 Move Copy_Parameter_List to sem_util, for use when building stubbed
6234 subprogram bodies.
6235 (Has_Access_Values): Tagged types now return False
6236 (Within_HSS_Or_If): New procedure
6237 (Set_Optimize_Alignment_Flags): New procedure
6238 Change name In_Default_Expression => In_Spec_Expression
6239 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
6240 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
6241
62422008-04-08 Tristan Gingold <gingold@adacore.com>
6243
6244 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
6245
62462008-04-08 Tristan Gingold <gingold@adacore.com>
6247
6248PR ada/10768
6249
6250 * cuintp.c: Fix 16 bits issue for AVR.
6251 On AVR, integer is 16 bits, so it can't be used to do math with
6252 Base (=32768).
6253 So use long_integer instead.
6254
62552008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6256
6257 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
6258 System.OS_Primitives.
6259 Change type of various constants, parameters and local variables from
6260 Time to representation type OS_Time.
6261 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
6262 Remove the declaration of constant Mili_F from several routines. New
6263 body for internal package Conversions_Operations.
6264 (Time_Of): Add default parameters for several formals.
6265
6266 * a-caldel.adb: Minor reformatting
6267
6268 * a-calend.ads, a-calend.adb: New body for internal package
6269 Conversions_Operations.
6270 (Time_Of): Add default parameters for several formals.
6271
6272 * Makefile.rtl: Add a-ststop
6273 Add Ada.Calendar.Conversions to the list of runtime files.
6274 Add g-timsta
6275
6276 * a-calcon.adb, a-calcon.ads: New files.
6277
62782008-04-08 Jose Ruiz <ruiz@adacore.com>
6279 Tristan Gingold <gingold@adacore.com>
6280
6281 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
6282 (Install_Restricted_Handlers): New procedure
6283 which is a simplified version of Install_Handlers that does not store
6284 previously installed.
6285
6286 * s-interr-vxworks.adb: Fix ACATS cxc3001
6287 On VxWorks interrupts can't be detached.
6288 (Install_Restricted_Handlers): New procedure.
6289
6290 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
6291 procedure.
6292
62932008-04-08 Olivier Hainque <hainque@adacore.com>
6294
6295 * s-intman-vxworks.ads, s-intman-vxworks.adb
6296 (Map_And_Raise_Exception): Remove. Was an import of only part of the
6297 required services already implemented elsewhere.
6298 (Notify_Exception): Delete body, import __gnat_error_handler instead.
6299 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
6300 argument passed to the handler, which we need for ZCX propagation
6301 purposes.
6302
63032008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6304
6305 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
6306
6307 * g-timsta.adb, g-timsta.ads: New files.
6308
63092008-04-08 Robert Dewar <dewar@adacore.com>
6310
6311 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
6312 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
6313 (Raise_Exception_Always): Fix documentation accordingly
6314
63152008-04-08 Robert Dewar <dewar@adacore.com>
6316
6317 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
6318 Stream_Convert)
6319
6320 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
6321 FOnly
6322
63232008-04-08 Javier Miranda <miranda@adacore.com>
6324 Robert Dewar <dewar@adacore.com>
6325 Ed Schonberg <schonberg@adacore.com>
6326
6327 * a-tags.adb (Register_Interface_Offset): New subprogram.
6328 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
6329 (To_Predef_Prims_Table_Ptr): Removed.
6330 (Acc_Size): Removed.
6331 (To_Acc_Size): Removed.
6332 (Parent_Size): Modified to the call the subprogram returning the size of
6333 the parent by means of the new TSD component Size_Func.
6334
6335 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
6336 (DT_Offset_To_Top_Offset): New constant value that is used to generate
6337 code referencing the Offset_To_Top component of the dispatch table's
6338 prologue.
6339 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
6340 use of 'address to initialize dispatch table slots.
6341 (Size_Func): New component of the TSD. Used by the run-time to call the
6342 size primitive of the tagged type.
6343
6344 * checks.adb (Apply_Access_Check): Avoid check when accessing the
6345 Offset_To_Top component of a dispatch table.
6346 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
6347 deferred constant declaration. do not add a null expression, to prevent
6348 spurious errors when full declaration is analyzed.
6349 (Apply_Discriminant_Check): If both discriminant constraints share a
6350 node which is not static but has no side effects, do not generate a
6351 check for that discriminant.
6352 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
6353 subexpr, since the prefix of an attribute is a name.
6354
6355 * checks.ads: Fix nit in comment.
6356
6357 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
6358 and body of predefined primitives in case of CPP tagged type
6359 derivations.
6360 (Freeze_Type): Deal properly with no storage pool case
6361 (Make_Predefined_Primitive_Specs): Generate specification of abstract
6362 primitive Deep_Adjust if a nonlimited interface is derived from a
6363 limited interface.
6364 (Build_Dcheck_Functions): Create discriminant-checking functions only
6365 for variants that have some component(s).
6366 (Build_Slice_Assignment): In expanded code for slice assignment, handle
6367 properly the case where the slice bounds extend to the last value of the
6368 underlying representation.
6369 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
6370 (Is_Variable_Size_Record): An array component has a static size if
6371 index bounds are enumeration literals.
6372
6373 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
6374 an external tag has been specified for the type.
6375 (Building_Static_DT): Add missing support for private types.
6376 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
6377 to the entity associated with the parent of Typ. This is done to
6378 avoid wrong access when the parent is a private type.
6379 (Expand_Interface_Conversion): Improve error message when the
6380 configurable runtime has no support for dynamic interface conversion.
6381 (Expand_Interface_Thunk): Add missing support to interface types in
6382 configurable runtime.
6383 (Expand_Dispatching_Call): remove obsolete code.
6384 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
6385 ensure that all subtypes and aggregates associated with dispatch
6386 tables have the attribute Is_Dispatch_Table_Entity set to true.
6387 (Register_Primitive): Rename one variable to improve code reading.
6388 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
6389 of the pointer to the 'size primitive in the TSD.
6390
6391 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
6392 (RE_Offset_To_Top_Ptr): New entity.
6393 (RE_Register_Interface_Offset): New entity.
6394 (RE_Set_Dynamic_Offset_To_Top): New entity.
6395 (RE_Set_Offset_To_Top): Removed entity.
6396 (RE_Prim_Ptr): New entity
6397 (RE_Size_Func): New entity
6398 (RE_Size_Ptr): New entity
6399 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
6400 (Ada_Dispatching_Child): Define this new subrange.
6401 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
6402 RE_Time_Span, and RE_Time_Span_Zero).
6403 (RE_Unit_Table): Add new required run-time calls
6404
6405 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
6406 children.
6407
6408 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
6409 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
6410 initializes the Offset_To_Top component of a dispatch table.
6411 (Build_Predef_Prims): Removed.
6412 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
6413 its actual code.
6414 (Build_Set_Size_Function): New subprogram.
6415
6416 * exp_ch13.adb: Do not generate storage variable for storage_size zero
6417 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
6418
64192008-04-08 Robert Dewar <dewar@adacore.com>
6420
6421 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
6422 computing Fore when Exp > 0
6423
64242008-04-08 Robert Dewar <dewar@adacore.com>
6425
6426 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
6427
6428 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
6429 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
6430
6431 * fmap.adb: Remove Big_String declarations (now in Types)
6432 (No_Mapping_File): New Boolean global variable
6433 (Initialize): When mapping file cannot be read, set No_Mapping_File to
6434 False.
6435 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
6436 tables were empty before adding entries, open the mapping file
6437 with Truncate = True, instead of delete/re-create.
6438
6439 * fname-sf.adb: Remove Big_String declarations (now in Types)
6440
6441 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
9e81dbc7 6442 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
d563d3f0
AC
6443 big pointer types
6444
6445 * table.ads: Add for Table_Ptr'Storage_Size use 0
6446
6447 * types.ads: Add Big_String declarations
6448 Add Size_Clause of zero for big pointer types
6449
64502008-04-08 Vincent Celier <celier@adacore.com>
6451
6452 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
6453 (Usage): Add line for switch --subdirs=
6454 Add new switch -eL, to follow symbolic links when processing project
6455 files.
6456
6457 * gnatcmd.adb: Process switches -eL and --subdirs=
6458 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
6459 Program_Name to get proper tool names when AAMP_On_Target is set.
6460 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
6461 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
6462 Osint.Program_Name).
6463
6464 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
6465 (Usage): Add lines for switches -eL and --subdirs=
6466
6467 * makeusg.adb: Add line for switch --subdirs=
6468
9e81dbc7 6469 * prj.ads:
d563d3f0
AC
6470 (Source_Data): New Boolean component Compiled, defaulted to True
6471 (Empty_File_Name: New global variable in private part, initialized in
6472 procedure Initialize.
6473 (Subdirs_Option): New constant string
6474 (Subdirs): New String_Ptr global variable
6475 (Language_Config): New component Include_Compatible_Languages
6476 (Project_Qualifier): New type for project qualifiers
6477 (Project_Data): New component Qualifier
6478 (Project_Configuration): New component Archive_Builder_Append_Option
6479
6480 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
6481 another imported project indicate the name of this imported project.
6482 (Check_File): When a unit is in two project files, indicate the project
6483 names and the paths of the source files for each project.
6484 (Add_Source): Set Compiled to False if compiler driver is empty. Only
6485 set object, dependency and switches file names if Compiled is True.
6486 (Process_Compiler): Allow the empty string for value of attribute Driver
6487 (Get_Directories): When Subdirs is not null and Object_Dir is not
6488 specified, locate and create if necessary the actual object dir.
6489 (Locate_Directory): When Subdirs is not empty and Create is not the
6490 empty string, locate and create if necessary the actual directory
6491 as a subdirectory of directory Name.
6492 (Check_Library_Attributes.Check_Library): Allow a project where the only
6493 "sources" are header files of file based languages to be imported by
6494 library projects, in multi-language mode (gprbuild).
6495 (Check_Library_Attributes.Check_Library): In multi-language mode
6496 (gprbuild), allow a library project to import a project with no
6497 sources, even when this is not declared explicitly.
6498 (Check_If_Externally_Built): A virtual project extending an externally
6499 built project is also externally built.
6500 (Check_Library_Attributes): For a virtual project extending a library
6501 project, inherit the library directory.
6502 (Process_Project_Level_Array_Attributes): Process new attribute
6503 Inherit_Source_Path.
6504 For projects with specified qualifiers "standard", "library" or
6505 "abstract", check that the project conforms to the qualifier.
6506 (Process_Project_Level_Simple_Attributes): Process new attribute
6507 Archive_Builder_Append_Option.
6508
6509 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
6510 (Normalize_Compiler_Switches): Only keep compiler switches that are
6511 passed to gnat1 by the gcc driver and that are stored in the ALI file
6512 by gnat1.
6513 Do not take into account switc -save-temps
6514
6515 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
6516 gprmake is called with -eL.
6517 (Scan_Arg): Recognize switch -eL
6518 (Usage): Add line for switch -eL
6519
6520 * prj.adb (Initialize): Initialize Empty_File_Name
6521 (Project_Empty): New component Qualifier
6522
6523 * prj-attr.ads, prj-attr.adb: New project level attribute
6524 Inherit_Source_Path.
6525 New project level attribute Archive_Builder_Append_Option
6526
6527 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
6528
6529 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
6530 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
6531 upward compatibility.
6532
6533 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
6534 each Trying ..." on different lines.
6535 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
6536 is "configuration" when not in configuration. Fail when in configuration
6537 when a specified qualifier is other than "configuration".
6538
6539 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
6540 full associative array together.
6541 (Recursive_Process): Put the project qualifier in the project data
9e81dbc7 6542
d563d3f0
AC
6543 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
6544 (Set_Project_Qualifier_Of): New procedure
6545
65462008-04-08 Robert Dewar <dewar@adacore.com>
6547
6548 * errout.ads: Update comments for new handling of info: messages
6549
6550 * erroutc.adb (Matches): New procedure
6551 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
6552 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
6553 info messages as well as style messages.
6554
6555 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
6556
6557 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
6558 subprograms.
6559 (Check_A_Call): Special "info: " warnings now have ? in the text
6560 (Elab_Warning): Use info message in static case
6561
65622008-04-08 Ed Schonberg <schonberg@adacore.com>
6563
6564 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
6565 whether an array aggregate with static bounds and scalar components
6566 should be expanded into a static constant.
6567
65682008-04-08 Gary Dismukes <dismukes@adacore.com>
6569 Ed Schonberg <schonberg@adacore.com>
6570 Robert Dewar <dewar@adacore.com>
6571
6572 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
6573 Has_Stream_Attribute_ Definition when checking for available stream
6574 attributes on parameters of a limited type in Ada 2005. Necessary for
6575 proper recognition of visible stream attribute clauses.
6576 (Has_Stream_Attribute_Definition): If the type is derived from a
6577 private type, then use the derived type's underlying type for checking
6578 whether it has stream attributes.
6579 (Validate_Object_Declaration): The check for a user-defined Initialize
6580 procedure applies also to types with controlled components or a
6581 controlled ancestor.
6582 Reject an object declaration in a preelaborated unit if the type is a
6583 controlled type with an overriding Initialize procedure.
6584 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
6585 checking when the parent of a dereference is a selected component and
6586 the name has not been analyzed.
6587
6588 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
6589 prefixes that are invalid explicit dereferences of remote
6590 access-to-class-wide values, first checking whether the selected
6591 component is a prefixed form of call to a tagged operation.
6592 (Analyze_Call): Remove code that issues an error for limited function
6593 calls in illegal contexts, as we now support all of the contexts that
6594 were forbidden here.
6595 Allow a function call that returns a task.and appears as the
6596 prefix of a selected component.
6597 (Analyze_Reference): Give error message if we try to make a 'Reference
6598 for an object that is atomic/aliased without its type having the
6599 corresponding attribute.
6600 (Analyze_Call): Remove condition checking for attributes to allow
6601 calls to functions with inherently limited results as prefixes of
6602 attributes. Remove related comment about Class attributes.
6603 (Analyze_Selected_Component): If the prefix is a remote type, check
6604 whether this is a prefixed call before reporting an error.
6605 (Complete_Object_Operation): If the controlling formal is an access to
6606 variable reject an actual that is a constant or an access to one.
6607 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
6608 primitive operations from base type.
6609
6610 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
6611 build-in-place
6612 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
6613 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
6614 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
6615 (Expand_N_Slice): Test for prefix that is a build-in-place function call
6616 and call Make_Build_In_Place_Call_In_Anonymous_Context.
6617 (Analyze_Call): Remove code that issues an error for limited function
6618 calls in illegal contexts, as we now support all of the contexts that
6619 were forbidden here.
6620 New calling sequence for Get_Simple_Init_Val
6621 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
6622 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
6623
66242008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6625 Ed Schonberg <schonberg@adacore.com>
6626 Robert Dewar <dewar@adacore.com>
6627
6628 * exp_ch2.adb: Minor reformatting.
6629 (Expand_Entry_Index_Parameter): Set the type of the identifier.
6630 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
6631 (Expand_Protected_Component): New routine.
6632 (Expand_Protected_Private): Removed.
6633 Add Sure parameter to Note_Possible_Modification calls
6634
6635 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
6636 generated subprogram declaration must inherit the overriding indicator
6637 from the instantiation node.
6638 (Validate_Access_Type_Instance): If the designated type of the actual is
6639 a limited view, use the available view in all cases, not only if the
6640 type is an incomplete type.
6641 (Instantiate_Object): Actual is illegal if the formal is null-excluding
6642 and the actual subtype does not exclude null.
6643 (Process_Default): Handle properly abstract formal subprograms.
6644 (Check_Formal_Package_Instance): Handle properly defaulted formal
6645 subprograms in a partially parameterized formal package.
6646 Add Sure parameter to Note_Possible_Modification calls
6647 (Validate_Derived_Type_Instance): if the formal is non-limited, the
6648 actual cannot be limited.
6649 (Collect_Previous_Instances): Generate instance bodies for subprograms
6650 as well.
6651
6652 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
6653 try to set RM_Size.
6654 Add Sure parameter to Note_Possible_Modification calls
6655 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
6656 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
6657 constant overlaid by variable and issue warning.
6658 Use new Is_Standard_Character_Type predicate
6659 (Analyze_Record_Representation_Clause): Check that the specified
6660 Last_Bit is not less than First_Bit - 1.
6661 (Analyze_Attribute_Definition_Clause, case Address): Check for
6662 self-referential address clause
6663
6664 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
6665 detection mechanism when the lhs is a prival.
6666 (Analyze_Assignment): Call Check_Unprotected_Access to detect
6667 assignment of a pointer to protected data, to an object declared
6668 outside of the protected object.
6669 (Analyze_Loop_Statement): Check for unreachable code after loop
6670 Add Sure parameter to Note_Possible_Modication calls
6671 Protect analysis from previous syntax error such as a scope mismatch
6672 or a missing begin.
6673 (Analyze_Assignment_Statement): The assignment is illegal if the
6674 left-hand is an interface.
6675
ea081ad7
AC
6676 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
6677 violation of restriction No_Implicit_Conditionals
d563d3f0
AC
6678 Add Sure parameter to Note_Possible_Modication calls
6679 Use new Is_Standard_Character_Type predicate
6680 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
6681 call as operator. Fixes problems (e.g. validity checking) which
6682 come from the result looking as though it does not come from source).
6683 (Resolve_Call): Check case of name in named parameter if style checks
6684 are enabled.
6685 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
6686 from the checking that such calls should not occur from an entry body.
6687 (Resolve_Call): If the return type of an Inline_Always function
6688 requires the secondary stack, create a transient scope for the call
6689 if the body of the function is not available for inlining.
6690 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
6691 that are actuals for in-out formals.
6692 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
6693 primitive operations from base type.
6694 (Analyze_Selected_Component): If the context is a call to a protected
6695 operation the parent may be an indexed component prior to expansion.
6696 (Resolve_Actuals): If an actual is of a protected subtype, use its
6697 base type to determine whether a conversion to the corresponding record
6698 is needed.
6699 (Resolve_Short_Circuit): Handle pragma Check
6700
6701 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
6702 Use new Is_Standard_Character_Type predicate
6703 (Eval_Relational_Op): Catch more cases of string comparison
6704
67052008-04-08 Robert Dewar <dewar@adacore.com>
6706 Gary Dismukes <dismukes@adacore.com>
6707
6708 * s-rident.ads: Add No_Default_Initialization restriction
6709
9e81dbc7 6710 * exp_tss.adb:
d563d3f0
AC
6711 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
6712 (Set_TSS): Handle No_Default_Initialization case
6713
6714 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
6715 No_Default_Initialization
6716 (Expand_N_Subprogram_Body): Remove redundant initialization of out
6717 parameters when Normalize_Scalars is active.
6718 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
6719 Fix casing error in formal parameter name in call
6720 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
6721 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6722 dispatching call on VM targets.
6723
67242008-04-08 Gary Dismukes <dismukes@adacore.com>
6725 Thomas Quinot <quinot@adacore.com>
6726
6727 * exp_ch7.adb (Find_Final_List): Change the test for generating a
6728 selected component from an access type's Associated_Final_Chain to
6729 check for the presence of that field, rather than assuming it exists
6730 for all named access types.
6731 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
6732 procedure to call at the end of the generated cleanup procedure.
6733 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
6734 and an At_End_Proc already exists in the handled sequence of statements
6735 for which cleanup actions are being expanded, the original cleanup
6736 action must be preserved.
6737
67382008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
6739 Ed Schonberg <schonberg@adacore.com>
6740 Robert Dewar <dewar@adacore.com>
6741 Gary Dismukes <dismukes@adacore.com>
6742
6743 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
6744 Build_Unprotected_Subprogram_Body): Generate debug info for
6745 declarations related to the handling of private data in task and
6746 protected types.
6747 (Debug_Private_Data_Declarations): New subprogram.
6748 (Install_Private_Data_Declarations): Remove all debug info flagging.
6749 This is now done by Debug_Private_Data_Declarations at the correct
6750 stage of expansion.
6751 (Build_Simple_Entry_Call): If the task name is a function call, expand
6752 the prefix into an object declaration, and make the surrounding block a
6753 task master.
6754 (Build_Master_Entity): An internal block is a master if it wraps a call.
6755 Code reformatting, update comments. Code clean up.
6756 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
6757 (Replicate_Entry_Formals): If the formal is an access parameter or
6758 anonymous access to subprogram, copy the original tree to create new
6759 entities for the formals of the subprogram.
6760 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
6761 for tasks to store the value passed using pragma Relative_Deadline.
6762 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
6763 run-time call to create a task.
6764 (Build_Wrapper_Spec): If the controlling argument of the interface
6765 operation is an access parameter with a non-null indicator, use the
6766 non-null indicator on the wrapper.
6767
6768 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
6769 present, which it may not be in the case where the type entity is an
6770 incomplete view brought in by a limited with.
6771 (Analyze_Task_Type): Only retrieve the full view when present, which it
6772 may not be in the case where the type entity is an incomplete view brought
6773 in by a limited with.
6774 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
6775 private components of a protected type, to prevent the generation of freeze
6776 nodes for which there is no proper scope of elaboration.
6777
6778 * exp_util.ads, exp_util.adb
6779 (Remove_Side_Effects): If the expression is a function call that returns a
6780 task, expand into a declaration to invoke the build_in_place machinery.
6781 (Find_Protection_Object): New routine.
6782 (Remove_Side_Effects): Also make a copy of the value
6783 for attributes whose result is of an elementary type.
6784 (Silly_Boolean_Array_Not_Test): New procedure
6785 (Silly_Boolean_Array_Xor_Test): New procedure
6786 (Is_Volatile_Reference): New function
6787 (Remove_Side_Effects): Use Is_Volatile_Reference
6788 (Possible_Bit_Aligned_Component): Handle slice case properly
6789
6790 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
6791 case test to Exp_Util
6792 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
6793
67942008-04-08 Thomas Quinot <quinot@adacore.com>
6795
6796 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
6797 in call
6798 (Add_RACW_Features): When processing an RACW in another unit than the
6799 main unit, set Body_Decls to No_List to indicate that the bodies of
6800 the type's TSS must not be generated.
6801 (GARLIC_Support.Add_RACW_Read_Attribute,
6802 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
6803 Body_Decls is No_List.
6804 (PolyORB_Support.Add_RACW_Read_Attribute,
6805 PolyORB_Support.Add_RACW_Write_Attribute,
6806 PolyORB_Support.Add_RACW_From_Any,
6807 PolyORB_Support.Add_RACW_To_Any,
6808 PolyORB_Support.Add_RACW_TypeCode): Same.
6809 (Transmit_As_Unconstrained): New function.
6810 (Build_Ordered_Parameters_List): Use the above to order parameters.
6811 (GARLIC_Support.Build_General_Calling_Stubs):
6812 Use the above to determine which parameters to unmarshall using 'Input
6813 at the point where their temporary is declared (as opposed to later on
6814 with a 'Read call).
6815 (PolyORB_Support.Build_General_Calling_Stubs):
6816 Use the above to determine which parameters to unmarshall using From_Any
6817 at the point where their temporary is declared (as opposed to later on
6818 with an assignment).
6819
68202008-04-08 Ed Schonberg <schonberg@adacore.com>
6821
6822 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
6823 an Input function for an access type, do not perform default
6824 initialization on the local variable that receives the value, to
6825 prevent spurious warnings when the type is null-excluding.
6826
68272008-04-08 Robert Dewar <dewar@adacore.com>
6828 Ed Schonberg <schonberg@adacore.com>
6829
6830 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
6831 units.
6832 (Size_Known): Generic formal scalar types have known at compile
6833 time size, so remove check.
6834 Fix casing error in formal parameter name in call
6835 (Freeze_Subprogram): If the subprogram is a user-defined operator,
6836 recheck its overriding indication.
6837
68382008-04-08 Vincent Celier <celier@adacore.com>
6839
6840 * gnat1drv.adb: Send all messages indicating an error to standard error
6841
68422008-04-08 Robert Dewar <dewar@adacore.com>
6843
6844 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
6845 (List_Applicable_Restrictions): Do not list existing restrictions
6846
68472008-04-08 Thomas Quinot <quinot@adacore.com>
6848
6849 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
6850 add a pointer to generic sockets literature
6851 do not mention that the given example is "typical" usage.
6852 Remove obsolete comment about multicast not being supported on Windows.
6853 (Connect_Socket): Make Server mode IN rather than IN OUT
6854 since this formal is never modified.
6855
68562008-04-08 Robert Dewar <dewar@adacore.com>
6857
6858 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
6859 the declaration for some different entity.
6860 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
6861 list is precent (following the parent subtype indication), display
6862 appropriate "and" keyword.
6863
6864 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
6865 Remove unnecessary calls to Init_Size_Align and Init_Esize.
6866 Add notes on use of Parent field of an Itype
6867
68682008-04-08 Ed Schonberg <schonberg@adacore.com>
6869 Robert Dewar <dewar@adacore.com>
6870 Gary Dismukes <dismukes@adacore.com>
6871
6872 * lib-xref.adb (Is_On_LHS): Remove dead code
6873 (Output_Overriden_Op): If the overridden operation is itself inherited,
6874 list the ancestor operation, which is the one whose body or absstract
6875 specification is actually being overridden. For source navigation
6876 purposes.
6877
6878 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
6879 operation is primitive for the type.
6880 (Declare_Inherited_Private_Subprograms): If the new operation overrides
6881 an inherited private subprogram, set properly the Overridden_Operation
6882 attribute, for better cross-reference information.
6883 (Analyze_Package_Specification): Do late analysis of spec PPCs
6884 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
6885 properly the full view and underlying full views of a private type in a
6886 child unit, whose full view is derived from a private type in a parent
6887 unit, and whose own full view becomes visible in the child body.
6888
6889 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
6890 primitive operation after the type has been frozen, add an explicit
6891 reference to the type and the operation, because other primitive
6892 references have been emitted already.
6893 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
6894 dispatching call on VM targets.
6895
68962008-04-08 Vincent Celier <celier@adacore.com>
6897 Thomas Quinot <quinot@adacore.com>
6898
6899 * make.adb: (Gnatmake_Called): Remove, no longer necessary
6900 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
6901 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
6902 (Insert_Project_Sources): Take into account index in multi-unit source
6903 files.
6904 After building a library project, delete all temporary files.
6905 (Initialize): Reset current output after parsing project file.
6906 (Collect_Arguments_And_Compile): Never insert in the queue the sources
6907 of library projects that are externally built.
6908 Put file name in error and inform messages if -df is used
6909 (Display): If invoked with -d7, do not display path names, but only
6910 file names.
6911
6912 * makeutl.ads (Path_Or_File_Name): New function
6913 (Path_Or_File_Name): New function
6914
69152008-04-08 Arnaud Charlet <charlet@adacore.com>
6916
6917 * Make-lang.in: Disable warnings during first stage of bootstrap
6918 Get rid of gnatbl.
6919 Update dependencies.
6920
69212008-04-08 Vincent Celier <celier@adacore.com>
6922
6923 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
6924 case to decide if ALI object file is included in library.
6925 (Build_Library): Never attempt to build a library if the project is
6926 externally built.
6927
69282008-04-08 Thomas Quinot <quinot@adacore.com>
6929
6930 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
6931 (No_List) is defined to return Empty.
6932
69332008-04-08 Jose Ruiz <ruiz@adacore.com>
6934
6935 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
6936 documentation.
6937 Update comments.
6938 (Read_Default_Search_Dirs): Do not consider spaces as path separators
6939 because spaces may be part of legal paths.
6940
69412008-04-08 Robert Dewar <dewar@adacore.com>
6942
6943 * par-ch11.adb (P_Exception_Handler): Check indentation level for
6944 handler
6945
69462008-04-08 Ed Schonberg <schonberg@adacore.com>
6947
6948 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
6949 in a type declaration, if this is not an interface declaration or
6950 private type extension.
6951
69522008-04-08 Vincent Celier <celier@adacore.com>
6953
6954 * prj-util.adb (Executable_Of): New String parameter Language. When
6955 Ada_Main is False and Language is not empty, attempt to remove the body
6956 suffix or the spec suffix of the language to get the base of the
6957 executable file name.
6958 (Put): New Boolean parameter Lower_Case, defauilted to False. When
6959 Lower_Case is True, put the value in lower case in the name list.
6960 (Executable_Of): If there is no executable suffix in the configuration,
6961 then do not modify Executable_Extension_On_Target.
6962
6963 * prj-util.ads (Executable_Of): New String parameter Language,
6964 defaulted to the empty string.
6965 (Put): New Boolean parameter Lower_Case, defauilted to False
6966
69672008-04-08 Robert Dewar <dewar@adacore.com>
6968
6969 * scng.adb (Scan_Identifier): Handle case of identifier starting with
6970 wide character using UTF-8 encoding.
6971
69722008-04-08 Javier Miranda <miranda@adacore.com>
6973
6974 * sem.adb (Analyze): Consider case in which we analyze an empty node
6975 that was generated by a call to a runtime function that is not
6976 available under the configurable runtime.
6977
6978 * sem.ads (Inside_Freezing_Actions): New flag.
6979 (Save_Check_Policy_List): New field in scope stack entry
6980
69812008-04-08 Ed Schonberg <schonberg@adacore.com>
6982 Robert Dewar <dewar@adacore.com>
6983
6984 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
6985 the ancestor part of an extension aggregate for a limited type.
6986 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
6987 enumeration index bounds.
6988 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
6989 when array is too short.
6990 (Check_Expr_OK_In_Limited_Aggregate): Move function
6991 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
6992 change name).
6993 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
6994 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
6995 component associations.
6996 (Check_Non_Limited_Type): Moved to outer level and renamed.
6997 (Resolve_Record_Aggregate): In an extension aggregate, an association
6998 with a box initialization can only designate a component of the
6999 extension, not a component inherited from the given ancestor
7000
7001 * sem_case.adb: Use new Is_Standard_Character_Type predicate
7002
70032008-04-08 Robert Dewar <dewar@adacore.com>
7004
7005 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
7006 negative scale
7007 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
7008 Properly handle case where Aft > Scale and input number is less than
7009 one.
7010
70112008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
7012
7013 * s-stoele.ads, s-soflin.ads: Move the location of
7014 Dummy_Communication_Block from System.Storage_Elements to
7015 System.Soft_Links.
7016
7017 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
7018 emulate Communication_Block in certain scenarios.
7019
70202008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
7021
7022 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
7023 subprogram.
7024 Add new subtype S_WWC, unchecked conversion routines From_WWC and
7025 To_WWC.
7026 (I_WWC, O_WWC): New routines for input and output of
7027 Wide_Wide_Character.
7028
70292008-04-08 Robert Dewar <dewar@adacore.com>
7030
7031 * stringt.adb (Write_String_Table_Entry): Handle wide characters
7032 properly
7033
70342008-04-08 Robert Dewar <dewar@adacore.com>
7035
7036 * styleg.adb (Check_Comment): Allow special char after -- in
7037 non-end-of-line case
7038
70392008-04-08 Robert Dewar <dewar@adacore.com>
7040
7041 * stylesw.adb: Implement -gnaty + - y options
7042 (Set_GNAT_Style_Check_Options): Includ I in style check string
7043
7044 * stylesw.ads: Add comments for new style switch options
7045
70462008-04-08 Sergey Rybin <rybin@adacore.com>
7047
7048 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
7049 to the set of the GNAT components needed by ASIS.
7050
70512008-04-08 Bob Duff <duff@adacore.com>
7052
7053 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
7054
70552008-04-08 Tristan Gingold <gingold@adacore.com>
7056
7057 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
7058 Improve error message generation.
7059
70602008-04-08 Vincent Celier <celier@adacore.com>
7061
7062 * a-direct.adb (Start_Search): Check for Name_Error before checking for
7063 Use_Error, as specified in the RM. Check if directory is open and raise
7064 Use_Error if it is not.
7065
70662008-04-08 Vincent Celier <celier@adacore.com>
7067 Robert Dewar <dewar@adacore.com>
7068
7069 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
7070 AAMP_On_Target is set.
7071
7072 * vms_data.ads: Add NOxxx to style check switch list
7073 Add entry COMPONENTS for -gnatVe
7074 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
7075 (/SUBDIRS=).
7076 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
7077 Add qualifiers for gnatmetric coupling options
7078 Add note that -gnata enables all checks
7079 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
7080 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
7081 New warning flag -gnatw.e
7082
7083 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
7084 Add entry for -gnatyN (forgotten before)
7085 Line for new warning switch -gnatw.p
7086 New warning flag -gnatw.e
7087
7088 * gnat_ugn.texi: Add documentation fpr project file switch -aP
7089 Document -gnaty - + y
7090 Replace occurences of "package specification" with "package spec"
7091 Define preprocessing symbols in documentation of gnatprep
7092 Clarify reason for distinguishing overflow checking
7093 Add documentation for project-aware tool switches -eL and --subdirs=
7094 Complete list of configuration pragmas
7095 Specify that, even when gnatmake switch -x is used, mains on the command
7096 line need to be sources of project files.
7097 Editing of gnatcheck/gnatmetric doc.
7098 Add documentation for -gnatw.p/-gnatw.P
7099 Add missing documentation for -fno-inline-functions.
7100 Add documentation for -gnatw.e
7101
7102 * gnat_rm.texi: Add documentation for No_Default_Initialization
7103 Replace occurences of "package specification" with "package spec"
7104 Document use of * in Warnings Off string
7105 Update documentation of alignment/component clauses.
7106 Add documentation for Invalid_Value
7107 Document new consistency rule for Optimize_Alignment
7108 Add documentation for Precondition and Postcondition pragmas
7109 Add documentation for Check and Check_Policy pragmas
7110 Document new Enum_Val attribute
7111 Remove requirement for static string in pragma Assert
7112 Add documentation on GNAT.Time_Stamp
7113
7114 * ug_words: add entry for -gnatVe
7115 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
7116 Add entry for -gnatw.e
7117
7118 * debug.adb: Add missing documentation for d.a flag
7119 Document new -gnatd.a switch.
7120 Add documentation for new gnatmake debug switch -df
7121
71222008-04-08 Thomas Quinot <quinot@adacore.com>
7123
7124 * gen-soccon.c: Bump year in copyright notices.
7125
7126 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
7127
71282008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7129
7130 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
7131 Minor reformatting.
7132
71332008-04-08 Robert Dewar <dewar@adacore.com>
7134 Bob Duff <duff@adacore.com>
7135
7136 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
7137 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
7138
7139 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
7140
7141 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
7142
7143 * g-trasym.ads: Minor comment improvements
7144
7145 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
7146
7147 * a-sequio.ads, a-direio.ads: improve message for tagged type
7148
7149 * a-strunb.ads: Minor reformatting
7150
7151 * a-tifiio.adb: Minor reformatting
7152
7153 * atree.adb (Fix_Parents): Use clearer names for formals
7154 Cleanup and simplify code
7155 Use named notation in calls
7156
7157 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
7158 confusing calls
7159
7160 * uintp.adb: Used named notation for some confusing calls
7161
7162 * bindusg.adb: Minor change in one line of output
7163
7164 * cstand.adb: Minor reformatting of src representation of Standard
7165
7166 * a-assert.ads: Add comment.
7167
7168 * g-decstr.adb: Fix bad indentation
7169
7170 * expander.ads, expander.adb: Code clean up.
7171
7172 * sem_dist.ads: Minor comment improvement
7173
7174 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
7175 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
7176
7177 * i-cstrin.adb: Fix casing error in formal parameter name in call
7178
71792008-04-08 Ed Schonberg <schonberg@adacore.com>
7180
7181 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
7182 mentioned in limited_with_clauses to do create semantic dependencies
7183 even though they appear in the ali file.
7184
71852008-04-08 Emmanuel Briot <briot@adacore.com>
7186
7187 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
7188 statement.
7189 (Get_Configuration): New subprogram.
7190
7191 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
7192 These optional parameters help preserve the casing of the project's name
7193 when pretty-printing.
7194
71952008-04-08 Jerome Lambourg <lambourg@adacore.com>
7196 Arnaud Charlet <charlet@adacore.com>
7197
7198 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
7199 then use __gnat_set_exit_status to report the returned status code.
7200
7201 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
7202 messages on .NET, since some constructs of the language are not
7203 properly supported.
7204
7205 * gnatlink.adb (Gnatlink): In case the command line is too long for the
7206 .NET linker, gnatlink now concatenate all .il files and pass this to
7207 ilasm.
7208
d8ec5bf2 72092008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9e81dbc7 7210 Xavier Grave <grave@ipno.in2p3.fr>
d8ec5bf2
AJ
7211
7212 * Makefile.in: Add make ifeq define for mips/mipsel support.
9e81dbc7 7213 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
d8ec5bf2
AJ
7214 system-linux-mips.ads: New files.
7215
7437c8d4
AJ
72162008-04-07 Aurelien Jarno <aurelien@aurel32.net>
7217
9e81dbc7 7218 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
7437c8d4
AJ
7219 detect systems using GNU libc.
7220 * gsocket.h: ditto.
7221 * socket.c: ditto.
7222 * adaint.c: ditto.
7223 * link.c: ditto.
7224
1dab7b35
AJ
72252008-04-07 Aurelien Jarno <aurelien@aurel32.net>
7226
9e81dbc7 7227 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
1dab7b35
AJ
7228 constant constant for sysconf call.
7229 (bit_field): New packed boolean type used by cpu_set_t.
7230 (cpu_set_t): New type corresponding to the C type with
7231 the same name. Note that on the Ada side we use a bit
7232 field array for the affinity mask. There is not need
7233 for the C macro for setting individual bit.
7234 (pthread_setaffinity_np): New imported routine.
7235 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
7236 on GNU/kFreeBSD.
7237
39fcde8f
EB
72382008-04-07 Eric Botcazou <ebotcazou@adacore.com>
7239
7240 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
7241
9dd9bf80
EB
72422008-04-07 Eric Botcazou <ebotcazou@adacore.com>
7243
7244 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
7245 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
7246 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
7247 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
7248 Return by Depressed Stack Pointer.
7249
2d091b12
EB
72502008-04-06 Eric Botcazou <ebotcazou@adacore.com>
7251
7252 * decl.c (is_variable_size): Do not unconditionally return false
7253 on non-strict alignment platforms.
7254
1bde5bc4
EB
72552008-04-06 Eric Botcazou <ebotcazou@adacore.com>
7256
7257 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
7258 used to process all the variants of the specified type.
7259 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
7260 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
7261 (rest_of_type_decl_compilation): Likewise.
7262 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
7263
9ff420f1
PB
72642008-04-03 Paolo Bonzini <bonzini@gnu.org>
7265
1bde5bc4
EB
7266 * gigi.h (insert_block): Kill.
7267 * utils.c (insert_block): Kill.
9ff420f1 7268
bf1e48d1
EB
72692008-04-02 Eric Botcazou <ebotcazou@adacore.com>
7270
7271 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
7272 type has self-referential size, get the size from the initializing
7273 expression directly if it is also a constant whose nominal type
7274 has self-referential size.
7275
a6a0635e
JDA
72762008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7277
51e5c7b5
JDA
7278 PR ada/33688
7279 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
7280
a6a0635e
JDA
7281 PR ada/33857
7282 * env.c: Always include crt_externs.h if __APPLE__ is defined.
7283 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
7284
4d22f5b1
AJ
72852008-04-01 Andreas Jaeger <aj@suse.de>
7286
7287 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
7288 IP_PKTINFO.
7289
dec55d76
RW
72902008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7291
7292 * g-table.adb, g-tasloc.adb, g-traceb.ads,
7293 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
7294 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
7295 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
7296 gnatlink.adb, gnatmem.adb, gprep.adb,
7297 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
7298 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
7299 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
7300 lib-xref.ads, lib.adb, link.c, live.ads,
7301 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
7302 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
7303 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
7304 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
7305 namet.adb, namet.h, nlists.adb, nlists.ads,
7306 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
7307 osint-c.ads, osint.adb, osint.ads, output.ads,
7308 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
7309 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
7310 par-endh.adb, par-labl.adb, par-prag.adb,
7311 par-sync.adb, par-tchk.adb, par-util.adb,
7312 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
7313 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
7314 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
7315 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
7316
5a864002
EB
73172008-03-31 Eric Botcazou <ebotcazou@adacore.com>
7318
7319 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
7320 size if it has overflowed.
7321
2566855a 73222008-03-31 Olivier Hainque <hainque@adacore.com>
9e81dbc7 7323 Eric Botcazou <ebotcazou@adacore.com>
2566855a
OH
7324
7325 * utils2.c (find_common_type): Document assumption on t1/t2 vs
7326 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
7327
e14c931f
RW
73282008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7329
7330 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
7331 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
7332 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
7333 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
7334 exp_tss.ads, exp_util.adb, exp_util.ads,
7335 exp_vfpt.adb, freeze.adb, freeze.ads,
7336 frontend.adb, g-alleve.adb, g-altcon.adb,
7337 g-altive.ads, g-alveop.ads, g-alvevi.ads,
7338 g-arrspl.adb, g-busorg.ads, g-calend.adb,
7339 g-calend.ads, g-casuti.ads, g-cgideb.adb,
7340 g-comlin.adb, g-comlin.ads, g-curexc.ads,
7341 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
7342 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
7343 g-dyntab.adb, g-encstr.ads, g-excact.ads,
7344 g-except.ads, g-expect.ads, g-heasor.adb,
7345 g-hesora.adb, g-hesorg.adb, g-htable.ads,
7346 g-locfil.ads, g-md5.adb, g-md5.ads,
7347 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
7348 g-pehage.adb, g-pehage.ads, g-regexp.adb,
7349 g-regexp.ads, g-regpat.adb, g-regpat.ads,
7350 g-soccon-aix.ads, g-soccon-darwin.ads,
7351 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
7352 g-soccon-hpux.ads, g-soccon-irix.ads,
7353 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
7354 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
7355 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
7356 g-soccon-solaris.ads, g-soccon-tru64.ads,
7357 g-soccon-vms.ads, g-soccon-vxworks.ads,
7358 g-soccon.ads, g-socket.adb, g-socket.ads,
7359 g-socthi-mingw.adb, g-socthi-vms.adb,
7360 g-socthi-vxworks.adb, g-soliop-mingw.ads,
7361 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
7362 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
7363 typos.
7364
2bc894d9
EB
73652008-03-27 Eric Botcazou <ebotcazou@adacore.com>
7366
7367 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
7368 if the procedure is imported.
7369
640bd0bf
AC
73702008-03-26 Arnaud Charlet <charlet@adacore.com>
7371
7372 * adaint.c: Fix warnings.
7373
0afae63b
AC
73742008-03-26 Arnaud Charlet <charlet@adacore.com>
7375
7376 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
7377
afc5f979
AC
73782008-03-26 Arnaud Charlet <charlet@adacore.com>
7379
7380 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
7381 Fix problem of status check for null file
7382
c5d31169
AC
73832008-03-26 Arnaud Charlet <charlet@adacore.com>
7384
7385 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
7386 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
7387 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
7388 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
7389 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
7390 comments.
7391
b501b251
AC
73922008-03-26 Thomas Quinot <quinot@adacore.com>
7393
2bc894d9 7394 PR ada/33688
b501b251
AC
7395 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
7396 Get_Socket_Option): Add support for Receive_Packet_Info.
7397
7398 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7399 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
7400 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
7401 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
7402 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
7403 new constants SO_REUSEPORT and IP_PKTINFO
7404
74052008-03-26 Robert Dewar <dewar@adacore.com>
7406
7407 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
7408 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
7409 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
7410 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
7411 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
7412 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
7413 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
7414 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7415 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
7416 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
7417 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
7418 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
7419 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
7420 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
7421 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
7422 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
7423 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
7424 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
7425 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
7426 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
7427 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
7428 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
7429 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
7430 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
7431 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
7432 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
7433 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
7434 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
7435 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
7436 s-tasloc.adb: Minor reformatting.
7437 Update comments.
7438 Remove "used for" sections from comments.
7439
74402008-03-26 Robert Dewar <dewar@adacore.com>
7441
7442 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
7443 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
7444 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
7445 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
7446 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
7447 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
7448 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
7449 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
7450 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7451 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7452 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7453 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7454 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7455 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7456 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7457 double spaced if it fits on one line and otherwise single spaced.
7458
74592008-03-26 Arnaud Charlet <charlet@adacore.com>
7460
9e81dbc7
AS
7461 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
7462 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
b501b251
AC
7463 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
7464 or task info if the thread could not be created.
7465
74662008-03-26 Arnaud Charlet <charlet@adacore.com>
7467
7468 * gnatvsn.ads (Library_Version): Bump to 4.4.
7469 (Current_Year): Bump to 2008.
7470
74712008-03-26 Robert Dewar <dewar@adacore.com>
7472
7473 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
7474
7475 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
7476
7477 * debug.adb: Add debug flags d.r and d.v
7478 Add debug flag .T (Optimize_Alignment (Time))
7479 Add debug flag .S (Optimize_Alignment (Space))
7480
7481 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
7482 depending on setting of relevant debug flags.
7483 Replace use of Warnings_Off by Has_Warnings_Off
7484 (Freeze_Entity): In circuit for warning on suspicious convention
7485 actuals, do not give warning if subprogram has same entity as formal
7486 type, or if subprogram does not come from source.
7487 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
7488 if Optimize_Alignment set to Space.
7489
7490 * frontend.adb: Add call to Sem_Warn.Initialize
7491 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
7492 Reset Optimize_Alignment mode from debug switches .S and .T
7493
7494 * layout.adb (Layout_Composite_Object): Rewritten for
7495 Optimize_Aligment pragma.
7496
7497 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
7498 mode.
7499
7500 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
7501
7502 * par-prag.adb (N_Pragma): Chars field removed, use Chars
7503 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
7504 this change. Add entry for pragma Optimize_Alignment
7505
7506 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
7507 (Pragma_Identifier (..
7508 instead, adjustments throughout to accomodate this change.
7509 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
7510 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
7511 Add implementation of pragma Optimize_Alignment
7512
75132008-03-26 Vincent Celier <celier@adacore.com>
7514
7515 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
7516 Improve memory usage to avoid use of stack.
7517
75182008-03-26 Robert Dewar <dewar@adacore.com>
7519
7520 * a-teioed.ads: Correct value of Default_Fill
7521
7522 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
7523
75242008-03-26 Robert Dewar <dewar@adacore.com>
7525
7526 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
7527 with Current_Output (introduce Self).
7528
75292008-03-26 Robert Dewar <dewar@adacore.com>
7530
7531 * checks.adb (Ensure_Valid): Capture valid status if possible
7532 (eliminate checks)
7533
75342008-03-26 Robert Dewar <dewar@adacore.com>
7535
7536 * stand.ads: Deal with reordering of package standard declarations
7537
7538 * cstand.adb: Put package Standard declarations in proper order
7539
75402008-03-26 Robert Dewar <dewar@adacore.com>
7541
7542 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
7543 (Pragma_Identifier (.. instead.
7544 (OK_To_Reorder_Components): New flag
7545 (Has_Entries): Code cleanup.
7546 (Warnings_Off_Used): New flag
7547 (Warnings_Off_Used_Unmodified): New flag
7548 (Warnings_Off_Used_Unreferenced): New flag
7549 (Has_Warnings_Off): New function
7550 (Has_Unmodified): New function
7551 (Has_Unreferenced): New function
7552 (Is_Trivial_Subprogram): New flag
7553 (Is_Static_Dispatch_Table_Entity): New attribute.
7554 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
7555 (more consistent with other similar names)
7556 (Access_Subprogram_Type): New classification function
7557
75582008-03-26 Robert Dewar <dewar@adacore.com>
7559
7560 * errout.ads: Document new !! insertion sequence
7561
7562 * errout.adb (N_Pragma): Chars field removed, use Chars
7563 (Pragma_Identifier (.. instead.
7564 Replace use of Warnings_Off by Has_Warnings_Off
7565 (Error_Msg_Internal): Don't delete warning ending in !!
7566
75672008-03-26 Robert Dewar <dewar@adacore.com>
7568
7569 * par.adb (Check_No_Right_Paren): Removed no longer used
7570
7571 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
7572 (Pragma_Identifier (.. instead.
7573
7574 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
7575
7576 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
7577 par-ch4.adb: Minor improvements in error recovery and messages.
7578
7579 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
7580 non-serious
7581
7582 * par-ch9.adb: Minor improvements in error recovery and messages
7583 (P_Protected): Better error recovery for "protected type x;"
7584
7585 * par-util.adb: Minor improvements in error recovery and messages
7586 (Check_No_Right_Paren): Removed no longer used
7587
75882008-03-26 Ed Schonberg <schonberg@adacore.com>
7589
7590 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
7591 that the prefix of an attribute is the type of the aggregate being
7592 expanded.
7593
75942008-03-26 Javier Miranda <miranda@adacore.com>
7595 Robert Dewar <dewar@adacore.com>
7596
7597 * exp_attr.adb (N_Pragma): Chars field removed.
7598 (Expand_N_Attribute_Reference): If the designated type associated with
7599 attribute 'Unrestricted_Access is a subprogram entity then replace it
7600 by an E_Subprogram_Type itype.
7601 Implement attribute Old
7602
7603 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
7604
7605 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
7606 Replace call to
7607 New_Internal_Entity by call to Create_Itype to centralize calls
7608 building itypes, ad propagate the convention of the designated
7609 subprogram. In addition, disable the machinery cleaning constant
7610 indications from all entities in current scope when 'Unrestricted_Access
7611 corresponds with a node initializing a dispatch table slot.
7612 (Analyze_Attribute): Parameterless attributes returning a string or a
7613 type will not be called with improper arguments, so we can remove junk
7614 code that was dealing with this case.
7615 Implement attribute Old
7616
7617 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
7618 Add entry for pragma Optimize_Alignment
7619 New standard names Sync and Synchronize
7620
76212008-03-26 Robert Dewar <dewar@adacore.com>
7622 Arnaud Charlet <charlet@adacore.com>
7623
7624 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
7625 stmt.
7626 (No_Exception_Propagation_Active): New function.
7627 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
7628 Update comments, and review all uses of No_Exception_Propagation, which
7629 are now correct and in sync with what gigi expects.
7630
7631 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
7632 function.
7633 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
7634 Update comments, and review all uses of No_Exception_Propagation, which
7635 are now correct and in sync with what gigi expects.
7636
76372008-03-26 Ed Schonberg <schonberg@adacore.com>
7638
7639 * sem_ch3.adb (Access_Definition): If the access type is the return
7640 result of a protected function, create an itype reference for it
7641 because usage will be in an inner scope from the point of declaration.
7642 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
7643 OK_To_Reorder_Components.
7644 (Make_Index): If an overloaded range includes a universal integer
7645 interpretation, resolve to Standard.Integer.
7646 (Analyze_Subtype_Indication): Copy Convention to subtype
7647 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
7648 limited an synchronized progenitors in type declaration and private
7649 extension declarations.
7650
7651 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
7652 protected subprogram body, determine proper scope from subprogram
7653 declaration.
7654
76552008-03-26 Robert Dewar <dewar@adacore.com>
7656
7657 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
7658 No_Run_Time_Mode
7659
76602008-03-26 Gary Dismukes <dismukes@adacore.com>
7661
7662 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
7663 of a heap allocator for a limited unconstrained function return when
7664 resstriction No_Allocators is active.
7665 (Analyze_Allocator): The restriction No_Allocators is now only checked
7666 on allocators that have Comes_From_Source set, as per RM-H.4(7).
7667
7668 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
7669 of a heap allocator for a limited unconstrained function return when
7670 resstriction No_Allocators is active.
7671 (Analyze_Allocator): The restriction No_Allocators is now only checked
7672 on allocators that have Comes_From_Source set, as per RM-H.4(7).
7673 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
7674 operands are fixed-point types, the universal_fixed predefined operation
7675 is used, regardless of whether the operand type (s) have a primitive
7676 operation of the same name.
7677
76782008-03-26 Javier Miranda <miranda@adacore.com>
7679
7680 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
7681 Is_Static_Dispatch_Table
7682 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
7683 to Exchange_Declarations to exchange the private and full-view. Bug
7684 found working in this issue.
7685 (Expand_Dispatching_Call): Propagate the convention of the subprogram
7686 to the subprogram pointer type.
7687 (Make_Secondary_DT): Replace generation of Prim'Address by
7688 Address (Prim'Unrestricted_Access)
7689 (Make_DT): Replace generation of Prim'Address by
7690 Address (Prim'Unrestricted_Access)
7691 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
7692 simple call form for single entry.
7693 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
7694 tables of predefined primitives).
7695 (Make_Secondary_DT): Add support to handle access to dispatch tables of
7696 predefined primitives.
7697 (Make_Tags): Add entities to Access_Dispatch_Table associated with
7698 access to dispatch tables containing predefined primitives.
7699
7700 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
7701 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
7702 this change.
7703 (Register_Predefined_DT_Entry): Updated to handle the new contents
7704 of attribute Access_Disp_Table (pointers to dispatch tables containing
7705 predefined primitives).
7706
7707 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
7708 subprogram.
7709 (Find_Interface_ADT): Updated to skip the new contents of attribute
7710 Access_Dispatch_Table (pointers to dispatch tables containing predefined
7711 primitives).
7712
7713 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
7714 concurrent types.
7715 (Set_Convention): Use new function Is_Access_Subprogram_Type
7716 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
7717 Access_Dispatch_Table (pointers to dispatch tables containing predefined
7718 primitives).
7719
7720 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
7721 expanded code avoiding calls to Build_Predef_Prims.
7722 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
7723 call to Build_Get_Predefined_Prim_Op_Address.
7724
77252008-03-26 Javier Miranda <miranda@adacore.com>
7726
7727 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
7728 subprogram Corresponding_Runtime_Package to know the runtime package
7729 that will provide support to a given protected type.
7730
7731 * exp_ch9.adb (Add_Private_Declarations,
7732 Build_Protected_Subprogram_Call,
7733 Build_Protected_Entry, Build_Simple_Entry_Call,
7734 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
7735 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
7736 cleanup using the new centralized subprogram Corresponding_Runtime
7737 Package to know the runtime package that provides support to
7738 a given protected type.
7739
77402008-03-26 Ed Schonberg <schonberg@adacore.com>
7741
7742 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
7743 assignment is within the initialization procedure for a packed array,
7744 and Initialize_Scalars is enabled, compile right-hand side with checks
7745 off, because the value is purposely out of range.
7746
77472008-03-26 Vincent Celier <celier@adacore.com>
7748
7749 * gnatcmd.adb: Add processing for GNAT SYNC
7750
7751 * vms_conv.ads: (Command_Type): Add command Sync
7752
7753 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
7754
7755 * vms_data.ads: Add entries for -gnatw.w
7756 Add qualifier for gnatstub --header-file option
7757 Add switches for GNAT SYNC
7758
7759 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
7760 (Add_Package_Name): New procedure
7761 (Package_Name_List): New function
7762 (Initialize): Add known package names to the list
7763 (Register_New_Package): Add the new package name to the list
7764
77652008-03-26 Robert Dewar <dewar@adacore.com>
7766
7767 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
7768 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
7769 Raise_Exception by "raise with" construct.
7770
77712008-03-26 Pascal Obry <obry@adacore.com>
7772
7773 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
7774 supported platforms.
9e81dbc7 7775
b501b251 7776 * Makefile.rtl: Add g-sercom.o.
9e81dbc7 7777
b501b251 7778 * impunit.adb: Add g-sercom.adb.
9e81dbc7 7779
b501b251
AC
7780 * s-crtl.ads (open): New routine.
7781 (close): Likewise.
7782 (write): Likewise.
9e81dbc7 7783
b501b251
AC
7784 * s-osinte-mingw.ads (BYTE): New type.
7785 (CHAR): Likewise.
7786 (OVERLAPPED): Likewise.
7787 (GENERIC_READ): New constant.
7788 (GENERIC_WRITE): Likewise.
7789 (OPEN_EXISTING): Likewise.
7790 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
7791 type instead.
7792 (CreateFile): New routine.
7793 (WriteFile): Likewise.
7794 (ReadFile): Likewise.
7795 (CloseHandle): Move next to the other file oriented routines.
7796
7797 * g-sercom.ads: New unit.
7798
7799 * g-sercom.adb: Default implementation, calls to this unit will raise
7800 a program error exception.
9e81dbc7 7801
b501b251
AC
7802 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
7803 GNU/Linux implementations.
7804
78052008-03-26 Robert Dewar <dewar@adacore.com>
7806
7807 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
7808
7809 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
7810 unchecked conversion for different conventions only for subprogram
7811 pointers or on VMS.
7812
78132008-03-26 Vincent Celier <celier@adacore.com>
7814
7815 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
7816 to check if the specified object file is correct.
7817
78182008-03-26 Thomas Quinot <quinot@adacore.com>
7819
7820 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
7821 Comes_From_Source to exclude primitives from being checked. We want to
7822 exclude predefined primitives only, so use the appropriate specific
7823 predicate. Also, flag a formal parameter of an anonymous
7824 access-to-subprogram type as illegal for a primitive operation of a
7825 remote access to class-wide type.
7826
78272008-03-26 Vincent Celier <celier@adacore.com>
7828
7829 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
7830 known, check if it may be a missspelling of a known package name. In
7831 not verbose, not mode, issue warnings only if the package name is a
7832 possible misspelling.
7833 In verbose mode, always issue a warning for a not known package name,
7834 plus a warning if the name is a misspelling of a known package name.
7835
7836 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
7837 limited withs or limited withs are parse during one call.
7838 (Parse_Single_Project): Post parse context clause in two passes: non
7839 limited withs before current project and limited withs after current
7840 project.
7841
7842 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
7843 project with the name With_Name, even if it is only extended indirectly.
7844 (Recursive_Process): Process projects in order: first single withs, then
7845 current project, then limited withs.
7846
7847 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
7848 project with the name With_Name, even if it is only extended indirectly.
7849
78502008-03-26 Robert Dewar <dewar@adacore.com>
7851
7852 * scn.adb (Initialize_Scanner): Format messages belong on standard error
7853
78542008-03-26 Ed Schonberg <schonberg@adacore.com>
7855
7856 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
7857 a generic subprogram that is imported, do not attempt to compile
7858 non-existent body.
7859
7860 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
7861 imported, do not generate a raise_program_error for the non-existent
7862 body.
7863 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
7864 perform minimal name resolution on the generic to avoid spurious
7865 warnings.
7866 (Find_Actual_Type): the designated type of the actual in a child unit
7867 may be declared in a parent unit without being an actual.
7868
78692008-03-26 Robert Dewar <dewar@adacore.com>
7870
7871 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
7872 * sinfo.ads, sinfo.adb (From_At_End): New flag
7873
78742008-03-26 Ed Schonberg <schonberg@adacore.com>
7875
7876 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
7877 operations that have an interface parameter.
7878 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
7879 Don't treat No_Return call as raise.
7880
7881 * sem_disp.adb (Check_Dispatching_Operations): apply check for
7882 non-primitive interface primitives to access parameters, not to all
7883 parameters of an access type.
7884
78852008-03-26 Ed Schonberg <schonberg@adacore.com>
7886
7887 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
7888 declarations of a parent unit are made visible when compiling a child
7889 instance, the parent is not a hidden open scope, even though it may
7890 contain other pending instance.
9e81dbc7 7891
b501b251
AC
7892 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
7893 hidden open scope for some child instance, it does affect the
7894 visibility status of other stach entries.
7895 (Analyze_Object_Renaming): Check that a class-wide object cannot be
7896 renamed as an object of a specific type.
7897
78982008-03-26 Robert Dewar <dewar@adacore.com>
7899
7900 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
7901 recursion and raise SE directly.
7902 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
7903 set for formal type for IN mode parameter.
7904
79052008-03-26 Robert Dewar <dewar@adacore.com>
7906
7907 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
7908 (Initialize): New procedure
7909 (Output_Warnings_Off_Warnings): New procedure
7910 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
7911 (Output_Non_Modifed_In_Out_Warnings): Ditto
7912 (Warn_On_Unreferenced_Entity): Ditto
7913
79142008-03-26 Vincent Celier <celier@adacore.com>
7915
7916 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
7917 readable.
7918
79192008-03-26 Matthew Heaney <heaney@adacore.com>
7920
9e81dbc7 7921 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
b501b251
AC
7922 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
7923 Marked with clauses as private, and controlled operations as overriding
7924
79252008-03-26 Robert Dewar <dewar@adacore.com>
7926
7927 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
7928
79292008-03-26 Robert Dewar <dewar@adacore.com>
7930
7931 * back_end.adb, back_end.ads: Minor reformatting
7932
7933 * bindgen.adb: Minor clarification of comments
7934
7935 * fname.ads: Minor comment fixes
7936
7937 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
7938 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
7939
7940 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
7941 xsnames.adb: Remove warnings off pragma no longer needed
7942
7943 * a-catizo.ads, a-calari.ads, a-calfor.adb,
7944 a-calfor.ads: Fix header.
7945
79462008-03-26 Tristan Gingold <gingold@adacore.com>
7947
7948 * init.c: Do not adjust pc for HPARITH on alpha/vms.
7949
79502008-03-26 Robert Dewar <dewar@adacore.com>
7951
7952 * lib-xref.adb: (OK_To_Set_Reference): New function
7953 (Generate_Reference): Don't set referenced from occurrence in Warnings,
7954 Unmodified, or Unreferenced pragma
7955
79562008-03-26 Robert Dewar <dewar@adacore.com>
7957
7958 * alloc.ads: Add entries for Warnings_Off_Pragmas table
7959
79602008-03-26 GNAT Script <nobody@adacore.com>
7961
7962 * Make-lang.in: Makefile automatically updated
7963
79642008-03-26 Robert Dewar <dewar@adacore.com>
7965
7966 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
7967 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
7968 removed, use Chars (Pragma_Identifier (.. instead, adjustments
7969 throughout to accomodate this change.
7970
7971 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
7972
7973 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
7974 Einfo.Set_Needs_Debug_Info)
7975
79762008-03-26 Robert Dewar <dewar@adacore.com>
7977
7978 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
7979 Add description for the new gnatstub option '--header-file'
7980 clarification of -gnatwz/-gnatwZ
7981 Add a "Irix-Specific Considerations" section to document the need to
7982 set LD_LIBRARY_PATH when using the default shared runtime library.
7983 Added documentation for both gcov and gprof.
7984
7985 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
7986 messages that are not suppressed when clients are compiled.
7987 Add documentation of s-pooglo s-pooloc
7988 Document the new GNAT.Serial_Communications API.
7989 Add documentation for 'Old attribute
7990 Add description of pragma Optimize_Alignment
7991
7992 * ug_words: Add entries for -gnatw.w -gnatw.W
7993
7994 * usage.adb: Add line for -gnatw.w (warn on warnings off)
7995
3a9634be
EB
79962008-03-25 Eric Botcazou <ebotcazou@adacore.com>
7997
7998 Revert
7999 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
8000 PR ada/35186
8001 * decl.c (maybe_pad_type): Avoid padding an integral type when
8002 bumping its alignment is sufficient.
8003
53b308f6
AC
80042008-03-25 Arnaud Charlet <charlet@adacore.com>
8005
8006 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
8007 Fix wrong formatting (lines too long)
8008
8fc789c8
RW
80092008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8010
8011 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
8012 a-calend-vms.adb, a-calend.adb, a-calend.ads,
8013 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
8014 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
8015 a-cohama.ads, a-comlin.ads, a-coorse.adb,
8016 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
8017 a-except-2005.ads, a-except.adb, a-except.ads,
8018 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
8019 a-exextr.adb, a-filico.ads, a-finali.ads,
8020 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
8021 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
8022 a-sequio.ads, a-strbou.ads, a-strfix.adb,
8023 checks.adb, exp_ch3.adb, exp_ch4.adb,
8024 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
8025 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
8026 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
8027 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
8028 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
8029
15f6d6e7
RD
80302008-03-24 Robert Dewar <dewar@adacore.com>
8031
8032 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
8033 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
8034 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
8035 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
8036 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
8037 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
8038 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
8039 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
8040 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
8041 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
8042 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
8043 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
8044 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
8045 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
8046 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
8047 double spaced if it fits on one line and otherwise single spaced.
8048
b2e74434
RW
80492008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8050
8051 PR documentation/15479
8052 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
8053 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
8054 (doc/gnat_ugn.info): Renamed from ...
8055 (doc/gnat_ugn_unw.info): ... this.
8056 (doc/gnat_ugn.dvi): Renamed from ...
8057 (doc/gnat_ugn_unw.dvi): ... this.
8058 (doc/gnat_ugn.pdf): Renamed from ...
8059 (doc/gnat_ugn_unw.pdf): ... this.
8060 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
8061 Adjusted.
8062 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
8063 unconditionally to gnat_ugn.info. Fix cross references to the
8064 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
8065 and GNU make manuals to be proper texinfo links.
8066 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
8067
f4351641
OH
80682008-03-21 Olivier Hainque <hainque@adacore.com>
8069
8070 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
8071 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
8072
10c5d1a0
EB
80732008-03-21 Eric Botcazou <ebotcazou@adacore.com>
8074
8075 * trans.c (addressable_p): Add notes on addressability issues.
8076
457b629a 80772008-03-21 Olivier Hainque <hainque@adacore.com>
9e81dbc7 8078 Ed Schonberg <schonberg@adacore.com>
457b629a
OH
8079
8080 * trans.c (addressable_p): Accept COND_EXPR when both arms
8081 are addressable.
8082 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
8083 (call_to_gnu): Do not use name reference in the error message
8084 for a misaligned by_reference_parameter. The actual may be a
8085 general expression.
8086
ac5dc795
PB
80872008-03-18 Paolo Bonzini <bonzini@gnu.org>
8088
e1da2b17
EB
8089 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
8090
79f34d07
RW
80912008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8092
8093 * gnat_rm.texi (Implementation Defined Characteristics)
8094 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
8095 appropriate.
8096 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
8097 (Switches for gnatchop, Installing a library): Likewise.
8098
e1e7141c
EB
80992008-03-10 Eric Botcazou <ebotcazou@adacore.com>
8100
8101 * trans.c (emit_range_check): Do not emit the check if the base type
8102 of the expression is the type against which its range must be checked.
8103
892f6e65
EB
81042008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8105
8106 * decl.c (maybe_pad_type): Use value_factor_p.
8107
7934d781
EB
81082008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8109
8110 * lang.opt (nostdlib): Move around.
8111 * misc.c (gnat_handle_option): Fix formatting.
8112 (gnat_dwarf_name): Move around.
8113 * trans.c (Case_Statement_to_gnu): Fix formatting.
8114 (gnat_to_gnu): Likewise.
8115 * utils.c (aggregate_type_contains_array_p): Likewise.
8116 (create_subprog_decl): Likewise.
8117
8f5893ab
EB
81182008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8119
8120 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
8121 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
8122
ba436c3b
EB
81232008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8124
8125 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
8126 BIGGEST_ALIGNMENT when capping the alignment of records with
8127 strict alignment and size clause.
8128
6ab36dac
EB
81292008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8130
8131 * lang-specs.h: Pass -gnatwa if -Wall is passed.
8132 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
8133 and -Wuninitialized.
8134 (gnat_post_options): Clear warn_unused_parameter.
8135
8853cb0b
EB
81362008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8137
8138 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
8139 aligned bit-fields, bumping the alignment of the record type if deemed
8140 profitable.
8141 (value_factor_p): Return false instead of 0.
8142
66abe22c
EB
81432008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8144
8145 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
8146 for scalar types with small alignment.
8147
563569be
EB
81482008-03-08 Eric Botcazou <ebotcazou@adacore.com>
8149
8150 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
8151 from that of the front-end's end label.
8152 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
8153 from that of the loop label.
8154
b49a1a1e
EB
81552008-03-07 Eric Botcazou <ebotcazou@adacore.com>
8156
8157 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
8158 comment for the packed array type case.
8159 * utils.c (build_template): Use a loop to strip padding or
8160 containing records for justified modular types.
8161
fd5c81e9
EB
81622008-03-07 Eric Botcazou <ebotcazou@adacore.com>
8163
8164 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
8165 large alignments specified for types.
8166 (validate_alignment): Minor cleanup.
8167
7f42aa36
EB
81682008-03-07 Eric Botcazou <ebotcazou@adacore.com>
8169
8170 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
8171 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
8172 the component for packing, if possible, as well as if a component
8173 size clause is specified.
8174 <E_Record_Subtype>: For an array type used to implement a packed
8175 array, get the component type from the original array type.
8176 Try to get a smaller form of the component for packing, if possible,
8177 as well as if a component size clause is specified.
8178 (round_up_to_align): New function.
8179 (make_packable_type): Add in_record parameter.
8180 For a padding record, preserve the size. If not in_record and the
8181 size is too large for an integral mode, attempt to shrink the size
8182 by lowering the alignment.
8183 Ditch the padding bits of the last component.
8184 Compute sizes and mode manually, and propagate the RM size.
8185 Return a BLKmode record type if its size has shrunk.
8186 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
8187 Use Original_Array_Type to retrieve the type in case of an error.
8188 Adjust call to make_packable_type.
8189 (gnat_to_gnu_field): Likewise.
8190 (concat_id_with_name): Minor tweak.
8191 * trans.c (larger_record_type_p): New predicate.
8192 (call_to_gnu): Compute the nominal type of the object only if the
8193 parameter is by-reference. Do the conversion actual type -> nominal
8194 type if the nominal type is a larger record.
8195 (gnat_to_gnu): Do not require integral modes on the source type to
8196 avoid the conversion for types with identical names.
8197 (addressable_p): Add gnu_type parameter. If it is specified, do not
8198 return true if the expression is not addressable in gnu_type.
8199 Adjust recursive calls.
8200 * utils.c (finish_record_type): Remove dead code.
8201
2f76571e
EB
82022008-03-05 Eric Botcazou <ebotcazou@adacore.com>
8203
8204 PR ada/35186
8205 * decl.c (maybe_pad_type): Avoid padding an integral type when
8206 bumping its alignment is sufficient.
8207
4d0e4612
RW
82082008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8209
ad6b5b00
RW
8210 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
8211 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
8212 statement.
8213 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
8214 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
8215 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
8216 code output strings.
8217 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
8218 system-vms_64.ads: Fix typos in ada source code comments.
8219 * sinfo-cn.adb: Remove incomplete sentence.
8220
4d0e4612
RW
8221 PR documentation/15479
8222 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
8223
acf6b7ab
ST
82242008-02-27 Samuel Tardieu <sam@rfc1149.net>
8225
8226 PR ada/22255
8227 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
8228
f5c064ab
ST
82292008-02-27 Samuel Tardieu <sam@rfc1149.net>
8230
8231 PR ada/34799
8232 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
8233 that underlying type is present.
8234
2d593c86
TT
82352008-02-26 Tom Tromey <tromey@redhat.com>
8236
8237 * misc.c (internal_error_function): Remove test of
8238 USE_MAPPED_LOCATION.
8239 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
8240 (Sloc_to_locus): Remove old location code.
8241
443b3472
RW
82422008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8243
8dd07840
RW
8244 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
8245 `i.e.' by adding comma or `@:' as appropriate.
8246 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
8247 plain characters `C', use `@samp{C}'.
8248 * gnat_ugn.texi (File Naming Rules, About gnatkr)
8249 (Krunching Method): Likewise.
8250
443b3472
RW
8251 * gnat_ugn.texi (Conventions): List environment variables and
8252 metasyntactic variables.
8253 (Compiling Programs): Fix notation of metasyntactic variables.
8254 Add @file where appropriate. Use @file for file extensions,
8255 @samp for strings.
8256 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
8257 instead of @file, @env instead of @code.
8258
9538dfb9
RW
82592008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8260
d488f6ea
RW
8261 PR documentation/15479
8262 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
8263 and `...' with `@dots{}' or `@enddots{}'.
8264
1992bbd9
RW
8265 PR documentation/15479
8266 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
8267 use @command instead of @code, @option instead of @samp or @code,
8268 @code instead of @var, @samp instead of @file.
8269
9538dfb9
RW
8270 PR documentation/15479
8271 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
8272 in Makefile rules, by using `&&' rather than `;'.
8273
e69044cb
RW
82742008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8275
8276 PR documentation/15479
8277 * gnat_ugn.texi: In non-code, avoid space before colon.
8278 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
8279 (Examples of gnatxref Usage): Use @command{vi} instead of
8280 @file{vi}.
8281 (Character Set Control): Do not use @code for UTF-8.
8282 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
8283 use @code for IEEE.
8284 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
8285 sample.
8286 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
8287
9e94c78f 82882008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
6a333ca0
JS
8289
8290 PR ada/35143
8291 * env.c: Add __rtems__ to if defined.
8292 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
8293 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
8294 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
8295 pragma Convention as required.
8296 * gsocket.h: Make compile in and out of RTS.
8297 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
8298 Use g-soccon-rtems.ads.
8299 * g-soccon-rtems.ads, system-rtems.ads: New files.
8300
72fb133f
KG
83012008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8302
8303 PR other/35107
8304 * Make-lang.in (gnat1): Add $(GMPLIBS).
8305
8fa07a56
EB
83062008-01-26 Eric Botcazou <ebotcazou@adacore.com>
8307
8308 * decl.c (components_to_record): Improve comment.
8309
0bf38239
EB
83102008-01-22 Eric Botcazou <ebotcazou@adacore.com>
8311
8312 * decl.c (components_to_record): Do not reuse the empty union type
8313 if there is a representation clause on the record.
8314 * trans.c (addressable_p): Return true for INTEGER_CST.
8315
461d6eb3
EB
83162008-01-21 Eric Botcazou <ebotcazou@adacore.com>
8317
8318 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
8319 in pointer arithmetics.
8320 * utils2.c (build_allocator): Likewise.
8321
9328dd57
EB
83222008-01-17 Eric Botcazou <ebotcazou@adacore.com>
8323
8324 * utils.c (build_function_stub): Properly build the call expression.
8325
052cec9b
EB
83262008-01-14 Eric Botcazou <ebotcazou@adacore.com>
8327
8328 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
8329 before converting the expression to the type of the object.
8330 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
8331 Stabilize constructors for special wrapping types.
8332
08ffbdad
EB
83332008-01-13 Eric Botcazou <ebotcazou@adacore.com>
8334
9e94c78f 8335 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6bf4cbe8 8336 when necessary. Merge some conditional statements. Update comments.
08ffbdad
EB
8337 Rename unchecked_convert_p local variable to suppress_type_conversion.
8338 Do not suppress conversions in the In case.
8339 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
8340 into account on non strict-alignment platforms.
8341
7219c2c7
EB
83422008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8343
8344 * utils.c (aggregate_type_contains_array_p): New predicate.
8345 (create_field_decl): In a packed record, force byte alignment
8346 for fields without specified position that contain an array.
8347
52ef2874
EB
83482008-01-12 Eric Botcazou <ebotcazou@adacore.com>
8349
8350 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
8351
3fa87ef8
JDA
83522008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
8353
8354 PR ada/34466
8355 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
8356 sysconf call.
8357 (bit_field): New packed boolean type used by cpu_set_t.
8358 (cpu_set_t): New type corresponding to the C type with
8359 the same name. Note that on the Ada side we use a bit
8360 field array for the affinity mask. There is not need
8361 for the C macro for setting individual bit.
8362 (pthread_setaffinity_np): New imported routine.
8363
9e94c78f 83642008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
e0658eda
TK
8365
8366 PR ada/34647
8367 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
8368 on OpenBSD as is done on other BSD systems.
8369
8370 PR ada/34645
8371 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
8372 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
8373 I/O.
8374
8375 PR ada/34644
8376 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
8377 clearenv().
8378
8379 PR ada/34646
8380 * init.c (__gnat_error_handler, __gnat_install_handler,
8381 __gnat_init_float): Define for OpenBSD.
8382
8383 * initialize.c (__gnat_initialize): Define for OpenBSD.
8384
18bc9cca
ST
83852007-12-27 Samuel Tardieu <sam@rfc1149.net>
8386
8387 PR ada/34553
8388 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
8389 instead of mktemp() or tmpnam() on NetBSD.
8390
f0bf503e
EB
83912007-12-23 Eric Botcazou <ebotcazou@adacore.com>
8392
8393 * trans.c (call_to_gnu): Make the temporary for non-addressable
8394 In parameters passed by reference.
8395 (addressable_p): Return true for STRING_CST and CALL_EXPR.
8396
7469b7bc
AC
83972007-12-19 Robert Dewar <dewar@adacore.com>
8398
9e81dbc7 8399 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7469b7bc
AC
8400 Add pragma Warnings (Off) for unassigned IN OUT arguments
8401
8402 * sem_warn.adb (Output_Reference): Suppress messages for internal names
8403 (Check_References): Extensive changes to tune up warnings
8404 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
8405 (Has_Pragma_Unmodifed_Check_Spec): New function
8406 (Check_References): Implement pragma Unmodified
8407 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
8408
8409 * par-prag.adb: Dummy entry for pragma Unmodified
8410
8411 * sem_prag.adb: Implement pragma Unmodified
8412
8413 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
8414 (Proc_Next_Component_Or_Discriminant): Fix typo.
8415 Update comments.
8416
8417 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
8418 Unmodified.
8419 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
8420 because the former already takes care of discarding the result.
8421 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
8422 Add comment.
8423
8424 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
8425
84262007-12-19 Eric Botcazou <ebotcazou@adacore.com>
8427
8428 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
8429 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
8430 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
8431 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
8432 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8433 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8434 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8435 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
8436 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8437 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
8438 (Dynamic_Trampolines_Used): Delete.
8439
8440 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
8441 Turn on stack probing mechanism on LynxOS.
8442
84432007-12-19 Bob Duff <duff@adacore.com>
8444
8445 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
8446 the resulting tail recursion by hand. This prevents running out of
8447 memory on deeply nested concatenations, since Field2 is where the left
8448 operand of concatenations is stored.
8449 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
8450 clarify that it can only return OK or Abandon.
8451
8452 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
8453 operand by iteration, in order to avoid running out of memory on
8454 deeply-nested concatenations. Use the Parent pointer to get back up the
8455 tree.
8456 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
8457 Resolve_Op_Concat_Rest): New procedures split out of
8458 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
8459 clearer.
8460
8461 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
8462 Traverse_Func, because the former already takes care of discarding the
8463 result.
8464
8465 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
8466 because the former already takes care of discarding the result.
8467 (Remove_Warning_Messages): Use appropriate subtype for Status and
9e81dbc7 8468 Discard
7469b7bc
AC
8469
84702007-12-19 Ed Schonberg <schonberg@adacore.com>
8471
8472 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
8473 discriminants forces expansion of the aggregate into assignments.
8474 (Init_Record_Controller): If the type of the aggregate is untagged and
8475 is not inherently limited, the record controller is not limited either.
8476
84772007-12-19 Robert Dewar <dewar@adacore.com>
8478
8479 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
8480 handling compile time known size of record or array (case of front end
8481 layout active, e.g. in GNAAMP).
8482
84832007-12-19 Javier Miranda <miranda@adacore.com>
8484
8485 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
8486 that forces the construction of static dispatch tables in case of
8487 record subtypes.
8488
84892007-12-19 Robert Dewar <dewar@adacore.com>
8490
8491 * exp_ch9.adb (Null_Statements): Moved to library level
8492 (Trivial_Accept_OK): New function
8493 (Expand_Accept_Declaration): Use Trivial_Accept_OK
8494 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
8495
84962007-12-19 Robert Dewar <dewar@adacore.com>
8497
8498 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
8499 in complex case where array is Volatile.
8500
85012007-12-19 Ed Schonberg <schonberg@adacore.com>
8502
8503 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
8504 properly the Ada2005 rules concerning when the current instance of a
8505 record type is aliased.
8506
85072007-12-19 Ed Schonberg <schonberg@adacore.com>
8508
8509 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
8510 mangled declaration
8511 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
8512 declarations.
8513 (P_Variant_Part): Cleaner patch for parenthesized discriminant
8514
85152007-12-19 Vincent Celier <celier@adacore.com>
8516
8517 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
8518 package is not known
8519
8520 * prj-attr.ads (Unknown_Package): New constant
8521 Do not crash when an unknown package is in several projects
8522
8523 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
8524 ignored
8525
8526 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
8527 existing package Language_Processing.
8528
85292007-12-19 Ed Schonberg <schonberg@adacore.com>
8530 Gary Dismukes <dismukes@adacore.com>
44914a04 8531 Samuel Tardieu <sam@rfc1149.net>
7469b7bc
AC
8532
8533 PR ada/15803, ada/15805
8534 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
8535 illegal access subtypes when there is a constrained partial view.
8536 (Check_For_Premature_Usage): New procedure inside
8537 Access_Subprogram_Declaration for checking that an access-to-subprogram
8538 type doesn't reference its own name within any formal parameters or
8539 result type (including within nested anonymous access types).
8540 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
8541 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
8542 context is an access_to_variable, the expression cannot be an
8543 access_to_constant.
8544
85452007-12-19 Bob Duff <duff@adacore.com>
8546
8547 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
8548 (Analyze_Concatenation): Use iteration instead of recursion in order
8549 to avoid running out of stack space for deeply nested concatenations.
8550
85512007-12-19 Ed Schonberg <schonberg@adacore.com>
8552 Gary Dismukes <dismukes@adacore.com>
8553
8554 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
8555 whose renamed entity is a subprogram that requires overriding.
8556 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
8557 issuing an error for premature usage and issue a message that says
8558 'type' rather than 'object'.
8559
85602007-12-19 Gary Dismukes <dismukes@adacore.com>
8561
8562 PR ada/34149
8563 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
8564 presence of a statically tagged operand (Present (Static_Tag)) with
8565 test for Indeterm_Ancestor_Call when determining whether to propagate
8566 the static tag to tag-indeterminate operands (which forces dispatching
8567 on such calls).
8568 (Check_Controlling_Formals): Ada2005, access parameters can have
8569 defaults.
8570 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
8571 not insert subprogram in list of primitive operations if already there.
8572
85732007-12-19 Tristan Gingold <gingold@adacore.com>
8574
8575 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
8576 global variable.
8577
85782007-12-19 Thomas Quinot <quinot@adacore.com>
8579
8580 Part of PR ada/33688
8581 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
8582 datagram info on Linux.
8583
85842007-12-19 Vincent Celier <celier@adacore.com>
8585
8586 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
8587 that the source path name is always found in the dependencies.
8588
85892007-12-19 Robert Dewar <dewar@adacore.com>
8590
8591 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
8592 Fix name of Wide_Wide_Latin_1/9 file names
8593 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
8594 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
8595 Add missing documentation for Ada.Command_Line.Response_File
8596 Update list of warning letters for Warnings pragma
8597 Add documentation for pragma Unmodified
8598
43779dea
ST
85992007-12-19 Samuel Tardieu <sam@rfc1149.net>
8600
8601 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
8602
5287c2bc
AC
86032007-12-17 Arnaud Charlet <charlet@adacore.com>
8604
8605 * s-vxwork-alpha.ads: Removed, no longer used.
8606
6343804d
JJ
86072007-12-15 Jakub Jelinek <jakub@redhat.com>
8608
8609 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
8610
3958c9c8
ST
86112007-12-13 Samuel Tardieu <sam@rfc1149.net>
8612
8613 PR ada/34360
8614 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
8615 mlib-tgt-specific.adb.
8616
78185974
BD
86172007-12-13 Bob Duff <duff@adacore.com>
8618
8619 * trans.c (Attribute_to_gnu): Check for violations of the
8620 No_Implicit_Dynamic_Code restriction. This checking used to be done in
8621 the front end, but is moved here so we can make it more accurate.
8622
e9b54d64
AC
86232007-12-13 Pascal Obry <obry@adacore.com>
8624
8625 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
8626 version is provided for older GNU/Linux distribution not
8627 supporting thread affinity sets.
9e81dbc7 8628
e9b54d64
AC
8629 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
8630 call.
8631 (bit_field): New packed boolean type used by cpu_set_t.
8632 (cpu_set_t): New type corresponding to the C type with
8633 the same name. Note that on the Ada side we use a bit
8634 field array for the affinity mask. There is not need
8635 for the C macro for setting individual bit.
8636 (pthread_setaffinity_np): New imported routine.
9e81dbc7 8637
e9b54d64
AC
8638 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
8639 no null.
8640 (Create_Task): Set the processor affinity mask if information
8641 is present.
9e81dbc7 8642
e9b54d64 8643 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
9e81dbc7 8644
e9b54d64
AC
86452007-12-13 Robert Dewar <dewar@adacore.com>
8646
9e81dbc7
AS
8647 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
8648 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
8649 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
e9b54d64
AC
8650 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
8651 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
9e81dbc7
AS
8652 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
8653 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
e9b54d64
AC
8654 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
8655 for subprogram pointers.
8656
8657 * g-ctrl_c.adb: New file.
8658
8659 * g-ctrl_c.ads (Install_Handler): New body.
8660
8661 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
8662 instead of obsolete function Is_Always_Inlined.
8663 (Freeze_Entity): check for tagged type in imported C subprogram
8664 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
8665 (Freeze_Entity): check for convention Ada subprogram pointer in
8666 imported C subprogram.
8667 (Freeze_Fixed_Point_Type): In the case of a base type where the low
8668 bound would be chopped off and go from negative to zero, force
8669 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
8670 bound) so that the size computation for the base type will take
8671 negative values into account.
8672
86732007-12-13 Eric Botcazou <ebotcazou@adacore.com>
8674 Bob Duff <duff@adacore.com>
8675 Tristan Gingold <gingold@adacore.com>
8676
9e81dbc7
AS
8677 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
8678 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
8679 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8680 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8681 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
8682 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8683 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
e9b54d64 8684 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
9e81dbc7 8685 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
e9b54d64
AC
8686 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
8687 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
8688 (Always_Compatible_Rep): New flag to control trampolines globally.
8689 (Dynamic_Trampolines_Used): New flag for implementing the
8690 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
8691 and not yet set correctly for some targets).
8692
8693 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
8694 Simply indirectly call s-stchop when a task is created.
8695
9e81dbc7 8696 * ali.ads:
e9b54d64
AC
8697 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
8698 appears as an argument (entries A) in an ALI file.
8699
8700 * fe.h (Stack_Check_Limits): Declare new target parameter.
8701 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
8702
8703 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
8704 This variable is declared in C to be sure not subject to elaboration
8705 code.
8706 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
8707 Storage_Error.
8708
8709 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
8710 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
8711
8712 * s-stchop.ads: Add comments.
8713
8714 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
8715 limit method of stack checking.
8716
8717 * s-stchop-limit.ads: New file.
8718
87192007-12-13 Robert Dewar <dewar@adacore.com>
8720
9e81dbc7
AS
8721 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
8722 a-cihama.adb, g-awk.adb,
e9b54d64
AC
8723 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
8724 warnings
8725
8726 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
8727
8728 * sem.adb: Update handling of assigned value/unreferenced warnings
8729
8730 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
8731
8732 * lib-xref.ads: Improve documentation for k xref type
8733
9e81dbc7 8734 * lib-xref.adb:
e9b54d64
AC
8735 Update handling of assigned value/unreferenced warnings
8736 (Generate_Reference): Warning for reference to entity for which a
8737 pragma Unreferenced has been given should be unconditional.
8738 If the entity is a discriminal, mark the original
8739 discriminant as referenced.
8740
8741 * sem_warn.ads, sem_warn.adb
8742 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
8743 no entities referenced in package
8744 (Check_One_Unit): Don't give message about no entities referenced in
8745 a package if a pragma Unreferenced has appeared.
8746 Handle new warning flag -gnatw.a/-gnatw.A
8747 Update handling of assigned value/unreferenced warnings
8748
8749 * atree.h: Add flags up to Flag247
8750 (Flag231): New macro.
8751
87522007-12-13 Jose Ruiz <ruiz@adacore.com>
8753
8754 * adaint.h: (__gnat_plist_init): Not defined for RTX.
8755
8756 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
8757 RTX systems.
8758
8759 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
8760 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
8761 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
8762 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
8763
9e81dbc7 8764 * mingw32.h:
e9b54d64
AC
8765 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
8766
8767 * sysdep.c (winflush_function for RTX): Procedure that does nothing
8768 since we only have problems with Windows 95/98, which are not
8769 supported by RTX.
8770 (__gnat_ttyname): Return the empty string on Nucleus, just as
8771 done on vxworks.
8772
87732007-12-13 Robert Dewar <dewar@adacore.com>
8774
9e81dbc7 8775 * a-textio.adb, a-textio.ads:
e9b54d64
AC
8776 Extensive changes to private part for wide character encoding
8777
8778 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
8779 (Look_Ahead): Fix mishandling of encoded sequences
8780 Move declaration of Wch_Con to private part (should not be visible)
8781
8782 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
8783 UTF-8. Probably this is never used, but if it is, brackets is
8784 clearly correct.
8785
8786 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
8787 setting wide character encoding for no main program case and when
8788 encoding is specified using -W?
8789 Initialize stack limit of environment task if stack limit method of
8790 stack checking is enabled.
8791 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
8792 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
8793 (Get_Main_Unit_Name): New function.
8794 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
8795 (Gen_Output_File): Set Bind_Main_Program to True for .NET
8796
8797 * bindusg.adb: Add line for -Wx switch
8798
8799 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
8800 Add comments
8801 Add new useful constant WC_Longest_Sequences
8802
8803 * switch-b.adb: Clean up handling of -Wx switch
8804 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8805
8806 * switch-c.adb: -gnatg activates warning on assertion errors
8807 For -gnatWx, set Wide_Character_Encoding_Method_Specified
8808
8809 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
8810
88112007-12-13 Robert Dewar <dewar@adacore.com>
8812 Ed Schonberg <schonberg@adacore.com>
8813
8814 * a-ngcoty.adb: New pragma Fast_Math
8815
8816 * opt.adb: New pragma Fast_Math
8817
9e81dbc7 8818 * par-prag.adb:
e9b54d64
AC
8819 Add Implemented_By_Entry to the list of pragmas which do not require any
8820 special processing.
8821 (Favor_Top_Level): New pragma.
8822 New pragma Fast_Math
8823
8824 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
8825 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8826 Expand_Allocator_Expression): Take into account VM_Target
8827 (Expand_Attribute, case 'Identity): Handle properly the case where
8828 the prefix is a task interface.
8829 New pragma Fast_Math
8830
8831 * par.adb (Next_Token_Is): New function
8832 (P_Pragma): Add Skipping parameter
8833 (U_Left_Paren): New procedure
8834 (U_Right_Paren): New procedure
8835 New pragma Fast_Math
8836
8837 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
8838 subunit
8839 New pragma Fast_Math
8840
8841 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
8842 Implemented_By_Entry.
8843 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
8844 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
8845 items, since it can apply to more than one overloadable entity. Set
8846 new flag Has_Pragma_Inline_Always for Inline_Always case.
8847 (Analyze_Pragma, case Complex_Representation): Improve error message.
8848 (Analyze_Pragma, case Assert): When assertions are disabled build the
8849 rewritten code with Sloc of expression rather than pragma, so new
8850 warning about failing is not deleted.
8851 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
8852 protected types and update error message to reflect that. Test whether
8853 the protected type is allowed for the pragma (an error is issued if the
8854 type has any entries, or components that do not have preelaborable
8855 initialization).
8856 New pragma Fast_Math
8857 (Analyze_Pragma, case No_Return): Handle generic instance
8858
9e81dbc7 8859 * snames.h, snames.ads, snames.adb:
e9b54d64
AC
8860 Add new predefined name for interface primitive _Disp_Requeue.
8861 New pragma Fast_Math
8862
8863 * a-tags.ads, a-tags.adb: New calling sequence for
8864 String_To_Wide_[Wide_]String
8865 (Secondary_Tag): New subprogram.
8866
8867 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
8868 from Exp_Attr
8869 New calling sequence for String_To_Wide_[Wide_]String
8870 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
8871 the use of the secondary stack for image routines.
8872
8873 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
8874 calling sequence for String_To_Wide_[Wide_]String
8875
8876 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
8877 Ada 95 mode
8878 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
8879 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8880
8881 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
8882 (P_Formal_Part): Use Skipping parameter in P_Pragma call
8883 to improve error recovery
8884
8885 * par-util.adb (Next_Token_Is): New function
8886 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
8887
8888 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
8889 semicolon if missing
8890 (P_Pragma): Implement new Skipping parameter
8891 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8892 Fix location of flag for unrecognized pragma message
8893
8894 * par-tchk.adb (U_Left_Paren): New procedure
8895 (U_Right_Paren): New procedure
8896
88972007-12-13 Geert Bosch <bosch@adacore.com>
8898
9e81dbc7 8899 * a-tifiio.adb:
e9b54d64
AC
8900 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
8901 the second or later Scaled_Divide would omit leading zeroes,
8902 resulting in too few digits produced and a Layout_Error as result.
8903 (Put): Initialize Pos.
8904
89052007-12-13 Robert Dewar <dewar@adacore.com>
8906
8907 atree.ads, atree.adb (Flag231..Flag247): New functions
8908 (Set_Flag231..Set_Flag247): New procedures
8909 (Basic_Set_Convention): Rename Set_Convention to be
8910 Basic_Set_Convention
8911 (Nkind_In): New functions
8912 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8913
8914 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
8915 instead
8916 of obsolete function Is_Always_Inlined
8917 (Register_Predefined_DT_Entry): Initialize slots of the second
8918 secondary dispatch table.
8919 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8920 (Expand_N_Function_Call): Remove special provision for stack checking.
8921
8922 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
8923 Include _Disp_Requeue in the list of predefined operations.
8924 (Find_Interface_ADT): Modified to fulfill the new specification.
8925 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8926
9e81dbc7 8927 * par-ch4.adb, nlists.ads, nlists.adb:
e9b54d64
AC
8928 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
8929
8930 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
8931 Fix location of flag for unrecognized pragma message
8932
8933 * sem_ch7.adb: Use Nkind_In
8934
89352007-12-13 Vincent Celier <celier@adacore.com>
8936
9e81dbc7 8937 * opt.ads:
e9b54d64
AC
8938 Indicate what flags are used by the Project Manager, gprbuild and
8939 gprclean.
8940 (Opt.Follow_Links_For_Dirs): New flag
8941 (Warn_On_Assertion_Failure): New flag
8942 (Wide_Character_Encoding_Method_Specified): New flag
8943 (Suppress_All_Inlining): New switch set by -fno-inline
8944 (Real_VMS_Target): New flag
8945 New pragma Fast_Math
8946
89472007-12-13 Robert Dewar <dewar@adacore.com>
8948
8949 * back_end.adb: Recognize -fno-inline
8950
89512007-12-13 Robert Dewar <dewar@adacore.com>
8952
8953 * checks.adb: Fix optimization problem with short-circuited form
8954
89552007-12-13 Bob Duff <duff@adacore.com>
8956
8957 * clean.adb (Usage): Add line for -aP
8958 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
8959 with a parameter "procedure Usage", instead of passing a pointer to a
8960 procedure. This is to eliminate trampolines (since the Usage procedure
8961 is often nested in a main procedure, and it would be inconvenient to
8962 unnest it).
8963
8964 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
8965 to be generic, with a parameter "procedure Callback (...)", instead of
8966 passing a pointer to a procedure. This is to eliminate trampolines
8967 (since the Callback procedure is usually nested).
8968
9e81dbc7 8969 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
e9b54d64
AC
8970 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
8971 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
8972
8973 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
8974 Use the generic Heap_Sort_G instead of Heap_Sort_A.
8975
89762007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8977
8978 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
8979 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
8980 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
8981 (Renamed_In_Spec): New flag
8982 (Has_Pragma_Inline_Always): New flag
8983 Add missing doc for pragma Obsolescent_Warning
8984 Add missing doc for 17 additional unused flags (230-247)
8985 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
8986 Alphabetize with clauses.
8987 Separate Is_Thunk and Has_Thunks flags
8988 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
8989 (Related_Interface): Renamed to Related_Type.
8990 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
8991 (Set_Is_Flag): Restrict the assertion.
8992
89932007-12-13 Vincent Celier <celier@adacore.com>
8994
8995 * errout.adb (Output_Source_Line): Do not keep a trailing space after
8996 the source line number if the source line is empty.
8997
89982007-12-13 Geert Bosch <bosch@adacore.com>
8999
9000 * eval_fat.adb (Decompose_Int): Handle argument of zero.
9001 (Compose): Remove special casing of zero.
9002 (Exponent): Likewise.
9003 (Fraction): Likewise.
9004 (Machine): Likewise.
9005 (Decompose): Update comment.
9006
90072007-12-13 Ed Schonberg <schonberg@adacore.com>
9008
9009 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
9010 limited ancestor part, initialize controllers of enclosing record
9011 before expanding ancestor aggregate.
9012 (Gen_Assign): If a component of the aggregate is box-initialized, add
9013 code to call Initialize if the component is controlled, and explicit
9014 assignment of null if the component is an access type.
9015
9016 Handle properly aggregates for limited types that appear in object
9017 declarations when the aggregate contains controlled values such as
9018 protected types.
9019 When expanding limited aggregates into individual components, do not
9020 call Adjust on controlled components that are limited.
9021
90222007-12-13 Ed Schonberg <schonberg@adacore.com>
9023
9024 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
9025
90262007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9027
9028 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
9029 predefined primitive _Disp_Requeue.
9030 (Make_Predefined_Primitive_Specs): Create the spec for predefined
9031 primitive _Disp_Requeue.
9032 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
9033 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
9034 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
9035 an interface type. In case of limited interfaces we now declare all the
9036 predefined primitives associated with synchronized interfaces as
9037 abstract.
9038 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
9039 declarations.
9040 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
9041 tagged type is an interface type and there is no user-defined equality
9042 function.
9043 Add also bodies of predefined primitives associated with synchronized
9044 interfaces.
9045 (Freeze_Record_Type): Do not build bodies of predefined primitives of
9046 interface types because they are now defined abstract.
9047 Add missing documentation.
9048 (Expand_Record_Controller): Update occurrence of Related_Interface
9049 to Related_Type.
9050 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
9051 (Expand_N_Object_Declaration): Take into account VM_Target when handling
9052 class wide interface object declaration.
9053 (Expand_Previous_Access_Type): Do not create a duplicate master entity
9054 if the access type already has one.
9055 (Expand_N_Object_Declaration): Defend against attempt to validity check
9056 generic types. Noticed for -gnatVcf specified with previous errors.
9057
90582007-12-13 Arnaud Charlet <charlet@adacore.com>
9059
9060 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
9061 Expand_Allocator_Expression): Take into account VM_Target
9062
9063 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
9064 secondary stack when VM_Target /= No_VM
9065
90662007-12-13 Javier Miranda <miranda@adacore.com>
9067 Ed Schonberg <schonberg@adacore.com>
9068
9069 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
9070 Is_Complation_Unit by Is_Library_Level_Entity in the code
9071 that decides if the static dispatch tables need to be built.
9072 (Wrap_Transient_Declaration): Do not generate a finalization call if
9073 this is a renaming declaration and the renamed object is a component
9074 of a controlled type.
9075
90762007-12-13 Gary Dismukes <dismukes@adacore.com>
9077
9078 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
9079 In the case where the renamed subprogram is a dereference, call
9080 Force_Evaluation on the prefix.
9081
90822007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9083 Ed Schonberg <schonberg@adacore.com>
9084
9085 * exp_ch9.adb (Expand_N_Asynchronous_Select,
9086 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
9087 comment reformatting.
9088 (Set_Privals): Inherit aliased flag from formal. From code reading.
9089 (Build_Simple_Entry_Call): Out parameters of an access type are passed
9090 by copy and initialized from the actual. This includes entry parameters.
9091 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
9092 and Ada 2005 models of requeue.
9093 (Null_Statements): Still connsider do-end block null if it contains
9094 Unreferenced and Warnings pragmas.
9095 (Expand_N_Accept_Statement): Do not optimize away null do end if
9096 dispatching policy is other than defaulted.
9097 (Expand_N_Timed_Entry_Call): When the triggering statement is a
9098 dispatching call, manually analyze the delay statement.
9099 (Find_Parameter_Type): Move subprogram to Sem_Util.
9100
91012007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9102 Javier Miranda <miranda@adacore.com>
9103
9104 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
9105 _Disp_Requeue occupies dispatch table slot number 15. Move
9106 _Disp_Timed_Select to slot 16.
9107 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
9108 generate the spec and body of _Disp_Reqeueue.
9109 (Make_DT): Build and initialize the second dispatch table.
9110 Handle initialization of RC_Offset when the parent
9111 is a private type with variable size components.
9112 (Make_Secondary_DT): Complete documentation. Add support to
9113 initialize the second dispatch table.
9114 (Make_Tags): Generate the tag of the second dispatch table.
9115 (Register_Primitive): Add support to register primitives in the
9116 second dispatch table.
9117
91182007-12-13 Pascal Obry <obry@adacore.com>
9119
9120 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
9121 Windows. This signal is used by gnatmake to kill child processes for
9122 example.
9123
91242007-12-13 Javier Miranda <miranda@adacore.com>
9125
9126 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
9127 support for generic dispatching constructor calls in which we need to
9128 locate the tag of a secondary dispatch table associated with an
9129 interface type to properly dispatch the call.
9130 (Expand_N_Attribute_Reference [case Address],
9131 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
9132 handling of VM targets.
9133
91342007-12-13 Robert Dewar <dewar@adacore.com>
9135 Ed Schonberg <schonberg@adacore.com>
9136
9137 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
9138 assert fail
9139
9140 * ug_words: Add entries for -gnatw.a -gnatw.A
9141
9142 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
9143 literal is a subtype with non-static constraints, use the base type of
9144 the context as the base of the string subtype, to prevent type
9145 mismatches in gigi.
9146 (Resolve_Actuals): If the actual is an entity name, generate a
9147 reference before the actual is resolved and expanded, to prevent
9148 spurious warnings on formals of enclosing protected operations.
9149 (Analyze_Overloaded_Selected_Component): If type of prefix if
9150 class-wide, use visible components of base type.
9151 (Resolve_Selected_Component): Ditto.
9152 (Resolve_Short_Circuit): Detect case of pragma Assert argument
9153 evaluating to False, and issue warning message.
9154
9155 * usage.adb: Add lines for -gnatw.a and -gnatw.A
9156
91572007-12-13 Emmanuel Briot <briot@adacore.com>
9158
9159 * g-calend.ads (No_Time): New constant, to represent an uninitialized
9160 time value
9161
9162 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
9163 formats.
9164 (Month_Name_To_Number): New subprogram
9165
9166 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
9167 letter to upper-case.
9168
91692007-12-13 Robert Dewar <dewar@adacore.com>
9170 Ed Schonberg <schonberg@adacore.com>
9171
9172 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
9173
9174 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
9175 context is a limited view, use non-limited view when available. If the
9176 non-limited view is an unconstrained array, this enforces consistency
9177 requirements in 3.10.2 (27).
9178 (Layout_Type): For an access type whose designated type is a limited
9179 view, examine its declaration to determine if it is an unconstrained
9180 array, and size the access type accordingly.
9181 (Layout_Type): Do not force 32-bits for convention c subprogram
9182 pointers in -gnatdm mode, only if real vms target.
9183
9184 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
9185 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
9186 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
9187 violations of the No_Implicit_Dynamic_Code restriction.
9188 (Resolve_Attribute, case 'Access): If designated type of context is a
9189 limited view, use non-limited view when available. If the non-limited
9190 view is an unconstrained array, this enforces consistency requirements
9191 in 3.10.2 (27).
9192 (Layout_Type): For an access type whose designated type is a limited
9193 view, examine its declaration to determine if it is an unconstrained
9194 array, and size the access type accordingly.
9195
91962007-12-13 Vincent Celier <celier@adacore.com>
9197
9198 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
9199 object directory of main project does not exist.
9200 On VMS, correctly set then environment variable for the source
9201 directories.
9202
92032007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
9204
9205 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
9206 set to True this procedure will create the value of type REG_EXPAND_SZ.
9207 It was only possible to create REG_SZ values before.
9208
92092007-12-13 Robert Dewar <dewar@adacore.com>
9210
9211 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
9212 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
9213 namet-sp.adb, namet-sp.ads: New files.
9214
9215 * g-speche.adb: Use generic routine in g-spchge
9216
9e81dbc7 9217 * s-wchcnv.ads, s-wchcnv.adb:
e9b54d64
AC
9218 Minor code cleanup (make formal type consistent with spec)
9219
9220 * namet.adb: Update comments.
9221
9222 * par-endh.adb (Evaluate_End_Entry): Use new
9223 Namet.Sp.Is_Bad_Spelling_Of function
9224
9225 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
9226
9227 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
9228 ancestor is an access type initialized with a box, set its type
9229 explicitly, for use in subsequent expansion.
9230 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
9231 function
9232
92332007-12-13 Robert Dewar <dewar@adacore.com>
9234
9235 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
9236 access Vstring)
9237
92382007-12-13 Robert Dewar <dewar@adacore.com>
9239
9240 * inline.adb (Back_End_Cannot_Inline): Use new flag
9241 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
9242
9243 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
9244 Has_Pragma_Inline_Always instead.
9245 of obsolete function Is_Always_Inlined
9246 (Build_Body_To_Inline): Same change
9247 (Cannot_Inline): Same change
9248 Do not give warning on exception raise in No_Return function
9249
9250 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
9251 component has two inconsistent component clauses in the same record
9252 representation clause, favor the message that complains about
9253 duplication rather than inconsistency.
9254 Update comments.
9255 (Record_Representation_Clause): Do not warn on missing component
9256 clauses for inherited components of a type extension.
9257 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
9258 an overloadable item if it is a pragma that can apply to multiple
9259 overloadable entities (e.g. Inline) because a pragma cannot be on
9260 more than one chain at a time.
9261 (Validate_Unchecked_Conversion): Add code to warn on unchecked
9262 conversion where one of the operands is Ada.Calendar.Time.
9263 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
9264 For now, ignore Component_Size clause on VM targets, as done for
9265 pragma Pack.
9266
92672007-12-13 Emmanuel Briot <briot@adacore.com>
9268 Vincent Celier <celier@adacore.com>
9269
9270 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
9271 string
9272 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
9273 prj.ads
9274 (Hash): Move instantiation of System.HTable.Hash from spec to body
9275 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
9276 systems, since we do not need to recompute the Name_Id for the canonical
9277 file name.
9278 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
9279 as a parameter. This parameter is in fact always "ada" in all calls, and
9280 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
9281 while loading a project with 40000 files
9282
9283 * prj-attr.adb: Fix name of attribute Dependency_Driver
9284 Change the kind of indexing for attribute Root
9285
9286 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
9287 variables already declared, in case constructions.
9288
9289 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
9290 Current_Object_Path_File to No_Path.
9291
9292 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
9293 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
9294
9295 * prj-makr.adb: new parameter Current_Dir
9296
9297 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
9298 Ada sources when language is not Ada.
9299 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
9300 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
9301 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
9302 (Locate_Directory): Always resolve links when computing Canonical_Path
9303 (Look_For_Sources): Make sure that Name_Buffer contains the file name
9304 in Source_Files before checking for the presence of a directory
9305 separator.
9306 Optimize calls to Name_Find when on case sensitive systems.
9307 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
9308 as a parameter.
9309 (Prj.Nmsc.Check): new parameter Current_Dir
9310 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
9311 cannot be empty and the spec suffix cannot be the same as the body or
9312 separate suffix.
9313 (Get_Unit): When a file name can be of several unit kinds (spec, body or
9314 subunit), always consider the longest suffix.
9315 (Check_Configuration): Do not issue an error if there is no compiler
9316 for a language. Just issue a warning and ignore the sources for the
9317 language.
9318 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
9319 not empty.
9320 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
9321 (Unit_Exceptions): New hash table
9322 (Check_Naming_Schemes): Check if a file that could be a unit because of
9323 the naming scheme is not in fact a source because there is an exception
9324 for the unit.
9325 (Look_For_Sources): Put the unit exceptions in hash table
9326 Unit_Exceptions
9327 (Get_Unit_Exceptions): Give initial value No_Source to local variable
9328 Other_Part to avoid exception when code is compiled with validity
9329 checking.
9330 (Get_Sources_From_File): Check that there is no directory information
9331 in the file names.
9332 (Look_For_Sources): Check that there is no directory information in the
9333 list of file names in Source_Files.
9334 (Look_For_Sources): In multi-language mode, do not allow exception file
9335 names that are excluded.
9336 (Excluded_Sources_Htable): New hash table
9337 (Search_Directories.Check_File): New procedure to simplify
9338 Search_Directories.
9339 (Search_Directories): Do not consider excluded sources
9340 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
9341 Search_Directories.
9342 (Get_Exceptions): Set component Lang_Kind of Source_Data
9343 (Get_Unit_Exceptions): Ditto
9344 (Search_Directories): Ditto
9345
9346 * prj-pars.adb: new parameter Current_Dir
9347
9e81dbc7 9348 * prj-part.ads, prj-part.adb:
e9b54d64
AC
9349 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
9350 (Opt.Follow_Links_For_Dirs): New flag
9351 (Project_Path_Name_Of): Cache information returned by this routine as
9352 Locate_Regular_File is a costly routine. The code to output a log
9353 information and the effective call to Locate_Regular_File is now
9354 factorized into a routine (code clean-up).
9355 (Parse, Parse_Single_Project): new parameter Current_Dir
9356 When main project file cannot be found, indicate in the error
9357 message the project path that was used to do the search.
9358
9359 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
9360 (Prj.Proc.Process*): new parameter Current_Dir
9361
9362 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
9363
93642007-12-13 Bob Duff <duff@adacore.com>
9365
9366 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
9367 procedure to be called from the back end to check the
9368 No_Implicit_Dynamic_Code restriction.
9369
93702007-12-13 Arnaud Charlet <charlet@adacore.com>
9371
9372 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
9373 Fixes another case where RTE_Available_Call was ignored instead of being
9374 taken into account.
9375 (Load_Fail): Ditto.
9376
9377 * rtsfind.ads: Add new entries.
9378
93792007-12-13 Robert Dewar <dewar@adacore.com>
9380
9381 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
9382 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
9383
9384 * scn.adb: Implement BOM recognition
9385
93862007-12-13 Thomas Quinot <quinot@adacore.com>
9387 Ed Schonberg <schonberg@adacore.com>
9388
9389 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
9390 subprogram body that acts as its own spec may not have a non-private
9391 WITH clause on a private sibling.
9392 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
9393 child unit is a renaming, create an implicit with_clause on that
9394 parent, and not on the unit it renames, to prevent visibility errors
9395 in the current unit.
9396
93972007-12-13 Ed Schonberg <schonberg@adacore.com>
9398
9399 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
9400 renaming declaration, use the Slocs of the formal parameters from the
9401 declaration of the formal subprogram when creating the formal parameter
9402 entities in the renaming declaration.
9403 (Analyze_Formal_Type_Declaration): Change the placement of the error
9404 message concerning illegal known discriminants. It is now posted on the
9405 type rather than on the first discriminant. This change ensures early
9406 error report.
9407 (Freeze_Subprogram_Body): If the generic subprogram is nested within
9408 the package body that contains the instance, do not generate an
9409 out-of-place freeze node for the enclosing package.
9410 (Collect_Previous_Instantiations): Ignore internal instantiations
9411 generated for formal packages.
9412 (Validate_Derived_Type_Instance): Add a check that when a formal
9413 derived type is Known_To_Have_Preelab_Init then the actual type must
9414 have preelaborable initialization, and issue an error when this
9415 condition is violated.
9416
94172007-12-13 Robert Dewar <dewar@adacore.com>
9418
9419 * s-imenne.adb, s-imenne.ads: New files.
9420
9e81dbc7
AS
9421 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
9422 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
9423 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
9424 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
e9b54d64
AC
9425 s-imgwch.ads: New calling sequence for Image routines to avoid sec
9426 stack usage.
9427
94282007-12-13 Javier Miranda <miranda@adacore.com>
9429 Ed Schonberg <schonberg@adacore.com>
9430
9431 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
9432 generation of spurious error if parent is an interface type; caused
9433 because predefined primitive bodies will be generated later by
9434 Freeze_Record_Type.
9435 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
9436 flag.
9437 (Derive_Subprograms): Handle derivations of predefined primitives
9438 after all the user-defined primitives to ensure that they are
9439 found in proper order in instantiations.
9440 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
9441 of Related_Interface to Related_Type.
9442 (Record_Type_Declaration): Minor reordering of calls to decorate the
9443 Tag component because the entity must have set its Ekind attribute
9444 before setting its Is_Tag attribute.
9445 (Analyze_Subtype_Declaration): In the case of subtypes with
9446 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
9447
94482007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9449 Ed Schonberg <schonberg@adacore.com>
9450
9451 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
9452 statement to the list of contexts where a selected component with a
9453 concurrent tagged type prefix should yield a primitive operation.
9454 (Find_Primitive_Operation): Handle case of class-wide types.
9455 (Analyze_Overloaded_Selected_Component): If type of prefix is
9456 class-wide, use visible components of base type.
9457 (Resolve_Selected_Component): Ditto.
9458 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
9459 formal of a generic subprogram. find candidate interpretations by
9460 scanning the list of generic formal declarations.:
9461 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
9462 type from a limited_with_clause, and the full view is available, use it
9463 for subsequent semantic checks.
9464 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
9465 (Find_Primitive_Operation): New function.
9466 (Analyze_Overloaded_Selected_Component): insert explicit dereference
9467 only once if several interpretations of the prefix yield an access type.
9468 (Try_Object_Operation): Code and comment cleanup.
9469 (Analyze_Selected_Component): Reorder local variables. Minot comment and
9470 code reformatting. When the type of the prefix is tagged concurrent, a
9471 correct interpretation might be available in the primitive and
9472 class-wide operations of the type.
9473
94742007-12-13 Robert Dewar <dewar@adacore.com>
9475 Ed Schonberg <schonberg@adacore.com>
9476
9477 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
9478 renaming entry as subprogram using rename-as-body if subprogram spec
9479 frozen.
9480 (Use_One_Type): The clause is legal on an access type whose designated
9481 type has a limited view.
9482 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
9483 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
9484 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
9485 operation denoted by a selected component.
9486 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
9487 it can be an expression, possibly overloaded, that returns a task or
9488 an access to one.
9489
94902007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9491 Gary Dismukes <dismukes@adacore.com>
9492
9493 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
9494 requeue statement is dispatching. Do not emit an error when the name is
9495 not an entry and the context is a dispatching select. Add code to
9496 perform subtype conformance between the formals of the current entry
9497 and those of the target interface primitive.
9498 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
9499 Timed_Entry_Call): Analyze the triggering statement as the first step of
9500 the processing. If this is a dispatching select, postpone the analysis
9501 of all select statements until the Expander transforms the select. This
9502 approach avoids generating duplicate identifiers after the Expander has
9503 replicated some of the select statements. In case the Expander is
9504 disabled, perform regular analysis.
9505 (Check_Triggering_Statement): New routine.
9506 (Analyze_Requeue): Exclude any interpretations that are not entries when
9507 checking overloaded names in a requeue. Also test type conformance for
9508 matching interpretations rather than requiring subtype conformance at
9509 that point to conform with the RM's resolution rule for requeues.
9510
95112007-12-13 Ed Schonberg <schonberg@adacore.com>
9512
9513 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
9514 inherited operation is a defaulted tag-indeterminate call, and there is
9515 a statically tagged actual, use the static tag as a controlling actual
9516 for the defaulted actual.
9517
95182007-12-13 Geert Bosch <bosch@adacore.com>
9519
9520 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
9521 context, so do not call Check_Non_Static_Context.
9522
95232007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
9524
9525 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
9526 whether formal E is an entity which may have parameters.
9527
95282007-12-13 Bob Duff <duff@adacore.com>
9529 Javier Miranda <miranda@adacore.com>
9530 Robert Dewar <dewar@adacore.com>
9531
9532 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
9533 (Set_Convention): New procedure to set the Convention flag, and in
9534 addition make sure the Favor_Top_Level flag is kept in sync (all
9535 foreign-language conventions require Favor_Top_Level = True).
9536 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
9537 to Related_Type.
9538 (Collect_Interfaces_Info): Minor update to handle the two secondary
9539 dispatch tables. Update occurrence of Related_Interface to Related_Type.
9540 (Generate_Parent_Ref): Add parameter to specify entity to check
9541 (Is_Preelaborable_Expression): Allow the name of a discriminant to
9542 initialize a component of a type with preelaborable initialization.
9543 This includes the case of a discriminal used in such a context.
9544 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
9545 latest Ada 2005 rules about renaming and 'Access of
9546 discriminant-dependent components.
9547 (Check_Nested_Access): Add handling when there are no enclosing
9548 subprograms (e.g. case of a package body).
9549 (Find_Parameter_Type): Factor routine from several other compiler files.
9550 Remove routine from Find_Overridden_Synchronized_Primitive.
9551
95522007-12-13 Thomas Quinot <quinot@adacore.com>
9553
9554 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
9555 an invalid access to an uninitialized slot in the
9556 Source_File_Index_Table.
9557
95582007-12-13 Thomas Quinot <quinot@adacore.com>
9559
9560 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
9561
95622007-12-13 Bob Duff <duff@adacore.com>
9563
9564 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
9565 access-to-subprogram types in this package.
9566
95672007-12-13 Olivier Hainque <hainque@adacore.com>
9568
9569 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
9570 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
9571 Stack_Overlay_Address and document that we are using an internal
9572 abstraction.
9573 (Byte_Size, Unsigned_32_Size): Remove, now useless.
9574 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
9575 consistently throughout the various implementation pieces.
9576
9577 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
9578 overlay we are using to fill the stack area with patterns.
9579 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
9580 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
9581 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
9582
95832007-12-13 Robert Dewar <dewar@adacore.com>
9584
9585 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
9586
95872007-12-13 Arnaud Charlet <charlet@adacore.com>
9588
9e81dbc7 9589 * s-tassta.adb:
e9b54d64
AC
9590 (Create_Task): Take into account tasks created by foreign threads.
9591 Code clean up: use constants instead of hard coded values.
9592
95932007-12-13 Robert Dewar <dewar@adacore.com>
9594
9595 * styleg.adb (Check_Comment): More liberal rules for comment placement
9596
95972007-12-13 Olivier Hainque <hainque@adacore.com>
9598
9599 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
9600 of Procedure Value instead of Frame Pointer as the invocation
9601 identifier associated with the instruction pointer in each traceback
9602 entry.
9603
9604 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
9605 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
9606 Pointer as the invocation identifier passed to tbk$symbolize.
9607
9608 * s-traent-vms.ads, s-traent-vms.adb
9609 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
9610 Procedure Value instead of Frame Pointer as the invocation identifier
9611 passed to tbk$symbolize.
9612
96132007-12-13 Robert Dewar <dewar@adacore.com>
9614
9e81dbc7 9615 * tbuild.ads, tbuild.adb:
e9b54d64
AC
9616 Fix location of flag for unrecognized pragma message
9617
96182007-12-13 Robert Dewar <dewar@adacore.com>
9619
9620 * treepr.ads, treepr.adb: (pl): implement use of positive value
9621 shorthands
9622
96232007-12-13 Robert Dewar <dewar@adacore.com>
9624
9625 * xeinfo.adb: Remove warnings
9626 * xnmake.adb: Remove warnings
9627 * xsinfo.adb: Remove warnings
9628 * xtreeprs.adb: Remove warnings
9629 * xsnames.adb: Remove warnings
9630
9631 * a-ngcoar.adb: Fix typo.
9632 * s-interr.adb: Minor reformatting
9633 * env.c: Minor reformatting.
9634 * g-bytswa.adb: Minor reformatting.
9635 * g-rannum.ads: Minor documentation improvements
9636 * s-tasinf-mingw.adb: Minor header fix
9637 * a-clrefi.adb: Minor reformatting
9638 * g-sttsne.ads: Minor documentation improvement
9639 * g-sttsne-locking.ads: Minor documentation improvement
9640 * g-soliop-solaris.ads: Minor documentation improvement
9641 * g-soliop-mingw.ads: Minor documentation improvement
9642 * g-soliop.ads: Minor documentation improvement
9643 * exp_aggr.ads: Minor reformatting
9644 * debug.adb: Add documentation for the gprbuild debug flags
9645 * exp_ch2.adb: Use Nkind_In to simplify code throughout
9646 * exp_pakd.adb: Minor reformatting
9647
9648 * g-altive.ads, g-alleve.adb: Remove assertions.
9649 Add comment about minor differences between targets regarding
9650 floating-point operations.
9651
9652 * g-thread.adb: Remove pragma unreferenced.
9653 * lib.ads: Minor reformatting
9654 * par-ch9.adb: Minor reformatting of error messages
9655 * sem_case.adb: Minor reformatting
9656 * s-fileio.adb: Minor reformattinng
9657 * s-vmexta.ads: Minor typo
9e81dbc7 9658 * vxaddr2line.adb:
e9b54d64
AC
9659 Take into account 'Success' value as per new GNAT warning.
9660
96612007-12-13 Vincent Celier <celier@adacore.com>
9662
9663 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
9664 even on Windows
9665
96662007-12-13 Robert Dewar <dewar@adacore.com>
9667 Bob Duff <duff@adacore.com>
9668
9669 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
9670 Document that suffixes may be terminations of each others
9671 Add doc for -gnatw.a and -gnatw.A
9672 Document gnatbind -Wx switch
9673 Document BOM recognition
9674 Document pragma Implemented_By_Entry.
9675 Document new units.
9676
9677 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
9678 Add doc for pragma Unreferenced suppressing no entities referenced msg
9679 Add documentation of GNAT.Directory_Operations.Iteration
9680 Add documentation of GNAT.Random_Numbers
9681 Add documentation for pragma Shared.
9682 Correct documentation for Bit_Order
9683 Add documentation for the Pool_Address attribute.
9684 Fix and improve documentation of pragma machine_attribute.
9685 New pragma Fast_Math
9686 Document BOM recognition
9687
9688 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
9689 Add /Wide_Character_Encoding for binder
9690 Add qualifier for the new gnatpp option --no-separate-loop-then
9691
96922007-12-13 Matthew Heaney <heaney@adacore.com>
9693
9694 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
9695 which generic formal operations are called for each operation.
9696
96972007-12-13 Olivier Hainque <hainque@adacore.com>
9698
9699 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
9700 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
9701
97022007-12-13 Emmanuel Briot <briot@adacore.com>
9703
9704 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
9705 Reference_Dir unless we actually need it.
9706
97072007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
9708 Tristan Gingold <gingold@adacore.com>
9709
9710 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
9711
9712 * s-osprim-vms.adb,
9713 a-calend-vms.adb: Remove pragma warning off and add pragma
9714 unreferenced.
9715
97162007-12-13 Robert Dewar <dewar@adacore.com>
9717
9718 * impunit.adb: Add entries for missing units
9719
9720 * Makefile.rtl: Add new run-time units.
9721
9722 * Make-lang.in: Update dependencies.
9723
97242007-12-13 Bob Duff <duff@adacore.com>
9725
9726 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
9727 types, set Can_Use_Internal_Rep appropriately, based on
9728 Always_Compatible_Rep_On_Target.
9729
97302007-12-13 Gary Dismukes <dismukes@adacore.com>
9731 Arnaud Charlet <charlet@adacore.com>
9732
9733 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
9734 it to the front end and setting the aamp_target environment variable
9735 to the switch's argument to ensure that gnaampbind and gnaamplink will
9736 take the specified library into account.
9737 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
9738 target, since the CIL compiler supports an "object" file (.il files).
9739
97402007-12-13 Vincent Celier <celier@adacore.com>
9741
9742 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
9743 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
9744
97452007-12-13 Geert Bosch <bosch@adacore.com>
9746
9e81dbc7 9747 * s-parame-vxworks.adb:
e9b54d64
AC
9748 Update comments to reflect usage of this package by Nucleus.
9749
97502007-12-13 Arnaud Charlet <charlet@adacore.com>
9751
9752 * i-vxwork.ads: Kill new warning on Convention C, since changing the
9753 spec would break code.
9754
9755 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
9756
9757 * system-vxworks-alpha.ads: Removed.
9758
e74a122e
EB
97592007-12-10 Eric Botcazou <ebotcazou@adacore.com>
9760
9761 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
9762
5320014a
ST
97632007-12-09 Samuel Tardieu <sam@rfc1149.net>
9764
9765 PR ada/34366
9766 * sem_ch3.adb (Designates_T): New function.
9767 (Mentions_T): Factor reusable part of the logic into Designates_T.
9768 Consider non-access parameters and access and non-access result.
9769 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
9770 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
9771
9772 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
9773
da746f77
LB
97742007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
9775
9d651736 9776 PR ada/34361
da746f77
LB
9777 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
9778 the new implementation of target-specific calls.
9779
ebe0660b
OH
97802007-12-07 Olivier Hainque <hainque@adacore.com>
9781
9782 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
9783 the designated full view, only follow a second level Full_View link
9784 for Non_Limited_Views of from_limited_with references.
9e81dbc7 9785
2eb160f2
ST
97862007-12-07 Samuel Tardieu <sam@rfc1149.net>
9787
9788 PR ada/15805
9789 * sem_ch6.adb (Process_Formals): Prevent an access type formal
9790 to be initialized with an access to constant object.
9791
9cc11b58
ST
9792 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
9793 when an access to constant is used to initialize an access
9794 value.
9795
72f69ddf
ST
9796 PR ada/21346
9797 * a-direct.adb (Compose): Containing_Directory can be an empty string.
9798
5a2fe31a
OH
97992007-12-07 Olivier Hainque <hainque@adacore.com>
9800
9801 PR ada/34173
9802 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
9803 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
9804 this is from an alignment clause on the GNAT entity.
9805 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
9806 to distinguish the case where we set it from the type's alignment.
9807 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
9808 whether this alignment was set from an explicit alignment clause.
9809
4039fb35
EB
98102007-12-06 Eric Botcazou <ebotcazou@adacore.com>
9811
9812 * decl.c (make_packable_type): Revert last change.
9813 (gnat_to_gnu_field): Avoid setting size and position multiple times.
9814 * utils.c (finish_record_type): Retrieve the real name of the type.
9815
0ec479dc
EB
98162007-12-05 Eric Botcazou <ebotcazou@adacore.com>
9817
9818 * trans.c (lvalue_required_p): Take base node directly instead
9819 of its parent. Rename second parameter to 'gnu_type'.
9820 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
9821 <N_Slice>: Likewise.
9822 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
9823 Adjust calls to lvalue_required_p.
9824
07c7262e
ST
98252007-12-05 Samuel Tardieu <sam@rfc1149.net>
9826
9827 PR ada/21489
9828 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
9829 parameters of an entry call.
9830
9e94c78f 98312007-12-03 Robert Dewar <dewar@adacore.com>
9e81dbc7 9832 Samuel Tardieu <sam@rfc1149.net>
403fd939
RD
9833
9834 PR ada/34287
9835 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
9836 of variables declared in a library-level package.
9e81dbc7 9837
0bcb4d2a
ST
98382007-12-02 Samuel Tardieu <sam@rfc1149.net>
9839
9840 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
9841 of Empty_String'Unchecked_Access.
9842
dd9c642a
ST
9843 * Makefile.in: Add support for sh4-linux.
9844
9845 * system-linux-sh4.ads: New file.
9846
35330114
KB
98472007-12-01 Kostik Belousov <kostikbel@ukr.net>
9848
9849 PR ada/33722
9850 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
9851 and its argument must not be free()ed.
9852
a6dcb051
EB
98532007-11-29 Eric Botcazou <ebotcazou@adacore.com>
9854
9855 * decl.c (make_packable_type): Retrieve the real name of the type.
9856 (maybe_pad_type): Simplify similar code.
9857
39a97416
ST
98582007-11-28 Samuel Tardieu <sam@rfc1149.net>
9859
a6968b8b 9860 PR ada/15804
39a97416
ST
9861 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
9862 than an identifier is used after "case" in a variant_part.
9863
b99dfeb3 9864 PR ada/17318
9c5a3a8d
ST
9865 * par-ch4.adb (Is_Parameterless_Attribute): New map.
9866 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
9867 attribute name or not depending on the new map.
9868
9869 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
9870 returning a string or a type will not be called with improper
9871 arguments.
9872
9873 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
9874
9875 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
9876
5a218498
ST
9877 PR ada/32792
9878 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
9879 Signal an error when attribute argument is a fixed-point value of
9880 an unknown type.
9881
7bde4677
ST
9882 PR ada/22559
9883 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
9884 a derived ordinary fixed point type.
9885
9886 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
9887 RM_Size when a Small clause is found.
9888
182e0d71
AK
98892007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
9890
9e81dbc7
AS
9891 PR 34081/C++
9892 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
9893 Pass 'false' for the new allocate_struct_function parameter.
9894 * utils.c (build_function_stub): Likewise.
182e0d71 9895
87caf699
RG
98962007-11-25 Richard Guenther <rguenther@suse.de>
9897
4039fb35 9898 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
87caf699
RG
9899 (gnat_poplevel): Likewise.
9900
f1c8c7ee
EB
99012007-11-25 Eric Botcazou <ebotcazou@adacore.com>
9902
9903 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
9904 strict alignment, no alignment clause and a known static size, cap
9905 the type alignment to the greatest power of 2 factor of the size.
9906 (gnat_to_gnu_field): If the field has a component clause, is aliased
9907 or of a type with strict alignment, require that its size be equal to
9908 that of the type.
9909 (validate_size): Use the type size as the minimum size for a type with
9910 strict alignment.
9911
bb1f5840
ST
99122007-11-23 Samuel Tardieu <sam@rfc1149.net>
9913
9914 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
9915 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
9916 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
9917 Use 'Access instead of 'Unchecked_Access in second and third
9918 arguments of pthread_sigmask.
9919
5102fac5
EB
99202007-11-23 Eric Botcazou <ebotcazou@adacore.com>
9921
9922 * decl.c (ceil_alignment): New function.
9923 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
9924 (make_packable_type): Likewise.
9925
1fa4dfc6
OH
99262007-11-22 Olivier Hainque <hainque@adacore.com>
9927
9928 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
9929 to fit in 80 columns.
9930
9e94c78f 99312007-11-21 Aurelien Jarno <aurelien@aurel32.net>
5f45b299
AJ
9932
9933 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
9934 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
9935
7634135a
EB
99362007-11-19 Eric Botcazou <ebotcazou@adacore.com>
9937
9938 PR ada/34098
9939 * misc.c (gnat_adjust_rli): Delete.
9940 (gnat_init): Do not initialize the translation code here.
9941 Do not call set_lang_adjust_rli.
9942 * trans.c (init_code_table): Make static.
9943 (gnat_init_stmt_group): Delete.
9944 (gigi): Initialize the translation code entirely here.
9945 Emit debug info for the common types here instead of...
9946 * utils.c (gnat_init_decl_processing): ...here.
9947 * gigi.h (init_code_table): Delete.
9948 (gnat_init_stmt_group): Likewise.
9949
b2c3bcf4
OH
99502007-11-16 Olivier Hainque <hainque@adacore.com>
9951
9952 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
9953 retrieving an allocator return value from a super-aligned address from
9954 here to ...
9955 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
9956 expect a super-aligned address for a fat or thin pointer.
9e81dbc7 9957
a01e283f
EB
99582007-11-14 Eric Botcazou <ebotcazou@adacore.com>
9959
9960 * trans.c (call_to_gnu): Always set the source location on the call
9961 expression. If the function returns-by-target, also set it on the
9962 address expression.
9963
713c3145
ST
99642007-11-14 Samuel Tardieu <sam@rfc1149.net>
9965
356d8961 9966 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
713c3145
ST
9967 sections of non-supported Interix target.
9968
9969 * s-osinte-interix.ads: Removed.
9970
1e992e16
ST
9971 * i-cstrin.ads (chars_ptr): Make it a C convention type.
9972
0e506c4b
ST
99732007-11-13 Samuel Tardieu <sam@rfc1149.net>
9974
9975 * a-tasatt.adb: Add a comment at the beginning of the package
9976 explaining why in general 'Unchecked_Access must be used instead
9977 of 'Access.
9978
66beb09b
ST
9979 * sem_prag.adb (Process_Convention): Move the test for the
9980 entity on which the Convention pragma applies down to also
9981 forbid pragma Convention on enumeration literals reached
9982 through renamings.
9983
14678e46
ST
99842007-11-10 Samuel Tardieu <sam@rfc1149.net>
9985
9986 * a-tasatt.adb: Revert previous change for this file as it will
9987 generate an error when this package is instantiated from a
9988 local context.
9989
f9d806de
ST
99902007-11-07 Samuel Tardieu <sam@rfc1149.net>
9991
9992 * a-tasatt.adb: Type Wrapper should be declared in comment instead
9993 of already declared type Node_Access.
dcbd752d
ST
9994 Use 'Access instead of 'Unchecked_Access when applicable. Local
9995 lifetime is the one of the package.
9996 (Set_Value): W is allocated on the heap.
9997
9998 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
9999 applicable.
10000 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
10001 access type.
10002 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
10003 access type.
10004
10005 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
10006 applicable.
10007 (elaboration code): Timer_Queue lifetime is the one of the
10008 package.
f9d806de 10009
bc01690e
ST
10010 * tracebak.c (i386 alternative): Remove useless comparaison
10011 which is always false; LOWEST_ADDRESS is 0 and is never greater
10012 than an unsigned integer.
10013
d9c1dc68
ST
10014 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
10015 embedded check for "Ada_Version >= Ada_05".
10016
cb88a3ea
OH
100172007-11-07 Olivier Hainque <hainque@adacore.com>
10018
10019 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
10020 craft and expand comment.
10021
233a722b
EB
100222007-11-01 Eric Botcazou <ebotcazou@adacore.com>
10023
10024 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
10025
6d1e8bff
EB
100262007-10-23 Eric Botcazou <ebotcazou@adacore.com>
10027
10028 * misc.c (gnat_handle_option): Replace call to abort with
10029 call to gcc_unreachable.
10030 (gnat_init): Likewise.
10031 (gnat_expand_expr): Likewise.
10032 (fp_prec_to_size): Likewise.
10033 (fp_size_to_prec): Likewise.
10034
262e7125
RG
100352007-10-23 Richard Guenther <rguenther@suse.de>
10036
10037 PR bootstrap/33608
10038 * tracebak.c: #undef abort after including system.h.
10039
9e94c78f 100402007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
c8f499a9
DS
10041
10042 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
10043 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
10044 for win32 targets.
10045 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
10046
f0e1e807
AC
100472007-10-15 Eric Botcazou <ebotcazou@adacore.com>
10048
10049 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
10050 Set the protection status of the guard page based on the value of On.
10051
10052 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
10053
10054 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
10055 (Exit_Task): Pass False to Hide_Yellow_Zone.
10056
100572007-10-15 Robert Dewar <dewar@adacore.com>
10058
9e81dbc7 10059 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
f0e1e807 10060 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9e81dbc7
AS
10061 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
10062 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
10063 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
10064 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
10065 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
10066 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
10067 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
f0e1e807 10068 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9e81dbc7
AS
10069 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
10070 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
10071 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
10072 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
10073 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
f0e1e807
AC
10074 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
10075 Minor reformatting.
10076 Add Unreferenced and Warnings (Off) pragmas for cases of
10077 variables modified calls where they are IN OUT or OUT parameters and
10078 the resulting values are not subsequently referenced. In a few cases,
10079 we also remove redundant code found by the new warnings.
10080
9e81dbc7 10081 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
f0e1e807
AC
10082 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
10083 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
10084 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
10085 warning controlled by -gnatw.o that warns on cases of out parameter
10086 values being ignored.
10087
100882007-10-15 Geert Bosch <bosch@adacore.com>
10089
10090 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
10091
10092 * expect.c: Initial port to arm-mentor-nucleus.
10093 Use kill for __gnat_kill() on VMS.
10094
100952007-10-15 Emmanuel Briot <briot@adacore.com>
10096
10097 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
10098 value.
10099 (Xref_Record): Change type for Line, since in the case of a reference to
10100 a predefined entity (as happens for array index types), the line is set
10101 to 0.
10102 Add support for parsing multiple array index types info, or
10103 multiple inherited interfaces info. This information cannot be stored
10104 in Xref_Entity_Record, which only supports a single instance of Tref_*,
10105 and is therefore stored in the list of references instead. It has a
10106 special treatement later on in tools that use this information.
10107
101082007-10-15 Tristan Gingold <gingold@adacore.com>
10109
10110 * debug.adb: Document use of -gnatd.a and -gnatd.I
10111
10112 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
10113
101142007-10-15 Javier Miranda <miranda@adacore.com>
10115
10116 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
10117 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
10118 care of access to class-wide interface types plus removal of bizarre
10119 conversion of tagged object to access type (reported by Gary
10120 Dismukes). After this patch there is no need to perform any
10121 additional management on these nodes in Expand_Interface_Actuals.
10122
10123 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
10124 that handles use of 'Access and 'Unchecked_Access applied to
10125 actuals covering interface types. Such code is now
10126 centralized in Expand_N_Attribute_Reference.
10127
101282007-10-15 Ed Schonberg <schonberg@adacore.com>
10129
10130 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
10131 of tagged types whose ultimate ancestor is a CPP type.
10132 (Freeze_Array_Type): For a packed array type, generate an initialization
10133 procedure if the type is public, to handle properly a client that
10134 specifies Normalize_Scalars.
10135
101362007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
10137
10138 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
10139 inside a generic body, retrieve the full view of the entry family
10140 discrete subtype if available.
10141
101422007-10-15 Thomas Quinot <quinot@adacore.com>
10143
10144 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
10145 attempt to generate stubs for hidden primitive operations.
10146
101472007-10-15 Vincent Celier <celier@adacore.com>
10148
10149 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
10150 returning None, used when there is no platform specific body for
10151 MLib.Tgt.Specific.
10152
101532007-10-15 Bob Duff <duff@adacore.com>
10154
10155 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
10156 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
10157 the generic Heap_Sort_G, in order to avoid trampolines.
10158
101592007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
10160 Jose Ruiz <ruiz@adacore.com>
10161
10162 * vx_stack_info.c: New file.
10163
10164 * i-forbla-unimplemented.ads: New file.
10165
10166 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
10167 for unsupported configurations; use it on VMS targets instead of the
10168 real one.
10169 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
10170 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
10171 used by VxWorks targets to have access to task-specific data and be
10172 able to extract the stack boundaries for stack checking.
10173 Use system-vms-ia64.ads on ivms.
10174
10175 * Make-lang.in: Update dependencies.
10176
10177 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
10178 (vx_stack_info.c).
10179
101802007-10-15 Vincent Celier <celier@adacore.com>
10181
10182 * snames.adb, snames.ads: Add new standard name runtime_library_dir
10183
10184 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
10185
10186 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
10187
10188 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
10189 the source is unknown.
10190
10191 * prj-ext.adb: Spelling error fix
10192
10193 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
10194 95 reserved word in its name.
10195 (Process_Project_Level_Array_Attributes): Process new attribute
10196 Runtime_Library_Dir.
10197
10198 * prj-part.adb (Parse_Single_Project): Do not check the name of the
10199 config project against the user project names.
10200
10201 * prj-proc.adb (Expression): In multi-language mode, indexes that do
10202 not include a dot are always case insensitive.
10203 (Process_Declarative_Items): Ditto
10204 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
10205 detected.
10206
10207 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
10208 True, compare both indexes in lower case.
10209
102102007-10-15 Robert Dewar <dewar@adacore.com>
10211
10212 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
10213
102142007-10-15 Gary Dismukes <dismukes@adacore.com>
10215
10216 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
10217 association for an access component, add an association with null as
10218 the expression. Remove testing for array subtypes and the setting in
10219 that case of Ctyp to the array component type, which prevented proper
10220 inclusion of an association for null-initialized arrays. Collapse
10221 condition that tests for array subtypes into just a test of
10222 Is_Partially_Initialized_Type (which already covers arrays anyway).
10223
102242007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
10225
10226 * sem_ch12.adb: Minor code reformatting.
10227 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
10228 find the parent package which may have been hidden by local
10229 declarations.
10230
102312007-10-15 Gary Dismukes <dismukes@adacore.com>
10232
10233 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
10234 flag of derived concurrent types, taking into account the flag setting
10235 on the parent subtype and any new set of discriminants.
10236
102372007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
10238
10239 * sem_ch4.adb: Minor code and comment reformatting.
10240 (Analyze_Allocator): When the designated type of an unconstrained
10241 allocator is a record with unknown discriminants or an array with
10242 unknown range bounds, emit a detailed error message depending on the
10243 compilation mode and whether the designated type is limited.
10244
102452007-10-15 Tristan Gingold <gingold@adacore.com>
10246
10247 * system-vms-ia64.ads: New file.
10248
10249 * system-vms_64.ads: Minor comment fix.
10250
102512007-10-15 Ed Schonberg <schonberg@adacore.com>
10252
10253 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
10254 body generated for a function with a controlling result that is a null
10255 extension, discard the generated body in favor of the current explicit
10256 one.
10257
102582007-10-15 Ed Schonberg <schonberg@adacore.com>
10259
10260 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
10261 examining its original form, to handle properly operator calls that
10262 have been rewritten.
10263
102642007-10-15 Olivier Hainque <hainque@adacore.com>
10265
10266 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
10267 instead of a procedure value in each traceback entry.
10268
10269 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
10270 instead of procedure value to TBK$SYMBOLIZE.
10271
10272 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
10273 field.
10274 (TB_Entry_For): Account for the PV/FP renaming.
10275
10276 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
10277 add comment.
10278 (Null_TB_Entry): Account for change of component name.
10279 (PV_For): Rename as FP_For.
10280
102812007-10-15 Tristan Gingold <gingold@adacore.com>
10282
10283 * trans.c (gnat_to_gnu): Remove the padding structure more often.
10284 This optimize assignment to over-aligned record.
10285
102862007-10-15 Emmanuel Briot <briot@adacore.com>
10287
10288 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
10289 interfaces.
10290
10291 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
10292 type, for dispatching calls.
10293
102942007-10-15 Vincent Celier <celier@adacore.com>
10295 Robert Dewar <dewar@adacore.com>
10296
10297 * gnat_ugn.texi: Add documentation for switches --version and --help
10298 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
10299 gnatxref, gnatfind, gnatls, and gnatclean.
10300 Document -gnatw.o.
10301 Mention attribute Excluded_Source_Dirs
10302 Replace obsolescent attribute Locally_Removed_Files with attribute
10303 Excluded_Source_Files.
10304 Improve documentation of -u (gnatbind)
10305 Document how to do reliable stack checking for the environmental task
10306 on iVMS.
10307
10308 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
10309 Document attribute Excluded_Source_Files and indicate that attribute
10310 Locally_Removed_Files is obsolescent.
10311
103122007-10-15 Thomas Quinot <quinot@adacore.com>
10313
10314 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
10315
9e81dbc7 10316 * gen-soccon.c:
f0e1e807
AC
10317 Update documentation to note that OpenVMS 8.3 or later must be used
10318 to generate g-soccon-vms.ads.
10319
10320 * atree.adb: Add ??? comment
10321
10322 * exp_util.adb: Minor reformatting.
10323 Add ??? comment in Kill_Dead_Code.
10324
103252007-10-15 Robert Dewar <dewar@adacore.com>
10326
10327 * errout.ads: Comment clarification
10328
10329 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
10330 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
10331
10332 * lib.ads: Comment update
10333
10334 * init.c: Minor reformatting.
10335
10336 * sem_attr.adb: Minor formatting
10337
10338 * osint-b.ads: Minor reformatting
10339
10340 * sem_ch9.adb: Implement -gnatd.I switch
10341
10342 * g-comlin.adb: (Start): Fix handling of empty command line.
10343
10344 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
10345 even when -rules follows the -cargs section.
10346
6524147c
OW
103472007-10-08 Ollie Wild <aaw@google.com>
10348
10349 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
10350 gnat_return_tree.
10351 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
10352 gnat_return_tree.
10353 (gnat_eh_runtime_type): Removed.
10354 (gnat_return_tree): New function.
10355
dff6abb2
BE
103562007-10-08 Ben Elliston <bje@au.ibm.com>
10357
10358 PR ada/33454
10359 Revert:
10360 2007-08-31 Ben Elliston <bje@au.ibm.com>
10361
10362 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10363 when compiling for powerpc64-*-linux.
10364 * system-linux-ppc64.ads: New file.
10365
c3048783
EB
103662007-09-27 Eric Botcazou <ebotcazou@adacore.com>
10367
10368 Mapped location support
10369 * back_end.adb (Call_Back_End): Pass information about source
10370 files instead of units to gigi.
10371 * gigi.h (struct File_Info_Type): New.
10372 (gigi): Rename and change type of number_units parameter, change
10373 type of file_info_ptr parameter.
10374 * trans.c (number_files): New global variable.
10375 (gigi): Rename and change type of number_units parameter, change
10376 type of file_info_ptr parameter.
10377 If mapped location support is enabled, create the isomorphic mapping
10378 between source files and line maps.
10379 (Sloc_to_locus): If mapped location support is enabled, translate
10380 source location into mapped location.
10381 (annotate_with_node): Rename into set_expr_location_from_node.
10382 Call set_expr_location instead of annotate_with_locus.
10383 (Pragma_to_gnu): Adjust for above change.
10384 (Loop_Statement_to_gnu): Likewise.
10385 (call_to_gnu): Likewise.
10386 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
10387 (gnat_to_gnu): Likewise.
10388 (add_stmt_with_node): Likewise.
10389 (add_cleanup): Likewise.
10390 * utils.c (gnat_init_decl_processing): Do not set input_line.
10391
68b72a44
AC
103922007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10393
10394 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
10395 (Applicable_Use): Emit a warning when a package tries to use itself.
10396 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
10397 is already in use or the package where it is declared is in use or is
10398 declared in the current package.
10399 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
10400
10401 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
10402 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
10403 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
10404
104052007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10406
9e81dbc7 10407 * a-calend-vms.adb, a-calend.adb:
68b72a44
AC
10408 Add a section on leap seconds control along with two entities used to
10409 enable and disable leap seconds support. The array Leap_Second_Times is
10410 now constant and contains hard time values pre-generated. Remove
10411 all elaboration code used to populate the table of leap seconds.
10412
9e81dbc7 10413 * bindgen.adb:
68b72a44
AC
10414 Add entity Leap_Seconds_Support to the list of global run-time variables
10415 along with a comment on its usage and values.
10416 (Gen_Adainit_Ada): Add code to generate the declaration and import of
10417 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
10418 or one (enabled) depending on the presence of binder switch "-y".
10419 (Gen_Adainit_C): Add code to generate the declaration of external int
10420 __gl_leap_seconds_support. Set is value to zero (disabled) or one
10421 (enabled) depending on the presence of binder switch "-y".
10422
10423 * init.c: Add __gl_leap_seconds_support to the list of global values
10424 computed by the binder.
10425
104262007-09-26 Jerome Guitton <guitton@adacore.com>
10427
10428 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
10429 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
10430 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
10431 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
10432
10433 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
10434
10435 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
10436 function which can be called by the debugger to interrupt the tasks of
10437 an Ada application asynchronously, as needed on VxWorks.
10438 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
10439
10440 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
10441 renamed from Stop_All_Tasks. Update comments.
10442 (Stop_All_tasks): New function declaration.
10443
104442007-09-26 Olivier Hainque <hainque@adacore.com>
10445
10446 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
10447 #include <utime.h> and #define GCC_RESOURCE_H before
10448 #include <sys/wait.h>.
10449 Add more protections in __gnat_translate_vms.
10450
10451 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
10452 #include <sys/wait.h>.
10453
104542007-09-26 Thomas Quinot <quinot@adacore.com>
10455 Sergey Rybin <rybin@adacore.com>
10456
10457 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
10458
10459 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
10460 where it belongs.
10461
10462 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
10463
10464 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
10465 where it belongs.
10466
10467 * sem_dist.ads: Minor comment fix
10468
10469 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
10470
104712007-09-26 Javier Miranda <miranda@adacore.com>
10472 Eric Botcazou <ebotcazou@adacore.com>
10473
9e81dbc7 10474 * a-tags.adb:
68b72a44
AC
10475 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
10476 indirection added to the HT_Link component of the TSD. This is required
10477 to statically allocate the TSD.
10478
9e81dbc7 10479 * a-tags.ads:
68b72a44
AC
10480 Minor reordering of the declarations in the private part. Required to
10481 add a level of indirection to the contents of the TSD component HT_Link.
10482 This is required to statically allocate the TSD.
10483
10484 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
10485 Is_Statically_Allocated set from constant objects.
10486 Do not make exported constants created by the compiler volatile.
10487 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
10488 as read-only.
10489
10490 * trans.c (Identifier_to_gnu): For constants, unshare initializers
10491 before returning them.
10492
10493 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
10494 public part of the package.
10495 (Make_DT): Move HT_Link component out of the TSD record. For this
10496 purpose Make_DT now declares a separate object that stores the
10497 HT_Link value, and initializes the TSD component with the address
10498 of this new object. The addition of this level of indirection is
10499 required to statically allocate the TSD because the TSD cannot
10500 have variable components.
10501 (Expand_Interface_Conversion): Improve the expanded code.
10502 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
10503
10504 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
10505 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
10506 if we are building static dispatch tables then we must not generate
10507 extra code to register the primitive because the dispatch table will
10508 be built at the end of the library package; otherwise we notify that
10509 we cannot build the static dispatch table.
10510
105112007-09-26 Robert Dewar <dewar@adacore.com>
10512
10513 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
10514 overlays.
10515
10516 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
10517 (Analyze_Record_Representation_Clause): Suppress junk warning for
10518 missing component clause.
10519 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
10520 tests for controlled type overlay to composites with controlled
10521 components.
10522 (Analyze_Record_Representation_Clause): Add reference for component name
10523
105242007-09-26 Javier Miranda <miranda@adacore.com>
10525 Gary Dismukes <dismukes@adacore.com>
10526
10527 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
10528 for thunks associated with interface types.
10529
10530 * einfo.ads: Improve documentatation of Is_Internal
10531 (Is_Thunk): New attribute applicable to subprograms. True for thunks
10532 associated with interface types.
10533 Extensive comment fixes regarding flags that appear in all entities. The
10534 documentation is now consistent for all such flags (there were a number
10535 of errors in the documentation in this regard).
10536
10537 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
10538
10539 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
10540 of these procedures are passed a function call that already has
10541 build-in-place actuals (testing new flag
10542 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
10543 the case where processing continues.
10544 (Expand_Call): If the call is generated from a thunk body then we
10545 propagate the extra actuals associated with the accessibility
10546 level of the access type actuals.
10547
10548 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
10549 of each extra formal of a protected operation to reference the
10550 corresponding extra formal of the subprogram denoted by the
10551 operation's Protected_Body_Subprogram.
9e81dbc7 10552
68b72a44
AC
10553 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
10554 N_Function_Call nodes.
10555
105562007-09-26 Robert Dewar <dewar@adacore.com>
10557
10558 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
10559
10560 * debug.adb: Add d.s flag.
10561
105622007-09-26 Gary Dismukes <dismukes@adacore.com>
10563
10564 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
10565 debug variable so that it won't be initialized when pragma
10566 Initialize_Scalars is in effect.
10567
105682007-09-26 Gary Dismukes <dismukes@adacore.com>
10569
10570 * freeze.adb (Freeze_Entity): Remove check for preelaborable
10571 initialization of a full view. This is moved to
10572 Analyze_Package_Specification.
10573
10574 * sem_ch7.adb (Analyze_Package_Specification): Add check for
10575 preelaborable initialization of a full view in entity loop.
10576 (Uninstall_Declarations): If entity is a use-visible compilation unit,
10577 its child units are use-visible only if they are visible child units.
10578
10579 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
10580 whether an expression can be used within a type declaration that
10581 requires preelaborable init.
10582 (Check_Components): Replace inline code that does partial checking for
10583 preelaborable default expressions with call to
10584 Is_Preelaborable_Expression.
10585 (Has_Preelaborable_Initialization): In the case of a generic actual
10586 subtype, (that is, Is_Generic_Actual is True), return the result of
10587 applying Has_Preelaborable_Initialization to the generic actual's base
10588 type.
10589
105902007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
10591
10592 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
10593 call to Jan_1_Day _Of_Week to optimize its performance.
10594 (Is_Leap): Move the routine to the scope of Week_In_Year.
10595 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
10596 weekday on which January 1 falls of Year - 1 and Year + 1. This function
10597 avoids calling Time_Of and Split, thus making it more efficent.
10598 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
10599
10600 * g-calend.ads (Week_In_Year): Change comment to reflect new
10601 implementation.
10602
106032007-09-26 Emmanuel Briot <briot@adacore.com>
10604
10605 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
10606 Command_Line): New types
10607 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
10608 support for defining how switches can be grouped on a command line (as
10609 is the case for -gnatw... for GNAT), and how simple switches can be
10610 used as aliases for more complex switches (-gnatwa is same as
10611 -gnatwbcef...)
10612 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
10613 (Start, Current_*): New subprograms
10614 Added support for parsing an array of strings in addition to the real
10615 command line.
10616 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
10617 be moved from the body to the private part of the spec.
10618 (*): All subprograms now have an extra parameter with default value to
10619 specify which parser should be used. For backward compatibility, it
10620 defaults to parsing the command line of the application. They were also
10621 modified to properly handle cases where each of the argument does not
10622 start at index 1 (which is always true for Ada.Command_Line, but not
10623 when processing any Argument_List).
10624 (Free): New subprogram
10625 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
10626 Argument): New subprograms
10627 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
10628 special characters like ':', '=',... are now handled in a single place,
10629 which makes the code more extensible eventually.
10630 (Getopt, Full_Switch): When the switch was returned as part of the
10631 special character '*', make sure it is prepended by the switch character
10632 ('-' in general), so that the application knows whether "foo" or "-foo"
10633 was specified on the command line.
10634
106352007-09-26 Florian Villoing <villoing@adacore.com>
10636
10637 * g-dirope.adb (Remove_Dir): In case we are removing directories
10638 recursively, make sure that if an exception is raised during the
10639 processing, the current working directory is reset to its initial
10640 value before propagating the exception.
10641
106422007-09-26 Vincent Celier <celier@adacore.com>
10643
10644 * gnatbind.adb: If there are several ALI files specified and there is
10645 a main program to bind, the first ALI is expected to contain the main
10646 subprogram and the names of the binder generated files will be derived
10647 from the first ALI file name.
10648 (Gnatbind): Fix insertion character in invocation of Error_Msg
10649
106502007-09-26 Vincent Celier <celier@adacore.com>
10651
10652 * gnatcmd.adb (Check_Files): Do not include sources that have been
10653 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
10654
106552007-09-26 Ed Schonberg <schonberg@adacore.com>
10656
10657 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
10658 information about each of its index types, following the type
10659 reference for its component type.
10660
106612007-09-26 Vincent Celier <celier@adacore.com>
10662
10663 * make.adb: (Kill): New procedure (__gnat_kill imported)
10664 (Running_Compile, Outstanding_Compiles): Global variables that
10665 were previously local to procedure Compile_Sources.
10666 (Sigint_Intercepted): Send signal SIGINT to all outstanding
10667 compilation processes.
10668
10669 (Gnatmake): If project files are used, create the mapping of all the
10670 sources, so that the correct paths will be found.
10671
10672 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
10673
106742007-09-26 Vincent Celier <celier@adacore.com>
10675
10676 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
10677
10678 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
10679 Replace components Compiler_Min_Options and Binder_Min_Options with
10680 Compiler_Required_Switches and Binder_Required_Switches in record
10681 Language_Config.
10682 Remove components Default_Language and Config in Project_Tree_Data,
10683 no longer used.
10684
10685 * prj-attr.adb: New attributes Required_Switches (<language>) in
10686 packages Compiler and Binder.
10687
10688 * prj-nmsc.adb: Major rewrite of the processing of configuration
10689 attributes for gprbuild. No impact on GNAT tools.
10690
10691 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
10692 process configuration attributes: this is done in Prj.Nmsc.Check.
10693 (Recursive_Process): Make a full copy of packages inherited from project
10694 being extended, instead of a shallow copy.
10695 (Process_Project_Tree_Phase_1): New procedure
10696 (Process_Project_Tree_Phase_1): New procedure
10697 (Process): Implementation now uses the two new procedures
10698
10699 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
10700 from the project config, not the tree config that no longer exists.
10701
107022007-09-26 Vincent Celier <celier@adacore.com>
10703
10704 * Make-lang.in: Update dependencies..
10705
107062007-09-26 Vincent Celier <celier@adacore.com>
10707
10708 * osint.adb, osint.ads: Minor reformatting
10709
10710 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
10711
107122007-09-26 Gary Dismukes <dismukes@adacore.com>
10713
10714 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
10715 message to cite use of <> in aggregate component associations rather
10716 than wrongly indicating use of limited aggregates.
10717
107182007-09-26 Robert Dewar <dewar@adacore.com>
10719
10720 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
10721 Address_Taken.
10722
107232007-09-26 Ed Schonberg <schonberg@adacore.com>
10724
10725 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
10726 ancestor of the derived type, the operations are inherited from the
10727 primary dispatch table of the parent.
10728 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
10729 when the context is an explicit type conversion.
10730
107312007-09-26 Ed Schonberg <schonberg@adacore.com>
10732
10733 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
10734 rule for qualified expressions properly, to detect improper conversions
10735 and resolve some cases of overloading.
10736
107372007-09-26 Ed Schonberg <schonberg@adacore.com>
10738
10739 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
10740 proper kind of reference to the primitive operation, for better source
10741 navigation.
10742 (Valid_Conversion): A tagged conversion is legal if both operands are
10743 tagged.
10744
107452007-09-26 Robert Dewar <dewar@adacore.com>
10746
10747 * sem_warn.adb (Check_References): Catch more cases of unreferenced
10748 packages.
10749
107502007-09-26 Vincent Celier <celier@adacore.com>
10751
10752 * snames.adb, snames.ads: Change Include_Option to Include_Switches
10753
107542007-09-26 Robert Dewar <dewar@adacore.com>
10755
10756 * s-wchstw.adb: provide messages for run time unit exceptions
10757
10758 * a-witeio.adb: Minor reformatting
10759
10760 * exp_ch13.adb: Minor reformatting
10761
107622007-09-26 Sergey Rybin <rybin@adacore.com>
10763
10764 * vms_data.ads: Revise gnatmetric qualifiers.
10765 Add qualified for the new gnatbind option '-y'
10766
10767 * gnat_ugn.texi: Revise the gnatmetric section.
10768 Add entry for new gnatbind option '-y'.
10769
10770 * gnat_rm.texi: Minor spelling correction.
10771 Document restriction on overlaying controlled types
10772
107732007-09-26 Vincent Celier <celier@adacore.com>
10774
10775 * makegpr.adb (Link_Executables): Do not fail when the root project has
10776 no sources, but is an extending project.
10777
0a86bcc9
EB
107782007-09-25 Eric Botcazou <ebotcazou@adacore.com>
10779
10780 * trans.c: Fix misplaced #define.
10781
b235734c
EB
107822007-09-22 Eric Botcazou <ebotcazou@adacore.com>
10783
10784 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
10785 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
10786
97237784
OH
107872007-09-21 Olivier Hainque <hainque@adacore.com>
10788
10789 * utils.c (type_for_nonaliased_component_p): Return false for
10790 all AGGREGATE_TYPEs.
10791
2adde4ff
EB
107922007-09-17 Eric Botcazou <ebotcazou@adacore.com>
10793
10794 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
10795 object covered by 13.3(19) volatile.
10796
b693daa7
EB
107972007-09-12 Eric Botcazou <ebotcazou@adacore.com>
10798
10799 PR ada/26797
10800 PR ada/32407
10801 * utils.c (unchecked_convert): Use a subtype as the intermediate type
10802 in the special VIEW_CONVERT_EXPR case.
10803
82da9a90
AC
108042007-09-12 Robert Dewar <dewar@adacore.com>
10805
10806 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
10807
10808 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
10809 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
10810 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
10811 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
10812 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
10813 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
10814 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
160c5065 10815 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9e81dbc7
AS
10816 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
10817 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
10818 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
10819 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
10820 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
10821 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
10822 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
10823 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
82da9a90
AC
10824 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
10825 pragma Compiler_Unit and adds it to relevant library units.
10826
108272007-09-12 Ed Schonberg <schonberg@adacore.com>
10828
10829 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
10830 a box need not correspond to any component.
10831
108322007-09-12 Robert Dewar <dewar@adacore.com>
10833
10834 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
10835 the tasking version of the Ada run time when foreign threads are
10836 present and there are no explicit Ada tasks or tasking constructs.
10837
10838 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
10839
108402007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
10841
10842 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
10843 the usage of switch -y.
10844
10845 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
10846 when switch -y is present.
10847
10848 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
10849 leap seconds in Ada.Calendar and its children.
10850
108512007-09-12 Jose Ruiz <ruiz@adacore.com>
10852
10853 * a-extiti.ads (Timer): The discriminant is a "not null access
10854 constant" in the Reference Manual.
10855 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
10856
108572007-09-12 Robert Dewar <dewar@adacore.com>
10858
10859 * a-swuwha.adb: Remove junk RM header
10860
108612007-09-12 Vincent Celier <celier@adacore.com>
10862
10863 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
10864 indicator
10865
10866 * g-bytswa.ads: Minor reformatting
10867
108682007-09-12 Thomas Quinot <quinot@adacore.com>
10869
9e81dbc7 10870 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
82da9a90
AC
10871 Add new constant Thread_Blocking_IO, always True by default, set False
10872 on a per-runtime basis.
10873 (Need_Netdb_Buffer): New constant.
10874
108752007-09-12 Arnaud Charlet <charlet@adacore.com>
10876
10877 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
10878 Added renames for corresponding functions in System.Partition_Interface.
10879
108802007-09-12 Doug Rupp <rupp@adacore.com>
10881
10882 * Makefile.in: Remove VMS specific System.CRTL packages which are no
10883 longer needed.
10884
10885 * s-crtl-vms64.ads: Removed.
10886
09528ed9
OH
108872007-09-12 Olivier Hainque <hainque@adacore.com>
10888
10889 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
10890 with discriminant constraints, generalize the code for BIT_FIELDs
10891 to PACKED fields of constant size and propagate DECL_PACKED.
10892
fa89b6ec
EB
108932007-09-11 Eric Botcazou <ebotcazou@adacore.com>
10894
10895 * decl.c (array_type_has_nonaliased_component): New predicate.
10896 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
10897 set the TYPE_NONALIASED_COMPONENT flag on the type.
10898 <E_Array_Subtype>: Likewise.
10899 * gigi.h (type_for_nonaliased_component_p): Declare.
10900 * utils.c (type_for_nonaliased_component_p): New predicate.
10901 (create_field_decl): Invoke the above predicate to set the
10902 DECL_NONADDRESSABLE_P flag on the field.
10903
e18d6a15
JM
109042007-09-11 Javier Miranda <miranda@adacore.com>
10905
10906 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
10907 in library level record type entities if we are generating statically
10908 allocated dispatch tables.
10909
10910 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
10911 importing/exporting the _tag declaration by new code
10912 importing/exporting the dispatch table wrapper. This change allows us
10913 to statically allocate of the TSD.
10914 (Make_DT.Export_DT): New procedure.
10915 (Build_Static_DT): New function.
10916 (Has_DT): New function.
10917
10918 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
10919 True_Constant and Current_Value. Required to statically
10920 allocate the dispatch tables.
10921 (Check_Allocator): Make function iterative instead of recursive.
10922 Also return inner allocator node, when present, so that we do not have
10923 to look for that node again in the caller.
10924
9e94c78f 109252007-09-11 Jan Hubicka <jh@suse.cz>
e89d6010
JH
10926
10927 * misc.c (gnat_expand_body): Kill.
10928 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
10929
281b604e
AC
109302007-09-10 Robert Dewar <dewar@adacore.com>
10931
10932 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
10933 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10934 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10935 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
10936 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
10937 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
10938 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
10939 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
10940 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
10941 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
10942 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
10943 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
10944 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
10945 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
10946 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10947 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
10948 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
10949 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10950 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
10951 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
10952 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10953 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
10954 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
10955 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
10956 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
10957 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10958 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
10959 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
10960 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
10961 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
10962 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
10963 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
10964 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
10965 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
10966 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10967 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
10968 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10969 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
10970 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
10971 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
10972 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
10973 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10974 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10975 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
10976 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10977 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
10978 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
10979 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10980 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10981 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10982 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10983 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
10984 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
10985 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
10986 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10987 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
10988 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
10989 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10990 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
10991 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
10992 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10993 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10994 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
10995 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
10996 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
10997 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
10998 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
10999 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
11000 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
11001 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
11002 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
11003 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
11004 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
11005 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
11006 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
11007 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
11008 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
11009 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
11010 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
11011 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
11012 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
11013 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
11014 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
11015
110162007-09-10 Emmanuel Briot <briot@adacore.com>
11017
11018 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
11019 classes ("[]").
11020
110212007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
11022
11023 * adaint.c (__gnat_translate_vms): new function.
11024
110252007-09-10 Gary Dismukes <dismukes@adacore.com>
11026 Thomas Quinot <quinot@adacore.com>
11027
11028 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
11029 create an abstract subprogram in the case of 'Input. For 'Output we now
11030 create a real spec/body when the type is abstract, since it can
11031 potentially be called.
11032 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
11033 body for 'Output when the type is abstract (only the creation of the
11034 body for 'Input is excluded when the type is abstract).
11035 (Stream_Operation_OK): Add an additional condition in the return
11036 statement, so that False will be returned for TTS_Stream_Input if the
11037 associated tagged type is an abstract extension. Add comments for
11038 return statement.
11039 (Expand_N_Object_Declaration): For the case of a shared passive
11040 variable, insert init proc call only after the shared variable
11041 procedures have been processed, because the IP call needs to undergo
11042 shared passive variable reference expansion, which requires these
11043 procedures to be available (and elaborated).
11044
110452007-09-10 Vincent Celier <celier@adacore.com>
11046
11047 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
11048 parameter Runtime_Project.
11049
110502007-09-10 Ed Schonberg <schonberg@adacore.com>
11051
11052 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
11053 given a box association, the type of the component is discriminated,
11054 and the value of the discriminant is the discriminant of the enclosing
11055 type, retrieve its value from the aggregate itself, where it must have
11056 been supplied.
11057
11058 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
11059 to remove other spurious ambiguities on arithmetic operations involving
11060 literals and addresses, on systems where Address is a visible integer
11061 type, when the operator is called in functional notation.
11062 (Try_Primitive_Operation): Within an instance, a call in prefixed form
11063 is legal when the types match, even if the operation is currently
11064 hidden.
11065
110662007-09-10 Ed Schonberg <schonberg@adacore.com>
11067
11068 * sem_ch12.adb (Build_Local_Package): A formal package with no
11069 associations is legal if all formals have defaults. It is not
11070 equivalent to a formal declared with a box.
11071
110722007-09-10 Sergey Rybin <rybin@adacore.com>
11073
11074 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
11075
110762007-09-10 Sergey Rybin <rybin@adacore.com>
11077
11078 * gnat_ugn.texi: Add description of the new '-lratio' option
11079 Update 7.3.1 section about availability of the feature.
11080
110812007-09-10 Thomas Quinot <quinot@adacore.com>
11082
11083 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
11084 inserted node.
11085
110862007-09-10 Olivier Hainque <hainque@adacore.com>
11087
11088 * Makefile.in: (mips-irix section): Activate build of libgmem.
11089
a56955b1
EB
110902007-09-10 Eric Botcazou <ebotcazou@adacore.com>
11091
11092 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
11093 x87 registers.
11094
c03550f6
EB
110952007-09-10 Eric Botcazou <ebotcazou@adacore.com>
11096
11097 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
11098 a debug renaming declaration specially.
11099
79646678
EB
111002007-09-08 Eric Botcazou <ebotcazou@adacore.com>
11101
11102 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
11103 which a constant renaming is treated as a normal object declaration.
11104 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
11105 the N_Indexed_Component case.
11106 <N_Indexed_Component>: Fall through to above case.
11107 <N_Object_Renaming_Declaration>: Return true for all composite types.
11108
d9e161ce
EB
111092007-09-08 Eric Botcazou <ebotcazou@adacore.com>
11110
11111 * decl.c (make_packable_type): If the new type has been given BLKmode,
11112 try again to get an integral mode for it.
11113
0ab29e91 111142007-09-07 Eric Botcazou <ebotcazou@adacore.com>
6ef9a246 11115
0ab29e91 11116 Re-apply accidentally reverted change:
6ef9a246 11117
0ab29e91 11118 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6ef9a246 11119
0ab29e91 11120 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9e81dbc7 11121 get_action_description_for): Replace _Unwind_Word with _uleb128_t
0ab29e91 11122 and _Unwind_SWord with _sleb128_t.
4b459ae4 11123
38f1f8cb
EB
111242007-09-06 Eric Botcazou <ebotcazou@adacore.com>
11125
11126 * trans.c (convert_with_check): Update call to real_2expN.
11127
db2960f4
SL
111282007-09-05 Sandra Loosemore <sandra@codesourcery.com>
11129
11130 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
11131 * utils.c (end_subprog_body): Likewise.
11132
d70c0bd6
NC
111332007-09-03 Nick Clifton <nickc@redhat.com>
11134
11135 * Make-lang.in: Change copyright header to refer to version 3 of
11136 the GNU General Public License and to point readers at the
11137 COPYING3 file and the FSF's license web page.
11138 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
11139 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
11140 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
11141 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
11142 Likewise.
11143
8a26ebb6
AC
111442007-08-31 Vincent Celier <celier@adacore.com>
11145
11146 PR ada/4720
11147
9e81dbc7 11148 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8a26ebb6
AC
11149 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
11150 (Check_Version_And_Help): New procedure in package Switch to process
11151 switches --version and --help.
11152 Use Check_Version_And_Help in GNAT tools
11153
11154 * make.adb: Ditto.
11155 (Compile_Sources): Make sure that sources that are "excluded" are not
11156 compiled.
11157 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
11158 project file is used.
11159 (Version_Switch): Remove, moved to Switch
11160 (Help_Switch): Remove, moved to Switch
11161 (Display_Version): Remove, moved to Switch
11162
11163 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
11164 package Switch to process switches --version and --help.
11165 (Display_Version): New procedure
11166
11167 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
11168
111692007-08-31 Javier Miranda <miranda@adacore.com>
11170
11171 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
11172 internal tags.
11173
111742007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
11175
11176 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
11177 (Mark_Non_Null): If the node for which we just generated an access check
11178 is a reference to an *in* parameter and the reference appears in the
11179 declarative part of a subprogram body, mark the node as known non null.
11180
111812007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
11182
11183 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
11184 structure of E_Exception to reflect the new flag.
11185 (Is_Raised, Set_Is_Raised): New inlined routines.
11186 Update the usage of available flag to reflect the addition of Is_Raised.
11187 (Is_Raised, Set_Is_Raised): Bodies of new routines.
11188 (Write_Entity_Flags): Write the status of flag Is_Raised.
11189 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
11190 spurious ambiguities when integer literals appear in the context of an
11191 address type that is a visible integer type.
11192
11193 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
11194 exceptions never being raised.
11195 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
11196 explicitly raised.
11197
111982007-08-31 Javier Miranda <miranda@adacore.com>
11199
11200 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
11201 statement when compiling under restriction No_Exceptions_Proparation.
11202
112032007-08-31 Ed Schonberg <schonberg@adacore.com>
11204
11205 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
11206 initialization aggregate for the type, generate itype references for
11207 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
11208
112092007-08-31 Gary Dismukes <dismukes@adacore.com>
11210
11211 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
11212 library-level package renaming, pass the declaration associated with
11213 the renaming's special debug variable to Qualify_Entity_Names to ensure
11214 that its encoded name is properly qualified.
11215
11216 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
11217 occurring in the list of entities to qualify, and do not attempt to
11218 traverse an entity list in that case. Variables associated with
11219` library-level package renamings can now occur in the table.
11220
11221 * exp_dbug.ads: Revise documentation of the encoding for renaming
11222 declarations.
11223
112242007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11225
11226 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
11227 access type points to an unconstrained array.
11228
112292007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
11230
9e81dbc7 11231 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8a26ebb6
AC
11232 conversion.
11233
11234 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
11235 simple redundant qualifications. The check is performed whenever the
11236 expression is a non-overloaded identifier.
11237 (Resolve_Type_Conversion): Enchance the redundant type conversion check
11238 to include loop parameters.
11239 (Valid_Conversion): Avoid generation of spurious error message.
11240
112412007-08-31 Bob Duff <duff@adacore.com>
11242
11243 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
11244 concatenations of string literals into a single literal, in order to
11245 avoid very deep recursion in the front end, which was causing stack
11246 overflow.
11247
11248 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
11249 string, and the right operand is a string literal (the case of "" &
11250 "..."), optimize by avoiding copying the right operand -- just use the
11251 value of the right operand directly.
11252
11253 * stringt.adb (Store_String_Chars): Optimize by growing the
11254 String_Chars table all at once, rather than appending characters one by
11255 one.
11256 (Write_String_Table_Entry): If the string to be printed is very long,
11257 just print the first few characters, followed by the length. Otherwise,
11258 doing "pn(n)" in the debugger can take an extremely long time.
11259
11260 * sem_prag.adb (Process_Interface_Name): Replace loop doing
11261 Store_String_Char with Store_String_Chars.
11262
112632007-08-31 Vincent Celier <celier@adacore.com>
11264
11265 * prj-attr.adb: Add new attribute Excluded_Source_Files
11266
11267 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
11268 Locally_Removed_Files.
11269
11270 * snames.ads, snames.adb: New standard name Excluded_Source_Files
11271
112722007-08-31 Ed Schonberg <schonberg@adacore.com>
11273
11274 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
11275 clauses of subunits, ignore limited_with_clauses that are illegal and
11276 have not been fully analyzed.
11277
112782007-08-31 Ed Schonberg <schonberg@adacore.com>
11279
11280 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
11281 flag, for effiency. It is called when analyzing arithmetic operators
11282 and also for actuals in calls that are universal_integers. The flag is
11283 set for the predefined type address, and for any type or subtype
11284 derived from it.
11285
11286 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
11287 Universal_Integer, when the formal is a descendent of address and the
11288 call appears in user code.
11289 (Analyze_Selected_Component): if the prefix is a private extension, the
11290 tag component is visible.
11291
11292 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
11293 entity flag.
11294
112952007-08-31 Robert Dewar <dewar@adacore.com>
11296
11297 * s-fileio.adb (Open): Normalize file name to lower case in non-case
11298 sensitive file name systems to avoid unexpected mismatch in Vista.
11299
113002007-08-31 Vincent Celier <celier@adacore.com>
11301
11302 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
11303
113042007-08-31 Vincent Celier <celier@adacore.com>
11305
11306 * symbols-vms.adb (Initialize): Read symbol files with continuation
11307 lines
11308 (Finalize): If symbol is long, split the line
11309
113102007-08-31 Vincent Celier <celier@adacore.com>
11311
11312 * fmap.ads: Minor comment updates
11313
113142007-08-31 GNAT Script <nobody@adacore.com>
11315
11316 * Make-lang.in: Makefile automatically updated
11317
113182007-08-31 Bob Duff <duff@adacore.com>
11319
11320 * sinfo.ads: Minor comment fix.
11321
113222007-08-31 Thomas Quinot <quinot@adacore.com>
11323
11324 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
11325 with implementation.
11326 Documentation cleanup only.
11327
113282007-08-31 Sergey Rybin <rybin@adacore.com>
11329
11330 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
11331 gnatpp '--separate-stmt-name' option.
11332 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
11333 option.
11334
11335 * gnat_ugn.texi: Add description for the new gnatpp
11336 '--separate-stmt-name' and '--use-on-new-line' options.
11337
22d2aa96
BE
113382007-08-31 Ben Elliston <bje@au.ibm.com>
11339
11340 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
11341 when compiling for powerpc64-*-linux.
11342 * system-linux-ppc64.ads: New file.
11343
51743df8
KW
113442007-08-22 Krister Walfridsson <cato@df.lth.se>
11345
11346 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
11347 NetBSD.
11348
ac7d7749
KG
113492007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11350
11351 * misc.c (gnat_type_max_size): Constify.
11352
833eddff
AC
113532007-08-16 Gary Dismukes <dismukes@adacore.com>
11354
11355 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
11356 associated with Standard_Debug_Renaming_Type, to be used as the type of
11357 the special variables whose names provide debugger encodings for
11358 renaming declarations.
11359
11360 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
11361 (Set_Debug_Renaming_Link): Change to set Node25.
11362 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
11363 (Write_Field25_Name): Add case for E_Variable to output
11364 "Debug_Renaming_Link".
11365 (Write_Field23_Name): Correct the output string for "Limited_View".
11366
11367 * exp_dbug.adb: Add with and use of Tbuild.
11368 (Debug_Renaming_Declaration): Replace creation of an enumeration type
11369 and literal with creation of a variable of type
11370 Standard_Debug_Renaming_Type whose name encodes both the renamed object
11371 and the entity of the renaming declaration.
11372 (Qualify_Entity_Name): Add the delayed qualification of the entity name
11373 part of the name of a variable that has a Debug_Renaming_Link.
11374
11375 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
11376 special type to be associated with variables that provide debugger
11377 encodings for renaming declarations.
11378
113792007-08-16 Gary Dismukes <dismukes@adacore.com>
11380 Ed Schonberg <schonberg@adacore.com>
11381 Javier Miranda <miranda@adacore.com>
11382
11383 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
11384 ancestor part given by an aggregate to test for an unchecked conversion,
11385 since this can occur in some cases when the ancestor part is a function
11386 call, and we don't want to fall into the recursive call to this
11387 procedure in that case.
11388
11389 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
11390 stream attributes on limited types to account for user-specified
11391 attributes as well as whether Input (resp. Output) becomes available
11392 due to Read (resp. Write) being available for the type. Change Boolean
11393 variable to the more accurate name
11394 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
11395 double-"not" predicate at beginning of return statement to more
11396 understandable form.
11397
11398 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
11399 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
11400 in a block statement and use that as the first statement of the
11401 expanded return rather than incorrectly using the handled sequence as
11402 the first statement.
11403
11404 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
11405 operation, generate an explicit freeze node for it rather than
11406 generating extra formals, to ensure that gigi has the proper order of
11407 elaboration for anonymous subtypes in the signature of the subprograms.
11408 (Build_In_Place_Formal): Move assertion to beginning of loop.
11409 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
11410 applied to a function call (occurs for some cases of 'Input).
11411 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
11412 applied to a function call (occurs for some cases of 'Input).
11413
11414 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
11415 2005, generate an extended return statement enclosing the result object
11416 and 'Read call.
11417
11418 * freeze.adb (Freeze_Record_Type): Extend the current management of
11419 components that are access type with an allocator as default value: add
11420 missing support to the use of qualified expressions of the
11421 allocator (which also cause freezing of the designated type!)
11422 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
11423 dispatching operation, since extra formals may be needed by calls to
11424 build-in-place functions (such as stream 'Input).
11425
11426 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
11427 formals for 'Constrained and accessibility level in the case of a
11428 predefined dispatching operation.
11429
11430 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
11431 point, no need to find the parent node.
11432
114332007-08-16 Javier Miranda <miranda@adacore.com>
11434
11435 * exp_attr.adb (Attribute_Priority): Add missing support for entries
11436 and entry barriers.
11437
114382007-08-16 Javier Miranda <miranda@adacore.com>
11439
11440 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
11441 is not really required and can introduce regression with the debugger.
11442 The original problem is fixed with the patch written for checks.adb.
11443
114442007-08-16 Thomas Quinot <quinot@adacore.com>
11445
11446 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
11447 Range_Check on Allocated_Table.
11448
114492007-08-16 Vincent Celier <celier@adacore.com>
11450
11451 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
11452 Including_Non_Switch set to False.
11453 (Gnatmake): For the compiler, call Test_If_Relative_Path with
11454 Including_Non_Switch set to False.
11455
11456 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
11457 parameter Including_Non_Switch, defaulted to True. When
11458 Including_Non_Switch is False, options that are not switches and
11459 appear as relative path are not converted to absolute paths.
11460
114612007-08-16 Nicolas Roche <roche@adacore.com>
11462
11463 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
11464 makefiles
11465
11466 * Make-lang.in: Update dependencies
11467
114682007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
11469
11470 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
11471 currently inspected is a selected component, retrieve the entity of
11472 its selector.
11473 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
11474 from the immediate ancestor of Main_Unit_Entity.
11475 (Install_Limited_Withed_Unit): Do not install the limited view of
11476 package P if P is reachable through an ancestor chain from package C
11477 and C also has a with clause for P in its body.
11478 (Has_Limited_With_Clause): New routine.
11479 (Has_With_Clause): New routine.
11480
114812007-08-16 Ed Schonberg <schonberg@adacore.com>
11482
11483 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
11484 generic for an enclosing instance is a global reference, even though
11485 its scope is the enclosing instance.
11486
114872007-08-16 Gary Dismukes <dismukes@adacore.com>
11488 Javier Miranda <miranda@adacore.com>
11489
11490 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
11491 initialize a limited object.
11492 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
11493 13/2 and 14/2.
11494 Make sure Has_Complex_Representation is inherited by derived type.
11495
114962007-08-16 Robert Dewar <dewar@adacore.com>
11497
11498 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
11499 exception case
11500
115012007-08-16 Ed Schonberg <schonberg@adacore.com>
11502
11503 * sem_disp.adb (Check_Dispatching_Operation): If the operation
11504 implements an operation inherited from a progenitor interface, verify
11505 that they are subtype-conformant.
11506
115072007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
11508 Bob Duff <duff@adacore.com>
11509 Nicolas Setton <setton@adacore.com>
11510
11511 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
11512 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
11513 the statement which is being resolved comes from a predefined library
11514 unit, all non-predefined library interpretations are skipped.
11515 (Resolve_Op_Concat): If string concatenation was folded in the parser,
11516 but the "&" is user defined, give an error, because the folding would
11517 be wrong.
11518
11519 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
11520 the parser has folded a long sequence of concatenations of string
11521 literals.
11522
11523 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
11524 and "JMP_BUF" variables as artificial.
11525 (N_String_Literal): Do not use alloca for very long string literals. Use
11526 xmalloc/free instead. Otherwise the stack might overflow.
11527
11528 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
11529 compiler.
11530
115312007-08-16 Vincent Celier <celier@adacore.com>
11532
11533 * vms_conv.adb (Process_Argument): Ensure that project related options
11534 are not put in the -cargs section when using GNAT COMPILE.
11535
115362007-08-16 Robert Dewar <dewar@adacore.com>
11537
11538 * gnat_ugn.texi: Add note on preprocessing (output file not written)
11539
115402007-08-16 Thomas Quinot <quinot@adacore.com>
11541
11542 * a-tags.adb: Minor reformatting.
11543
115442007-08-16 Bob Duff <duff@adacore.com>
11545
11546 * sem_type.ads, sem_ch4.adb: Minor reformatting.
11547
ab6328d0
AC
115482007-08-14 Thomas Quinot <quinot@adacore.com>
11549
9e81dbc7 11550 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
ab6328d0
AC
11551 s-osinte-interix.ads, system-interix.ads: Removed.
11552
115532007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11554
11555 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
11556 calls to Check_Within_Time_Bounds.
11557 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
11558 (Difference): Account for possible rounding of the resulting difference
11559
115602007-08-14 Robert Dewar <dewar@adacore.com>
11561
11562 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
11563 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
11564 s-osinte-solaris.adb, s-osinte-solaris.ads,
11565 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
11566
11567 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
11568 switch -gnatyS. Enable -gnatyS in GNAT style check mode
11569
115702007-08-14 Robert Dewar <dewar@adacore.com>
11571 Ed Schonberg <schonberg@adacore.com>
11572
9e81dbc7 11573 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
ab6328d0
AC
11574 Suppress unmodified in-out parameter warning in some cases
11575 This patch is a also fairly significant change to the way suppressible
11576 checks are handled.
11577
11578 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
11579 needed for access to concurrent record types generated by the expander.
11580 (Generate_Range_Check): When generating a temporary to capture the
11581 value of a conversion that requires a range check, set the type of the
11582 temporary before rewriting the node, so that the type is always
11583 properly placed for back-end use.
11584 (Apply_Float_Conversion_Check): Handle case where the conversion is
11585 truncating.
11586 (Get_Discriminal): Code reformatting. Climb the scope stack looking
11587 for a protected type in order to examine its discriminants.
11588
115892007-08-14 Robert Dewar <dewar@adacore.com>
11590 Gary Dismukes <dismukes@adacore.com>
11591 Ed Schonberg <schonberg@adacore.com>
11592 Thomas Quinot <quinot@adacore.com>
11593
9e81dbc7 11594 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
ab6328d0
AC
11595 a-stwisu.adb, a-strsup.adb: Fix warnings for range
11596 tests optimized out.
11597
11598 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
11599 (Get_Allocator_Final_List): For the case of an anonymous access type
11600 that has a specified Associated_Final_Chain, do not go up to the
11601 enclosing scope.
11602 (Expand_N_Type_Conversion): Test for the case of renamings of access
11603 parameters when deciding whether to apply a run-time accessibility
11604 check.
11605 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
11606 aggregate code before allocator, and ahead of declaration for
11607 temporary, to prevent access before elaboration when the allocator is
11608 an actual for an access parameter.
11609 (Expand_N_Type_Conversion): On an access type conversion involving an
11610 access parameter, do not apply an accessibility check when the
11611 operand's original node was an attribute other than 'Access. We now
11612 create access conversions for the expansion of 'Unchecked_Access and
11613 'Unrestricted_Access in certain cases and clearly accessibility should
11614 not be checked for those.
11615
11616 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
11617 includes a type conversion of a packed component that has been expanded,
11618 recover the original expression for the object, and use this expression
11619 in the post-call assignment statement, so that the assignment is made
11620 to the object and not to a back-end temporary.
11621 (Freeze_Subprogram): In case of primitives of tagged types not defined
11622 at the library level force generation of code to register the primitive
11623 in the dispatch table. In addition some code reorganization has been
11624 done to leave the implementation clear.
11625 (Expand_Call): When expanding an inherited implicit conversion,
11626 preserve the type of the inherited function after the intrinsic
11627 operation has been expanded.
11628
11629 * exp_ch2.ads, exp_ch2.adb
11630 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
11631 of an entry formal appearing in an assignment statement does not assign
11632 to the formal.
11633 (Expand_Current_Value): Instead of calling a routine to determine
11634 whether the prefix of an attribute reference should be optimized or
11635 not, prevent the optimization of such prefixes all together.
11636
11637 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
11638 component whose prefix is known to be of an access type is an implicit
11639 dereference and does not assign to the prefix.
11640
116412007-08-14 Ed Schonberg <schonberg@adacore.com>
11642 Robert Dewar <dewar@adacore.com>
11643
11644 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
11645 itype is visited, make an entry into table to link associated node and
11646 new itype.
11647 Add comments and correct harmless error in Build_NCT_Hash_Tables
11648 (Array_Aggr_Subtype): Associate each itype created for an index type to
11649 the corresponding range construct, and not to the aggregate itself. to
11650 maintain a one-to-one correspondence between itype and its associated
11651 node, to prevent errors when complex expression is copied.
11652 Fix mishandling of multiple levels of parens
11653
11654 * sem_aggr.adb: Create a limited view of an incomplete type, to make
11655 treatment of limited views uniform for all visible declarations in a
11656 limited_withed package.
11657 (New_Copy_Tree): If hash table is being used and itype is visited,
11658 make an entry into table to link associated node and new itype.
11659 (Resolve_Record_Aggregate): Do not add an others box association for a
11660 discriminated record component that has only discriminants, when there
11661 is a box association for the component itself.
11662
11663 * par-ch4.adb: Fix mishandling of multiple levels of parens
11664
116652007-08-14 Robert Dewar <dewar@adacore.com>
11666
11667 * comperr.adb: Fix problem with suppressing warning messages from gigi
11668
9e81dbc7 11669 * erroutc.ads, erroutc.adb, errout.ads,
ab6328d0
AC
11670 errout.adb (Write_Eol): Remove trailing spaces before writing the line
11671 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11672 possible trailing spaces.
11673 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11674 Fix problem with suppressing warning messages from back end
11675 Improve handling of deleted warnings
11676
9e81dbc7 11677 * gnat1drv.adb:
ab6328d0
AC
11678 Fix problem with suppressing warning messages from back end
11679 Handle setting of Static_Dispatch_Tables flag.
11680
9e81dbc7 11681 * prepcomp.adb:
ab6328d0
AC
11682 Fix problem with suppressing warning messages from back end
11683
11684 * exp_intr.adb: Improve handling of deleted warnings
11685
116862007-08-14 Robert Dewar <dewar@adacore.com>
11687
11688 * debug.adb: Improve -gnatdI to cover all cases of serialization
11689 Add documentation of dZ, d.t
11690
11691 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
11692 serialization.
11693 (Sprint_Node_Actual): Generate new output associated with implicit
11694 importation and implicit exportation of object declarations.
11695
116962007-08-14 Ed Schonberg <schonberg@adacore.com>
11697 Robert Dewar <dewar@adacore.com>
11698 Javier Miranda <miranda@adacore.com>
11699 Gary Dismukes <dismukes@adacore.com>
11700
11701 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
11702 to make treatment of limited views uniform for all visible declarations
11703 in a limited_withed package.
11704 Improve warnings for in out parameters
11705 (Set_Related_Interaface/Related_Interface): Allow the use of this
11706 attribute with constants.
11707 (Write_Field26_Name): Handle attribute Related_Interface in constants.
11708 Warn on duplicate pragma Preelaborable_Initialialization
11709
11710 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
11711 generation of a freezing node to ensure proper management of null
11712 excluding access types in the backend.
11713 (Create_Extra_Formals): Test base type of the formal when checking for
11714 the need to add an extra accessibility-level formal. Pass the entity E
11715 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
11716 originally being done in a couple of cases), to ensure that the
11717 Extra_Formals list gets set on the entity E when the first entity is
11718 added.
11719 (Conforming_Types): Add missing calls to Base_Type to the code that
11720 handles anonymous access types. This is required to handle the
11721 general case because Process_Formals builds internal subtype entities
11722 to handle null-excluding access types.
11723 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
11724 functions that need it, even when not marked Requires_Overriding.
11725 Improve warnings for in out parameters
11726 (Analyze_Function_Return): Warn for disallowed null return
11727 Warn on return from procedure with unset out parameter
11728 Ensure consistent use of # in error messages
11729 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
11730 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
11731 the implicit conversion of the expression done for anonymous access
11732 types. This is required to generate the code of the null excluding
11733 check (if required).
11734
11735 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
11736 A formal parameter is never publicly referenceable outside of its body.
11737 (Check_References): For an unreferenced formal parameter in an accept
11738 statement, use the same warning circuitry as for subprogram formal
11739 parameters.
11740 (Warn_On_Unreferenced_Entity): New subprogram, taken from
11741 Output_Unreferenced_Messages, containing the part of that routine that
11742 is now reused for entry formals as described above.
11743 (Goto_Spec_Entity): New function
11744 (Check_References): Do not give IN OUT warning for dispatching operation
11745 Improve warnings for in out parameters
11746 (Test_Ref): Check that the entity is not undefinite before calling
11747 Scope_Within, in order to avoid infinite loops.
11748 Warn on return from procedure with unset out parameter
11749 Improved warnings for unused variables
11750
117512007-08-14 Robert Dewar <dewar@adacore.com>
11752 Javier Miranda <miranda@adacore.com>
11753 Gary Dismukes <dismukes@adacore.com>
11754
11755 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
11756 (Expand_N_Attribute_Reference): Further unify the handling of the
11757 three forms of access attributes, using common code now for all three
11758 cases. Add a test for the case of applying an access attribute to
11759 an explicit dereference when the context is an access-to-interface
11760 type. In that case we need to apply the conversion to the prefix
11761 of the explicit dereference rather than the prefix of the attribute.
11762 (Attribute_Version, UET_Address): Set entity as internal to ensure
11763 proper dg output of implicit importation.
11764 (Expand_Access_To_Type): Removed.
11765 (Expand_N_Attribute_Reference): Merge the code from the three cases
11766 of access attributes, since the processing is largely identical for
11767 these cases. The substantive fix here is to process the case of a
11768 type name prefix (current instance case) before handling the case
11769 of interface prefixes.
11770
117712007-08-14 Thomas Quinot <quinot@adacore.com>
11772 Ed Schonberg <schonberg@adacore.com>
11773 Javier Miranda <miranda@adacore.com>
11774 Robert Dewar <dewar@adacore.com>
11775
11776 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
11777 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
11778 type that is an anonymous access to controlled object, establish
11779 an associated finalization chain to avoid corrupting the global
11780 finalization list when a dynamically allocated object designated
11781 by such a component is deallocated.
11782 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
11783 functions that need it, even when not marked Requires_Overriding.
11784 (Initialize_Tag): Replace call to has_discriminants by call to
11785 Is_Variable_Size_Record in the circuitry that handles the
11786 initialization of secondary tags.
11787 (Is_Variable_Size_Record): New implementation.
11788 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
11789 Suppress_Initialization pragma for a derived type.
11790 (Is_Variable_Size_Record): New subprogram.
11791 (Build_Offset_To_Top_Functions): New implementation that simplifies the
11792 initial version of this routine and also fixes problems causing
11793 incomplete initialization of the table of interfaces.
11794 (Build_Init_Procedure): Improve the generation of code to initialize the
11795 the tag components of secondary dispatch tables.
11796 (Init_Secondary_Tags): New implementation that simplifies the previous
11797 version of this routine.
11798 (Make_DT): Add parameter to indicate when type has been frozen by an
11799 object declaration, for diagnostic purposes.
11800 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
11801 diagnose attemps to freeze a subprogram when some untagged type of its
11802 profile is a private type whose full view has not been analyzed yet.
11803 (Freeze_Array_Type): Generate init proc for packed array if either
11804 Initialize or Normalize_Scalars is set.
11805 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
11806 constructing the new profile, copy the null_exclusion indicator for each
11807 parameter, to ensure full conformance of the new body with the spec.
11808
11809 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
11810 Create wrappers for constructor functions that need it, even when not
11811 marked Requires_Overriding.
11812 (Covers): Handle properly designated types of anonymous access types,
11813 whose non-limited views are themselves incomplete types.
11814 (Add_Entry): Use an entity to store the abstract operation which hides
11815 an interpretation.
11816 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
11817 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
11818 initialization aggregate.
11819 (Function_Interp_May_Be_Hidden): Rename to
11820 Function_Interp_Has_Abstract_Op.
11821 (Has_Compatible_Type): Remove machinery that skips interpretations if
11822 they are labeled as potentially hidden by an abstract operator.
11823 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
11824 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
11825 (Write_Overloads): Output the abstract operator if present.
11826 (Add_Entry): Before inserting a new entry into the interpretation table
11827 for a node, determine whether the entry will be disabled by an abstract
11828 operator.
11829 (Binary_Op_Interp_May_Be_Hidden): New routine.
11830 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
11831 aggregate.
11832 (Function_Interp_May_Be_Hidden): New routine.
11833 (Has_Compatible_Type): Do not consider interpretations hidden by
11834 abstract operators when trying to determine whether two types are
11835 compatible.
11836 (Has_Hidden_Interp): New routine.
11837 (Set_May_Be_Hidden_Interp): New routine.
11838 (Write_Overloads): Write the status of flag May_Be_Hidden.
11839
118402007-08-14 Ed Schonberg <schonberg@adacore.com>
11841 Javier Miranda <miranda@adacore.com>
11842
11843 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
11844 types declared in the declarative part of a nested package body or in
11845 the proper body of a stub.
11846 (Set_All_DT_Position): Add missing check to avoid wrong assignation
11847 of the same dispatch table slot to renamed primitives.
11848 (Make_Select_Specific_Data_Table): Handle private types.
11849 (Tagged_Kind): Handle private types.
11850 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
11851 output of implicit importation and exportation.
11852 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
11853 first formal of the thunk is always associated with the controlling
11854 type. In addition perform the following code cleanup: remove formal
11855 Thunk_Alias which is no longer required, cleanup evaluation of the
11856 the controlling type, and update the documentation.
11857 Replace occurrence of Default_Prim_Op_Count by
11858 Max_Predef_Prims. Addition of compile-time check to verify
11859 that the value of Max_Predef_Prims is correct.
11860 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
11861 (Make_DT): Add parameter to indicate when type has been frozen by an
11862 object declaration, for diagnostic purposes.
11863 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
11864 construction of statically allocated dispatch tables.
11865 (Make_DT): In case of library-level tagged types export the declaration
11866 of the primary tag. Remove generation of tags (now done by Make_Tags).
11867 Additional modifications to handle non-static generation of dispatch
11868 tables. Take care of building tables for asynchronous interface types
11869 (Make_Tags): New subprogram that generates the entities associated with
11870 the primary and secondary tags of Typ and fills the contents of Access_
11871 Disp_Table. In case of library-level tagged types imports the forward
11872 declaration of the primary tag that will be declared later by Make_DT.
11873 (Expand_Interface_Conversion): In case of access types to interfaces
11874 replace an itype declaration by an explicit type declaration to avoid
11875 problems associated with the scope of such itype in transient blocks.
11876
118772007-08-14 Robert Dewar <dewar@adacore.com>
11878 Ed Schonberg <schonberg@adacore.com>
11879 Javier Miranda <miranda@adacore.com>
11880
9e81dbc7 11881 * exp_util.ads, exp_util.adb:
ab6328d0
AC
11882 This patch replaces a number of occurrences of explicit tests for N_Null
11883 with calls to Known_Null. This improves tracking of null values, since
11884 Known_Null also catches null constants, and variables currently known to
11885 be null, so we get better tracking.
11886 (Ensure_Defined): create an itype reference only in the scope of the
11887 itype.
11888 (Side_Effect_Free): A selected component of an access type that
11889 denotes a component with a rep clause must be treated as not
11890 side-effect free, because if it is part of a linked structure its
11891 value may be affected by a renaming.
11892 (Expand_Subtype_From_Expr): For limited objects initialized with build
11893 in place function calls, do nothing; otherwise we prematurely introduce
11894 an N_Reference node in the expression initializing the object, which
11895 breaks the circuitry that detects and adds the additional arguments to
11896 the called function. Bug found working in the new patch for statically
11897 allocated dispatch tables.
11898 (Is_Library_Level_Tagged_Type): New subprogram.
11899 (Remove_Side_Effects): If the expression of an elementary type is an
11900 operator treat as a function call.
11901 (Make_Literal_Range): If the index type of the array is not integer, use
11902 attributes properly to compute the constraint on the resulting aggregate
11903 which is a string.
11904
11905 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
11906 class-wide type whose base type is an incomplete private type, leave
11907 class-wide type unfrozen so that freeze nodes can be generated
11908 properly at a later point.
11909 (Freeze_Entity, array case): Handle case of pragma Pack and component
11910 size attributre clause for same array.
11911
119122007-08-14 Vincent Celier <celier@adacore.com>
11913
11914 * prj.ads, prj.adb: Update Project Manager to new attribute names for
11915 gprbuild.
11916 Allow all valid declarations in configuration project files
11917 (Reset): Initialize all tables and hash tables in the project tree data
11918 Major update of the Project Manager and of the project aware tools,
11919 including gprmake, so that the same sources in the GNAT repository
11920 can be used by gprbuild.
11921 (Slash_Id): Change type to be Path_Name_Type
11922 (Slash): Return a Path_Name_Type instead of a File_Name_Type
11923
11924 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
11925 gprbuild.
11926 Update Project Manager to new attribute names for ghprbuild
11927 Allow all valid declarations in configuration project files
11928 Major update of the Project Manager and of the project aware tools,
11929 including gprmake, so that the same sources in the GNAT repository
11930 can be used by gprbuild.
11931
9e81dbc7 11932 * prj-com.ads:
ab6328d0
AC
11933 Major update of the Project Manager and of the project aware tools,
11934 including gprmake, so that the same sources in the GNAT repository
11935 can be used by gprbuild.
11936
11937 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11938 insensitive flag for attributes with optional index.
11939 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11940 array attribute, put the index in lower case.
11941 Update Project Manager to new attribute names for ghprbuild
11942 Allow all valid declarations in configuration project files
11943 Major update of the Project Manager and of the project aware tools,
11944 including gprmake, so that the same sources in the GNAT repository
11945 can be used by gprbuild.
11946
9e81dbc7 11947 * prj-env.ads, prj-env.adb:
ab6328d0
AC
11948 Major update of the Project Manager and of the project aware tools,
11949 including gprmake, so that the same sources in the GNAT repository
11950 can be used by gprbuild.
11951 (Get_Reference): Change type of parameter Path to Path_Name_Type
11952
11953 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
11954 removing '-' from the path to start with the first character of the
11955 next directory.
11956 Major update of the Project Manager and of the project aware tools,
11957 including gprmake, so that the same sources in the GNAT repository
11958 can be used by gprbuild.
11959 Major update of the Project Manager and of the project aware tools,
11960 including gprmake, so that the same sources in the GNAT repository
11961 can be used by gprbuild.
11962
9e81dbc7 11963 * prj-nmsc.ads, prj-nmsc.adb:
ab6328d0
AC
11964 Update Project Manager to new attribute names for ghprbuild
11965 Allow all valid declarations in configuration project files
11966 (Search_Directories): Detect subunits that are specified with an
11967 attribute Body in package Naming. Do not replace a source/unit in the
11968 same project when the order of the source dirs are known. Detect
11969 duplicate sources/units in the same project when the order of the
11970 source dirs are not known.
11971 (Check_Ada_Name): Allow all identifiers that are not reserved words
11972 in Ada 95.
11973 Major update of the Project Manager and of the project aware tools,
11974 including gprmake, so that the same sources in the GNAT repository
11975 can be used by gprbuild.
11976 (Look_For_Sources): If the list of sources is empty, set the object
11977 directory of non extending project to nil.
11978 Change type of path name variables to be Path_Name_Type
11979 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
11980 otherwise creating missing directories will fail.
11981
9e81dbc7 11982 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
ab6328d0
AC
11983 prj-part.ads, prj-part.adb:
11984 Major update of the Project Manager and of the project aware tools,
11985 including gprmake, so that the same sources in the GNAT repository
11986 can be used by gprbuild.
11987
11988 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
11989 insensitive flag for attributes with optional index.
11990 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
11991 array attribute, put the index in lower case.
11992 (Parse_Variable_Reference): Allow the current project name to be used in
11993 the prefix of an attribute reference.
11994
11995 * prj-util.ads, prj-util.adb
11996 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
11997 defaulted to False. When True, always check against indexes in lower
11998 case.
11999
9e81dbc7 12000 * snames.ads, snames.h, snames.adb:
ab6328d0
AC
12001 Update Project Manager to new attribute names for gprbuild
12002 Allow all valid declarations in configuration project files
12003
120042007-08-14 Robert Dewar <dewar@adacore.com>
12005 Ed Schonberg <schonberg@adacore.com>
12006
12007 * opt.ads: Warning for non-local exception propagation now off by
12008 default
12009 New switch -gnatI to disable representation clauses
12010 Implement new pragma Implicit_Packing
12011
9e81dbc7 12012 * usage.adb:
ab6328d0
AC
12013 Warning for non-local exception propagation now off by default
12014 Add warning for unchecked conversion of pointers wi different
12015 conventions.
12016 New switch -gnatI to disable representation clauses
12017
12018 * usage.adb: new switch -gnatyS
12019
12020 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
12021 note that aggregates of anonymous array types are not flagged.
12022 -gnatwc now includes membership tests optimized away
12023 -gnatw.x warnings are now off by default
12024 Added conditional compilation Appendix
12025 Add documentation of -gnatI
12026 Add documentation for new -gnatyS style check
12027 Update documentation about SAL and auto-init on Windows.
12028
9e81dbc7 12029 * gnat_rm.texi:
ab6328d0
AC
12030 Add documentation for pragma Check_Name and 'Enabled attribute
12031 Document that Eliminate on dispatching operation is ignored
12032 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
12033 Document pragma Main
12034 Document pragma Implicit_Packing
12035
12036 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
12037 different conventions
12038 New switch -gnatI to disable representation clauses
12039
12040 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
12041 recognized, report the invalid characters including "-gnat" instead of
12042 just the first character in the switch.
12043 New switch -gnatI to disable representation clauses
12044 Set Warn_On_Object_Renames_Function true for -gnatg
12045
12046 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
12047 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
12048 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
12049 to switch -aP (add directory to project search dir).
12050
12051 * par-prag.adb: Implement new pragma Implicit_Packing
12052
12053 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
12054 type as having a non-standard representation, to force expansion on
12055 conversion to related types.
12056 (Analyze_Pragma): Warn on misspelled pragma
12057 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
12058 Ensure consistent use of # in error messages
12059 Implement pragma Implicit_Packing
12060
120612007-08-14 Olivier Hainque <hainque@adacore.com>
12062 Eric Botcazou <ebotcazou@adacore.com>
12063
12064 * targtyps.c (get_target_maximum_default_alignment): New function.
12065 Maximum alignment
12066 that the compiler might choose by default for a type or object.
12067 (get_target_default_allocator_alignment): New function. Alignment known
12068 to be honored by the target default allocator.
12069 (get_target_maximum_allowed_alignment): New function. Maximum alignment
12070 we might accept for any type or object on the target.
12071 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
12072
12073 * gigi.h (get_target_maximum_default_alignment): Declare new function.
12074 (get_target_default_allocator_alignment): Likewise.
12075 (get_target_maximum_allowed_alignment): Likewise.
12076
12077 PR ada/19037
12078 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
12079 result of a function call, first try to use a stabilized reference for
12080 a constant renaming too.
12081 (validate_alignment): Use target_maximum_allowed_alignment instead of
12082 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
12083 (gnat_to_gnu_entity): Use common nodes directly.
12084 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
12085 alignment and size for the object.
12086 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
12087 and N_Procedure_Call_Statement.
12088 (takes_address): Rename to lvalue_required_p, add third parameter
12089 'aliased' and adjust recursive calls.
12090 <N_Indexed_Component>: Update 'aliased' from the array type.
12091 <N_Selected_Component>: New case.
12092 <N_Object_Renaming_Declaration>: New Likewise.
12093 (Identifier_to_gnu): Adjust for above changes.
12094 (maybe_stabilize_reference) <CONST_DECL>: New case.
12095
12096 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
12097 between type variants.
12098 (build_simple_component_ref): Likewise.
12099 (build_call_alloc_dealloc): Use target_default_allocator_alignment
12100 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
12101 aligning type circuitry for allocations from the default storage pool.
12102 (build_allocator): Likewise.
12103 (build_simple_component_ref): Manually fold the reference for a
12104 constructor if the record type contains a template.
12105
12106 * utils.c (value_zerop): Delete.
12107 (gnat_init_decl_processing): Emit debug info for common types.
12108 (rest_of_record_type_compilation): If a union contains a field
12109 with a non-constant qualifier, treat it as variable-sized.
12110 (finish_record_type): Give the stub TYPE_DECL a name.
12111 (rest_of_record_type_compilation): Likewise.
12112 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
12113 types are equivalent array types.
12114 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
12115 even if the type is not passed by reference.
12116 (static_ctors, static_dtors): Delete.
12117 (end_subprog_body): Do not record constructors and destructors.
12118 (build_global_cdtor): Delete.
12119 (gnat_write_global_declarations): Do not call build_global_cdtor.
12120
0ab29e91 12121 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
ab6328d0
AC
12122 -fRTS=rtp is specified.
12123 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
12124 specified.
12125
12126 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
12127 of the personality function with SJLJ exceptions.
12128
9e81dbc7 12129 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
ab6328d0
AC
12130 the name of the personality function with SJLJ exceptions.
12131
121322007-08-14 Robert Dewar <dewar@adacore.com>
12133 Ed Schonberg <schonberg@adacore.com>
12134
12135 * par.ads, par.adb: Improve handling of extra right parens.
12136 (Par): Remove flag From_Limited_With_Clause.
12137
12138 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
12139 Improve handling of extra right parens.
12140
121412007-08-14 Robert Dewar <dewar@adacore.com>
12142
12143 * par-tchk.adb (TF_Semicolon): Improve error recovery
12144
121452007-08-14 Robert Dewar <dewar@adacore.com>
12146 Ed Schonberg <schonberg@adacore.com>
12147
12148 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
12149 enumeration type, mark all literals as referenced.
12150 (Eval_Attribute, case 'Image): If the argument is an enumeration
12151 literal and names are available, constant-fold but mark nevertheless as
12152 non-static.
12153 Clean up function names.
12154 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
12155 comment.
12156 (Requires_Simple_Name_Prefix): Removed.
12157
121582007-08-14 Robert Dewar <dewar@adacore.com>
12159 Ed Schonberg <schonberg@adacore.com>
12160
12161 * sem_ch11.adb: Improved warnings for unused variables
12162
12163 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
12164 is a synchronized interface, the derived type is limited.
12165 (Analyze_Object_Declaration): Mark the potential coextensions in the
12166 definition and expression of an object declaration node.
12167 (Build_Derived_Type): For the completion of a private type declaration
12168 with a derived type declaration, chain the parent type's representation
12169 items to the last representation item of the derived type (not the
12170 first one) if they are not present already.
12171 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
12172 object declaration of forward references to tags.
12173 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
12174 subprogram types can appear as access discriminants of synchronized
12175 types.
12176 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
12177 given in prefixed form as a selected component.
12178 (Process_Discriminants): If not all discriminants have defaults, place
12179 error message on a default that is present.
12180 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
12181 extend a synchronized tagged type.
12182 Improved warnings for unused variables
12183 (Is_Visible_Component): Fix a visibility hole on a component inherited
12184 by a private extension when parent is itself declared as a private
12185 extension, and the derivation is in a child unit.
12186 (Find_Hidden_Interface): Move spec from the package body.
12187
121882007-08-14 Robert Dewar <dewar@adacore.com>
12189 Ed Schonberg <schonberg@adacore.com>
12190
12191 * sem_ch5.adb: Improve warnings on redundant assignments
12192
12193 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
12194 parameter
12195 (Is_Synchronized_Tagged_Type): New subprogram that returns true
12196 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
12197 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
12198 is set to False. Improves handling of Known_[Not_]Null.
12199 (Wrong_Type): Special case address arithmetic attempt
12200 (Collect_Abstract_Interfaces): Add new formal to allow collecting
12201 abstract interfaces just using the partial view of private types.
12202 (Has_Abstract_Interfaces): Add new formal to allow checking types
12203 covering interfaces using the partial view of private types.
12204 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
12205 component still needs to be defined in this case, but is never
12206 initialized as VMs are using other dispatching mechanisms.
12207 (Abstract_Interface_List): For a protected type, use base type to get
12208 proper declaration.
12209 Improve warnings on redundant assignments
12210 (Is_Variable): Handle properly an implicit dereference of a prefixed
12211 function call.
12212 (Build_Actual_Subtype): If this is an actual subtype for an
12213 unconstrained formal parameter, use the sloc of the body for the new
12214 declaration, to prevent anomalises in the debugger.
12215
122162007-08-14 Robert Dewar <dewar@adacore.com>
12217
12218 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
12219 dispatching operation
12220
122212007-08-14 Ed Schonberg <schonberg@adacore.com>
12222 Gary Dismukes <dismukes@adacore.com>
12223
9e81dbc7 12224 * exp_aggr.ads,
ab6328d0
AC
12225 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
12226 expanded aggregate code before allocator, and ahead of declaration for
12227 temporary, to prevent access before elaboration when the allocator is
12228 an actual for an access parameter.
12229 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
12230 the TSD and the table of interfaces.
12231 (Convert_To_Assignments): Augment the test for delaying aggregate
12232 expansion for limited return statements to include the case of extended
12233 returns, to prevent creation of an unwanted transient scope.
12234 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
12235 (Expand_Array_Aggregate): Handle aggregates associated with
12236 statically allocated dispatch tables.
12237 (Expand_Record_Aggregate): Handle aggregates associated with
12238 statically allocated dispatch tables.
12239 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
12240 of anonymous access type.
12241
122422007-08-14 Ed Schonberg <schonberg@adacore.com>
12243
12244 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
12245 is a variable that renames a slice, use the variable itself in the
12246 expannsion when the renamed expression itself may be modified between
12247 the declaration of the renaming and the array assignment.
12248
122492007-08-14 Jerome Guitton <guitton@adacore.com>
12250
9e81dbc7
AS
12251 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12252 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
ab6328d0
AC
12253 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
12254 New functions; dummy implementations.
12255
12256 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
12257 functions, used to implement the multi-tasks mode routines on VxWorks.
12258
12259 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
12260 New functions, thin
12261 binding to the VxWorks routines which have changed between VxWorks 5
12262 and 6.
12263 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
12264 which are not callable from a RTP.
12265
12266 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
12267 implemented for the multi-tasks mode on VxWorks 5 and 6.
12268
12269 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
12270
12271 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
12272 functions.
12273
122742007-08-14 Vincent Celier <celier@adacore.com>
12275
9e81dbc7 12276 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
ab6328d0 12277 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9e81dbc7
AS
12278 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
12279 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12280 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
ab6328d0
AC
12281 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
12282 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
12283 procedure.
12284 (Major_Id_Name): New function.
12285 mlib-tgt.ads/mlib.tgt.adb:
12286 (Library_Major_Minor_Id_Supported): New function, default returns True
12287 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
12288 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
12289 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
12290 Implementation of Library_Major_Minor_Id_Supported returns False
12291 clean.adb:
12292 (Clean_Library_Directory): If major/minor ids are supported, clean all
12293 library files.
12294 Major update of the Project Manager and of the project aware tools,
12295 including gprmake, so that the same sources in the GNAT repository
12296 can be used by gprbuild.
12297
122982007-08-14 Olivier Hainque <hainque@adacore.com>
12299
12300 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
12301 (GCC_ZCX_Support): Switch to True.
9e81dbc7 12302
ab6328d0
AC
12303 * s-intman-solaris.adb (Notify_Exception): Call
12304 Adjust_Context_For_Raise before raising, as expected for signal
12305 handlers in general.
9e81dbc7 12306
ab6328d0
AC
12307 * s-intman-posix.adb (Notify_Exception): Remove declaration of
12308 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
12309 to other implementation bodies.
9e81dbc7 12310
ab6328d0
AC
12311 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
12312 be visible by multiple implementation bodies.
9e81dbc7 12313
ab6328d0
AC
12314 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
12315 only for conditions coming from hardware.
12316 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
12317 adjustments to signal context prior to exception raise from signal
12318 handler.
12319 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
12320 mode.
12321 Solaris section: (__gnat_adjust_context_for_raise): New function.
12322 Implementation of the machine context adjustments to perform prior to
12323 raise from a signal handler. Version for both sparc and x86.
12324 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
12325 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
12326 prior to raising as expected for any handler, before possible nested
12327 faults to make sure all the contexts in a chain have been adjusted by
12328 the time we propagate.
12329
123302007-08-14 Pascal Obry <obry@adacore.com>
12331
12332 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
12333 (SYSTEM_INFO): New record.
12334 (SetThreadIdealProcessor): New imported routine needed for supporting
12335 task_info pragma on Windows.
12336
12337 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
12338 info can be applied to the current host.
12339 (Create_Task): Set the ideal processor if information is present.
12340
12341 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
12342 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
12343
123442007-08-14 Olivier Hainque <hainque@adacore.com>
12345
12346 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
12347 stack size and initial stack pointer value for a given task.
12348 (Enter_Task): Get the stack attributes of the task we are entering and
12349 let the stack checking engine know about them.
12350
12351 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
12352 Let the stack-checking engine know about the initial sp value and stack
12353 size associated with the current task.
12354 (Set_Stack_Info): If a stack base has been notified for the current
12355 task, honor it. Fallback to the previous less accurate method otherwise.
12356
12357 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
12358
123592007-08-14 Ed Schonberg <schonberg@adacore.com>
12360
12361 * sem_ch10.adb: Create a limited view of an incomplete type, to make
12362 treatment of limited views uniform for all visible declarations in a
12363 limited_withed package.
12364 Set flag indicating that a subprogram body for a child unit has a
12365 generated spec.
12366 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
12367 separate declaration, remove the unit name from visibility after
12368 compilation, so that environment is clean for subsequent compilations.
12369 (Install_Limited_Context_Clauses): Do not install a
12370 limited_private_with_clause unless the current unit is a body or a
12371 private child unit.
12372 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
12373 in the same fashion.
12374 (Install_Limited_Withed_Unit): Do not install a limited with clause if
12375 it applies to the declaration of the current package body.
12376 (Remove_Private_With_Clauses): If there is a regular with_clause for
12377 the unit, delete Private_With_Clause from context, to prevent improper
12378 hiding when processing subsequent nested packages and instantiations.
12379
123802007-08-14 Jose Ruiz <ruiz@adacore.com>
12381
12382 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
12383 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
12384 representing absolute path names.
12385 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
12386
12387 * cstreams.c (__gnat_full_name for VxWorks): Use
12388 __gnat_is_absolute_path to detect whether we need to add the current
12389 directory to normalize the path.
12390
123912007-08-14 Javier Miranda <miranda@adacore.com>
12392
9e81dbc7 12393 * a-tags.ads,
ab6328d0
AC
12394 a-tags.adb (Displace): Associate a message with the raised CE
12395 exception.
12396 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
12397 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
12398 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
12399 spec.
12400 (Default_Prim_Op_Count): Removed.
12401 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
12402 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
12403 Remove pragma Inline_Always.
12404
12405 * rtsfind.ads (Default_Prim_Op_Count): Removed
12406 (Max_Predef_Prims): New entity
12407 (RE_Expanded_Name): Removed
12408 (RE_HT_Link): Removed
12409 (RE_Iface_Tag): Remmoved
12410 (RE_Ifaces_Table): Removed
12411 (RE_Interfaces_Array): Removed
12412 (RE_Interface_Data_Element): Removed
12413 (RE_Nb_Ifaces): Removed
12414 (RE_RC_Offset): Removed
12415 (RE_Static_Offset_To_Top): Removed
12416
12417 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
12418 formal.
12419 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
12420 Prim_Op_Count by Max_Predef_Prims.
12421
124222007-08-14 Thomas Quinot <quinot@adacore.com>
12423 Vincent Celier <celier@adacore.com>
12424
12425 * binde.adb (Elab_All_Links): Remove unnecessary call to
12426 Generic_Separately_Compiled (if a unit satisfies this predicate, there
12427 won't be an associated Afile).
12428 (Elab_All_Links): Fail if a referenced unit cannot be found
12429
9e81dbc7 12430 * bindgen.adb:
ab6328d0
AC
12431 Fix comments in bindgen regarding consistency checks done in Bcheck:
12432 the checks are made across units within a partition, not across several
12433 partitions.
12434 Fix generation of C binder file for VxWorks.
12435
12436 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
12437 Generic_May_Lack_ALI, more descriptive of the current use of the
12438 predicate, and update documentation.
12439
12440 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
12441 reorganization and documentation update for the case of predefined
12442 library generics (for which we do not reference an Afile).
12443
124442007-08-14 Robert Dewar <dewar@adacore.com>
12445
12446 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
12447 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
12448 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
12449 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
12450 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
12451 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
12452 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
12453 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
12454 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
12455 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
12456 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
12457 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
12458 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
12459 g-altcon.adb: Minor reformatting
12460
12461 ada-tree.h: Delete empty line.
12462
12463 ali.ads: Minor reformatting
12464 Clarification of comments.
12465 Minor spelling correction
12466
12467 * exp_dbug.adb: Add Warnings Off to suppress new warning
12468
12469 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
12470 formal
12471
12472 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
12473 value
12474
12475 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
12476
12477 * a-textio.ads: Reorder the standard input/output/error declarations
12478 for consistency.
12479
12480 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
12481
12482 * par-ch2.adb: Recognize RM specially in errout
12483 Change 'R'M to RM in all error messages
12484
12485 * scng.adb: Recognize RM specially in errout
12486
12487 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
12488 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
12489
12490 * s-direio.adb: Add missing routine header box.
12491
12492 * sem_attr.ads: Add ??? comments
12493
12494 * sem_eval.adb: Recognize RM specially in errout
12495 Change 'R'M to RM in all error messages
12496
12497 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
12498
12499 * s-tasinf.ads: Fix minor comment typo.
12500
12501 * a-cihama.adb: Minor comment addition
12502
12503 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
12504 formal
12505
12506 * s-tasinf-tru64.ads: Fix minor comment typo.
12507
12508 * itypes.ads: Comment update.
12509
12510 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
12511 anymore.
12512
12513 * argv.c: Added protection against null gnat_argv and gnat_envp.
12514
12515 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
12516 warning message when Tolerate_Consistency_Errors is True.
12517
12518 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
12519 Any_Id, as this subprogram is only applicable to *type* entities (it
12520 sets RM_Size). Instead initialize just Esize and Alignment.
12521
125222007-08-14 Bob Duff <duff@adacore.com>
12523
9e81dbc7
AS
12524 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
12525 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12526 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
ab6328d0
AC
12527 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
12528 a-coorse.ads (Next): Applied pragma Inline.
12529 Make all Containers packages Remote_Types (unless they are already
12530 Pure).
12531 (Previous): applied pragma Inline
12532 (Elements_Type): is now a record instead of an array
12533
125342007-08-14 Thomas Quinot <quinot@adacore.com>
12535
12536 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
12537 of Set_Item.
12538 (Set_Item): When the new item is an element of the currently allocated
12539 table passed by reference, save a copy on the stack if we're going
12540 to reallocate. Also, in Table.Set_Item, make sure we test the proper
12541 variable to determine whether to call Set_Last.
12542
12543 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
12544 symbols-vms.adb, symbols-processing-vms-alpha.adb,
12545 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
12546 some occurrences of the pattern
12547 T.Increment_Last;
12548 T.Table (T.Last) := Value;
12549 with a cleaner call to
12550 T.Append (Value);
12551
125522007-08-14 Ed Schonberg <schonberg@adacore.com>
12553 Gary Dismukes <dismukes@adacore.com>
12554 Thomas Quinot <quinot@adacore.com>
12555
12556 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
12557 derived type with interface progenitors use the analyzed formal as the
12558 parent of the actual, to create renamings for all the inherited
12559 operations in Derive_Subprograms.
12560 (Collect_Previous_Instances): new procedure within of
12561 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
12562 unit being loaded, to ensure that the generation of global symbols is
12563 consistent in different compilation modes.
12564 (Is_Tagged_Ancestor): New function testing the ancestor relation that
12565 takes progenitor types into account.
12566 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
12567 traversing over the primitives of the formal and actual types to locate
12568 any abstract subprograms of the actual type that correspond to a
12569 nonabstract subprogram of the formal type's ancestor type(s), and issue
12570 an error if such is found.
12571 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
12572 Instantiate_Package_Body, Instantiate_Subprogram_Body):
12573 Remove bogus guard around calls to Inherit_Context.
12574 (Reset_Entity): If the entity is the selector of a selected component
12575 that denotes a named number, propagate constant-folding to the generic
12576 template only if the named number is global to the generic unit.
12577 (Set_Instance_Env): Only reset the compilation switches when compiling
12578 a predefined or internal unit.
12579
125802007-08-14 Ed Schonberg <schonberg@adacore.com>
12581
12582 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
12583 parameter to determine whether operation applies to the prefix.
12584 (Complete_Object_Operation): If actual has an access type and
12585 controlling formal is not an in_parameter, reject the actual if it is
12586 an access_to_constant type.
12587 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
12588 type, the candidate operations are found in the scope of declaration of
12589 the type, because the type has no primitive subprograms.
12590 (Analyze_Selected_Component): If prefix is class-wide, and root type is
12591 a private extension, only examine visible components before trying to
12592 analyze as a prefixed call.
12593 Change Entity_List to Type_To_Use, for better readability.
12594 (Has_Fixed_Op): Use base type when checking whether the type of an
12595 operator has a user-defined multiplication/division
12596 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
12597 user-defined operators are available for fixed-point types.
12598
125992007-08-14 Thomas Quinot <quinot@adacore.com>
12600 Ed Schonberg <schonberg@adacore.com>
12601
12602 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
12603 formal At_Any_Place indicating, when True, that we want to test for
12604 availability of the stream attribute at any place (as opposed to the
12605 current visibility context only).
12606 (Missing_Read_Write_Attributes): A stream attribute is missing for the
12607 purpose of enforcing E.2.2(8) only if it is not available at any place.
12608 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
12609 when checking the legality of an extension aggregate in a preelaborable
12610 package. Treat the literal null as a valid default expression in a
12611 component declaration for a type with preelaborable initialization.
12612 A limited interface is a legal progenitor for the designated type of a
12613 remote access to class-wide type.
12614
126152007-08-14 Thomas Quinot <quinot@adacore.com>
12616 Ed Schonberg <schonberg@adacore.com>
12617
12618 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
12619 reference): Use correct entity as denoted entity for the selector of
12620 the rewritten node.
12621 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
12622 setting the Referenced_As_LHS flag for entities that are implicitly
12623 dereferenced.
12624 (Find_Type): If the type is an internally generated incomplete type,
12625 mark the full view as referenced, to prevent spurious warnings.
12626 (Find_Selected_Component, Has_Components): Handle properly non-limited
12627 views that are themselves incomplete types.
12628 Handle interfaces visible through limited-with clauses.
12629 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
12630 subprogram generic actual for which we have generated a renaming.
12631 Warn when the renaming introduces a homonym of
12632 the renamed entity, and the renamed entity is directly visible.
12633
126342007-08-14 Ed Schonberg <schonberg@adacore.com>
12635 Hristian Kirtchev <kirtchev@adacore.com>
12636
12637 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
12638 appear in the subtree to the current allocator if it is not a static
12639 coextension.
12640 (Resolve_Allocator): Perform cleanup if resolution has determined that
12641 the allocator is not a coextension.
12642 (Resolve): Skip an interpretation hidden by an abstract operator only
12643 when the type of the interpretation matches that of the context.
12644 (Resolve): When looping through all possible interpretations of a node,
12645 do not consider those that are hidden by abstract operators.
12646 (Resolve_Actuals): When verifying that an access to class-wide object
12647 is an actual for a controlling formal, ignore anonymous access to
12648 subprograms whose return type is an access to class_wide type.
12649 (Resolve_Slice): If the prefix of the slice is a selected component
12650 whose type depends on discriminants, build its actual subtype before
12651 applying range checks on the bounds of the slice.
12652 (Valid_Conversion): In an instance or inlined body, compare root types,
12653 to prevent anomalies between private and public views.
12654 (Resolve): Improve error message for ambiguous fixed multiplication
12655 expressions that involve universal_fixed multiplying operations.
12656
126572007-08-14 Javier Miranda <miranda@adacore.com>
12658 Hristian Kirtchev <kirtchev@adacore.com>
12659
12660 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
12661 location to allow the correct generation of errors in case of
12662 restrictions applied to the expanded code.
12663 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
12664 function if the condition does not reference them.
12665 (Expand_Entry_Body_Declarations): Mark the index constant as having a
12666 valid value.
12667
126682007-08-14 Thomas Quinot <quinot@adacore.com>
8a57e48f 12669 Pablo Oliveira <oliveira@adacore.com>
ab6328d0
AC
12670
12671 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
12672 typecode parameters for a union (in a variant record), remove
12673 extraneous layer of Any wrapping for member label.
12674 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
12675 elabration statements, register the package with the name server
12676 at the beginning, not at the end, of the elaboration statements so
12677 that they can create remote access to subprogram values that designate
12678 remote subprograms from the package.
12679
126802007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12681
12682 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
12683 values to compute the number of seconds since the Unix Epoc in order to
12684 account for Daylight Savings Time. Perform special processing for dates
12685 that are earlier than the Unix Epoc to obtain a negative number.
12686
126872007-08-14 Emmanuel Briot <briot@adacore.com>
12688
12689 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
12690 switches.
12691
126922007-08-14 Eric Botcazou <ebotcazou@adacore.com>
12693
12694 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
12695 binder-generated file is not in Ada.
12696 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
12697 recorded in the ALI file.
12698 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
12699
127002007-08-14 Vincent Celier <celier@adacore.com>
12701
12702 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
12703 (Output_Source): Do nothing if parameter is No_Sdep_Id
12704
12705 * make.adb (Gnatmake): Do not rebuild an archive simply because a
12706 shared library it imports has a later time stamp.
12707 (Check): Resolve the symbolic links in the path name of the object
12708 directory.
12709 Check that the ALI file is in the correct object directory
12710 Check if a file name does not correspond to the mapping of units
12711 to file names.
12712 (Display_Version): New procedure
12713 (Initialize): Process switches --version and --help
12714 Use type Path_Name_Type for path name
12715
127162007-08-14 Paul Hilfinger <hilfinger@adacore.com>
12717
12718 * impunit.adb: Re-organize System.Random_Numbers and
12719 GNAT.Random_Numbers and add to builds.
12720
12721 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
12722
12723 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
12724
12725 * a-assert.ads, a-assert.adb: New files.
12726
127272007-08-14 Gary Dismukes <dismukes@adacore.com>
12728
12729 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
12730 if AAMP_On_Target is True, then the size of the type encompasses two
12731 addresses (a static link and a subprogram address), except in the case
12732 of library-level access types.
12733
127342007-08-14 Vincent Celier <celier@adacore.com>
12735
12736 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
12737 writing the line.
12738 (Write_Eol_Keep_Blanks): New procedure to write a line, including
12739 possible trailing spaces.
12740 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
12741
127422007-08-14 Javier Miranda <miranda@adacore.com>
12743
12744 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
12745 null-excluding access types.
12746
127472007-08-14 Javier Miranda <miranda@adacore.com>
12748
12749 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
12750 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
12751 of private types add missing check on matching interfaces in the
12752 partial and full declarations.
12753 (Analyze_Protected_Type): Code cleanup.
12754 (Analyze_Task_Type): Code cleanup.
12755
127562007-08-14 Javier Miranda <miranda@adacore.com>
12757
12758 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
12759 generated interface thunk.
12760
127612007-08-14 Ed Schonberg <schonberg@adacore.com>
12762
12763 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
12764 obsolescent warning on application of 'Class to an incomplete type.
12765
12766 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
12767 prevent obsolescent warning on application of 'Class to an incomplete
12768 type.
12769
127702007-08-14 Pascal Obry <obry@adacore.com>
12771
12772 * s-fileio.adb (Is_Open): Add check for usability of the underlying
12773 file stream.
12774
127752007-08-14 Cyrille Comar <comar@adacore.com>
12776
12777 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
12778 since it is potentially used in cases implying double finalization of
12779 the same object.
12780
127812007-08-14 Jose Ruiz <ruiz@adacore.com>
12782
12783 * s-tasini.adb (Get_Stack_Info): Move this function to
12784 System.Soft_Links.Tasking because it is common to the full and the
12785 restricted run times.
12786 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
12787 in SSL.Tasking.Init_Tasking_Soft_Links.
12788
12789 * s-solita.adb (Get_Stack_Info): Function moved from
12790 System.Tasking.Initialization because it is common to the full and the
12791 restricted run times.
12792 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
12793
127942007-08-14 Arnaud Charlet <charlet@adacore.com>
12795
12796 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
12797 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
12798 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
12799 parameter.
12800
12801 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
12802 guard to 12K.
12803
128042007-08-14 Gary Dismukes <dismukes@adacore.com>
12805
12806 * s-veboop.adb (SU): New named number initialized to
12807 System.Storage_Unit.
12808 (True_Val): The initialization expression is revised to use SU (=
12809 Storage_Unit) rather than assuming 8 for the component size of an
12810 unpacked Boolean array.
12811
128122007-08-14 Tristan Gingold <gingold@adacore.com>
12813
12814 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
12815
12816 * tb-ivms.c: New file.
12817
12818 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
12819
128202007-08-14 Geert Bosch <bosch@adacore.com>
12821
12822 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
12823 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
12824 Add required linker pragmas for automatically linking with the gnalasup
12825 linear algebra support library, and the systems math library.
12826 Rename cdot to cdotu and zdot to zdotu.
12827 Update header comment to describe purpose of package.
12828
128292007-08-14 Thomas Quinot <quinot@adacore.com>
12830
12831 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
12832 an explicitly specified Associated_Final_Chain, use that list.
12833 (Expand_N_Package_Body): Build dispatch tables of library level tagged
12834 types.
12835 (Expand_N_Package_Declaration): Build dispatch tables of library level
12836 tagged types. Minor code cleanup.
12837
128382007-08-14 Vincent Celier <celier@adacore.com>
12839
12840 * gnatchop.adb (Terminate_Program): Remove exception and use
12841 Types.Terminate_Program instead.
12842
12843 * osint.ads, osint.adb (Current_Exit_Status): New global variable
12844 (Find_Program_Name): Added protection against empty name.
12845 (OS_Exit_Through_Exception): New procedure
12846
12847 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
12848 (OS_Exit_Default): New procedure that contains the previous
12849 implementation of procedure OS_Exit.
12850 (Final_Value): Remove obsolete Interix stuff.
12851
128522007-08-14 Thomas Quinot <quinot@adacore.com>
12853
12854 * g-socket.ads: Reorganize example code so that it also works on
12855 Windows XP.
12856
128572007-08-14 Tristan Gingold <gingold@adacore.com>
12858
12859 * g-trasym.ads: AIX now supports symbolic backtraces.
12860
128612007-08-14 Ed Schonberg <schonberg@adacore.com>
12862
12863 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
12864 units being loaded to detect circularities. A circularity may be
12865 present even if the current chain of pending units to load starts from
12866 a limited_with_clause.
12867
12868 * lib-load.ads: Change profile of Load_Unit to use a with_clause
12869 rather than a boolean flag, in order to detect circularities in
12870 with_clauses.
12871
12872 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
12873 than propagating the From_Limited_With flag, in order to handle
12874 properly circularities involving with_clauses.
12875
128762007-08-14 Nicolas Setton <setton@adacore.com>
12877
12878 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
12879 warnings.
12880
128812007-08-14 Arnaud Charlet <charlet@adacore.com>
12882
12883 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
12884 to build for libgnala.
12885 libgnat: Add rules to build libgnala.a
12886 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
12887 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
12888 Add s-osinte-vxworks-kernel.adb to the target pairs of the
12889 kernel run-time lib for VxWorks 6, which would provide a different
12890 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
12891 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
12892 running ZCX by default.
12893 Add g-sttsne-locking to LynxOS version.
12894 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
12895 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
12896
12897 * system-darwin-x86.ads: New file.
12898
12899 * Make-lang.in: Delete files before copying onto them, so if they are
12900 read-only, the copy won't fail.
12901 Update dependencies
12902
129032007-08-14 Pascal Obry <obry@adacore.com>
12904
12905 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
12906 naming scheme.
12907
129082007-08-14 Vincent Celier <celier@adacore.com>
12909
12910 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
12911 (Gcc): Initialize Gcc_Name at the first call
12912
129132007-08-14 Ed Schonberg <schonberg@adacore.com>
12914
12915 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
12916 with_clauses of the enclosing unit when analyzing the package
12917 specification of a nested instance.
12918
129192007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12920
12921 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
12922 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
12923 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
12924 layout of N_Allocator.
12925
129262007-08-14 Thomas Quinot <quinot@adacore.com>
12927
12928 * rtsfind.adb (Check_RPC): Add PCS version check.
12929
12930 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
12931 (Gnat_Free_Software): New function.
12932
12933 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
12934 the PCS_Version value from s-parint, used to check that it is consistent
12935 with what exp_dist expects.
12936
12937 * s-parint.ads (PCS_Version): New entity for checking consistency
12938 between exp_dist and PCS.
12939
12940 * gen-soccon.c: (SO_REUSEPORT): New constant.
12941
129422007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12943
12944 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
12945 variable Sub_Second to Duration in order to accomodate a larger range
12946 of arithmetic operations.
12947
129482007-08-14 Bob Duff <duff@adacore.com>
12949
12950 * g-sttsne-locking.ads: Move comments from spec to body.
12951 * g-sttsne-locking.adb: Move comments from spec to body.
12952 * g-sttsne-vxworks.ads: Removed.
12953 * g-sttsne-vxworks.adb: Removed.
12954
4862826d
ILT
129552007-08-11 Ian Lance Taylor <iant@google.com>
12956
12957 * misc.c (gnat_get_alias_set): Change return type to
12958 alias_set_type.
12959
4d8a9bfe
KG
129602007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12961
12962 * decl.c, utils2.c: Fix whitespace in last change.
12963
39595763
KG
129642007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12965
12966 * decl.c (compare_field_bitpos): Constify.
12967 * utils2.c (compare_elmt_bitpos): Likewise.
12968
08e7e8cb
AJ
129692007-07-27 Aurelien Jarno <aurelien@aurel32.net>
12970
9e81dbc7 12971 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
08e7e8cb
AJ
12972 anonymous access type.
12973 (pthread_sigmask): Now take an access sigset_t.
12974
9e94c78f 129752007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
83983455 12976
9e81dbc7
AS
12977 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
12978
a8257e58
EB
129792007-06-21 Eric Botcazou <ebotcazou@adacore.com>
12980
12981 PR tree-optimization/25737
12982 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
12983
5be014d5
AP
129842007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12985
12986 * trans.c (Attribute_to_gnu): When subtracting an
12987 offset from a pointer, use POINTER_PLUS_EXPR with
12988 NEGATE_EXPR instead of MINUS_EXPR.
12989 (gnat_to_gnu): Likewise.
12990 * utils.c (convert): When converting between
12991 thin pointers, use POINTER_PLUS_EXPR and sizetype
12992 for the offset.
12993 * utils2.c (known_alignment): POINTER_PLUS_EXPR
12994 have the same semantics as PLUS_EXPR for alignment.
12995 (build_binary_op): Add support for the semantics of
12996 POINTER_PLUS_EXPR's operands.
12997 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
12998
719bb4e3 129992007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
b0464c88 13000
a472f546
EB
13001 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
13002 of get_signed_or_unsigned_type.
b0464c88
RE
13003 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
13004
93e17a25 130052007-06-11 Bob Duff <duff@adacore.com>
9e81dbc7 13006 Thomas Quinot <quinot@adacore.com>
93e17a25
BD
13007
13008 * g-stsifd-sockets.adb (Create): Work around strange behavior of
13009 'bind' on windows that causes 'connect' to fail intermittently, by
13010 retrying the 'bind'.
13011 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13012
1bbf8502
DS
130132007-06-10 Duncan Sands <baldrick@free.fr>
13014
13015 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
13016 than to void, for the fields when making a new fat pointer type.
13017 (gnat_substitute_in_type): Now substitute_in_type.
a472f546 13018 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1bbf8502
DS
13019 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
13020 * utils.c (update_pointer_to): Update fat pointers by updating the
13021 dummy node pointers used for the fields.
13022
ec11296f
AC
130232007-06-06 Thomas Quinot <quinot@adacore.com>
13024 Bob Duff <duff@adacore.com>
13025
9e81dbc7
AS
13026 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
13027 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
ec11296f
AC
13028 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
13029 constant Thread_Blocking_IO, always True by default, set False
13030 on a per-runtime basis.
13031 (Need_Netdb_Buffer): New constant.
13032
13033 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
13034 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
13035 files.
13036
13037 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
13038 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
13039 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
13040 child package Task_Safe_NetDB
13041 (Host_Error_Messages): Add stub body.
13042 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13043
13044 * g-soccon-mingw.ads: Add Windows-specific constants.
13045 (Need_Netdb_Buffer): New constant.
13046 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
13047 wrapper and import inet_addr(3) from the standard sockets library
13048 directly instead.
13049 (In_Addr): Add alignment clause.
13050 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13051
130522007-06-06 Robert Dewar <dewar@adacore.com>
13053
13054 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13055 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
13056 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
13057 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
13058 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
13059 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
13060 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
13061 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
13062 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
13063 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
13064 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
13065 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
13066 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
13067 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
13068 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
13069 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
13070 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
13071 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
13072 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
13073 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
13074 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
13075 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
13076 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
13077 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
13078 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
13079 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
13080 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
13081 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
13082 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
13083 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
13084 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
13085 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
13086 Unchecked_* by Ada.Unchecked_*
13087
130882007-06-06 Robert Dewar <dewar@adacore.com>
13089
13090 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
13091 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
13092 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
13093 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
13094 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
13095 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
13096
13097 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
13098 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
13099 s-tasloc.adb, s-tasloc.ads: New files.
13100
131012007-06-06 Bob Duff <duff@adacore.com>
13102
9e81dbc7 13103 * g-expect-vms.adb:
ec11296f
AC
13104 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
13105 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
13106 (Send_Signal, Close): Raise Invalid_Process if the process id is
13107 invalid.
13108 (Pattern_Matcher_Access): Is now a general access type to be able to
13109 use aliased string.
13110
131112007-06-06 Thomas Quinot <quinot@adacore.com>
13112 Arnaud Charlet <charlet@adacore.com>
13113
a472f546
EB
13114 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
13115 (SIGEMT is now used instead of SIGTERM on AIX).
ec11296f
AC
13116
13117 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
13118 (Time_Slice_Supported): Set to True.
a472f546 13119 Use SIGEMT instead of SIGTERM as SIGADAABORT.
ec11296f
AC
13120
131212007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13122
13123 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
13124 (Time, Time)): Use To_Relative_Time rather than manual calculation to
13125 express the bounds of Duration as Time. Raise Time_Error when the
13126 result is greater or equal to the higher bound of Duration (on the
13127 margin case).
13128 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
13129 Ada_High_And_Leaps.
13130 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
13131 Ada_High_And_Leaps.
13132 ("-" (Time, Time)): Reorder code.
13133 (All_Leap_Seconds): Removed.
13134 (Arithmetic_Operations.Add): Remove sign related kludge.
13135 (Arithmetic_Operations.Difference): Control the leaps seconds processing
13136 with flag Leap_Support.
13137 (Arithmetic_Operations.Subtract): Remove sign related kludge.
13138 (Check_Within_Time_Bounds): New procedure.
13139 (Clock): Control the leap seconds processing with flag Leap_Support.
13140 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
13141 (Formatting_Operations.Split): Control the leap seconds processing with
13142 flag Leap_Support.
13143 (Formatting_Operations.Time_Of): Control the leaps seconds processing
13144 with flag Leap_Support. Adjust the year, month and day (if applicable)
13145 when the value of day seconds designates a new day.
13146 (Split): Use parameter associations for better readability. Integrate
13147 flag Is_Ada_05.
13148 (Time_Of): Use parameter associations for better readability. Integrate
13149 flag Is_Ada_05.
13150
13151 * a-calfor.adb (Split): Use parameter associations for better
13152 readability. Integrate flag Is_Ada_05.
13153 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
13154 better readability. Integrate flag Is_Ada_05.
13155
131562007-06-06 Arnaud Charlet <charlet@adacore.com>
13157
9e81dbc7
AS
13158 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
13159 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
13160 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
13161 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
13162 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
13163 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
13164 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
13165 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
13166 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
ec11296f 13167 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9e81dbc7 13168 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
ec11296f
AC
13169 time when entering this routine to detect a backward clock setting
13170 (manual setting or DST adjustment), to avoid waiting for a longer delay
13171 than needed.
13172 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
13173 Remove handling of deferred priority change, and replace by setting the
13174 task priority directly, as required by AI-188.
13175 Update comments.
13176 (Max_Task_Image_Length): New constant.
13177 Replace Warnings (Off) by Unreferenced pragma, cleaner.
13178 (Dynamic_Priority_Support): Removed, no longer needed.
13179 (Poll_Base_Priority_Change): Ditto.
13180 (Set_Ceiling): Add this procedure to change the ceiling priority
13181 associated to a lock. This is a dummy implementation because dynamic
13182 priority ceilings are not supported by the underlying system.
13183
13184 * a-dynpri.adb (Set_Priority): Take into account case where Target is
13185 accepting a RV with its priority boosted.
13186 Remove handling of deferred priority change, and replace by setting the
13187 task priority directly, as required by AI-188.
13188
13189 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
13190 Succeeded = True.
13191 Remove handling of deferred priority change, and replace by setting the
13192 task priority directly, as required by AI-188.
13193 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
13194 of Self_Id earlier.
13195
13196 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
13197 (Poll_Base_Priority_Change): Removed.
13198 Code clean up: use SSL.Current_Target_Exception.
13199
13200 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
13201 to run as this is a potentially dispatching point.
13202 (Call_Synchronous): Use Local_Defer_Abort.
13203 (Callable): Relax assertion.
13204 (Selective_Wait): Relax assertion in case abort is not allowed.
13205 Remove handling of deferred priority change, and replace by setting the
13206 task priority directly, as required by AI-188.
13207
13208 * s-tasuti.adb (Make_Passive): Adjust assertions.
13209 Remove handling of deferred priority change, and replace by setting the
13210 task priority directly, as required by AI-188.
13211
132122007-06-06 Arnaud Charlet <charlet@adacore.com>
13213
9e81dbc7
AS
13214 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
13215 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13216 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
13217 system-vxworks-mips.ads, system-vxworks-alpha.ads,
13218 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
13219 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
13220 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
13221 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
ec11296f
AC
13222 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
13223 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
13224 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
13225 This patch changes the largest non-binary modulus from 2**31-1 to
13226 2**32-1.
13227 (Compiler_System_Version): Removed, no longer used.
13228 Clean up system files by removing flags only used on a single target.
13229 Also remove obsolete flags, only used during bootstrap from system.ads
13230 (Address): Add a pragma Preelaborable_Initialization.
13231
13232 * system-aix.ads: Ditto.
13233 (GCC_ZCX_Support): Set to true.
13234 Update priority range on AIX and map Ada priorities to target
13235 priorities appropriately for different scheduling policies.
13236
13237 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
13238
132392007-06-06 Vincent Celier <celier@adacore.com>
13240
13241 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
13242 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
13243
9e81dbc7
AS
13244 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
13245 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
13246 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
13247 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
ec11296f 13248 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
a472f546
EB
13249 MLib.Tgt, containing the default versions of the exported subprograms.
13250 For each platform, create a specific version of the body of new child
13251 package MLib.Tgt.Specific that contains only the body of subprograms
13252 that are different from the default.
13253 (Archive_Builder_Append_Options): New function.
ec11296f
AC
13254
132552007-06-06 Matthew Gingell <gingell@adacore.com>
13256
a472f546
EB
13257 * s-osinte-aix.adb: Map Ada priorities to target priorities
13258 appropriately for different scheduling policies.
ec11296f
AC
13259
132602007-06-06 Arnaud Charlet <charlet@adacore.com>
13261
13262 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
13263 its C counterpart.
13264 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9e81dbc7 13265 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
ec11296f
AC
13266
132672007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13268
a472f546
EB
13269 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
13270 Noop on VMS, added for interface commonality.
ec11296f
AC
13271
132722007-06-06 Eric Botcazou <ebotcazou@adacore.com>
13273 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13274 Olivier Hainque <hainque@adacore.com>
13275
13276 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
13277 renamed expression of a full renaming at toplevel.
13278 (gnat_to_gnu_entity, case object): If not defining, do not look inside
13279 the values the constant is initialized to if it is an N_Allocator.
13280 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
13281 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
13282 (make_aligning_type): Accept an extra ROOM argument for storage to be
13283 made available before the aligned field, and an extra BASE_ALIGN
13284 argument for callers to pass the alignment guaranteed to be honored for
13285 the whole aligning object. Avoid call to finish_record_type, which only
13286 interferes with the sizes we want to set.
13287 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
13288 make_aligning_type for super-aligned objects on stack.
13289 (components_to_record): Pass the adjusted size of the type when creating
13290 fields in the qualified union for the variant part.
13291 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
13292 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
13293 packed array type.
13294 (maybe_pad_type): Set TYPE_USER_ALIGN.
13295 (make_aligning_type): Likewise.
13296 ALIGN argument is unsigned int.
13297 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
13298 (gnat_to_gnu_param): Likewise, for parameters.
13299 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
13300 if it is constant and stems from a function call.
13301 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
13302 of the record is specified. Adjust accordingly.
13303 (adjust_packed): New static function.
13304 (gnat_to_gnu_field): Use it to adjust the packedness setting.
13305 (components_to_record): Likewise.
13306 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
13307 side-effects if the object is deemed constant.
13308 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
13309 type instead of merely finalizing it. Tidy.
13310 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
13311 <E_Access_Type>: Likewise.
13312 (defer_debug_incomplete_list): Rename to defer_finalize_list.
13313 (defer_debug_level): Delete.
13314 (gnat_to_gnu_entity) <debug_deferred>: Likewise
13315 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
13316 type.
13317 <E_Record_Type>: Do not explicitly defer finalizing the type.
13318 Adjust for write_record_type_debug_info renaming.
13319 <E_Subprogram_Type>: Likewise.
13320 Finalize deferred types right after deferred incomplete types are
13321 expanded.
13322 (rest_of_type_decl_compilation): New global function.
13323 (components_to_record): Rename defer_debug parameter to do_not_finalize.
13324 (components_to_record): Propagate the packedness to the fields of the
13325 qualified union type if there is a variant part.
13326 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
13327 instead of inline code to adjust the XUT field offsets.
13328 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
13329 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
13330 and write the debug info if the type derives from a discriminated one.
13331 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
13332 <E_Array_Subtype>: Likewise.
13333 <E_String_Literal_Subtype>: Likewise.
13334 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
13335 an alignment clause.
13336 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
13337 before giving warning.
13338 (prepend_one_attribute_to): New function, helper to prepend an attribute
13339 to an attribute list.
13340 (gnat_to_gnu_entity) <E_Procedure>: Use it.
13341 (prepend_attributes): Likewise.
13342 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
13343 <E_Array_Type>: Declare the padding type for the element type, if any.
13344 <E_Array_Subtype>: Likewise.
13345 (defer_limited_with): New variable.
13346 (Gigi_Equivalent_Type): New function.
13347 (gnat_to_gnu_entity): Use it at start and use result throughout.
13348 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
13349 Gigi_Equivalent_Type, support Limited_With, allow two levels of
13350 indirection, precompute if unconstrained array to simplify logic, and
13351 use defer_limited_with to defer elaboration of some types from limited
13352 with.
13353 (finalize_from_with_types): New function.
13354
133552007-06-06 Gary Dismukes <dismukes@adacore.com>
13356 Eric Botcazou <ebotcazou@adacore.com>
13357 Tristan Gingold <gingold@adacore.com>
13358 Olivier Hainque <hainque@adacore.com>
13359
a472f546
EB
13360 * trans.c (Identifier_to_gnu): Change test for deferred constant by
13361 adding guard that the entity is an E_Constant before testing presence
13362 of Full_view (and remove unnecessary test that entity is not a type).
ec11296f
AC
13363 For a CONST_DECL used by reference, manually retrieve
13364 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
13365 (struct language_function): Move from utils.c to here.
13366 (struct parm_attr): New structure.
13367 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
13368 (f_parm_attr_cache): New macro.
13369 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
13370 expressions for the 'First, 'Last and 'Length attributes of the
13371 unconstrained array IN parameters.
13372 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
13373 Allocate the information structure for the function earlier, as well
13374 as the language-specific part.
13375 If the parameter attributes cache has been populated, evaluate the
13376 cached expressions on entry.
13377 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
13378 N_Procedure_Call_Statement and N_Indexed_Component.
13379 (Pragma_to_gnu): Translate inspection_point to an asm statement
13380 containaing a comment and a reference to the object (either its address
13381 for BLKmode or its value).
13382 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
13383 to go to DECL_INITIAL. Together with the size constraint relaxation
13384 in create_var_decl, enlarges the set of situations in which an
13385 identifier may be used as an initializer without implying elaboration
13386 code.
13387 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
13388 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
13389 node.
13390 (maybe_stabilize_reference): Remove lvalues_only parameter.
13391 (gnat_stabilize_reference): Adjust for above change.
13392 (gnat_to_gnu): Do not set location information on the result
13393 if it is a reference.
13394 (add_cleanup): Add gnat_node parameter and set the location of the
13395 cleanup to it.
13396 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
13397 (Exception_Handler_to_gnu_zcx): Likewise.
13398 (gigi): Remove the cgraph node if the elaboration procedure is empty.
13399 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
13400 the former right after the latter.
13401 (start_stmt_group): Make global.
13402 (end_stmt_group): Likewise.
13403 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
13404 vars.
13405 (gnu_program_error_label_stack): Likewise.
13406 (gigi): Initialize them.
13407 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
13408 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
13409 New cases.
13410 (push_exception_label_stack): New function.
13411 (takes_address): New function.
13412
13413 * utils.c (struct language_function): Move to trans.c from here.
13414 (unchecked_convert): Do not wrap up integer constants in
13415 VIEW_CONVERT_EXPRs.
13416 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
13417 the latter for aggregate types, unexpected by later passes, and relax an
13418 arbitrary size constraint on the former.
13419 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
13420 to compare the sizes.
13421 (convert_vms_descriptor): When converting to a fat pointer type, be
13422 prepared for a S descriptor at runtime in spite of a SB specification.
13423 (shift_unc_components_for_thin_pointers): New function.
13424 (write_record_type_debug_info): For variable-sized fields, cap the
13425 alignment of the pointer to the computed alignment.
13426 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
13427 If REP_LEVEL is 2, do not compute the sizes.
13428 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
13429 (build_unc_object_type): Likewise.
13430 (declare_debug_type): New function.
13431
9e81dbc7 13432 * ada-tree.def: USE_STMT: removed (not emitted anymore).
ec11296f 13433
9e81dbc7
AS
13434 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
13435 no statement is expandable anymore.
13436 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
13437 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
13438 when the user requested it explicitely.
13439 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
13440 to 0 for Ada.
13441 (get_alias_set): Return alias set 0 for a type if
13442 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
ec11296f 13443
9e81dbc7
AS
13444 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
13445 (DECL_FUNCTION_STUB): New accessor macro.
13446 (SET_DECL_FUNCTION_STUB): New setter macro.
ec11296f 13447
9e81dbc7 13448 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
ec11296f
AC
13449
13450 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
13451 declarations.
13452
134532007-06-06 Jose Ruiz <ruiz@adacore.com>
13454
13455 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
13456 Rename to Abort_Task_Interrupt to be able to keep the same interface
13457 as the rest of the targets.
13458
13459 * s-osinte-vxworks.ads s-osinte-vxworks.adb
13460 (To_VxWorks_Priority): Remove explicit "in" mode indicator
13461
13462 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
13463 New files.
13464
134652007-06-06 Robert Dewar <dewar@adacore.com>
13466
13467 * a-chahan.ads: Remove obsolescent pragmas
13468
13469 * a-chlat1.ads: Minor reformatting
13470
134712007-06-06 Robert Dewar <dewar@adacore.com>
13472
13473 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
13474 for Errout
13475
13476 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
13477 implementation
13478
13479 * errout.ads (Finalize): Changed interface
13480 (Output_Messages): New procedure
13481 (Compilation_Errors): New Interface
13482
13483 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
13484 Finalize/Output_Messages interface for Errout
13485 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
13486 Errout.
13487
134882007-06-06 Thomas Quinot <quinot@adacore.com>
13489 Olivier Hainque <hainque@adacore.com>
13490 Robert Dewar <dewar@adacore.com>
13491
13492 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
13493 check.
13494 (Raise_Current_Excep): Call Debug_Raise_Exception just before
13495 propagation starts, to let debuggers know about the event in a reliable
13496 fashion.
13497 (Local_Raise): Moved to System.Exceptions
13498 More convenient to have this as a separate unit
13499
13500 * s-except.adb, s-except.ads: New files.
13501
13502 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
13503 Debug_Unhandled_Exception in System.Exceptions where it belongs
13504 together with a couple of other debug helpers.
13505 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
13506 the former Unhandled_Exception.
13507
13508 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
13509 (Warn_No_Exception_Propagation): New procedure
13510 (Warn_If_No_Propagation): Rewritten for new warning generation
13511 (Expand_Exception_Handlers): New warning generation
13512 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
13513 (Add_Exception_Label): Use Special_Exception_Package_Used for test
13514 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
13515 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
13516 even if restriction is set (makes life easier in Check_Returns)
13517 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
13518 checking exception identities.
13519 (Expand_Local_Exception_Handlers): Do not optimize when all others case
13520 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
13521 block for handler (used by Check_Returns)
13522 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
13523 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
13524 remove all exception handlers when optimizing local raise statements.
13525 (Find_Local_Handler): Use Get_Renamed_Entity
13526 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
13527 marked analyzed after expanding exception handlers, do not generate
13528 redundant cleanup actions, because they have been constructed already.
13529
135302007-06-06 Thomas Quinot <quinot@adacore.com>
13531
13532 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
13533 presence of this categorization pragma is mandated by the language.
13534 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
13535 for this type.
13536
135372007-06-06 Vincent Celier <celier@adacore.com>
13538 Robert Dewar <dewar@adacore.com>
13539
9e81dbc7
AS
13540 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
13541 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
13542 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
13543 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
13544 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
13545 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
13546 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
13547 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
13548 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
13549 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
ec11296f 13550 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9e81dbc7 13551 ali.ads, ali.adb:
ec11296f
AC
13552 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
13553 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
13554 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
13555 Use variables of types File_Name_Type and Unit_Name_Type in error
13556 messages.
13557 (Get_Name): Add parameter Ignore_Special, and set it reading file name
13558 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
13559 here.
13560 Define flags Flag217-Flag230 with associated subprograms
13561 (Flag_Word5): New record type.
13562 (Flag_Word5_Ptr): New access type.
13563 (To_Flag_Word5): New unchecked conversion.
13564 (To_Flag_Word5_Ptr): Likewise.
13565 (Flag216): New function.
13566 (Set_Flag216): New procedure.
13567
135682007-06-06 Arnaud Charlet <charlet@adacore.com>
13569
13570 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
13571 instead of 'Size.
13572
13573 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
13574
135752007-06-06 Javier Miranda <miranda@adacore.com>
13576
13577 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
13578 the package.
13579 (Object_Specific_Data_Array): This is now internal to the package.
13580 (Object_Specific_Data): This is now internal to the package.
13581 (Select_Specific_Data_Element): This is now internal to the package.
13582 (Select_Specific_Data_Array): This is now internal to the package.
13583 (Select_Specific_Data): This is now internal to the package.
13584 (Offset_To_Top_Function_Ptr): This is now public.
13585 (To_Offset_To_Top_Function_Ptr): Removed.
13586 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
13587 local to subprogram Offset_To_Top.
13588 (Predefined_DT): Removed.
13589 (Typeinfo_Ptr): Removed.
13590 (OSD): This function is now internal to this package.
13591 (SSD): This function is now internal to this package.
13592 (DT): New function that displaces the pointer to the table of primitives
13593 to get access to the enclosing wrapper record.
13594 (IW_Membership): Code cleanup.
13595 (Offset_To_Top): Code cleanup.
13596 (Predefined_DT): Removed.
13597 (Register_Interface_Tag): Removed.
13598 (Set_Interface_Table): Removed.
13599 (Set_Offset_Index): Removed.
13600 (Set_Offset_To_Top): Code cleanup.
13601 (Set_OSD): Removed.
13602 (Set_Signature): Removed.
13603 (Set_SSD): Removed.
13604 (Set_Tagged_Kind): Removed.
13605 (Typeinfo_Ptr): Removed.
13606 (TSD): Removed.
13607 (Displace): Add missing check on null actual.
13608
13609 * exp_disp.ads, exp_disp.adb
13610 (Select_Expansion_Utilities): Removed.
13611 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
13612 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
13613 the interface requires a new parameter.
13614 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13615 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
13616 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
13617 Done to remove package Select_Expansion_Utilities.
13618 (Make_DT): New implementation for statically allocated dispatch tables.
13619 (Make_Secondary_DT): Moved to the scope of Make_DT.
13620 (Register_Primitive): Code cleanup plus incoporate the use of the new
13621 function DT_Address_Attribute.
13622 (Expand_Interface_Thunk): The profile of this subprogram has been
13623 changed to return the Thunk_Id and the corresponding code.
13624 (Fill_DT_Entry): Removed. Its functionality is now provided by
13625 subprogram Register_Primitive.
13626 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
13627 subprogram Register_Primitive.
13628 (Register_Primitive): New subprogram that incorporates the previous
13629 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
13630 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
13631 was only required to call Make_DT_Access_Action, which is now removed.
13632 (Ada_Actions): Removed
13633 (Action_Is_Proc): Removed
13634 (Action_Nb_Arg): Removed
13635 Replace all the calls to Make_DT_Access_Action by direct calls to
13636 Make_Procedure_Call_Statement or Make_Function_Call.
13637 (Set_DTC_Entity_Value): New subprogram.
13638 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
13639 (Expand_Interface_Thunk): Add missing support for primitives that are
13640 functions with a controlling result (case in which there is no need
13641 to generate the thunk).
13642
13643 * exp_atag.ads, exp_atag.adb
13644 (Build_DT): New subprogram that displaces the pointer to reference the
13645 base of the wrapper record.
13646 (Build_Typeinfo_Offset): Removed.
13647 (RTE_Tag_Node): Removed.
13648 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
13649 (Build_Get_RC_Offset): Removed.
13650 (Build_Inherit_Predefined_Prims): Removed.
13651 (Build_Inherit_TSD: Removed.
13652 (Build_New_TSD): Removed.
13653 (Build_Set_External_Tag): Removed.
13654 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
13655 (Build_Set_Prim_Op_Address): Add documentation.
13656 (Build_Set_TSD): Removed.
13657
13658 * rtsfind.ads, rtsfind.adb
13659 (Load_Fail): If load fails and we are not in configurable run-time
13660 mode, then raise Unrecoverable_Error.
13661 (Text_IO_Kludge): Generate an error message if a run-time library is
13662 not available in a given run-time (ie. zfp run-time).
13663 (RTE_Record_Component): Add code to check that the component we search
13664 for is not found in two records in the given run-time package.
13665 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
13666 (RE_DT_Predef_Prims_Offset): New entity
13667 (RE_Static_Offset_To_Top): New entity
13668 (RE_HT_Link): New entity.
13669 (System_Address_Image): Addition of this run-time package.
13670 (RE_Address_Image): New entity.
13671 (RE_Abstract_Interface): Removed.
13672 (RE_Default_Prim_Op_Count): Removed.
13673 (RE_DT_Entry_Size): Removed.
13674 (RE_DT_Min_Prologue_Size): Removed.
13675 (RE_DT_Prologue_Size): Removed.
13676 (RE_Ifaces_Table_Ptr): Removed.
13677 (RE_Interface_Data_Ptr): Removed.
13678 (RE_Type_Specific_Data): Removed.
13679 (RE_Primary_DT): Removed.
13680 (RE_Register_Interface_Tag): Removed.
13681 (RE_Set_Offset_Index): Removed.
13682 (RE_Set_OSD): Removed.
13683 (RE_Set_SSD): Removed.
13684 (RE_Set_Signature): Removed.
13685 (RE_Set_Tagged_Kind): Removed.
13686 (RE_Address_Array): New entity.
13687 (RE_DT): New entity.
13688 (RE_Iface_Tag): New entity.
13689 (RE_Interfaces_Table): New entity.
13690 (RE_No_Dispatch_Table): New entity.
13691 (RE_NDT_Prims_Ptr): New entity.
13692 (RE_NDT_TSD): New entity.
13693 (RE_Num_Prims): New entity.
13694 (RE_Offset_To_Top_Function_Ptr): New entity.
13695 (RE_OSD_Table): New entity.
13696 (RE_OSD_Num_Prims): New entity.
13697 (RE_Predef_Prims): New entity
13698 (RE_Predef_Prims_Table_Ptr): New entity.
13699 (RE_Primary_DT): New entity.
13700 (RE_Signature): New entity.
13701 (RE_SSD): New entity.
13702 (RE_TSD): New entity.
13703 (RE_Type_Specific_Data): New entity.
13704 (RE_Tag_Kind): New entity.
13705
137062007-06-06 Thomas Quinot <quinot@adacore.com>
13707
13708 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
13709 C imported variable.
13710 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
13711 on entry.
13712
137132007-06-06 Robert Dewar <dewar@adacore.com>
13714
13715 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
13716 character
13717
137182007-06-06 Vincent Celier <celier@adacore.com>
13719
13720 * a-tifiio.adb (Put, internal): For negative numbers, check that there
13721 is room for at least one digit and the minus sign.
13722 (Put.Put_Character): Never put a character outside of the range of
13723 string To.
13724
137252007-06-06 Olivier Hainque <hainque@adacore.com>
13726 Eric Botcazou <ebotcazou@adacore.com>
13727
13728 * utils2.c (build_allocator): Provide the extra arguments to
13729 make_aligning_type for super-aligned objects allocated from the default
13730 pool. Leave enough room for a pointer before the aligning field, and
13731 store the system's allocator return value there.
13732 (build_call_alloc_dealloc): When releasing a super-aligned object,
13733 retrieve the system's allocator return value from where build_allocator
13734 has stored it, just ahead of the adjusted address we are passed.
13735 (build_call_raise): Handle properly the generation of line numbers when
13736 the node is marked No_Location.
13737 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
13738 by using DECL_UID on ties.
13739 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
13740 main variant.
13741 (build_call_raise): Handle converting exception into goto; support new
13742 argument KIND.
13743 (build_component_ref): Add new arg to build_call_raise.
13744
137452007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13746
13747 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
13748 "." in the case of nnn.xxx when nnn terminates with an underscore.
13749 Parse the remaining "#" or ":" in the case of nnn#.xxx#
13750
137512007-06-06 Robert Dewar <dewar@adacore.com>
13752
13753 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
13754
137552007-06-06 Arnaud Charlet <charlet@adacore.com>
13756 Vincent Celier <celier@adacore.com>
13757 Robert Dewar <dewar@adacore.com>
13758
13759 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
13760 needed.
13761 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
13762 ((destructor)) for adafinal, even when switch -a is used.
13763 Do not issue pragma Linker_Destructor for adafinal when switch -a is
13764 used.
13765 (Gen_Object_Files_Options): Add formatting of Linker Options, when
13766 Output_Linker_Option_List is set. Suppress this formatting when
13767 Zero_Formatting is set.
13768 Add case for CLI_Target.
13769 (System_Restrictions_Used): New flag, used to avoid generating with of
13770 System_Restrictions and initialization of the data unless there is
13771 some use of System.Restrictions in the partition.
13772 (Check_System_Restrictions_Used): New procedure
13773
9e81dbc7 13774 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
ec11296f
AC
13775 since we only with this unit in the binder file if it is used elsewhere
13776 in the partition.
13777
137782007-06-06 Vincent Celier <celier@adacore.com>
13779
13780 * bindusg.adb: Add line for @<response file>
13781 Add lines for new switches -R and -Z
13782
13783 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
13784 hierarchy in the list of files of the closure when -R is used
13785 (Gnatbind): Accept arguments starting with '@' to indicate response
13786 files and take the arguments from the response files.
13787 If List_Closure is set, display the referenced files
13788
137892007-06-06 Javier Miranda <miranda@adacore.com>
13790 Robert Dewar <dewar@adacore.com>
13791 Ed Schonberg <schonberg@adacore.com>
13792
13793 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
13794 which the address-clause is applied to in-mode actuals (allowed by
13795 13.1(22)).
13796 (Apply_Discriminant_Check): Do not generate a check if the type is
13797 constrained by a current instance.
13798 (Activate_Division_Check): New procedure
13799 (Activate_Overflow_Check): New procedure
13800 (Activate_Range_Check): New procedure
13801 Call these new Activate procedures instead of setting flags directly
13802 (Apply_Array_Size_Check): Removed, no longer needed.
13803 Code clean up: remove obsolete code related to GCC 2.
13804 (Get_E_Length): Protect against bomb in case scope is standard
13805 (Selected_Range_Checks): If the node to be checked is a conversion to
13806 an unconstrained array type, and the expression is a slice, use the
13807 bounds of the slice to construct the required constraint checks.
13808 Improve NOT NULL error messages
13809 (Apply_Constraint_Check): If the context is a null-excluding access
13810 type, diagnose properly the literal null.
13811
138122007-06-06 Pascal Obry <obry@adacore.com>
13813
13814 * clean.adb (Clean_Archive): Use untouched casing for the archive name
13815 and the corresponding .deps file.
13816 (Clean_Interface_Copy_Directory): Use untouched casing for the library
13817 src directory. Minor code-clean-up. Use untouched casing for files
13818 read into the library src dir.
13819 (Clean_Library_Directory): Idem.
13820 (Parse_Cmd_Line): Accept new switch -aP
13821
138222007-06-06 Javier Miranda <miranda@adacore.com>
13823 Ed Schonberg <schonberg@adacore.com>
13824 Robert Dewar <dewar@adacore.com>
13825 Eric Botcazou <ebotcazou@adacore.com>
13826 Arnaud Charlet <charlet@adacore.com>
13827
13828 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
13829 applicable to types that have the With_Type flag set. Returns the
13830 non-limited view of the type, if available, otherwise the type itself.
13831 For class-wide types, there is no direct link in the tree, so we have
13832 to retrieve the class-wide type of the non-limited view of the Etype.
13833 New attributes Static_Initialization and Static_Elaboration_Desired.
13834 Remove the pragma Thread_Body, and the associated flag
13835 Is_Thread_Body in entities, and all related code.
13836 (Suppress_Value_Tracking_On_Call): New flag
13837 E_Exception has Esize and Alignment fields
13838 (Universal_Aliasing): New function.
13839 (Set_Universal_Aliasing): New procedure.
13840 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
13841 (Check_Nested_Access): New procedure.
13842 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
13843 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13844 (Related_Interface): New attribute. Present in dispatch table pointer
13845 components of records. Set to point to the entity of the corresponding
13846 interface type.
13847 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
13848 (Original_Access_Type): Remove, not needed.
13849 (Root_Type): Handle properly subtypes of class-wide-types.
13850 Update comments.
13851
13852 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
13853 class-wide types visible through limited-with clauses.
13854 (Try_Primitive_Operation): When examining all primitive operations of a
13855 tagged type, do not consider subprograms labeled as hidden unless they
13856 belong to a private generic type with a tagged parent.
13857 (Try_Object_Operation): Extensive rewriting, to handle properly various
13858 overloading cases, when several ancestors may have class-wide operations
13859 that are possible candidates, and when the overloaded functions return
13860 array types and have defaulted parameters so that the call may be
13861 interpreted as an indexing.
13862 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
13863 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
13864 successive actuals before analyzing the call itself.
13865 (Try_Primitive_Operation): A primitive operation is compatible with the
13866 prefix if the prefix has a synchronized type and the type of the formal
13867 is its corresponding record, as can be the case when the primitive
13868 operation is declared outside of the body of the type.
13869 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
13870 perform homonym traversal, looking for class-wide operation matches
13871 (formerly done in statements of Try_Class_Wide_Operation). Matches on
13872 access parameters are now restricted to anonymous access types.
13873 (Mark_Allocator): An allocator with a discriminant association parent is
13874 a coextension.
13875 (Try_One_Prefix_Interpretation): If the type of the object is
13876 incomplete, as can be happen when it is a limited view obtained through
13877 a limited_with_clause, the selected component is not part of a prefixed
13878 call.
13879 (Complete_Object_Operation): Diagnose properly an object that is not
13880 aliased when the corresponding controlling formal is an access
13881 parameter.
13882 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
13883 ambiguous calls in prefixed notation, where two primitives differ only
13884 in that the controlling argument of one is an access parameter.
13885
13886 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
13887 whether a function that returns an unconstrained type can be inlined.
13888 (Process_Formals): Diagnose properly the illegal use of an incomplete
13889 type in the profile of an access_to_subprogram declaration.
13890 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
13891 operations are attached to the corresponding record.
13892 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
13893 When processing a primitive of a concurrent type which implements an
13894 interface change the type of all controlling formals to that of the
13895 corresponding record type.
13896 (Check_Synchronized_Overriding): Relax the conditional logic when trying
13897 to determine the tagged type to which a primitive belongs.
13898 (Check_Conventions): Capture condition to ignore a primitive operation
13899 (which is shared between the loop in Check_Conventions and the one in
13900 Check_Convention) in a new local function Skip_Check.
13901 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
13902 confusion with Check_Conventions' own Prim_Op local variable.
13903 (Create_Extra_Formals): Test for a tagged result type rather than a
13904 controlling result when determining whether to add a BIP_Alloc_Form
13905 formal and a BIP_Final_List formal to the function.
13906 (Check_Conformance); For parameters that are anonymous access types,
13907 subtype conformance requires that the not null and the constant
13908 indicators must match
13909 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
13910 to retrieve the appropriate type when processing a concurrent type
13911 declared within a generic. Minor comment reformatting. Change invocation
13912 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
13913 mitive.
13914 (Analyze_Subprogram_Body): If the return type of a function is an
13915 anonymous access to the limited view of a class-wide type, and the
13916 non-limited view of the type is available, update the type of the
13917 function so that code can be generated.
13918 (Process_Formals): In case of access-subtype itype whose designated
13919 type is also an itype (situation that happens now with access to
13920 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
13921 attribute to avoid backend problems.
13922 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
13923 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
13924 anonymous types' designated types are same before testing
13925 Subtypes_Statically_Match.
13926 (Create_Extra_Formals): Test for a named access parameter that is a
13927 controlling formal as an additional condition for adding an
13928 accessibility level formal. This can occur in the subp type created for
13929 dispatching calls in Expand_Dispatching_Call, and allows calling
13930 Create_Extra_Formals from that procedure rather than special-casing the
13931 extra formals there.
13932 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
13933 when the function has a controlling result.
13934 (Check_Returns): Add much more knowledge of the optimization of local
13935 raise statements to gotos, to retain proper warnings in this case.
13936 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
13937 nodes when looking for last statement.
13938
13939 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
13940 class-wide types visible through limited with clauses.
13941 (Add_One_Interp): If the operands are anonymous access types, the
13942 predefined operator on universal_access is immediately visibles
13943 (Find_Unique_Type): Handle anonymous access to subprogram types just as
13944 other anonymous access types.
13945 (Disambiguate): Take into account CIL convention.
13946 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
13947
139482007-06-06 Robert Dewar <dewar@adacore.com>
13949
13950 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
13951 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
13952 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
13953 Fix lower bound of tables.
13954 Add rep clauses.
13955
13956 * nlists.adb: Ditto.
13957 (Prev_Node, Next_Node): Change index type to Int so that it properly
13958 covers the range First_Node_Id - 1 up.
13959
139602007-06-06 Javier Miranda <miranda@adacore.com>
13961 Ed Schonberg <schonberg@adacore.com>
13962 Bob Duff <duff@adacore.com>
13963 Hristian Kirtchev <kirtchev@adacore.com>
13964
9e81dbc7 13965 * exp_aggr.ads, exp_aggr.adb:
ec11296f
AC
13966 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
13967 in extension aggregates.
13968 (Flatten): Other conditions being met, an aggregate is static if the
13969 low bound given by component associations is different from the low
13970 bound of the base index type.
13971 (Packed_Array_Aggregate_Handled): If the component type is itself a
13972 packed array or record, the front-end must expand into assignments.
13973 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
13974 Init_Pr, instead of Ancestor_Is_Expression.
13975 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
13976 coextension chain root, either generate a list controller or use the
13977 already existing one.
13978 (Static_Array_Aggregate): New procedure to construct a positional
13979 aggregate that can be handled by the backend, when all bounds and
13980 components are compile-time known constants.
13981 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
13982 types covering interface types into assignments.
13983 (Replace_Type): move to Build_Record_Aggr_Code.
13984 (Expand_Record_Aggr_Code): if the target of the aggregate is an
13985 interface type, convert to the definite type of the aggregate itself,
13986 so that needed components are visible.
13987 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
13988 components and the context is an extended return statement do not
13989 create a transient block for it, to prevent premature finalization
13990 before the return is executed.
13991 (Gen_Assign): Do not generate a call to deep adjust routine if the
13992 component type is itself an array of controlled (sub)-components
13993 initialized with an inner aggregate.
13994 (Component_Check): New name for Static_Check. This name is now more
13995 appropriate, and documentation is added which was missing.
13996 (Component_Check): Add test for bit aligned component value
13997 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
13998 Tagged_Comps, name is more appropriate given added function below.
13999 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
14000
140012007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14002 Javier Miranda <miranda@adacore.com>
14003 Robert Dewar <dewar@adacore.com>
14004
14005 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
14006 Terminated: Add unchecked type conversion from System.Address to
14007 System.Tasking.Task_Id when calling the predefined primitive
14008 _disp_get_task_id.
14009 Disable new Ada 05 accessibility check for JVM.NET targets, which
14010 cannot be implemented in a practical way.
14011 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
14012 the sources always references the tag of the actual object. Therefore,
14013 if 'Tag is applied in the sources to class-wide interface objects we
14014 generate code that displaces "this" to reference the base of the object.
14015 (Expand_N_Attribute_Reference, case Size): Return specified size if
14016 known to front end.
14017 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
14018 has code that displaces the pointer of the object to manage interface
14019 types. However this code must not be executed when the prefix is a
14020 subprogram. This bug caused the wrong expansion of the internally
14021 generated assignment that fills the dispatch table when the primitive
14022 is a function returning a class-wide interface type.
14023 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
14024 Set_Attribute_Name for Name_Unaligned_Valid.
14025
140262007-06-06 Ed Schonberg <schonberg@adacore.com>
14027 Gary Dismukes <dismukes@adacore.com>
14028
14029 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
14030 If the initialization is the equivalent aggregate of the initialization
14031 procedure of the type, do not remove it.
14032 (Expand_N_Attribute_Definition_Clause): Exclude access variables
14033 initialized to null from having their expression reset to empty and
14034 note this exception in the comment.
14035
140362007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14037 Robert Dewar <dewar@adacore.com>
14038 Ed Schonberg <schonberg@adacore.com>
14039 Gary Dismukes <dismukes@adacore.com>
14040
14041 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
14042 Add "with" and "use" clauses for Sem_Attr.
14043 (Expand_Current_Value): Do not replace occurences of attribute
14044 references where the prefix must be a simple name.
14045
14046 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
14047 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
14048 Attribute_Requires_Simple_Name_Prefix.
14049 (Name_Modifies_Prefix): Body of new function.
14050 (Requires_Simple_Name_Prefix): Body of new function.
14051 (Resolve_Attribute, case Access): Improve error message for case of
14052 mismatched conventions.
14053 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
14054 incomplete type.
14055 (Analyze_Attribute, case 'Access): If the type of the prefix is a
14056 constrained subtype for a nominal unconstrained type, use its base type
14057 to check for conformance with the context.
14058 (Resolve_Attribute): Remove test of the access type being associated
14059 with a return statement from condition for performing accessibility
14060 checks on access attributes, since this case is now captured by
14061 Is_Local_Anonymous_Access.
14062 (Analyze_Access_Attribute): Set Address_Taken on entity
14063 (Analyze_Attribute, case Address): Set Address_Taken on entity
14064 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
14065 validating an access attribute whose prefix is a current instance.
14066 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
14067 applied to dispatching operations, if freezing is required then we set
14068 the attribute Has_Delayed_Freeze in the prefix's entity.
14069 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
14070 current scope if access of local subprogram taken
14071 (Analyze_Access_Attribute): Check legality of self-reference even if the
14072 expression comes from source, as when a single component association in
14073 an aggregate has a box association.
14074 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
14075 the prefix if it is a protected operation and the attribute is
14076 Unrestricted_Access.
14077 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
14078 reference to the base type of the context, to force a constraint check
14079 when the context is an access subtype with an explicit constraint.
14080 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
14081 node is rewritten as an interface conversion. leave unanalyzed after
14082 resolution, to ensure that type checking against the context will take
14083 place.
14084
140852007-06-06 Ed Schonberg <schonberg@adacore.com>
14086 Javier Miranda <miranda@adacore.com>
14087 Robert Dewar <dewar@adacore.com>
14088
14089 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
14090 wrapper when the full view of the controlling type of an inherited
14091 function that dispatches on result implements interfaces.
14092 (Expand_N_Object_Declaration): In cases where the type of the
14093 declaration is anonymous access, create finalization list for it.
14094 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
14095 if the object has no explicit initialization, to match description of
14096 functionality of pragam Persistent_BSS.
14097 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
14098 new function to build static aggregates, to replace initialization call
14099 when static initialization is desired.
14100 (Freeze_Type): Generate a list controller for an access type whenever
14101 its designated type has controlled anonymous access discriminants.
14102 (Build_Equivalent_Aggregate): New procedure to compute a static
14103 aggregate to be used as default initialization for composite types,
14104 instead of a generating a call to the initialization procedure for the
14105 type.
14106 (Build_Initialization_Call): When available, replace a call to the
14107 initialization procedure with a copy of the equivalent static aggregate
14108 for the type.
14109 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
14110 declarations for objects of a class-wide interface type, rather than
14111 just identifiers, to prevent visibility problems.
14112 (Expand_N_Object_Declaration): When expanding the declaration for an
14113 object of a class-wide interface type, preserve the homonym chain of
14114 the original entity before exchanging it with that of the generated
14115 renaming declaration.
14116 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
14117 active, because there is no way to handle the exception.
14118 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
14119 to do a minimum decoration of the Access_Disp_Table list.
14120 (Expand_Record_Controller): Avoid the addition of the controller between
14121 the component containing the tag of a secondary dispatch table and its
14122 adjacent component that stores the offset to the base of the object.
14123 This latter component is only generated when the parent type has
14124 discriminants ---documented in Add_Interface_Tag_Components).
14125 (Apply_Array_Size_Check): Removed, no longer needed.
14126 (Expand_N_Full_Type_Declaration): If the type has anonymous access
14127 components, create a Master_Entity for it only if it contains tasks.
14128 (Build_Init_Procedure): Suppress the tag assignment compiling under
14129 no run-time mode.
14130 (Freeze_Record_Type): Remove code associated with creation of dispatch
14131 table.
14132 (Init_Secondary_Tags): Update type of actuals when generating calls to
14133 Ada.Tags.Set_Offset_To_Top
14134 (Stream_Operation_OK): Disable use of streams compiling under no
14135 run-time mode
14136 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
14137 if Has_Init_Expression set.
14138 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
14139 Register_Primitive, which provides the same functionality.
14140 (Requires_Init_Proc): Return false in case of interface types.
14141 (Add_Secondary_Tables): Use the new attribute Related_Interface to
14142 cleanup the code.
14143 (Predefined_Primitive_Freeze): Do not assume that an internal entity
14144 is always associated with a predefined primitive because the internal
14145 entities associated with interface types are not predefined primitives.
14146 Therefore, the call to Is_Internal is replaced by a call to the
14147 function Is_Predefined_Dispatching_Operation.
14148 (Make_Eq_If): When generating the list of comparisons for the
14149 components of a given variant, omit the controller component that is
14150 present if the variant has controlled components.
14151
141522007-06-06 Javier Miranda <miranda@adacore.com>
14153 Hristian Kirtchev <kirtchev@adacore.com>
14154 Bob Duff <duff@adacore.com>
14155
14156 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
14157 handle the creation of finalization lists and calls for nested
14158 coextensions when the root of the chains is part of a return statement.
14159 (Inside_A_Return_Statement): New function inside Complete_Coextension_
14160 Finalization.
14161 (Expand_Record_Equality): Skip components that are interface types.
14162 (Displace_Allocator_Pointer): Add missing support for interface subtypes
14163 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
14164 with Rewrite_Coextension. Change the condition for detecting coextension
14165 root nodes.
14166 (Is_Local_Access_Discriminant): Removed.
14167 (Rewrite_Coextension): New routine which rewrites a static coextension
14168 as a temporary and uses its unrestricted access in the construction of
14169 the outer object.
14170 (Complete_Coextension_Finalization): New routine. Generate finalization
14171 attachment calls to all delayed coextensions.
14172 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
14173 the allocator is not a coextension itself and has delayed coextensions.
14174 If the current allocator is controlled, but also a coextension, delay
14175 the generation of the finalization attachment call.
14176 Rename local variable "Node" to "Nod" in order to avoid confusion with
14177 "Elists.Node".
14178 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
14179 limited types that are not inherently limited. Such an allocator is
14180 illegal, but is generated by the expander for a return statement, to
14181 copy the result onto the secondary stack. This is the only case where a
14182 limited object can be copied. Generate code to displace the pointer
14183 to the object if the qualified expression is a class-wide interface
14184 object. Such displacement was missing and hence the copy of the object
14185 was wrong.
14186 (Apply_Accessibility_Check): Handle allocated objects initialized in
14187 place.
14188 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
14189 and Expand_Allocator_Expression. Allocating class-wide interface objects
14190 this routine displaces the pointer to the allocated object to reference
14191 the component referencing the corresponding secondary dispatch table.
14192 Expand_Allocator_Expression): Add missing support to allocate class-wide
14193 interface objects initialized with a qualified expression.
14194 (Get_Allocator_Final_List): Test for an anonymous access type that is a
14195 function result type, and use the finalization list associated with the
14196 function scope in that case (such an anonymous type should not be
14197 treated like an access parameter's type).
14198
141992007-06-06 Ed Schonberg <schonberg@adacore.com>
14200 Gary Dismukes <dismukes@adacore.com>
14201 Javier Miranda <miranda@adacore.com>
14202
14203 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
14204 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
14205 required exception handler.
14206 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
14207 properly the case of a function whose return type is a limited
14208 class-wide interface type. Modify the code of the accessibility
14209 check to handle class-wide interface objects. In this case we need to
14210 displace "this" to reference the primary dispatch table to get access
14211 to the TSD of the object (to evaluate its accessibility level).
14212 (Expand_N_Extended_Return_Statement): Test for a tagged result type
14213 rather than a controlling result as one of the conditions for
14214 generating tests of the implicit BIP_Alloc_Form formal. The
14215 initialization assignment is also handled according to whether the
14216 result is tagged instead of controlling.
14217 In the case where the init assignment is inserted in the "then" part of
14218 the allocation conditional, rewrite the target to be a dereference of
14219 the implicit BIP_Object_Access formal.
14220 If the returned value is unconstrained and created on the secondary
14221 stack, mark the enclosing block and function so that the secondary
14222 stack is not reclaimed on return.
14223 Treat returns from functions with controlling results similarly to
14224 returns from functions with unconstrained result subtypes.
14225 If the object returned is unconstrained, and an allocator must be
14226 created for it, analyze the allocator once the block for the extended
14227 return is installed, to ensure that finalizable components
14228 of the expression use the proper finalization list. Guard the call to
14229 Move_Final_List with a check that there is something to finalize.
14230 (Make_Tag_Ctrl_Assignment): Use "old" handling
14231 of controlled type assignment for virtual machines, since new code uses
14232 unsupported features (such as direct access to bytes in memory).
14233
142342007-06-06 Gary Dismukes <dismukes@adacore.com>
14235 Ed Schonberg <schonberg@adacore.com>
14236
14237 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
14238 accessibility actual, check for the case of an aliased object that has
14239 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
14240 we fall into processing for the attribute rather than the name of the
14241 object.
14242 (Expand_Inline_Call): If an actual is a literal, and the corresponding
14243 formal has its address taken in the body, create a temporary to capture
14244 value. If the return type is a limited interface, do not treat the
14245 return value as Controlled.
14246 (Is_In_Place_Function): If the return type is a limited interface,
14247 treat as returning in place. The actual returned object may not always
14248 be limited, but the caller has to assume that it is returned in place.
14249 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
14250 context of an allocator, use the correct finalization chain (that is,
14251 the chain belonging to the access type, rather than the chain belonging
14252 to the current scope).
14253 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
14254 result type rather than a controlling result as a precondition for
14255 adding an allocation form actual to a build-in-place call.
14256 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
14257 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
14258 primitive in the dispatch tables. This work is now done by Make_DT when
14259 the type is frozen.
14260 (Register_Predefined_DT_Entry): Removed.
14261 (Add_Return): If end label is not present, use sloc of last statement
14262 for generated return statement in procedure, for better gdb behavior
14263 on expanded code.
14264 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
14265 object address nodes to ensure proper processing by routines like
14266 Insert_After*.
14267 (Expand_Call): Fix generation of validity check for parameter
14268 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
14269 the allocation form parameter if the result subtype is constrained,
14270 except when the function has a controlling result.
14271 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
14272 rather than Is_Controlled and Has_Controlled_Component, since we want to
14273 include class-wide result types in this treatment. Also test for a
14274 controlling result, since that also requires passing a finalization
14275 list.
14276 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
14277 even when the result subtype is constrained, to handle calls involving
14278 controlling results.
14279 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
14280 is now called even when the result subtype is constrained, to handle
14281 calls involving controlling results.
14282 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
14283 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
14284 now performs the test).
14285 (Make_Build_In_Place_Call_In_Object_Declaration):
14286 Add_Alloc_Form_Actual_* is now called even when the result subtype is
14287 constrained, to handle calls involving controlling results.
14288 (Add_Return): Accomodate rewritten pattern from local raise to goto
14289 transformation, so that we still recognize an transfer statement
14290 and do the right thing here in that case.
14291 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
14292 and end of subprogram code.
14293 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
14294 support for primitives that are functions (without formals) with a
14295 controlling result.
14296 (Inherited_From_Formal): If the actual subtype has not generic parent
14297 type, it is not an actual for a formal derived type, and there is no
14298 operation to inherit from the formal.
14299
143002007-06-06 Ed Schonberg <schonberg@adacore.com>
14301 Thomas Quinot <quinot@adacore.com>
14302
14303 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
14304 inserted cleanup code appropriately for GDB use.
14305 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
14306 exception handler for Deep_Adjust or Deep_Finalize.
14307 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
14308 Raise_From_Controlled_Operation is available, use a call to that
14309 subprogram instead of a plain "raise Program_Error" node to raise
14310 Program_Error if an exception is propagated from an Adjust or Finalize
14311 operation.
14312 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
14313 appears in the optional statement list of a triggering alternative, the
14314 scope actions can be inserted directly there, and not in the list that
14315 includes the asynchronous select itself.
14316
143172007-06-06 Ed Schonberg <schonberg@adacore.com>
14318 Robert Dewar <dewar@adacore.com>
14319 Hristian Kirtchev <kirtchev@adacore.com>
14320
14321 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
14322 generated exception handler appropriately when debugging generated code.
14323 Deal properly with No_Exception_Propagation restriction mode.
14324 (Expand_N_Abort_Statement): Add an unchecked type conversion from
14325 System.Address to System.Tasking.Task_Id when processing the result of
14326 the predefined primitive _disp_get_task_id.
14327 (Expand_N_Asynchronous_Select): Clarify comment.
14328 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
14329 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
14330 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
14331 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
14332 privals and for generated call to Complete_Entry_Body, for better gdb
14333 behavior.
14334 (Copy_Result_Type): Utility to construct a parameter and result profile
14335 for protected functions whose return type is an anonymous access to
14336 subprogram.
14337 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
14338 call the above.
14339 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
14340 point when the local-raise-to-goto transformation has taken place.
14341
143422007-06-06 Javier Miranda <miranda@adacore.com>
14343 Nicolas Setton <setton@adacore.com>
14344
14345 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
14346 functionality when the backend is generating code.
14347 Otherwise any serious error
14348 reported by the backend calling the frontend routine Error_Msg
14349 changes the Compilation_Mode to Check_Semantics, disables the
14350 functionality of this routine and causes the generation of
14351 spureous additional errors.
14352
14353 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
14354 debugging information now generated by the compiler for fat-pointer
14355 types.
14356 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
14357 DWARF2/3.
14358 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
14359
143602007-06-06 Thomas Quinot <quinot@adacore.com>
14361
14362 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
14363 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14364 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14365 For a remote call to a function with a classwide return type, apply an
14366 E.4(18) check to the returned value.
14367 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
14368 stream attributes of the designated type of an RACW, as they are not
14369 dispatching primitive operations.
14370
143712007-06-06 Geert Bosch <bosch@adacore.com>
14372
14373 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
14374 negative literal
14375 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
14376 positive
14377 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
14378 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
14379 positive
14380 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
14381
143822007-06-06 Javier Miranda <miranda@adacore.com>
14383
14384 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
14385 attribute compiling package Ada.Tags under No_Run_Time_Mode.
14386
143872007-06-06 Javier Miranda <miranda@adacore.com>
14388
14389 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
14390 deallocation of class-wide interface objects.
14391 (Expand_Dispatching_Constructor_Call): Take into account that if the
14392 result of the dispatching constructor is an interface type, the
14393 function returns a class-wide interface type; otherwise the returned
14394 object would be actual. The frontend previously accepted returning
14395 interface types because Expand_Interface_Actuals silently performed
14396 the management of the returned type "as if" it were a class-wide
14397 interface type.
14398 (Expand_Dispatching_Constructor_Call): Replace call to
14399 Make_DT_Access_Action by direct call to Make_Function_Call.
14400
144012007-06-06 Robert Dewar <dewar@adacore.com>
14402 Ed Schonberg <schonberg@adacore.com>
14403
14404 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
14405 compute masking constant, since we now set Esize properly to the
14406 underlying size.
14407 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
14408 to match the alignment.
14409 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
14410 packed arrays of 8 bits or less.
14411
14412 * freeze.adb (Freeze_Entity): When freezing the formals of a
14413 subprogram, freeze the designated type of a parameter of an access type
14414 only if it is an access parameter.
14415 Increase size of C convention enumeration object
14416 (Freeze_Entity, array type case): Make sure Esize value is properly
14417 adjusted for the alignment if it is known.
14418 (Freeze_Entity, array type case): When checking bit packed arrays for
14419 the size being incorrect, check RM_Size, not Esize.
14420 (Freeze_Record_Type): Check for bad discriminated record convention
14421 (In_Exp_Body): Return true if the body is generated for a subprogram
14422 renaming, either an attribute renaming or a renaming as body.
14423 (Check_Itype): If the designated type of an anonymous access component
14424 is a non-protected subprogram type, indicate that it is frozen, to
14425 prevent out-of-scope freeze node at some subsequent call.
14426 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
14427 only if the subprogram is neither imported nor exported, as well as the
14428 NCA descriptor class if the subprogram is exported.
14429
144302007-06-06 Ed Schonberg <schonberg@adacore.com>
14431 Arnaud Charlet <charlet@adacore.com>
14432 Robert Dewar <dewar@adacore.com>
14433 Gary Dismukes <dismukes@adacore.com>
14434
14435 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
14436 default initialization on an imported object, when there is no
14437 initialization call generated for it.
14438 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
14439 restriction
14440
14441 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
14442 Static_Elaboration_Desired.
14443 Remove pragma Thread_Body.
14444 Implement a new pragma No_Body
14445 Removes the Explicit_Overriding pragma
14446 Remove Optional_Overriding pragma
14447 (Prag): Deal with Universal_Aliasing.
14448 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14449 Pragma_CIL_Constructor): New names.
14450
14451 * sem_cat.adb (Validate_Object_Declaration): An initialization that
14452 uses the equivalent aggregate of a type must be treated as an implicit
14453 initialization.
14454 (Get_Categorization): Check a unit for pragma Preelaborate only if it
14455 has none of the other categories.
14456 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
14457 to apply Import to an object renaming declaration.
14458
14459 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
14460 from a C++ class should be declared as limited and that it will be
14461 considererd limited.
14462 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
14463 should be declared as limited and that it will be considererd limited.
14464 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
14465 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
14466 (Analyze_Pragma): Deal with Universal_Aliasing.
14467 (Sig_Flags): Likewise.
14468 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
14469 (Overflow_Checks_Unsuppressed): New flag.
14470 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
14471 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
14472 case of JVM or .NET targets, and compiling user code.
14473 Add debugging convenience routine rv
14474
144752007-06-06 Robert Dewar <dewar@adacore.com>
14476
14477 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
14478 are interface type.
14479 (Build_Elementary_Input_Call): For floating-point use right type in the
14480 absence of strange size or stream size clauses.
14481 (Build_Elementary_Write_Call): Same fix
14482 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
14483 set to value that does not match base type size.
14484
144852007-06-06 Ed Schonberg <schonberg@adacore.com>
14486
14487 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
14488 object of a limited type can be initialized with a call to a function
14489 that returns in place. If the limited type has unknown discriminants,
14490 and the underlying type is a constrained composite type, build an actual
14491 subtype from the function call, as is done for private types.
14492 (Side_Effect_Free): An expression that is the renaming of an object or
14493 whose prefix is the renaming of a object, is not side-effect free
14494 because it may be assigned through the renaming and its value must be
14495 captured in a temporary.
14496 (Has_Controlled_Coextensions): New routine.
14497 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
14498 as is done for other limited types.
14499 (Non_Limited_Designated_Type): new predicate.
14500 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
14501 objects.
14502 Remove all handling of with_type clauses.
14503
9e81dbc7 14504 * par-ch10.adb: Remove all handling of with_type clauses.
ec11296f
AC
14505
14506 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
14507 checksum if the main source could not be parsed.
14508 (Loat_Unit): When processing a child unit, determine properly whether
14509 the parent unit is a renaming when the parent is itself a child unit.
14510 Remove handling of with_type clauses.
14511
14512 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
14513 (Set_Is_Static_Coextension): New procedure.
14514 (Has_Local_Raise): New function
14515 (Set_Has_Local_Raise): New procedure
14516 (Renaming_Exception): New field
14517 (Has_Init_Expression): New flag
14518 (Delay_Finalize_Attach): Remove because flag is obsolete.
14519 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
14520 Remove all handling of with_type clauses.
14521 (Exception_Junk): Can now be set in N_Block_Statement
14522
145232007-06-06 Vincent Celier <celier@adacore.com>
14524 Robert Dewar <dewar@adacore.com>
14525
14526 * frontend.adb (Frontend): Return immediately if the main source could
14527 not be parsed, because of preprocessing errors.
14528
14529 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
14530 (Gnat1drv): Exit with errors if the main source could not be parsed,
14531 because of preprocessing errors.
14532 (Check_Rep_Info): New procedure
14533
145342007-06-06 Robert Dewar <dewar@adacore.com>
14535
14536 * g-hesorg.ads, g-heasor.ads,
14537 g-busorg.ads, g-bubsor.ads: Update documentation
14538 GNAT.Heap/Bubble_Sort_G is now pure
14539
145402007-06-06 Robert Dewar <dewar@adacore.com>
14541
14542 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
14543
145442007-06-06 Robert Dewar <dewar@adacore.com>
14545 Ed Schonberg <schonberg@adacore.com>
14546
9e81dbc7 14547 * g-comlin.ads, g-comlin.adb:
ec11296f
AC
14548 Add new warning for renaming of function return objects
14549
14550 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
14551 (Tree_Read): Use size of object instead of type'object_size, since the
14552 latter is incorrect for packed array types.
14553 (Tree_Write): Same fix
14554
14555 * opt.ads: Add new warning for renaming of function return objects
14556 (Generating_Code): New boolean variable used to indicate that the
14557 frontend as finished its work and has called the backend to process
14558 the tree and generate the object file.
14559 (GCC_Version): Is now private
14560 (Static_Dispatch_Tables): New constant declaration.
14561 (Overflow_Checks_Unsuppressed): New flag.
14562 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
14563 (List_Closure): New flag for gnatbind (-R)
14564 Zero_Formatting: New flag for gnatbind (-Z)
14565 (Special_Exception_Package_Used): New flag.
14566 (Warn_On_Unrepped_Components): New flag.
14567
14568 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
14569 unit is a compilation unit, rather than relying on its scope, so that
14570 Standard can be renamed.
14571 (Analyze_Object_Renaming): Add new warning for renaming of function
14572 return objects.
14573 Also reject attempt to rename function return object in Ada 83 mode.
14574 (Attribute_Renaming): In case of tagged types, add the body of the
14575 generated function to the freezing actions of the type.
14576 (Find_Type): A protected type is visible right after the reserved word
14577 "is" is encountered in its type declaration. Set the entity and type
14578 rather than emitting an error message.
14579 (New_Scope): Properly propagate Discard_Names to inner scopes
14580 (Check_Nested_Access): New procedure.
14581 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
14582 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14583
14584 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
14585 Add new warning for renaming of function return objects
14586 (Check_References): Suppress warnings for objects whose type or
14587 base type has Warnings suppressed.
14588 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
14589 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
14590
145912007-06-06 Vincent Celier <celier@adacore.com>
14592 Emmanuel Briot <briot@adacore.com>
14593 Olivier Hainque <hainque@adacore.com>
14594
14595 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
14596 absolute value of Header.Block_Size when displaying the freed physical
14597 memory in traces.
14598 (Allocate): Compute Storage_Address using Integer_Address, not
14599 Storage_Offset, because the range of Storage_Offset may not be large
14600 enough.
14601 (Configure): New parameter Low_Level_Traces
14602 (Allocate, Deallocation, Free_Physically): Added low-level traces
14603 (Configure): new parameter Errors_To_Stdout.
14604 (Output_File): new subprogram
14605 (Deallocate, Dereference): Send error messages to the proper stream
14606 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
14607 documented. Previous code would send it to the current output file
14608 defined in GNAT.IO, which might not be stdout
14609 (Is_Valid): Adjust comment to mention that a positive reply means that
14610 Header_Of may be used to retrieve the allocation header associated with
14611 the subprogram Storage address argument. Return False early if this
14612 address argument is misaligned.
14613
146142007-06-06 Vincent Celier <celier@adacore.com>
14615
14616 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
14617 switch -P
14618 (ASIS_Main): New global variable
14619 (Get_Closure): New procedure
14620 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
14621 check, metric or pretty. Call Get_Closure in this case.
14622 (Check_Files): For GNAT LIST, check all sources of all projects when
14623 All_Projects is True.
14624 (GNATCmd): Accept -U for GNAT LIST
14625
146262007-06-06 Vincent Celier <celier@adacore.com>
14627
14628 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
14629 has been specified
14630 Correct error message when invocation of the linker fails
14631 Add explicit size clause for the C imported variables
14632 Object_List_File_Supported and Using_GNU_Linker to emphasize that
14633 we expect char size.
14634 Read target parameters earlier, since this is needed to set
14635 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
14636 targets.
14637
146382007-06-06 Vincent Celier <celier@adacore.com>
14639
9e81dbc7 14640 * gnatls.adb:
ec11296f
AC
14641 Add 3 spaces before the default project directory when displaying
14642 the project search path.
14643 Add new command line switch '-l' to display license information.
14644
146452007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
14646
14647 * gmem.c: Add support for timestamps on memory operations.
14648
14649 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
14650 operations (not used currently, just foundation for future
14651 enhancements). Add possibility to perform full dump of gmem.out file.
14652 (Print_Back_Traces): Declare accesses to root arrays constants since
14653 they aren't modified.
14654 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
14655
146562007-06-06 Vincent Celier <celier@adacore.com>
14657
14658 * gnatsym.adb: Update Copyright notice
14659 (Parse_Cmd_Line): Accept new switch -D
14660 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
14661 file.
14662
14663 * prj.ads (Policy): New policy Direct
14664 (Yes_No_Unknown): New enumeration type
14665 (Project_Data): New component Libgnarl_Needed
14666
14667 * prj-nmsc.adb (Check_For_Source): When recording a source file make
14668 use the untouched pathname casing.
14669 (Get_Directories): Ensure that the Display_Exec_Directory is using the
14670 proper casing on non case-sensitive platforms like Windows.
14671 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
14672 on all platforms, as it is not possible to know which one is allowed
14673 before processing the project files.
14674 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
14675 specified when symbol policy is Direct. Check that when there is a
14676 symbol file defined (either by default or with attribute
14677 Library_Symbol_File) it is not the same as the reference symbol file.
14678 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
14679 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
14680 extending projects.
14681 (Record_Ada_Source): Record a source that has been locally removed in an
14682 imported project.
14683
14684 * symbols.ads (Policy): New policy Direct
14685
14686 * symbols-vms.adb (Initialize): Take new policy Direct in case
14687 statement
14688
146892007-06-06 Vincent Celier <celier@adacore.com>
14690
14691 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
14692 Correct obvious bug (return Dir; instead of return Directory;).
14693 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
14694
146952007-06-06 Thomas Quinot <quinot@adacore.com>
14696
14697 * g-pehage.adb (Produce): Open output files in Binary mode, so that
14698 they have UNIX line endings (LF only) even on Windows, and thus pass
14699 all GNAT style checks.
14700
147012007-06-06 Emmanuel Briot <briot@adacore.com>
14702
14703 * g-regpat.adb (Quote): Fix improper quoting of '.'
14704
147052007-06-06 Thomas Quinot <quinot@adacore.com>
14706
14707 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
14708 default, set False on a per-runtime basis.
14709 (Need_Netdb_Buffer): New constant.
14710
14711 * g-socket.ads, g-socket.adb: Import new package
14712 GNAT.Sockets.Thin.Task_Safe_NetDB.
14713 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
14714 binding to obtain proper message.
14715 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
14716 Replace various occurrences of Arry (Arry'First)'Address with the
14717 equivalent Arry'Address (GNAT always follows implementation advice from
14718 13.3(14)).
14719 (Get_Host_By_Address, Get_Host_By_Name,
14720 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
14721 instead, rely on platform-specific task safe netdb operations provided
14722 by g-socthi.
14723
14724 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
14725 parameter Process_Blocking_IO.
14726 (Host_Error_Messages): Add stub body.
14727 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14728 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
14729 Safe_Getservbyport): Move functions into new child package
14730 Task_Safe_NetDB.
14731 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
14732 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
14733 (In_Addr): Add alignment clause.
14734
147352007-06-06 Robert Dewar <dewar@adacore.com>
14736
14737 * g-trasym.ads, g-traceb.ads: Update list of supported targets
14738 Add note about symbolic traceback
14739
147402007-06-06 Pascal Obry <obry@adacore.com>
14741
14742 * hostparm.ads (Normalized_CWD): Use the host directory separator
14743 instead of the hardcoded forward slash which is not the proper
14744 character on Windows for example.
14745 (Java_VM): Removed.
14746
147472007-06-06 Vincent Celier <celier@adacore.com>
14748 Arnaud Charlet <charlet@adacore.com>
14749
14750 * a-clrefi.adb, a-clrefi.ads: New files
14751
14752 * impunit.adb: Add s-os_lib in the list of user visible units.
14753 (Non_Imp_File_Names_95): Add a-clrefi to this list
14754 Remove obsolete run-time entries.
14755 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
14756 "a-exetim" -- Ada.Execution_Time
14757 "a-extiti" -- Ada.Execution_Time.Timers
14758
14759 * mlib-prj.ads, mlib-prj.adb
14760 (Build_Library): Use untouched object dir and library dir. At the
14761 same time makes sure that the checks are done using the canonical
14762 form. Removes hard-coded directory separator and use the proper host
14763 one instead.
14764 (Process_Project): Do not look in object directory to check if libgnarl
14765 is needed for a library, if there is no object directory.
14766 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
14767 linking.
14768 (Build_Library): When invoking gnatbind, use a response file if the
14769 total size of the arguments is too large.
14770
14771 * Makefile.rtl: (g-sttsne): New object file.
14772 Add entry for a-clrefi, s-utf_32, System.Exceptions
14773
14774 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
14775 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
14776 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
14777 Change g-string to s-string, g-os_lib to s-os_lib
14778 Change all g-utf_32 references to s-utf_32
14779
147802007-06-06 Tristan Gingold <gingold@adacore.com>
14781 Olivier Hainque <hainque@adacore.com>
14782
14783 * init.c: Do not adjust IP of an imported VMS exception of ia64.
14784 LIB$STOP is called to raise an exception and the IP of the exception
14785 is the instruction right after the call.
14786 (__gnat_adjust_context_for_raise, AIX): Implement.
14787 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
14788 adjust_context_for_raise before Raise_From_Signal_Hanler.
14789 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
14790 siginfo is passed to the handler, necessary to let the zcx propagation
14791 engine unwind past it.
14792
147932007-06-06 Olivier Hainque <hainque@adacore.com>
14794
14795 * initialize.c (__gnat_initialize for vxworks): Update documentation
14796 on the ZCX support, using different sets of crtstuff objects than with
14797 GCC 3.4.
14798
147992007-06-06 Robert Dewar <dewar@adacore.com>
14800
14801 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
14802 spec from body
14803 (Layout_Type): Fix recomputation of size from alignment.
14804
148052007-06-06 Ed Schonberg <schonberg@adacore.com>
14806 Javier Miranda <miranda@adacore.com>
14807
14808 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
14809 association in an instance.
14810 (Copy_Generic_Node): If the node is a string literal, no need to copy
14811 its descendants.
14812 (Is_Generic_Formal): For a formal subprogram, the declaration is the
14813 grandparent of the entity.
14814 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
14815 to simplify handling of formal interfaces that derive from other formal
14816 interfaces.
14817 (Instantiate_Subprogram_Body): The defining unit name of the body of
14818 the instance should be a defining identifier.
14819 (Install_Formal_Packages): make global to the package, for use in
14820 instantiations of child units.
14821 (Analyze_Package_Instantiation): Do not attempt to set information on an
14822 enclosing master of an entry when expansion is disabled.
14823 (Instantiate_Type): If the actual is a tagged synchronized type and the
14824 generic ancestor is an interface, create a generic actual for the
14825 corresponding record.
14826 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
14827 declaration, to ensure that the interface list is processed correctly.
14828 (Inline_Instance_Body): If enclosing scope is an instance body, remove
14829 its entities from visibiility as well.
14830 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
14831 given with a named association, analyze the expression only, not the
14832 discriminant association itself.
14833 (Reset_Entity): If the analysis of a selected component is transformed
14834 into an expanded name in the prefix of a call with parameters, do not
14835 transform the original node into an expanded name, to prevent visibility
14836 errors in the case of nested generics.
14837 (Check_Private_View): For an array type, check whether the index types
14838 may need exchanging.
14839
148402007-06-06 Arnaud Charlet <charlet@adacore.com>
14841 Vincent Celier <celier@adacore.com>
14842
14843 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
14844 since both are separated.
14845 Add support for imported CIL packages.
14846 Add further special handling of "value_type" for CIL.
14847 Add special handling of pragma Import for CIL.
14848
14849 * make.ads, make.adb: When switch -eS is used, direct all outputs to
14850 standard output instead of standard error, except errors.
14851 (Absolute_Path): Use untouched casing for the parent directory.
14852 (Add_Library_Search_Dir): Use the untouched directory name.
14853 (Add_Source_Search_Dir): Idem.
14854 (Change_To_Object_Directory): Update output to use proper casing.
14855 (Create_Binder_Mapping_File): Use the untouched filename to set
14856 ALI_Name.
14857 (Gnatmake): Use untouched library and executable directory names.
14858 (Insert_Project_Sources): Use untouched filename for spec and body.
14859 (Is_In_Object_Directory): Use untouched object directory.
14860 (Mark_Directory): Idem.
14861 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
14862 contains the non-canonical filename in all cases.
14863 (Change_To_Object_Directory): In verbose mode, display the name of the
14864 object directory we're changing to.
14865 (Compile_Sources): Make sure, when a project file is used, to compile
14866 the body of the unit, when there is one, even when only the spec is
14867 recorded in an ALI file.
14868 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
14869 spec to the body.
14870 (Report_Compilation_Failed): New procedure
14871 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
14872 procedures moved from the spec to the body.
14873 (Extract_Failure): Removed, not used
14874 Replace explicit raises of exception Bind_Failed and Link_Failed with
14875 calls to Make_Failed with the proper message.
14876 Replace explicit raises of exception Compilation_Failed with calls to
14877 procedure Report_Compilation_Failed.
14878 (Initialize): Create mapping files unconditionally when using project
14879 files.
14880
14881 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
14882 Pragma_CIL_Constructor): New names.
14883
14884 * targparm.ads, targparm.adb
14885 (Compiler_System_Version): Removed, no longer used.
14886 (Get_Target_Parameters): Relax checks on system.ads validity. Add
14887 handling of two new system flags: JVM and CLI.
14888
148892007-06-06 Jose Ruiz <ruiz@adacore.com>
14890 Arnaud Charlet <charlet@adacore.com>
14891
14892 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
14893 time, use the default s-interr body that provides interrupt support
14894 based on signals.
14895 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
14896 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
14897 g-soccon.ads, and s-taprop.adb for the marte run time.
14898 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
14899 timers are supported on marte.
14900 (EH_MECHANISM for marte): Do not use ZCX.
14901 (THREADSLIB for marte): Use -lmarte.
14902 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
14903 Add mlib-tgt-specific.o to gnatmake objects
14904 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
14905 longer of MLib.Tgt.
14906 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
14907 6, either kernel or rtp, use a specialized version of s-osinte.ads.
14908
149092007-06-06 Pascal Obry <obry@adacore.com>
14910
14911 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
14912
149132007-06-06 Vincent Celier <celier@adacore.com>
14914
14915 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
14916 separator, use instead the proper host directory separator.
14917 (Copy_ALI_Files): Make sure that an already existing ALI file in the
14918 ALI copy dir is writable, before doing the copy.
14919
9e81dbc7 14920 * mlib-utl.ads, mlib-utl.adb:
ec11296f
AC
14921 (Gcc): If length of command line is too long, put the list of object
14922 files in a response file, if this is supported by the platform.
14923 (Ar): If invocation of the archive builder is allowed to be done in
14924 chunks and building it in one shot would go above an OS dependent
14925 limit on the number of characters on the command line, build the archive
14926 in chunks.
14927
149282007-06-06 Vincent Celier <celier@adacore.com>
14929
14930 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
14931 of specified object file is not equal to base name of source.
14932
149332007-06-06 Javier Miranda <miranda@adacore.com>
14934 Hristian Kirtchev <kirtchev@adacore.com>
14935 Ed Schonberg <schonberg@adacore.com>
14936
14937 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
14938 the full type declaration.
14939 (Analyze_Component_Declaration): Add local variable E to capture the
14940 initialization expression of the declaration. Replace the occurences of
14941 Expression (N) with E.
14942 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
14943 limited interface object with a function call.
14944 (Array_Type_Declaration): If the declaration lacks subtype marks for
14945 indices, create a simple index list to prevent cascaded errors.
14946 (Is_Null_Extension): Ignore internal components created for secondary
14947 tags when checking whether a record extension is a null extension.
14948 (Check_Abstract_Interfaces): Add missing support for interface subtypes
14949 and generic formals.
14950 (Derived_Type_Declaration): Add missing support for interface subtypes
14951 and generic formals.
14952 (Analyze_Object_Declaration): If an initialization expression is
14953 present, traverse its subtree and mark all allocators as static
14954 coextensions.
14955 (Add_Interface_Tag_Component): When looking for components that may be
14956 secondary tags, ignore pragmas that can appear within a record
14957 declaration.
14958 (Check_Abstract_Overriding): an inherited function that dispatches on
14959 result does not need to be overriden if the controlling type is a null
14960 extension.
14961 (Mentions_T): Handle properly a 'class attribute in an anonymous access
14962 component declaration, when the prefix is an expanded name.
14963 (Inherit_Component): If the derivation is for a private extension,
14964 inherited components remain visible and their ekind should not be set
14965 to Void.
14966 (Find_Type_Of_Object): In the case of an access definition, always set
14967 Is_Local_Anonymous_Access. We were previously not marking the anonymous
14968 access type of a return object as a local anonymous type.
14969 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
14970 range with character literal bounds.
14971 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
14972 (Access_Subprogram_Declaration): Indicate that the type declaration
14973 depends on an incomplete type only if the incomplete type is declared
14974 in an open scope.
14975 (Analyze_Subtype_Declaration): Handle properly subtypes of
14976 synchronized types that are tagged, and that may appear as generic
14977 actuals.
14978 (Access_Subprogram_Declaration): An anonymous access to subprogram can
14979 appear as an access discriminant in a private type declaration.
14980 (Add_Interface_Tag_Components): Complete decoration of the component
14981 containing the tag of a secondary dispatch table and the component
14982 containing the offset to the base of the object (this latter component
14983 is only generated when the parent type has discriminants --as documented
14984 in this routine).
14985 (Inherit_Components): Use the new decoration of the tag components to
14986 improve the condition that avoids inheriting the components associated
14987 with secondary tags of the parent.
14988 (Build_Discriminanted_Subtype): Indicate to the backend that the
14989 size of record types associated with dispatch tables is known at
14990 compile time.
14991 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
14992 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
14993 to include task, protected, and synchronized interfaces as limited
14994 interfaces.
14995 (Process_Discriminants): Remove the setting of
14996 Is_Local_Anonymous_Access on the type of (anonymous) access
14997 discriminants of nonlimited types.
14998 (Analyze_Interface_Type_Declaration): Complete the decoration of the
14999 class-wide entity it is is already present. This situation occurs if
15000 the limited-view has been previously built.
15001 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
15002 field.
15003 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
15004 Related_Interface.
15005
150062007-06-06 Ed Schonberg <schonberg@adacore.com>
15007
15008 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
15009 of the type that specify the position of interface tags when the type
15010 inherits discriminated array components from the parent type.
15011 If a component is initialized with a box, check for the presence of a
15012 default expression in its declaration before using its default
15013 initialization procedure.
15014 (Resolve_Record_Aggregate): If a component is box-initialized, and the
15015 component type has a discriminants, create a partial aggregate for it
15016 by copying the discriminants of the component subtype.
15017 Reject attempt to initialize a discriminant with a box.
15018 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
15019 associated with dispatch tables is known at compile time.
15020 (Get_Value): If an association in a record aggregate has a box
15021 association, and the corresponding record component has a default
15022 expression, always copy the default expression, even when the
15023 association has a single choice, in order to create a proper
15024 association for the expanded aggregate.
15025
150262007-06-06 Ed Schonberg <schonberg@adacore.com>
15027 Robert Dewar <dewar@adacore.com>
15028
15029 * par-ch12.adb (P_Generic_Associations): The source position of an
15030 Others association is that of the others keyword, not that of the token
15031 that follows the box.
15032 (P_Formal_Type_Definition): Handle formal access types that carry a
15033 not null indicator.
15034
15035 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
15036 multiple identifier are present, save Scan_State before scanning the
15037 colon, to ensure that separate trees are constructed for each
15038 declaration.
15039 (P_Identifier_Declarations): For object declaration, set new flag
15040 Has_Init_Expression if initialization expression present.
15041 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
15042 Improve NOT NULL error messages
15043
150442007-06-06 Robert Dewar <dewar@adacore.com>
15045
15046 * par-ch4.adb: (P_Name): Recover from literal used as name
15047
150482007-06-06 Vincent Celier <celier@adacore.com>
15049
15050 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
15051 defaulted to False.
15052 In the "not" case, recursive call with Complemented set to True.
15053 Do not allow "or" or "and" operators when Complemented is True.
15054
150552007-06-06 Vincent Celier <celier@adacore.com>
15056
15057 * prj.adb (Project_Empty): Gives default value for new component
15058 Libgnarl_Needed
15059
15060 * prj-attr.ads: Minor reformatting
15061
15062 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
15063 directory using the untouched casing.
15064 (For_All_Source_Dirs): Idem.
15065
15066 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
15067 directories specified with switches -aP.
15068 (Add_Search_Project_Directory): New procedure
15069 (Initialize_Project_Path): Put the directories in table
15070 Search_Directories in the project search path.
15071 (Initialize_Project_Path): For VMS, transform into canonical form the
15072 project path.
15073
150742007-06-06 Arnaud Charlet <charlet@adacore.com>
15075
15076 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
15077 true if configurable run-time or No_Run_Time is set.
15078 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
15079 processing an unit which is not the one being compiled.
15080
150812007-06-06 Arnaud Charlet <charlet@adacore.com>
15082
15083 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
15084 Replace UC by Ada.UC
15085
15086 * s-bitops.adb: Get rid of System.Pure_Exceptions.
15087 Replace UC by Ada.UC
15088
150892007-06-06 Robert Dewar <dewar@adacore.com>
15090
15091 * scng.adb: (Check_End_Of_Line): Deal with very long lines
15092
150932007-06-06 Robert Dewar <dewar@adacore.com>
15094
15095 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
15096 Remove no longer used nodes.
15097
150982007-06-06 Javier Miranda <miranda@adacore.com>
15099 Ed Schonberg <schonberg@adacore.com>
15100 Robert Dewar <dewar@adacore.com>
15101
15102 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
15103 on obsolescent withed unit in case of limited-withed units.
15104 (Analyze_Compilation_Unit): Add guard to code that removed an
15105 instantiation from visibility, to prevent compiler aborts when
15106 instantiation is abandoned early on.
15107 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
15108 current unit being analyzed, and Distinguish local incomplete types
15109 from limited views of types declared elsewhere.
15110 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
15111 to state that the class-wide entity is shared by the limited-view
15112 and the full-view.
15113 (Analyze_With_Clause): Improve placement of flag for case of
15114 unimplemented unit.
15115 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
15116 manner similar to GNAT.Current_Exception. This is a violation of
15117 restriction (No_Exception_Propagation), and also inhibits the
15118 optimization of local raise to goto.
15119 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
15120 and if so set Most_Recent_Exception_Used flag in Opt, and also check
15121 for violation of restriction No_Exception_Propagation.
15122
151232007-06-06 Javier Miranda <miranda@adacore.com>
15124 Hristian Kirtchev <kirtchev@adacore.com>
15125 Gary Dismukes <dismukes@adacore.com>
15126
15127 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
15128 use of entity Exception_Occurrence if it is not available in the
15129 target run-time.
15130
15131 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
15132 concurrent types are declared within an Ada 2005 generic, build their
15133 corresponding record types since they are needed for overriding-related
15134 semantic checks.
15135 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
15136 protected type does not implement a task interface or a nonlimited
15137 interface.
15138 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
15139 type does not implement a protected interface or a nonlimited interface.
15140 (Single_Task_Declaration, Single_Protected_Declaration): use original
15141 entity for variable declaration, to ensure that debugging information
15142 is correcty generated.
15143 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
15144 routines if the expander is not active.
15145 (Analyze_Task_Body): Mark all handlers to stop optimization of local
15146 raise, since special things happen for task exception handlers.
15147
15148 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
15149 concurrent types declared within a generic.
15150 (Check_Dispatching_Operation): Do not emit warning about late interface
15151 operations in the context of an instance.
15152 (Check_Dispatching_Call): Remove restriction against calling a
15153 dispatching operation with a limited controlling result.
15154 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
15155 Register_Interface_DT_Entry by calls to Register_Primitive.
15156 (Check_Dispatching_Formals): Handle properly a function with a
15157 controlling access result.
15158
151592007-06-06 Robert Dewar <dewar@adacore.com>
15160 Arnaud Charlet <charlet@adacore.com>
15161
15162 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
15163 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
15164 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
15165 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
15166 message when using a VM, since this attribute is not supported.
15167 (Analyze_Record_Representation_Clause): Give unrepped component warnings
15168
15169 * usage.adb: Add new warning for renaming of function return objects
15170 Indicate that -gnatwp and -gnatwP concern front-end inlining
15171 Add line for -gnatyg
15172 Add usage information for -gnatw.c/C
15173
151742007-06-06 Robert Dewar <dewar@adacore.com>
15175 Ed Schonberg <schonberg@adacore.com>
15176
15177 * sem_ch5.adb
15178 (Find_Var): Do not consider function call in test for infinite loop
15179 warning if warnings set off for function entity.
15180 (One_Bound): Do not create a temporary for a loop bound if it is a
15181 character literal.
15182 (Analyze_Assignment): Traverse the right hand side of an assignment and
15183 mark all allocators as static coextensions.
15184 (Analyze_Assignment): Exempt assignments involving a dispatching call
15185 to a function with a controlling access result from the check requiring
15186 the target to be class-wide.
15187
151882007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15189 Ed Schonberg <schonberg@adacore.com>
15190 Robert Dewar <dewar@adacore.com>
15191 Javier Miranda <miranda@adacore.com>
15192
15193 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
15194 chain of coextensions when an allocator serves as the root of such a
15195 chain.
15196 (Propagate_Coextensions): Remove the test for the root being an
15197 allocator.
15198 (Resolve_Allocator): Add condition to ensure that all future decoration
15199 occurs on an allocator node. Add processing and cleanup for static
15200 coextensions.
15201 (Valid_Conversion): If the operand type is the limited view of a
15202 class-wide type, use the non-limited view is available to determine
15203 legality of operation.
15204 (Ambiguous_Character): move to spec, for use elsewhere.
15205 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
15206 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
15207 character literals.
15208 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
15209 Do_Division_Check flag explicitly.
15210 (Resolve_Actuals): If the actual is of a synchronized type, and the
15211 formal is of the corresponding record type, this is a call to a
15212 primitive operation of the type, that is declared outside of the type;
15213 the actual must be unchecked-converted to the type of the actual
15214 (Resolve_Call): Kill all current values for any subprogram call if
15215 flag Suppress_Value_Tracking_On_Call is set.
15216 (Resolve_Type_Conversion): Generate error message the the operand
15217 or target of interface conversions come from a limited view.
15218 (Check_Infinite_Recursion): Ignore generated calls
15219 (Check_Allocator_Discrim_Accessibility): New procedure for checking
15220 that an expression that constrains an access discriminant in an
15221 allocator does not denote an object with a deeper level than the
15222 allocator's access type.
15223 (Resolve_Allocator): In the case of an allocator initialized by an
15224 aggregate of a discriminated type, check that associations for any
15225 access discriminants satisfy accessibility requirements by calling
15226 Check_Allocator_Discrim_Accessibility.
15227 (Resolve_Equality_Op): Handle comparisons of anonymous access to
15228 subprogram types in the same fashion as other anonymous access types.
15229 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
15230 message that is not a continuation message.
15231 (Resolve_Type_Conversion): Add missing support for conversion to
15232 interface type.
15233 (Resolve_Actuals): Introduce a transient scope around the call if an
15234 actual is a call to a function returning a limited type, because the
15235 resulting value must be finalized after the call.
15236 (Resolve_Actuals): If the call was given in prefix notations, check
15237 whether an implicit 'Access reference or implicit dereference must be
15238 added to make the actual conform to the controlling formal.
15239
152402007-06-06 Robert Dewar <dewar@adacore.com>
15241 Javier Miranda <miranda@adacore.com>
15242
15243 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
15244 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
15245 overriding of an inherited private subprogram now there is no need to
15246 inherit its dispatching slot and reduce the size of the dispatch table.
15247 Set_All_DT_Position now ensures that the same slot is now assigned to
15248 both entities. This is required to statically build the dispatch table.
15249 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
15250 of calling Set_All_DT_Position to re-evaluate the position of the
15251 entries in the dispatch table. Such reevaluation is not desired if
15252 the tagged type is already frozen.
15253
152542007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15255 Gary Dismukes <dismukes@adacore.com>
15256 Robert Dewar <dewar@adacore.com>
15257 Javier Miranda <miranda@adacore.com>
15258
15259 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
15260 reference acts as an lvalue when the attribute name modifies the prefix
15261 (Is_Coextension_Root): New routine.
15262 (Mark_Static_Coextensions): New routine.
15263 (Type_Access_Level): Revise code for checking the level of the
15264 anonymous access type of a return object.
15265 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
15266 (Matches_Prefixed_View_Profile): Remove the no longer necessary
15267 retrieval of the corresponding controlling record type.
15268 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
15269 concurrent types declared within a generic as well as class wide types.
15270 Emit a mode incompatibility error whenever a protected entry or routine
15271 override an interface routine whose first parameter is not of mode
15272 "out", "in out" or access to variable.
15273 (Overrides_Synchronized_Primitive): Rename to
15274 Find_Overridden_Synchronized_Primitive.
15275 (Collect_Interface_Components): New subprogram that collects all the
15276 components of a tagged record containing tags of secondary dispatch
15277 tables.
15278 (Add_Global_Declaration): New procedure
15279 (Abstract_Interface_List): Handle properly the case of a subtype of a
15280 private extension.
15281 (Type_Access_Level): In the case of a type whose parent scope is a
15282 return statement, call Type_Access_Level recursively on the enclosing
15283 function's result type to determine the level of the return object's
15284 type.
15285 (Build_Elaboration_Entity): Build name of elaboration entity from the
15286 scope chain of the entity, rather than the unit name of the file name.
15287 (Check_Nested_Access): New procedure.
15288 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
15289 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
15290 (Get_Renamed_Entity): Utility routine for performing common operation
15291 of chasing the Renamed_Entity field of an entity.
15292
152932007-06-06 Robert Dewar <dewar@adacore.com>
15294
15295 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
15296 elaboration model
15297 (Check_A_Call): Add check for entry call which was causing blowup
15298
152992007-06-06 Olivier Hainque <hainque@adacore.com>
15300
15301 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
15302 special code on ia64-vms to handle major incompatibilities between the
15303 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
15304 this routine with a very different set of arguments and expectations on
15305 the return value.
15306
153072007-06-06 Thomas Quinot <quinot@adacore.com>
15308
15309 * socket.c (__gnat_close_signalling_fd): New function.
15310 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
15311 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
15312 New supporting functions for task safe Netdb operations.
15313
153142007-06-06 Thomas Quinot <quinot@adacore.com>
15315 Olivier Hainque <hainque@adacore.com>
15316
15317 * a-except-2005.ads, a-except-2005.adb
15318 (Raise_From_Controlled_Operation): New procedure in
15319 (private part of) Ada.Exceptions (standard runtime version). Used to
15320 provide informational exception message when Program_Error is raised as
15321 a result of an Adjust or Finalize operation propagating an exception.
15322 (Rmsg_28): Fix description for E.4(18) check.
15323 (Raise_Current_Excep): Call Debug_Raise_Exception just before
15324 propagation starts, to let debuggers know about the event in a reliable
15325 fashion.
15326 Take the address of E and dereference to make sure it is homed on stack
15327 and prevent the stores from being deleted, necessary for proper
15328 debugger behavior on "break exception" hits.
15329 (Local_Raise): Moved to System.Exceptions
15330
15331 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
15332 exception message from the current occurrence and raise Program_Error
15333 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
15334
153352007-06-06 Jose Ruiz <ruiz@adacore.com>
15336 Arnaud Charlet <charlet@adacore.com>
15337
15338 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
15339 lock, if needed.
15340
15341 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
15342 priority associated to a lock.
15343
15344 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
15345 assertion to take into account case of no abort restriction.
15346 (Initialize_Protection_Entries): Add initialization for the field
15347 New_Ceiling associated to the protected object.
15348 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
15349 needed.
15350
15351 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
15352 since this function needs to be set consistently with Update_Exception.
15353
15354 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
15355 since this function needs to be set consistently with Update_Exception.
15356
15357 * s-taskin.ads: Update comments on
15358 Interrupt_Server_Blocked_On_Event_Flag.
15359 (Unbind_Handler): Fix handling of server_task wakeup
15360 (Server_Task): Set self's state so that Unbind_Handler can take
15361 appropriate actions.
15362 (Common_ATCB): Now use a constant from System.Parameters to determine
15363 the max size of the Task_Image field.
15364
15365 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
15366 Initialize_Analyzer function.
15367 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
15368 take into account case of no abort restriction.
15369 ([Vulnerable_]Complete_Master): Modify assertion.
15370
15371 * s-tataat.adb (Finalize): Use the nestable versions of
15372 Defer/Undefer_Abort.
15373
15374 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
15375
15376 * s-tpobop.ads: Update comments.
15377
15378 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
15379 of locking the object manually, to avoid inconsistencies between
15380 Lock/Unlock_Entry assertions.
15381
15382 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
15383 terminating
15384 application and System.Parameters.No_Abort is True.
15385 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
15386 (Unbind_Handler): Fix handling of server_task wakeup
15387 (Server_Task): Set self's state so that Unbind_Handler can take
15388 appropriate actions.
15389
153902007-06-06 Thomas Quinot <quinot@adacore.com>
15391
15392 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
15393 declarations instead of an explicit null body, for conciseness.
15394
153952007-06-06 Robert Dewar <dewar@adacore.com>
15396
15397 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
15398 illegal aggregate and the type is still Any_Composite.
15399 (Subtypes_Statically_Match): Fix problem of empty discriminant list
15400
154012007-06-06 Ed Schonberg <schonberg@adacore.com>
15402
15403 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
15404 to prevent subsequent expansion.
15405
154062007-06-06 Robert Dewar <dewar@adacore.com>
15407
15408 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
15409
154102007-06-06 Ed Schonberg <schonberg@adacore.com>
15411 Robert Dewar <dewar@adacore.com>
15412
15413 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
15414 exceptions.
15415 (Write_Itype): Handle case of string literal subtype, which
15416 comes up in this context.
15417 (Update_Itype): when debugging expanded code, update sloc of itypes
15418 associated with defining_identifiers and ranges, for gdb use.
15419 (Sprint_Node_Actual): Add static keyword to object or exception
15420 declaration output if Is_Statically_Allocated is True.
15421 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
15422 or task body, so that the tree carries the proper Sloc information for
15423 debugging use.
15424 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
15425
154262007-06-06 Arnaud Charlet <charlet@adacore.com>
15427
15428 * s-secsta.adb (Chunk): Ensure this object has a static size known at
15429 compile time, to avoid dynamic memory allocation
15430 (Elaboration code): Only use dynamic memory allocation when needed.
15431
154322007-06-06 Quentin Ochem <ochem@adacore.com>
15433
15434 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
15435 "Overflow_Guard".
15436 (Stack_Analyzer): Added field "Overflow_Guard"
15437 (Task_Result): Added field "Overflow_Guard".
15438 (Index_Str): New constant.
15439 (Task_Name_Str): New constant.
15440 (Actual_Size_Str): New constant.
15441 (Pattern_Array_Element_Size): New constant.
15442 (Get_Usage_Range): New subprogram.
15443 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
15444 Now align the output.
15445 Added comments.
15446 (Initialize): Added value for Overflow_Guard.
15447 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
15448 Update the value of the overflow guard according to the actual
15449 beginning of the pattern array.
15450 (Initialize_Analyzer): Added parameter Overflow_Guard.
15451 Take this parameter into accound when computing the max size.
15452 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
15453 (Report_Result): Removed extra useless procedure.
15454 Updated call to Output_Result.
15455 Moved full computation of the Task_Result here.
15456
154572007-06-06 Thomas Quinot <quinot@adacore.com>
15458
15459 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
15460 Thread_Blocking_IO, always True by default, set False on a per-runtime
15461 basis.
15462 Add Windows-specific constants
15463 Add new constant Need_Netdb_Buffer.
15464 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
15465 not, whether to use getXXXbyYYY_r.
15466
15467 * gsocket.h: Add new constant Need_Netdb_Buffer.
15468 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
15469 not, whether to use getXXXbyYYY_r.
15470
154712007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15472
15473 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
15474 than their first call.
15475 Add type Dummy_Communication_Block used in the generation of the pre-
15476 defined dispatching primitive _disp_asynchronous_select.
15477 (Storage_Element): Put Pragma Universal_Aliasing on it.
15478
154792007-06-06 Vincent Celier <celier@adacore.com>
15480
15481 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
15482 function.
15483
15484 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
15485 letter if it is not followed by a '/' or a '\'.
15486 (Windows): New Boolean function
15487
15488 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
15489 Ada 2005.
15490 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
15491 drive letter.
15492 (Containing_Directory): Raise Use_Error when the directory is a root
15493 directory.
15494 (Extension): When returning the result, use a conversion to Result_Type,
15495 not a qualification.
15496
154972007-06-06 Robert Dewar <dewar@adacore.com>
15498
15499 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
15500 (Set_Style_Check_Options): Recognize new -gnatyg style switch
15501
15502 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
15503 Warn_On_Non_Local_Exception to False, to turn off warnings for
15504 No_Exception_Propagation in ZFP runtime.
15505 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
15506 back-ends.
15507 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
15508
155092007-06-06 Vincent Celier <celier@adacore.com>
15510
15511 * switch-b.adb (Scan_Binder_Switches): Add processing for new
15512 switches -R and -Z
15513
15514 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
15515 (Scan_Make_Switches): Recognize new switch -aP
15516
155172007-06-06 Matthew Gingell <gingell@adacore.com>
15518 Jose Ruiz <ruiz@adacore.com>
15519
15520 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
15521 VxWorks task descriptor in the Ada run time, call a C subprogram
15522 (__gnat_get_stack_info) that extracts the required information.
15523
15524 * sysdep.c: Back out temporary lynxos workaround.
15525 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
15526 time the stack information associated to the currently executing task.
15527 Only VxWorks systems require this function.
15528
155292007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15530
15531 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
15532 add the stack bias if the offset is computed from a frame address.
15533 (__gnat_backtrace): Adjust for above change.
15534
155352007-06-06 Thomas Quinot <quinot@adacore.com>
15536
15537 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
15538 PE_Non_Transportable_Actual.
15539 (By_Descriptor_Last): New constant.
15540 (By_Copy_Return): Likewise.
15541
155422007-06-06 Vincent Celier <celier@adacore.com>
15543
15544 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
15545 is.
15546
15547 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
15548 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
15549 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
15550 Add missing comment for /OPTIMIZE=SPACE
15551 Add entry for OPTIMIZE=SPACE
15552 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
15553 Add documentation for new qualifiers corresponding to -gnatw.c/.C
15554
155552007-06-06 Vincent Celier <celier@adacore.com>
15556 Robert Dewar <dewar@adacore.com>
15557
15558 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
15559 -gnatw.C)
15560
15561 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
15562 Document gnatbind switch -a
15563 (case Constructions): Document that variables declarations are allowed
15564 for previously declared variables.
15565 Fix external lib project example
15566 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
15567 Indicate that "#if not X or Y then" is not allowed in input files to
15568 gnatprep.
15569 Document gnatw.x and gnatw.X warning flags
15570 Mention -Winline switch to activate warnings when back-end inlining is
15571 ineffective.
15572 Add gnatcheck rule descriptions
15573 Describe how to use the GNAT driver to call a tool on a closure.
15574 Describe how to run project-wide checks or metrics.
15575 Document gnatbind's -R option
15576 Updated to account for Ada 2005 support
15577
15578 * gnat_rm.texi (Case Construction): Allow variable declarations for
15579 previously declared variables.
15580 (Representation Clauses and Pragmas): Lift restriction on alignment
15581 clauses for record types.
15582 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
15583 Document No_Exception_Propagation restriction
15584 Document No_Body pragma
15585 Updated to account for Ada 2005 support; corrected some typos
15586 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
15587
15588 * gnat-style.texi: Make it clear that we never use mode IN for
15589 procedures or functions
15590
15591 * ug_words: Add entries for -gnatw.x and -gnatw.X
15592 Add entries for -gnatw.c/.C
15593
155942007-06-06 Pascal Obry <obry@adacore.com>
15595 Vincent Celier <celier@adacore.com>
15596
15597 * makegpr.adb (Add_Archive_Path): Use untouched object and library
15598 dirs and library name.
15599 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
15600 comments.
15601 (Build_Library): Idem.
15602 (Compile_Individual_Sources): Idem.
15603 (Compile_Link_With_Gnatmake): Idem.
15604 (Compile_Sources): Idem.
15605 (Get_Imported_Directories): Idem.
15606 (Link_Executables): Idem. Same change for the executable dir.
15607 (Check_Compilation_Needed): C_Source_Path new variable containing
15608 the canonical form of Source_Path to check against the source names
15609 in the dependency file.
15610 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
15611 verbose mode, display the name of the object directory we're changing
15612 to.
15613 (Saved_Switches): New name of table X_Switches
15614 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
15615 (Usage): New line for switch -aP
15616 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
15617 testing if a directory should be added to the search path.
15618
156192007-06-06 Javier Miranda <miranda@adacore.com>
15620
9e81dbc7 15621 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
ec11296f
AC
15622 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
15623 declaration after freezing point of all its associated tagged types;
15624 otherwise such types are frozen too early.
15625
156262007-06-06 Robert Dewar <dewar@adacore.com>
15627
15628 * a-reatim.adb: Documentation addition
15629
15630 * g-cgideb.adb: Minor code reorganization
15631
15632 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
15633 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
15634 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
15635
15636 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
15637 function. Change name New_Scope to Push_Scope
15638 (Get_Debug_Flag_K): Remove unused obsolete function.
15639
15640 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
15641 Push_Scope.
15642
15643 * makeusg.adb: Update Copyright notice
15644 Add line for switch -aP
15645
15646 * makeusg.adb: Fix wording of some usage messages
15647
15648 * s-assert.adb (Raise_Assert_Failure): Add call to
15649 Debug_Raise_Assert_Failure.
15650
15651 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
15652 (2, Standard'Alignment) for compatibility with AAMP (where alignment
15653 is restricted to 1).
15654
15655 * s-wchjis.adb: Remove use of System.Pure_Exceptions
15656
15657 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
15658 node location to No_Location when we're not debugging the expanded
15659 code.
15660
dbc30a96
AO
156612007-05-22 Alexandre Oliva <aoliva@redhat.com>
15662
15663 * misc.c (enumerate_modes): Consider log2_b to always be one.
15664
719bb4e3 156652007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
ca5ba2a3
RAE
15666
15667 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
15668
d7598e11
PO
156692007-05-02 Pascal Obry <obry@adacore.com>
15670
15671 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
15672 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
15673 encoding support of Stream_IO.
15674 (Write_Unit): Idem.
15675
15676 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
15677 filename and corresponding encoding to match the OS requirement.
15678 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
15679 routine will fail on specific devices like CON: AUX: ...
15680
15681 PR ada/29856: Add missing braces
15682
1be52f61
AP
156832007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
15684
15685 PR ada/31660
15686 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
15687
395a40e0
JH
156882007-04-21 Jan Hubicka <jh@suse.cz>
15689
15690 * misc.c (gnat_expand_body): Don't call target for destructors,
15691 avoid redundant check on syntax errors.
15692
3d95caa4
AP
156932007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15694
15695 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
15696 instead of checking GIMPLE_STMT_P in chain_next.
15697
ea30850a
AK
156982007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
15699
15700 PR ada/31576
15701 * system-linux-alpha.ads: Disable constant condition warning for the
15702 Default_Bit_Order variable.
15703 * system-linux-s390.ads: Likewise.
15704 * system-linux-s390x.ads: Likewise.
15705 * system-linux-sparc.ads: Likewise.
15706
4b437c6b
AC
157072007-04-06 Javier Miranda <miranda@adacore.com>
15708 Matt Heaney <heaney@adacore.com>
15709 Robert Dewar <dewar@adacore.com>
15710
15711 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
15712 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
15713 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
15714 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
15715 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
15716 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
15717 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
15718 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
15719 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
15720 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
15721 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
15722 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
15723 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
15724 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
15725 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
15726 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
15727 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
15728 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
15729 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
15730 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
15731 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
15732 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
15733 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
15734 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
15735 s-taprop-tru64.adb, s-taprop-irix.adb,
15736 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
15737 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
15738 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
9e81dbc7
AS
15739 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
15740 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
15741 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
15742 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
15743 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
15744 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
15745 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
15746 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
15747 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
15748 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
15749 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
15750 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
15751 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
15752 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4b437c6b 15753 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
9e81dbc7 15754 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4b437c6b
AC
15755 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
15756 access types.
15757 Update documentation.
15758 Minor rewording.
15759
157602007-04-06 Robert Dewar <dewar@adacore.com>
15761
15762 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15763 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
15764 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
15765 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15766 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
15767 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15768 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15769 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
15770 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
9e81dbc7 15771 system-hpux-ia64.ads, targparm.adb,
4b437c6b
AC
15772 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
15773
15774 * system.ads: Move Functions_Return_By_DSP to obsolete section,
15775 kept for bootstrap purposes only.
15776
157772007-04-06 Arnaud Charlet <charlet@adacore.com>
15778
15779 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15780 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
15781 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
15782 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
15783
157842007-04-06 Robert Dewar <dewar@adacore.com>
15785
15786 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
15787 (Local_Raise): New dummy procedure called when a raise is converted
15788 to a local goto. Used for debugger to detect that the exception
15789 is raised.
15790
15791 * debug.adb: Document new d.g flag (expand local raise statements to
15792 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
15793
15794 * exp_sel.adb: Use Make_Implicit_Exception_Handler
15795
15796 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
15797 suppress warnings for unused handlers.
15798 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
15799 warnings for raise statements not handled locally.
15800 (Get_RT_Exception_Entity): New function
15801 (Get_Local_Call_Entity): New function
15802 (Find_Local_Handler): New function
15803 (Warn_If_No_Propagation): New procedure
15804 (Expand_At_End_Handler): Call Make_Implicit_Handler
15805 (Expand_Exception_Handlers): Major additions to deal with local handlers
15806 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
15807 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
15808 for local raise
15809
15810 * exp_ch11.ads (Get_RT_Exception_Entity): New function
15811 (Get_Local_Call_Entity): New function
15812
15813 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
15814 of restrictions that the binder will never suggest adding.
15815
15816 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
15817 to No_Elist.
15818
15819 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
15820 be with'ed in the presence of pragma Restriction
15821 (No_Exception_Propagation).
15822
15823 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
15824
15825 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
15826 parameter, then the handler is not a suitable target for a local raise,
15827 and this is a violation of restriction No_Exception_Propagation.
15828 (Analyze_Handled_Statements): Analyze choice parameters in exception
15829 handlers before analyzing statement sequence (needed for proper
15830 detection of local raise statements).
15831 (Analyze_Raise_Statement): Reraise statement is a violation of the
15832 No_Exception_Propagation restriction.
15833
15834 * s-rident.ads: Add new restriction No_Exception_Propagation
15835
15836 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
15837 function, like Make_Exception_Handler but sets Local_Raise_Statements
15838 to No_List.
15839 (Add_Unique_Serial_Number): Deal with case where this is called during
15840 processing of configuration pragmas.
15841
158422007-04-06 Thomas Quinot <quinot@adacore.com>
15843 Pat Rogers <rogers@adacore.com>
15844 Pascal Obry <obry@adacore.com>
15845
15846 * g-stsifd-sockets.adb: New file.
15847
15848 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
15849 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
15850 g-socthi-vms.adb: Move signalling
15851 fd management to a nested package, so that they can conveniently be
15852 moved to a subunit that is shared across Windows, VMS, and VxWorks
15853 (Ada implementation) or completed with imported bodies from socket.c
15854 (UNIX case).
15855 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
15856 subprograms.
15857 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
15858 the signalling file descriptor.
15859 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
15860 signalling file descriptor.
15861 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
15862 instead of creating a pair of sockets for signalling here.
15863
15864 * g-socthi.adb: Ditto.
15865 Set the runtime process to ignore SIGPIPEs on platforms that support
15866 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15867
15868 * g-socthi-mingw.adb: Ditto.
15869 (WS_Version): Use Windows 2.2.
15870 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15871
15872 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
15873 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
15874
15875 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
15876 added GNAT byte swapping facility
15877 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
15878
15879 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
15880
15881 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
15882 New subprograms.
15883 (__gnat_create_signalling_fds): New subprogram.
15884 Set the runtime process to ignore SIGPIPEs on platforms that support
15885 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
15886
158872007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
15888 Vincent Celier <celier@adacore.com>
15889
15890 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
15891 New version of Ada.Calendar which supports the new upper bound of Ada
15892 time (2399-12-31 86_399.999999999).
15893 The following modifications have been made to the package:
15894 - New representation of time as count of nanoseconds since the start of
15895 Ada time (1901-1-1 0.0).
15896 - Target independent Split and Time_Of routines which service both
15897 Ada 95 and Ada 2005 code.
15898 - Target independent interface to the Ada 2005 children of Calendar.
15899 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
15900 - Handling of non-leap centenial years.
15901 - Updated clock function.
15902 - Updated arithmetic and comparison operators.
15903
15904 * a-caldel.adb (To_Duration): Add call to target independent routine in
15905 Ada.Calendar to handle the conversion of time to duration.
15906
15907 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
15908 (UTC Offset).
15909 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
15910 set off to 0.
15911 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
15912 targets do not have a natural time zone, GMT is used as a default.
15913 (__gnat_get_task_options): New.
15914
15915 * a-direct.adb (Modification_Time): Add with and use clauses for
15916 Ada.Calendar and Ada.
15917 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
15918 since it is no longer needed.
15919 (Duration_To_Time): Removed.
15920 (OS_Time_To_Long_Integer): Removed.
15921 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
15922 Formatting Time_Of routines which automatically handle time zones,
15923 buffer periods and leap seconds.
15924
15925 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
15926 target independent routines in Ada.Calendar.
15927
9e81dbc7 15928 * a-calfor.ads, a-calfor.adb:
4b437c6b
AC
15929 Code cleanup and addition of validity checks in various routines.
15930 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
15931 Ada.Calendar.
15932
15933 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
15934 independent routine in Ada.Calendar.
15935
159362007-04-06 Olivier Hainque <hainque@adacore.com>
15937
9e81dbc7 15938 * adaint.c:
4b437c6b
AC
15939 (convert_addresses): Adjust prototype and dummy definition to expect an
15940 extra file_name argument.
15941
15942 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
15943 filling the now expected file_name argument with the appropriate
15944 argv[0] expansion.
15945 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
15946 (tracebk): Array of void * instead of char *, corresponding to what
15947 convert_addresses expects.
15948 (exename): New static global, to hold the executable file name to be
15949 used in all convert_addresses invocations.
15950 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
15951 change.
15952 (__gnat_gmem_a2l_initialize): Resolve exename.
15953 (__gnat_convert_addresses): Use exename as the convert_addresses
15954 file_name argument.
15955
15956 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
15957 "convert_addresses", now expecting a filename argument. Import the
15958 necessary entities to compute the filename to use and pass it to
15959 convert_addresses.
15960
159612007-04-06 Matt Gingell <gingell@adacore.com>
15962
15963 * system-aix.ads: Back out previous change.
15964 (Functions_Return_By_DSP): Removed
15965
159662007-04-06 Pascal Obry <obry@adacore.com>
15967
15968 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
15969 or the monotonic used by Ada.Real_Time) to compute the sleep duration
15970 on Windows.
15971
159722007-04-06 Jose Ruiz <ruiz@adacore.com>
15973
15974 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
15975 function. Its value changes in different VxWorks versions, and it is
15976 now handled by the function __gnat_get_task_options.
15977
15978 * s-taprop-vxworks.adb (Create_Task): Call the function
15979 __gnat_get_task_options to get the required options for creating a task.
15980
159812007-04-06 Pascal Obry <obry@adacore.com>
15982 Thomas Quinot <quinot@adacore.com>
15983
15984 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
15985 dealing with filename.
15986 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
15987 filename from a standard string to a wide-string depending on the
15988 encoding value.
15989 (__gnat_freopen): Idem.
15990 (__gnat_current_time): New function (wrapper for time(3) standard C
15991 function).
15992
15993 * g-os_lib.ads (Current_Time): New function. Returns the current
15994 system time as an OS_Time value.
15995
15996 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
15997 (Monotonic_Clock): Same.
15998
159992007-04-06 Quentin Ochem <ochem@adacore.com>
16000
16001 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
16002 not on a natural.
16003 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
16004
160052007-04-06 Jose Ruiz <ruiz@adacore.com>
16006
16007 * a-retide.adb: Add elaboration code to ensure that the tasking run
16008 time is initialized when using delay operations even when no task is
16009 created.
16010
160112007-04-06 Javier Miranda <miranda@adacore.com>
16012
16013 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
16014 component Num_Prim_Ops.
16015 (Set_Num_Prim_Ops): Removed.
16016 Remove all the assertions because all the routines of this
16017 package are inline always.
16018 (Get_Offset_Index): Add support to primary dispatch tables.
16019 Move the documentation about the dispatch table to a-tags.ads
16020 (Set_External_Tag): Removed
16021 (Inherit_TSD): Removed.
16022 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
16023 moved to a-tags.ads
16024 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
16025 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
16026 of the TSD field "Table" because this field has been renamed to
16027 "Ifaces_Table".
16028 (Inherit_CPP_DT): Removed.
16029 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
16030 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
16031 declarations have been moved to a-tags.ads
16032 (Check_Size): Removed.
16033 (Expanded_Name): Updated to get access to the new field of TSD
16034 containing the address of the expanded name.
16035 (Get_Access_Level/Set_Access_Level): Removed.
16036 (Get_Predefined_Prim_Op_Address): Removed.
16037 (Set_Predefined_Prim_Op_Address): Removed.
16038 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
16039 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
16040 (Set_Expanded_Name): Removed.
16041 (Inherit_DT): Removed.
16042 (Inherit_CPP_DT): Removed.
16043 (Set_RC_Offset): Removed.
16044 (Set_TSD): Removed.
16045 (Base_Address): New function that displaces "this" to point to the base
16046 of the object (that is, to point to the primary tag of the object).
16047
160482007-04-06 Ed Schonberg <schonberg@adacore.com>
16049 Javier Miranda <miranda@adacore.com>
16050
16051 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
16052 anonymous access component, do not create a master_id if type already
16053 has one, as may happen if the type is a subcomponent of a packed array
16054 type.
16055 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
16056 Initialize_Tag): Remove code associated with the old CPP pragmas.
16057 CPP_Virtual and CPP_Vtable are no longer supported.
16058 (Build_Offset_To_Top_Internal): Add support for concurrent record types
16059 (Build_Offset_To_Top_Functions): Add support for concurrent record types
16060 (Freeze_Record_Type): Remove call to
16061 Init_Predefined_Interface_Primitives.
16062 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
16063 code required to initialize the tags of the secondary dispatch tables.
16064 This leaves the algoritm more clear.
16065 (Init_Secondary_Tags): Add support for concurrent record types
16066 (Make_Predefined_Primitive_Specs): Code cleanup.
16067 (Predefined_Primitive_Bodies): Code cleanup.
16068 (Build_Master_Renaming): New local subprogram.
16069 (Expand_N_Full_Type_Declaration): Build the master_id associated with
16070 anonymous access to task type components.
16071 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
16072 subtype indication are resolved during analysis, and must not be done
16073 here.
16074 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
16075
160762007-04-06 Geert Bosch <bosch@adacore.com>
16077 Ed Schonberg <schonberg@adacore.com>
16078 Javier Miranda <miranda@adacore.com>
16079 Bob Duff <duff@adacore.com>
16080
16081 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
16082 for conversion of a Float_Type'Truncation to integer.
16083
16084 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
16085 check if a node is an attribute that can be handled directly by the
16086 back end.
16087 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
16088 attributes that can be handled directly by the back end.
16089 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
16090 use new predicate Is_Access_Protected_Subprogram_Type.
16091 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
16092 and Unchecked_Union if it is generated as part of the default Output
16093 procedure for a type with default discriminants.
16094 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
16095 if we are compiling under restriction No_Dispatching_Calls.
16096 (Constrained): Use Underlying_Type, in case the type is private without
16097 discriminants, but the full type has discriminants.
16098 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
16099 call to Build_Get_Access_Level.
16100 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
16101 interface objects requires a call to the run-time subprogram that
16102 returns the base address of the object.
16103 (Valid_Conversion): Improve error message on illegal attempt to store
16104 an anonymous access to subprogram value into a record component.
16105
16106 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
16107 null".
16108 (Simplify_Type_Conversion): New procedure that performs simplification
16109 of Int_Type (Float_Type'Truncation (X)).
16110 (Resolve_Type_Conversion): Call above procedure after resolving operand
16111 and before performing checks. This replaces the existing ineffective
16112 code in Exp_Ch4.
16113 (Set_String_Literal_Subtype): When creating the internal static lower
16114 bound subtype for a string literal, use a newly created copy of the
16115 subtree representing the lower bound.
16116 (Resolve_Call): Exclude build-in-place function calls from transient
16117 scope treatment. Update comments to describe this exception.
16118 (Resolve_Equality_Op): In case of dispatching call check violation of
16119 restriction No_Dispatching_Calls.
16120 (Resolve_Call): If the call returns an array, the context imposes the
16121 component type of the array, and the function has one non-defaulted
16122 parameter, rewrite the call as the indexing of a call with a single
16123 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
16124 in prefix form.
16125 (Resolve_Actuals): If an actual is an allocator for an access parameter,
16126 the master of the created object is the innermost enclosing statement.
16127 (Remove_Conversions): For a binary operator, check if type of second
16128 formal is numeric, to check if an abstract interpretation is present
16129 in the case of exponentiation as well.
16130
161312007-04-06 Ed Schonberg <schonberg@adacore.com>
16132 Bob Duff <duff@adacore.com>
16133
16134 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
16135 copying a parameter list in a call, set properly the First_Named_Formal
16136 and Next_Named_Formal fields in the new list and in the enclosing call.
16137 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
16138 names, to ease typing in the debugger. Improve comments.
16139 (Watch_Node): New variable, intended to be set in the debugger.
16140 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
16141 called when the watched node is created.
16142 (New_Node_Debugging_Output): Combined version of local procedures
16143 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
16144 with a parameter so that conditional breakpoints like "if Node = 12345"
16145 work.
16146 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
16147 Add Elist1 function
16148
161492007-04-06 Thomas Quinot <quinot@adacore.com>
16150 Ed Schonberg <schonberg@adacore.com>
16151 Gary Dismukes <dismukes@adacore.com>
16152
16153 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
16154 required for a conversion between two access-to-unconstrained-array
16155 types.
16156 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
16157 to discriminant constraints on discriminant objects. This rule must
16158 apply as well to discriminants of protected types in private components.
16159 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
16160 object of a null-excluding access type then don't require the
16161 the object declaration to have an expression and don't emit a
16162 run-time check.
16163
161642007-04-06 Arnaud Charlet <charlet@adacore.com>
9e94c78f 16165 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16166
16167 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
16168 and made constant.
16169
16170 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
16171 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
16172 carry any.
16173
16174 * fe.h (Compiler_Abort): Add third parameter.
16175
16176 * misc.c (internal_error_function): Build third argument from current
16177 input location and pass it to Compiler_Abort.
16178
161792007-04-06 Gary Dismukes <dismukes@adacore.com>
16180
16181 * cstand.adb (Create_Standard): When the target's storage unit size is
16182 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
16183 Standard_String.
16184
161852007-04-06 Nicolas Roche <roche@adacore.com>
16186
16187 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
16188 absolute path can have the following form: device:/a/b. In this case
16189 '/' should be inserted between the path and the filename.
16190
161912007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 16192 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16193
16194 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
16195 VAR_DECL to a CONST_DECL we make for a public constant when we know the
16196 corresponding definition has created the so made visible variable.
16197 Handle anonymous access to protected subprogram.
16198 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
16199 object with an address clause volatile. Re-enable original fix.
16200 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
16201 too.
16202 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
16203 associated with either the Equivalent or Root type, instead of the
16204 naked type node.
16205 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
16206 subtree for every field of a global record type.
16207 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
16208 discriminants, invoke again variable_size on its newly computed sizes.
16209
162102007-04-06 Robert Dewar <dewar@adacore.com>
16211 Thomas Quinot <quinot@adacore.com>
16212 Ed Schonberg <schonberg@adacore.com>
16213 Bob Duff <duff@adacore.com>
16214
16215 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
16216 (Next_Component_Or_Discriminant): New function and procedure
16217 (First_Index, First_Literal, Master_Id,
16218 Set_First_Index, Set_First_Literal, Set_Master_Id):
16219 Add missing Ekind assertions.
16220 (Is_Access_Protected_Subprogram_Type): New predicate.
16221 (Has_RACW): New entity flag, set on package entities to indicate that
16222 the package contains the declaration of a remote accecss-to-classwide
16223 type.
16224 (E_Return_Statement): This node type has the Finalization_Chain_Entity
16225 attribute, in case the result type has controlled parts.
16226 (Requires_Overriding): Add this new flag, because "requires
16227 overriding" is subtly different from "is abstract" (see AI-228).
16228 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
16229 Is_Abstract_Type. Make sure these are called only when appropriate.
16230 (Has_Pragma_Unreferenced_Objects): New flag
16231
16232 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
16233 class-wide, the tag of the right-hand side must be an exact match, not
16234 an ancestor of that of the object on left-hand side.
16235 (Move_Activation_Chain): New procedure to create the call to
16236 System.Tasking.Stages.Move_Activation_Chain.
16237 (Expand_N_Extended_Return_Statement): Generate code to call
16238 System.Finalization_Implementation.Move_Final_List at the end of a
16239 return statement if the function's result type has controlled parts.
16240 Move asserts to Build_In_Place_Formal.
16241 (Move_Final_List): New function to create the call statement.
16242 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
16243 tagged type, replace generation of call to the run-time subprogram
16244 CW_Membership by call to Build_CW_Membership.
16245 (Expand_N_Return_Statement): Replace generation of call to the run-time
16246 subprogram Get_Access_Level by call to Build_Get_Access_Level.
16247 (Expand_N_Simple_Function_Return): Replace generation of call to the
16248 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
16249
16250 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
16251 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
16252 access to protected operations.
16253 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
16254 master and chain actual parameters to a build-in-place function call
16255 involving tasks.
16256 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
16257 statement.
16258 (Make_Build_In_Place_Call_In_Allocator,
16259 Make_Build_In_Place_Call_In_Anonymous_Context,
16260 Make_Build_In_Place_Call_In_Assignment,
16261 Make_Build_In_Place_Call_In_Object_Declaration): Call
16262 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
16263 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
16264 stubbed procedure with a null body, replace the call with a null
16265 statement without using the full inlining machinery, for efficiency
16266 and to avoid invalid values in source file table entries.
16267
16268 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
16269 renamings of calls to build-in-place functions.
16270
16271 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
16272 provides the functionality of RTE_Available to record components.
16273 (RTU_Entity): The function Entity has been renamed to RTU_Entity
16274 to avoid undesired overloading.
16275 (Entity): New subprogram that returns the entity for the referened
16276 unit. If this unit has not been loaded, it returns Empty.
16277 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
16278 Remove no longer used entities.
16279 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
16280 (RE_Type_Specific_Data): New entity.
16281 (RE_Move_Any_Value): New entity.
16282 (RE_TA_A, RE_Get_Any_Type): New entities.
16283 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
16284 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
16285 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
16286 (Entity): New subprogram that returns the entity for the referened
16287 unit. If this unit has not been loaded, it returns Empty.
16288 (RTE): Addition of a new formal that extends the search to the scopes
16289 of the record types found in the chain of the package.
16290
16291 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
16292 "abstract subprograms must be visible" message, whether or not the type
16293 is an interface; that is, remove the special case for interface types.
16294 (Analyze_Function_Return): Remove error message "return of task objects
16295 is not yet implemented" because this is now implemented.
16296 (Create_Extra_Formals): Add the extra master and activation chain
16297 formals in case the result type has tasks.
16298 Remove error message "return of limited controlled objects is not yet
16299 implemented".
16300 (Create_Extra_Formals): Add the extra caller's finalization list formal
16301 in case the result type has controlled parts.
16302 (Process_Formals): In case of access formal types there is no need
16303 to continue with the analysis of the formals if we already notified
16304 errors.
16305 (Check_Overriding_Indicator): Add code to check overriding of predefined
16306 operators.
16307 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
16308 flags for formals that do not require them,.
16309 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
16310 hidden entity is use visible or directly visible.
16311 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
16312 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
16313 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
16314 New_Overloaded_Entity): Split Is_Abstract flag into
16315 Is_Abstract_Subprogram and Is_Abstract_Type.
16316
16317 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
16318 a return statement's finalization list to the caller's list, used for
16319 build-in-place functions with result type with controlled parts.
16320 Remove no longer used entities.
16321
16322 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
16323 longer needed, because the full type is now limited, and therefore a
16324 pass-by-reference type.
16325 (Foreign_Task_Level): New constant.
16326
16327 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
16328 move tasks from the activation chain belonging to a return statement to
16329 the one passed in by the caller, and update the master to the one
16330 passed in by the caller.
16331 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
16332 of unactivated tasks, so we don't kill the ones that are being returned
16333 by a build-in-place function.
16334 (Create_Task): Ignore AI-280 for foreign threads.
16335
163362007-04-06 Ed Schonberg <schonberg@adacore.com>
16337 Robert Dewar <dewar@adacore.com>
16338 Bob Duff <duff@adacore.com>
16339 Gary Dismukes <dismukes@adacore.com>
16340
16341 * errout.adb (Unwind_Internal_Type): Use predicate
16342 Is_Access__Protected_Subprogram_Type.
16343
16344 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
16345 (Freeze_Entity, packed array case): Do not override explicitly set
16346 alignment and size clauses.
16347 (Freeze_Entity): An entity declared in an outer scope can be frozen if
16348 the enclosing subprogram is a child unit body that acts as a spec.
16349 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
16350 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
16351 Remove all code for DSP option
16352
16353 * layout.adb (Layout_Record_Type): Use First/
16354 Next_Component_Or_Discriminant
16355 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
16356 to handle properly the anonymous access case.
16357
16358 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
16359 for all access attributes, because overload resolution should work the
16360 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
16361 causes the error message for the ambiguous "X'Access = Y'Access" and
16362 "X'Unrestricted_Access = Y'Access" and so forth to match.
16363 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
16364 now that anonymous access to protected operations have their own kind.
16365 (Resolve_Attribute): In case of dispatching call check the violation of
16366 restriction No_Dispatching_Calls.
16367 (Check_Array_Type): Check new -gnatyA array index style option
16368
16369 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
16370 attempt to derive from a synchronized tagged type.
16371 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
16372 type, inherit the class-wide type already created, because it may
16373 already have been used in a self-referential anonymous access component.
16374 (Mentions_T): Recognize self-referential anonymous access components
16375 that use (a subtype of) the class-wide type of the enclosing type.
16376 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
16377 Derived_Type for Prev formal on call to
16378 Check_Anonymous_Access_Components rather than Empty.
16379 (Make_Incomplete_Type_Declaration): Add test for case where the type has
16380 a record extension in deciding whether to create a class-wide type,
16381 rather than just checking Tagged_Present.
16382 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
16383 to stand-alone object declarations as well as component declarations.
16384 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
16385 prevent accidental overwriting when enclosing package appears in
16386 a limited_with_clause.
16387 (Array_Type_Declaration): If the component type is an anonymous access,
16388 the associated_node for the itype is the type declaration itself.
16389 (Add_Interface_Tag_Components): Modified to support concurrent
16390 types with abstract interfaces.
16391 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
16392 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
16393 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
16394 to complete the decoration of synchronized interface types. Add also
16395 a call to Check_Abstract_Interfaces to verify the ARM rules.
16396 (Derive_Interface_Subprograms): Modified to support concurrent types
16397 with abstract interfaces.
16398 (Analyze_Subtype_Indication): Resolve the range with the given subtype
16399 mark, rather than delaying the full resolution depending on context.
16400 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
16401 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
16402 Array_Type_Declaration,Build_Derived_Record_Type,
16403 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
16404 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
16405 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
16406 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
16407 called only when appropriate.
16408 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
16409 to private type.
16410 (Analyze_Subtype_Declaration): For an access subtype declaration, create
16411 an itype reference for the anonymous designated subtype, to prevent
16412 scope anonmalies in gigi.
16413 (Build_Itype_Reference): New utility, to simplify construction of such
16414 references.
16415
164162007-04-06 Vincent Celier <celier@adacore.com>
16417
16418 * errutil.adb (Initialize): Initialize warnings table, if all warnings
16419 are suppressed, supply an initial dummy entry covering all possible
16420 source locations.
16421
16422 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
16423 and start with only one, such as "-RTS=none".
16424 (Collect_Arguments): Do not check for sources outside of projects.
16425 Do not collect arguments if project is externally built.
16426 (Compile_Sources): Do nothing, not even check if the source is up to
16427 date, if its project is externally built.
16428 (Compile): When compiling a predefined source, add -gnatpg
16429 as the second switch, after -c.
16430 (Compile_Sources): Allow compilation of Annex J renames without -a
16431 (Is_In_Object_Directory): Check if the ALI file is in the object
16432 even if there is no project extension.
16433 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
16434 gnatbind if the ALI file effectively exists.
16435 (Initialize): Add the directory where gnatmake is invoked in front of
16436 the path if it is invoked from a bin directory, even without directory
16437 information, so that the correct GNAT tools will be used when spawned
16438 without directory information.
16439
16440 * makeusg.adb: Change switch -S to -eS
16441 Add lines for new switches -we, -wn and -ws
16442 Add line for new switch -p
16443
16444 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
16445 Treat_As_Error and there are warnings.
16446
16447 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
16448 -gnatww Change gnatmake switch -S to -eS
16449 (Scan_Make_Switches): Code reorganisation. Process separately multi
16450 character switches and single character switches.
16451 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
16452 False when switch is not recognized by gnatmake.
16453 (Scan_Make_Switches): Set Setup_Projects True when -p or
16454 --create-missing-dirs is specified.
16455
16456 * fname.adb (Is_Predefined_File_Name): Return True for annex J
16457 renamings Calendar, Machine_Code, Unchecked_Conversion and
16458 Unchecked_Deallocation only when Renamings_Included is True.
16459
16460 * par.adb: Allow library units Calendar, Machine_Code,
16461 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
16462 when -gnatg is not specified.
16463 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
16464 there is no need to generate always a record_definition_node in case
16465 of synchronized interface types.
16466 (SIS_Entry_Active): Initialize global variable to False
16467 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
16468 indicate cases where AI-447 says "not null" is legal.
16469
16470 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
16471
16472 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
16473 files with with several lines starting with the object fileb name.
16474 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
16475 is specified.
16476 (Initialize): Add the directory where gprmake is invoked in front of the
16477 path, if it is invoked from a bin directory or with directory
16478 information, so that the correct GNAT tools will be used when invoked
16479 directly.
16480 (Check_Compilation_Needed): Process correctly backslashes on Windows.
16481
16482 * vms_data.ads: Update switches/qualifiers
16483
164842007-04-06 Ed Schonberg <schonberg@adacore.com>
16485 Thomas Quinot <quinot@adacore.com>
16486
16487 * exp_aggr.adb:
16488 If the array component is a discriminated record, the array aggregate
16489 is non-static even if the component is given by an aggregate with
16490 static components.
16491 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
16492 (Convert_Aggr_In_Allocator): If the allocator is for an access
16493 discriminant and the type is controlled. do not place on a finalization
16494 list at this point. The proper list will be determined from the
16495 enclosing object.
16496 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
16497 initialize record controller if needed, before the components, to ensure
16498 that they are properly finalized.
16499 (Build_Record_Aggr_Code): For the case of an array component that has a
16500 corresponding array aggregate in the record aggregate, perform sliding
16501 if required.
16502
165032007-04-06 Javier Miranda <miranda@adacore.com>
16504 Gary Dismukes <dismukes@adacore.com>
16505 Ed Schonberg <schonberg@adacore.com>
16506
16507 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
16508 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
16509
16510 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
16511 accessibility on class-wide allocators if the allocator occurs at the
16512 same scope level as the allocator's type. The check is guaranteed to
16513 succeed in that case, even when the expression originates from a
16514 parameter of the containing subprogram.
16515 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
16516 under No_Dispatching_Calls restriction. During the semantic analysis
16517 we already notified such violation.
16518 (Tagged_Membership): Constant folding. There is no need to check
16519 the tag at run-time if the type of the right operand is non
16520 class-wide abstract.
16521 Replace call to Is_Ancestor by call to Is_Parent
16522 to support concurrent types with interface types.
16523 (Expand_N_Allocator): Add an assertion associated with the generation
16524 of the master_id.
16525 (Expand_N_Slice): Do not enable range check to nodes associated
16526 with the frontend expansion of the dispatch table.
16527 (Is_Local_Access_Discriminant): Subsidiary function to
16528 Expand_N_Allocator.
16529 (Tagged_Membership): Replace generation of call to the run-time
16530 subprogram CW_Membership by call to Build_CW_Membership.
16531 (Expand_Allocator_Expression): Replace generation of call to the
16532 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
16533
16534 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
16535 initialize most the TSD components by means of an aggregate.
16536 Modify the declaration of the object containing the TSD
16537 because we now expand code that has a higher level of abstraction.
16538 The TSD has a discriminant containing the Inheritance Depth Level,
16539 value that is used in the membership test but also to fix the size
16540 of the table of ancestors.
16541 (Expand_Interface_Conversion): Insert function body at the closest place
16542 to the conversion expression, to prevent access-before-elaboration
16543 errors in the backend.
16544 Code improved to reduce the size of the dispatch table if
16545 compiling under restriction No_Dispatching_Calls plus code cleanup.
16546 Code reorganization plus removal of calls to Set_Num_Prim_Ops
16547 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
16548 (Expand_Dispatching_Call): Minor code reorganization plus addition of
16549 code to return immediately if compiling under No_Dispatching_Calls
16550 restriction.
16551 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
16552 CPP_Virtual and CPP_Vtable are no longer supported.
16553 (Expand_Interface_Conversion): Add missing support for interface type
16554 derivations.
16555 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
16556 Is_Parent to support concurrent types with interfaces.
16557 (Init_Predefined_Interface_Primitives): Removed.
16558 (Make_Secondary_DT): Modified to support concurrent record types.
16559 (Set_All_DT_Position): Modified to support concurrent record types.
16560 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
16561 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
16562 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
16563 with CW_Membership.
16564 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
16565 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
16566 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
16567 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
16568 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
16569 (Expand_Dispatching_Call): Replace generation of call to the run-time
16570 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
16571 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
16572 Address.
16573 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
16574 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
16575 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
16576 Build_Set_Prim_Op_Address.
16577 (Get_Remotely_Callable): Subprogram removed.
16578 (Init_Predefined_Interface_Primitives): Replace generation of call to
16579 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
16580 Prims.
16581
16582 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
16583 First (Parameter_Associations ()) with the call to First_Actual that
16584 returns an actual parameter expression for both named and positional
16585 associations.
16586
16587 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
16588 check violation of restriction No_Dispatching_Calls.
16589 (Check_Controlling_Type): A formal of a tagged incomplete type is a
16590 controlling argument.
16591
16592 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
16593 First/Next_Component_Or_Discriminant
16594 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
16595 (Find_Implemented_Interface): Removed. All the calls to this subprogram
16596 specify Any_Limited_Interface, and this functionality is already
16597 provided by the function Has_Abstract_Interfaces.
16598 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
16599 support concurrent types implementing interfaces.
16600 (Find_Implemented_Interface): Removed. All the calls to this subprogram
16601 specify kind Any_Limited_Interface, and this functionality is already
16602 provided by the function Has_Abstract_Interfaces.
16603 (Remove_Side_Effects): replace Controlled_Type by
16604 CW_Or_Controlled_Type whenever the issue is related to
16605 using or not the secondary stack.
16606
16607 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
16608 P_Interface_Type_Definition to fulfill the new interface (the formal
16609 Is_Synchronized is no longer required).
16610
16611 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
16612 Update dependencies.
16613
16614 * exp_atag.ads, exp_atag.adb: New file
16615
166162007-04-06 Ed Schonberg <schonberg@adacore.com>
16617 Bob Duff <duff@adacore.com>
16618 Cyrille Comar <comar@adacore.com>
16619
16620 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
16621 anonymous, use finalization list of enclosing dynamic scope.
16622 (Expand_N_Package_Declaration): For a library package declaration
16623 without a corresponding body, generate RACW subprogram bodies in the
16624 spec (just as we do for the task activation call).
16625 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
16626 Is_Abstract_Type. Make sure these are called only when appropriate.
16627 Remove all code for DSP option
16628 (CW_Or_Controlled_Type): new subprogram.
16629
9e94c78f 166302007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16631 Ed Schonberg <schonberg@adacore.com>
16632 Gary Dismukes <dismukes@adacore.com>
16633
16634 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
16635 parameter. If it is set to true, return a result capped according to
16636 the global upper bound for the index of an entry family.
16637 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
16638 (Build_Find_Body_Index): Adjust for above change.
16639 (Entry_Index_Expression): Likewise.
16640 (Is_Potentially_Large_Family): New function extracted from...
16641 (Collect_Entry_Families): ...here. Call it to detect whether the family
16642 is potentially large.
16643 (Build_Entry_Count_Expression): If the family is potentially large, call
16644 Family_Size with 'Cap' set to true.
16645 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
16646 a protected version of an operation declared in the private part of
16647 a protected object, because they may be invoked through a callback.
16648 (Set_Privals): If the type of a private component is an anonymous access
16649 type, do not create a new itype for each protected body.
16650 If the body of a protected operation creates
16651 controlled types (including allocators for class-widetypes), the
16652 body of the corresponding protected subprogram must include a
16653 finalization list.
16654 (Build_Activation_Chain_Entity): Build the chain entity for extended
16655 return statements.
16656 (Type_Conformant_Parameters): Use common predicate Conforming_Types
16657 to determine whether operation overrides an inherited primitive.
16658 (Build_Wrapper_Spec): Add code to examine the parents while looking
16659 for a possible overriding candidate.
16660 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
16661 hold an actual parameter value since its initialization is separated
16662 from the the declaration. Prevents errors on null-excluding access
16663 formals.
16664
166652007-04-06 Thomas Quinot <quinot@adacore.com>
8a57e48f 16666 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
16667
16668 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
16669 Do an Unchecked_Conversion to handle the passage from the Underlying
16670 Type to the Base Type when calling Build_To_Any_Call and
16671 Build_From_Any_Call.
16672 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
16673 E_Constant, depending upon Variable formal.
16674 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16675 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
16676 parameter that requires an extra constrained parameter, declare
16677 temporary for actual as a variable, not a constant.
16678 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
16679 the unit being compiled is the one that contains the stub type.
16680 Change primitive operation name for the RACW associated with a RAS
16681 from Call to _Call so it cannot clash with any legal identifier.
16682 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
16683 Is_RAS.
16684 (Append_RACW_Bodies): New subprogram.
16685 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
16686 Add_Receiving_Stubs_To_Declarations functions.
16687 When expanding a package body, this list correspond to the
16688 statements in the HSS at the end of the pacakge.
16689 When expanding a package spec, this list correspond to the
16690 spec declarations.
16691 (Add_Receiving_Stubs_To_Declarations): Append the function
16692 registering the receiving stubs at the end of the 'Stmts' list.
16693 (RCI_Package_Locator): Pass the new Version generic formal when
16694 instantiating a RCI_Locator package.
16695 (Build_From_Any_Function): To compute the High bound for an
16696 unconstrained array actual, we add the Low bound with the length.
16697 Thus we must convert the low bound and the length to an appropriate
16698 type before doing the sum.
16699 (Build_Subprogram_Receiving_Stubs, PolyORB):
16700 * Retrieve the extra formals parameters at the
16701 end of the parameter stream.
16702 * Use Move_Any_Value to write back out parameters
16703 after executing the request as it is more efficient
16704 than Copy_Any_Value.
16705 * Build the any containing Extra Formals with the
16706 appropriate typecode.
16707 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
16708 empty Component_List.
16709 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
16710 the tree the declaration for an object that serves as actual parameter
16711 in server-side stubs.
16712 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16713 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16714 Use Build_Actual_Object_Declaration to prepare the actuals.
16715 (Add_Parameter_To_NVList): Set the parameter mode to In for
16716 Extra Constrained Parameters.
16717 (Build_General_Calling_Stubs): Set the parameter type to boolean for
16718 Extra Constrained parameters.
16719 (Build_To_Any_Function, Build_From_Any_Function,
16720 Built_TypeCode_Function): When Typ is implicit, call the correct
16721 function with the first not implicit parent type.
16722 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
16723 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
16724 typecode from the Etype. Therefore we retrieve the correct typecode
16725 with a call to Get_Any_Type.
16726 (Copy_Specification): Do controlling formal type substitution based on
16727 Is_Controlling_Formal flag, instead of caller-provided object type.
16728 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
16729 a RACW primitive operation, we might get a subprogram declaration for an
16730 ancestor of the RACW designated type (not for the designated type
16731 itself), in the case where this operation is inherited. In this case we
16732 have no easy means of determining the original tagged type for which
16733 the primitive was declared, so instead we now rely on
16734 Copy_Specification to use the Is_Controlling_Formal flag to determine
16735 which formals require type substitution.
16736
167372007-04-06 Robert Dewar <dewar@adacore.com>
16738 Ed Schonberg <schonberg@adacore.com>
16739
16740 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
16741 GNAT.Current_Exception are not allowed if pragma Restrictions
16742 (No_Exception_Propagation) is set and in any case make the associated
16743 handler unsuitable as a target for a local raise statement.
16744 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
16745 run-time subprogram CW_Membership by call to Build_CW_Membership.
16746 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
16747 by a function call, a temporary must be created before expanding the
16748 Constructor_Call itself, to prevent out-of-order elaboration in the
16749 back-end when stack checking is enabled..
16750
167512007-04-06 Ed Schonberg <schonberg@adacore.com>
16752
16753 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
16754 result are the bounds of the left operand, not the right.
16755
167562007-04-06 Ed Schonberg <schonberg@adacore.com>
16757
16758 * exp_strm.adb
16759 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
16760 discriminant defaults.
16761 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
16762 (Make_Component_List_Attributes): Ditto.
16763
167642007-04-06 Ed Schonberg <schonberg@adacore.com>
16765 Bob Duff <duff@adacore.com>
16766
16767 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
16768 an association with a box as providing a value even though the
16769 initialization procedure for the type is not available.
16770 (Resolve_Record_Aggregate): Check that a choice of an association with a
16771 box corresponds to a component of the type.
16772 (Resolve_Record_Aggregate): Split Is_Abstract flag into
16773 Is_Abstract_Subprogram and Is_Abstract_Type.
16774
16775 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
16776 assert.
16777
16778 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
16779 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
16780 called only when appropriate.
16781
167822007-04-06 Olivier Hainque <hainque@adacore.com>
16783
16784 * g-alleve.ads (Low Level Vector type definitions): Map each to the
16785 associated vector view instead of all to the unsigned char view.
16786
16787 * g-altcon.adb (Generic_Conversions): New internal generic package,
16788 offering facilities for all the Vector/View conversion routines
16789 implemented by this unit.
16790 (To_View/To_Vector - all versions): Reimplemented in a systematic
16791 manner, using the internal Generic_Conversions facilities.
16792
167932007-04-06 Pascal Obry <obry@adacore.com>
16794
16795 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
16796 string.
16797 (Create): Free the source string before storing the new one.
16798
167992007-04-06 Vincent Celier <celier@adacore.com>
16800
16801 * g-debpoo.adb (Validity): New package with a complete new
16802 implementation of subprograms Is_Valid and Set_Valid.
16803 (Is_Valid): Move to local package Validity
16804 (Set_Valid): Move to local package Validity
16805
168062007-04-06 Arnaud Charlet <charlet@adacore.com>
8a57e48f 16807 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
16808
16809 * g-expect.adb (Get_Command_Output): When expanding the output buffer
16810 we must ensure that there is enough place for the new data we are going
16811 to copy in.
16812
168132007-04-06 Thomas Quinot <quinot@adacore.com>
16814
16815 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
16816 computation.
16817
168182007-04-06 Jose Ruiz <ruiz@adacore.com>
16819 Vincent Celier <celier@adacore.com>
16820
16821 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
16822 (Stack_String): Add this String that contains the name of the Stack
16823 package in the project file.
16824 (Packages_To_Check_By_Stack): Add this list that contains the packages
16825 to be checked by gnatstack, which are the naming and the stack packages.
16826 (Check_Files): If no .ci files were specified for gnatstack we add all
16827 the .ci files belonging to the projects, including binder generated
16828 files.
16829 (Non_VMS_Usage): Document that gnatstack accept project file switches.
16830 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
16831 Add gnatstack to the list of commands that use project file related
16832 switches, and get the single attribute Switches from the stack package
16833 in a project file when calling gnatstack. Parse the -U flag for
16834 processing files belonging to all projects in the project tree.
16835 Remove all processing for command Setup
16836
16837 * prj-attr.adb: Add new package Stack with single attribute Switches
16838
16839 * vms_conv.ads (Command_Type): Add command Stack.
16840 Move to body declarations that are only used in the body: types Item_Id,
16841 Translation_Type, Item_Ptr, Item and its subtypes.
16842
16843 * vms_conv.adb: (Initialize): Add data for new command Stack.
16844 Add declarations moved from the spec: types Item_Id, Translation_Type,
16845 Item_Ptr, Item and its subtypes.
16846 (Cargs_Buffer): New table
16847 (Cargs): New Boolean global variable
16848 (Process_Buffer): New procedure to create arguments
16849 (Place): Put character in table Buffer or Cargs_Buffer depending on the
16850 value of Cargs.
16851 (Process_Argument): Set Cargs when processing qualifiers for GNAT
16852 COMPILE
16853 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
16854 empty, for table Cargs_Buffer.
16855 (Initialize): Remove component Setup in Command_List
16856
168572007-04-06 Vincent Celier <celier@adacore.com>
16858
16859 * gprep.adb (Process_Files.Process_One_File): Use full file name when
16860 issuing pragma Source_Reference.
16861
168622007-04-06 Emmanuel Briot <briot@adacore.com>
16863
16864 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
16865 [[:xdigit:]] character class.
16866 Also raise an exception when an invalid character class is used.
16867
168682007-04-06 Pascal Obry <obry@adacore.com>
16869
16870 * i-cstrea.ads: (fopen): Add encoding parameter.
16871 (freopen): Idem.
16872 Change reference from a-sysdep.c to sysdep.c in comment.
16873 Update copyright notice.
16874 This set of patch add support for the encoding form parameter.
16875
16876 * mingw32.h (S2WSU): New macro to convert from a string to a
16877 wide-string using the UTF-8 encoding. The S2WS macro supports now only
16878 standard 8bits encoding.
16879 (WS2SU): As above but converting from wide-sring to string.
16880 This is needed as it is necessary to have access to both versions in the
16881 runtime for the form parameter encoding support.
16882 This set of patch add support for the encoding form parameter.
16883 (S2WS): Improve implementation to handle cases where the filename is not
16884 UTF-8 encoded. In this case we default to using the current code page
16885 for the conversion.
16886
16887 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
16888 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
16889 the constants defined in adaint.h.
16890 (fopen): Add encoding parameter.
16891 (freopen): Idem.
16892
16893 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
16894 encoding. This is needed for the Reset routine (freopen low level-call).
16895
16896 * s-fileio.adb (Open): Decode encoding form parameter and set the
16897 corresponding encoding value into AFCB structure.
16898 (Reset): Pass the encoding value to freopen.
16899 (Close): Move the call to Lock_Task to the beginning of the procedure.
16900
169012007-04-06 Geert Bosch <bosch@adacore.com>
16902 Robert Dewar <dewar@adacore.com>
16903
16904 * i-fortra.ads: Add Double_Complex type.
16905
16906 * impunit.adb: (Is_Known_Unit): New function
16907 Add Gnat.Byte_Swapping
16908 Add GNAT.SHA1
16909 Add new Ada 2005 units
16910 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
16911 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
16912 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
16913 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
16914
16915 * impunit.ads (Is_Known_Unit): New function
16916
16917 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
16918 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
16919 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
16920 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
16921 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
16922 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
16923 New files.
16924
16925 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
16926
16927 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
16928
9e94c78f 169292007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
16930 Arnaud Charlet <charlet@adacore.com>
16931
16932 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
16933 __gnat_adjust_context_for_raise.
16934 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
16935 implementation of floating point operations as native x86 targets.
16936 So the FPU should be initialized in the same way using finit. Fix
16937 floating point operations accuracy issues.
16938 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
16939 member in struct sigaction, so as to avoid warning for incompatible
16940 pointer types.
16941
9e94c78f 169422007-04-06 Serguei Rybin <rybin@adacore.com>
4b437c6b
AC
16943
16944 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
16945 switches from previously loaded tree
16946
169472007-04-06 Thomas Quinot <quinot@adacore.com>
16948
16949 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
16950 cases where a given dependency has a body or not.
16951 (Write_With_File_Names): New subprogram, common code for the two cases
16952 above.
16953
169542007-04-06 Ed Schonberg <schonberg@adacore.com>
16955 Javier Miranda <miranda@adacore.com>
16956
9e81dbc7 16957 * lib-xref.ads, lib-xref.adb:
4b437c6b
AC
16958 Modify the loop that collects type references, to include interface
16959 types that the type implements. List each of these interfaces when
16960 building the entry for the type.
16961 (Generate_Definition): Initialize component Def and Typ of new entry
16962 in table Xrefs, to avoid to have these components unitialized.
16963 (Output_References): Split Is_Abstract flag into
16964 Is_Abstract_Subprogram and Is_Abstract_Type.
16965 (Generate_Reference): Add barrier to do not generate the warning
16966 associated with Ada 2005 entities with entities generated by the
16967 expander.
16968
169692007-04-06 Robert Dewar <dewar@adacore.com>
16970 Arnaud Charlet <charlet@adacore.com>
16971 Vincent Celier <celier@adacore.com>
16972
16973 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
16974 Update 'Exception Handling Control' chapter which was outdated.
16975 Minor fix to documentation of -gnatwq
16976 Remove section "Adapting the Run Time to a New C++ Compiler" because
16977 it is now obsolete.
16978 Add passage on need of -nostart-files in some non-ada-main cases.
16979 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
16980 Update documentation about Interfacing with C++
16981 Add documentation for new gnatmake switch -p
16982 Add missing protocol part in URLs.
16983 Document -gnatyA
16984 Document pragma Compile_Time_Error
16985 Add documentation for Object_Size indicating that stand alone
16986 objects can have a larger size in some cases.
16987 Add node for GNAT.Byte_Swapping, GNAT.SHA1
16988 Update reference to the Ravenscar profile.
16989 Document pragma Unreferenced_Objects
16990
16991 * gnat-style.texi: Fix typo
16992
169932007-04-06 Vincent Celier <celier@adacore.com>
16994
16995 * mlib.adb (Building_Library): Only output "building a library..." in
16996 verbose mode
16997
16998 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
16999 files in verbose mode.
17000
17001 * mlib-utl.adb (Ar): Only output the first object files when not in
17002 verbose mode.
17003 (Gcc): Do not display all the object files if not in verbose mode, only
17004 the first one.
17005
170062007-04-06 Robert Dewar <dewar@adacore.com>
17007
17008 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
17009 it no longer destroys the contents of Name_Buffer or Name_Len and
17010 non-standard and invalid names are handled better.
17011 (Get_Decoded_Name_String): Improve performance by using
17012 Name_Has_No_Encodings flag in the name table.
17013 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
17014 Used for debugging printouts.
17015
170162007-04-06 Robert Dewar <dewar@adacore.com>
17017 Javier Miranda <miranda@adacore.com>
17018 Bob Duff <duff@adacore.com>
17019
17020 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
17021 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
17022 there is no need to generate always a record_definition_node in case
17023 of synchronized interface types.
17024 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
17025 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
17026 illegal in Ada 95, in cases where it is legal. Change the warnings to
17027 errors in other cases. Don't give the error unless the "not null"
17028 parses properly. Correct the source position at which the error occurs.
17029 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
17030 P_Null_Exclusion, to suppress "not null" warnings.
17031 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
17032 associated goto statements.
17033
17034 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
17035 of END RECORD
17036
17037 * scans.ads (Type_Token_Location): New flag
17038
17039 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
17040 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
17041 P_Null_Exclusion, to suppress "not null" warnings.
17042
170432007-04-06 Robert Dewar <dewar@adacore.com>
17044 Javier Miranda <miranda@adacore.com>
17045 Bob Duff <duff@adacore.com>
17046 Vincent Celier <celier@adacore.com>
17047
17048 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
17049 (Extensions_Allowed): No longer sets Ada_Version
17050 Entry for pragma Unreferenced_Objects
17051
17052 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
17053 system.tasking if pragma priority used in a procedure
17054 (Analyze_Pragma, case Warning): Handle dot warning switches
17055 (Process_Compile_Time_Warning_Or_Error): New procedure
17056 (Analyze_Pragma): Add processing for Compile_Time_Error
17057 Add support for extra arguments External_Name and Link_Name.
17058 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
17059 (Process_Import_Or_Interface): Add support for the use of pragma Import
17060 with tagged types.
17061 (Extensions_Allowed): No longer affects Ada_Version
17062 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
17063 Is_Abstract_Type. Make sure these are called only when appropriate.
17064 Add processing for pragma Unreferenced_Objects
17065
17066 * snames.h, snames.ads, snames.adb: Add entry for pragma
17067 Compile_Time_Error
17068 Add new standard name Minimum_Binder_Options for new gprmake
17069 Add new standard names for gprmake: Archive_Suffix,
17070 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
17071 Library_Support, Library_Version_Options,
17072 Shared_Library_Minimum_Options,
17073 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
17074 Change Name_Call to Name_uCall so that it cannot clash with a legal
17075 subprogram name.
17076 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
17077 Append C_Plus_Plus to convention identifiers as synonym for CPP
17078 Add new standard names Stack and Builder_Switches
17079 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
17080 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
17081 Run_Path_Option, Toolchain_Version.
17082 Entry for pragma Unreferenced_Objects
17083
17084 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
17085 switches, without repetition of "eD". Make sure that last character of
17086 -gnatep= switch is not taken as -gnat switch character.
17087 Complete rewrite of circuit for handling saving compilation options
17088 Occasioned by need to support dot switchs for -gnatw, but cleans up
17089 things in general.
17090 -gnatX does not affect Ada_Version
17091 Include -gnatyA in -gnatg style switches
17092
17093 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
17094 warnings on return objects.
17095 (Warn_On_Useless_Assignment): Exclude warnings on return objects
17096 (Set_Dot_Warning_Switch): New procedure
17097 (Check_References): Add missing case of test for
17098 Has_Pragma_Unreferenced_Objects
17099 (Output_Unreferenced_Messages): Implement effect of new pragma
17100 Unreferenced_Objects, remove special casing of limited controlled
17101 variables.
17102
171032007-04-06 Vincent Celier <celier@adacore.com>
17104
17105 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
17106 the default project path, initially done during elaboration of the
17107 package.
17108 If the prefix returned by Sdefault is null, get the prefix from a call
17109 to Executable_Prefix_Path.
17110 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
17111 null.
17112
17113 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
17114 canonical directory name to open the directory from which files are
17115 retrieved.
17116 (Record_Other_Sources): Idem.
17117 (Locate_Directory): Add the possibility to create automatically missing
17118 directories when Setup_Projects is True.
17119 Call Locate_Directory so that the directory will be created when
17120 Setup_Projects is True, for object dir, library dir, library ALI dir,
17121 library source copy dir and exec dir.
17122
17123 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
17124 versions of GNAT.
17125
171262007-04-06 Robert Dewar <dewar@adacore.com>
17127
17128 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
17129 Use First/Next_Component_Or_Discriminant
17130 (Analyze_Record_Representation_Clause):
17131 Use First/Next_Component_Or_Discriminant
17132 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
17133 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
17134 definition if type is unconstrained.
17135 (Adjust_Record_For_Reverse_Bit_Order): New procedure
17136 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
17137 Is_Abstract_Subprogram and Is_Abstract_Type.
17138 (Adjust_Record_For_Reverse_Bit_Order): New procedure
17139
17140 * repinfo.adb (List_Record_Info): Use First/
17141 Next_Component_Or_Discriminant.
17142
17143 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
17144 New procedure.
17145
17146 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
17147 Include -gnatyA in default switches
17148
17149 * opt.ads: (Warn_On_Non_Local_Exception): New flag
17150 (Warn_On_Reverse_Bit_Order): New flag
17151 (Extensions_Allowed): Update the documentation.
17152 (Warn_On_Questionable_Missing_Parens): Now on by default
17153
17154 * usage.adb: Add documentation of -gnatw.x/X switches
17155 Document new -gnatyA style switch
17156 -gnatq warnings are on by default
17157
171582007-04-06 Ed Falis <falis@adacore.com>
17159
17160 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
17161 full word is no longer compared twice.
17162
171632007-04-06 Ed Schonberg <schonberg@adacore.com>
17164
17165 * sem_ch10.adb (Install_Limited_Context_Clauses.
17166 Expand_Limited_With_Clause): Use a new copy of selector name in the
17167 call to Make_With_Clause. This fixes the tree structure for ASIS
17168 purposes. Nothing is changed in the compiler behaviour.
17169 (Process_Body_Clauses): Handle properly use clauses whose prefix is
17170 a package renaming.
17171 (Install_Limited_With_Clauses): Do not install non-limited view when it
17172 is still incomplete.
17173
171742007-04-06 Ed Schonberg <schonberg@adacore.com>
17175 Gary Dismukes <dismukes@adacore.com>
17176
17177 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
17178 when capturing size information, instead of base type, which for a
17179 formal array type will be the unconstrained type.
17180 (Analyze_Formal_Object_Declaration): Add check for illegal default
17181 expressions for a formal in object of a limited type.
17182 (Instantiate_Object): Ditto.
17183 (Check_Formal_Package_Instance): Skip entities that are formal objects,
17184 because they were defaulted in the formal package and no check applies
17185 to them.
17186 (Check_Formal_Package_Instance): Extend conformance check to other
17187 discrete types beyond Integer.
17188 (Process_Default): Copy directly the unmatched formal. A generic copy
17189 has already been performed in Analyze_Formal_Package.
17190 (Analyze_Associations): If a formal subprogram has no match, check for
17191 partial parametrization before looking for a default, to prevent
17192 spurious errors.
17193 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
17194 not set the instantiation environment before analyzing the actuals.
17195 Fixes regression on 8515-003 with implementation of AI-133.
17196 Set_Instance_Env checks whether the generic unit is a predefined
17197 unit, in which case the instance must be analyzed with the latest Ada
17198 mode. This setting must take place after analysis of the actuals,
17199 because the actuals must be analyzed and frozen in the Ada mode extant
17200 outside of the current instantiation.
17201 (Save_Env, Restore_Env): Preserve and restore the configuration
17202 parameters so that predefined units can be compiled in the proper Ada
17203 mode.
17204 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
17205 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
17206 and Is_Abstract_Type.
17207 (Analyze_Formal_Package): For better error recovery, Add exception
17208 handler to catch Instantion_Error, which can be raised in
17209 Analyze_Associations
17210
172112007-04-06 Ed Schonberg <schonberg@adacore.com>
17212 Bob Duff <duff@adacore.com>
17213 Gary Dismukes <dismukes@adacore.com>
17214
17215 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
17216 prefix type is a discriminated subtype of the type of the formal.
17217 (Analyze_Allocator): Collect all coextensions regardless of the context.
17218 Whether they can be allocated statically is determined in exp_ch4.
17219 (Analyze_Selected_Component): If the prefix is a limited view and the
17220 non-limited view is available, use the non-limited one.
17221 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
17222 therefore illegal), suggest a qualified expression rather than a type
17223 conversion, because a type conversion would be illegal in this context.
17224 (Anayze_Allocator): Trace recursively all nested allocators so that all
17225 coextensions are on the corresponding list for the root. Do no mark
17226 coextensions if the root allocator is within a declaration for a stack-
17227 allocated object, because the access discriminants will be allocated on
17228 the stack as well.
17229 (Analyze_Call): Remove restriction on calls to limited functions for the
17230 cases of generic actuals for formal objects, defaults for formal objects
17231 and defaults for record components.
17232 (Analyze_Allocator): Before analysis, chain coextensions on the proper
17233 element list. Their expansion is delayed until the enclosing allocator
17234 is processed and its finalization list constructed.
17235 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
17236 for an operation with the given name among the primitive operations of
17237 the corresponding record type.
17238 (Analyze_Selected_Component): If the prefix is a task type that
17239 implements an interface, and there is no entry with the given name,
17240 check whether there is another primitive operation (e.g. a function)
17241 with that name.
17242 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
17243 properly the indexing of a function call written in prefix form, where
17244 the function returns an array type, and all parameters of the function
17245 except the first have defaults.
17246 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
17247 the original operands, rather than relocating them, for efficiency and
17248 to work properly when an operand is overloaded.
17249 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
17250 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
17251 (Analyze_Selected_Component): If the prefix is a private extension, only
17252 scan the visible components, not those of the full view.
17253 (Try_Primitive_Operation): If the operation is a procedure, collect all
17254 possible interpretations, as for a function, because in the presence of
17255 classwide parameters several primitive operations of the type can match
17256 the given arguments.
17257
172582007-04-06 Ed Schonberg <schonberg@adacore.com>
17259 Robert Dewar <dewar@adacore.com>
17260
17261 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
17262 tag-indeterminate call to an abstract function, when the left-hand side
17263 is not classwide.
17264 (Analyze_Loop_Statement): Improve detection of infinite loops
17265
172662007-04-06 Ed Schonberg <schonberg@adacore.com>
17267 Thomas Quinot <quinot@adacore.com>
17268
17269 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
17270 out of Analyze_Package_Declaration, because processing must be applied
17271 to package bodies as well, for deferred constants completed by pragmas.
17272 (Analyze_Package_Declaration): When the package declaration being
17273 analyzed does not require an explicit body, call Check_Completion.
17274 (May_Need_Implicit_Body): An implicit body is required when a package
17275 spec contains the declaration of a remote access-to-classwide type.
17276 (Analyze_Package_Body): If the package contains RACWs, append the
17277 pending subprogram bodies generated by exp_dist at the end of the body.
17278 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
17279 Is_Abstract_Subprogram and Is_Abstract_Type.
17280 (Preserve_Full_Attributes): The full entity list is not an attribute
17281 that must be preserved from full to partial view.
17282
9e81dbc7
AS
17283 * sem_dist.adb (Add_RAS_Dereference_TSS):
17284 Change primitive name to _Call so it cannot clash with any legal
17285 identifier, and be special-cased in Check_Completion.
17286 Mark the full view of the designated type for the RACW associated with
17287 a RAS as Comes_From_Source to get proper view switching when installing
17288 private declarations.
17289 Provite a placeholder nested package body along with the nested spec
17290 to have a place for Append_RACW_Bodies to generate the calling stubs
17291 and stream attributes.
4b437c6b
AC
17292
172932007-04-06 Ed Schonberg <schonberg@adacore.com>
17294 Robert Dewar <dewar@adacore.com>
17295
17296 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
17297 that is a limited view, check the non-limited view if available.
17298 (Undefined): Refine error message for missing with of Text_IO
17299 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
17300 to distinguish real missing with cases.
17301 Fix format of all missing with messages
17302 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
17303 renaming as body when renamed entity is abstract.
17304
173052007-04-06 Ed Schonberg <schonberg@adacore.com>
17306 Javier Miranda <miranda@adacore.com>
17307
17308 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
17309 predicate recursive, to handle complex expressions on literals whose
17310 spurious ambiguity comes from the abstract interpretation of some
17311 subexpression.
17312 (Interface_Present_In_Ancestor): Add support to concurrent record
17313 types.
17314 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
17315 Is_Abstract_Subprogram and Is_Abstract_Type.
17316
173172007-04-06 Ed Schonberg <schonberg@adacore.com>
17318 Javier Miranda <miranda@adacore.com>
17319
17320 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
17321 dereference of a local object R created as a reference to another
17322 object O, use the access level of O.
17323 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
17324 rather than local Same_Formal_Type, to check whether protected operation
17325 overrides an inherited one.
17326 (Same_Formal_Type): New predicate, used when matching signatures of
17327 overriding synchronized operations, to handle the case when a formal
17328 has a type that is a generic actual.
17329 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
17330 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
17331 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
17332 syntactic ambiguities involving indexing of function calls that return
17333 arrays.
17334 (Abstract_Interface_List): New subprogram that returns the list of
17335 abstract interfaces associated with a concurrent type or a
17336 concurrent record type.
17337 (Interface_Present_In_Parent): New subprogram used to check if a
17338 given type or some of its parents implement a given interface.
17339 (Collect_Abstract_Interfaces): Add support for concurrent types
17340 with interface types.
17341 (Has_Abstract_Interfaces): Add support for concurrent types with
17342 interface types.
17343 (Is_Parent): New subprogram that determines whether E1 is a parent
17344 of E2. For a concurrent type its parent is the first element of its
17345 list of interface types; for other types this function provides the
17346 same result than Is_Ancestor.
17347 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
17348 (Collect_Synchronized_Interfaces): Removed because the subprogram
17349 Collect_Abstract_Interfaces provides this functionality.
17350 (Collect_Abstract_Interfaces): Minor update to give support to
17351 concurrent types and thus avoid undesired code duplication.
17352 (Get_Subprogram_Entity): Handle entry calls.
17353 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
17354 entry calls.
17355 (Enter_Name): Do not give -gnatwh hiding warning for record component
17356 entities, they never result in hiding.
17357
173582007-04-06 Ed Schonberg <schonberg@adacore.com>
17359 Robert Dewar <dewar@adacore.com>
17360
17361 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
17362 to chain nested components that are allocators for access discriminants
17363 of the enclosing object.
17364 Add N_Push and N_Pop nodes
17365 New field Exception_Label added
17366 (Local_Raise_Statements): New field in N_Exception_Handler_Node
17367 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
17368 (Is_Coextension): New flag for allocators, to mark allocators that
17369 correspond to access discriminants of dynamically allocated objects.
17370 (N_Block_Statement): Document the fact that the corresponding entity
17371 can be an E_Return_Statement.
17372 (Is_Coextension): New flag for allocators.
17373 Remove all code for DSP option
17374
17375 * sprint.ads, sprint.adb: Display basic information for class_wide
17376 subtypes. Add handling of N_Push and N_Pop nodes
17377
173782007-04-06 Arnaud Charlet <charlet@adacore.com>
17379
17380 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
17381 before propagating exception.
17382
173832007-04-06 Olivier Hainque <hainque@adacore.com>
17384
17385 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
17386 an address always within the call instruction from a return address.
17387
173882007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 17389 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
17390
17391 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
17392 expression with a COMPOUND_EXPR including the call instead of emitting
17393 the call directly here.
17394 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
17395 high bound is constant and the slice is empty. Tidy.
17396 (tree_transform, case N_Op_Not): Handle properly the case where the
17397 operation applies to a private type whose full view is a modular type.
17398 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
17399 Address_Clause, use the associated Expression as the GNAT tree
17400 representing the choice value to ensure the corresponding GCC tree is
17401 of the proper kind.
17402 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
17403 instead of just the operands, as the base GCC stabilize_reference does.
17404 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
17405 requested; otherwise fail.
17406 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
17407
174082007-04-06 Thomas Quinot <quinot@adacore.com>
17409
17410 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
17411 implementation of UI_Div.
17412 (UI_Div): Reimplement as a call to UI_Div_Rem.
17413 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
17414 remainder, avoiding the cost of a multiplication and a subtraction.
17415 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
17416 provides both quotient and remainder in a single computation.
17417 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
17418 functions for uint.
17419 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
17420 is undefined if the given n is not inversible.
17421
174222007-04-06 Olivier Hainque <hainque@adacore.com>
17423
17424 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
17425 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
17426 opcodes.
17427
9e94c78f 174282007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
17429 Olivier Hainque <hainque@adacore.com>
17430
17431 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
17432 when updating the contents of the old pointer to an unconstrained array.
17433 (end_subprog_body): Set error_gnat_node to Empty.
17434 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
17435 (unchecked_convert): For subtype to base type conversions, require that
17436 the source be a subtype if it is an integer type.
17437 (builtin_decls): New global, vector of available builtin functions.
17438 (gnat_pushdecl): Add global builtin function declaration nodes to the
17439 builtin_decls list.
17440 (gnat_install_builtins): Adjust comments.
17441 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
17442 calling gnat_pushdecl, so that it knows when it handed a builtin
17443 function declaration node.
17444 (builtin_decl_for): Search the builtin_decls list.
17445
9e94c78f 174462007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b 17447
9e81dbc7 17448 * s-stchop-vxworks.adb:
4b437c6b
AC
17449 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
17450
174512007-04-06 Robert Dewar <dewar@adacore.com>
17452 Arnaud Charlet <charlet@adacore.com>
17453
17454 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
17455
17456 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
17457 of files
17458 Add mention of -Sev (set initialize_scalars option from environment
17459 variable at run time) in gnatbind usage message.
17460
17461 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
17462
17463 * fname-uf.ads: Minor comment fix
17464
17465 * osint.ads: Change pragma Elaborate to Elaborate_All
17466
17467 * par-load.adb: Add documentation.
17468
17469 * sem_cat.ads, sem_cat.adb: Minor code reorganization
17470
17471 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
17472
17473 * s-secsta.ads: Extra comments
17474
17475 * s-soflin.ads: Minor comment fixes
17476
17477 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
17478
17479 * s-wchcon.ads: Minor comment addition
17480
17481 * treepr.adb: Minor change in message
17482 (Print_Name,Print_Node): Make these debug printouts more robust: print
17483 "no such..." instead of crashing on bad input.
17484
719bb4e3 174852007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
47ecd38d
RAE
17486
17487 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
17488 instead of gnat_signed_or_unsigned_type.
17489 * utils.c (gnat_signed_or_unsigned_type): Remove.
17490 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
17491 * gigi.h (gnat_signed_or_unsigned_type): Remove
17492
9645c3c5
RS
174932007-03-09 Roger Sayle <roger@eyesopen.com>
17494
17495 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
17496 fold with the result of buildN.
17497 * decl.c (gnat_to_gnu_entity): Likewise.
17498 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
17499 * utils.c (finish_record_type, merge_sizes, max_size, convert):
17500 Likewise.
17501 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
17502 nonbinary_modular_operation, build_binary_op, build_unary_op,
17503 build_cond_expr): Likewise.
17504
17505 * utils.c (convert): Use fold_build1 when casting values to void.
17506 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
17507 fold_convert instead of convert when appropriate.
17508
c279aa90
BM
175092007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17510
17511 * Make-lang.in: Add install-pdf target as copied from
17512 automake v1.10 rules.
17513
c2615f30
AS
175142007-02-28 Andreas Schwab <schwab@suse.de>
17515
17516 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
17517 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
17518 (doc/gnat-style.info): Likewise.
17519
7771bb62
BM
175202007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
17521
17522 * gnat-style.texi: Standardize title page.
17523 * gnat_rm.texi: Likewise.
17524 * gnat_ugn.texi: Likewise.
17525
ae19c041
MM
175262007-02-25 Mark Mitchell <mark@codesourcery.com>
17527
17528 * decl.c (annotate_value): Adjust for refactoring of tree_map
17529 hierarchy.
17530
fc8600f9
MM
175312007-02-24 Mark Mitchell <mark@codesourcery.com>
17532
17533 * decl.c (annotate_value): Adjust for refactoring of tree_map
17534 hierarchy.
17535
c0bca7e1
EB
175362007-02-21 Ed Schonberg <schonberg@adacore.com>
17537
17538 PR ada/18819
17539 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
17540 untagged derived type, add hidden components to keep discriminant
17541 layout consistent, when a given discriminant of the derived type
17542 constraints several discriminants of the parent type.
17543
9f3432b8 175442007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6f7f72f9 17545 Sandra Loosemore <sandra@codesourcery.com>
9f3432b8
EB
17546
17547 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
17548 build the call expression.
17549 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
17550 * utils.c (max_size) <tcc_exceptional>: Delete.
17551 <tcc_vl_exp>: New case.
17552 <tcc_expression>: Delete CALL_EXPR subcase.
17553 (build_global_cdtor): Use build_call_nary instead of build3.
17554 * utils2.c (build_call_1_expr): Likewise.
17555 (build_call_2_expr): Likewise.
17556 (build_call_0_expr): Likewise.
17557 (build_call_alloc_dealloc): Likewise.
17558
8438091f
AK
175592007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
17560
17561 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9e81dbc7 17562 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8438091f
AK
17563 and _Unwind_SWord with _sleb128_t.
17564
0802f6a2
PB
175652007-02-06 Paolo Bonzini <bonzini@gnu.org>
17566
17567 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
17568 * decl.c: Include gt-ada-decl.h.
17569 (annotate_value_cache): New.
17570 (annotate_value): Use it instead of TREE_COMPLEXITY.
17571
326f9a75
KH
175722007-02-03 Kazu Hirata <kazu@codesourcery.com>
17573
17574 * misc.c, utils2.c: Fix comment typos.
17575
cd259a98
RS
175762007-01-24 Roger Sayle <roger@eyesopen.com>
17577
17578 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
17579 TREE_CONSTANT_OVERFLOW.
17580 (allocatable_size_p, annotate_value): Likewise.
17581 * trans.c (gnat_to_gnu): Likewise.
17582 * utils.c (unchecked_convert): Likewise.
17583 * utils2.c (build_simple_component_ref): Likewise.
17584
5305be7e
RG
175852007-01-23 Richard Guenther <rguenther@suse.de>
17586
17587 PR bootstrap/30541
17588 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
17589 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
17590 (gnatboot3): Likewise.
17591 (GNATBIND): Do not define.
17592 * Makefile.in (GNATBIND): Do not define.
17593
2ac7cbb5
RG
175942007-01-08 Richard Guenther <rguenther@suse.de>
17595
17596 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
17597 * trans.c (gnat_to_gnu): Likewise.
17598
2989d30c
GK
175992006-12-07 Geoffrey Keating <geoffk@apple.com>
17600
17601 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
17602 * adaint.c: Likewise.
17603
5848e34a
EB
176042006-12-05 Aldy Hernandez <aldyh@redhat.com>
17605
6f7f72f9 17606 Merge from gimple-tuples-branch:
5848e34a 17607 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6f7f72f9 17608
5848e34a
EB
17609 * ada-tree.h (lang_tree_node): Handle gimple tuples.
17610 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
17611 GIMPLE_MODIFY_STMT.
17612
d3c56bc8
KH
176132006-12-02 Kazu Hirata <kazu@codesourcery.com>
17614
17615 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
17616 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
17617 Fix typos.
17618
9fa25ead
EB
176192006-11-17 Eric Botcazou <ebotcazou@adacore.com>
17620
17621 PR ada/27936
17622 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
17623 if the initializer takes into account the padding.
17624
f9f770a8
RG
176252006-11-11 Richard Guenther <rguenther@suse.de>
17626
17627 * trans.c (maybe_stabilize_reference): Remove handling of
17628 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
17629
75c0ed05
AC
176302006-11-05 Arnaud Charlet <charlet@adacore.com>
17631
ed41063a 17632 PR ada/29707
75c0ed05
AC
17633 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
17634 (To_Target_Priority): New function.
75c0ed05 17635
70198b9f
AC
176362006-10-31 Robert Dewar <dewar@adacore.com>
17637
17638 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
17639 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
17640 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
17641 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
17642 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
17643 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
17644 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
17645 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
17646 a-szbzha.adb: Minor reformatting. Fix header.
17647
17648 * a-numaux-x86.adb: Add parentheses for use of unary minus
17649 * a-ngcefu.adb: Supply missing parentheses for unary minus
17650 * a-ngcoty.adb: Add parens for use of unary minus
17651 * a-ngelfu.adb: Add missing parens for unary minus
17652 * a-tifiio.adb: Add parentheses for uses of unary minus
17653
176542006-10-31 Robert Dewar <dewar@adacore.com>
17655 Bob Duff <duff@adacore.com>
17656 Ed Schonberg <schonberg@adacore.com>
17657
6f7f72f9 17658 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
70198b9f
AC
17659 with multiplying operator.
17660 (Expected_Type_Is_Any_Real): New function to determine from the Parent
17661 pointer whether the context expects "any real type".
17662 (Resolve_Arithmetic_Op): Do not give an error on calls to the
17663 universal_fixed "*" and "/" operators when they are used in a context
17664 that expects any real type. Also set the type of the node to
17665 Universal_Real in this case, because downstream processing requires it
17666 (mainly static expression evaluation).
17667 Reword some continuation messages
17668 Add some \\ sequences to continuation messages
17669 (Resolve_Call): Refine infinite recursion case. The test has been
17670 sharpened to eliminate some false positives.
17671 Check for Current_Task usage now includes entry barrier, and is now a
17672 warning, not an error.
17673 (Resolve): If the call is ambiguous, indicate whether an interpretation
17674 is an inherited operation.
17675 (Check_Aggr): When resolving aggregates, skip associations with a box,
17676 which are priori correct, and will be replaced by an actual default
17677 expression in the course of expansion.
17678 (Resolve_Type_Conversion): Add missing support for conversion from
17679 a class-wide interface to a tagged type. Minor code cleanup.
17680 (Valid_Tagged_Converion): Add support for abstact interface type
17681 conversions.
17682 (Resolve_Selected_Component): Call Generate_Reference here rather than
17683 during analysis, and use May_Be_Lvalue to distinguish read/write.
17684 (Valid_Array_Conversion): New procedure, abstracted from
17685 Valid_Conversion, to incorporate accessibility checks for arrays of
17686 anonymous access types.
17687 (Valid_Conversion): For a conversion to a numeric type occurring in an
17688 instance or inlined body, no need to check that the operand type is
17689 numeric, since this has been checked during analysis of the template.
17690 Remove legacy test for scope name Unchecked_Conversion.
17691
17692 * sem_res.ads: Minor reformatting
17693
17694 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
17695 (PE_Current_Task_In_Entry_Body): New exception code
17696 (SE_Restriction_Violation): Removed, not used
17697
17698 * a-except.ads: Update comments.
17699
17700 * types.h, types.ads: Add definition for Validity_Check
17701 (PE_Current_Task_In_Entry_Body): New exception code
17702 (SE_Restriction_Violation): Removed, not used
17703
177042006-10-31 Thomas Quinot <quinot@adacore.com>
17705
17706 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
17707 error status.
17708
177092006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17710 Jose Ruiz <ruiz@adacore.com>
17711
17712 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
17713 part of Ada.Calendar: all subprogram raise Unimplemented.
17714 (Split_W_Offset): Temp function body, raising Unimplemented
17715
9e81dbc7 17716 * a-calend.ads, a-calend-vms.ads:
70198b9f
AC
17717 Add imported variable Invalid_TZ_Offset used to designate targets unable
17718 to support time zones.
17719 (Unimplemented): Temporary function raised by the body of new
17720 subprograms below.
17721 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
17722 unit provides handling of leap seconds and is used by the new Ada 2005
17723 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
17724 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
17725 version returns an extra value which is the offset to UTC.
17726
17727 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
17728 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
17729 (Split_W_Offset): New function body.
17730 (Time_Of): When a date is close to UNIX epoch, compute the time for
17731 that date plus one day (that amount is later substracted after
17732 executing mktime) so there are no problems with time zone adjustments.
17733
17734 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
17735
17736 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
17737 a-catizo.ads, a-catizo.adb: New files.
17738
6f7f72f9 17739 * impunit.adb: Add new Ada 2005 entries
70198b9f
AC
17740
17741 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
17742 Rename all occurences of "__gnat_localtime_r" to
17743 "__gnat_localtime_tzoff".
17744 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
17745 zone data and calculate the GMT offset.
17746 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
17747 Use the field "tm_gmtoff" to extract the GMT offset.
17748 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
17749 the external variable "timezone" to calculate the GMT offset.
17750
177512006-10-31 Arnaud Charlet <charlet@adacore.com>
17752 Jose Ruiz <ruiz@adacore.com>
17753
9e81dbc7
AS
17754 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
17755 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
70198b9f
AC
17756 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
17757 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
17758 System.Any_Priority to a POSIX priority on the target.
17759
9e81dbc7 17760 * system-linux-ia64.ads:
70198b9f
AC
17761 Extend range of Priority types on Linux to use the whole range made
17762 available by the system.
17763
17764 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
17765 function maps from System.Any_Priority to a POSIX priority on the
17766 target.
17767 (PTHREAD_PRIO_PROTECT): Set real value.
17768 (PTHREAD_PRIO_INHERIT): Now a function.
17769 (SIGCPUFAIL): New signal.
17770 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
17771 are documented as reserved by the OS.
17772
17773 * system-aix.ads: Use the full range of priorities provided by the
17774 system on AIX.
17775
17776 * s-taprop-posix.adb: Call new function To_Target_Priority.
17777 (Set_Priority): Take into account Task_Dispatching_Policy and
17778 Priority_Specific_Dispatching pragmas when determining if Round Robin
17779 must be used for scheduling the task.
17780
9e81dbc7 17781 * system-linux-x86_64.ads, system-linux-x86.ads,
70198b9f
AC
17782 system-linux-ppc.ads: Extend range of Priority types on Linux to use
17783 the whole range made available by the system.
17784
9e81dbc7
AS
17785 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
17786 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
70198b9f
AC
17787 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
17788 when deallocating the TCB in order to avoid potential references to
17789 deallocated data.
17790 (Set_Priority): Take into account Task_Dispatching_Policy and
17791 Priority_Specific_Dispatching pragmas when determining if Round Robin
17792 or FIFO within priorities must be used for scheduling the task.
17793
17794 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
17795 the Thread field (to be used internally by the run-time system) and the
17796 kernel-level task id in the LWP field (to be used by the debugger).
17797 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
17798 instance, and propagate the current task options to the spawned task.
17799 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
17800 (Initialize): Set Round Robin dispatching when the corresponding pragma
17801 is in effect.
17802
178032006-10-31 Robert Dewar <dewar@adacore.com>
17804
9e81dbc7
AS
17805 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
17806 system-linux-hppa.ads, system-hpux-ia64.ads,
17807 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
17808 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
17809 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
17810 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
17811 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17812 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
70198b9f
AC
17813 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
17814 Default_Bit_Order) to kill constant condition warnings for references
17815 to this switch.
17816
178172006-10-31 Vincent Celier <celier@adacore.com>
17818 Eric Botcazou <ebotcazou@adacore.com>
17819
17820 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
17821 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
17822 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
17823 Ext_To, when building the library file name
17824
17825 * mlib-tgt-vxworks.adb: ditto.
17826 (Get_Target_Suffix): Add support for x86 targets.
17827
17828 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
17829
9e81dbc7 17830 * mlib-tgt-darwin.adb:
70198b9f
AC
17831 Use Append_To, instead of Ext_To, when building the library file name
17832 (Flat_Namespace): New global variable.
17833 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
17834 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
17835 (Link_Shared_Libgcc): Delete.
17836 (Build_Dynamic_Library): Adjust for above changes.
17837 Use Opt package.
17838 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
17839
178402006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17841
17842 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
17843 (Initialize): Add type conversions required by above change.
17844
178452006-10-31 Jose Ruiz <ruiz@adacore.com>
17846
9e81dbc7 17847 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
70198b9f
AC
17848 (getpid): New body for this function that uses the underlying taskIdSelf
17849 function for VxWorks 5 and VxWorks 6 in kernel mode.
17850 (unsigned_int): New type, modular to allow logical bit operations.
17851 (taskOptionsGet): New imported function.
17852
17853 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
17854 field to be compliant with the type used by the corresponding operating
17855 system primitive.
17856
178572006-10-31 Pascal Obry <obry@adacore.com>
17858 Eric Botcazou <ebotcazou@adacore.com>
17859 Vincent Celier <celier@adacore.com>
17860
17861 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
17862 ASCII version of the registry API. This is needed as the GNAT runtime
17863 is now UNICODE by default.
17864 Include version.h.
17865 (get_gcc_version): Do not hardcode the return value.
17866 (__gnat_file_time_name): On Windows properly set the default returned
17867 value to -1 which corresponds to Invalid_Time.
17868 (__gnat_fopen): New routine. A simple wrapper on all plateforms
17869 except on Windows where it does conversion for unicode support.
17870 (__gnat_freopen): Idem.
17871 (__gnat_locate_exec_on_path): If environment variable PATH does not
17872 exist, return a NULL pointer
17873
17874 * adaint.h: (__gnat_fopen): Declare.
17875 (__gnat_freopen): Likewise.
17876
17877 * mingw32.h (_tfreopen): Define this macro here for older MingW
17878 version.
17879 Activate the unicode support on platforms using a MingW runtime
17880 version 3.9 or newer.
17881
17882 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
17883 This is needed for proper unicode support on Windows.
17884 (freopen): Idem.
17885
178862006-10-31 Eric Botcazou <ebotcazou@adacore.com>
17887 Nicolas Setton <setton@adacore.com>
17888 Olivier Hainque <hainque@adacore.com>
17889 Gary Dismukes <dismukes@adacore.com>
17890
17891 * gigi.h: (tree_code_for_record_type): Declare.
17892 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
17893 (get_global_renaming_pointers): Rename to
17894 invalidate_global_renaming_pointers.
17895 (static_ctors): Delete.
17896 (static_dtors): Likewise.
17897 (gnat_write_global_declarations): Declare.
17898 (create_var_decl): Adjust descriptive comment to indicate that the
17899 subprogram may return a CONST_DECL node.
17900 (create_true_var_decl): Declare new function, similar to
17901 create_var_decl but forcing the creation of a VAR_DECL node.
17902 (get_global_renaming_pointers): Declare.
17903 (add_global_renaming_pointer): Likewise.
17904
17905 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
17906
17907 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
17908 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
17909 processing.
17910 (gnat_to_gnu_entity): Remove From_With_Type from computation for
17911 imported_p.
17912 <E_Access_Type>: Use the Non_Limited_View as the full view of the
17913 designated type if the pointer comes from a limited_with clause. Make
17914 incomplete designated type if it is in the main unit and has a freeze
17915 node.
17916 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
17917 Underlying_Full_View similarly. Return earlier if the full view already
17918 has an associated tree.
17919 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
17920 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
17921 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
17922 reference type built for objects with an address clause.
17923 Use create_true_var_decl with const_flag set for
17924 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
17925 TREE_READONLY set.
17926 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
17927 for Character and Wide_Character types. This info is read by the
17928 dwarf-2 writer, and is needed to be able to use the command "ptype
17929 character" in the debugger.
17930 (gnat_to_gnu_entity): When generating a type representing
17931 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
17932 so that debug writers can distinguish it from ordinary integers.
17933 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
17934 addition to TREE_READONLY to assert the constantness of variables for
17935 elaboration purposes.
17936 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
17937 parameters to call new Einfo function First_Formal_With_Extras.
17938 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
17939 protected type with its corresponding discriminant, to obtain a usable
17940 declaration
17941 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
17942 for a multiple elaboration of the "equivalent" type.
17943 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
17944 into record_global_renaming_pointer.
17945 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
17946 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
17947 <E_Array_Subtype>: Likewise.
17948 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
17949 incomplete subtypes and incomplete subtypes of incomplete types visible
17950 through a limited with clause.
17951 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
17952 the base index type for the maximum size of the array only if they are
17953 constant.
17954 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
17955 expression into a SAVE_EXPR if stabilization failed.
17956
17957 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
17958 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
17959 by lower level compilation passes.
17960 (gnat_genericize): New function, lowering a function body to GENERIC.
17961 Turn the type of RESULT_DECL into a real reference type if the decl
17962 has been marked DECL_BY_REFERENCE, and adjust references to the latter
17963 accordingly.
17964 (gnat_genericize_r): New function. Tree walking callback for
17965 gnat_genericize.
17966 (convert_from_reference, is_byref_result): New functions. Helpers for
17967 gnat_genericize_r.
17968 (create_type_decl): Call gnat_pushdecl before calling
17969 rest_of_decl_compilation, to make sure that field TYPE_NAME of
17970 type_decl is properly set before calling the debug information writers.
17971 (write_record_type_debug_info): The heuristics which compute the
17972 alignment of a field in a variant record might not be accurate. Add a
17973 safety test to make sure no alignment is set to a smaller value than
17974 the alignment of the field type.
17975 (make_dummy_type): Use the Non_Limited_View as the underlying type if
17976 the type comes from a limited_with clause. Do not loop on the full view.
17977 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
17978 (dummy_node_table): New global variable, moved from decl.c.
17979 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
17980 (save_gnu_tree): Use above macros.
17981 (get_gnu_tree): Likewise.
17982 (present_gnu_tree): Likewise.
17983 (init_dummy_type): New function, moved from decl.c. Use above macros.
17984 (make_dummy_type): Likewise.
17985 (tree_code_for_record_type): New function extracted from make_dummy_type
17986 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
17987 (static_ctors): Change it to a vector, make static.
17988 (static_dtors): Likewise.
17989 (end_subprog_body): Adjust for above change.
17990 (build_global_cdtor): Moved from trans.c.
17991 (gnat_write_global_declarations): Emit global constructor and
17992 destructor, and call cgraph_optimize before emitting debug info for
17993 global declarations.
17994 (global_decls): New global variable.
17995 (gnat_pushdecl): Store the global declarations in global_decls, for
17996 later use.
17997 (gnat_write_global_declarations): Emit debug information for global
17998 declarations.
17999 (create_var_decl_1): Former create_var_decl, with an extra argument to
18000 state whether the creation of a CONST_DECL is allowed.
18001 (create_var_decl): Behavior unchanged. Now a wrapper around
18002 create_var_decl_1 allowing CONST_DECL creation.
18003 (create_true_var_decl): New function, similar to create_var_decl but
18004 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
18005 (create_field_decl): Do not always mark the field as addressable
18006 if its type is an aggregate.
18007 (global_renaming_pointers): New static variable.
18008 (add_global_renaming_pointer): New function.
18009 (get_global_renaming_pointers): Likewise.
18010
18011 * misc.c (gnat_dwarf_name): New function.
18012 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
18013 (gnat_post_options): Add comment about structural alias analysis.
18014 (gnat_parse_file): Do not call cgraph_optimize here.
18015 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
18016
18017 * trans.c (process_freeze_entity): Don't abort if we already have a
18018 non dummy GCC tree for a Concurrent_Record_Type, as it might
18019 legitimately have been elaborated while processing the associated
18020 Concurrent_Type prior to this explicit freeze node.
18021 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
18022 exception handler volatile if it is of variable size.
18023 (process_type): Remove bypass for types coming from a limited_with
18024 clause.
18025 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
18026 actual, convert the corresponding gnu_actual to the real destination
18027 type when necessary.
18028 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
18029 originally TREE_READONLY but whose elaboration cannot be performed
18030 statically.
18031 Part of fix for F504-021.
18032 (tree_transform, subprogram cases): Change loops on formal parameters to
18033 call new Einfo function First_Formal_With_Extras.
18034 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
18035 stemming from type conversion for the lhs.
18036 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
18037 number of bits per unit for components of records.
18038 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
18039 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
18040 with At_End_Proc after the SJLJ EH cleanup.
18041 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
18042 compilation unit.
18043 (elaborate_all_entities): Do not retest type_annotate_only.
18044 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
18045 result type of an abstract subprogram, which may be an itype associated
18046 with an anonymous access result (related to AI-318-02).
18047 (build_global_cdtor): Move to utils.c.
18048 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
18049 this choice is not a null tree nor an integer constant.
18050 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
18051 on the body of elaboration routines instead of mark_unvisited.
18052 (add_stmt): Do not mark the tree.
18053 (add_decl_expr): Tweak comment.
18054 (mark_unvisited): Delete.
18055 (unshare_save_expr): New static function.
18056 (call_to_gnu): Issue an error when making a temporary around a
18057 procedure call because of non-addressable actual parameter if the
18058 type of the formal is by_reference.
18059 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
18060 after building the elaboration routine.
18061
180622006-10-31 Bob Duff <duff@adacore.com>
18063
18064 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
18065 as finalization-started, so we can raise Program_Error on 'new'.
18066
18067 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
18068 collection has already started.
18069
18070 * s-finimp.ads (Collection_Finalization_Started): Added new special
18071 flag value for indicating that a collection's finalization has started.
18072
18073 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
18074 create a task whose master has already waited for dependent tasks.
18075
180762006-10-31 Robert Dewar <dewar@adacore.com>
18077
18078 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
18079
9e81dbc7
AS
18080 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
18081 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
18082 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
18083 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
18084 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
70198b9f
AC
18085 a-except-2005.ads: Add pragma Preelaborable_Warning
18086
180872006-10-31 Robert Dewar <dewar@adacore.com>
18088 Jose Ruiz <ruiz@adacore.com>
18089
18090 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
18091
18092 * ali.adb (Get_Name): Properly handle scanning of wide character names
18093 encoded with brackets notation.
18094 (Known_ALI_Lines): Add S lines to this list.
18095 (Scan_ALI): Acquire S (priority specific dispatching) lines.
18096 New flag Elaborate_All_Desirable in unit table
18097
18098 * ali.ads (Priority_Specific_Dispatching): Add this range of
18099 identifiers to be used for Priority_Specific_Dispatching table entries.
18100 (ALIs_Record): Add First_Specific_Dispatching and
18101 Last_Specific_Dispatching that point to the first and last entries
18102 respectively in the priority specific dispatching table for this unit.
18103 (Specific_Dispatching): Add this table for storing each S (priority
18104 specific dispatching) line encountered in the input ALI file.
18105 New flag Elaborate_All_Desirable in unit table
18106
18107 * bcheck.adb: (Check_Configuration_Consistency): Add call to
18108 Check_Consistent_Dispatching_Policy.
18109 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
18110 verifying that the use of Priority_Specific_Dispatching,
18111 Task_Dispatching_Policy, and Locking_Policy is consistent across the
18112 partition.
18113
18114 * bindgen.adb: (Public_Version_Warning): function removed.
18115 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
18116 required information from ALI files in order to initialize the table
18117 containing the specific dispatching policy.
18118 (Gen_Adainit_Ada): Generate the variables required for priority specific
18119 dispatching entries (__gl_priority_specific_dispatching and
18120 __gl_num_specific_dispatching).
18121 (Gen_Adainit_C): Generate the variables required for priority specific
18122 dispatching entries (__gl_priority_specific_dispatching and
18123 __gl_num_specific_dispatching).
18124 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
18125 pragma entries.
18126 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
18127 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
18128 (Tab_To): Removed.
18129 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
18130 a call to gnat_set_globals.
18131 Generate a string containing settings from
18132 Priority_Specific_Dispatching pragma entries.
18133 (Gen_Object_Files_Options): Do not include the runtime libraries when
18134 pragma No_Run_Time is specified.
18135
18136 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
18137 consistency with s-intman-posix.adb.
18138 (__gnat_error_handler, case FreeBSD): Account for the fact that the
18139 handler is installed with SA_SIGINFO.
18140 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
18141 FreeBSD ZCX support, copied from Linux version.
18142 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
18143 sigfillset, and sigemptyset so the routines defined by MaRTE.
18144 (__gl_priority_specific_dispatching): Add this variable that stores the
18145 string containing priority specific dispatching policies in the
18146 partition.
18147 (__gl_num_specific_dispatching): Add this variable that indicates the
18148 highest priority for which a priority specific dispatching pragma
18149 applies.
18150 (__gnat_get_specific_dispatching): Add this routine that returns the
18151 priority specific dispatching policy, as set by a
18152 Priority_Specific_Dispatching pragma appearing anywhere in the current
18153 partition. The input argument is the priority number, and the result
18154 is the upper case first character of the policy name.
18155 (__gnat_set_globals): Now a dummy function.
18156 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
18157 mechargs instead of sigargs, as the latter can be retrieved from the
18158 former and sigargs is not what we want on ia64.
18159 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
18160 mechargs argument.
18161 (__gnat_adjust_context_for_raise, ia64-vms): New function.
18162 (tasking_error): Remove unused symbol.
18163 (_abort_signal): Move this symbol to the IRIX specific part since this
18164 is the only target that uses this definition.
18165 (Check_Abort_Status): Move this symbol to the IRIX specific part since
18166 this is the only target that uses this definition.
18167 (Lock_Task): Remove unused symbol.
18168 (Unlock_Task): Remove unused symbol.
18169
18170 * lib-writ.adb (Write_ALI): Output new S lines for
18171 Priority_Specific_Dispatching pragmas.
18172 Implement new flag BD for elaborate body desirable
18173
18174 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
18175 (Specific_Dispatching): Add this table for storing the entries
18176 corresponding to Priority_Specific_Dispatching pragmas.
18177 Document new BD flag for elaborate body desirable
18178
18179 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
18180 of known pragmas.
18181
181822006-10-31 Javier Miranda <miranda@adacore.com>
18183
9e81dbc7 18184 * a-tags.ads, a-tags.adb:
70198b9f
AC
18185 (Predefined_DT): New function that improves readability of the code.
18186 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
18187 Inherit_DT): Use the new function Predefined_DT to improve code
18188 readability.
18189 (Register_Interface_Tag): Update assertion.
18190 (Set_Interface_Table): Update assertion.
18191 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
18192 determining progenitor interfaces in Tags.
18193 (Inherit_CPP_DT): New subprogram.
18194
6f7f72f9 18195 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
70198b9f 18196 analysis of the thunk code.
6f7f72f9
EB
18197 (Expand_Interface_Conversion): Handle run-time conversion of
18198 access to class wide types.
70198b9f
AC
18199 (Expand_Dispatching_Call): When generating the profile for the
18200 subprogram itype for a dispatching operation, properly terminate the
18201 formal parameters chaind list (set the Next_Entity of the last formal
18202 to Empty).
18203 (Collect_All_Interfaces): Removed. This routine has been moved to
18204 sem_util and renamed as Collect_All_Abstract_Interfaces.
18205 (Set_All_DT_Position): Hidden entities associated with abstract
18206 interface primitives are not taken into account in the check for
18207 3.9.3(10); this check is done with the aliased entity.
18208 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
18209 interfacing with CPP by default.
18210 (Expand_Interface_Conversion): Add missing support for static conversion
18211 from an interface to a tagged type.
18212 (Collect_All_Interfaces): Add new out formal containing the list of
18213 abstract interface types to cleanup the subprogram Make_DT.
18214 (Make_DT): Update the code to generate the table of interfaces in case
18215 of abstract interface types.
18216 (Is_Predefined_Dispatching_Alias): New function that returns true if
18217 a primitive is not a predefined dispatching primitive but it is an
18218 alias of a predefined dispatching primitive.
18219 (Make_DT): If the ancestor of the type is a CPP_Class and we are
18220 compiling under full ABI compatibility mode we avoid the generation of
18221 calls to run-time services that fill the dispatch tables because under
18222 this mode we currently inherit the dispatch tables in the IP subprogram.
18223 (Write_DT): Emit an "is null" indication for a null procedure primitive.
18224 (Expand_Interface_Conversion): Use an address as the type of the formal
18225 of the internally built function that handles the case in which the
18226 target type is an access type.
18227
182282006-10-31 Robert Dewar <dewar@adacore.com>
18229
18230 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
18231
182322006-10-31 Robert Dewar <dewar@adacore.com>
18233
18234 * bindusg.ads, bindusg.adb:
18235 Change to package and rename procedure as Display, which
18236 now ensures that it only outputs usage information once.
18237
182382006-10-31 Jose Ruiz <ruiz@adacore.com>
18239
18240 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
18241 using RTPs.
18242
18243 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
18244 when using RTPs.
18245
182462006-10-31 Robert Dewar <dewar@adacore.com>
18247 Ed Schonberg <schonberg@adacore.com>
18248
18249 * treepr.adb: Use new subtype N_Membership_Test
18250
6f7f72f9
EB
18251 * checks.ads, checks.adb: Add definition for Validity_Check
18252 (Range_Or_Validity_Checks_Suppressed): New function
18253 (Ensure_Valid): Test Validity_Check suppressed
18254 (Insert_Valid_Check): Test Validity_Check suppressed
18255 (Insert_Valid_Check): Preserve Do_Range_Check flag
70198b9f
AC
18256 (Validity_Check_Range): New procedure
18257 (Expr_Known_Valid): Result of membership test is always valid
18258 (Selected_Range_Checks): Range checks cannot be applied to discriminants
18259 by themselves. Disabling those checks must also be done for task types,
18260 where discriminants may be used for the bounds of entry families.
18261 (Apply_Address_Clause_Check): Remove side-effects if address expression
18262 is non-static and is not the name of a declared constant.
18263 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
18264 Code cleanup and new error messages.
18265 (Enable_Range_Check): Test for some cases of suppressed checks
18266 (Generate_Index_Checks): Suppress index checks if index checks are
18267 suppressed for array object or array type.
18268 (Apply_Selected_Length_Checks): Give warning for compile-time detected
18269 length check failure, even if checks are off.
18270 (Ensure_Valid): Do not generate a check on an indexed component whose
18271 prefix is a packed boolean array.
18272 * checks.adb: (Alignment_Checks_Suppressed): New function
18273 (Apply_Address_Clause_Check): New procedure, this is a completely
18274 rewritten replacement for Apply_Alignment_Check
18275 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
18276 we request a discriminal value only in case of discriminants.
18277 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
18278 assignments where the target subtype is unconstrained and the target
18279 object is a parameter or dereference (other aliased cases are known
18280 to be unconstrained).
18281
182822006-10-31 Robert Dewar <dewar@adacore.com>
18283
18284 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
18285 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
18286 vms_conv.adb: Fix bad table increment values (much too small)
18287
18288 * table.adb (Realloc): Make sure we get at least some new elements
18289 Defends against silly small values for table increment
18290
182912006-10-31 Robert Dewar <dewar@adacore.com>
18292 Ed Schonberg <schonberg@adacore.com>
18293 Bob Duff <duff@adacore.com>
18294
18295 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
18296 entities. Move other fields around to make this possible
18297 (Is_Derived_Type): Add missing call to Is_Type.
18298 (Extra_Formals): New function for subprograms, entries, subprogram
18299 types.
18300 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
18301 (First_Formal_With_Extras): New function for subprogs, entries, subp
18302 types.
18303 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
18304 Add node information for E_Return_Statement.
18305 (Elaborate_Body_Desirable): New flag
18306 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
18307 to be Is_Inherently_Limited_Type, because return-by-reference has
18308 no meaning in Ada 2005.
18309 (E_Return_Statement): New entity kind.
18310 (Return_Applies_To): Field of E_Return_Statement.
18311 (Is_Return_Object): New flag in object entities.
18312 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
18313 (Must_Have_Preelab_Init): New flag
18314 (Known_To_Have_Preelab_Init): New flag
18315 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
18316 (Is_Visible_Formal): New flag on entities in formal packages.
18317 (Low_Bound_Known): New flag
18318 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
18319 Incomplete_Kind.
18320 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
18321 output when Id is an incomplete subtype.
18322
183232006-10-31 Robert Dewar <dewar@adacore.com>
18324
18325 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
18326 Avoid abbreviation Creat
18327 (Finalize): List all sources in extended mail source if -gnatl
18328 switch is active.
18329 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
18330 (Finalize): Implement new -gnatl=xxx switch to output listing to file
18331 (Set_Specific_Warning_On): New procedure
18332 (Set_Specific_Warning_Off): New procedure
18333 Add implementation of new insertion \\
18334 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
18335 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
18336 types.
18337 (Error_Msg_Internal): Make sure that we set Last_Killed to
18338 True when a message from another package is suppressed.
18339 Implement insertion character ~ (insert string)
18340 (First_Node): Minor adjustments to get better placement.
18341
9e81dbc7 18342 * frontend.adb:
70198b9f
AC
18343 Implement new -gnatl=xxx switch to output listing to file
18344
9e81dbc7 18345 * gnat1drv.adb:
70198b9f
AC
18346 Implement new -gnatl=xxx switch to output listing to file
18347
6f7f72f9 18348 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
70198b9f
AC
18349 (Commands_To_Stdout): New flag
18350 Implement new -gnatl=xxx switch to output listing to file
18351 New switch Dump_Source_Text
18352 (Warn_On_Deleted_Code): New warning flag for -gnatwt
18353 Define Error_Msg_Line_Length
18354 (Warn_On_Assumed_Low_Bound): New switch
18355
18356 * osint.ads, osint.adb
18357 (Normalize_Directory_Name): Fix bug.
18358 Implement new -gnatl=xxx switch to output listing to file
18359 (Concat): Removed, replaced by real concatenation
18360 Make use of concatenation now allowed in compiler
18361 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
18362 we find the 'lib' or 'bin' directory even when the tool has been
18363 invoked with a relative path.
18364 (Executable_Name): New function taking string parameters.
18365
9e81dbc7 18366 * osint-c.ads, osint-c.adb:
70198b9f
AC
18367 Implement new -gnatl=xxx switch to output listing to file
18368
18369 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
18370
9e81dbc7 18371 * switch-c.adb:
70198b9f
AC
18372 Implement new -gnatl=xxx switch to output listing to file
18373 Recognize new -gnatL switch
18374 (no longer keep in old warning about old style usage)
18375 Use concatenation to simplify code
18376 Recognize -gnatjnn switch
18377 (Scan_Front_End_Switches): Clean up handling of -gnatW
18378 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
18379
183802006-10-31 Robert Dewar <dewar@adacore.com>
18381
18382 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
18383 (Set_Specific_Warning_Off): New procedure
18384 (Warning_Specifically_Suppressed): New function
18385 (Validate_Specific_Warnings): New procedure
18386 (Output_Msg_Text): Complete rewrite to support -gnatjnn
18387
18388 * err_vars.ads: Implement insertion character ~ (insert string)
18389
183902006-10-31 Bob Duff <duff@adacore.com>
18391 Ed Schonberg <schonberg@adacore.com>
18392
18393 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
18394 the parent part is a build-in-place function call, generate assignments.
18395 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
18396 are build-in-place function calls.
18397 (Replace_Self_Reference): New subsidiary of
18398 Make_OK_Assignment_Statement, to replace an access attribute that is a
18399 self-reference into an access to the appropriate component of the
18400 target object. Generalizes previous mechanism to handle self-references
18401 nested at any level.
18402 (Is_Self_Referential_Init): Remove, not needed.
18403 (Is_Self_Referential_Init): New predicate to simplify handling of self
18404 referential components in record aggregates.
18405 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
18406 check for presence of entity before checking for self-reference.
18407 (Has_Default_Init_Comps): Return True if a component association is a
18408 self-reference to the enclosing type, which can only come from a
18409 default initialization.
18410 (Make_OK_Assignment_Statement): If the expression is of the form
18411 Typ'Acc, where Acc is an access attribute, the expression comes from a
18412 default initialized self-referential component.
18413 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
18414 that has been derived from several abstract interfaces we must also
18415 initialize the tags of the secondary dispatch tables.
18416
184172006-10-31 Ed Schonberg <schonberg@adacore.com>
18418 Thomas Quinot <quinot@adacore.com>
18419 Javier Miranda <miranda@adacore.com>
18420 Robert Dewar <dewar@adacore.com>
6f7f72f9 18421
9e81dbc7 18422 * exp_attr.adb:
6f7f72f9
EB
18423 (Expand_Access_To_Protected_Op): If the context indicates that an access
18424 to a local operation may be transfered outside of the object, create an
18425 access to the wrapper operation that must be used in an external call.
70198b9f
AC
18426 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
18427 target, pass the Valid attribute applied to a floating-point prefix on
18428 to the back end without expansion.
18429 (Storage_Size): Use the new run-time function Storage_Size to retrieve
18430 the allocated storage when it is specified by a per-object expression.
18431 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
18432 Nothing to do here, the attribute has been rewritten during semantic
18433 analysis.
18434 (Expand_Attribute_Reference): Handle expansion of the new Priority
18435 attribute
18436 (Find_Fat_Info): Handle case of universal real
18437 (Expand_Access_To_Protected_Op): Fix use of access to protected
18438 subprogram from inside the body of a protected entry.
18439 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
18440 'Access and 'Unrestricted_Access, to transform the attribute reference
18441 into a fat pointer.
18442 (Is_Constrained_Aliased_View): New predicate to help determine whether a
18443 subcomponent's enclosing variable is aliased with a constrained subtype.
18444 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
18445 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
18446 an aliased prefix must be known to be constrained in order to use True
18447 for the attribute value, and now it's possible for some aliased views
18448 to be unconstrained.
18449
184502006-10-31 Robert Dewar <dewar@adacore.com>
18451
18452 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
18453 (Expand_Entity_Reference): Correct error of not handling subprogram
18454 formals in current_value processing.
18455
184562006-10-31 Javier Miranda <miranda@adacore.com>
18457 Robert Dewar <dewar@adacore.com>
18458 Ed Schonberg <schonberg@adacore.com>
18459 Gary Dismukes <dismukes@adacore.com>
18460
6f7f72f9 18461 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
70198b9f
AC
18462 register in the final list objects containing class-wide interfaces;
18463 otherwise we incorrectly register the tag of the interface in the final
18464 list.
6f7f72f9
EB
18465 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
18466 generate the wrapper if the parent primitive is abstract. This is
18467 required to report the correct error message.
18468 (Expand_N_Subtype_Indication): Do validity checks on range
70198b9f
AC
18469 (Clean_Task_Names): If an initialization procedure includes a call to
18470 initialize a task (sub)component, indicate that the procedure will use
18471 the secondary stack.
18472 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
18473 compatibility for interfacing with CPP by default.
18474 (Expand_N_Object_Declaration): Only build an Adjust call when the
18475 object's type is a nonlimited controlled type.
18476 * exp_ch3.adb: Add with and use of Exp_Ch6.
18477 (Expand_N_Object_Declaration): Check for object initialization that is a
18478 call to build-in-place function and apply Make_Build_In_Place_Call_In_
18479 Object_Declaration to the call.
18480 (Freeze_Type): When the designated type of an RACW was not frozen at the
18481 point where the RACW was declared, validate the primitive operations
18482 with respect to E.2.2(14) when it finally is frozen.
18483 (Build_Initialization_Call,Expand_Record_Controller): Rename
18484 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
18485 return-by-reference has no meaning in Ada 2005.
18486 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
18487 to register tag of the immediate ancestor interfaces in the
18488 run-time structure.
18489 (Init_Secondary_Tags): Moved to the specification to allow the
18490 initialization of extension aggregates with abstract interfaces.
18491 (Build_Master_Renaming): Make public, for use by function declarations
18492 whose return type is an anonymous access type.
18493 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
18494 Insert_List_Before_And_Analyze after the generation of the specs
18495 associated with null procedures.
18496 (Expand_Tagged_Root): Update documentation in its specification.
18497 (Init_Secondary_Tags): Update documentation.
18498 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
18499 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
18500 then generate code to inherit the contents of the dispatch table
18501 directly from the ancestor.
18502 (Expand_Record_Controller): Insert controller component after tags of
18503 implemented interfaces.
18504 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
18505 create null procedure overridings when null procedures are inherited
18506 from interfaces.
18507 (Make_Null_Procedure_Specs): New procedure to generate null procedure
18508 declarations for overriding null primitives inherited from interfaces.
18509 (Is_Null_Interface_Procedure): New function in
18510 Make_Null_Procedure_Specs.
18511 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
18512 immediate ancestor of a tagged type is an abstract interface type we
18513 must generate the specification of the predefined primitives associated
18514 with controlled types (because the dispatch table of the ancestor is
18515 null and hence these entries cannot be inherited). This is required to
18516 elaborate well the dispatch table.
18517
185182006-10-31 Javier Miranda <miranda@adacore.com>
18519 Ed Schonberg <schonberg@adacore.com>
18520 Bob Duff <duff@adacore.com>
18521 Gary Dismukes <dismukes@adacore.com>
18522 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
18523
18524 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
70198b9f 18525 conversion.
6f7f72f9 18526 (Expand_N_In): Do validity checks on range
70198b9f
AC
18527 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
18528 (Expand_N_Allocator): For "new T", if the object is constrained by
18529 discriminant defaults, allocate the right amount of memory, rather than
18530 the maximum for type T.
18531 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
18532 when the allocator is initialized by a build-in-place call, since the
18533 allocator is already rewritten as a reference to the function result,
18534 and this prevents an unwanted duplication of the function call.
18535 Add with and use of Exp_Ch6.
18536 (Expand_Allocator_Expresssion): Check for an allocator whose expression
18537 is a call to build-in-place function and apply
18538 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
18539 untagged designated types).
18540 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
18541 optimization if source or target is biased.
18542 (Expand_N_Allocator): Add comments for case of an allocator within a
18543 function that returns an anonymous access type designating tasks.
18544 (Expand_N_Allocator): apply discriminant checks for access
18545 discriminants of anonymous access types (AI-402, AI-416)
18546
185472006-10-31 Bob Duff <duff@adacore.com>
18548 Robert Dewar <dewar@adacore.com>
18549 Gary Dismukes <dismukes@adacore.com>
18550 Ed Schonberg <schonberg@adacore.com>
18551
18552 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
18553
6f7f72f9 18554 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
70198b9f
AC
18555 (Expand_N_Assignment_Statement): Call
18556 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
18557 build-in-place function call. Currently, this can happen only for
18558 assignments that come from aggregates.
18559 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18560 in order to alleviate the upward compatibility introduced by AI-318.
18561 (Expand_N_Extended_Return_Statement): Add support for handling the
18562 return object as a build-in-place result.
18563 (Expand_Non_Function_Return): Implement simple return statements nested
18564 within an extended return.
18565 (Enable_New_Return_Processing): Turn on the new processing of return
18566 statements.
18567 (Expand_Non_Function_Return): For a return within an extended return,
18568 don't raise Program_Error, because Sem_Ch6 now gives a warning.
18569 (Expand_N_Extended_Return_Statement): Implement AI-318
18570 (Expand_Simple_Function_Return): Ditto.
18571 (Expand_N_If_Statement): Handle new -gnatwt warning
18572 (Expand_N_Case_Statement): Handle new -gnatwt warning
18573 (Expand_N_Assignment): Handle assignment to the Priority attribute of
18574 a protected object.
18575 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
18576 validity checking of assignments to elementary record components.
18577 (Expand_N_Return_Statement): return Class Wide types on the secondary
18578 stack independantly of their controlled status since with HIE runtimes,
18579 class wide types are not potentially controlled anymore.
18580
18581 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
18582 node kind.
18583
18584 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
18585 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
18586 it expects a block, procedure, or task. The return statement will get
18587 turned into a block, and Expand_Cleanup_Actions will happen then.
18588
185892006-10-31 Robert Dewar <dewar@adacore.com>
18590 Ed Schonberg <schonberg@adacore.com>
18591 Bob Duff <duff@adacore.com>
18592 Gary Dismukes <dismukes@adacore.com>
18593
18594 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
18595 capability.
18596 (Expand_Inlined_Call): Tagged types are by-reference types, and
18597 therefore should be replaced by a renaming declaration in the expanded
18598 body, as is done for limited types.
18599 (Expand_Call): If this is a call to a function with dispatching access
18600 result, propagate tag from context.
18601 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
18602 CPP by default.
18603 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
18604 build-in-place when the right-hand side of an assignment is a
18605 build-in-place function call.
18606 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
18607 of the explicit dereference of the allocator to the result subtype of
18608 the build-in-place function. This is needed to satisfy type checking
18609 in cases where the caller's return object is created by an allocator for
18610 a class-wide access type and the type named in the allocator is a
18611 specific type.
18612 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
18613 conversion of the reference to the declared object to the result subtype
18614 of the build-in-place function. This is needed to satisfy type checking
18615 in cases where the declared object has a class-wide type. Also, in the
18616 class-wide case, change the type of the object entity to the specific
18617 result subtype of the function, to avoid passing a class-wide object
18618 without explicit initialization to the back end.
18619 (Register_Interface_DT_Entry): Moved outside the body of
18620 Freeze_Subprogram because this routine is now public; it is called from
18621 Check_Dispatching_Overriding to handle late overriding of abstract
18622 interface primitives.
18623 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
18624 adding an implicit access actual on a call to a build-in-place function.
18625 (Expand_Actuals): Test for an actual parameter that is a call to a
18626 build-in-place function and apply
18627 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
18628 (Is_Build_In_Place_Function): New function to determine whether an
18629 entity is a function whose calls should be handled as build-in-place.
18630 (Is_Build_In_Place_Function_Call): New function to determine whether an
18631 expression is a function call that should handled as build-in-place.
18632 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
18633 calls to build-in-place functions as the initialization of an allocator.
18634 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
18635 handling calls to build-in-place functions in contexts that do not
18636 involve init of a separate object (for example, actuals of subprogram
18637 calls).
18638 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
18639 handling calls to build-in-place functions as the initialization of an
18640 object declaration.
18641 (Detect_Infinite_Recursion): Add explicit parameter Process to
18642 instantiation of Traverse_Body to avoid unreferenced warning.
18643 (Check_Overriding_Inherited_Interfaces): Removed.
18644 (Register_Interface_DT_Entry): Code cleanup.
18645 (Register_Predefined_DT_Entry): Code cleanup.
18646 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
18647 inlined statements if within a transient scope.
18648 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
18649 formal parameters with occurrences of actuals in inlined body, establish
18650 visibility on the proper view of the actual's subtype for the body's
18651 context.
18652 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
18653 compatibility mode and we have an imported CPP subprogram because
18654 for now we assume that imported CPP primitives correspond with
18655 objects whose constructor is in the CPP side (and therefore we
18656 don't need to generate code to register them in the dispatch table).
18657 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
18658 aligned selected component.
18659 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
18660 the actual of an in-mode parameter is a type conversion.
18661 (Expand_Actuals): If the call does not come from source and the actual
18662 is potentially misaligned, let gigi handle it rather than rejecting the
18663 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
18664 Class Wide types as returning by reference independantly of their
18665 controlled status since with HIE runtimes class wide types are not
18666 potentially controlled anymore.
18667
6f7f72f9 186682006-10-31 Ed Schonberg <schonberg@adacore.com>
70198b9f 18669
6f7f72f9 18670 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
70198b9f
AC
18671 references that are private components of the protected object.
18672 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
18673 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
18674 instantiation to deal with warnings.
18675 (Initialize_Protection): If expression for priority is non-static, use
18676 System_Priority as its expected type, in case the expression has not
18677 been analyzed yet.
18678
186792006-10-31 Robert Dewar <dewar@adacore.com>
18680
18681 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
18682 initialization of Homonym_Len.
18683 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
18684 names from fully qualified name. Fixes problem of duplicate
18685 external names differing only in the presence of such a block name.
18686
186872006-10-31 Thomas Quinot <quinot@adacore.com>
18688 Pablo Oliveira <oliveira@adacore.com>
6f7f72f9
EB
18689
18690 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
70198b9f
AC
18691 subprogram Ids, even if they are not yet assigned.
18692 (Build_Subprogram_Id): It is now this function that will take care of
18693 calling Assign_Subprogram_Ids if necessary.
18694 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
18695 should be done only once they are assigned.
18696 (Build_From_Any_Function, case of tagged types): Add missing call to
18697 Allocate_Buffer.
18698 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
18699 type for an RACW type.
18700 (Add_RACW_Features): When processing an RACW declaration for which the
18701 designated type is already frozen, enforce E.2.2(14) rules immediately.
18702 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
18703 special reordering of controlling formals.
18704
18705 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
18706 associated stub type for an RACW type.
18707
187082006-10-31 Ed Schonberg <schonberg@adacore.com>
18709
18710 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
18711 fixed-point operations in an integer context, i.e. as operands of a
18712 conversion to an integer type, indicate that result must be rounded.
18713
187142006-10-31 Robert Dewar <dewar@adacore.com>
18715
18716 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
18717 cases, pass the encoding method, since it is now required by the run
18718 time.
18719
18720 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
18721 assumption that Str'First = 1.
18722 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
18723 it on to the Value_Wide_Wide_Character call.
18724 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
18725 properly handles a string of the form quote-encoded_wide_char-quote.
18726
18727 * s-wchcnv.adb: Minor reformatting
18728
187292006-10-31 Javier Miranda <miranda@adacore.com>
6f7f72f9 18730
70198b9f
AC
18731 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
18732 run-time membership test to ensure that the constructed object
18733 implements the target abstract interface.
18734
187352006-10-31 Robert Dewar <dewar@adacore.com>
18736
18737 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
18738 Machine_Attribute pragma internally to implement the user pragma.
18739 Add processing for pragma Interface so that it is now completely
18740 equivalent to pragma Import.
18741
18742 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
18743 so that it can be applied to all entities, including record components
18744 and enumeration literals.
18745 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
18746 priority ranges are correct, verify compatibility against task
18747 dispatching and locking policies, and if everything is correct an entry
18748 is added to the table containing priority specific dispatching entries
18749 for this compilation unit.
18750 (Delay_Config_Pragma_Analyze): Delay processing
18751 Priority_Specific_Dispatching pragmas because when processing the
18752 pragma we need to access run-time data, such as the range of
18753 System.Any_Priority.
18754 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
18755 Allow pragma Unreferenced as a context item
18756 Add pragma Preelaborable_Initialization
18757 (Analyze_Pragma, case Interface): Interface is extended so that it is
18758 now syntactically and semantically equivalent to Import.
18759 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
18760 insertion characters.
18761 Add handling for Pragma_Wide_Character_Encoding
18762 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
18763 never supercedes a real restriction, and that a real restriction
18764 always supercedes a warning.
18765 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
18766 appropriate form.
18767
187682006-10-31 Bob Duff <duff@adacore.com>
18769 Ed Schonberg <schonberg@adacore.com>
18770 Robert Dewar <dewar@adacore.com>
18771
18772 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
18773 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
18774 Is_Inherently_Limited_Type, because return-by-reference has no meaning
18775 in Ada 2005.
18776 (Find_Node_To_Be_Wrapped): Use new method of determining the result
18777 type of the function containing a return statement, because the
18778 Return_Type field was removed. We now use the Return_Applies_To field.
18779
6f7f72f9 18780 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
70198b9f
AC
18781 (Build_Task_Image_Decl): If procedure is not called from an
18782 initialization procedure, indicate that function that builds task name
18783 uses the sec. stack. Otherwise the enclosing initialization procedure
18784 will carry the indication.
18785 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
18786 N_Object_Declaration instead.
18787 (Kill_Dead_Code): New interface to implement -gnatwt warning for
18788 conditional dead code killed, and change implementation accordingly.
18789 (Insert_Actions): Add N_Return_Object_Declaration case.
18790 Correct comment to mention N_Extension_Aggregate node.
18791 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
18792 attempts to save information for global variables which cannot be
18793 safely tracked.
18794 (Get_Current_Value_Condition): Handle conditions the other way round
18795 (constant on left). Also handle right operand of AND and AND THEN
18796 (Set_Current_Value_Condition): Corresponding changes
18797 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
18798 (Get_Current_Value_Condition): Handle simple boolean operands
18799 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
18800 (Get_Current_Value_Condition): If the variable reference is within an
18801 if-statement, does not appear in the list of then_statments, and does
18802 not come from source, treat it as being at unknown location.
18803 (Get_Current_Value_Condition): Enhance to allow while statements to be
18804 processed as well as if statements.
18805 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
18806 come from source.
18807 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
18808 of loop. This is safe now that we fixed Kill_Current_Values.
18809 (OK_To_Do_Constant_Replacement): Check whether current scope is
18810 Standard, before examining outer scopes.
18811
188122006-10-31 Vincent Celier <celier@adacore.com>
18813
18814 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
18815 When True, apply VMS treatment to children of packages A, G, I and S.
18816 For F320-016
18817
18818 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
18819
188202006-10-31 Robert Dewar <dewar@adacore.com>
18821 Ed Schonberg <schonberg@adacore.com>
18822
18823 * freeze.adb: Add handling of Last_Assignment field
18824 (Warn_Overlay): Supply missing continuation marks in error msgs
18825 (Freeze_Entity): Add check for Preelaborable_Initialization
18826
18827 * g-comlin.adb: Add Warnings (Off) to prevent new warning
18828
18829 * g-expect.adb: Add Warnings (Off) to prevent new warning
18830
18831 * lib-xref.adb: Add handling of Last_Assignment field
18832 (Generate_Reference): Centralize handling of pragma Obsolescent here
18833 (Generate_Reference): Accept an implicit reference generated for a
18834 default in an instance.
18835 (Generate_Reference): Accept a reference for a node that is not in the
18836 main unit, if it is the generic body corresponding to an subprogram
18837 instantiation.
18838
18839 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
18840
6f7f72f9 18841 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
70198b9f
AC
18842 -gnatwq/Q.
18843 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
18844 exception handler.
18845 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
18846 use clauses, to avoid messages on packages used to qualify, and also
18847 to avoid messages from obsolescent units.
18848 (Warn_On_Useless_Assignments): Don't generate messages for imported
18849 and exported variables.
18850 (Warn_On_Useless_Assignments): New procedure
18851 (Output_Obsolescent_Entity_Warnings): New procedure
18852 (Check_Code_Statement): New procedure
18853
6f7f72f9 18854 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
70198b9f
AC
18855 Change name Is_Ada_2005 to Is_Ada_2005_Only
18856 (Last_Assignment): New field for useless assignment warning
18857
188582006-10-31 Olivier Hainque <hainque@adacore.com>
18859
18860 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
18861 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
18862
188632006-10-31 Bob Duff <duff@adacore.com>
18864 Robert Dewar <dewar@adacore.com>
18865 Ed Schonberg <schonberg@adacore.com>
18866
18867 * g-awk.adb (Default_Session, Current_Session): Compile this file in
18868 Ada 95 mode, because it violates the new rules for AI-318.
18869
18870 * g-awk.ads: Use overloaded subprograms in every case where we used to
18871 have a default of Current_Session. This makes the code closer to be
18872 correct for both Ada 95 and 2005.
18873
18874 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
18875 code, relying on the fact that the compiler generates a warning
18876 instead of an error in -gnatg mode.
18877
18878 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
18879 E_Return_Statement entity kind.
18880 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
18881
18882 * par.adb (P_Interface_Type_Definition): Addition of one formal to
18883 report an error if the reserved word abstract has been previously found.
18884 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
6f7f72f9
EB
18885
18886 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
70198b9f
AC
18887 parenthesized range attribute usage
18888 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
18889
18890 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
18891 in the syntax for extended_return_statement. This is not in the latest
18892 RM, but the ARG is expected to issue an AI allowing this.
18893 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
18894 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
18895 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
18896 P_Return_Statement): Parse the new syntax for extended_return_statement.
18897
18898 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
18899 Output_End_Missing): Add error-recovery code for the new
18900 extended_return_statement syntax; that is, the new E_Return entry on
18901 the scope stack.
18902
18903 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
18904 limited to nonlimited, because otherwise we violate the new Ada 2005
18905 rules about returning limited types in function Create_AST_Handler in
18906 s-asthan.adb.
18907
18908 * sem.adb (Analyze): Add cases for new node kinds
18909 N_Extended_Return_Statement and N_Return_Object_Declaration.
18910
18911 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
18912 type is in the same category as type of context before applying check,
18913 to prevent anomalies in instantiations.
18914 (Resolve_Aggregate): Remove test for limited components in aggregates.
18915 It's unnecessary in Ada 95, because if it has limited components, then
18916 it must be limited. It's wrong in Ada 2005, because limited aggregates
18917 are now allowed.
18918 (Resolve_Record_Aggregate): Move check for limited types later, because
18919 OK_For_Limited_Init requires its argument to have been resolved.
18920 (Get_Value): When copying the component default expression for a
18921 defaulted association in an aggregate, use the sloc of the aggregate
18922 and not that of the original expression, to prevent spurious
18923 elaboration errors, when the expression includes function calls.
18924 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
18925 were missing. We also didn't handle qualified expressions. Now also
18926 allow function calls. Use new common routine OK_For_Limited_Init.
18927 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
18928 with space can upper case letter).
18929
6f7f72f9 18930 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
70198b9f 18931 Has_Static_Discriminants flag
6f7f72f9
EB
18932 (Record_Type_Declaration): Diagnose an attempt to declare an interface
18933 type with discriminants.
18934 (Process_Range_Expr_In_Decl): Do validity checks on range
70198b9f
AC
18935 (Build_Discriminant_Constraints): Use updated form of
18936 Denotes_Discriminant.
18937 (Process_Subtype): If the subtype is a private subtype whose full view
18938 is a concurrent subtype, introduce an itype reference to prevent scope
18939 anomalies in gigi.
18940 (Build_Derived_Record_Type, Collect_Interface_Primitives,
18941 Record_Type_Declaration): The functionality of the subprograms
18942 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
18943 is now performed by a single routine.
18944 (Build_Derived_Record_Type): If the type definition includes an explicit
18945 indication of limitedness, then the type must be marked as limited here
18946 to ensure that any access discriminants will not be treated as having
18947 a local anonymous access type.
18948 (Check_Abstract_Overriding): Issue a detailed error message when an
18949 abstract subprogram was not overridden due to incorrect mode of its
18950 first parameter.
18951 (Analyze_Private_Extension_Declaration): Add support for the analysis of
18952 synchronized private extension declarations. Verify that the ancestor is
18953 a limited or synchronized interface or in the generic case, the ancestor
18954 is a tagged limited type or synchronized interface and all progenitors
18955 are either limited or synchronized interfaces.
18956 Derived_Type_Declaration): Check for presence of private extension when
18957 dealing with synchronized formal derived types.
18958 Process_Full_View): Enchance the check done on the usage of "limited" by
18959 testing whether the private view is synchronized.
18960 Verify that a synchronized private view is completed by a protected or
18961 task type.
18962 (OK_For_Limited_Init_In_05): New function.
18963 (Analyze_Object_Declaration): Move check for limited types later,
18964 because OK_For_Limited_Init requires its argument to have been resolved.
18965 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18966 in order to alleviate the upward compatibility introduced by AI-318.
18967 (Constrain_Corresponding_Record): If the constraint is for a component
18968 subtype, mark the itype as frozen, to avoid out-of-scope references to
18969 discriminants in the back-end.
18970 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
18971 this subprogram against wrong sources.
18972 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
18973 discriminant of limited type completed with a protected type, when the
18974 discriminant is used to constrain a private component of the type, and
18975 expansion is disabled.
18976 (Find_Type_Of_Object): Do not treat a return subtype that is an
18977 anonymous subtype as a local_anonymous_type, because its accessibility
18978 level is the return type of the enclosing function.
18979 (Check_Initialization): In -gnatg mode, turn the error "cannot
18980 initialize entities of limited type" into a warning.
18981 (OK_For_Limited_Init): Return true for generated nodes, since it
18982 sometimes violates the legality rules.
18983 (Make_Incomplete_Declaration): If the type for which an incomplete
18984 declaration is created happens to be the currently visible entity,
18985 preserve the homonym chain when removing it from visibility.
18986 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
18987 inherited subprograms.
18988 (Access_Definition): If this is an access to function that is the return
18989 type of an access_to_function definition, context is a type declaration
18990 and the scope of the anonymous type is the current one.
18991 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
18992 incomplete subtype to the set of private dependents of the original
18993 incomplete type.
18994 (Constrain_Discriminated_Type): Emit an error message whenever an
18995 incomplete subtype is being constrained.
18996 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
18997 corresponding subtype of the full view of the original incomplete type.
18998 (Check_Incomplete): Properly detect invalid usage of incomplete types
18999 and subtypes.
19000
190012006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19002
19003 * g-catiio.ads, g-catiio.adb (Value): New function.
19004 Given an input String, try and parse a valid Time value.
19005
190062006-10-31 Vincent Celier <celier@adacore.com>
19007
19008 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
19009 Integer_Address arithmetic, as in Set_Valid.
19010
190112006-10-31 Arnaud Charlet <charlet@adacore.com>
19012 Robert Dewar <dewar@adacore.com>
19013
19014 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
19015 handling executable extension manually and duplicating code.
19016
19017 * make.adb: Implement new -S switch
19018 (Gnatmake): Use new function Osint.Executable_Name instead
19019 of handling executable extension manually.
19020
19021 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
19022 is specified, the executable name ends with this suffix.
19023 Take advantage of Osint.Executable_Name instead of duplicating code.
19024
19025 * switch-m.adb: Recognize new gnatmake -S switch
19026
19027 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
19028 variable.
19029 (Get_Target_Parameters): Set Executable_Extension_On_Target if
19030 available.
19031
19032 * makeusg.adb: Add line for gnatmake -S switch
19033
190342006-10-31 Vincent Celier <celier@adacore.com>
19035
19036 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
19037 call it with -static-libgcc, as there are some platforms, such as
19038 Darwin, where one of these two switches is compulsory to link.
19039
190402006-10-31 Vincent Celier <celier@adacore.com>
6f7f72f9 19041
70198b9f
AC
19042 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
19043 instead of ADA_PROJECT_PATH, for the project path.
19044 (Gnatls): When displaying the project path directories, use host dir
19045 specs.
19046
19047 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
19048 names in the project path, as absolute paths may correspond to
19049 multi-valued VMS logical names.
19050
190512006-10-31 Vincent Celier <celier@adacore.com>
19052
19053 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
19054 absolute path name.
19055 (Locate_Regular_File): Ditto
19056 (Change_Dir): Remove, no longer used
19057 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
19058 on Windows. Get it calling Get_Current_Dir.
19059 (OpenVMS): Remove imported boolean, no longer needed.
19060 (Normalize_Pathname)[VMS]: Do not resolve directory names.
19061 (Pid_To_Integer): New function to convert a Process_Id to Integer
19062
190632006-10-31 Thomas Quinot <quinot@adacore.com>
19064
19065 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
19066 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
19067 to No_Socket.
19068 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
19069 W_Sig_Socket.
19070
190712006-10-31 Robert Dewar <dewar@adacore.com>
19072
19073 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
19074 initial letter o as a zero.
19075
190762006-10-31 Robert Dewar <dewar@adacore.com>
19077
19078 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
19079
190802006-10-31 Robert Dewar <dewar@adacore.com>
19081
6f7f72f9
EB
19082 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
19083 variant records
19084 (Layout_Variant_Record): Retrieve the discriminants from the entity
70198b9f
AC
19085 rather than from the type definition, because in the case of a full
19086 type for a private type we need to take the discriminants from the
19087 partial view.
6f7f72f9
EB
19088 (Layout_Component_List): When applying the Max operator to variants with
19089 a nonstatic size, check whether either operand is static and scale that
19090 operand from bits to storage units before applying Max.
70198b9f
AC
19091 (Layout_Type): In VMS, if a C-convention access type has no explicit
19092 size clause (and does not inherit one in the case of a derived type),
19093 then the size is reset to 32 from 64.
19094
190952006-10-31 Vincent Celier <celier@adacore.com>
19096
19097 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
19098 its file has already been loaded, according to the unit being loaded,
19099 not to the current value of Multiple_Unit_Index.
19100
191012006-10-31 Thomas Quinot <quinot@adacore.com>
19102 Eric Botcazou <ebotcazou@adacore.com>
19103 Arnaud Charlet <charlet@adacore.com>
19104
19105 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
19106 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
19107 possible.
19108 (a-except.o): Pass it to the compiler.
19109 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
19110 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
19111 a-calend-mingw.adb version.
19112
6f7f72f9 19113 * Makefile.rtl: Added s-dsaser.
70198b9f
AC
19114 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
19115 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
19116 Ada.Dispatching.Round_Robin.
19117 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
19118
19119 * Make-lang.in: Remove all references to gt-ada-decl.h.
19120 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
19121 sources.
19122 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
19123 Update dependencies.
19124
19125 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
19126
191272006-10-31 Vincent Celier <celier@adacore.com>
19128
19129 * mlib-utl.adb (Initialized): Remove, no longer used
19130 (Initialize): Remove, no longer used
19131 (Ar): If Ar_Exec is null, get the location of the archive builder and,
19132 if there is one, the archive indexer. Fail if the archive builder cannot
19133 be found.
19134 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
19135 be found.
19136
191372006-10-31 Ed Schonberg <schonberg@adacore.com>
19138
19139 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
19140 Process_Body_Clauses): If the context of a body includes a use clause
19141 for P.Q then a with_clause for P in the same body is not redundant,
19142 even if the spec also has a with_clause on P.
19143 Add missing continuation mark to error msg
19144 (Build_Limited_Views): A limited view of a type is tagged if its
19145 declaration includes a record extension.
19146 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
19147 node, even if the subunit has errors. This avoids malfunction by
19148 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
19149 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
19150 generation of obsolescent messages for with statements (cannot do
19151 this too early, or we cannot implement avoiding the messages in the
19152 case of obsolescent units withing obsolescent units).
19153 (Install_Siblings): If the with_clause is on a remote descendant of
19154 an ancestor of the current compilation unit, find whether there is
19155 a sibling child unit that is immediately visible.
19156 (Remove_Private_With_Clauses): New procedure, invoked after completing
19157 the analysis of the private part of a nested package, to remove from
19158 visibility the private with_clauses of the enclosing package
19159 declaration.
19160 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
19161 now centralized in Generate_Reference.
19162 (Install_Limited_Context_Clauses): Remove superfluous error
19163 message associated with unlimited view visible through use
19164 and renamings. In addition, at the point in which the error
19165 is reported, we add the backslash to the text of the error
19166 to ensure that it is reported as a single error message.
19167 Use new // insertion for some continuation messages
19168 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
19169 to create implicit with_clause for parent unit mentioned in original
19170 limited_with_clause.
19171 (Install_Limited_With_Unit): Set entity of parent identifiers if the
19172 unit is a child unit. For ASIS queries.
19173 (Analyze_Subunit): If the subunit appears within a child unit, make all
19174 ancestor child units directly visible again.
19175
191762006-10-31 Robert Dewar <dewar@adacore.com>
19177
19178 * par-ch10.adb (P_Context_Clause): Minor error message fix
19179
191802006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19181 Javier Miranda <miranda@adacore.com>
19182
19183 * par-ch12.adb: Grammar update and cleanup.
19184 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
19185 support for synchronized derived type definitions.
19186 Add the new actual Abstract_Present to every call to
19187 P_Interface_Type_Definition.
19188 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
19189 a formal object declaration with an access definition or a subtype mark
19190 with a null exclusion.
19191 (P_Generic_Association): Handle association with box, and others_choice
19192 with box, to support Ada 2005 partially parametrized formal packages.
19193
191942006-10-31 Robert Dewar <dewar@adacore.com>
19195 Javier Miranda <miranda@adacore.com>
6f7f72f9 19196
70198b9f
AC
19197 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
19198 (P_Type_Declaration): Remove barrier against the reserved word "limited"
19199 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
19200 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
19201 private extensions.
19202 (P_Type_Declaration): Add the new actual Abstract_Present to every call
19203 to P_Interface_Type_Definition.
19204 (P_Interface_Type_Definition): Addition of one formal to report an error
19205 if the reserved word abstract has been previously found.
19206 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
19207 object renaming declaration with an access definition or subtype mark
19208 with a possible null exclusion.
19209
19210 * par-ch9.adb: Minor error msg fix
19211
19212 * par-load.adb: Add missing continuation mark to error msg
19213
19214 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
19215
192162006-10-31 Vincent Celier <celier@adacore.com>
19217
19218 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
19219 unknown attribute in unknown package or in package that does not need
19220 to be checked.
19221 (Parse_Package_Declaration): Do not issue warning for unknown package in
19222 quiet output.
19223
192242006-10-31 Vincent Celier <celier@adacore.com>
19225
19226 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
19227 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
19228 Packages_To_Check.
19229
192302006-10-31 Vincent Celier <celier@adacore.com>
19231
19232 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
19233 on VMS, change "__" to '.' before checking the name.
19234 (Record_Ada_Source): Always add the source file name in the list of
19235 of sources, even if it is not the first time, as it is for another
19236 source index.
19237 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
19238 dot, instead of replacing only the first '_'.
19239
19240 * prj-part.adb (Parse): Convert project file path to canonical form
19241
19242 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
19243 extended, the project id of the project extending it is recorded in its
19244 data, even when it has already been processed as an imported project.
19245
192462006-10-31 Robert Dewar <dewar@adacore.com>
19247
19248 * repinfo.adb (List_Entities): Don't list entities from renaming
19249 declarations.
19250
192512006-10-31 Arnaud Charlet <charlet@adacore.com>
19252 Robert Dewar <dewar@adacore.com>
19253
19254 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
19255 only a restriction warning is active for the given restriction. This is
19256 desirable because we do not want to modify code in the case where only
19257 a warning is set.
19258 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
19259 causes overriding of real restrictions.
19260 Take advantage of new No_Restrictions constant.
19261
19262 * raise.h: (__gnat_set_globals): Change profile.
19263
192642006-10-31 Arnaud Charlet <charlet@adacore.com>
70198b9f 19265
6f7f72f9
EB
19266 * rtsfind.adb: Remove s-polint from comment as it exists no more.
19267
9e81dbc7 19268 * rtsfind.ads:
6f7f72f9
EB
19269 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
19270 Move all the entities in obsolete package System.PolyORB_Interface to
19271 System.Partition_Interface.
70198b9f
AC
19272 (RE_Storage_Size): New function in System.Tasking.
19273 (RE_Get_Ceiling): New entity.
19274 (RE_Set_Ceiling): New entity.
19275 (RO_PE_Get_Ceiling): New entity.
19276 (RO_RE_Set_Ceiling): New entity.
19277 (Inherit_CPP_DT): New entity
19278
192792006-10-31 Robert Dewar <dewar@adacore.com>
19280
19281 * scng.adb (Scan, case of numeric literal): Better msg for identifier
19282 starting with a digit.
19283
192842006-10-31 Ed Schonberg <schonberg@adacore.com>
19285 Thomas Quinot <quinot@adacore.com>
19286 Javier Miranda <miranda@adacore.com>
19287 Gary Dismukes <dismukes@adacore.com>
19288
19289 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
19290 properly an attempt to apply Unchecked_Access to a protected operation.
19291 (OK_Self_Reference): New subprogram to check the legality of an access
19292 attribute whose prefix is the type of an enclosing aggregate.
19293 Generalizes previous mechanism to handle attribute references nested
19294 arbitrarily deep within the aggregate.
19295 (Analyze_Access_Attribute): An access attribute whose prefix is a type
19296 can appear in an aggregate if this is a default-initialized aggregate
19297 for a self-referential type.
19298 (Resolve_Attribute, case Access): Ditto.
19299 Add support for new implementation defined attribute Stub_Type.
19300 (Eval_Attribute, case Attribute_Stub_Type): New case.
19301 (Analyze_Attribute, case Attribute_Stub_Type): New case.
19302 (Stream_Attribute_Available): Implement using new subprogram from
19303 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
19304 Has_Specified_Stream_Attribute flag.
19305 Disallow Storage_Size and Storage_Pool for access to subprogram
19306 (Resolve_Attribute, case 'Access et al): Take into account anonymous
19307 access types of return subtypes in extended return statements. Remove
19308 accessibility checks on anonymous access types when Unchecked_Access is
19309 used.
19310 (Analyze_Attribute): Add support for the use of 'Class to convert
19311 a class-wide interface to a tagged type.
19312 Add support for the attribute Priority.
19313 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
19314 whether the designated type is discriminated with a constrained partial
19315 view and require static matching in that case.
19316 Add local variable Des_Btyp. The Designated_Type
19317 of an access to incomplete subtype is either its non-limited view if
19318 coming from a limited with or its etype if regular incomplete subtype.
19319
19320 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
19321 Fix predicate to identify and allow cases of (expander-generated)
19322 references to tag of designated object of a RACW.
19323 (Validate_Static_Object_Name): In Ada 2005, a formal object is
19324 non-static, and therefore cannot appear as a primary in a preelaborable
19325 package.
19326 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
19327 Has_Read_Write_Attributes.
19328 (Has_Read_Write_Attributes): Reimplement in termes of
19329 Has_Stream_Attribute_Definition.
19330 (Missing_Read_Write_Attributes): When checking component types in a
19331 record, unconditionally call Missing_Read_Write_Attributes recursively
19332 (remove guard checking for Is_Record_Type / Is_Access_Type).
19333
193342006-10-31 Robert Dewar <dewar@adacore.com>
19335
19336 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
19337 useless assignments here and conditionalize it on absence of exception
19338 handlers.
19339 (Analyze_Exception_Handlers): Small code reorganization of error
19340 detection code, for new handling of formal packages.
19341
193422006-10-31 Ed Schonberg <schonberg@adacore.com>
19343 Hristian Kirtchev <kirtchev@adacore.com>
6f7f72f9
EB
19344
19345 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
70198b9f
AC
19346 that has been constant-folded, preserve information of original tree,
19347 for ASIS uses.
19348 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
19349 generated private extension declaration if the formal derived type is
19350 synchronized. Carry synchronized present over to the generated private
19351 extension.
19352 (Validate_Derived_Type_Instance): Ensure that the actual of a
19353 synchronized formal derived type is a synchronized tagged type.
19354 (Instantiate_Formal_Package): When creating the instantiation used to
19355 validate the actual package of a formal declared without a box, check
19356 whether the formal itself depends on a prior actual.
19357 (Instantiate_Formal_Subprogram): Create new entities for the defining
19358 identifiers of the formals in the renaming declaration, for ASIS use.
19359 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
19360 a renaming declaration or a subtype declaration for an actual in an
19361 instance, capture location information of declaration in generic, for
19362 ASIS use.
19363 (Instantiate_Formal_Package): Add comments on needed additional tests.
19364 AI-317 (partial parametrization) is fully implemented.
19365 (Validate_Private_Type_Instance): Add check for actual which
19366 must have preelaborable initialization
19367 Use new // insertion for some continuation messages
19368 (Analyze_Formal_Object_Declaration): Change usage of Expression to
19369 Default_Expression. Add type retrieval when the declaration has an
19370 access definition. Update premature usage of incomplete type check.
19371 (Check_Access_Definition): New subsidiary routine. Check whether the
19372 current compilation version is Ada 05 and the supplied node has an
19373 access definition.
19374 (Instantiate object): Alphabetize local variables. Handle the creation
19375 of new renaming declarations with respect to the kind of definition
19376 used - either an access definition or a subtype mark. Guard against
19377 unnecessary error message in the context of anonymous access types after
19378 they have been resolved. Add check for required null exclusion in a
19379 formal object declaration.
19380 (Switch_View): A private subtype of a non-private type needs to be
19381 switched (the base type can have been switched without its private
19382 dependents because of the last branch of Check_Private_View.
19383 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
19384 value from BT.
19385 (Instantiate_Type): Emit an error message whenever a class-wide type of
19386 a tagged incomplete type is used as a generic actual.
19387 (Find_Actual_Type): Extend routine to handle a component type in a child
19388 unit that is imported from a formal package in a parent.
19389 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
19390 agree on constrainedness, rather than checking against ultimate ancestor
19391 (Instantiate_Subprogram_Body): Create a cross-reference link to the
19392 generic body, for navigation purposes.
19393
193942006-10-31 Robert Dewar <dewar@adacore.com>
19395 Thomas Quinot <quinot@adacore.com>
19396
19397 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
19398 type.
19399 (New_Stream_Subprogram): When processing an attribute definition clause
19400 for a stream-oriented subprogram, record an entity node occurring at
19401 the point of clause to use for checking the visibility of the clause,
19402 as defined by 8.3(23) as amended by AI-195.
19403 (New_Stream_Subprogram): New procedure, factoring behaviour from both
19404 New_Stream_Function and New_Stream_Procedure.
19405 (New_Stream_Function, New_Stream_Procedure): Removed.
19406 (Analyze_Attribute_Definition_Clause, case Address): Check new
19407 Alignment_Check check
19408
194092006-10-31 Ed Schonberg <schonberg@adacore.com>
19410 Javier Miranda <miranda@adacore.com>
19411 Robert Dewar <dewar@adacore.com>
19412
19413 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
19414 generate the same errors compiling under -gnatc.
19415 (Try_Object_Operation): If no candidate interpretation succeeds, but
19416 there is at least one primitive operation with the right name, report
19417 error in call rather than on a malformed selected component.
19418 (Analyze_Selected_Component): If the prefix is an incomplete type from
19419 a limited view, and the full view is available, use the full view to
19420 determine whether this is a prefixed call to a primitive operation.
19421 (Operator_Check): Verify that a candidate interpretation is a binary
19422 operation before checking the type of its second formal.
19423 (Analyze_Call): Add additional warnings for function call contexts not
19424 yet supported.
19425 (Analyze_Allocator): Move the check for "initialization not allowed for
19426 limited types" after analyzing the expression. This is necessary,
19427 because OK_For_Limited_Init looks at the structure of the expression.
19428 Before analysis, we don't necessarily know what sort of expression it
19429 is. For example, we don't know whether F(X) is a function call or an
19430 indexed component; the former is legal in Ada 2005; the latter is not.
19431 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
19432 were missing. We also didn't handle qualified expressions. Now also
19433 allow function calls. Use new common routine OK_For_Limited_Init.
19434 (Analyze_Type_Conversion): Do not perform some legality checks in an
19435 instance, because the error message will be redundant or spurious.
19436 (Analyze_Overloaded_Selected_Component): Do not do style check when
19437 setting an entity, since we do not know it is the right entity yet.
19438 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
19439 (Analyze_Overloaded_Selected_Component): Same change
19440 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
19441 since regular incomplete subtypes are transformed into corresponding
19442 subtypes of their full views.
19443 (Complete_Object_Operation): Treat name of transformed subprogram call
19444 as coming from source, for browsing purposes.
19445 (Try_Primitive_Operation): If formal is an access parameter, compare
19446 with base type of object to determine whether it is a primitive
19447 operation.
19448 (Operator_Check): If no interpretation of the operator matches, check
19449 whether a use clause on any candidate might make the operation legal.
19450 (Try_Class_Wide_Operation): Check whether the first parameter is an
19451 access type whose designated type is class-wide.
19452
194532006-10-31 Robert Dewar <dewar@adacore.com>
19454 Ed Schonberg <schonberg@adacore.com>
19455 Gary Dismukes <dismukes@adacore.com>
19456
19457 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
19458 warn on infinite loops.
19459 Add \\ to some continuation messages
19460 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
19461 (Process_Bounds): If the bounds are integer literals that result from
19462 constant-folding, and they carry a user-defined type, preserve that type
19463 rather than treating this as an integer range.
19464 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
19465 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
19466 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
19467 left hand side of assignment.
19468 (Analyze_Assignment): Add suport to manage assigments to the attribute
19469 priority of a protected object.
19470 (Check_Possible_Current_Value_Condition): Allow fully qualified names
19471 not just identifiers.
19472 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
19473 or AND THEN for possible tracking.
19474 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
19475 case of while loops so we can track values in the loop body.
19476
194772006-10-31 Ed Schonberg <schonberg@adacore.com>
19478 Hristian Kirtchev <kirtchev@adacore.com>
19479 Bob Duff <duff@adacore.com>
6f7f72f9 19480
70198b9f
AC
19481 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
19482 procedure cannot be a protected operation (it is a basic_declaration,
19483 not a subprogram_declaration).
19484 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
19485 Subp. Add logic for entry processing.
19486 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
19487 Determine whether an entry or subprogram of a protected or task type
19488 override an inherited primitive of an implemented interface.
19489 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
19490 Update the actual used in calls to Check_Overriding_Indicator.
19491 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
19492 generate the proper reference to the parent unit, for cross-reference.
19493 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
19494 Is_Formal.
19495 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
19496 (Add_Extra_Formal): Revise procedure to allow passing in associated
19497 entity, scope, and name suffix, and handle setting of the new
19498 Extra_Formals field.
19499 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
19500 pass new parameters. Add support for adding the new extra access formal
19501 for functions whose calls are treated as build-in-place.
19502 (Analyze_A_Return_Statement): Correct casing in error message.
19503 Move Pop_Scope to after Analyze_Function_Return, because an extended
19504 return statement really is a full-fledged scope. Otherwise, visibility
19505 doesn't work right. Correct use of "\" for continuation messages.
19506 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
19507 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
19508 the node doesn't get properly marked as analyzed.
19509 (Analyze_Subprogram_Body): If subprogram is a function that returns
19510 an anonymous access type that denotes a task, build a Master Entity
19511 for it.
19512 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
19513 proper usage of null exclusion in a result definition.
19514 (Process_Formals): Code cleanup and new error message.
19515 (Process_Formals): Detect incorrect application of null exclusion to
19516 non-access types.
19517 (Conforming_Types): Handle conformance between [sub]types and itypes
19518 generated for entities that have null exclusions applied to them.
19519 (Maybe_Primitive_Operation): Add an additional type retrieval when the
19520 base type is an access subtype. This case arrises with null exclusions.
19521 (New_Overloaded_Entity): Do not remove the overriden entity from the
19522 homonym chain if it corresponds with an abstract interface primitive.
19523 (Process_Formals): Replace membership test agains Incomplete_Kind with a
19524 call to the synthesized predicate Is_Incomplete_Type.
19525 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
19526 primitives.
19527 (Analyze_Subprogram_Declaration): Check that abstract interface
19528 primitives are abstract or null.
19529 (Analyze_Subprogram_Specification): Remove previous check for abstract
19530 interfaces because it was not complete.
19531 (Has_Interface_Formals): Removed.
19532
195332006-10-31 Ed Schonberg <schonberg@adacore.com>
19534 Javier Miranda <miranda@adacore.com>
19535
19536 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
19537 of Analyze_Package_Body, to create Itype references for anonymous
19538 access types created in the package declaration, whose designated types
19539 may have only a limited view.
19540 (Analyze_Package_Specification): For the private part of a nested
19541 package, install private_with_clauses of enclosing compilation unit if
19542 we are in its visible part.
19543 (Declare_Inherited_Private_Subprograms): Complete barrier
19544 to ensure that the primitive operation has an alias to some parent
19545 primitive. This is now required because, after the changes done for the
19546 implementation of abstract interfaces, the contents of the list of
19547 primitives has entities whose alias attribute references entities of
19548 such list of primitives.
19549 (Analyze_Package_Specification): Simplify code that handles parent units
19550 of instances and formal packages.
19551 (Uninstall_Declarations): Check the convention consistency among
19552 primitive overriding operations of a tagged record type.
19553
195542006-10-31 Robert Dewar <dewar@adacore.com>
19555 Hristian Kirtchev <kirtchev@adacore.com>
19556 Javier Miranda <miranda@adacore.com>
19557 Ed Schonberg <schonberg@adacore.com>
6f7f72f9 19558
70198b9f
AC
19559 * sem_ch8.adb: Minor error msg rewording
19560 (Undefined): When checking for misspellings, invert arguments (to get
19561 expected and found set right)
19562 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
19563 (Analyze_Generic_Renaming): Same fix
19564 (Use_One_Package): Do not take into account the internal entities of
19565 abstract interfaces during the analysis of entities that are marked
19566 as potentially use-visible.
19567 (Find_Type): Handle the case of an attribute reference for
19568 implementation defined attribute Stub_Type (simply let the analysis of
19569 the attribute reference rewrite it).
19570 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
19571 type that appears in a Use_Type clause.
19572 (Analyze_Object_Renaming): Add support for renaming of the Priority
19573 attribute.
19574 (Find_Type): In Ada 2005, a task type can be used within its own body,
19575 when it appears in an access definition.
19576 (Analyze_Object_Renaming): Remove warning on null_exclusion.
19577 (Analyze_Object_Renaming): Introduce checks for required null exclusion
19578 in a formal object declaration or in a subtype declaration.
19579 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
19580 (Check_Null_Exclusion): New local routine to
19581 Analyze_Subprogram_Renaming. Check whether the formals and return
19582 profile of a renamed subprogram have required null exclusions when
19583 their counterparts of the renaming already impose them.
19584 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
19585 Determine whether an entity is inside a generic scope.
19586 (In_Open_Scope): First pass of documentation update.
19587 (Find_Expanded_Name): Add support for shadow entities associated with
19588 limited withed packages. This is required to handle nested packages.
19589 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
19590 that makes a renaming of a limited withed package illegal.
19591
195922006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19593 Ed Schonberg <schonberg@adacore.com>
19594
19595 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
19596 Check_Overriding_Indicator.
19597 (Analyze_Task_Definition): Ditto.
19598 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
19599 (Check_Overriding_Indicator): To find overridden interface operation,
19600 examine only homonyms that have an explicit subprogram declaration, not
19601 inherited operations created by an unrelated type derivation.
19602 (Check_Overriding_Indicator): When checking for the presence of "null"
19603 in a procedure, ensure that the queried node is a procedure
19604 specification.
19605 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
19606 type when the formal is an access to variable.
19607 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
19608 (Analyze_Task_Type): Same addition
19609 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
19610 provide navigation capabilities for entries.
19611
196122006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19613 Ed Schonberg <schonberg@adacore.com>
19614 Javier Miranda <miranda@adacore.com>
19615 Gary Dismukes <dismukes@adacore.com>
19616
19617 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
19618 inherited from an interface ancestor by another interface in the
19619 context of an instance as 'late'.
19620 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
19621 of a call to a function that dispatches on access result.
19622 (Check_Dispatching_Operation): In case of late overriding of a primitive
19623 that covers abstract interface subprograms we register it in all the
19624 secondary dispatch tables associated with abstract interfaces.
19625 (Check_Dispatching_Call): Add check that a dispatching call is not made
19626 to a function with a controlling result of a limited type. This is a
19627 current implementation restriction.
19628 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
19629 (Check_Dispatching_Operation): Do no emit a warning if the controlling
19630 argument is an interface type that is a generic formal.
19631 (Is_Interface_Subprogram): Removed.
19632 (Check_Dispatching_Operation): If the subprogram is not a dispatching
19633 operation, check the formals to handle the case in which it is
19634 associated with an abstract interface type.
19635
196362006-10-31 Robert Dewar <dewar@adacore.com>
19637 Ed Schonberg <schonberg@adacore.com>
19638
19639 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
19640 Add new calls to this procedure during traversal
19641 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
19642 another unit if expansion is disabled.
19643
196442006-10-31 Robert Dewar <dewar@adacore.com>
19645
19646 * sem_eval.adb (Compile_Time_Compare): Make use of information from
19647 Current_Value in the conditional case, to evaluate additional
19648 comparisons at compile time.
19649
196502006-10-31 Ed Schonberg <schonberg@adacore.com>
19651 Hristian Kirtchev <kirtchev@adacore.com>
19652 Javier Miranda <miranda@adacore.com>
19653
19654 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
19655 subprogram type to provide better diagnostics in case of ambiguity.
19656 (Covers): Handle coverage of formal and actual anonymous access types in
19657 the context of generic instantiation.
19658 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
19659 abstract interface types; this is required to handle concurrent types
19660 with discriminants and abstract interface types.
19661 (Covers): Include type coverage of both regular incomplete subtypes and
19662 incomplete subtypes of incomplete type visibles through a limited with
19663 clause.
19664
196652006-10-31 Robert Dewar <dewar@adacore.com>
19666 Hristian Kirtchev <kirtchev@adacore.com>
19667 Ed Schonberg <schonberg@adacore.com>
6f7f72f9
EB
19668
19669 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
70198b9f
AC
19670 messages for entities in packages which are not used.
19671 (Collect_Synchronized_Interfaces): New procedure.
19672 (Overrides_Synchronized_Primitive): New function.
19673 (Denotes_Discriminant): Extend predicate to apply to task types.
19674 Add missing continuation marks in error msgs
19675 (Unqualify): New function for removing zero or more levels of
19676 qualification from an expression. There are numerous places where this
19677 ought to be used, but we currently only deal properly with zero or one
19678 level.
19679 (In_Instance); The analysis of the actuals in the instantiation of a
19680 child unit is not within an instantiation, even though the parent
19681 instance is on the scope stack.
19682 (Safe_To_Capture_Value): Exclude the case of variables that are
19683 renamings.
19684 (Check_Obsolescent): Removed
19685 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
19686 is an aliased view, even when rewritten as a reference to the target
19687 object in an assignment.
19688 (Get_Subprogram_Entity): New function
19689 (Known_To_Be_Assigned): New function
19690 (Type_Access_Level): Compute properly the access level of a return
19691 subtype that is an anonymous access type.
19692 (Explain_Limited_Type): Correct use of "\" for continuation messages.
19693 (Is_Transfer): The new extended_return_statement causes a transfer of
19694 control.
19695 (Has_Preelaborable_Initialization): New function
19696 (Has_Null_Exclusion): New function. Given a node N, determine whether it
19697 has a null exclusion depending on its Nkind.
19698 Change Is_Lvalue to May_Be_Lvalue
19699 (May_Be_Lvalue): Extensive additional code to deal with subprogram
19700 arguments (IN parameters are not Lvalues, IN OUT parameters are).
19701 (Safe_To_Capture_Value): Extend functionality so it can be used for
19702 the current value condition case.
19703 (Has_Compatible_Alignment): New function
19704 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
19705 objects to handle the Ada 2005 case, where aliasedness no longer implies
19706 that the object is constrained. In particular, for dereferenced names,
19707 the designated object must be assumed to be unconstrained.
19708 (Kill_Current_Values): Properly deal with the case where we encounter
19709 a loop in the scope chain.
19710 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
19711 a value.
19712 (Compile_Time_Constraint_Error): Improve error message in error case
19713
19714 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
19715 associated with entities of abstract interface primitives.
19716 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
19717
197182006-10-31 Robert Dewar <dewar@adacore.com>
19719
9e81dbc7 19720 * s-osinte-tru64.adb:
70198b9f
AC
19721 Mark Asm statements Volatile to prevent warnings (seems a
19722 reasonable change anyway)
19723 Fixes new warnings
19724
19725 * s-mastop-irix.adb: Add Volatile to Asm statements
19726 Suppresses warning, and seems appropriate in any case
19727
19728 * s-osinte-vms.adb: Add Volatile to Asm statement
19729
19730 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
19731
19732 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
19733 returned.
19734 Add call to Check_Code_Statement
19735
197362006-10-31 Robert Dewar <dewar@adacore.com>
19737 Ed Schonberg <schonberg@adacore.com>
19738 Bob Duff <duff@adacore.com>
19739
19740 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
19741 Synchronized_Present): Add Formal_Derived_Type_Definition and
19742 Private_Extension_Declaration to the list of assertions.
19743 (Is_Entry_Barrier_Function): New flag
19744 (Has_Self_Reference): New flag on aggregates, to indicate that they
19745 contain a reference to the enclosing type, inserted through a default
19746 initialization.
19747 (Next_Rep_Item): Move from Node4 to Node5.
19748 (Entity): Add this field for N_Attribute_Definition_Clause.
19749 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
19750 (N_Return_Object_Declaration): Remove this node kind. We now use
19751 N_Object_Declaration instead.
19752 (Actual_Designated_Subtype): Move to a different place to make room in
19753 N_Extended_Return_Statement.
19754 (Procedure_To_Call): Move to a different place to make room in
19755 N_Extended_Return_Statement.
19756 (Return_Type): Removed this field to make room in return statements
19757 (both kinds).
19758 (Return_Statement_Entity): New field in return statements, in part to
19759 replace Return_Type, and in part to support the fact that return
19760 statements are now pushed on the scope stack during semantic analysis.
19761 (Return_Object_Declarations): New field to support extended return
19762 statements.
19763 (N_Extended_Return_Statement): New node for extended_return_statement
19764 nonterminal.
19765 (N_Return_Object_Declaration): New node for part of
19766 extended_return_statement nonterminal. Needed because all the necessary
19767 fields won't fit in N_Extended_Return_Statement.
19768 Generic_associations now carry the Box_Present flag, to indicate a
19769 default for an actual in a partially parametrized formal package.
19770
6f7f72f9 19771 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
70198b9f
AC
19772 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
19773 and for the new predefined dispatching policies: EDF_Across_Priorities,
19774 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
19775 Introduce new name Stub_Type for implementation defined attribute.
19776 Add pragma Preelaborable_Initialization
19777 Add entry for Priority attribute.
19778 Add Pragma_Wide_Character_Encoding
19779 (Get_Convention_Name): Given a convention id, this function returns the
19780 corresponding name id from the names table.
19781
197822006-10-31 Ed Schonberg <schonberg@adacore.com>
19783 Robert Dewar <dewar@adacore.com>
19784 Bob Duff <duff@adacore.com>
19785
19786 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
19787 print null exclusion twice in the case of an access definition,
19788 Implement new -gnatL switch
19789 Remove N_Return_Object_Declaration. We now use
19790 N_Object_Declaration instead. Implement the case for
19791 N_Extended_Return_Statement. Alphabetize the cases.
19792 Add cases for new nodes N_Extended_Return_Statement and
19793 N_Return_Object_Declaration. The code is not yet written.
19794 Update the output for N_Formal_Object_Declaration
19795 and N_Object_Renaming_Declaration.
19796 (Write_Itype): Account for the case of a modular integer subtype whose
19797 base type is private.
19798
197992006-10-31 Arnaud Charlet <charlet@adacore.com>
19800
19801 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
19802 Remove elaboration code, now done in the binder.
19803
19804 * s-rident.ads: Make this unit Preelaborate.
19805 (No_Restrictions): New constant used to clean up code and follow
19806 preelaborate constraints.
19807
9e81dbc7 19808 * s-stalib.adb:
70198b9f
AC
19809 Add System.Restrictions dependence, referenced directly from the
19810 binder generated file.
19811
198122006-10-31 Gary Dismukes <dismukes@adacore.com>
19813
19814 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
19815 True when AAMP extended floating-point is in use (48-bit). Change type
19816 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
19817 the two byte array types on AFloat. Change type of IV_Ilf overlay
19818 variable from Byte8 to ByteLF. Add appropriate initializations of
19819 floating-point overlays for AAMP cases.
19820
198212006-10-31 Javier Miranda <miranda@adacore.com>
19822
19823 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
19824 (Get_Ceiling): New subprogram that returns
19825 the ceiling priority of the protected object.
19826 (Set_Ceiling): New subprogram that sets the new ceiling priority of
19827 the protected object.
19828
19829 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
19830
19831 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
19832
198332006-10-31 Jose Ruiz <ruiz@adacore.com>
19834
19835 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
19836 requeuing to the same protected object to give higher priority tasks
19837 the opportunity to execute.
19838
198392006-10-31 Robert Dewar <dewar@adacore.com>
19840
19841 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
19842 add more precise check for the character sequence that follows '[' to
19843 avoid possible confusion in case if '[' is the last character of a
19844 string literals.
19845 (Scan_Wide): Always allow brackets encoding
19846
198472006-10-31 Olivier Hainque <hainque@adacore.com>
19848
19849 * s-stchop.ads: make this unit preelaborate. This is desirable in
19850 general and made mandatory by the use of this unit by s-taprop which
19851 is itself preelaborate.
19852
19853 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
19854 Td_Events component.
19855
198562006-10-31 Vincent Celier <celier@adacore.com>
19857
19858 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
19859 in file names.
19860
198612006-10-31 Vincent Celier <celier@adacore.com>
19862
19863 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
19864
198652006-10-31 Vincent Celier <celier@adacore.com>
19866
19867 * makegpr.adb (Check_Compilation_Needed): Take into account path names
19868 with spaces.
19869 (Check_Compilation_Needed): When checking a C or C++ source, do not
19870 resolve symbolic links.
19871 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
19872 When not in verbose mode and Ellipse is True, display "..." for the
19873 first argument with Display set to False.
19874 (Build_Global_Archive): Always set Display True for the first object
19875 file. Call Display_Command with Ellipse set to True.
19876
198772006-10-31 Matt Heaney <heaney@adacore.com>
19878
19879 * a-crbtgo.ads: Commented each subprogram
19880
19881 * a-crbtgo.adb: Added reference to book from which algorithms were
19882 adapted.
19883
6f7f72f9 19884 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
70198b9f
AC
19885 indicate which child.
19886 (Generic_Conditional_Insert): changed parameter name from "Success" to
19887 "Inserted".
19888 (Generic_Unconditional_Insert_With_Hint): improved algorithm
19889
19890 * a-coorse.adb (Replace_Element): changed parameter name in call to
19891 conditional insert operation.
19892
19893 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
19894
19895 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
19896 Generic_Iteration
19897
19898 * a-ciorse.adb (Replace_Element): changed parameter name in call to
19899 conditional insert operation.
19900
19901 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
19902 Generic_Iteration.
19903
19904 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
19905 instead of mode inout.
19906
19907 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
19908 draft
19909 (Generic_Read): preserve existing buckets array if possible
19910 (Generic_Write): don't send buckets array length anymore
19911
19912 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
19913 instead of mode inout.
19914
19915 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
19916 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19917
19918 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
19919 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
19920 (Replace_Element): local operation is now an instantiation
19921
19922 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
19923 check current length.
19924 (Generic_Replace_Element): new operation
19925
199262006-10-31 Doug Rupp <rupp@adacore.com>
19927
19928 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
19929 Call TBK$SYMBOLIZE without omitting parameters.
19930
199312006-10-31 Vincent Celier <celier@adacore.com>
19932
19933 * symbols-processing-vms-ia64.adb,
19934 symbols-processing-vms-alpha.adb (Process): Do not include symbols
19935 that come from generic instantiations in bodies.
19936
199372006-10-31 Pat Rogers <rogers@adacore.com>
19938
9e81dbc7 19939 * a-rttiev.ads, a-rttiev.adb:
70198b9f
AC
19940 This is a significant redesign primarily for the sake of automatic
19941 timer task termination but also to fix a design flaw.
19942 Therefore we are now using an RTS lock, instead of a protected
19943 object, to provide mutual exclusion to the queue of pending events
19944 and the type Timing_Event is no longer a protected type.
19945
199462006-10-31 Robert Dewar <dewar@adacore.com>
19947 Cyrille Comar <comar@adacore.com>
19948 Ben Brosgol <brosgol@adacore.com>
19949
19950 * debug.adb: Update flags documentation
19951
6f7f72f9
EB
19952 * gnat_ugn.texi: Add documentation for new -gnatwq switch
19953 Clean up documentation for several other warning switches
19954 Clarify how task stack size can be specified with various
19955 versions of Windows.
19956 Add note that -gnatVo includes ranges including loops
70198b9f
AC
19957 Add documentation for -gnatL switch
19958 Add note on elaboration warning for initializing variables
19959 Add documentation for new -gnatwt warning switch
19960 Document new form of pragma Warnings (On|Off, string)
19961 Add comment on use of pragma Warnings to control warnings
19962 Add documentation for -gnatjnn switch
19963 Modify section on interfacing with C for VMS 64-bit.
19964 Add doc for -gnatVe/E
19965 Add documentation of new warning flags -gnatww/-gnatwW
19966 Add warnings about address clause overlays to list of warnings
19967 (Exception Handling Control): Document that the option --RTS must be
19968 used consistently for gcc and gnatbind.
19969 Clarify that inlining is not always possible
19970 Update documentation on pragma Unchecked_Union.
19971
9e81dbc7 19972 * gnat_rm.texi:
70198b9f
AC
19973 Add documentation for new extended version of pragma Obsolescent
19974 Add documentation for implementation defined attribute 'Stub_Type.
19975 Add note on use of Volatile in asm statements
19976 Add documentation on use of pragma Unreferenced in context clause
19977 Document new form of pragma Warnings (On|Off, pattern)
19978 Document pragma Wide_Character_Encoding
19979 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
19980 enforced if code generation is active.
19981 Add section on pragma Suppress to document GNAT specific check
19982 Alignment_Check
19983 Clarify difference between No_Dispatching_Calls & No_Dispatch.
19984 Add documentation for pragma Restrictions (No_Elaboration_Code)
19985
9e81dbc7 19986 * gnat-style.texi:
70198b9f
AC
19987 Add comments on layout of subprogram local variables in the
19988 presence of nested subprograms.
19989
6f7f72f9 19990 * ug_words: Resync.
70198b9f
AC
19991
19992 * elists.ads: Minor reformatting
19993 Node returns Node_Or_Entity_Id (doc change only)
19994
19995 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
19996
19997 * g-arrspl.ads (Create): Update comments.
19998
19999 * sem.ads: Add details on the handling of the scope stack.
20000
6f7f72f9 20001 * usage.adb: Update documentation.
70198b9f 20002
9e81dbc7 20003 * validsw.ads, validsw.adb:
70198b9f
AC
20004 Add definition of Validity_Check_Components and implement -gnatVe/E
20005
6f7f72f9 20006 * vms_data.ads: Add missing VMS qualifiers.
70198b9f
AC
20007
20008 * s-addope.ads: Add documentation on overflow and divide by zero
20009
200102006-10-31 Robert Dewar <dewar@adacore.com>
20011 Thomas Quinot <quinot@adacore.com>
20012 Arnaud Charlet <charlet@adacore.com>
20013
20014 * fmap.adb: Put routines in alpha order
20015
20016 * g-boumai.ads: Remove redundant 'in' keywords
20017
20018 * g-cgi.adb: Minor reformatting
20019
20020 * g-cgi.ads: Remove redundant 'in' keywords
20021
20022 * get_targ.adb: Put routines in alpha order
20023
20024 * prj-attr.ads: Minor reformatting
20025
20026 * s-atacco.ads: Minor reformatting
20027
20028 * scn.adb: Put routines in alpha order
20029
20030 * sinput-l.adb: Minor comment fix
20031
20032 * sinput-p.adb: Minor comment fix
20033
20034 * s-maccod.ads: Minor reformatting
20035
20036 * s-memory.adb: Minor reformatting
20037
20038 * s-htable.adb: Fix typo in comment.
20039
20040 * s-secsta.adb: Minor comment update.
20041
20042 * s-soflin.adb: Minor reformatting
20043
9e81dbc7 20044 * s-stoele.ads:
70198b9f
AC
20045 Add comment about odd qualification in Storage_Offset declaration
20046
9e81dbc7 20047 * s-strxdr.adb:
70198b9f
AC
20048 Remove unnecessary 'in' keywords for formal parameters.
20049
20050 * treeprs.adt: Minor reformatting
20051
20052 * urealp.adb: Put routines in alpha order
20053
20054 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
20055 taking string.
20056
20057 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
20058
20059 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
20060
20061 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
20062 workaround as on other platforms.
20063
20064 * g-eacodu-vms.adb: Remove redundant 'in' keywords
20065 * g-expect-vms.adb: Remove redundant 'in' keywords
20066
20067 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
20068 clear error message if the list-of-files file cannot be opened.
20069
20070 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
20071 equality operator is always visible.
20072
20073 * lang.opt: Woverlength-strings: New option.
20074
9e81dbc7 20075 * nmake.adt:
70198b9f
AC
20076 Update copyright, since nmake.ads and nmake.adb have changed.
20077
20078 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
20079 (Binder_Output_Time_Stamps_Set): removed.
20080 (Old_Binder_Output_Time_Stamp): idem.
20081 (New_Binder_Output_Time_Stamp): idem.
20082 (Recording_Time_From_Last_Bind): idem.
20083 (Recording_Time_From_Last_Bind): Make constant.
20084
20085 * output.ads, output.adb (Write_Str): Allow LF characters
20086 (Write_Spaces): New procedure
20087
20088 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
20089
20090 * inline.adb: Minor reformatting
20091
20092 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
20093
20094 * s-mastop-vms.adb: Remove redundant 'in' keywords
20095
20096 * s-osprim-vms.adb: Remove redundant 'in' keywords
20097
20098 * s-trafor-default.adb: Remove redundant 'in' keywords
20099
20100 * 9drpc.adb: Remove redundant 'in' keywords
20101
20102 * s-osinte-mingw.ads: Minor reformatting
20103
20104 * s-inmaop-posix.adb: Minor reformatting
20105
20106 * a-direio.ads: Remove quotes from Compile_Time_Warning message
20107
20108 * a-exexda.adb: Minor code reorganization
20109
20110 * a-filico.adb: Minor reformatting
20111
20112 * a-finali.adb: Minor reformatting
20113
20114 * a-nudira.ads: Remove quote from Compile_Time_Warning message
20115
20116 * a-numeri.ads: Minor reformatting
20117
20118 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
20119
20120 * exp_pakd.ads: Fix obsolete comment
20121
20122 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
20123 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
20124 Probably not a bug, but certainly neater and more efficient.
20125
20126 * a-tienio.adb: Minor reformatting
20127
20128 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
20129 Avoid assuming low bound of string is 1.
20130
20131 * gnatbind.adb: Change Bindusg to package and rename procedure as
20132 Display, which now ensures that it only outputs usage information once.
20133 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
20134
20135 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
20136 Table'First.
20137
20138 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
20139 warning.
20140 (Match): Add pragma Assert to ensure that Matches'First is zero
20141
20142 * g-regpat.ads (Match): Document that Matches lower bound must be zero
20143
20144 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
20145 documented preconditions (also kills warnings about bad indexes).
20146
20147 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
20148 is 1.
20149 (Build_Import_Library): Ditto;
20150
20151 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
20152
20153 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
20154
20155 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
20156 lower bound of choice table is 1.
20157
20158 * sem_case.ads (Analyze_Choices): Document that lower bound of
20159 Choice_Table is 1.
20160
20161 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
20162 string is 1.
20163
20164 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
20165 and add appropriate Assert pragma to suppress warnings.
20166
20167 * atree.h, atree.ads, atree.adb
20168 Change Elist24 to Elist25
20169 Add definitions of Field28 and Node28
20170 (Traverse_Field): Use new syntactic parent table in sinfo.
20171
20172 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
20173
20174 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
20175
20176 * exp_tss.adb: Put routines in alpha order
20177
20178 * fe.h: Remove redundant declarations.
20179
719bb4e3 201802006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
ed41063a 20181
c79efc4d
RÁE
20182 * utils.c (builtin_function): Rename to gnat_builtin_function.
20183 Move common code to add_builtin_function.
20184 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
20185 gnat_builtin_function.
20186 * gigi.h (builtin_function): Rename to gnat_builtin_function.
20187 Change the signature.
20188
a8384928
BM
201892006-10-16 Brooks Moses <bmoses@stanford.edu>
20190
20191 * Makefile.in: Add TEXI2PDF definition.
20192 * Make-lang.in: Add "ada.pdf" target.
20193
2285b053
KH
201942006-10-03 Kazu Hirata <kazu@codesourcery.com>
20195
20196 * decl.c, utils.c: Fix comment typos.
c0a69967
KH
20197 * utils.c: Fix a typo.
20198
b55e7f34
EB
201992006-09-28 Eric Botcazou <ebotcazou@adacore.com>
20200
20201 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
20202 on "pure" Ada subprograms if SJLJ exceptions are used.
20203 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
20204 on the declaration node of JMPBUF_SAVE.
20205 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
20206 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
20207 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
20208
9e94c78f 202092006-08-20 Laurent Guerby <laurent@guerby.net>
d2b40c09 20210
7a197678
EB
20211 PR ada/28716
20212 g-socket.adb (Bind_Socket): Call Set_Address.
20213
41d9adc7
EB
202142006-09-15 Eric Botcazou <ebotcazou@adacore.com>
20215
20216 PR ada/15802
20217 * decl.c (same_discriminant_p): New static function.
20218 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
20219 subtype and we have discriminants, fix up the COMPONENT_REFs
20220 for the discriminants to make them reference the corresponding
20221 fields of the parent subtype after it has been built.
20222
21cc3719
RS
202232006-09-15 Roger Sayle <roger@eyesopen.com>
20224
20225 PR ada/18817
20226 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
20227 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
20228
6f2789da
OH
202292006-09-13 Olivier Hainque <hainque@adacore.com>
20230
20231 PR ada/29025
20232 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
20233 of a SAVE_EXPR, just make the operand addressable/not-readonly and
20234 let the common gimplifier code make and propagate a temporary copy.
20235 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
20236 out/in-out actuals and defer setting the addressable/readonly bits
20237 to the gimplifier.
20238
efaa616e
EB
202392006-09-13 Eric Botcazou <ebotcazou@adacore.com>
20240
20241 PR ada/28591
20242 * decl.c (components_to_record): Defer emitting debug info for the
20243 record type associated with the variant until after we are sure to
20244 actually use it.
20245
2655f1c6
EB
202462006-09-13 Eric Botcazou <ebotcazou@adacore.com>
20247
20248 PR ada/21952
20249 * gigi.h (gnat_internal_attribute_table): Declare.
20250 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
20251 * utils.c (gnat_internal_attribute_table): New global variable.
20252 (builtin_function): Always call decl_attributes on the builtin.
20253 (handle_const_attribute): New static function.
20254 (handle_nothrow_attribute): Likewise.
20255
48779194
VR
202562006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
20257
20258 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
20259
8df7d439
EB
202602006-06-23 Olivier Hainque <hainque@adacore.com>
20261
20262 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
20263 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
20264
83fdc7c4 202652006-06-20 James A. Morrison <phython@gcc.gnu.org>
6f7f72f9 20266 Eric Botcazou <ebotcazou@adacore.com>
83fdc7c4
JM
20267
20268 PR ada/18692
20269 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
20270 check-gnat into check-acats.
20271
5f516f59
KB
202722006-06-17 Karl Berry <karl@gnu.org>
20273
6f7f72f9 20274 * gnat-style.texi (@dircategory): Use "Software development"
5f516f59
KB
20275 instead of "Programming", following the Free Software Directory.
20276
ce0d1b88
JDA
202772006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20278
20279 PR ada/27944
20280 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
20281
9e94c78f 202822006-06-06 Laurent Guerby <laurent@guerby.net>
8c60f779 20283
6f7f72f9
EB
20284 PR ada/27769
20285 mlib-utl.adb: Use Program_Name.
20286
ce2e12c2
KH
202872006-05-28 Kazu Hirata <kazu@codesourcery.com>
20288
20289 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
20290 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
20291 trans.c, utils.c: Fix comment typos. Follow spelling
20292 conventions.
20293 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
20294 conventions.
20295
ba4ac682
EB
202962006-05-19 Nicolas Setton <setton@adacore.com>
20297
20298 * misc.c (gnat_dwarf_name): New function.
20299 (LANG_HOOKS_DWARF_NAME): Define to it.
20300
05b44921
L
203012006-05-14 H.J. Lu <hongjiu.lu@intel.com>
20302
20303 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
20304 (ada/misc.o): Likewise.
20305 (ada/utils.o): Likewise.
20306
a3bd7058
AJ
203072006-04-08 Aurelien Jarno <aurel32@debian.org>
20308
20309 * Makefile.in: Add Ada support for GNU/kFreeBSD.
20310 * s-osinte-kfreebsd-gnu.ads: New file.
20311
ad3a7ce3
CD
203122006-03-29 Carlos O'Donell <carlos@codesourcery.com>
20313
20314 * Make-lang.in: Rename docdir to gcc_docdir.
20315
936a6fa7
EB
203162006-03-04 Eric Botcazou <ebotcazou@adacore.com>
20317
20318 * gigi.h (get_ada_base_type): Delete.
20319 * utils2.c (get_ada_base_type): Likewise.
20320 * trans.c (convert_with_check): Operate in the real base type.
20321
93f978b7
RK
203222006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20323
20324 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
20325
434aeebb
RS
203262006-03-02 Richard Sandiford <richard@codesourcery.com>
20327
20328 * utils.c (create_var_decl): Use have_global_bss_p when deciding
20329 whether to make the decl common.
20330
719bb4e3 203312006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
93f978b7 20332
ed41063a 20333 * Make-lang.in (Ada): Remove.
9d29a5b7
RE
20334 (.PHONY): Remove Ada
20335
c63f730e
AC
203362006-02-17 Ed Schonberg <schonberg@adacore.com>
20337
20338 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
20339 aggregate, check the interpretations of the other operand to find one
20340 that may be a boolean array.
20341
20342 (Analyze_Selected_Component): Fix flow-of-control typo in case where
20343 the prefix is a private extension.
20344
203452006-02-17 Eric Botcazou <botcazou@adacore.com>
20346
20347 PR ada/26315
c63f730e
AC
20348 * utils2.c (find_common_type): If both input types are BLKmode and
20349 have the same constant size, keep using the first one.
20350
20351 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
20352
20353 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
20354
20355 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
20356
203572006-02-17 Jose Ruiz <ruiz@adacore.com>
20358
9e81dbc7
AS
20359 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
20360 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
20361 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
c63f730e
AC
20362 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
20363 Abort_Defer/Undefer pairs to avoid the possibility of a task being
20364 aborted while owning a lock.
20365
203662006-02-17 Javier Miranda <miranda@adacore.com>
20367 Robert Dewar <dewar@adacore.com>
20368
20369 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
20370 through an access to class-wide interface we force the displacement of
20371 the pointer to the allocated object to reference the corresponding
20372 secondary dispatch table.
20373 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
20374 if Long_Shifts are supported on the target, even if 64 bit divides
20375 are not supported (configurable run time mode).
20376 (Expand_N_Type_Conversion): Do validity check if validity checks on
20377 operands are enabled.
20378 (Expand_N_Qualified_Expression): Do validity check if validity checks
20379 on operands are enabled.
20380
203812006-02-17 Ed Schonberg <schonberg@adacore.com>
20382
20383 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
20384 must be materialized when the renamed expression is an explicit
20385 dereference.
20386
203872006-02-17 Ed Schonberg <schonberg@adacore.com>
20388
20389 * freeze.adb (Statically_Discriminated_Components): Return false if
20390 the bounds of the type of the discriminant are not static expressions.
20391
20392 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
20393 the bounds of the discriminant type are not static.
20394
203952006-02-17 Robert Dewar <dewar@adacore.com>
20396
20397 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
20398 then we close To if it is valid.
20399
204002006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
20401
20402 * init.c (facility_resignal_table): new array
20403 (__gnat_default_resignal_p): enhance default predicate to resignal if
20404 VMS condition has one of the predefined facility codes.
20405
204062006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
20407
20408 * Makefile.in: Use VMS64 specialized versions of several units in
20409 Interfaces.C hierarchy to be compatible with HP C default size choices.
20410 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
20411
204122006-02-17 Ed Schonberg <schonberg@adacore.com>
20413
20414 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
20415 instantiation, the corresponding entity is the related_instance of the
20416 wrapper package created for the instance.
20417
204182006-02-17 Ed Schonberg <schonberg@adacore.com>
20419
20420 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
20421 the current instance is nested within another instance in a child unit.
20422
204232006-02-17 Javier Miranda <miranda@adacore.com>
20424 Ed Schonberg <schonberg@adacore.com>
20425
20426 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
20427 type we cannot inherit the primitive operations; we inherit the
20428 Corresponding_Record_Type (which has the list of primitive operations).
20429 (Check_Anonymous_Access_Types): When creating anonymous access types for
20430 access components, use Rewrite in order to preserve the tree structure,
20431 for ASIS use.
20432 (Analyze_Object_Declaration): For limited types with access
20433 discriminants with defaults initialized by an aggregate, obtain
20434 subtype from aggregate as for other mutable types.
20435 (Derived_Type_Declaration): If the derived type is a limited interface,
20436 set the corresponding flag (Is_Limited_Record is not sufficient).
20437
204382006-02-17 Ed Schonberg <schonberg@adacore.com>
20439
20440 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
20441 to inline a function that returns an unconstrained type, the return
20442 expression must be the first variable declared in the body of the
20443 function.
20444
204452006-02-17 Javier Miranda <miranda@adacore.com>
20446
20447 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
20448 abstract interface type, the static analysis is not enough to know if
20449 the interface is implemented or not by the source tagged type. Hence
20450 we must pass the work to the expander to generate the required code to
20451 evaluate the conversion at run-time.
20452 (Resolve_Equality_Op): Do not apply previous
20453 transformation if expansion is disasbled, to prevent anomalies when
20454 locating global references in a generic unit.
20455
204562006-02-17 Vincent Celier <celier@adacore.com>
20457
20458 * snames.ads, snames.adb: New standard names for new project attributes:
20459 archive_builder, archive_indexer, compiler_pic_option,
20460 config_body_file_name, config_body_file_name_pattern,
20461 config_file_switches, config_file_unique, config_spec_file_name,
20462 config_spec_file_name_pattern, default_builder_switches,
20463 default_global_compiler_switches, default_language,
20464 dependency_file_kind, global_compiler_switches, include_path,
20465 include_path_file, language_kind, linker_executable_option,
20466 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
20467 roots, runtime_project.
20468
204692006-02-17 Matthew Heaney <heaney@adacore.com>
20470
9e81dbc7 20471 * a-convec.ads, a-convec.adb:
c63f730e
AC
20472 (operator "&"): handle potential overflow for large index types
20473 (Insert): removed Contraint_Error when using large index types
20474 (Insert_Space): removed Constraint_Error for large index types
20475 (Length): moved constraint check from Length to Insert
20476
20477 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
20478 as not null access.
20479 Explicit raise statements now include an exception message.
20480 (operator "&"): handle potential overflow for large index types
20481 (Insert): removed Contraint_Error when using large index types
20482 (Insert_Space): removed Constraint_Error for large index types
20483 (Length): moved constraint check from Length to Insert
20484
204852006-02-17 Robert Dewar <dewar@adacore.com>
20486
20487 * s-wchcnv.adb: Document handling of [ on output (we do not change
20488 this to ["5B"] and the new comments say why not.
20489
9e81dbc7 20490 * gnat_ugn.texi:
c63f730e
AC
20491 Add note for -gnatVo that this now includes the cases of type
20492 conversions and qualified expressions.
20493 Add comments on handling of brackets encoding for Text_IO
20494
204952006-02-17 Ramon Fernandez <fernandez@adacore.com>
20496 Thomas Quinot <quinot@adacore.com>
20497 Robert Dewar <dewar@adacore.com>
20498 Javier Miranda <miranda@adacore.com>
20499
20500 * expander.adb: Fix typo in comment
20501
20502 * exp_pakd.adb: Fix typo
20503 Minor comment reformatting.
20504
20505 * g-dyntab.adb: Minor reformatting
20506
20507 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
20508 aliased subprograms to look for the abstract interface subprogram.
20509
fd7927cd
EB
205102006-02-16 Eric Botcazou <ebotcazou@adacore.com>
20511
20512 * env.c (__gnat_setenv): Use size_t.
20513 (__gnat_unsetenv): Likewise.
20514 (__gnat_clearenv): Likewise.
20515
3f806915
AC
205162006-02-16 Arnaud Charlet <charlet@adacore.com>
20517
20518 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
20519
cc26ad97
AC
205202006-02-13 Arnaud Charlet <charlet@adacore.com>
20521
20522 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
20523 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
20524 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
20525 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
20526 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
20527 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
20528 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
20529 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
20530 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
20531 no longer used.
20532
205332006-02-13 Jose Ruiz <ruiz@adacore.com>
20534
20535 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
20536 protection against race conditions is not needed.
20537 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
20538 fallback handler.
20539 (Set_Specific_Handler): Add mutual exclusive access to the specific
20540 handler.
20541 (Specific_Handler): Add mutual exclusive access for retrieving the
20542 specific handler.
20543
20544 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
20545 back handler.
20546
20547 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
20548 Fall_Back_Handler and Specific_Handler.
20549
20550 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
20551 termination handlers.
20552 Set two different owerflow depending on the maximal stack size.
20553
20554 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
20555 protection against race conditions is not needed when executing the
20556 task termination handler.
20557
205582006-02-13 Robert Dewar <dewar@adacore.com>
20559
20560 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
20561 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
20562 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20563 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
20564 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
20565 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
20566 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
20567 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
20568 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
20569 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
20570 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
20571 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
20572 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
20573 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
20574 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
20575 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
20576 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
20577 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
20578 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
20579 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
20580 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
20581 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
20582 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
20583 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
20584 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
20585 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
20586 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
20587 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
20588 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
20589 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
20590 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
20591 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
20592 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
20593 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
20594 reformatting.
20595
205962006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20597
20598 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
20599 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
20600 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
20601 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
20602 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
20603 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
20604 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
20605 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
20606 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
20607
206082006-02-13 Arnaud Charlet <charlet@adacore.com>
20609
9e81dbc7
AS
20610 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
20611 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
20612 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
20613 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
20614 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
cc26ad97
AC
20615 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
20616 replaced by anonymous access type.
20617 (pthread_sigmask): Now take an access sigset_t
20618
20619 * s-osinte-hpux.ads: Ditto.
20620 (pthread_mutex_t, pthread_cond_t): Update definitions to support
20621 properly 32 and 64 bit ABIs.
20622
206232006-02-13 Pascal Obry <obry@adacore.com>
20624
9e81dbc7
AS
20625 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
20626 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
cc26ad97
AC
20627 s-taprop-linux.adb, s-taprop-solaris.adb,
20628 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
20629 adjustement is already done when calling this routine.
20630
206312006-02-13 Pascal Obry <obry@adacore.com>
20632
20633 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
20634 table to take advantage of the 16 priority levels available on Windows
20635 2000 and XP. On NT4 there are only 7 priority levels, this is properly
20636 supported by this new mapping.
20637
206382006-02-13 Nicolas Setton <setton@adacore.com>
20639
20640 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
20641 (get_encoding): New subprogram. Extracts the encodings from an encoded
20642 Ada name.
20643
206442006-02-13 Pascal Obry <obry@adacore.com>
20645 Nicolas Roche <roche@adacore.com>
20646 Arnaud Charlet <charlet@adacore.com>
20647
20648 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
20649 support.
20650 (__gnat_try_lock): Add unicode support by using a specific section on
20651 Windows.
20652 (__gnat_get_current_dir): Idem.
20653 (__gnat_open_read): Idem.
20654 (__gnat_open_rw): Idem.
20655 (__gnat_open_create): Idem.
20656 (__gnat_create_output_file): Idem.
20657 (__gnat_open_append): Idem.
20658 (__gnat_open_new): Idem.
20659 (__gnat_file_time_name): Idem.
20660 (__gnat_set_file_time_name): Idem.
20661 (__gnat_stat): Idem.
20662 (win32_no_block_spawn): Idem.
20663 (__gnat_locate_exec_on_path): Idem.
20664 (__gnat_opendir): New routine.
20665 (__gnat_closedir): Idem.
20666 (__gnat_readdir): Add new parameter length (pointer to int). Update
20667 implementation to use it and add specific Win32 code for Unicode
20668 support.
20669 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
20670 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
20671 (convert_addresses): Do not define this dummy routine on VMS.
20672
20673 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
20674 runtime Unicode support will be activated.
20675 (S2WS): String to Wide-String conversion. This version just copy a
20676 string in non Unicode version.
20677 (WS2S): Wide-String to String conversion. This version just copy a
20678 string in non Unicode version.
20679
20680 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
20681 (Open): Now import __gnat_opendir from adaint.c.
20682 (Read): Change the implementation to support unicode characters. It is
20683 not possible to use strlen() on Windows as this version supports only
20684 standard ASCII characters. So the length of the directory entry is now
20685 returned from the imported __gnat_readdir routine.
20686 Update copyright notice.
20687
20688 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
20689 (opendir): Moved to adaint.c.
20690
20691 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
20692 (Get_Directory): Fix wrong indexing.
20693 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
20694 __gnat_getenv from env.c
20695 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
20696 from env.c
20697
20698 * env.h, env.c: New file.
20699
20700 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
20701 adaint.c by __gnat_getenv from env.c
20702
20703 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
20704 adaint.c by __gnat_getenv from env.c
20705
20706 * Make-lang.in: Add env.o in the list of C object needed by gnat1
20707 and gnatbind.
20708 Update dependencies.
20709
207102006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20711 Olivier Hainque <hainque@adacore.com>
20712 Eric Botcazou <ebotcazou@adacore.com>
20713
20714 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9e81dbc7 20715
cc26ad97
AC
20716 * gigi.h (value_factor_p): Add prototype and description, now public.
20717
20718 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
20719 promotion for field with rep clause if the associated size was proven
20720 to be in error.
20721 Expand comments describing attempts to use a packable type.
20722 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
20723 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
20724 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
20725 necessary since these are not different types and pointers may
20726 actually designate any subtype in this hierarchy.
20727 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
20728 discriminants but put them into record only if not Unchecked_Union;
20729 pass flag to components_to_record showing Unchecked_Union.
20730 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
20731 components before variants; don't set TYPE_UNCHECKED_UNION_P.
20732 (components_to_record): New argument UNCHECKED_UNION.
20733 Remove special case code for Unchecked_Union and instead use main code
20734 with small changes.
20735
20736 PR ada/26096
ed41063a
EB
20737 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
20738 variable with the expression being built, only its inner field.
cc26ad97
AC
20739
20740 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
20741 emit_sequence_entry_statements.
20742 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
20743 (establish_gnat_vms_condition_handler): Move before
20744 Subprogram_Body_to_gnu.
20745 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
20746 for a subprogram if it has a foreign convention or is exported.
20747 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
20748 substituted for a CONST_DECL.
20749 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
20750 Etype to assoc_to_constructor.
20751 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
20752 discriminants of Unchecked_Union.
20753 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
20754 don't need cluttering preprocessor directives.
20755 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
20756 condition handler as current in the compiled function.
20757 (body_with_handlers_p): New function. Tell whether a given sequence of
20758 statements node is attached to a package or subprogram body and involves
20759 exception handlers possibly nested within inner block statements.
20760 (emit_sequence_entry_statements): New function, to emit special
20761 statements on entry of sequences when necessary. Establish GNAT
20762 condition handler in the proper cases for VMS.
20763 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
20764 emit_sequence_entry_statements.
20765
20766 * utils2.c (find_common_type): If both input types are BLKmode and
20767 have a constant size, use the smaller one.
20768 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
20769 the same.
20770
20771 * utils.c (value_factor_p): Make public, to allow uses from other gigi
20772 units.
20773 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
20774 (convert, case UNION_TYPE): Remove special treatment for unchecked
20775 unions.
20776
20777 PR ada/18659
ed41063a
EB
20778 (update_pointer_to): Update variants of pointer types to unconstrained
20779 arrays by attaching the list of fields of the main variant.
cc26ad97
AC
20780
207812006-02-13 Arnaud Charlet <charlet@adacore.com>
20782 Robert Dewar <dewar@adacore.com>
20783
20784 * a-exexpr.adb, a-exexpr-gcc.adb
20785 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
20786 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
20787 Remove code unused for exception propagation for the compiler itself
20788 from a-except.adb and update to still share separate packages.
20789
20790 * a-except.ads, a-except.adb: Ditto.
20791 Add comments that this version is now used only by the compiler and
20792 other basic tools. The full version that includes the Ada 2005 stuff
20793 is in separate files a-except-2005.ads/adb. The reason is that we do
20794 not want to cause bootstrap problems with compilers not recognizing
20795 Wide_Wide_String.
20796 Add exception reason code PE_Implicit_Return
20797 Add new exception reason code (Null Exception_Id)
20798
20799 * a-except-2005.adb, a-except-2005.ads: New files.
20800
20801 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
20802
20803 * s-wchcon.adb: New file.
20804
20805 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
20806 (traceback.o deps): Likewise.
20807 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
20808 Activate build of GMEM instrumentation library on VMS targets.
20809 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
20810 Use a-except-2005.ads/adb for all run-time library builds unless
20811 specified otherwise.
20812 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
20813 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
20814 Use s-parame.adb on all native platforms.
20815 Use s-parame-vxworks.adb on all vxworks platforms.
20816 Add env.c env.h in LIBGNAT_SRCS
20817 Add env.o in LIBGNAT_OBJS
20818 (GNATMAKE_OBJS): Remove ctrl_c.o object.
20819 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
20820 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20821 supports VxWorks 6 RTPs.
20822 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
20823 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20824
20825 * types.h, types.ads (Terminate_Program): New exception
20826 Add comment on modifying multiple versions of a-except.adb when the
20827 table of exception reasons is modified.
20828 Add exception reason code PE_Implicit_Return
20829 Add new exception reason code (Null Exception_Id)
20830
6f7f72f9
EB
20831 * clean.adb (Initialize): Get the target parameters before checking
20832 if target is OpenVMS. Move the OpenVMS specific code here from package
20833 body elaboration code.
cc26ad97
AC
20834
208352006-02-13 Thomas Quinot <quinot@adacore.com>
20836 Vincent Celier <celier@adacore.com>
20837 Robert Dewar <dewar@adacore.com>
20838
20839 * ali-util.adb (Get_File_Checksum): Update to account for change in
20840 profile of Initialize_Scanner.
20841
20842 * gprep.adb (Gnatprep): Update to account for change in profile of
20843 Initialize_Scanner.
20844 (Process_One_File): Same.
20845
20846 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
20847 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
20848 that behaviour using the new Unit information recorded in the source
20849 files table, rather than going through all units every time.
20850 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
20851 (Get_Source_Unit): Same.
20852
20853 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
20854 change in profile of Initialize_Scanner.
20855 (Prepare_To_Preprocess): Same.
20856
20857 * lib.ads: Fix typo in comment (templace -> template).
20858
20859 * prj-part.adb (Parse_Single_Project): Update to account for change in
20860 profile of Initialize_Scanner.
20861
20862 * scn.adb (Initialize_Scanner): Account for change in profile of
20863 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
20864 Also record the association of the given Source_File_Index to the
20865 corresponding Unit_Number_Type.
20866
20867 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
20868 procedure.
20869 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
20870 Remove Unit formal for generic scanner: this formal
20871 is only relevant to Scn (the scanner instance used to parse Ada source
20872 files), not to other instances. Update comment accordingly.
20873 (Scan): Use new function Snames.Is_Keyword_Name.
20874
20875 * sinfo-cn.adb: Fix typo in comment.
20876
20877 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
20878 Unit.
20879
20880 * sinput.ads (Source_File_Record): New component Unit, used to capture
20881 the unit identifier (if any) associated to a source file.
20882
20883 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
20884 Unit in Source_File_Record.
20885
20886 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
20887 in profile of Initialize_Scanner.
20888
20889 * scans.adb (Initialize_Ada_Keywords): New procedure
20890
20891 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
20892 Ada keywords in the Namet table, without the need to call
20893 Initialize_Scanner.
20894
20895 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
20896 (Is_Keyword_Name): New function
20897
20898 * snames.ads: Add subtype Configuration_Pragma_Names
20899 Add pragma Ada_2005 (synonym for Ada_05)
20900 (Is_Keyword_Name): New function
20901
20902 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
20903
209042006-02-13 Arnaud Charlet <charlet@adacore.com>
20905
20906 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
20907 index.
20908
20909 * a-stwima.adb (To_Set): Add extra check when N = 0.
20910
20911 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
20912
209132006-02-13 Arnaud Charlet <charlet@adacore.com>
20914
20915 * s-parame-mingw.adb, s-parame-linux.adb,
20916 s-parame-solaris.adb: Removed, replaced by s-parame.adb
20917
20918 * s-parame-vxworks.ads: Fix typo.
20919
20920 * s-parame-vxworks.adb: New file.
20921
20922 * s-parame.adb: Version now used by all native platforms.
20923 (Default_Stack_Size): Use 2 megs for default stack size and use
20924 __gl_default_stack_size when available.
20925 (Minimum_Stack_Size): Use 12K.
20926
20927 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
20928 (Create_Task): Refine implementation taking advantage of the XP stack
20929 size support. On XP, we now create the thread using the flag
20930 STACK_SIZE_PARAM_IS_A_RESERVATION.
20931
20932 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
20933
20934 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
20935 XP and 0 on older Windows versions.
20936
20937 * interfac-vms.ads: Removed, no longer used.
20938
209392006-02-13 Matthew Heaney <heaney@adacore.com>
20940
9e81dbc7
AS
20941 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
20942 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
cc26ad97
AC
20943 a-cohase.adb: All explicit raise statements now include an exception
20944 message.
20945
20946 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
20947 (Update_Element_Preserving_Key): renamed op to just Update_Element.
20948 Explicit raise statements now include an exception message
20949
20950 * a-cihase.ads, a-cohase.ads: Removed comment.
20951
20952 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
20953 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
20954 a-szbzha.adb, a-szfzha.ads: New files.
20955
209562006-02-13 Matthew Heaney <heaney@adacore.com>
20957
20958 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
20959 quicksort.
20960
209612006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20962
20963 * lang.opt: Wvariadic-macros: New option.
20964 Wold-style-definition: Likewise.
20965 Wmissing-format-attribute: Likewise.
20966
20967 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
20968 -Wold-style-definition and -Wmissing-format-attribute.
20969
209702006-02-13 Robert Dewar <dewar@adacore.com>
20971
20972 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
20973
20974 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
20975
209762006-02-13 Nicolas Roche <roche@adacore.com>
20977
20978 * a-envvar.adb, a-envvar.ads: New files.
20979
209802006-02-13 Douglas Rupp <rupp@adacore.com>
20981
20982 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
20983
20984 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
20985
209862006-02-13 Pat Rogers <rogers@adacore.com>
20987
20988 * a-rttiev.adb, a-rttiev.ads: New files.
20989
209902006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20991
20992 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
20993 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
20994
20995 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
20996
209972006-02-13 Robert Dewar <dewar@adacore.com>
20998
9e81dbc7 20999 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
cc26ad97
AC
21000 sem_case.adb: Minor code reorganization (not Present should be No)
21001
210022006-02-13 Geert Bosch <bosch@adacore.com>
21003 Gary Dismukes <dismukes@adacore.com>
21004
21005 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
21006 0, since the lower bound of the actual string may be greater than one.
21007
21008 PR ada/20753
ed41063a 21009 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
cc26ad97
AC
21010 layout is requested.
21011
210122006-02-13 Vincent Celier <celier@adacore.com>
21013
21014 * back_end.adb (Scan_Compiler_Arguments): Check if
21015 Search_Directory_Present is True and, if it is, add the argument in
21016 the source search directory path.
21017
21018 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
21019 Search_Directory_Present to True.
21020
210212006-02-13 Joel Brobecker <brobecke@adacore.com>
21022
21023 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
21024 volatile, to tell the compiler to preserve this variable at any level
21025 of optimization.
21026 (Gen_Versions_Ada): Temporarily work around codegen bug.
21027
210282006-02-13 Vincent Celier <celier@adacore.com>
21029
21030 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
21031 gcc to link with option -shared-libgcc.
21032 (Gnatlink): Remove duplicate switches -shared-libgcc
21033
210342006-02-13 Robert Dewar <dewar@adacore.com>
21035
21036 * gnatvsn.ads (Current_Year): New constant, used to easily update
21037 copyright on all GNAT tools.
21038
21039 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
21040 copyright notice.
21041
210422006-02-13 Robert Dewar <dewar@adacore.com>
21043
21044 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
21045 after hyphen (small aesthetic change useful for a range of numbers
21046 using ^-^.
21047 Suppress range checks for a couple of assignments which otherwise
21048 cause validity checks with validity checking turned on.
21049
21050 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
21051 Improvement in error message for object.
21052 (Rep_Item_Too_Late): Remove '!' in warning message.
21053
210542006-02-13 Robert Dewar <dewar@adacore.com>
21055 Eric Botcazou <ebotcazou@adacore.com>
21056
21057 * err_vars.ads: Suppress range checks for a couple of assignments
21058 which otherwise cause validity checks with validity checking turned on.
21059 Update comments.
21060
21061 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
21062 Make message unconditional if it is a warning.
21063 (Error_Msg_NEL): Always output warning messages.
21064 Suppress range checks for a couple of assignments which otherwise
21065 cause validity checks with validity checking turned on.
21066
21067 * errout.ads (Message Insertion Characters): Document that '!' is
21068 implied by '?' in error messages.
21069
21070 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
21071 (Gnat1drv): Use a goto to end of main subprogram instead of
21072 Exit_Program (E_Success) so that finalization can occur normally.
21073
210742006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21075
21076 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
21077 wrapped around.
21078
210792006-02-13 Vincent Celier <celier@adacore.com>
21080
21081 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
21082 Unchecked_Conversion functions.
21083 (Modification_Time): Use direct conversion of OS_Time to Calendar time
21084 when OpenVMS returns False.
21085
21086 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
21087 a-dirval.adb (OpenVMS): New Boolean function
21088
210892006-02-13 Ed Schonberg <schonberg@adacore.com>
21090 Thomas Quinot <quinot@adacore.com>
21091
21092 * checks.adb (Build_Discriminant_Checks): If the expression being
21093 checks is an aggregate retrieve the values of its discriminants to
21094 generate the check, rather than creating a temporary and a reference
21095 to it.
21096 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
21097 (Install_Null_Excluding_Check): Ditto
21098 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
21099 not for the renamed object, so that the actual itype is attached in the
21100 proper context.
21101
211022006-02-13 Robert Dewar <dewar@adacore.com>
21103 Vincent Celier <celier@adacore.com>
21104
21105 * debug.adb: Eliminate numeric switches for binder/gnatmake
21106
21107 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
21108 switches for the compiler.
21109 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
21110 (Scan_Make_Switches): When failing with an illegal switch, output an
21111 error message with the full switch.
21112 Eliminate numeric switches for binder/gnatmake
21113
21114 * switch.ads, switch.adb (Bad_Switch): New procedure
21115
21116 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
21117 Remove 0-9 as debug flag character possibilities
21118 -d is now controlling the primary stack size when its value is a
21119 positive. Also add checks against invalid values, and support for kb,
21120 mb. Ditto for -D switch.
21121
211222006-02-13 Robert Dewar <dewar@adacore.com>
21123 Serguei Rybin <rybin@adacore.com>
21124
21125 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
21126 save/restore routines.
21127 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21128 were not always properly handled previously.
21129 Since we are changing the tree format anyway, also get rid of the
21130 junk obsolete Immediate_Errors flag.
21131 (Tree_Read): Change the way of reading Tree_Version_String - now we
21132 read the version string from the tree even if its length is not the
21133 same as the length of the version string computed from Gnatvsn.
21134 (Search_Directory_Present): New Boolean flag for the compiler.
21135 Define Tree_Version_String as a dynamic string.
21136 (Default_Stack_Size): new variable, used to handle switch -d.
21137
9e81dbc7 21138 * par-prag.adb:
cc26ad97
AC
21139 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
21140 only for main unit.
21141 Add pragma Ada_2005 (synonym for Ada_05)
21142 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21143 were not always properly handled previously.
21144
21145 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
21146 explicit Ada_95 to Ada_2005.
21147
211482006-02-13 Javier Miranda <miranda@adacore.com>
21149 Robert Dewar <dewar@adacore.com>
21150 Ed Schonberg <schonberg@adacore.com>
21151
21152 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
21153 against errors in the source program: a private types for which the
21154 corresponding full type declaration is missing and pragma CPP_Virtual
21155 is used.
21156 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
21157 (Is_Known_Null): New flag
21158 (Has_Pragma_Pure): New flag
21159 (No_Return): Present in all entities, set only for procedures
21160 (Is_Limited_Type): A type whose ancestor is an interface is limited if
21161 explicitly declared limited.
21162 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
21163 entities. Only used for component marked Is_Tag. If present it stores
21164 the Offset_To_Top function used to provide this value in tagged types
21165 whose ancestor has discriminants.
21166
21167 * exp_ch2.adb: Update status of new Is_Known_Null flag
21168
21169 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
21170
21171 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
21172 the categorization sense if Is_Pure was set by pragma Pure_Function.
21173
211742006-02-13 Quentin Ochem <ochem@adacore.com>
21175 Olivier Hainque <hainque@adacore.com>
21176
21177 * bindusg.adb: Updated documentation for -d and -D switches.
21178
21179 * raise.h (__gnat_set_globals): added new parameter for
21180 Default_Stack_Size.
21181
21182 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
21183 (__gnat_handle_vms_condition): Adjust context before raise.
21184 (__gnat_install_handler): Restore the global vector setup for GCC
21185 versions before 3.4, as the frame based circtuitry is not available
21186 in this case.
21187 (__gnat_set_globals): added a parameter default_stack_size
21188 (__gl_default_stack_size): new variable.
21189
211902006-02-13 Ed Schonberg <schonberg@adacore.com>
21191
21192 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
21193 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
21194 does not exist in the Ada RM.
21195 (Compatible_Int_Bounds): Determine whether two integer range bounds
21196 are of equal length and have the same start and end values.
21197 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
21198 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
21199 aggregate when it is part of an object declaration.
21200 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
21201 constrains discriminants of its parent, add explicitly the discriminant
21202 constraints of the ancestor by retrieving them from the
21203 stored_constraint of the parent.
21204
212052006-02-13 Robert Dewar <dewar@adacore.com>
21206
21207 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
21208 attribute Mechanism_Code is applied to renamed subprogram, modify
21209 prefix to point to base subprogram.
21210 Max/Min attributes now violate Restriction No_Implicit_Conditionals
21211
21212 * sinfo.ads: Document that Mechanism_Code cannot be applied to
21213 renamed subprograms so that the front-end must replace the prefix
21214 appropriately.
21215
212162006-02-13 Javier Miranda <miranda@adacore.com>
21217 Gary Dismukes <dismukes@adacore.com>
21218
21219 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
21220 availability of RE_Interface_Tag.
21221 (Build_Initialization_Call): Fix wrong access to the discriminant value.
21222 (Freeze_Record_Type): Do not generate the tables associated with
21223 timed and conditional dispatching calls through synchronized
21224 interfaces if compiling under No_Dispatching_Calls restriction.
21225 When compiling for Ada 2005, for a nonabstract
21226 type with a null extension, call Make_Controlling_Function_Wrappers
21227 and insert the wrapper function declarations and bodies (the latter
21228 being appended as freeze actions).
21229 (Predefined_Primitive_Bodies): Do not generate the bodies of the
21230 predefined primitives associated with timed and conditional
21231 dispatching calls through synchronized interfaces if we are
21232 compiling under No_Dispatching_Calls.
21233 (Build_Init_Procedure): Use RTE_Available to check if a run-time
21234 service is available before generating a call.
21235 (Make_Controlling_Function_Wrappers): New procedure.
21236 (Expand_N_Full_Type_Declaration): Create a class-wide master for
21237 access-to-limited-interfaces because they can be used to reference
21238 tasks that implement such limited interface.
21239 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
21240 procedure spec and body of the Offset_To_Top function that is generated
21241 when the parent of a type with discriminants has secondary dispatch
21242 tables.
21243 (Init_Secondary_Tags): Handle the case in which the parent of the type
21244 containing secondary dispatch tables has discriminants to generate the
21245 correct arguments to call Set_Offset_To_Top.
21246 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
21247
21248 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
21249 Add Wide_[Wide_]Expanded_Name.
21250 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
21251 the same functionality of Get_Prim_Op_Address but applied to predefined
21252 primitive operations because the pointers to the predefined primitives
21253 are now saved in a separate table.
21254 (Parent_Size): Modified to get access to the separate table of primitive
21255 operations or the parent type.
21256 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
21257 functionality of Set_Prim_Op_Address but applied to predefined primitive
21258 operations.
21259 (Set_Signature): New subprogram used to store the signature of a DT.
21260 (Displace): If the Offset_To_Top value is not static then call the
21261 function generated by the expander to get such value; otherwise use
21262 the value stored in the table of interfaces.
21263 (Offset_To_Top): The type of the actual has been changed to Address to
21264 give the correct support to tagged types with discriminants. In this
21265 case this value is stored just immediately after the tag field.
21266 (Set_Offset_To_Top): Two new formals have been added to indicate if the
21267 offset_to_top value is static and hence pass this value to the run-time
21268 to store it in the table of interfaces, or else if this value is dynamic
21269 and then pass to the run-time the address of a function that is
21270 generated by the expander to provide this value for each object of the
21271 type.
21272
21273 * rtsfind.ads (Default_Prin_Op_Count): Removed.
21274 (Default_Prim_Op_Count): New entity
21275 (Get_Predefined_Prim_Op_Address): New entity
21276 (Set_Predefined_Prim_Op_Address): New entity
21277 (RE_Set_Signature): New entity
21278
212792006-02-13 Thomas Quinot <quinot@adacore.com>
21280 Ed Schonberg <schonberg@adacore.com>
21281
21282 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
21283 Make_Adjust_Call done for a newly-allocated object.
21284
21285 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
21286 in a subprogram are wrapped in a cleanup block, indicate that the
21287 subprogram contains an inner block with an exception handler.
21288 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
21289 Adjust call is for a newly-allocated object. In that case we must not
21290 assume that the finalization list chain pointers are correct (since they
21291 come from a bit-for-bit copy of the original object's pointers) so if
21292 the attach level would otherwise be zero (no change), we set it to 4
21293 instead to cause the pointers to be reset to null.
21294
21295 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
21296 reset chain pointers to null.
21297
212982006-02-13 Ed Schonberg <schonberg@adacore.com>
21299
21300 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
21301 string, and the context requires a loop for the assignment (e.g.
21302 because the left-hand side is packed), generate a unique name for the
21303 temporary that holds the string, to prevent spurious name clashes.
21304
213052006-02-13 Ed Schonberg <schonberg@adacore.com>
21306 Javier Miranda <miranda@adacore.com>
21307 Robert Dewar <dewar@adacore.com>
21308 Gary Dismukes <dismukes@adacore.com>
21309
21310 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
21311 return unconstrained arrays.
21312 Update comments.
21313 (Expand_Call): An indirect call through an access parameter of a
21314 protected operation is not a protected call.
21315 Add circuit to raise CE in Ada 2005 mode following call
21316 to Raise_Exception.
21317 (Register_DT_Entry): Do nothing if
21318 the run-time does not give support to abstract interfaces.
21319 (Freeze_Subprogram): In case of dispatching operations, do not generate
21320 code to register the operation in the dispatch table if the source
21321 is compiled with No_Dispatching_Calls.
21322 (Register_Predefined_DT_Entry): Generate code that calls the new
21323 run-time subprogram Set_Predefined_Prim_Op_Address instead of
21324 Set_Prim_Op_Address.
21325
21326 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
21327 on array assignments if the right-hand side is a function call that has
21328 been inlined. Check is performed on the assignment in the block.
21329 (Process_Bounds): If bounds and range are overloaded, apply preference
21330 rule for root operations to disambiguate, and diagnose true ambiguity.
21331 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
21332 a tag-indeterminate right-hand side even when Expander_Active is True.
21333 Needed to ensure that dispatching calls to T'Input are allowed and
21334 get the tag of the target class-wide object.
21335
21336 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
21337 an inherited primitive operation that already overrides several
21338 abstract interface primitives. For transitivity, the new entity must
21339 also override all the abstract interface primitives covered by the
21340 inherited overriden primitive.
21341 Emit warning if new entity differs from homograph in same scope only in
21342 that one has an access parameter and the other one has a parameter of
21343 a general access type with the same designated type, at the same
21344 position in the signature.
21345 (Make_Inequality_Operator): Use source locations of parameters and
21346 subtype marks from corresponding equality operator when creating the
21347 tree structure for the implicit declaration of "/=". This does not
21348 change anything in behaviour except that the decoration of the
21349 components of the subtree created for "/=" allows ASIS to get the
21350 string images of the corresponding identifiers.
21351 (Analyze_Return_Statement): Remove '!' in warning message.
21352 (Check_Statement_Sequence): Likewise.
21353 (Analyze_Subprogram_Body): For an access parameter whose designated type
21354 is an incomplete type imported through a limited_with clause, use the
21355 type of the corresponding formal in the body.
21356 (Check_Returns): Implicit return in No_Return procedure now raises
21357 Program_Error with a compile time warning, instead of beging illegal.
21358 (Has_Single_Return): Function returning unconstrained type cannot be
21359 inlined if expression in unique return statement is not an identifier.
21360 (Build_Body_To_Inline): It is possible to inline a function call that
21361 returns an unconstrained type if all return statements in the function
21362 return the same local variable. Subsidiary procedure Has_Single_Return
21363 verifies that the body conforms to this restriction.
21364
21365 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
21366 same type, and one of them is of an anonymous access type, convert
21367 the other operand to it, so that this is a valid binary operation for
21368 gigi.
21369 (Resolve_Type_Conversion): Handle subtypes of protected types and
21370 task types when accessing to the corresponding record type.
21371 (Resolve_Allocator): Add '\' in 2-line warning message.
21372 Remove '!' in warning message.
21373 (Resolve_Call): Add '\' in 2-line warning message.
21374 (Valid_Conversion): Likewise.
21375 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
21376 resulting type may be an access type with an implicit dereference.
21377 Obtain the proper component from the designated type.
21378 (Make_Call_Into_Operator): Handle properly a call to predefined equality
21379 given by an expanded name with prefix Standard, when the operands are
21380 of an anonymous access type.
21381 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
21382 Explicit_Dereference and Resolve_Selected_Component, to verify that the
21383 prefix of the expression is not of an incomplete type. Allows full
21384 diagnoses of all semantic errors.
21385 (Resolve_Actuals): If the actual is an allocator whose directly
21386 designated type is a class-wide interface we build an anonymous
21387 access type to use it as the type of the allocator. Later, when
21388 the subprogram call is expanded, if the interface has a secondary
21389 dispatch table the expander will add a type conversion to force
21390 the displacement of the pointer.
21391 (Resolve_Call): If a function that returns an unconstrained type is
21392 marked Inlined_Always and inlined, the call will be inlined and does
21393 not require the creation of a transient scope.
21394 (Check_Direct_Boolean_Op): Removed
21395 (Resolve_Comparison_Op): Remove call to above
21396 (Resolve_Equality_Op): Remove call to above
21397 (Resolve_Logical_Op): Inline above, since this is only call.
21398 (Valid_Conversion): Handle properly conversions between arrays of
21399 convertible anonymous access types.
21400
21401 PR ada/25885
cc26ad97
AC
21402 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
21403 the literal in an unchecked conversion, because GCC 4.x needs a static
21404 value for a string bound.
21405
214062006-02-13 Ed Schonberg <schonberg@adacore.com>
21407 Hristian Kirtchev <kirtchev@adacore.com>
21408
21409 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
21410 components of the corresponding record, take into account component
21411 definitions that are access definitions.
21412 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
21413 procedure is not considered a dispatching call and will be expanded
21414 properly.
21415
214162006-02-13 Javier Miranda <miranda@adacore.com>
21417
21418 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
21419 controlling argument of the dispatching call is an abstract interface
21420 class-wide type then we use it directly.
21421 Check No_Dispatching_Calls restriction.
21422 (Default_Prim_Op_Position): Remove the code that looks for the last
21423 entity in the list of aliased subprograms. This code was wrong in
21424 case of renamings.
21425 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
21426 when the source is compiled with the No_Dispatching_Calls restriction.
21427 (Init_Predefined_Interface_Primitives): No need to inherit primitives
21428 if we are compiling with restriction No_Dispatching_Calls.
21429 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
21430 subprograms if we are compiling under No_Dispatching_Calls restriction.
21431 (Make_DT): Generate a dispatch table with a single dummy entry if
21432 we are compiling with the No_Dispatching_Calls restriction. In
21433 addition, in this case we don't generate code that calls to the
21434 following run-time subprograms: Set_Type_Kind, Inherit_DT.
21435 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
21436 of this subprogram if compiling with the No_Dispatching_Calls
21437 restriction.
21438 (Expand_Type_Conversion): Instead of using the actual parameter,
21439 the argument passed as parameter to the conversion function was
21440 erroneously referenced by the expander.
21441 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
21442 Set_Predefined_Primitive_Op_Address and Set_Signature.
21443 (Expand_Dispatching_Call): Generate call to
21444 Get_Predefined_Prim_Op_Address for predefined primitives.
21445 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
21446 predefined primitives.
21447 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
21448 primitives we reserve one dummy entry to ensure that the tag does not
21449 point to some memory that is associated with some other object. In
21450 addition, remove all the old code that generated the assignments
21451 associated with the signature of the dispatch table and replace them
21452 by a call to the new subprogram Set_Signature.
21453 (Set_All_DT_Position): Change the algorithm because now we have a
21454 separate dispatch table associated with predefined primitive operations.
21455 (Expand_Interface_Conversion): In case of non-static offset_to_top
21456 add explicit dereference to get access to the object after the call
21457 to displace the pointer to the object.
21458 (Expand_Interface_Thunk): Modify the generation of the actual used
21459 in the calls to the run-time function Offset_To_Top to fulfil its
21460 new interface.
21461 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
21462
214632006-02-13 Ed Schonberg <schonberg@adacore.com>
21464
21465 * exp_dist.adb (Copy_Specification): For access parameters, copy
21466 Null_Exclusion flag, which will have been set for stream subprograms
21467 in Ada2005 mode.
21468
214692006-02-13 Pascal Obry <obry@adacore.com>
21470
21471 * expect.c (__gnat_expect_portable_execvp): New implementation. The
21472 previous implementation was using the C runtime spawnve routine but
21473 the corresponding wait was using directly the Win32 API. This was
21474 causing some times a lock when waiting for an event using
21475 WaitForSingleObject in __gnat_waitpid. This new implementation uses
21476 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
21477 API fixes this problem.
21478
214792006-02-13 Robert Dewar <dewar@adacore.com>
21480
21481 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
21482 call.
21483
214842006-02-13 Thomas Quinot <quinot@adacore.com>
21485
21486 * exp_pakd.ads: Fix typos in comments.
21487
21488 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
21489 array reference that is an explicit dereference, mark the converted
21490 (packed) array reference as analyzed to prevent a forthcoming
21491 reanalysis from resetting its type to the original (non-packed) array
21492 type.
21493
214942006-02-13 Ed Schonberg <schonberg@adacore.com>
21495 Javier Miranda <miranda@adacore.com>
21496 Eric Botcazou <ebotcazou@adacore.com>
21497
21498 * exp_util.ads, exp_util.adb (Find_Prim_Op,
21499 Is_Predefined_Primitive_Operation): When
21500 searching for the predefined equality operator, verify that operands
21501 have the same type.
21502 (Is_Predefined_Dispatching_Operation): Remove the code that looks
21503 for the last entity in the list of aliased subprograms. This code
21504 was wrong in case of renamings.
21505 (Set_Renamed_Subprogram): New procedure
21506 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
21507 Exp_Type constant computed when entering this subprogram.
21508 (Known_Null): New function
21509 (OK_To_Do_Constant_Replacement): New function
21510 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
21511 (Side_Effect_Free): An attribute reference 'Input is not free of
21512 side effect, unlike other attributes that are functions. (from code
21513 reading).
21514 (Remove_Side_Effects): Expressions that involve packed arrays or records
21515 are copied at the point of reference, and therefore must be marked as
21516 renamings of objects.
21517 (Is_Predefined_Dispatching_Operation): Return false if the operation is
21518 not a dispatching operation.
21519
21520 PR ada/18819
21521 (Remove_Side_Effects): Lift enclosing type conversion nodes for
21522 elementary types in all cases.
21523
215242006-02-13 Javier Miranda <miranda@adacore.com>
21525
21526 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
21527 task types when accessing to the corresponding record type.
21528 Remove '!' in warning message.
21529
215302006-02-13 Olivier Hainque <hainque@adacore.com>
21531
21532 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
21533 to avoid useless and space inefficient overalignments on targets where
21534 Max_Alignment is larger than 16.
21535
215362006-02-13 Pascal Obry <obry@adacore.com>
21537
21538 * g-catiio.adb (Sec_Number): New type used to compute the number of
21539 seconds since 1-1-1970.
21540 (Image) [Natural]: The parameter was an Integer, as we can't deal with
21541 negative numbers (years, months...) it is better to have a Natural here.
21542 Code clean-up.
21543 (Image) [Number]: Change parameter from Long_Integer to Number.
21544 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
21545 overflow for dates past year 2038.
21546
215472006-02-13 Matthew Heaney <heaney@adacore.com>
21548
21549 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
21550 Constraint_Error.
21551
215522006-02-13 Arnaud Charlet <charlet@adacore.com>
21553
21554 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
21555 native platforms.
21556 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
21557 finalization can occur normally.
21558
215592006-02-13 Vincent Celier <celier@adacore.com>
21560
21561 * gnatcmd.adb (Rules_Switches): New table
21562 (Add_To_Rules_Switches): New procedure
21563 (GNATCmd): For command CHECK, put all options following "-rules" in the
21564 Rules_Switches table. Append these -rules switches after the -cargs
21565 switches.
21566
215672006-02-13 Robert Dewar <dewar@adacore.com>
21568
21569 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
21570 These two cases were generating incorrect output, and if this unit
21571 was built with checks on, generated a discriminant mismatch constraint
21572 error.
21573
215742006-02-13 Ed Schonberg <schonberg@adacore.com>
21575 Robert Dewar <dewar@adacore.com>
21576
21577 * lib-xref.adb (Get_Type_Reference): For a private type whose full
21578 view is an array type, indicate the component type as well, for
21579 navigation purposes.
21580 (Generate_Reference): Don't consider array ref on LHS to be a case
21581 of violating pragma Unreferenced.
21582 Do not give Ada 2005 warning except on real reference.
21583
215842006-02-13 Vincent Celier <celier@adacore.com>
21585
21586 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
21587 main source, add switch -mdebug-main=_ada_ so that the executable can
21588 be debugged by the standard VMS debugger.
21589 (Gnatmake): Set No_Main_Subprogram to True when there is no main
21590 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
21591 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
21592 of the last source, as the binding and linking phases are never
21593 performed.
21594 Set all executable obsolete when rebuilding a library.
21595
21596 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
21597 options.
21598
215992006-02-13 Javier Miranda <miranda@adacore.com>
21600
21601 PR ada/23973
cc26ad97
AC
21602 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
21603 code to improve the error message reported when the program has
21604 declarations of abstract interface types and it is not compiled with
21605 the -gnat05 switch.
21606 (P_Access_Definition): Reorganize the code to improve the error
21607 message reported when the new Ada 2005 syntax for anonymous
21608 access types is used and the program is not compiled with the
21609 -gnat05 switch.
21610
216112006-02-13 Robert Dewar <dewar@adacore.com>
21612
21613 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
21614 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
21615 (MODE_IN)
21616
216172006-02-13 Javier Miranda <miranda@adacore.com>
21618
21619 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
21620 against source containing syntax errors.
21621
216222006-02-13 Vincent Celier <celier@adacore.com>
21623
21624 * prj.adb (Reset): Initialize the first element of table Namings with
21625 the standard naming data.
21626
216272006-02-13 Vincent Celier <celier@adacore.com>
21628
21629 * prj.ads (Error_Warning): New enumeration type
21630
21631 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
21632 unknown, use the location of the project to report the error.
21633 (When_No_Sources): New global variable
21634 (Report_No_Ada_Sources): New procedure
21635 (Check): New parameter When_No_Sources. Set value of global variable
21636 When_No_Sources,
21637 (Find_Sources): Call Report_No_Ada_Sources when appropriate
21638 (Get_Sources_From_File): Ditto
21639 (Warn_If_Not_Sources): Better warning messages indicating the unit name
21640 and the file name.
21641
21642 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
21643 Call Prj.Proc.Process with parameter When_No_Sources.
21644
21645 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
21646 Call Recursive_Check with parameter When_No_Sources.
21647 (Recursive_Check): New parameter When_No_Sources. Call itself and
21648 Prj.Nmsc.Check with parameter When_No_Sources.
21649 (Process): New parameter When_No_Sources. Call Check with parameter
21650 When_No_Sources.
21651 (Copy_Package_Declarations): New procedure to copy renamed parameters
21652 and setting the location of the declared attributes to the location
21653 of the renamed package.
21654 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
21655 packages.
21656
216572006-02-13 Vincent Celier <celier@adacore.com>
21658
21659 * prj-makr.adb (Make): Preserve the comments from the original project
21660 file.
21661 When removing nodes (attributes Source_Dirs, Source_Files,
21662 Source_List_File and package Naming), save the comments and attach the
21663 saved comments to the newly created nodes.
21664 Do not add a with clause for the naming package if one already exists.
21665
216662006-02-13 Javier Miranda <miranda@adacore.com>
21667 Gary Dismukes <dismukes@adacore.com>
21668 Robert Dewar <dewar@adacore.com>
21669
21670 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
21671
21672 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
21673 aliased entities to look for the overriden abstract interface
21674 subprogram.
21675 (Is_Interface_Subprogram): Complete documentation.
21676 (Check_Dispatching_Operation): Do not generate code to register the
21677 operation in the dispatch table if the source is compiled with
21678 restriction No_Dispatching_Calls.
21679 (Override_Dispatching_Operation): Check for illegal attempt to override
21680 No_Return procedure with procedure that is not No_Return
21681 (Check_Dispatching_Call): Suppress the check for an abstract operation
21682 when the original node of an actual is a tag-indeterminate attribute
21683 call, since the attribute, which must be 'Input, can never be abstract.
21684 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
21685 call to the Input attribute (even when rewritten).
21686 (Propagate_Tag): Augment comment to indicate the possibility of a call
21687 to an Input attribute.
21688
21689 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
21690 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
21691
21692 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
21693 No_Wide_Characters is no longer partition-wide
21694 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
21695 rather than GNAT
21696
216972006-02-13 Douglas Rupp <rupp@adacore.com>
21698
21699 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
21700
217012006-02-13 Javier Miranda <miranda@adacore.com>
21702
21703 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
21704 handles default-initialized components to keep separate the management
21705 of this feature but also avoid the unrequired resolution and
21706 expansion of components that do not have partially initialized
21707 values.
21708 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
21709 (Check_Bounds): Likewise.
21710 (Check_Length): Likewise.
21711
217122006-02-13 Javier Miranda <miranda@adacore.com>
21713 Ed Schonberg <schonberg@adacore.com>
21714
21715 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
21716 abstract interface type call analyze_and_resolve to expand the type
21717 conversion into the corresponding displacement of the
21718 reference to the base of the object.
21719 (Eval_Attribute, case Width): For systems where IEEE extended precision
21720 is supported, the maximum exponent occupies 4 decimal digits.
21721 (Accessibility_Message): Add '\' in 2-line warning message.
21722 (Resolve_Attribute): Likewise.
21723 (case Attribute_Access): Significantly revise checks
21724 for illegal access-to-subprogram Access attributes to properly enforce
21725 the rules of 3.10.2(32/2).
21726 Diagnose use of current instance with an illegal attribute.
21727
6f7f72f9
EB
21728 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
21729 to a Node_Id.
21730 (Enclosing_Generic_Unit): New function to return a node's innermost
21731 enclosing generic declaration node.
21732 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
21733 (Type_Access_Level): The accessibility level of anonymous acccess types
21734 associated with discriminants is that of the current instance of the
21735 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
21736 (Compile_Time_Constraint_Error): Handle case of conditional expression.
21737 (Kill_Current_Values_For_Entity): New function
21738 (Enter_Name): Change formal type to Entity_Id
cc26ad97
AC
21739
217402006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
21741 Ed Schonberg <schonberg@adacore.com>
21742 Gary Dismukes <dismukes@adacore.com>
21743
21744 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
21745 Analyze_Compilation_Unit.
21746 Detect and warn on redundant with clauses detected in a package spec
21747 and/or body when -gnatwr is used.
21748 (Analyze_Context): Analyze config pragmas before other items
21749 (Install_Context_Items): Don't analyze config pragmas here
21750 (Install_Limited_Withed_Unit): Set limited entity of package in
21751 with_clause so that cross-reference information or warning messages on
21752 unused packages can be properly generated
21753 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
21754 has Error_Posted set. Prevent infinite loops in illegal programs.
21755 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
21756 to the point of the error test requiring the current unit to be private.
21757 This ensures that private with clauses are not exempted from the basic
21758 checking for being a descendant of the same library unit parent as a
21759 withed private descendant unit.
21760 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
21761 handle private with clauses properly, as well as to account for cases
21762 where the withed unit is a public descendant of a private ancestor
21763 (in which case the current unit must be a descendant of the private
21764 ancestor's parent). The spec comments were updated accordingly. Also,
21765 the old error message in this subprogram was replaced with error
21766 messages that mirror the errors tested and reported by
21767 Check_Private_Child_Unit.
21768 Parameter and variable names improved for readability.
21769 (Install_Limited_Context_Clauses): Remove test for a withed unit being
21770 private as the precondition for calling
21771 Check_Private_Limited_Withed_Unit since that subprogram has been
21772 revised to test public units as well as private units.
21773
217742006-02-13 Thomas Quinot <quinot@adacore.com>
21775 Robert Dewar <dewar@adacore.com>
21776 Ed Schonberg <schonberg@adacore.com>
21777 Javier Miranda <miranda@adacore.com>
21778
21779 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
21780 that Scope_Stack.First = 1.
21781 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21782 were not always properly handled previously.
21783 (Formal_Entity): Complete rewrite, to handle properly some complex case
21784 with multiple levels of parametrization by formal packages.
21785 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
21786 to the corresponding derived type declaration for proper semantics.
21787
21788 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
21789 (Check_Component): Enforce restriction on components of
21790 unchecked_unions: a component in a variant cannot contain tasks or
21791 controlled types.
21792 (Unchecked_Union): Allow nested variants and multiple discriminants, to
21793 conform to AI-216.
21794 Add pragma Ada_2005 (synonym for Ada_05)
21795 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
21796 were not always properly handled previously.
21797 Document that pragma Propagate_Exceptions has no effect
21798 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
21799 (Set_Convention_From_Pragma): Check that if a convention is
21800 specified for a dispatching operation, then it must be
21801 consistent with the existing convention for the operation.
21802 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
21803 longer required to specify an vtable-ptr component in the record. For
21804 compatibility reasons we leave the support for the previous definition.
21805 (Analyze_Pragma, case No_Return): Allow multiple arguments
21806
21807 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
21808 non-overrideen inherited operation with a controlling result as
21809 illegal only its implicit declaration comes from the derived type
21810 declaration of its result's type.
21811 (Check_Possible_Deferred_Completion): Relocate the object definition
21812 node of the subtype indication of a deferred constant completion rather
21813 than directly analyzing it. The analysis of the generated subtype will
21814 correctly decorate the GNAT tree.
21815 (Record_Type_Declaration): Check whether this is a declaration for a
21816 limited derived record before analyzing components.
21817 (Analyze_Component_Declaration): Diagnose record types not explicitly
21818 declared limited when a component has a limited type.
21819 (Build_Derived_Record_Type): Code reorganization to check if some of
21820 the inherited subprograms of a tagged type cover interface primitives.
21821 This check was missing in case of a full-type associated with a private
21822 type declaration.
21823 (Constant_Redeclaration): Check that the subtypes of the partial and the
21824 full view of a constrained deferred constant statically match.
21825 (Mentions_T): A reference to the current type in an anonymous access
21826 component declaration must be an entity name.
21827 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
21828 class_wide type to refer to full type, not to the incomplete one.
21829 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
21830 available. Required to give support to the certified run-time.
21831 (Analyze_Component_Declaration): In case of anonymous access components
21832 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
21833 (Process_Discriminants): For an access discriminant, use the
21834 discriminant specification as the associated_node_for_itype, to
21835 simplify accessibility checks.
21836
218372006-02-13 Ed Schonberg <schonberg@adacore.com>
21838 Javier Miranda <miranda@adacore.com>
21839
21840 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
21841 abstract interpretations on an operator, remove interpretations that
21842 yield Address or a type derived from it, if one of the operands is an
21843 integer literal.
21844 (Try_Object_Operation.Try_Primitive_Operation,
21845 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
21846 location when creating the new reference to a primitive or class-wide
21847 operation as a part of rewriting a subprogram call.
21848 (Try_Primitive_Operations): If context requires a function, collect all
21849 interpretations after the first match, because there may be primitive
21850 operations of the same type with the same profile and different return
21851 types. From code reading.
21852 (Try_Primitive_Operation): Use the node kind to choose the proper
21853 operation when a function and a procedure have the same parameter
21854 profile.
21855 (Complete_Object_Operation): If formal is an access parameter and prefix
21856 is an object, rewrite as an Access reference, to match signature of
21857 primitive operation.
21858 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
21859 by an expanded name with prefix Standard, when the operands are of an
21860 anonymous access type.
21861 (Remove_Abstract_Operations): If the operation is abstract because it is
21862 inherited by a user-defined type derived from Address, remove it as
21863 well from the set of candidate interpretations of an overloaded node.
21864 (Analyze_Membership_Op): Membership test not applicable to cpp-class
21865 types.
21866
218672006-02-13 Bob Duff <duff@adacore.com>
21868
21869 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
21870 redundant use clauses.
21871 In particular, if the scope of two use clauses overlaps, but one is not
21872 entirely included in the other, we should not warn. This can happen
21873 with nested packages.
21874 (Analyze_Subprogram_Renaming): Protect the compiler against previously
21875 reported errors. The bug was reported when the compiler was built
21876 with assertions enabled.
21877 (Find_Type): If the node is a 'Class reference and the prefix is a
21878 synchronized type without a corresponding record, return the type
21879 itself.
21880
218812006-02-13 Javier Miranda <miranda@adacore.com>
21882
21883 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
21884 if this is the full-declaration associated with a private declaration
21885 that implement interfaces, then the private type declaration must be
21886 limited.
21887 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
21888 as aliased. The use of the 'access attribute is not available for such
21889 object (for this purpose the object should be explicitly marked as
21890 aliased, but being an anonymous type this is not possible).
21891
218922006-02-13 Ed Schonberg <schonberg@adacore.com>
21893 Robert Dewar <dewar@adacore.com>
21894
21895 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
21896 compilation unit is an elaboration scope.
21897 (Add_Task_Proc): Add '\' in 2-line warning message.
21898 (Activate_All_Desirable): Deal with case of unit with'ed by parent
21899
219002006-02-13 Ed Schonberg <schonberg@adacore.com>
21901 Javier Miranda <miranda@adacore.com>
21902
21903 * sem_type.adb (Write_Overloads): Improve display of candidate
21904 interpretations.
21905 (Add_One_Interp): Do not add to the list of interpretations aliased
21906 entities corresponding with an abstract interface type that is an
21907 immediate ancestor of a tagged type; otherwise we have a dummy
21908 conflict between this entity and the aliased entity.
21909 (Disambiguate): The predefined equality on universal_access is not
21910 usable if there is a user-defined equality with the proper signature,
21911 declared in the same declarative part as the designated type.
21912 (Find_Unique_Type): The universal_access equality operator defined under
21913 AI-230 does not cover pool specific access types.
21914 (Covers): If one of the types is a generic actual subtype, check whether
21915 it matches the partial view of the other type.
21916
219172006-02-13 Thomas Quinot <quinot@adacore.com>
21918
21919 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
21920 line. This is necessary to allow In_Extended_Main_Unit to provide
21921 correct results for itypes while writing out expanded source.
21922 (Close_File): No need to update the source_index_table here since it's
21923 now done for each line.
21924
219252006-02-13 Ed Schonberg <schonberg@adacore.com>
21926 Robert Dewar <dewar@adacore.com>
21927
21928 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
21929 preserve the source unit where the itype is declared, and prevent a
21930 backend abort.
21931 (Note_Implicit_Run_Time_Call): New procedure
21932 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
21933 E_Subprogram_Type)
21934
21935 * sprint.ads: Document use of $ for implicit run time routine call
21936
219372006-02-13 Quentin Ochem <ochem@adacore.com>
21938
21939 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
21940 task name.
21941
219422006-02-13 Bob Duff <duff@adacore.com>
21943
21944 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
21945 Scan_Unsigned, so we do not scan leading blanks and sign twice.
21946 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21947 raise Constraint_Error.
21948
21949 * s-vallli.adb (Scan_Long_Long_Integer): Call
21950 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
21951 do not scan leading blanks and sign twice.
21952 Integer'Value("- 5") and Integer'Value("-+5") now correctly
21953 raise Constraint_Error.
21954
21955 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
21956 Scan_Long_Long_Unsigned): Split out most of the processing from
21957 Scan_Long_Long_Unsigned out into
21958 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
21959 This prevents scanning leading blanks and sign twice.
21960 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
21961 See RM-3.5(44).
21962
21963 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
21964 out most of the processing from Scan_Unsigned out into
21965 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
21966 This prevents scanning leading blanks and sign twice.
21967
21968 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
21969 use with Modular'Value attribute.
21970 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
21971 attribute.
21972
219732006-02-13 Robert Dewar <dewar@adacore.com>
21974
21975 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
21976
219772006-02-13 Eric Botcazou <ebotcazou@adacore.com>
21978
21979 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
21980 (PPC VxWorks): Likewise.
21981 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
21982 (forced_callee): Make non-inlinable and non-pure.
21983 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
21984
219852006-02-13 Arnaud Charlet <charlet@adacore.com>
21986 Ben Brosgol <brosgol@adacore.com>
21987 Robert Dewar <dewar@adacore.com>
21988
21989 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
21990 support.
21991 Document that gnatbind -M option is for cross environments only.
21992 Added description of using gnatmem to trace gnat rtl allocs and deallocs
21993 Add note on use of $ to label implicit run time calls
21994 Add documentation for -gnatyI (check mode IN)
21995 Updated chapter on compatibility with HP Ada
21996 VMS-oriented edits.
21997 Ran spell and corrected errors
21998 Add documentation for gnatbind -d and rework documentation of -D
21999 at the same time.
22000 Add subprogram/data elimination section.
22001 Minor editing of annex A.
22002 Add section for gnatcheck.
22003 Add documentation for restriction No_Dispatching_Calls
22004 Add documentation for pragma Ada_2005
22005 Remove mention of obsolete pragma Propagate_Exceptions
22006 Document that pragma Unreferenced can appear after DO in ACCEPT
22007 Clarify Pure_Function for library level units
22008 Mention Max/Min in connection with No_Implicit_Conditionals
22009 No_Wide_Characters restriction is no longer partition-wide
22010 Add a nice example for Universal_Literal_String attribute
22011 Document that pragma No_Return can take multiple arguments
22012
22013 * ug_words: Added entry for gnatcheck
22014
22015 * g-ctrl_c.ads (Install_Handler): Enhance comments
22016
22017 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
22018
22019 * g-trasym.ads: Add documentation on how to do off line symbolic
22020 traceback computation.
22021
22022 * s-fatgen.adb: Add comments for Unaligned_Valid
22023
22024 * stand.ads: Fix typo in comment
22025
0e692cc0
RO
220262006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22027
22028 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
22029
f44013ae
RS
220302006-02-06 Roger Sayle <roger@eyesopen.com>
22031
22032 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
22033
3df6582b
JDA
220342006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22035
22036 PR target/25926
22037 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
22038 implementation that calls __main.
22039
f57a2203
PG
220402006-01-25 Peter O'Gorman <peter@pogma.com>
22041
22042 PR bootstrap/25859
22043 * Makefile.in (GCC_LINK): Remove quotes.
22044 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
22045 or $(GCC_LINK).
22046
22047 (powerpc-darwin): Pass -shared-libgcc when building shared library.
22048
4bf2d473
JDA
220492006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22050
22051 PR ada/24533
22052 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
22053
4580c9a6
JDA
220542005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22055
22056 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
22057
e5c681b3
AC
220582005-12-12 Arnaud Charlet <charlet@adacore.com>
22059
22060 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
22061 needed.
22062
b0b8e176
AC
220632005-12-12 Arnaud Charlet <charlet@adacore.com>
22064
22065 * Make-lang.in: Update dependencies
22066
53fcb103
AC
220672005-12-12 Arnaud Charlet <charlet@adacore.com>
22068
22069 * Make-lang.in: Add rule for ada/exp_sel.o
22070
25b06cda
AC
220712005-12-12 Arnaud Charlet <charlet@adacore.com>
22072
22073 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
22074
aedc2c2b
AC
220752005-12-09 Arnaud Charlet <charlet@adacore.com>
22076
22077 * gnatvsn.ads (Library_Version): Bump to version 4.2
22078 (ASIS_Version_Number): Bumped.
22079
220802005-12-09 Doug Rupp <rupp@adacore.com>
22081
22082 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
22083 Ada bind file prefix on VMS from b$ to b__.
22084 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
22085 __init.
22086
22087 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
22088 Targparm.OpenVMS_On_Target.
22089 (Object_Suffix): Initialize with target object suffix.
22090 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
22091
22092 * butil.adb: Change some Hostparm.OpenVMS checks to
22093 Targparm.OpenVMS_On_Target.
22094
22095 * clean.adb: Change some Hostparm.OpenVMS checks to
22096 Targparm.OpenVMS_On_Target.
22097 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
22098 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
22099 Ada bind file prefix on VMS from b$ to b__.
22100
22101 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
22102 --GCC so that Get_Target_Parameters can find system.ads.
22103 (Gnatlink): Call Get_Target_Parameters in mainline.
22104 Initialize standard packages for Targparm.
22105 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
22106 (Process_Args): Also Check for object files with target object
22107 extension.
22108 (Make_Binder_File_Names): Create with target object extension.
22109 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
22110 to b__.
22111
22112 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
22113 Targparm.OpenVMS_On_Target.
22114 ({declaration},Build_Library,Check_Library): Change Ada bind file
22115 prefix on VMS from b$ to b__.
22116
22117 * osint-b.adb: Change some Hostparm.OpenVMS checks to
22118 Targparm.OpenVMS_On_Target.
22119 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
22120 b__.
22121
22122 * targext.c: New file.
22123
22124 * Makefile.in: add support for vxworks653 builds
22125 (../../vxaddr2line): gnatlink with targext.o.
22126 (TOOLS_LIBS): Move targext.o to precede libgnat.
22127 (init.o, initialize.o): Minor clean up in dependencies.
22128 (GNATLINK_OBJS): Add targparm.o, snames.o
22129 Add rules fo building targext.o and linking it explicitly with all
22130 tools.
22131 Also add targext.o to gnatlib.
22132
22133 * Make-lang.in: Add rules for building targext.o and linking it in
22134 with gnat1 and gnatbind.
22135 Add entry for exp_sel.o.
22136
22137 * osint.adb Change some Hostparm.OpenVMS checks to
22138 Targparm.OpenVMS_On_Target.
22139 (Object_File_Name): Use target object suffix.
22140
22141 * osint.ads (Object_Suffix): Remove, no longer used.
22142 (Target_Object_Suffix): Initialize with target object suffix.
22143
22144 * rident.ads: Add special exception to license.
22145
22146 * targparm.adb (Get_Target_Parameters): Set the value of
22147 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
22148 value.
22149 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
9e81dbc7 22150
aedc2c2b
AC
22151 * targparm.ads: Add special exception to license.
22152
22153 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
22154 function.
22155 (Copy_File): Make sure from file is closed if error on to file
22156 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
22157
22158 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
22159 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
22160
22161 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
22162 target object suffix.
22163
221642005-12-09 Jose Ruiz <ruiz@adacore.com>
22165 Quentin Ochem <ochem@adacore.com>
22166 Florian Villoing <villoing@adacore.com>
22167
6f7f72f9 22168 * a-taster.ads, a-taster.adb: New files.
aedc2c2b
AC
22169
22170 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
22171 link to the version that does nothing. This way the task termination
22172 routine is not executed twice for the environment task when finishing
22173 because of an unhandled exception.
22174
22175 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
22176 handler because of an unhandled exception.
22177
22178 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
22179 System.Tasking.Utilities instead of that in System.Tasking.Stages.
22180
22181 * s-finimp.adb (initialization code): Modify the soft link for the
22182 finalization of the global list instead of Adafinal.
22183
22184 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
22185 non-tasking version of the soft link for task termination. We do
22186 nothing since if we are using the non-tasking version it
22187 means that the task termination functionality is not used.
22188 (Null_Finalize_Global_List): Add this null version for the procedure
22189 in charge of finalizing the global list for controlled objects.
22190 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
22191 instead for handling run-time termination in a more flexible way.
22192 (Adafinal_NT): This new procedure will take care of finalizing the
22193 global list for controlled objects if needed, but no tasking
22194 finalization.
22195
22196 * s-tarest.adb (Task_Lock): Do not try to lock again the
22197 Global_Task_Lock if we already own it. Otherwise, we get blocked in
22198 some run-time operations.
22199 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
22200 until all nested locks have been released.
22201 (Task_Wrapper): Call the fall-back task termination handler. It
22202 applies to all tasks but the environment task.
22203 (Finalize_Global_Tasks): Add the call for the task termination
22204 procedure for the environment task.
22205 (Task_Wrapper): suppress warnings around declaration of
22206 Secondary_Stack_Address.
22207
22208 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
22209 moved to the Common_ATCB record.
22210 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
22211 Common_ATCB record.
22212 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
22213 Common_ATCB record.
22214
22215 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
22216 Fall_Back_Handler, and Specific_Handler.
22217
22218 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
22219 defined in Ada.Task_Termination, to avoid circular dependencies.
22220 (Termination_Handler): Redefine this type here, alredy defined in
22221 Ada.Task_Termination, for avoiding circular dependencies.
22222 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
22223 for storing task termination handlers. In addition,
22224 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
22225 Common_ATCB because it is used by both the regular and the restricted
22226 run times.
22227 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
22228 Common_ATCB because it is used by both the regular and the restricted
22229 run times.
22230 (Common_ATCB): Added a dynamic task analyzer field.
22231
22232 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
22233 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
22234 (Task_Wrapper): Call the task termination handler. It applies to all
22235 tasks but the environment task.
22236 (Finalize_Global_Tasks): Call the task termination procedure for the
22237 environment task. The call to Finalize_Global_List is now performed
22238 using the soft links mechanism.
22239 (Task_Wrapper): added dynamic stack analysis.
22240
22241 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
22242 potentially blocking operations has been moved from
22243 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
22244 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
22245 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
22246 this run-time check.
22247
22248 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
22249 of task termination procedure.
22250 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
22251 link for the task termination procedure.
22252
22253 * bindusg.adb: (Bindusg): Added documentation for -u option.
22254
22255 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
22256 (Get_Main_C): Add handling of dynamic stack analysis.
22257 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
22258
22259 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
22260 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
22261 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
22262
22263 * opt.ads: Added flags used by dynamic stack measurement.
22264 (Max_Line_Length): Remove (not used anymore)
22265
22266 * s-io.ads, s-io.adb (Standard_Error): new subprogram
22267 (Standart_Output): new subprogram
22268 (Set_Output): new subprogram
22269 (Put): now uses the value of Current_Out to know if the output has to be
22270 send to stderr or stdout.
9e81dbc7 22271
aedc2c2b
AC
22272 * s-stausa.ads: Complete implementation.
22273
22274 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
9e81dbc7 22275
aedc2c2b
AC
22276 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
22277 list of Ada 05 files.
22278 (GNAT Library Units): Add AltiVec files.
22279
22280 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
22281 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
22282 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
22283
222842005-12-09 Nicolas Setton <setton@adacore.com>
22285
22286 * adaint.c (__gnat_locate_regular_file): Return immediately if
22287 file_name is empty.
22288
222892005-12-09 Javier Miranda <miranda@adacore.com>
22290 Hristian Kirtchev <kirtchev@adacore.com>
22291
22292 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
22293 to the specification because the frontend generates code that uses this
22294 subprogram.
22295 (Set_Interface_Table): Add missing assertion.
22296 Update documentation describing the run-time structure.
22297 (Displace): New subprogram that displaces the pointer to the object
22298 to reference one of its secondary dispatch tables.
22299 (IW_Membership): Modified to use the new table of interfaces.
22300 (Inherit_TSD): Modified to use the new table of interfaces.
22301 (Register_Interface_Tag): Use the additional formal to fill the
22302 contents of the new table of interfaces.
22303 (Set_Interface_Table): New subprogram that stores in the TSD the
22304 pointer to the table of interfaces.
22305 (Set_Offset_To_Top): Use the additional formal to save copy of
22306 the offset value in the table of interfaces.
22307 Update structure of GNAT Primary and Secondary dispatch table diagram.
22308 Add comment section on GNAT dispatch table prologue.
22309 (Offset_To_Signature): Update the constant value of the Signature field.
22310 (Dispatch_Table): Update comment on hidden fields in the prologue.
22311 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
22312 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
22313 the type of formal parameter T to Tag, introduce additional assertions.
22314 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
22315 conversion.
22316 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
22317
22318 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
22319 in all the calls to Expand_Interface_Thunk. Instead of referencing the
22320 record component containing the tag of the secondary dispatch table we
22321 have to use the Offset_To_Top run-time function to get this information;
22322 otherwise if the pointer to the base of the object has been displace
22323 we get a wrong value if we use the 'position attribute.
22324
22325 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
22326 all the calls to Expand_Interface_Thunk.
22327 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
22328 interfaces; hence the call to Set_Interface_Table was clearly wrong.
22329 (Collect_All_Interfaces): Modify the internal subprogram Collect to
22330 ensure that the interfaces implemented by the ancestors are placed
22331 at the header of the generated list.
22332 (Expand_Interface_Conversion): Handle the case in which the displacement
22333 associated with the interface conversion is not statically known. In
22334 this case we generate a call to the new run-time subprogram Displace.
22335 (Make_DT): Generate and fill the new table of interfaces.
22336 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
22337 Get_Tagged_Kind and Set_Tagged_Kind.
22338 (Tagged_Kind): New function that determines the tagged kind of a type
22339 with respect to limitedness and concurrency and returns a reference to
22340 RE_Tagged_Kind.
22341 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
22342 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
22343 primary dispatch table for a type.
22344 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
22345 secondary dispatch table respectively of a tagged type.
22346
22347 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
22348 (Expand_Interface_Conversion): New subprogram to indicate if the
22349 displacement of the type conversion is statically known.
22350 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
22351
22352 * rtsfind.ads (RE_Offset_To_Top): New entity
22353 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
22354 accessible to users.
22355 (Re_Displace): New entity
22356 (RE_Interface_Data): New entity
22357 (RE_Set_Interface_Data): New_Entity
22358 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
22359 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
22360 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
22361 RE_TK_Tagged, RE_TK_Task.
22362
22363 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
22364 Init_Secondary_Tags_Internal to allow its use with interface types and
22365 also to generate the code for the new additional actual required
22366 by Set_Offset_To_Top.
22367 (Build_Init_Statements): In case of components associated with abstract
22368 interface types there is no need to generate a call to its IP.
22369 (Freeze_Record_Type): Generate Select Specific Data tables only for
22370 concurrent types.
22371 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
22372 the bodies and specifications of the predefined primitive operations
22373 dealing with dispatching selects and abort, 'Callable, 'Terminated only
22374 for concurrent types.
22375
6f7f72f9 22376 * exp_sel.ads, exp_sel.adb: New files.
aedc2c2b
AC
22377
22378 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
22379 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
22380 properly protected objects and attach handler in the case of the
22381 restricted profile.
22382 Move embeded package Select_Expansion_Utilities into a separate external
22383 package.
22384 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
22385 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
22386 (Build_K, Build_S_Assignment): New subprograms, part of the select
22387 expansion utilities.
22388 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
22389 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
22390 where the trigger is a dispatching procedure of a limited tagged type.
22391
223922005-12-09 Olivier Hainque <hainque@adacore.com>
22393
22394 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
22395 pointer initialization values. Make a SAVE_EXPR instead. Add comments
22396 about the use and expansion of SAVE_EXPRs in the various possible
22397 renaming handling cases.
22398 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
22399 abusing DECL_FCONTEXT.
22400
224012005-12-09 Matthew Heaney <heaney@adacore.com>
22402
22403 * a-convec.adb (Merge): Added assertions to check whether vector params
22404 are sorted.
22405
22406 * a-coinve.adb (Merge): Added assertions to check whether vector params
22407 are sorted.
22408
22409 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
22410 draft.
22411 (Cursor'Read): raises PE
22412
22413 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
22414 to its default value.
22415
22416 * a-cihama.adb: Manually check whether cursor's key and elem are
22417 non-null
22418
22419 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
22420 (Merge): Assert that target and source lists are in order
22421 (Swap): Declare non-const temporaries, to pass to Splice
22422
22423 * a-cdlili.ads: (Splice): Changed param name and param mode
22424
22425 * a-cdlili.adb: (Splice): Changed param name and param mode
22426 (Merge): Assert that target and source lists are in order
22427 (Swap): Declare non-const temporaries, to pass to Splice
22428
22429 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
22430 (Write): declare Stream param as not null
22431
22432 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
22433 an exception message.
22434
224352005-12-09 Thomas Quinot <quinot@adacore.com>
22436 Robert Dewar <dewar@adacore.com>
22437
22438 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
22439 which is the absolute maximum length we can support.
22440
22441 * frontend.adb: For the processing of configuration pragma files,
22442 remove references to Opt.Max_Line_Length, which is not checked anymore.
22443
22444 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
22445 length.
22446
9e81dbc7 22447 * scn.adb, scng.adb:
aedc2c2b
AC
22448 Always check line length against the absolute supported maximum,
22449 Hostparm.Max_Line_Length.
22450
22451 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
22452 value for the maximum line length is Max_Line_Length (not
22453 Column_Number'Last).
22454 Minor error msg update
22455 (Set_Style_Check_Options): New interface returning error msg
22456 Minor code reorganization (processing for 'M' was out of alpha order)
22457
22458 * switch-c.adb: New interface for Set_Style_Check_Options
22459
22460 * stylesw.ads (Set_Style_Check_Options): New interface returning error
22461 msg.
22462
224632005-12-09 Javier Miranda <miranda@adacore.com>
22464
22465 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
22466 with IP subprogram were only supported if there were limited types.
22467
22468 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
22469 records with IP subprogram were only supported if there were limited
22470 types.
22471
224722005-12-09 Olivier Hainque <hainque@adacore.com>
22473 Eric Botcazou <ebotcazou@adacore.com>
22474
22475 * trans.c (tree_transform, emit_check): Adjust calls to
22476 build_call_raise, passing the now expected GNAT_NODE argument.
22477
22478 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
22479 source line information than what the current global locus indicates
22480 when appropriate.
22481
22482 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
22483 field has overflowed.
22484 (build_call_raise): Add a GNAT_NODE argument to convey better source
22485 line information than what the current global locus indicates when
22486 appropriate.
22487 (build_component_ref): Adjust call to build_call_raise.
22488
224892005-12-09 Pascal Obry <obry@adacore.com>
22490
22491 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
22492 the iterator is quitting iteration on parent directory.
22493
224942005-12-09 Javier Miranda <miranda@adacore.com>
22495
22496 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
22497 and the assignment to a class-wide object, before the assignment we
22498 generate a run-time check to ensure that the tag of the Target is
22499 covered by the tag of the source.
22500
225012005-12-09 Robert Dewar <dewar@adacore.com>
22502
22503 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
22504 parameter in call to Image_Wide_Character.
22505
22506 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
22507 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
22508 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
22509 annoying FFFE/FFFF inconsistency.
22510
225112005-12-09 Robert Dewar <dewar@adacore.com>
22512 Javier Miranda <miranda@adacore.com>
22513 Ed Schonberg <schonberg@adacore.com>
22514
22515 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
22516 of type conversion.
22517 (Find_Interface): New subprogram that given a tagged type and one of its
22518 component associated with the secondary table of an abstract interface
22519 type, return the entity associated with such abstract interface type.
22520 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
22521 base type to create anonymous subtype, because entity may be a locally
22522 declared subtype or generic actual.
22523 (Find_Interface): New subprogram that given a tagged type and one of its
22524 component associated with the secondary table of an abstract interface
22525 type, return the entity associated with such abstract interface type.
22526
22527 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
22528 conversion cannot be handled at compile time. In this case we pass this
22529 information to the expander to generate the appropriate code.
22530
225312005-12-09 Robert Dewar <dewar@adacore.com>
22532 Ed Schonberg <schonberg@adacore.com>
22533 Gary Dismukes <dismukes@adacore.com>
22534 Javier Miranda <miranda@adacore.com>
22535 Hristian Kirtchev <kirtchev@adacore.com>
22536
22537 * einfo.adb (Itype_Printed): New flag
22538 (Is_Limited_Type): Derived types do not inherit limitedness from
22539 interface progenitors.
22540 (Is_Return_By_Reference_Type): Predicate does not apply to limited
22541 interfaces.
22542
22543 * einfo.ads (Itype_Printed): New flag
22544 Move Is_Wrapper_Package to proper section
22545 Add missing Inline for Is_Volatile
22546
22547 * output.ads, output.adb (Write_Erase_Char): New procedure
22548 (Save/Restore_Output_Buffer): New procedures
22549 (Save/Restore_Output_Buffer): New procedures
22550
22551 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
22552 Add missing support for anonymous access type
22553 (Write_Id): Insert calls to Write_Itype
22554 (Write_Itype): New procedure to output itypes
22555
22556 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
22557 use of "limited" in declaration.
22558
9e81dbc7 22559 * sinfo.ads, sinfo.adb:
aedc2c2b
AC
22560 Formal derived types can carry an explicit "limited" indication.
22561
22562 * sem_ch3.adb: Add with and use of Targparm.
22563 (Create_Component): If Frontend_Layout_On_Target is True and the
22564 copied component does not have a known static Esize, then reset
22565 the size and positional fields of the new component.
22566 (Analyze_Component_Declaration): A limited component is
22567 legal within a protected type that implements an interface.
22568 (Collect_Interfaces): Do not add to the list the interfaces that
22569 are implemented by the ancestors.
22570 (Derived_Type_Declaration): If the parent of the full-view is an
22571 interface perform a transformation of the tree to ensure that it has
22572 the same parent than the partial-view. This simplifies the job of the
22573 expander in order to generate the correct object layout, and it is
22574 needed because the list of interfaces of the full-view can be given in
22575 any order.
22576 (Process_Full_View): The parent of the full-view does not need to be
22577 a descendant of the parent of the partial view if both parents are
22578 interfaces.
22579 (Analyze_Private_Extension_Declaration): If declaration has an explicit
22580 "limited" the parent must be a limited type.
22581 (Build_Derived_Record_Type): A derived type that is explicitly limited
22582 must have limited ancestor and progenitors.
22583 (Build_Derived_Type): Ditto.
22584 (Process_Full_View): Verify that explicit uses of "limited" in partial
22585 and full declarations are consistent.
22586 (Find_Ancestor_Interface): Remove function.
22587 (Collect_Implemented_Interfaces): New procedure used to gather all
22588 implemented interfaces by a type.
22589 (Contain_Interface): New function used to check whether an interface is
22590 present in a list.
22591 (Find_Hidden_Interface): New function used to determine whether two
22592 lists of interfaces constitute a set equality. If not, the first
22593 differing interface is returned.
22594 (Process_Full_View): Improve the check for the "no hidden interface"
22595 rule as defined by AI-396.
22596
225972005-12-09 Robert Dewar <dewar@adacore.com>
22598
22599 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
22600 types, not on record subtypes.
22601 (Freeze_Entity): Code cleanup. Add barrier to the loop
22602 that generates the references for primitive operations. This allows to
22603 remove an unnecessary exception handler.
22604 Code reformatting and comment clean ups.
22605
226062005-12-09 Vincent Celier <celier@adacore.com>
22607
22608 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
22609 If GNAT CHECK is called with a project file, but with no
22610 source on the command line, call gnatcheck with all the compilable
22611 sources of the project.
22612 Take into account the new command Check, for gnatcheck. Treat as for
22613 other ASIS tools: take into account project, specific package Check and
22614 Compiler switches.
22615 For ASIS tools, add the switches in package Compiler for
22616 the invocation of the compiler.
22617
22618 * prj-attr.adb: Add package Check and its attributes
22619
22620 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
22621
22622 * vms_conv.adb (Initialize): Change Params of command Check to
22623 unlimited files.
22624 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
22625 Add data for new command Check
22626
22627 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
22628 ELIM.
22629 Add qualifiers for Check command options
22630 (Command_Type): New command Check
22631
226322005-12-09 Thomas Quinot <quinot@adacore.com>
22633
22634 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
22635 command line switch overruns the output buffer.
22636
226372005-12-09 Robert Dewar <dewar@adacore.com>
22638
22639 * sem_prag.adb: Processing for new pragma Complete_Representation
22640 (Analyze_Pragma, case Debug): Implement two argument form.
22641
22642 * par-prag.adb: Entry for new pragma Complete_Representation
22643 (Prag, case Debug): Recognize two argument form of pragma Debug
22644 New interface for Set_Style_Check_Options.
22645
22646 * sem_ch13.adb: Implement new pragma Complete_Representation.
22647
22648 * snames.adb, snames.ads, snames.h: Entry for new pragma
22649 Complete_Representation.
22650
226512005-12-09 Gary Dismukes <dismukes@adacore.com>
22652
22653 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
22654 available user-specified stream attributes on limited parameters to
22655 also test the type directly rather than only its underlying type (for
22656 Ada 95) and, in the case of Ada 2005, to check that the user-specified
22657 attributes are visible at the point of the subprogram declaration.
22658 For Ada 2005, the error message is modified to indicate that the
22659 type's stream attributes must be visible (again, only for -gnat05).
22660
226612005-12-09 Ed Schonberg <schonberg@adacore.com>
22662
22663 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
22664 anonymous access types.
22665
22666 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
22667 matching of anonymous access types and anonymous access to subprogram
22668 types. 'R'M 4.9.1 (2/2).
22669
226702005-12-09 Ed Schonberg <schonberg@adacore.com>
22671
22672 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
22673 rule prematurely when operands are universal, remaining ambiguities
22674 will be removed during resolution.
22675 Code cleanup.
22676
22677 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
22678 that are Ada 2005 functions.
22679 (Has_Abstract_Interpretation): Subsidiary to
22680 Remove_Conversions, to remove ambiguities caused by abstract operations
22681 on numeric types when operands are universal.
22682
226832005-12-09 Robert Dewar <dewar@adacore.com>
22684
22685 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
22686 for case where spec is categorized.
22687
226882005-12-09 Javier Miranda <miranda@adacore.com>
22689
22690 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
22691 types use the corresponding record type. This was not needed before
22692 the implementation of Ada 2005 synchronized types because
22693 concurrent types were never tagged types in Ada 95.
22694
226952005-12-09 Ed Schonberg <schonberg@adacore.com>
22696
22697 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
22698 first subtype of the type of the expression to verify that it is a
22699 legal Time type.
22700
227012005-12-09 Robert Dewar <dewar@adacore.com>
22702
22703 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
22704 decoded names.
22705
227062005-12-09 Quentin Ochem <ochem@adacore.com>
22707 Robert Dewar <dewar@adacore.com>
22708 Ed Falis <falis@adacore.com>
22709 Florian Villoing <villoing@adacore.com>
22710 Thomas Quinot <quinot@adacore.com>
22711 Arnaud Charlet <charlet@adacore.com>
22712
22713 * gnat_ugn.texi: Created section "Stack Related Tools"
22714 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
22715 "Stack Related Tools"
22716 Added subsection "Static Stack Usage Analysis"
22717 Added subsection "Dynamic Stack Usage Analysis"
22718 Include documentation of itypes in sprint listing (-gnatG)
22719 Documented gnatbind -D switch (default sec stack size for fixed sec
22720 stacks).
22721 Added Interrupt_State and Persistent_BSS to list of configuration
22722 pragmas.
22723 Add missing doc for maximum value of nnn in -gnatyMnnn
22724
22725 * gnat_rm.texi: Document the AltiVec binding.
22726 Add documentation for pragma Complete_Representation
22727 Shortened an overly long line (> 79 chars)
22728 Clarify documentation of unchecked conversion in implementation
22729 defined cases.
22730 Document two argument form of pragma Debug
22731
22732 * types.ads (Column_Number): Update documentation.
22733
22734 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
22735 library level Finalize_Storage_Only objects (these are not attached to
22736 any finalization list).
22737
22738 * system-mingw.ads: (Underlying_Priorities): Update comment.
22739
227402005-12-09 Robert Dewar <dewar@adacore.com>
22741
22742 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
6f7f72f9 22743 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
aedc2c2b
AC
22744 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
22745 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
22746 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
22747 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
22748 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
22749 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
22750 reformatting.
22751
227522005-12-09 Robert Dewar <dewar@adacore.com>
22753
22754 * s-vaflop-vms-alpha.adb: (Ne_F): New function
22755 (Ne_G): New function
22756
22757 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
22758 for tag assignment.
22759 (Rewrite_Comparison): Handle case where operation is not a comparison
22760 and ignore, and also handle type conversion case.
22761
227622005-12-09 Thomas Quinot <quinot@adacore.com>
22763
22764 * exp_aggr.ads: Fix typo in comment.
22765 ???-mark Convert_Aggr_In_Assignment as needing documentation.
22766
227672005-12-09 Gary Dismukes <dismukes@adacore.com>
22768
22769 * layout.adb: Replace various uses of byte by storage unit throughout.
22770 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
22771 static size, convert to storage units before returning, to conform to
22772 spec.
22773
227742005-12-09 Matthew Gingell <gingell@adacore.com>
22775
22776 * g-exctra.ads: Fix typo in comment.
22777
227782005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22779
22780 * utils.c: Minor reformatting.
22781
227822005-12-09 Robert Dewar <dewar@adacore.com>
22783
9e81dbc7 22784 * g-soccon.ads:
aedc2c2b
AC
22785 Further comment fixes to make the status of the default file clear
22786
22787 * s-bitops.adb: Clarify comment for Bits_Array
22788
719bb4e3 227892005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
bd97af06
RÁE
22790
22791 * Make-lang.in (ada.install-normal): Remove.
22792
719bb4e3 227932005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2f4d2d18
AM
22794
22795 * Make-lang.in: Remove all dependencies on s-gtype.
22796
53917868
RG
227972005-12-05 Richard Guenther <rguenther@suse.de>
22798
22799 * utils.c (convert): Use fold_convert where appropriate.
22800
40077270
PB
228012005-12-05 Paolo Bonzini <bonzini@gnu.org>
22802
6f7f72f9 22803 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
40077270
PB
22804 a period is meant.
22805
a380cd0a
RG
228062005-12-02 Richard Guenther <rguenther@suse.de>
22807
22808 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
22809
87f2a9f5
RS
228102005-12-01 Roger Sayle <roger@eyesopen.com>
22811
22812 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
22813 nodes.
22814
9e94c78f 228152005-11-23 Laurent Guerby <laurent@guerby.net>
f8d15f14 22816
6f7f72f9 22817 * mlib-prj.adb (Build_Library): Initialize Delete.
f8d15f14 22818
9e94c78f 228192005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
04b5d587
JS
22820
22821 * socket.c: Add extern int h_errno for rtems since networking header
22822 files are not available at this point in a tool bootstrap. Newlib
22823 only has basic C library header files.
22824
452b5b1e
RG
228252005-11-19 Richard Guenther <rguenther@suse.de>
22826 Roger Sayle <roger@eyesopen.com>
22827
22828 PR ada/23717
22829 * misc.c (internal_error_function): Don't use vsprintf to format
22830 the error message text, instead use pp_format_text and the new
22831 pretty printer APIs. This allows handling of %qs, %w, etc.
22832
9e94c78f 228332005-11-18 Laurent Guerby <laurent@guerby.net>
e0709888 22834
6f7f72f9
EB
22835 PR ada/24857
22836 * Makefile.in: Use s-auxdec-empty for RTEMS.
e0709888 22837
115a82d3
RK
228382005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22839
22840 PR ada/22333
22841 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
22842 a temporary if taking the address of something that is neither
22843 reference, declaration, or constant, since the gimplifier
22844 can't handle that case.
22845
9e94c78f 228462005-11-17 Laurent Guerby <laurent@guerby.net>
f92af607
LG
22847
22848 PR ada/24857
22849 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
6f7f72f9 22850
0678ec6b
RG
228512005-11-16 Richard Guenther <rguenther@suse.de>
22852
22853 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
22854
9e94c78f 228552005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
b381d30b 22856
6f7f72f9
EB
22857 PR ada/24855
22858 * raise-gcc.c: Add missing stdarg.h include.
9e81dbc7 22859
1367ca38
RG
228602005-11-16 Richard Guenther <rguenther@suse.de>
22861
22862 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
22863 (ada/misc.o): Likewise.
22864
5de923eb
AC
228652005-11-14 Thomas Quinot <quinot@adacore.com>
22866
22867 * g-soccon.ads: Minor reformatting. Update comments.
22868
22869 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
22870 gain visibility on the declaration of struct timeval.
22871
22872 * g-soccon-freebsd.ads,
22873 g-soccon-darwin.ads,
22874 g-soccon-tru64.ads,
22875 g-soccon-aix.ads,
22876 g-soccon-irix.ads,
22877 g-soccon-hpux.ads,
22878 g-soccon-solaris.ads,
22879 g-soccon-vms.ads,
22880 g-soccon-mingw.ads,
22881 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
22882
22883 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
22884 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
22885 g-soccon-linux-x86.ads: New files.
22886
9e81dbc7 22887 * g-socthi-mingw.adb:
5de923eb
AC
22888 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
22889
22890 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
22891 (time_t, suseconds_t): New types constructed to match the tv_sec
22892 and tv_usec fields of C struct timeval.
22893 (Timeval): Construct structure in terms of the new types.
22894 (Host_Errno): New function (imported from socket.c), returns last hosts
22895 database error.
22896
22897 * g-socthi-vxworks.adb: Add error handling circuitry.
22898
22899 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
22900 components of struct timeval.
22901 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
22902 (Check_Selector): In error conditions, clear internal socket sets to
22903 avoid a memory leak.
22904 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
22905 Send_Timeout, Receive_Timeout.
22906
22907 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
22908 the tv_sec and tv_usec fields of C struct timeval.
22909 (Timeval): Construct structure in terms of the new types.
22910 (Host_Errno): New function (imported from socket.c), returns last hosts
22911 database error.
22912
22913 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
22914 hosts database last error code.
22915
22916 * gen-soccon.c: Complete value expansion should not be performed on
22917 TARGET, as it has the form of a math expression, and some components
22918 may be platform-defined macros.
22919 For VxWorks, generate the OK and ERROR values.
22920 New constants giving the sizes of the components of C struct timeval.
22921
229222005-11-14 Robert Dewar <dewar@adacore.com>
22923 Ed Schonberg <schonberg@adacore.com>
22924
22925 PR ada/18434
5de923eb
AC
22926 * types.ads: Include All_Checks in Suppress_Array
22927
22928 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
22929 not(a=b), since we no longer do this rewriting, and hence it is not
22930 needed.
22931 (Elaboration_Checks_Suppressed): Add special casing to
22932 deal with different cases of static and dynamic elaboration checks (all
22933 checks does not count in the first case, but does in the second).
22934 (Expr_Known_Valid): Do not assume that the result of any arbitrary
22935 function call is valid, since this is not the case.
22936 (Ensure_Valid): Do not apply validity check to a real literal
22937 in a universal or fixed context
22938
22939 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
22940 elementary types using the operator in standard. It is cleaner not to
22941 modify the programmers intent, especially in the case of floating-point.
22942 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
22943 it did not matter because we always rewrote a/=b to not(a=b).
22944 (Expand_Allocator_Expression): For an allocator expression whose nominal
22945 subtype is an unconstrained packed type, convert the expression to its
22946 actual constrained subtype.
22947 Implement warning for <= or >= where < or > not possible
22948 Fix to Vax_Float tests (too early in many routines, causing premature
22949 Vax_Float expansions.
22950
22951 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
22952 to be used with packages and generic packages as well as with
22953 subprograms.
22954 (Suppress): Set All_Checks, but not Elaboration_Check, for case
22955 of pragma Suppress (All_Checks)
22956 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
22957 a string literal for precise control over warnings.
22958 Avoid raise of pragma in case of unrecognized pragma and just return
22959 instead.
22960
22961 * sem_prag.ads: Minor reformatting
22962
22963 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
22964 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22965 Switch. Do not handle any exception.
22966 Include -gnatwx as part of -gnatg (warn on redundant parens)
22967 Allow optional = after -gnatm
22968 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
22969 longer sets Elaboration_Checks.
22970 Code to set warning mode moved to Sem_Warn
22971 so that it can be shared by pragma processing.
22972
22973 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
22974 statement.
22975
9e81dbc7 22976 * s-taprop-solaris.adb:
5de923eb
AC
22977 Change some <= to =, to avoid new warning
22978
9e81dbc7 22979 * a-exexda.adb, prj-proc.adb:
5de923eb
AC
22980 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
22981 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
22982
229832005-11-14 Robert Dewar <dewar@adacore.com>
22984
22985 * exp_vfpt.adb: Handle /= case
22986 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
22987 so that we do not get duplicate scaling for fixed point conversions.
22988
22989 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
22990
229912005-11-14 Matthew Gingell <gingell@adacore.com>
22992
9e81dbc7 22993 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
5de923eb
AC
22994 Increase default priority on Lynx from 15 to 17, and meet the Ada
22995 requirement that Default_Priority be ((Priority'First +
22996 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
22997
229982005-11-14 Vincent Celier <celier@adacore.com>
22999
23000 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23001 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
23002 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
23003 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
23004 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
23005 mlib-tgt-lynxos.adb (DLL_Prefix): New function
23006
230072005-11-14 Doug Rupp <rupp@adacore.com>
23008
23009 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
23010 private part.
23011
230122005-11-14 Arnaud Charlet <charlet@adacore.com>
23013
23014 * s-traces-default.adb, s-trafor-default.ads,
23015 s-tratas-default.adb: Fix compilation errors.
23016
230172005-11-14 Jose Ruiz <ruiz@adacore.com>
23018
23019 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
23020 raising the exception so the memory used is freed.
23021
230222005-11-14 Arnaud Charlet <charlet@adacore.com>
23023
23024 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
23025 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
23026 (convert_address): Update comments and list of platforms using this.
23027
23028 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
23029 no longer used.
23030
230312005-11-14 Pascal Obry <obry@adacore.com>
23032 Vincent Celier <celier@adacore.com>
23033
23034 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
23035 GNAT.Command_Line.
23036
23037 * memroot.adb: Remove redundant with/use clause on
23038 System.Storage_Elements.
23039
230402005-11-14 Arnaud Charlet <charlet@adacore.com>
23041
23042 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
23043 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
23044 related code to a-exexpr.adb
23045 (Save_Occurrence_And_Private): Move GCC EH related code to
23046 a-exexpr-gcc.adb
23047 (Raise_Current_Excep): Add new variable Id with pragma
6f7f72f9 23048 volatile, to ensure that the variable lives on stack.
5de923eb
AC
23049
23050 * a-exexpr-gcc.adb, raise-gcc.c: New file.
23051
23052 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
23053 from a-except.adb.
23054 Move GCC EH related code to a-exexpr-gcc.adb
23055
23056 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
23057 64-bit Solaris
23058 Split the Linux version of g-soccon into separate variants for 32 and 64
23059 bit platforms.
23060 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
23061 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
23062 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
23063 of host variable $(RANLIB_FLAGS).
23064 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
23065 Code clean up: remove unused/obsolete targets.
23066 (EH_MECHANISM): New variable introduced to differenciate between the
23067 two EH mechanisms statically.
23068 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
23069 (LIBGNAT_OBJS): Add raise-gcc.o
23070 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
23071 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
23072 supports VxWorks 6 RTPs.
23073 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
23074 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
23075
23076 * raise.c: Move all GCC EH-related routines to raise-gcc.c
23077
230782005-11-14 Jose Ruiz <ruiz@adacore.com>
23079
23080 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
23081 deferral level, when abort is not allowed, to a later stage (the
23082 Task_Wrapper).
23083 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
23084 it will not get changed by the generated code. It was previously done
23085 in Create_Task.
23086
230872005-11-14 Thomas Quinot <quinot@adacore.com>
23088 Olivier Hainque <hainque@adacore.com>
23089 Eric Botcazou <ebotcazou@adacore.com>
23090
23091 * decl.c:
23092 Factor common code to build a storage type for an unconstrained object
23093 from a fat or thin pointer type and a constrained object type.
23094 (annotate_value): Handle BIT_AND_EXPR.
23095 (annotate_rep): Don't restrict the back annotation of inherited
23096 components to the type_annotate_only case.
23097 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
23098 we are not defining the type.
23099 <E_Record_Type>: Likewise.
23100 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
23101 to get advantage of the new maybe_stabilize_reference interface, to
23102 ensure that what we reference is indeed stabilized instead of relying
23103 on assumptions on what the stabilizer does.
23104 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
23105 type imported through a limited_with clause, use its non-limited view.
23106 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
23107 differentiation.
23108 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
23109 of #if sections + explicit comparisons of convention identifiers.
23110 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
23111 before early-returning for certain types when code generation is
23112 disabled.
23113 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
23114 nullification of gnu_expr we do for objects with address clause and
23115 that we are not defining.
23116 (elaborate_expression_1): Do not create constants when creating
23117 variables needed by the debug info: the dwarf2 writer considers that
23118 CONST_DECLs is used only to represent enumeration constants, and emits
23119 nothing for them.
23120 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
23121 object with an address clause into an indirect reference, drop the
23122 initializing expression.
23123 Include "expr.h".
23124 (STACK_CHECK_BUILTIN): Delete.
23125 (STACK_CHECK_PROBE_INTERVAL): Likewise.
23126 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
23127 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
23128 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
23129 corresponding to the renamed object as ignored for debugging purposes.
23130
23131 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
23132 related): For a prefix that is a dereference of a fat or thin pointer,
23133 if there is an actual subtype provided by the front-end, use that
23134 subtype to build an actual type with bounds template.
23135 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
23136 is provided by the front-end, use that subtype to compute the size of
23137 the deallocated object.
23138 (gnat_to_gnu): When adding a statement into an elaboration procedure,
23139 check for a potential violation of a No_Elaboration_Code restriction.
23140 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
23141 with extra arguments to control whether to recurse through non-values
23142 and to let the caller know if the stabilization has succeeded.
23143 (gnat_stabilize_reference): Now a simple wrapper around
23144 maybe_stabilize, for common uses without restriction on lvalues and
23145 without need to check for the success indication.
23146 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
23147 pass false instead of 0 as the FORCE argument which is a bool.
23148 (Identifier_to_gnu): Remove checks ensuring that an renamed object
23149 attached to a renaming pointer has been properly stabilized, as no such
23150 object is attached otherwise.
23151 (call_to_gnu): Invoke create_var_decl to create the temporary when the
23152 function uses the "target pointer" return mechanism.
23153 Reinstate conversion of the actual to the type of the formal
23154 parameter before any other specific treatment based on the passing
23155 mechanism. This turns out to be necessary in order for PLACEHOLDER
23156 substitution to work properly when the latter type is unconstrained.
23157
23158 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
23159 common pattern.
23160 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
23161 with extra arguments to control whether to recurse through non-values
23162 and to let the caller know if the stabilization has succeeded.
23163
23164 * utils2.c (gnat_build_constructor): Only sort the fields for possible
23165 static output of record constructor if all the components are constant.
23166 (gnat_build_constructor): For a record type, sort the list of field
23167 initializers in increasing bit position order.
23168 Factor common code to build a storage type for an unconstrained object
23169 from a fat or thin pointer type and a constrained object type.
23170 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
23171 types variants, and process special cases of VIEW_CONVERT expressions
23172 as their NOP_EXPR counterpart to ensure we get to the
23173 CORRESPONDING_VARs associated with CONST_DECls.
23174 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
23175 on the right-hand side.
23176
23177 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
23178 a common pattern.
23179 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
23180 are converting back to its original type.
23181 (convert) <JM input>: Fallthrough regular conversion code instead of
23182 extracting the object if converting to a type variant.
23183 (create_var_decl): When a variable has an initializer requiring code
23184 generation and we are at the top level, check for a potential violation
23185 of a No_Elaboration_Code restriction.
23186 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
23187 SIZE and SIZE_UNIT which we need for later back-annotations.
23188 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
23189 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
23190 is an unchecked union.
23191 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
23192 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
23193 main variant, just replace the VIEW_CONVERT_EXPR.
23194 <UNION_TYPE>: Revert 2005-03-02 change.
23195
23196 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
23197
23198 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
23199
232002005-11-14 Matthew Heaney <heaney@adacore.com>
23201
9e81dbc7
AS
23202 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
23203 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
23204 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
23205 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
23206 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
23207 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
5de923eb
AC
23208 Compiles against the spec for ordered maps described in sections
23209 A.18.6 of the most recent (August 2005) AI-302 draft.
23210
232112005-11-14 Olivier Hainque <hainque@adacore.com>
23212
23213 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
23214 to ensure bias adjustments take place when need be and to prevent
23215 occurrences of intermediate overflows.
23216
232172005-11-14 Matthew Gingell <gingell@adacore.com>
23218 Olivier Hainque <hainque@adacore.com>
23219
23220 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
23221 ia64 HP-UX.
23222
23223 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
23224 tracebacks on ia64 HP-UX and provide explanatory comment.
23225 Enable backtraces on ia64 GNU/Linux.
23226 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
23227 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
23228
232292005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23230 Javier Miranda <miranda@adacore.com>
23231
23232 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
23233 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
23234 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
23235 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
23236
23237 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
23238 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
23239 assertions).
23240
23241 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
23242 subprogram that generates the external name associated with a
23243 secondary dispatch table.
23244 (Get_Secondary_DT_External_Name): New subprogram that generates the
23245 external name associated with a secondary dispatch table.
23246
232472005-11-14 Emmanuel Briot <briot@adacore.com>
23248
23249 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
23250 line in the ALI file to include both an instantiation reference, and a
23251 returned value.
23252
232532005-11-14 Vincent Celier <celier@adacore.com>
23254
23255 * clean.adb (Check_Project): Look for Ada code in extending project,
23256 even if Ada is not specified as a language.
23257 Use new function DLL_Prefix for DLL_Name
23258 (Clean_Interface_Copy_Directory): New procedure
23259 (Clean_Library_Directory): New procedure
23260 (Clean_Directory): Remove procedure, no longer used
23261 (Clean_Project): Do not delete any file in an externally built project
23262
23263 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
23264 directory of an extending project, even when there are no Ada source
23265 present.
23266 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
23267 (Set_Ada_Paths.Add.Recursive_Add): Ditto
23268
23269 * mlib-prj.adb (Check_Library): For all library projects, get the
23270 library file timestamp.
23271 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
23272 (Build_Library): Use new function DLL_Prefix for the DLL_Name
23273 (Clean): Remove procedure, no longer used
23274 (Ultimate_Extension_Of): New function
23275 (Build_Library): When cleaning the library directory, only remove an
23276 existing library file and any ALI file of a source of the project.
23277 When cleaning the interface copy directory, remove any source that
23278 could be a source of the project.
23279
23280 * prj.ads, prj.adb (Project_Empty): Add values of new components
23281 Library_TS and All_Imported_Projects.
23282 (Project_Empty): Add values for new components of Project_Data:
23283 Library_ALI_Dir and Display_Library_ALI_Dir
23284
23285 * prj-attr.adb: New project level attribute name Library_ALI_Dir
23286
23287 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
23288 attribute Library_ALI_Dir.
23289 (Check_Library_Attributes): The library directory cannot be the same as
23290 any source directory of the project tree.
23291 (Check_Stand_Alone_Library): The interface copy directory cannot be
23292 the same as any source directory of the project tree.
23293
23294 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
23295 all temporary files.
23296
232972005-11-14 Robert Dewar <dewar@adacore.com>
23298 Ed Schonberg <schonberg@adacore.com>
23299
23300 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23301 (Check_Elab_Call): A call within a protected body is never an
23302 elaboration call, and does not require checking.
23303 (Same_Elaboration_Scope): Take into account protected types for both
23304 entities.
23305 (Activate_Elaborate_All_Desirable): New procedure
23306
23307 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
23308 desirable
23309
23310 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
23311 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
23312
9e81dbc7 23313 * lib-writ.ads, lib-writ.adb:
5de923eb
AC
23314 Implement new AD/ED for Elaborate_All/Elaborate desirable
23315 Use new Elaborate_All_Desirable flag in N_With_Clause node
23316
23317 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
23318 N_Free_Statement nodes.
23319 Define new class N_Subprogram_Instantiation
23320 Add Elaborate_Desirable flag to N_With_Clause node
23321 Add N_Delay_Statement (covering two kinds of delay)
23322
23323 * debug.adb: Introduce d.f flag for compiler
23324 Add -da switch for binder
23325
233262005-11-14 Ed Schonberg <schonberg@adacore.com>
23327 Cyrille Comar <comar@adacore.com>
23328
23329 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
23330 for task component, in the case of a limited aggregate. The enclosed
23331 object declaration will create it earlier. Otherwise, in the case of a
23332 nested aggregate, the object may appear in the wrong scope.
23333 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
23334 (Gen_Assign): If the component being assigned is an array type and the
23335 expression is itself an aggregate, wrap the assignment in a block to
23336 force finalization actions on the temporary created for each row of the
23337 enclosing object.
23338 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
23339 structures are initialized after all discriminants are set so that
23340 they can be accessed even when their offset is dynamic.
23341
233422005-11-14 Robert Dewar <dewar@adacore.com>
23343 Hristian Kirtchev <kirtchev@adacore.com>
23344
23345 * sem_attr.adb: Implement Machine_Rounding attribute
23346 (Analyze_Access_Attribute): The access attribute may appear within an
23347 aggregate that has been expanded into a loop.
23348 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
23349 'Terminated whenever the prefix is of a task interface class-wide type.
23350 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
23351 the prefix is of a task interface class-wide type.
23352
23353 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
23354 to avoid warnings.
23355
23356 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
23357 Remove pragma Inline for [Unaligned_]Valid.
23358 Add comments that Valid routines do not work for Vax_Float
23359
23360 * exp_attr.adb: Implement Machine_Rounding attribute
23361
23362 * snames.h: Add entry for Machine_Rounding attribute
23363
233642005-11-14 Javier Miranda <miranda@adacore.com>
23365 Robert Dewar <dewar@adacore.com>
23366 Hristian Kirtchev <kirtchev@adacore.com>
23367
23368 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
23369 and related): For a prefix that is an explicit dereference of an
23370 access to unconstrained packed array type, annotate the dereference
23371 with an actual subtype so GIGI can make a correct size computation.
23372 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
23373 'Unrestricted_Access, if the designated type is an interface we
23374 add a type conversion to force the displacement of the pointer
23375 to the secondary dispatch table.
23376 Use Universal_Real instead of Long_Long_Float when we need a high
23377 precision float type for the generated code (prevents gratuitous
23378 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23379 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
23380 'Terminated for task interface class-wide objects. Generate a call to
23381 the predefined dispatching routine used to retrieve the _task_id from
23382 a task corresponding record.
23383 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
23384
23385 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23386 (Check_Dispatching_Operation): Protect the frontend againts
23387 previously detected errors.
23388
23389 * Makefile.rtl: Add new instantiations of system.fat_gen
23390
9e81dbc7 23391 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
5de923eb
AC
23392 Change name of instantiated package for better consistency
23393 with newly added system.fat_gen instantiations.
23394
23395 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
23396 s-fvagfl.ads: New files.
23397
233982005-11-14 Cyrille Comar <comar@adacore.com>
23399 Thomas Quinot <quinot@adacore.com>
23400
23401 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
23402 assignment of a value of a tagged type that has been rewritten to a
23403 block statement, it is known by construction that no checks are
23404 necessary for the statements within the block: analyze it with checks
23405 suppressed.
23406 (Expand_N_If_Statement): When killing a dead then-branch in an
23407 if-statement that has elsif_parts, recompute the Current_Value node
23408 for any entity whose value is known from the condition of the first
23409 elsif_part.
23410 (Expand_N_Return_Statement): When returning a mutable record, convert
23411 the return value into its actual subtype in order to help the backend
23412 to return the actual size instead of the maximum. This is another
23413 aftermath of not returning mutable records on the sec-stack anymore.
23414
23415 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
23416 handling of error msg for suspicious reverse range iteration.
23417 (Check_Possible_Current_Value_Condition): Move declaration from body to
23418 spec, to allow this subprogram to be called from exp_ch5.
23419
234202005-11-14 Thomas Quinot <quinot@adacore.com>
23421
23422 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
23423 generate a set of nested array aggregates instead of a single flat
23424 aggregate for multi-dimensional arrays.
23425
234262005-11-14 Pascal Obry <obry@adacore.com>
23427
23428 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
23429 by spawnve is a process handle, no need to convert. Add a parameter
23430 close to control wether the process handle must be closed.
23431 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
23432 a process handle, not need to convert.
23433 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
23434
23435 * g-expect.adb: (Kill): Document the new close parameter.
23436 (Close): Do not release the process handle in the kill there as
23437 waitpid() is using it.
23438 (Send_Signal): Release the process handle.
23439
234402005-11-14 Robert Dewar <dewar@adacore.com>
23441
23442 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
23443 need a high precision float type for the generated code (prevents
23444 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
23445 used).
23446
23447 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
23448 need a high precision float type for the generated code (prevents
23449 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
23450 used).
23451 (Expand_Width_Attribute): In configurable run-time, the attribute is not
23452 allowed on non-static enumeration subtypes. Force a load error to emit
23453 the correct diagnostic.
23454
234552005-11-14 Thomas Quinot <quinot@adacore.com>
23456 Robert Dewar <dewar@adacore.com>
23457 Ed Schonberg <schonberg@adacore.com>
23458
23459 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
23460 subtype to compute the size of the designated object at run-time,
23461 create such a subtype and store it in the Actual_Designated_Subtype
23462 attribute of the N_Free_Statement.
23463 Generate itype for classwide designated object in both cases of
23464 user-specified storage pool: specific and class-wide, not only in the
23465 specific case.
23466 Raise CE when trying to set a not null access type object to null.
23467 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
23468 an explicit loop, because freeze nodes make its position variable.
23469
23470 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
23471 null object.
23472
234732005-11-14 Javier Miranda <miranda@adacore.com>
23474
23475 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
23476 Build_Stream_Procedure): Add the null-excluding attribute to the first
23477 formal.
23478 This has no semantic meaning under Ada95 mode but it is a
23479 requirement under Ada05 mode.
23480
23481 * par-ch3.adb (P_Access_Definition): Addition of warning message if
23482 the null exclusion is used under Ada95 mode
23483 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
23484 (P_Access_Definition): Remove assertion that forbids the use of
23485 the null-exclusion feature in Ada95.
23486
234872005-11-14 Robert Dewar <dewar@adacore.com>
23488
23489 * impunit.adb: Exclude container helper units not intended for use by
23490 users.
23491
234922005-11-14 Ed Schonberg <schonberg@adacore.com>
23493
23494 * freeze.adb (Freeze_Entity): For an access formal that is an access
23495 to subprogram, freeze the anonymous subprogram type at the same time,
23496 to prevent later freezing in the wrong scope, such as the enclosing
23497 subprogram body.
23498 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
23499 subprogram whenever available.
23500
235012005-11-14 Arnaud Charlet <charlet@adacore.com>
23502
23503 PR ada/23732
23504 * gnatvsn.ads (Library_Version): Bump to 4.1
23505
235062005-11-14 Robert Dewar <dewar@adacore.com>
23507
23508 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
23509 Storage_Offset to avoid wrap around causing invalid results.
23510
235112005-11-14 Pascal Obry <obry@adacore.com>
23512
23513 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
23514 cross-compiler.
23515 (Scan_Bind_Arg): Fail with an error message if -M option is used
23516 on a native compiler.
23517
235182005-11-14 Robert Dewar <dewar@adacore.com>
23519 Vincent Celier <celier@adacore.com>
23520
23521 * gprep.adb: Implement -C switch to scan comments
23522
23523 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
23524
23525 * scans.ads: Comment updates (including new use of Tok_Comment in
23526 preprocessing)
23527
23528 * opt.ads: Add documentation for flags that are used by gprmake,
23529 currently and in the next version of gprmake.
23530 (Verbosity_Level): New variable
23531 Add Replace_In_Comments switch
23532
23533 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
23534 and -vm.
23535 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
23536
235372005-11-14 Arnaud Charlet <charlet@adacore.com>
23538
23539 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
23540 message, friendlier.
23541
235422005-11-14 Robert Dewar <dewar@adacore.com>
23543
23544 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
23545
235462005-11-14 Doug Rupp <rupp@adacore.com>
23547
23548 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
23549
235502005-11-14 Robert Dewar <dewar@adacore.com>
23551
23552 * interfac.ads: Change declarations of IEEE float types so that we no
23553 longer need a separate version of this package for VMS.
23554
235552005-11-14 Ed Schonberg <schonberg@adacore.com>
23556
23557 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
23558 internal entity created for the declaration of a child subprogram body
23559 with no spec as coming from source, to generate proper cross-reference
23560 information.
23561
235622005-11-14 Vincent Celier <celier@adacore.com>
23563
23564 * make.adb (Compile_Sources): Change verbose message to minimum
23565 verbosity level High for "is in an Ada library", "is a read-only
23566 library" and "is an internal library",
23567 (Create_Binder_Mapping_File): Path name of ALI file for library project
23568 must include the library directory, not the object directory.
23569 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
23570 for new switches -vl, -vm and -vh.
23571 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
23572 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
23573 (Compile_Sources): Do not attempt to compile if an ALI file is missing
23574 in a project that is externally built.
23575 (Compute_All_Imported_Projects): New procedure
23576 (Gnatmake): Check if importing libraries should be regenerated because
23577 at least an imported library is more recent.
23578 (Initialize): For each project compute the list of the projects it
23579 imports directly or indirectly.
23580 (Add_Library_Search_Dir): New procedure, used in place of
23581 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
23582 put in the search paths.
23583 (Add_Source_Search_Dir): New procedure, used in place of
23584 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
23585 put in the search paths.
23586 (Mark_Directory): Resolve the absolute path the directory before marking
23587 it.
23588
23589 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
23590 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
23591 Switch. Do not handle any exception.
23592 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
23593 so that the switch is recognized as valid.
23594 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
23595
235962005-11-14 GNAT Script <nobody@adacore.com>
23597
23598 * Make-lang.in: Makefile automatically updated
23599
236002005-11-14 Pascal Obry <obry@adacore.com>
23601
23602 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
23603 used.
23604 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
23605 In both cases the last argument was dropped.
23606
236072005-11-14 Eric Botcazou <ebotcazou@adacore.com>
23608
23609 * namet.h: (Column_Numbe): New type.
23610 (Get_Column_Number): Define to sinput__get_column_number.
23611 (Instantiation): Define to sinput__instantiation.
23612 (Get_Column_Number): Declare.
23613 (Instantiation): Likewise.
23614
236152005-11-14 Robert Dewar <dewar@adacore.com>
23616
23617 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
23618 syntax, which could cause compiler hangs.
23619
236202005-11-14 Vincent Celier <celier@adacore.com>
23621
23622 * prj-ext.adb: Take into account new environment variable
23623 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
23624 are defined.
23625 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
23626 normalize its path name, making it absolute and resolving symbolic
23627 links, and replace the original if resolved path is different.
23628
236292005-11-14 Vincent Celier <celier@adacore.com>
23630
23631 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
23632 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
23633
236342005-11-14 Emmanuel Briot <briot@adacore.com>
23635
23636 * prj-pp.adb (Print): Do not output the with statement if the
23637 associated name is empty, which happens for virtual extending projects.
23638 (Print): Preserve the "extends all" attribute when printing the project.
23639
23640 * prj-tree.ads (String_Value_Of): Add comment about returned value for
23641 a virtual extending project.
23642
236432005-11-14 Ed Schonberg <schonberg@adacore.com>
23644
23645 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
23646 rhs of an assignment even if the type is unconstrained, when the
23647 context is non-expanding.
23648 In an inlined body, if the context type is private,
23649 resolve with its full view, which must be a composite type.
23650
236512005-11-14 Robert Dewar <dewar@adacore.com>
23652 Ed Schonberg <schonberg@adacore.com>
23653
23654 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
23655 Do not give obsolescent warning on with of subprogram (since we
23656 diagnose calls)
23657 (Analyze_With_Clause): Add test for obsolescent package
23658 (Install_Context_Clauses): If the unit is the body of a child unit, do
23659 not install twice the private declarations of the parents, to prevent
23660 circular lists of Use_Clauses in a parent.
23661 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
23662 compiling body of child unit.
23663 Use new class N_Subprogram_Instantiation
23664 (Expand_With_Clause): If this is a private with_clause for a child unit,
23665 appearing in the context of a package declaration, then the implicit
23666 with_clauses generated for parent units are private as well.
23667 (License_Check): Do not generate message if with'ed unit is internal
23668
236692005-11-14 Gary Dismukes <dismukes@adacore.com>
23670 Ed Schonberg <schonberg@adacore.com>
23671 Thomas Quinot <quinot@adacore.com>
23672
23673 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
23674 names are internal, because they will not have a corresponding partner
23675 in the actual package.
23676 (Analyze_Formal_Package): Move the setting of the formal package spec's
23677 Generic_Parent field so that it occurs prior to analyzing the package,
23678 to allow proper operation of Install_Parent_Private_Declarations.
23679 (Analyze_Package_Instantiation): Set the instantiated package entity's
23680 Package_Instantiation field.
23681 (Get_Package_Instantiation_Node): Move declaration to package spec.
23682 Retrieve the N_Package_Instantiation node when the Package_Instantiation
23683 field is present.
23684 (Check_Generic_Child_Unit): Within an inlined call, the only possible
23685 instantiation is Unchecked_Conversion, for which no parents are needed.
23686 (Inline_Instance_Body): Deinstall and record the use_clauses for all
23687 parent scopes of a scope being removed prior to inlining an instance
23688 body.
23689 (Analyze_Package_Instantiation): Do not perform front-end inlining when
23690 the current context is itself an instance within a non-instance child
23691 unit, to prevent scope stack errors.
23692 (Save_References): If the node is an aggregate that is an actual in a
23693 call, rewrite as a qualified expression to preserve some type
23694 information, to resolve possible ambiguities in the instance.
23695 (Instance_Parent_Unit): New global variable to record the ultimate
23696 parent unit associated with a generic child unit instance (associated
23697 with the existing Parent_Unit_Visible flag).
23698 (type Instance_Env): New component Instance_Parent_Unit for stacking
23699 parents recorded in the global Instance_Parent_Unit.
23700 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
23701 stack.
23702 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
23703 it's not a top-level unit, and only do this if Instance_Parent_Unit is
23704 not already set. Replace test of Is_Child_Unit with test of parent's
23705 scope against package Standard. Add comments and a ??? comment.
23706 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
23707 on a child instance parent to test that the parent equals
23708 Instance_Parent rather than simply checking that the unit is not a
23709 child unit.
23710 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
23711 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
23712 a formal interface are ancestors of the corresponding actual.
23713 (Validate_Formal_Interface_Type): Additional legality checks.
23714 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
23715 interface types with ancestors.
23716 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
23717 to diagnose attempts to use generic within its own declaration.
23718
237192005-11-14 Ed Schonberg <schonberg@adacore.com>
23720 Javier Miranda <miranda@adacore.com>
23721
23722 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
23723 discriminant.
23724 (Build_Private_Derived_Type): The entity of the created full view of the
23725 derived type does not come from source. If after installing the private
23726 declarations of the parent scope the parent is still private, use its
23727 full view to construct the full declaration of the derived type.
23728 (Build_Derived_Record_Type): Relax the condition that controls the
23729 execution of the check that verifies that the partial view and
23730 the full view agree in the set of implemented interfaces. In
23731 addition, this test now only takes into account the progenitors.
23732 (Derive_Interface_Subprograms): No need to derive subprograms
23733 of ancestors that are interfaces.
23734 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
23735 associated code.
23736 Change name Is_Package to Is_Package_Or_Generic_Package
23737 (Complete_Subprograms_Derivation): Handle the case in which the full
23738 view is a transitive derivation of the ancestor of the partial view.
23739 (Process_Full_View): Rename local subprogram Find_Interface_In_
23740 Descendant to Find_Ancestor_Interface to leave the code more clear.
23741 Remove wrong code that avoids the generation of an error message
23742 when the immediate ancestor of the partial view is an interface.
23743 In addition some minor reorganization of the code has been done to
23744 leave it more clear.
23745 (Analyze_Type_Declaration): If type has previous incomplete tagged
23746 partial view, inherit properly its primitive operations.
23747 (Collect_Interfaces): Make public, for analysis of formal
23748 interfaces.
23749 (Analyze_Interface_Declaration): New procedure for use for regular and
23750 formal interface declarations.
23751 (Build_Derived_Record_Type): Add support for private types to the code
23752 that checks if a tagged type implements abstract interfaces.
23753 (Check_Aliased_Component_Type): The test applies in the spec of an
23754 instance as well.
23755 (Access_Type_Declaration): Clean up declaration of malformed type
23756 declared as an access to its own classwide type, to prevent cascaded
23757 crash.
23758 (Collect_Interfaces): For private extensions and for derived task types
23759 and derived protected types, the parent may be an interface that must
23760 be included in the interface list.
23761 (Access_Definition): If the designated type is an interface that may
23762 contain tasks, create Master_Id for it before analyzing the expression
23763 of the declaration, which may be an allocator.
23764 (Record_Type_Declaration): Set properly the interface kind, for use
23765 in allocators, the creation of master id's for task interfaces, etc.
23766
237672005-11-14 Javier Miranda <miranda@adacore.com>
23768 Ed Schonberg <schonberg@adacore.com>
23769
23770 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
23771 omitted in case of stream attribute subprograms.
23772 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
23773 appear immediately after a subprogram body, when there is no previous
23774 subprogram declaration.
23775 Change name Is_Package to Is_Package_Or_Generic_Package
23776 (Process_Formals): A non null qualifier on a non null named access
23777 type is not an error, and is a warning only if Redundant_Constructs
23778 are flagged.
23779
237802005-11-14 Gary Dismukes <dismukes@adacore.com>
23781 Ed Schonberg <schonberg@adacore.com>
23782
23783 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
23784 nested within Analyze_Package_Specification to install the private
23785 declarations and use clauses within each of the parent units of a
23786 package instance of a generic child package.
23787 (Analyze_Package_Specification): When entering a private part of a
23788 package associated with a generic instance or formal package, the
23789 private declarations of the parent must be installed (by calling new
23790 procedure Install_Parent_Private_Declarations).
23791 Change name Is_Package to Is_Package_Or_Generic_Package
23792 (Preserve_Full_Attributes): For a synchronized type, the corresponding
23793 record is absent in a generic context, which does not indicate a
23794 compiler error.
23795
237962005-11-14 Ed Schonberg <schonberg@adacore.com>
23797
23798 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
23799 not try to rewrite a renamed stream attribute, because the operations
23800 on the type may not have been generated.
23801 Handle properly a renaming_as_body generated for a stream operation
23802 whose default is abstract because the object type itself is abstract.
23803 (Find_Type): If the type is incomplete and appears as the prefix of a
23804 'Class reference, it is tagged, and its list of primitive operations
23805 must be initialized properly.
23806 (Chain_Use_Clauses): When chaining the use clauses that appear in the
23807 private declaration of a parent unit, prior to compiling the private
23808 part of a child unit, find on the scope stack the proper parent entity
23809 on which to link the use clause.
23810 (Note_Redundant_Use): Emit a warning when a redundant use clause is
23811 detected.
23812 (Analyze_Object_Renaming): An attribute reference is not a legal object
23813 if it is not a function call.
23814
238152005-11-14 Robert Dewar <dewar@adacore.com>
23816 Ed Schonberg <schonberg@adacore.com>
23817
23818 * sem_eval.adb: Implement d.f flag
23819 (Subtype_Statically_Match): A generic actual type has unknown
23820 discriminants when the corresponding actual has a similar partial view.
23821 If the routine is called to validate the signature of an inherited
23822 operation in a child instance, the generic actual matches the full view,
23823
238242005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
23825 Ed Schonberg <schonberg@adacore.com>
23826 Robert Dewar <dewar@adacore.com>
23827 Thomas Quinot <quinot@adacore.com>
23828
23829 * sem_res.adb (Resolve_Call): Provide a better error message whenever
23830 a procedure call is used as a select statement trigger and is not an
23831 entry renaming or a primitive of a limited interface.
23832 (Valid_Conversion): If the operand has a single interpretation do not
23833 remove address operations.
23834 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
23835 statement to inhibit warning.
23836 (Resolve_Unary_Op): Do not produce a warning when
23837 processing an expression of the form -(A mod B)
23838 Use Universal_Real instead of Long_Long_Float when we need a high
23839 precision float type for the generated code (prevents gratuitous
23840 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
23841 (Resolve_Concatenation_Arg): Improve error message when argument is an
23842 ambiguous call to a function that returns an array.
23843 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
23844 there is an implicit operator in the given scope if we are within an
23845 instance: legality check has been performed on the generic.
23846 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
23847 after resolving operand, to avoid false warnings on overloaded calls.
23848
238492005-11-14 Ed Schonberg <schonberg@adacore.com>
23850 Javier Miranda <miranda@adacore.com>
23851
23852 PR ada/15604
5de923eb
AC
23853 * sem_type.adb (Covers): In an inlined body, a composite type matches
23854 a private type whose full view is a composite type.
23855 (Interface_Present_In_Ancestor): Protect the frontend against
23856 previously detected errors to ensure that its compilation
23857 with assertions enabled gives the same output that its
23858 compilation without assertions.
23859 (Interface_Present_In_Ancestor): Add support for private types.
23860 Change name In_Actual to In_Generic_Actual (clean up)
23861 (Disambiguate): New predicate In_Actual, to recognize expressions that
23862 appear in the renaming declaration generated for generic actuals, and
23863 which must be resolved in the outer context.
23864
238652005-11-14 Robert Dewar <dewar@adacore.com>
23866 Thomas Quinot <quinot@adacore.com>
23867 Hristian Kirtchev <kirtchev@adacore.com>
23868 Ed Schonberg <schonberg@adacore.com>
23869
23870 * sem_util.ads, sem_util.adb: Change name Is_Package to
23871 Is_Package_Or_Generic_Package.
23872 (Check_Obsolescent): New procedure.
23873 (Set_Is_Public): Remove obsolete junk test.
23874 (Set_Public_Status): Do not set Is_Public on an object whose declaration
23875 occurs within a handled_sequence_of_statemets.
23876 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
23877 for a parameterless procedure.
23878 (Enter_Name): Recognize renaming declarations created for private
23879 component of a protected type within protected operations, so that
23880 the source name of the component can be used in the debugger.
23881
238822005-11-14 Ed Schonberg <schonberg@adacore.com>
23883 Robert Dewar <dewar@adacore.com>
23884
23885 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
23886 of a generic subprogram are not visible outside the body.
23887 (Set_Warning_Switch): New procedure (code to set warning mode moved
23888 here from Switch.C so that it can be shared by pragma processing.
23889 (Check_References): Special case warning for non-modified non-imported
23890 volatile objects.
23891 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
23892 form with a string literal argument
23893
238942005-11-14 Javier Miranda <miranda@adacore.com>
23895
23896 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
23897 anonymous access.
23898 (Write): Addition of "not null" to the anonymous access.
23899 (Read): Addition of "not null" to the anonymous access.
23900 (Write): Addition of "not null" to the anonymous access.
23901
23902 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
23903 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
23904 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
23905 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
23906 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
23907 "not null" to the anonymous access.
23908
239092005-11-14 Robert Dewar <dewar@adacore.com>
23910
23911 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
23912 offset values
23913
239142005-11-14 Vincent Celier <celier@adacore.com>
23915
23916 * switch.adb (Bad_Switch): New procedure
23917 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
23918 message when in error.
23919
23920 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
23921 Too_Many_Output_Files): Remove declarations, no longer used.
23922 (Scan_Nat): New parameter Switch
23923 (Scan_Pos): Ditto
23924 (Bad_Switch): New procedure
23925
23926 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
23927 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
23928 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
23929 to Osint.Fail. Do not handle any exception.
23930
239312005-11-14 Vincent Celier <celier@adacore.com>
23932
23933 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
23934 designates a non existent directory.
23935
239362005-11-14 Robert Dewar <dewar@adacore.com>
23937
23938 * xgnatugn.adb: Replace invalid membership test by 'Valid
23939
239402005-11-14 Vincent Celier <celier@adacore.com>
23941
23942 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
23943 there is no object directory.
23944
239452005-11-14 Robert Dewar <dewar@adacore.com>
23946
23947 * usage.adb: Minor adjustment to output format, use nn instead of nnn
23948 (so that -gnateInnn does not run into next column)
23949
239502005-11-14 Ed Falis <falis@adacore.com>
23951
23952 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
23953 "constrained"
23954
239552005-11-14 Cyrille Comar <comar@adacore.com>
23956
23957 * s-chepoo.ads: Add comments on Dereference.
23958 Remove unnecessary inherited abstract primitives.
23959 Cosmetic cleanup.
23960
239612005-11-14 Robert Dewar <dewar@adacore.com>
23962
23963 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
23964 node parameter, not needed, since it is available as Declaration_Node.
23965
239662005-11-14 Geert Bosch <bosch@adacore.com>
23967
23968 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
23969 grammatically correct.
23970
239712005-11-14 Vincent Celier <celier@adacore.com>
23972
23973 * s-fileio.ads: Correct spelling error in comment
23974
239752005-11-14 Cyrille Comar <comar@adacore.com>
23976 Robert Dewar <dewar@adacore.com>
23977 Vincent Celier <celier@adacore.com>
23978 Ben Brosgol <brosgol@adacore.com>
23979 Jose Ruiz <ruiz@adacore.com>
23980 Pascal Obry <obry@adacore.com>
23981
9e81dbc7 23982 * gnat_ugn.texi:
5de923eb
AC
23983 Document that -fstack-check is needed for strict compliance with the
23984 Ada 95 Reference Manual.
23985 Correct reference to VAX systems to meet HP guidelines
23986 Add documentation for new gnatmake switches -vl, -vm and -vh
23987 Replace DEC Ada by HP Ada
23988 Replace DIGITAL by HP
23989 Remove empty section on tools in compatibility section
23990 Clarify the Windows convention semantics.
23991 Document the Win32 calling convention.
23992 The Stdcall, Win32 and DLL convention are synonyms.
23993 Add a note in -gnatR description about zero size record components
23994 Note on new >= and <= warnings for -gnatwc
23995 Document that equal sign after -gnatm is optional.
23996 Note that strip is working fine on DLL built with a Library
23997 Project. The restriction apply only to DLL built with gnatdll.
23998 Update section about the way to debug a DLL.
23999 Update information about the DLL convention.
24000 Document -C switch for gnatprep
24001 Document new attribute Library_ALI_Dir
24002 Update elaboration doc to include implicit Elaborate pragmas now
24003 generated for subprogram instantiations.
24004 Document limitation on executable names that include spaces for --GCC,
24005 --GNATBIND, and --GNATLINK switches.
24006 Document that -w causes -gnatws to be added at start of gcc switches
24007
24008 * gnat_rm.texi: Document that -mieee is needed for generating infinite
24009 and NaN values in case of overflow on machines that are not fully
24010 compliant with the IEEE floating-point standard.
24011 Create a section describing the set of compiler options needed for
24012 strict compliance with the Ada 95 Reference Manual.
24013 Add documentation for pragma Obsolescent applied to a package
24014 Clarify potential issues of mixed language programs related to the
24015 I/O buffering enabling in the elaboration of the GNAT runtime.
24016 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
24017 This documentation only patch adds extra documentsion for pragma
24018 Restrictions (No_Elaboration_Code), explaining why it is not possible
24019 to document this restriction in terms of allowed source constructs.
24020 Document string literal form of pragma Warnings
24021 Document new attribute Library_ALI_Dir
24022 Add documentation on stable attributes in project files that was missing
24023
24024 * gnat-style.texi: Indicate that paragraphs within a single comment
24025 should be separated by empty comment lines
24026
24027 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
24028 /05 respectively)
24029
24030 * bindusg.adb: Minor cleanup, put -m before -M for consistency
24031
240322005-11-14 Robert Dewar <dewar@adacore.com>
24033
24034 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
24035 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
24036 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
24037 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
24038 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
24039 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
24040 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
24041 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
24042 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
24043 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
24044 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
24045 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
24046 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
24047 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
24048 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
24049 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
24050 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
24051 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
24052 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
24053 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
24054 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24055 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
24056 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
24057 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
24058 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
24059 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
24060 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
24061 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
24062 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
24063 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
24064 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
24065 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
24066 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
24067 system-interix.ads, system-solaris-sparc.ads,
24068 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
24069 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
24070 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
24071 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
24072 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
24073 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
24074 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
24075 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
24076 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
24077 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
24078 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
24079 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
24080 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
24081 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
24082 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
24083 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
24084 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
24085 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
24086 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
24087 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
24088 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
24089 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
24090 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
24091 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
24092 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
24093 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24094 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
24095 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
24096 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
24097 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
24098 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
24099 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
24100 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24101 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
24102 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
24103 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
24104 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
24105 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
24106 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
24107 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
24108 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
24109 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
24110 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
24111 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
24112 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
24113 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
24114 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
24115 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
24116 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
24117 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
24118 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
24119 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
24120 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
24121 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
24122 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
24123 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
24124 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
24125 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
24126 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
24127 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
24128 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
24129 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
24130 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
24131 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
24132 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
24133 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
24134 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
24135 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
24136 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
24137 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
24138 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
24139 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
24140 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
24141 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
24142 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
24143 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
24144 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
24145 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
24146 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
24147 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
24148 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
24149 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
24150 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
24151 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
24152 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
24153 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
24154 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
24155 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
24156 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
24157 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
24158 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
24159 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
24160 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
24161 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
24162 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
24163 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
24164 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
24165 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
24166 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
24167 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
24168 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
24169 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
24170 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
24171 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
24172 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
24173 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
24174 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
24175 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
24176 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
24177 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
24178 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
24179 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
24180 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
24181 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
24182 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
24183 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
24184 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
24185 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
24186 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
24187 a-numaux-darwin.ads, a-numaux-darwin.adb,
24188 a-swuwha.ads, a-stunha.ads: Minor reformatting
24189
e0ac6309
RD
241902005-11-14 Robert Dewar <dewar@adacore.com>
24191
24192 PR ada/18434
24193 * osint-m.adb: Add pragma Elaborate_All for Osint
24194
f45ddfe0
EB
241952005-11-10 Eric Botcazou <ebotcazou@adacore.com>
24196
24197 PR ada/23995
24198 * trans.c (call_to_gnu): Restore statement lost in translation.
24199
13bb031a
EB
242002005-11-08 Eric Botcazou <ebotcazou@adacore.com>
24201
24202 * init.c: Use the Linux-specific section for the IA-64/Linux target.
24203 (__gnat_adjust_context_for_raise): Add conditional code so that the
24204 IA-64 is also supported.
24205
72098128
JW
242062005-11-03 James E Wilson <wilson@specifix.com>
24207
24208 PR ada/23427
13bb031a
EB
24209 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
24210 TREE_OVERFLOW check.
72098128 24211
8fafe21d
OH
242122005-09-21 Olivier Hainque <hainque@adacore.com>
24213
24214 PR ada/22418
24215 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
24216 as we create them to store a size in bits.
24217
552725e3
EB
242182005-10-21 Eric Botcazou <ebotcazou@adacore.com>
24219
24220 PR ada/21937
24221 PR ada/22328
24222 PR ada/22381
24223 PR ada/22383
24224 PR ada/22419
24225 PR ada/22420
24226 * utils2.c (build_return_expr): New helper function.
24227 * gigi.h (build_return_expr): Declare it.
24228 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
24229 of manually building the RETURN_EXPR tree.
24230 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
24231 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
8fafe21d 24232 build_binary_op for the "target pointer" case. Use build_return_expr
552725e3
EB
24233 instead of manually building the RETURN_EXPR tree.
24234
9e94c78f 242352005-09-16 Laurent Guerby <laurent@guerby.net>
ccdeca37
LG
24236
24237 PR ada/23788
24238 * s-tpinop.ads: Make this unit Preelaborate.
24239
da8f5fd9
AJ
242402005-09-16 Andreas Jaeger <aj@suse.de>
24241
24242 * socket.c: Add string.h for memcpy.
24243
98b40956
AC
242442005-09-05 Arnaud Charlet <charlet@adacore.com>
24245
24246 * dec-io.ads, dec-io.adb: Removed, no longer used.
24247
242482005-09-01 Arnaud Charlet <charlet@adacore.com>
24249
24250 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
24251
24252 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24253 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
24254 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
24255 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
24256 dependent units are Preelaborate.
24257 (Initialize): Call Interrupt_Managemeent.Initialize and
24258 OS_Primitives.Initialize to ensure proper initialization of this unit.
24259 Remove use of System.Soft_Links
24260 Make this unit Preelaborate.
24261
24262 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24263 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
24264 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
24265 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
24266 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24267 s-tratas.ads, s-tasinf.ads: Minor reformatting.
24268 Add pragma Preelaborate, since these packages are suitable for this
24269 categorization.
24270 Update comments.
24271
24272 * s-traent-vms.ads, s-intman-dummy.adb,
24273 s-taprop-dummy.adb: Make this unit Preelaborate.
24274
24275 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
da8f5fd9 24276 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
98b40956
AC
24277 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
24278 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
24279 s-intman-solaris.adb, s-intman-irix-athread.adb,
24280 s-intman-irix.adb: Mark this unit Preelaborate.
24281 (Initialize): New procedure.
24282 Update comments.
24283
24284 * s-taspri-linux.ads: Removed.
24285
24286 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
24287 as done by other implementations (e.g. posix).
24288
24289 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
24290 responsible for deferring abort.
24291 Mark this unit Preelaborate.
24292
24293 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
24294 proper initialization of the tasking run-time.
24295
24296 * s-tasdeb.ads: Mark this unit Preelaborate.
24297 (Known_Tasks): Add explicit default value to avoid elaboration code.
24298
24299 * s-inmaop-vms.adb (Elaboration code): Add call to
24300 Interrupt_Management.Initialize since the elaboration code depends on
24301 proper initialization of this package.
24302
24303 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
24304 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
24305 s-osprim-posix.adb: Make this unit Preelaborate.
24306
24307 * a-calend.adb: Add call to OS_Primitives.Initialize
24308
24309 * a-elchha.adb: Update use of Except.Id.Full_Name.
24310 Minor reformatting.
24311 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
24312
24313 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
24314 Move with clauses outside Warnings Off now that dependent units are
24315 Preelaborate.
24316 Use raise xxx with "..."; Ada 2005 form.
24317
da8f5fd9 24318 * a-taside.ads, a-taside.adb:
98b40956
AC
24319 Remove some dependencies, to make it easier to make this unit truly
24320 Preelaborate.
24321 Rewrite some code to be conformant with Preelaborate rules.
24322
24323 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
24324 marked Preelaborate in the future.
24325
24326 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
24327 these units Preelaborate.
24328
24329 * s-exctab.adb: Update use of Except.Id.Full_Name.
24330
24331 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
24332 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
24333 Set_Exc_Stack_Addr): Removed, no longer used.
24334 Remove reference to *Machine_State_Addr*, no longer needed.
24335
24336 * s-stalib.ads: Mark this unit as Preelaborate[_05].
24337 (Exception_Data): Full_Name is now a System.Address so that this unit
24338 can be made Preelaborate.
24339 Clean up/simplify code thanks to Full_Name being a System.Address.
24340 Remove obsolete pragma Suppress (All_Checks), no longer needed.
24341
da8f5fd9 24342 * s-taskin.ads, s-taskin.adb:
98b40956
AC
24343 Move with clauses outside Warnings Off now that dependent units are
24344 Preelaborate.
24345 Make this unit Preelaborate.
24346 (Initialize): New proceduure, replace elaboration code and makes the
24347 set up of the tasking run-time cleaner.
24348 (Detect_Blocking): Now a function instead of a deferred boolean, to
24349 obey Preelaborate rules.
24350
24351 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
24352 soft links, no longer used.
24353
24354 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
24355 packages are suitable for this categorization.
24356
24357 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
24358 since we compile run-time sources in Ada 2005 mode.
24359 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
24360 avoid having s-taprop*.adb depend on s-soflin and to avoid code
24361 duplication.
24362 Remove reference to *Machine_State_Addr*, no longer needed.
24363
243642005-09-01 Arnaud Charlet <charlet@adacore.com>
24365
24366 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
24367 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
24368 Remove reference to System.Exceptions.
24369
24370 * s-mastop-x86.adb: Removed, no longer used.
24371
24372 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
24373
24374 * a-excach.adb: Minor reformatting.
24375
24376 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
24377 instead fix new warnings that were hidden by this change.
24378 (AAA, ZZZ): Removed, replaced by...
24379 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
24380 are used instead of constants, to help make Ada.Exception truly
24381 preelaborate.
24382 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
24383 Raise_Storage_Error): File is now a System.Address, to simplify code.
24384 (Elab code): Removed, no longer used.
24385 (Null_Occurrence): Remove Warnings Off and make this construct
24386 preelaborate.
24387 Remove code related to front-end zero cost exception handling, since
24388 it is no longer used.
24389 Remove -gnatL/-gnatZ switches.
24390
24391 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
24392 Update use of Except.Msg.
24393
24394 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
24395 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
24396 to front-end zero cost exception handling, since it is no longer used.
24397 Remove -gnatL/-gnatZ switches.
24398
24399 * lib-writ.ads: Minor reformatting
24400 Remove doc of UX
24401
24402 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
24403
24404 * Make-lang.in: Remove references to s-except.ads
24405
24406 * s-except.ads: Removed, no longer used.
24407
da8f5fd9 24408 * s-mastop.ads, s-mastop.adb:
98b40956
AC
24409 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
24410 Remove reference to System.Exceptions.
24411
24412 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
24413 switch-b.adb: Remove code related to front-end zero cost exception
24414 handling, since it is no longer used.
24415 Remove -gnatL/-gnatZ switches.
24416
244172005-09-01 Robert Dewar <dewar@adacore.com>
24418 Gary Dismukes <dismukes@adacore.com>
24419 Javier Miranda <miranda@adacore.com>
24420
24421 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
24422 type by valid test and generate warning.
24423 (Tagged_Membership): Generate call to the run-time
24424 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
24425 Change formal name Subtype_Mark to Result_Definition in several calls to
24426 Make_Function_Specification.
24427 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
24428 check for proper accessibility of the operand of a class-wide allocator.
24429 The check can be left out if checks are suppressed or if the expression
24430 has a specific tagged type whose level is known to be safe.
24431
24432 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
24433 generates the run-time check associated with null-excluding entities.
24434 (Expand_N_Return_Statement): Add tests to determine if the accessibility
24435 check on the level of the return expression of a class-wide function
24436 can be elided. The check usually isn't needed if the expression has a
24437 specific type (unless it's a conversion or a formal parameter). Also
24438 add a test for whether accessibility checks are suppressed. Augment
24439 the comments to describe the conditions for performing the check.
24440
244412005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
24442 Javier Miranda <miranda@adacore.com>
24443 Gary Dismukes <dismukes@adacore.com>
24444 Ed Schonberg <schonberg@adacore.com>
24445
24446 * a-tags.adb (IW_Membership): Give support to
24447 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
24448 subprogram has been extended to look for the tag in the ancestors tag
24449 table.
24450 Update the structure of the GNAT Dispatch Table to reflect the
24451 additional two tables used in dispatching selects.
24452 Introduce appropriate array types and record components in
24453 Type_Specific_Data to reflect the two tables.
24454 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
24455 the TSD of a tag, indexed by position.
24456 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
24457 operation kind in the TSD of a tag, indexed by position.
24458
24459 * a-tags.ads: Introduce an enumeration type to capture different
24460 primitive operation kinds. Define a constant reflecting the number of
24461 predefined primitive operations.
24462 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
24463 of an entry wrapper.
24464 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
24465 callable entity of a primitive operation.
24466
24467 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
24468 primitive operations used in dispatching selects for limited
24469 interfaces, limited tagged, task and protected types what implement a
24470 limited interface.
24471 (Freeze_Type): Generate the bodies of the primitive operations used in
24472 dispatching selects for limited tagged, task and protected types that
24473 implement a limited interface. Generate statements to populate the two
24474 auxiliary tables used for dispatching in select statements.
24475 (Freeze_Record_Type): Add call to initialize the dispatch table entries
24476 associated with predefined interface primitive operations.
24477 (Build_Dcheck_Function): Change Set_Subtype_Mark to
24478 Set_Result_Definition.
24479 (Build_Variant_Record_Equality): Change Subtype_Mark to
24480 Result_Definition.
24481 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
24482 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
24483 (Build_Assignment): Simplify the code that adds the run-time-check.
24484 (Expand_N_Object_Declaration): Code cleanup.
24485
24486 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
24487 entries when there is a protected type that implements a limited
24488 interface.
24489
24490 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
24491 common routines used in expansion of dispatching selects.
24492 (Add_Private_Declarations): Select the appropriate protection type when
24493 there is a protected type that implements a limited interface.
24494 (Build_Parameter_Block): Generate a wrapped parameter block.
24495 (Build_Protected_Subprogram_Body): Select the appropriate type for
24496 locking entries when there is a protected type that implements a
24497 limited interface.
24498 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
24499 classified as entry wrappers.
24500 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
24501 asynchronous selects.
24502 (Expand_N_Conditional_Entry_Call): Add support for expansion of
24503 dispatching conditional selects.
24504 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
24505 protection when there is a protected type that implements limited
24506 interfaces.
24507 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
24508 timed selects.
24509 (Extract_Dispatching_Call): Extract the entity of the name of a
24510 dispatching call, the object parameter, actual parameters and
24511 corresponding formals.
24512 (Make_Initialize_Protection): Correct logic of protection initialization
24513 when there is a protected type that implements a limited interface.
24514 (Parameter_Block_Pack): Populate a wrapped parameter block with the
24515 values of actual parameters.
24516 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
24517 block and assign them to the original actual parameters.
24518
24519 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
24520 (Build_Protected_Sub_Specification): Change the type and name of the
24521 last formal to account for the increased variety of protection modes.
24522
24523 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
24524 entities. Used to save the value of the Is_Hidden attribute when the
24525 limited-view is installed.
24526 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
24527 the attribute of procedures classified as entry wrappers.
24528 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
24529 entity of a primitive wrapper.
24530 (Write_Entity_Flags): Output the name and value of the
24531 Is_Primitive_Wrapper attribute.
24532 (Write_Field27_Name): Output the name and entity of the field Wrapped_
24533 Entity.
24534 (Underlying_Type): If we have an incomplete entity that comes from
24535 the limited view then we return the Underlying_Type of its non-limited
24536 view if it is already available.
24537 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
24538 including operators.
24539 (Write_Field26_Name): Add entry for Overridden_Operation
24540 (Overridden_Operation): New attribute of functions and procedures.
24541
24542 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
24543 predefined position in the dispatch table for the primitive operations
24544 used in dispatching selects.
24545 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
24546 predefined primitive operations and replace it with
24547 Default_Prim_Op_Count.
24548 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
24549 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
24550 the names of the generated primitive operations used in dispatching
24551 selects.
24552 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
24553 case of abstract interface types. They will be inherit by the objects
24554 implementing the interface.
24555 (Make_DT): There is no need to inherit the dispatch table of the
24556 ancestor interface for the elaboration of abstract interface types.
24557 The dispatch table will be inherited by the object implementing the
24558 interface.
24559 (Copy_Secondary_DTs): Add documentation.
24560 (Validate_Position): Improve this static check in case of
24561 aliased subprograms because aliased subprograms must have
24562 the same position.
24563 (Init_Predefined_Interface_Primitives): New subprogram that initializes
24564 the entries associated with predefined primitives of all the secondary
24565 dispatch tables.
24566 (Build_Anonymous_Access_Type): Removed.
24567 (Expand_Interface_Actuals): With the previous cleanup there is no need
24568 to build an anonymous access type. This allows further cleanup in the
24569 code generated by the expander.
24570 (Expand_Interface_Conversion): If the actual is an access type then
24571 build an internal function to handle the displacement. If the actual
24572 is null this function returns null because no displacement is
24573 required; otherwise performs a type conversion that will be
24574 expanded in the code that returns the value of the displaced actual.
24575 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
24576 conversions that have no effect in the generated code because no
24577 displacement is required. Code cleanup; use local variables to
24578 avoid repeated calls to the subprogram directly_designated_type().
24579
24580 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
24581 Classify the primitive operations used in dispatching selects as
24582 predefined.
24583 (Implements_Limited_Interface): Determine whether some type either
24584 directly implements a limited interface or extends a type that
24585 implements a limited interface.
24586 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
24587 (Expand_Subtype_From_Expr): Do not build actual subtype if the
24588 expression is limited.
24589 (Find_Interface_Tag): Add code to handle class-wide types and
24590 entities from the limited-view.
24591
24592 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
24593 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
24594 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
24595 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
24596 Set_Prim_Op_Kind.
24597
24598 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
24599 of procedure name or prefix that appears as a trigger in a triggering
24600 alternative.
24601
24602 * uintp.ads: Introduce constants Uint_11 and Uint_13.
24603
246042005-09-01 Arnaud Charlet <charlet@adacore.com>
24605
24606 * s-tataat.adb, a-tasatt.adb:
24607 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
24608
24609 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
24610 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
24611 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
24612 longer used.
24613
246142005-09-01 Arnaud Charlet <charlet@adacore.com>
24615 Jose Ruiz <ruiz@adacore.com>
24616
da8f5fd9 24617 * s-taprop-vxworks.adb:
98b40956
AC
24618 Move with clauses outside Warnings Off now that dependent units are
24619 Preelaborate.
24620 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
24621 initialization of this unit.
24622 (Specific): Add new procedures Initialize and Delete so that this
24623 package can be used for VxWorks 5.x and 6.x
24624 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
24625 differences between VxWorks 5.x and 6.x
24626 Minor reformatting.
24627 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
24628 caller.
24629 Use only Preelaborate-compatible constructs.
24630
24631 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
24632 Primitives.Operations.
24633 (Delete, Initialize): New procedures.
24634
24635 * s-osinte-vxworks.adb: Body used to handle differences between
24636 VxWorks 5.x and 6.x
24637 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
24638
24639 * s-osinte-vxworks.ads: Minor reformatting.
24640 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
24641 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
24642 and 6.
24643 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
24644 between Vxworks 5 and 6.
24645 (taskLock, taskUnlock): Removeed, no longer used.
24646
24647 * adaint.c: The wait.h header is not located in the sys directory on
24648 VxWorks when using RTPs.
24649 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
24650 using RTPs.
24651 (__gnat_dup): dup is available on Vxworks when using RTPs.
24652 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
24653
24654 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
24655
24656 * expect.c: The wait.h header is not located in the sys directory on
24657 VxWorks when using RTPs.
24658
246592005-09-01 Thomas Quinot <quinot@adacore.com>
24660
24661 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
24662
24663 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
24664
24665 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
24666 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24667 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
24668 g-soccon-freebsd.ads: Add new constants:
24669 IP_MULTICAST_IF
24670 SO_RCVTIMEO/SO_SNDTIMEO
24671 IOV_MAX
24672
da8f5fd9 24673 * gen-soccon.c:
98b40956
AC
24674 Move all target-specific file inclusions and macro definitions to
24675 gsocket.h, in order to ensure that any C code in socket.c will see a
24676 set of constants that is consistent with the contents of g-soccon.ads.
24677
24678 * gsocket.h: Code imported from gen-soccon.c:
24679 Move all target-specific file inclusions and macro definitions to
24680 gsocket.h, in order to ensure that any C code in socket.c will see a set
24681 of constants that is consistent with the contents of g-soccon.ads.
24682 This change also makes gen-soccon self-contained (removing dependencies
24683 upon GCC internal headers).
24684
24685 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
24686 iovecs at a time.
24687 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
24688
24689 * socket.c: Minor reformatting.
24690
246912005-09-01 Ed Schonberg <schonberg@adacore.com>
24692 Thomas Quinot <quinot@adacore.com>
24693
24694 * fname-sf.adb, mlib-tgt.ads,
24695 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
24696 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
24697 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
24698 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
24699 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
24700 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
24701 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
24702 makegpr.adb: Remove redundant use_clauses.
24703
247042005-09-01 Arnaud Charlet <charlet@adacore.com>
24705
da8f5fd9
AJ
24706 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
24707 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
24708 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
24709 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
24710 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
24711 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
24712 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
24713 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
24714 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24715 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
24716 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
24717 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
24718 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
24719 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
24720 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
98b40956 24721 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
da8f5fd9
AJ
24722 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24723 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
24724 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
24725 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
24726 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
24727 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
24728 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
24729 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
24730 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
24731 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
24732 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
24733 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
98b40956
AC
24734 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
24735 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
da8f5fd9
AJ
24736 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
24737 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
24738 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
24739 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
24740 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
24741 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
24742 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
24743 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
24744 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
24745 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
24746 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
24747 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
24748 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
24749 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
24750 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
24751 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
24752 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
24753 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
24754 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
24755 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
24756 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
24757 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
24758 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
24759 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
24760 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
24761 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
24762 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
24763 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
24764 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
24765 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
24766 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
24767 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
24768 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
24769 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
24770 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
24771 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
24772 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
98b40956
AC
24773 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
24774 and always use the no parameter form for consistency.
24775
24776 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
24777
247782005-09-01 Robert Dewar <dewar@adacore.com>
24779
24780 * binde.adb: Minor reformatting
24781 (Find_Elab_Order): Output warning if -p used with static elab order
24782
247832005-09-01 Robert Dewar <dewar@adacore.com>
24784
24785 * checks.adb (Check_Needed): New procedure, deals with removing checks
24786 based on analysis of short-circuited forms. Also generates warnings for
24787 improper use of non-short-circuited forms.
24788 Code clean ups.
24789
247902005-09-01 Robert Dewar <dewar@adacore.com>
24791
24792 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
24793 with 'Valid tests.
24794
247952005-09-01 Robert Dewar <dewar@adacore.com>
24796
24797 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
24798 spec.
24799 Implement new insertion char < (conditional warning)
24800 * errutil.adb, erroutc.adb: Implement new insertion char <
24801 (conditional warning).
24802 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
24803 (Error_Msg_Warn): New variable for < insertion char.
24804 * prj-nmsc.adb: Implement new errout insertion char < (conditional
24805 warning).
24806 (Check_For_Source): Change value of Source_Id only after the current
24807 source has been dealt with.
24808
248092005-09-01 Robert Dewar <dewar@adacore.com>
24810 Doug Rupp <rupp@adacore.com>
24811
24812 * exp_attr.adb: Handle vax fpt for 'Valid attribute
24813 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
24814 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
24815 (Valid_D, Valid_F, Valid_G): New functions
24816
248172005-09-01 Ed Schonberg <schonberg@adacore.com>
24818 Hristian Kirtchev <kirtchev@adacore.com>
24819 Javier Miranda <miranda@adacore.com>
24820
24821 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
24822 from object notation, the original node is unanalyzed and carries no
24823 semantic information, so that accessiblity checks must be performed on
24824 the type of the actual itself.
24825 (Expand_N_Subprogram_Declaration): Change last actual parameter for
24826 compatibility with Build_Protected_Sub_Specification.
24827 (Check_Overriding_Inherited_Interfaces): Add suport to handle
24828 overloaded primitives.
24829 (Register_Interface_DT_Entry): Use the new name of the formal
24830 the the calls to Expand_Interface_Thunk
24831
24832 * exp_dbug.ads: Augment comments on encoding of protected types to
24833 include the generation of dispatching subprograms when the type
24834 implements at least one interface.
24835
24836 * lib.ads: Extend information in Load_Stack to include whether a given
24837 load comes from a Limited_With_Clause.
24838
24839 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
24840 whether a potential circularity is harmless, because it includes units
24841 loaded through a limited_with clause. Extends previous treatment which
24842 did not handle properly arbitrary combinations of limited and
24843 non-limited clauses.
24844
248452005-09-01 Nicolas Setton <setton@adacore.com>
24846
24847 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
24848 to be encoded as typ___XBLU_lowerbound__upperbound instead of
24849 typ___XB_lowerbound__upperbound.
24850
248512005-09-01 Thomas Quinot <quinot@adacore.com>
24852
24853 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
24854 dummy access formal for RACW/RAS TypeCode TSS.
24855 (Build_TypeCode_Call): Do not generate dummy null access actual for
24856 calls to the TypeCode TSS.
24857
248582005-09-01 Ed Schonberg <schonberg@adacore.com>
24859
24860 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
24861 fully qualified name, to distinguish instances with the same local name.
24862
24863 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
24864 fully qualified.
24865
248662005-09-01 Robert Dewar <dewar@adacore.com>
24867
24868 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
24869 packed arrays.
24870
248712005-09-01 Jerome Lambourg <lambourg@adacore.com>
24872
24873 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
24874 (Free): New deallocation procedure for filter elements
24875 (Close): Deallocate any existing filter for the concerned connection
24876
248772005-09-01 Laurent Pautet <pautet@adacore.com>
24878
24879 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
24880 position set is provided, we compute one in order to reduce the maximum
24881 length of the keys. This computation first selects a character
24882 position between 1 and the minimum length of the keys in order to
24883 avoid reducing one of the keys to an empty string.
24884 (Initialize, Compute): When the ratio V to K is too low, the algorithm
24885 does not converge. The initialization procedure now comes with a
24886 maximum number of iterations such that when exceeded, an exception is
24887 raised in Compute. The user can initialize this ratio to another value
24888 and try again
24889 Reformating and updated headers.
24890
248912005-09-01 Javier Miranda <miranda@adacore.com>
24892
24893 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
24894 that given an entity T creates and returns an Itype that duplicates the
24895 contents of T. The returned Itype has the null-exclusion
24896 attribute set to True, and its Etype attribute references T
24897 to keep the association between the two entities.
24898 Update copyright notice
24899
24900 * sem_aggr.adb (Check_Can_Never_Be_Null,
24901 Aggregate_Constraint_Checks, Resolve_Aggregate,
24902 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
24903
24904 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
24905
249062005-09-01 Gary Dismukes <dismukes@adacore.com>
24907 Robert Dewar <dewar@adacore.com>
24908 Hristian Kirtchev <kirtchev@adacore.com>
24909
24910 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
24911 Result_Definition.
24912
24913 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
24914 function specs.
24915 Call Set_Result_Definition instead of Set_Subtype_Mark.
24916 (P_Subprogram_Specification): Add parsing of anonymous access result
24917 plus null exclusions. Call Set_Result_Definition instead of
24918 Set_Subtype_Mark.
24919
24920 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24921 (P_Access_Type_Definition): Add parsing for an anonymous access result
24922 subtype, plus parsing for null exclusions. Call Set_Result_Definition
24923 instead of Set_Subtype_Mark.
24924
24925 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
24926 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
24927 (Result_Definition): New function for N_Function_Specifications.
24928 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
24929 N_Function_Specification.
24930 (Set_Null_Exclusion_Present): Allow this flag for
24931 N_Function_Specification.
24932 (Set_Result_Definition): New procedure for N_Function_Specifications.
24933 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
24934 and N_Function_Specification.
24935
24936 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
24937 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
24938 Add support for LIMITED NEW for Ada 2005 AI-419
24939 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
24940 syntax for anonymous access results.
24941 Replace Subtype_Mark field by Result_Definition in
24942 N_Function_Specification and N_Access_Definition specs.
24943 Add Null_Exclusion_Present to spec of N_Function_Specification.
24944 (Result_Definition): New function for N_Function_Specification and
24945 N_Access_Function_Definition.
24946 (Set_Result_Definition): New procedure for N_Function_Specification and
24947 N_Access_Function_Definition.
24948
24949 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
24950 Result_Definition for cases of N_Access_Function_Definition and
24951 N_Function_Specification.
24952 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
24953
249542005-09-01 Vincent Celier <celier@adacore.com>
24955
24956 * lib-writ.adb: Update Copyright notice
24957 (Write_With_Lines): On platforms where file names are case-insensitive,
24958 record the file names in lower case.
24959 (Write_ALI): For D lines, on platforms where file names are
24960 case-insensitive, record the file names in lower case.
24961
249622005-09-01 Ed Schonberg <schonberg@adacore.com>
24963 Emmanuel Briot <briot@adacore.com>
24964
24965 * lib-xref.adb (Output_Overridden_Op): Display information on
24966 overridden operation.
24967
24968 * lib-xref.ads: Add documentation on overridden operations.
24969
24970 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
24971 information.
24972
24973 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
24974 overriding entity information.
24975
249762005-09-01 Vincent Celier <celier@adacore.com>
24977
24978 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
24979 including those that are inherited.
24980
249812005-09-01 Robert Dewar <dewar@adacore.com>
24982
24983 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
24984
24985 * par-prag.adb: Implement new pragma Debug_Policy
24986
24987 * sem_prag.adb Implement new pragma Debug_Policy
24988 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
24989 Component_Size attribute specification. Give warning for ignored pragma
24990 Pack.
24991
24992 * snames.h, snames.ads, snames.adb: Introduce entries in
24993 Preset_Names for Name_Disp_Asynchronous_Select,
24994 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
24995 Name_Disp_Timed_Select.
24996 New pragma Debug_Policy
24997
24998 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
24999 explicitly.
25000 Switch -gnata also sets Debug_Pragmas_Enabled
25001
25002 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
25003 handle an explicit -gnata when compiling predefined files.
25004
250052005-09-01 Vincent Celier <celier@adacore.com>
25006
25007 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
25008 directories of projects that have no Ada sources.
25009
250102005-09-01 Robert Dewar <dewar@adacore.com>
25011
25012 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
25013 (makes a difference for wide characters)
25014
da8f5fd9 25015 * widechar.adb, widechar.ads:
98b40956
AC
25016 Add Wide_Char_Byte_Count feature to count chars vs bytes
25017
250182005-09-01 Thomas Quinot <quinot@adacore.com>
25019 Ed Schonberg <schonberg@adacore.com>
25020 Robert Dewar <dewar@adacore.com>
25021
25022 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
25023 'Address attribute reference with an overloaded prefix, use the
25024 location of the prefix (not the location of the attribute reference) as
25025 the error location.
25026 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
25027 a function renaming thereof, is a valid prefix for 'Size (where it is
25028 intepreted as a function call).
25029 (Statically_Denotes_Entity): New predicate to determine whether the
25030 prefix of an array attribute can be considered static.
25031
25032 PR ada/9087
25033 (Eval_Attr): Fix failure to evaluate Component_Size for
25034 unconstrained arrays (resulted in wrong value in packed case, since
25035 back end cannot handle this case)
25036
250372005-09-01 Robert Dewar <dewar@adacore.com>
25038
25039 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
25040 error msgs for most common cases.
25041 Use new errout insertion char < (conditional warning)
25042
250432005-09-01 Javier Miranda <miranda@adacore.com>
25044 Ed Schonberg <schonberg@adacore.com>
25045
25046 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
25047 become local to the whole package.
25048 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
25049 the package was already analyzed the new algorithm "replaces" the
25050 real entities by the shadow ones. This is required to ensure that
25051 the order of these entities in the homonym chains does not change;
25052 otherwise we can have undefined references at linking time because
25053 in case of conflicts the external name of the entities will have
25054 a suffix that depends on the order of the entities in the chain.
25055 (Remove_Limited_With_Clause): Complementary code that completes the
25056 new algorithm and replaces the shadow entities by the real ones.
25057 (Install_Limited_Withed_Unit): When unchaining entities before the
25058 installation of the shadow entities, only regular entities of the
25059 public part must be taken into account. This is required to
25060 keep this routine in synch with the work done by Remove_Limited_
25061 With_Clause
25062 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
25063 even if unit is analyzed, because the analysis of the unit is
25064 idempotent in any case, and the limited view of the unit may have to
25065 be installed for proper visibility.
25066 (Expand_Limited_With_Clause): Even if the unit in the implicit
25067 with_clause has been analyzed already, a limited view of the package
25068 must be built for the current context, if it does not exist yet.
25069
250702005-09-01 Ed Schonberg <schonberg@adacore.com>
25071 Javier Miranda <miranda@adacore.com>
25072 Gary Dismukes <dismukes@adacore.com>
25073
25074 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
25075 defining entity for the instance body, make a new defining identifier
25076 rather than copying the entity of the spec, to prevent accidental
25077 sharing of the entity list.
25078 (Check_Private_View): When exchanging views of private types, build the
25079 list of exchanged views as a stack, to ensure that on exit the exchanges
25080 are undone in the proper order.
25081 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
25082 Restore the compilation environment in case of instantiation_error.
25083 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
25084 for an anonymous access result.
25085 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
25086 (Formal_Entity): Handle properly the case of a formal package that
25087 denotes a generic package renaming.
25088
250892005-09-01 Thomas Quinot <quinot@adacore.com>
25090
25091 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
25092 clause if the array aggregate is surrounded by parentheses.
25093
250942005-09-01 Cyrille Comar <comar@adacore.com>
25095 Gary Dismukes <dismukes@adacore.com>
25096 Ed Schonberg <schonberg@adacore.com>
25097 Javier Miranda <miranda@adacore.com>
25098
25099 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
25100 underlying type
25101 to check if a type is Constrained in cases related to code generation
25102 (rather than semantic checking) since otherwise we do not generate
25103 similar code for mutable private types depending if their
25104 discriminants are visible or not.
25105 (Check_Abstract_Overriding): Do not complain about failure to override
25106 the primitive operations used in dispatching selects since they will
25107 always be overriden at the freeze point of the type.
25108 (Access_Definition): Separate out handling for resetting the scope
25109 of an anonymous access function result type. Retrieve the scope
25110 of the associated function rather than using Current_Scope, which
25111 does not have a consistent value (depends on whether we're in the
25112 middle of analyzing formal parameters). Add ??? comment about
25113 finding a cleaner way to handle the special cases of scope setting.
25114 (Process_Incomplete_Dependents): A protected operation is never a
25115 dispatching operation (only its wrapper may be).
25116 (Build_Derived_Record_Type): In case of tagged private types that
25117 implement interfaces add derivation of predefined primitive
25118 operations.
25119 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
25120 by two parameters that are used in case of derivation from abstract
25121 interface types: No_Predefined_Prims is used to avoid the derivation
25122 of predefined primitives from the interface, and Predefined
25123 Prims_Only is used to complete the derivation predefined primitives
25124 in case of private tagged types implementing interfaces.
25125 Fix typo in comments
25126 (Find_Interface_In_Descendant): Protect the frontend against
25127 wrong code with large circularity chains.
25128 (Is_Private_Overriding): Add support for entities overriding interface
25129 subprograms. The test failed because Entities associated with overriden
25130 interface subprograms are always marked as hidden (and used to build
25131 the secondary dispatch table); in this case the overriden entity is
25132 available through the field abstract_interface_alias (cf. override_
25133 dispatching_operation)
25134 (Access_Definition): Set the scope of the type to Current_Scope for the
25135 case of a function with an anonymous access result type.
25136 (Access_Subprogram_Declaration): Handle creation of the type entity for
25137 an access-to-function type with an anonymous access result.
25138 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
25139 in handling for N_Access_Function_Definition.
25140 (Analyze_Subtype_Declaration): Modify the text of error message.
25141 (Derived_Type_Declaration): Modify the text of error message.
25142 (Process_Subtype): Modify the text of error message plus cleanup
25143 of one redundant error message.
25144 (Analyze_Component_Declaration): Code cleanup.
25145 (Analyze_Object_Declaration): Code cleanup.
25146 (Analyze_Subtype_Declaration): Propagate the null-exclusion
25147 attribute in case of access types. Code cleanup.
25148 (Array_Type_Declaration): Code cleanup.
25149 (Process_Discriminants): Create the new null-excluding itype
25150 if required. Code cleanup.
25151 (Process_Subtype): Create the new null-excluding itype if
25152 required. Code cleanup.
25153 (Build_Derived_Record_Type): Code cleanup to avoid calling
25154 twice the subprogram derive_subprograms in case of private
25155 types that implement interfaces. In this particular case the
25156 subprogram Complete_Subprograms_Derivation already does the
25157 job associated with the second call.
25158
6f7f72f9
EB
25159 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
25160 conversion to the full view when generating an operation for a
25161 discriminant whose type may currently be private.
98b40956
AC
25162
251632005-09-01 Ed Schonberg <schonberg@adacore.com>
25164 Javier Miranda <miranda@adacore.com>
25165
25166 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
25167 V (Obj.F), the rewriting does not involve the indexed component, but
25168 only the selected component itself.
25169 Do not apply the transformation if the analyzed node is an actual of a
25170 call to another subprogram.
25171 (Complete_Object_Operation): Retain the entity of the
25172 dispatching operation in the selector of the rewritten node. The
25173 entity will be used in the expansion of dispatching selects.
25174 (Analyze_One_Call): Improve location of the error message associated
25175 with interface.
25176 (Analyze_Selected_Component): No need to resolve prefix when it is a
25177 function call, resolution is done when parent node is resolved, as
25178 usual.
25179 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
25180 when attempting to resolve a call transformed from its object notation.
25181 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
25182 of the argument list for each interpretation of the operation.
25183 (Try_Object_Operation): The designated type of an access parameter may
25184 be an incomplete type obtained through a limited_with clause, in which
25185 case the primitive operations of the type are retrieved from its full
25186 view.
25187 (Analyze_Call): If this is an indirect call, and the return type of the
25188 access_to_subprogram is incomplete, use its full view if available.
25189
251902005-09-01 Javier Miranda <miranda@adacore.com>
25191 Gary Dismukes <dismukes@adacore.com>
25192
25193 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
25194 access types the null-exclusion and access-to-constant attributes must
25195 also match.
25196 (Analyze_Return_Statement): When the result type is an anonymous access
25197 type, apply a conversion of the return expression to the access type
25198 to ensure that appropriate accessibility checks are performed.
25199 (Analyze_Return_Type): For the case of an anonymous access result type,
25200 generate the Itype and set Is_Local_Anonymous_Access on the type.
25201 Add ??? placeholder for check to disallow returning a limited object
25202 in Ada 2005 unless it's an aggregate or a result of a function call.
25203 Change calls from Subtype_Mark to Result_Definition.
25204 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
25205 Result_Definition in call to Make_Function_Specification.
25206 (Build_Body_To_Inline): Change Set_Subtype_Mark to
25207 Set_Result_Definition.
25208 (Make_Inequality_Operator): Change formal Subtype_Mark to
25209 Result_Definition in call to Make_Function_Specification.
25210 (Process_Formals): Create the new null-excluding itype if required.
25211 (New_Overloaded_Entity): For an entity overriding an interface primitive
25212 check if the entity also covers other abstract subprograms in the same
25213 scope. This is required to handle the general case, that is, overriding
25214 other interface primitives and overriding abstract subprograms inherited
25215 from some abstract ancestor type.
25216 (New_Overloaded_Entity): For an overriding entity that comes from
25217 source, note the operation that it overrides.
25218 (Check_Conformance, Type_Conformant): Addition of one new formal
25219 to skip controlling formals in the analysis. This is used to
25220 handle overloading of abstract interfaces.
25221 (Base_Types_Match): Add missing case for types imported from
25222 limited-with clauses
25223 (New_Overloaded_Entity): Add barrier to protect the use of
25224 the "alias" attribute.
25225
252262005-09-01 Ed Schonberg <schonberg@adacore.com>
25227
25228 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
25229 verify that the procedure and the entry are mode conformant.
25230 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
25231 as a different operator, which is often a cut-and-paste error.
25232
252332005-09-01 Javier Miranda <miranda@adacore.com>
25234 Ed Schonberg <schonberg@adacore.com>
25235
25236 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
25237 used in controlling parameters exclude null because it is necessary to
25238 read the tag to dispatch, and null has no tag.
25239 (Override_Dispatching_Operation): If the previous operation is inherited
25240 from an interface, it becomes hidden and does not participate in later
25241 name resolution.
25242
252432005-09-01 Javier Miranda <miranda@adacore.com>
25244 Ed Schonberg <schonberg@adacore.com>
25245 Gary Dismukes <dismukes@adacore.com>
25246
25247 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
25248 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
25249 the expander will generate the corresponding run-time check to evaluate
25250 the expression.
25251 (Resolve_Call): Check for legal type of procedure name or prefix that
25252 appears as a trigger in a triggering alternative.
25253 (Valid_Conversion): If expression is ambiguous and the context involves
25254 an extension of System, remove System.Address interpretations.
25255 (Resolve_Qualified_Expression): Reject the case of a specific-type
25256 qualification applied to a class-wide argument. Enhance comment
25257 to explain checking of Original_Node.
25258 (Resolve_Type_Conversion): The location of the error message was not
25259 general enough to handle the general case and hence it has been removed.
25260 In addition, this patch improves the text of the message.
25261 (Resolve_Type_Conversion): Add missing support for access to interface
25262 types.
25263 (Resolve_Type_Conversion): If the target is a class-wide interface type,
25264 do not expand if the expression is the actual in a call, because proper
25265 expansion will take place when the call itself is expanded.
25266 (Resolve_Allocator): If the context is an unchecked conversion, the
25267 allocator inherits its storage pool, if any, from the target type of
25268 the conversion.
25269
252702005-09-01 Ed Schonberg <schonberg@adacore.com>
25271 Javier Miranda <miranda@adacore.com>
25272
25273 * sem_type.adb (Add_One_Interp): If a candidate operation is an
25274 inherited interface operation that has an implementation, use the
25275 implementation to avoid spurious ambiguities.
25276 (Interface_Present_In_Ancestor): In case of concurrent types we can't
25277 use the Corresponding_Record_Typ attribute to look for the interface
25278 because it is set by the expander (and hence it is not always
25279 available). For this reason we traverse the list of interfaces
25280 (available in the parent of the concurrent type).
25281 (Interface_Present_In_Ancestor): Handle entities from the limited view
25282
252832005-09-01 Ed Schonberg <schonberg@adacore.com>
25284
25285 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
25286 from the list of required components.
25287 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
25288 primitive procedure of a limited interface with a controlling first
25289 parameter.
25290 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
25291 of an entry.
25292 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
25293 capture if it is generated in the second operand of a short-circuit
25294 operation.
25295 Do not capture values for variables with address clauses.
25296 (Is_Object_Reference): Treat a function call as an object reference only
25297 if its type is not Standard_Void_Type.
25298
252992005-09-01 Ed Schonberg <schonberg@adacore.com>
25300
25301 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
25302 to a variable that is statically known to be constant.
25303
253042005-09-01 Geert Bosch <bosch@adacore.com>
25305 Robert Dewar <dewar@adacore.com>
25306
25307 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
25308 (VAXGF_Safe_First): Idem.
25309
253102005-09-01 Robert Dewar <dewar@adacore.com>
25311 Arnaud Charlet <charlet@adacore.com>
25312
25313 * g-dirope.ads: Minor reformatting
25314 Document that bounds of result of Base_Name match the input index
25315 positions.
25316 Add documentation on environment variable syntax for Expand_Path
25317
25318 * gnat_ugn.texi: Update documentation to include mention of -m switches
25319 Document new treatment of wide characters in max line length
25320 style check.
25321 Remove -gnatL/-gnatZ switches, no longer used.
25322 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
25323 of -gnata switch.
25324
25325 * gnat_rm.texi: Add doc for two argument form of pragma
25326 Float_Representation.
25327 Add documentation for pragma No_Strict_Aliasing
25328 Add note that explicit component clause overrides pragma Pack.
25329 Add documentation of pragma Debug_Policy
25330
253312005-09-01 Matthew Heaney <heaney@adacore.com>
25332
da8f5fd9
AJ
25333 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
25334 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
25335 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
98b40956
AC
25336 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
25337 draft (Draft 13, August 2005) of Ada Amendment 1.
25338
253392005-09-01 Arnaud Charlet <charlet@adacore.com>
25340
25341 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
25342 Note that the platform-specific version of g-soccon.ads for VMS is now
25343 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
25344 really is a package spec).
25345 Replace s-taspri-linux.ads by s-taspri-posix.ads
25346 Remove references to s-mastop-x86.adb
25347
25348 * system-vxworks-xscale.ads: Removed, no longer used.
25349 * s-vxwork-xscale.ads: Removed, no longer used.
25350
253512005-09-01 Robert Dewar <dewar@adacore.com>
25352
25353 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
25354 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
25355 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
25356 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
25357 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
25358 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
25359 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
25360 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
25361 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
25362 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
25363 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
25364 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
25365 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
25366 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
25367 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
25368 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
25369 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
25370 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
25371 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
25372 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
25373 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
25374
332a1c2e
AC
253752005-08-29 Arnaud Charlet <charlet@adacore.com>
25376
25377 PR ada/23187
25378 * adaint.c
da8f5fd9 25379 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
332a1c2e
AC
25380
253812005-08-29 Arnaud Charlet <charlet@adacore.com>
25382 Doug Rupp <rupp@adacore.com>
25383
25384 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
25385 when needed.
25386 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
25387 this code in the GNAT run-time.
25388
25389 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
25390
25391 PR ada/21053
25392 * init.c (__gnat_error_handler [many]): Mark "msg" as const
25393 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
25394
25395 (__gnat_inside_elab_final_code): Moved here from
25396 Standard_Library and only defined for the compiler.
25397 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
25398 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
25399 using RTPs because directly vectored Interrupt routines are not
25400 supported on this configuration.
25401 (getpid): Do not redefine this function on VxWorks when using RTPs
25402 because this primitive is well supported by the RTP libraries.
25403 (copy_msg): Correct the code that checks for buffer overflow.
25404 Discovered during code reading.
25405
254062005-08-29 Olivier Hainque <hainque@adacore.com>
25407
25408 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
25409 a library level mutable variable with an initializer, tell
25410 build_allocator to ignore the initializer's size. It may not be large
25411 enough for all the values that might be assigned to the variable later
25412 on.
25413
254142005-08-29 Arnaud Charlet <charlet@adacore.com>
25415 Eric Botcazou <ebotcazou@adacore.com>
25416
25417 * trans.c: Protect < in error msg with quote
25418 Replace GCC_ZCX by Back_End_Exceptions.
25419 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
25420 has been sufficiently aligned in the record.
25421
35fd1d77
JW
254222005-08-15 James E. Wilson <wilson@specifix.com>
25423
25424 * system-linux-alpha.ads: Change ia64 to alpha.
25425
b15341b8
KH
254262005-08-01 Kazu Hirata <kazu@codesourcery.com>
25427
25428 * decl.c, utils.c: Fix comment typos.
25429
9e4eb559
KH
254302005-07-29 Kazu Hirata <kazu@codesourcery.com>
25431
25432 * decl.c, init.c, initialize.c: Fix comment typos.
25433
4038c495
GB
254342005-07-20 Giovanni Bajo <giovannibajo@libero.it>
25435
25436 Make CONSTRUCTOR use VEC to store initializers.
25437 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
25438 CONSTRUCTOR_ELTS.
25439 * trans.c (extract_values): Likewise.
25440 * utils.c (convert, remove_conversions): Likewise.
25441 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
25442 gnat_build_constructor): Likewise.
25443
f685a2e6
AP
254442005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
25445
25446 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
25447 DECL_SECTION_NAME.
25448 (compare_field_bitpos): Likewise.
25449
7c6ef73e
AP
254502005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
25451
25452 * utils.c (create_var_decl): Only set DECL_COMMON on
25453 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
25454 VAR_OR_FUNCTION_DECL_P.
25455
820cc88f 254562005-07-08 Daniel Berlin <dberlin@dberlin.org>
da8f5fd9 25457
820cc88f
DB
25458 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
25459 removed.
25460
1a9cb483
AC
254612005-07-07 Pascal Obry <obry@adacore.com>
25462
25463 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
25464 returned type on Windows.
25465
25466 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
25467 routine.
25468
25469 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
25470 exception in this case.
25471 Simplify the code as "Image (Image'Range)" = "Image".
25472
254732005-07-07 Vincent Celier <celier@adacore.com>
25474
25475 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
25476 the destructor/constructor attributes for <lib>final/<lib>init.
25477
25478 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
25479
254802005-07-07 Eric Botcazou <ebotcazou@adacore.com>
25481
25482 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
25483 type if the parameter is not passed by copy but reference by default.
25484
254852005-07-07 Javier Miranda <miranda@adacore.com>
25486
25487 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
25488 Reimplementation of the support for abstract interface types in order
25489 to leave the code more clear and easy to maintain.
25490
25491 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
25492 abstract interface types in order to leave the code clearer and easier
25493 to maintain.
25494
25495 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
25496 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
25497 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
25498 appropriate entry of the secondary dispatch table.
25499 (Make_DT): Add code to inherit the secondary dispatch tables of
25500 the ancestors.
25501
25502 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
25503 implementing both functionalities by means of a common routine, each
25504 routine has its own code.
25505
255062005-07-07 Javier Miranda <miranda@adacore.com>
25507
25508 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
25509
25510 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
25511 types:
25512 --
25513 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
25514 --
25515
25516 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
25517 use of tag incomplete types.
25518
25519 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
25520 give support to tagged incomplete types.
25521
25522 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
25523 expression is a discriminant reference and its type is private, as can
25524 happen within a stream operation for a mutable record, use the full
25525 view of the type to resolve the case alternatives.
25526 (Analyze_Assignment): Check wrong dereference of incomplete types.
25527
25528 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
25529 types.
25530
25531 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
25532 incomplete types.
25533
25534 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
25535 N_Incomplete_Type_Declaration nodes.
25536
25537 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
25538 Tag_Present to give support to tagged incomplete types:
25539 --
25540 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
25541 --
25542
255432005-07-07 Olivier Hainque <hainque@adacore.com>
25544
25545 PR ada/22301
1a9cb483
AC
25546 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
25547 definitions for the Unwind wrappers in the compiler case.
25548
255492005-07-07 Ed Schonberg <schonberg@adacore.com>
25550 Javier Miranda <miranda@adacore.com>
25551
25552 * par-load.adb (Load): If a child unit is loaded through a limited_with
25553 clause, each parent must be loaded as a limited unit as well.
25554
25555 * sem_ch10.adb (Previous_Withed_Unit): Better name for
25556 Check_Withed_Unit. Return true if there is a previous with_clause for
25557 this unit, whether limited or not.
25558 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
25559 the current unit.
25560 (Is_Visible_Through_Renamings): New local subprogram of install_limited
25561 _withed_unit that checks if some package installed through normal with
25562 clauses has a renaming declaration of package whose limited-view is
25563 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
25564 of the current Draft document for Ada 2005.
25565 (Analyze_Context): Complete the list of compilation units that
25566 are allowed to contain limited-with clauses. It also contains
25567 checks that were previously done by Install_Limited_Context_Clauses.
25568 This makes the code more clear and easy to maintain.
25569 (Expand_Limited_With_Clause) It is now a local subprogram of
25570 Install_Limited_Context_Clauses, and contains the code that adds
25571 the implicit limited-with clauses for parents of child units.
25572 This functionality was prevously done by Analyze_Context.
25573
25574 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
25575 incomplete type.
25576
25577 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
25578 been erroneously named in a limited-with clause of its own context.
25579 In this case the error has been previously notified by Analyze_Context.
25580
255812005-07-07 Ed Schonberg <schonberg@adacore.com>
25582
25583 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
25584 generic package that contains local declarations with the same name.
25585 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
25586
255872005-07-07 Bernard Banner <banner@adacore.com>
25588
25589 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
25590 ia64 platform only on platforms that you the GCC unwind library
25591 rather than the system unwind library.
25592
255932005-07-07 Thomas Quinot <quinot@adacore.com>
25594
25595 * expect.c: Minor reformatting
25596
255972005-07-07 Sergey Rybin <rybin@adacore.com>
25598
25599 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
25600 --no-separate-is
25601
25602 * gnat_ugn.texi: Add description for new gnatpp option
25603 (--no-separate-is)
25604
7d300a99
AC
256052005-07-04 Thomas Quinot <quinot@adacore.com>
25606
25607 * g-expect-vms.adb, g-expect.ads, g-expect.adb
25608 (Get_Command_Output): New subprogram to launch a process and get its
25609 standard output as a string.
25610
256112005-07-04 Eric Botcazou <ebotcazou@adacore.com>
9bae2797 25612 Olivier Hainque <hainque@adacore.com>
7d300a99
AC
25613
25614 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
25615 fetch a code-range descriptor associated with the machine state. On
25616 failure set the machine state's PC to 0; on success, pass the
25617 descriptor to exc_virtual_unwind.
25618
25619 * init.c (Tru64 section): New function __gnat_set_code_loc.
25620
256212005-07-04 Vincent Celier <celier@adacore.com>
25622
da8f5fd9
AJ
25623 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25624 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7d300a99
AC
25625 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
25626 Remove all auto-initialization code, as this is now done through the
25627 constructor mechanism.
25628
25629 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
25630 __gnat_sals_init_using_constructors): New functions.
25631
25632 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
25633 Linker_Constructor and Linker_Destructor when switch -a is used.
25634
25635 * bindusg.adb: Add line for new switch -a
25636
25637 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
25638 (Gnatbind): When switch -a is used, check if it is allowed
25639
25640 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
25641
256422005-07-04 Joel Brobecker <brobecker@adacore.com>
25643
25644 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
25645 This prevents us from hitting a limitation during the debug info
25646 generation when using stabs.
25647 (Prims_Ptr): Likewise.
25648
256492005-07-04 Gary Dismukes <dismukes@adacore.com>
25650 Ed Schonberg <schonberg@adacore.com>
25651 Javier Miranda <miranda@adacore.com>
25652
25653 * checks.adb (Null_Exclusion_Static_Checks): In the case of
25654 N_Object_Declaration, only perform the checks if the Object_Definition
25655 is not an Access_Definition.
25656
6f7f72f9
EB
25657 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
25658 where the parent of an the access definition is an N_Object_Declaration
25659 when determining the Associated_Node_For_Itype and scope of an
25660 anonymous access-to-subprogram type.
7d300a99
AC
25661
25662 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
25663 Corresponding_Spec on the body created for a null procedure. Add ???
25664 comment. Remove New_Copy_Tree call on body argument to
25665 Set_Body_To_Inline.
25666
25667 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
25668 discriminants, use the type of the actual as well, because the
25669 discriminants may be read by the called subprogram.
25670
25671 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
25672 access type we do not need to handle non-limited views.
25673 (Build_Derived_Record_Type): Additional check to check that in case of
25674 private types, interfaces are only allowed in private extensions.
25675
256762005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25677
25678 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
25679 <Pragma_Linker_Destructor>: Likewise.
25680
25681 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
25682 Pragma_Linker_Destructor.
25683
25684 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
25685 ATTR_LINK_DESTRUCTOR.
25686 (static_ctors, static_dtors): New variables.
25687
25688 * misc.c (gnat_expand_body): Output current function as constructor
25689 and destructor if requested.
25690
25691 * par-prag.adb: Add processing for pragma Linker_Constructor and
25692 Linker_Destructor.
25693
25694 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
25695 extracted from Check_Interrupt_Or_Attach_Handler.
25696 (Check_Interrupt_Or_Attach_Handler): Invoke it.
25697 Implement pragma Linker_Constructor and Linker_Destructor with the
25698 help of Find_Unique_Parameterless_Procedure.
25699 Replace Name_Alias with Name_Target for pragma Linker_Alias.
25700
da8f5fd9 25701 * snames.h, snames.ads, snames.adb:
7d300a99
AC
25702 Add Name_Linker_Constructor and Name_Linker_Destructor.
25703 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
25704 * snames.adb: Remove Name_Alias.
25705
25706 * trans.c: Include cgraph.h.
25707 (build_global_cdtor): New function.
25708 (Compilation_Unit_to_gnu): Build global constructor and destructor if
25709 needed.
25710 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
25711 of objects too.
25712 (addressable_p) <COMPONENT_REF>: Unconditionally test
25713 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
25714
25715 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
25716 variable if it is external.
25717
25718 (static_ctors, static_dtors): New global variables.
25719 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
25720 <ATTR_LINK_DESTRUCTOR>: Likewise.
25721 (end_subprog_body): Chain function as constructor and destructor
25722 if requested.
25723
25724 * exp_util.adb (Force_Evaluation): Unconditionally invoke
25725 Remove_Side_Effects with Variable_Ref set to true.
25726 (Remove_Side_Effects): Handle scalar types first. Use a renaming
25727 for non-scalar types even if Variable_Ref is true and for class-wide
25728 expressions.
25729
257302005-07-04 Ed Schonberg <schonberg@adacore.com>
25731
25732 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
25733 to prevent spurious warnings.
25734
257352005-07-04 Thomas Quinot <quinot@adacore.com>
25736
25737 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
25738 Itypes. Itypes are really unexpected there.
25739 (Build_TypeCode_Function): Generalise special processing for Itypes to
25740 handle the case of numeric implicit base types as well as enumerated
25741 ones.
25742
257432005-07-04 Ed Schonberg <schonberg@adacore.com>
25744
25745 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
25746 controlled, indicate the expected type of the dereference that is
25747 created for the call to Deep_Finalize, to prevent spurious errors when
25748 the designated type is private and completed with a derivation from
25749 another private type.
25750
257512005-07-04 Vincent Celier <celier@adacore.com>
25752
25753 * make.adb (Change_To_Object_Directory): When unable to change the
25754 current dir to the object directory, output the full path of the
25755 directory.
25756
257572005-07-04 Matthew Gingell <gingell@adacore.com>
25758
25759 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
25760
25761 * indepsw-linux.adb: Replace by...
25762
25763 * indepsw-gnu.adb: ...this new file
25764
257652005-07-04 Vincent Celier <celier@adacore.com>
25766
25767 * mlib-prj.adb (Auto_Initialize): New constant String
25768 (SALs_Use_Constructors): New Boolean function
25769 (Build_Library): Call gnatbind with Auto_Initialize switch when
25770 SALs_Use_Constructors returns True.
25771
25772 * mlib-tgt.ads: Minor reformatting
25773
25774 * mlib-utl.ads: Minor reformatting
25775
25776 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
25777
257782005-07-04 Ed Schonberg <schonberg@adacore.com>
25779
25780 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
25781 single protected declarations can have an interface list.
25782 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
25783 with seriously malformed entry declarations, and lead to compilation
25784 abandoned messages.
25785
257862005-07-04 Javier Miranda <miranda@adacore.com>
25787
25788 * par-load.adb: Load the context items in two rounds.
25789
257902005-07-04 Robert Dewar <dewar@adacore.com>
25791
25792 * scng.adb: Do not consider Mod used as an attribute to be a keyword
25793
257942005-07-04 Ed Schonberg <schonberg@adacore.com>
25795 Javier Miranda <miranda@adacore.com>
25796
25797 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
25798 type extension needs a limited view.
25799 Remove previous restriction on private types available through the
25800 limited-view (only tagged private types were previously allowed).
25801 (Install_Withed_Unit): In the code that implements the
25802 legality rule given in AI-377, exclude a child unit with the name
25803 Standard, because it is a homonym of the Standard environment package.
25804
258052005-07-04 Thomas Quinot <quinot@adacore.com>
25806
25807 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
25808 overloaded function call, carry interpretations from the original tree
25809 to the copy.
25810
258112005-07-04 Ed Schonberg <schonberg@adacore.com>
25812
25813 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
25814 types check whether some designated type is a limited view, and use
25815 the non-limited view if available.
25816
258172005-07-04 Gary Dismukes <dismukes@adacore.com>
25818
25819 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
25820 constraint of full view of a private view T1 if present, when T2 is a
25821 discriminated full view.
25822
258232005-07-04 Thomas Quinot <quinot@adacore.com>
25824
25825 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
25826 actual that is a view conversion of a bit packed array reference.
25827
258282005-07-04 Ed Schonberg <schonberg@adacore.com>
25829
25830 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
25831 present before checking whether an interface type covers a synchronized
25832 type.
25833
258342005-07-04 Ed Schonberg <schonberg@adacore.com>
25835
25836 * sem_util.adb (Is_Object_Reference): An indexed or selected component
25837 whose prefix is an implicit dereference is an object reference. Removes
25838 spurious errors when compiling with -gnatc.
25839
258402005-07-04 Robert Dewar <dewar@adacore.com>
25841
25842 PR ada/22039
7d300a99
AC
25843 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
25844
258452005-07-04 Matthew Gingell <gingell@adacore.com>
25846
25847 * tracebak.c: Enable tracebacks on ia64 platforms
25848
258492005-07-04 Vincent Celier <celier@adacore.com>
25850
25851 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
25852 the GNAT BIND command, as gnatbind accepts multiples ALI files with
25853 the -L or -n switches.
25854
258552005-07-04 Vincent Celier <celier@adacore.com>
25856
25857 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
25858 correctly computed and the main project data is not modified while
25859 doing so.
25860 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
25861 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
25862 c++linker as this does not work on some platforms.
25863
258642005-07-04 Matthew Heaney <heaney@adacore.com>
25865
25866 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
25867 was changed.
25868 * a-coinve.adb: Perform constraint checks explicitly.
25869
258702005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25871 Thomas Quinot <quinot@adacore.com>
25872
25873 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
25874 new target gen-soccon.
25875
258762005-07-04 Robert Dewar <dewar@adacore.com>
25877
25878 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
25879
258802005-07-04 Thomas Quinot <quinot@adacore.com>
25881
25882 * g-socket.ads (Check_Selector): Minor rewording of comment.
25883
258842005-07-04 Vincent Celier <celier@adacore.com>
25885
25886 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
25887
258882005-07-04 Thomas Quinot <quinot@adacore.com>
25889
25890 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
25891
258922005-07-04 Sergey Rybin <rybin@adacore.com>
25893
6f7f72f9 25894 * gnat_ugn.texi: Add description of --eol gnatpp option
7d300a99
AC
25895
258962005-07-04 Eric Botcazou <ebotcazou@adacore.com>
25897 Thomas Quinot <quinot@adacore.com>
25898
6f7f72f9 25899 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
7d300a99
AC
25900 if the user wants all calls of a subprogram to be flagged,
25901 independently of whether they are made from within the same unit or
25902 another unit.
6f7f72f9
EB
25903 Mention restriction for pragma Linker_Alias on some platforms.
25904 Document pragma Linker_Constructor and Linker_Destructor.
25905 Rewrite documentation of Weak_External, Linker_Section and
25906 Linker_Alias pragmas.
7d300a99 25907
fc64d83c
AC
259082005-07-04 Arnaud Charlet <charlet@adacore.com>
25909
25910 * s-stausa.ads, s-stausa.adb: New files.
25911
cb5fee25
KC
259122005-06-30 Kelley Cook
25913
25914 * all files: Update FSF address in copyright headers.
25915 * gen-soccon.co (main): Output new FSF address in generated files.
25916
617a1b71
PB
259172005-06-28 Paul Brook <paul@codesourcery.com>
25918
25919 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
25920
0adcdb66
AC
259212005-06-14 Olivier Hainque <hainque@adacore.com>
25922 Eric Botcazou <ebotcazou@adacore.com>
25923
25924 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
25925 exc_unwind, now that we are generating proper .debug_frame output for
25926 that target.
25927
25928 * tracebak.c: Remove the mips-irix section, as we are now using the
25929 s-mastop based unwinder again.
25930 Under SPARC/Solaris, take into account the stack bias to compute the
25931 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
25932 ABI.
25933
259342005-06-14 Doug Rupp <rupp@adacore.com>
25935
25936 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
25937
25938 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
25939
259402005-06-14 Pascal Obry <obry@adacore.com>
25941
25942 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
25943 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
25944 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
25945 package name).
25946
da8f5fd9
AJ
25947 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
25948 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
25949 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
25950 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
0adcdb66 25951 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
da8f5fd9
AJ
25952 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
25953 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
25954 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
25955 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
25956 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
25957 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
25958 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
25959 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
25960 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
25961 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
25962 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
25963 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
25964 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
25965 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
25966 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
25967 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
25968 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
25969 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
25970 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
25971 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
25972 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
25973 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
25974 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
25975 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
0adcdb66
AC
25976 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
25977 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
25978 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
25979 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
25980 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
25981 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
25982 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
25983 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
25984 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
25985 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
25986 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
25987 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
25988 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
25989 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
25990 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
25991 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
25992 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
25993 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
25994 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
25995 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
25996 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
25997 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25998 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
25999 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
26000 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26001 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
26002 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
26003 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
26004 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
26005 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
26006 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
26007 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
26008 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
26009 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
26010 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
26011 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
26012 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
da8f5fd9
AJ
26013 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
26014 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
0adcdb66 26015 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
da8f5fd9 26016 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
0adcdb66
AC
26017 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
26018 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
26019 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
26020 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
26021 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
26022 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
26023 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
26024 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
26025 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
26026 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
26027 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
26028 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
26029 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
26030 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
26031 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
26032 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
26033 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
26034 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
26035 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
26036 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
26037 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
26038 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
26039 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
26040 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
26041 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
26042 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
26043 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
26044 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
26045 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
26046 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
26047 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
26048 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
26049 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
26050 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
26051 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
26052 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
26053 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
da8f5fd9
AJ
26054 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
26055 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
26056 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
26057 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
26058 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
26059 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
26060 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
0adcdb66
AC
26061 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
26062 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
26063 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
26064 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
26065 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
26066 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
da8f5fd9
AJ
26067 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
26068 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
0adcdb66
AC
26069 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
26070 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
26071 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
26072 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
26073 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
26074 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
26075 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
26076 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
26077 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
26078 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
26079 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
26080
260812005-06-14 Jose Ruiz <ruiz@adacore.com>
26082 Arnaud Charlet <charlet@adacore.com>
26083
26084 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
26085 longer protected objects. They have been replaced by lower-level
26086 suspension objects made up by a mutex and a condition variable (or
26087 their equivalent given a particular OS) plus some internal data to
26088 reflect the state of the suspension object.
26089 (Initialize, Finalize): Add this initialization procedure for
26090 Suspension_Object, which is a controlled type.
26091 (Finalize): Add the finalization procedure for Suspension_Object,
26092 which is a controlled type.
26093
26094 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
26095 Ada.Synchronous_Task_Control because there is no longer a need for a
26096 VxWorks specific version of this package. Target dependencies
26097 has been moved to System.Task_Primitives.Operations.
26098
26099 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
26100 longer needed.
26101 (InitializeCriticalSection, EnterCriticalSection,
26102 LeaveCriticalSection, DeleteCriticalSection): Replace the type
26103 pCriticalSection by an anonymous access type so that we avoid problems
26104 of accessibility to local objects.
26105
26106 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
26107 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26108 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
26109 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
26110 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
26111 set the environment task mask here.
26112 (Current_State): Add this function that returns the state of the
26113 suspension object.
26114 (Set_False): Add this procedure that sets the state of the suspension
26115 object to False.
26116 (Set_True): Add this procedure that sets the state of the suspension
26117 object to True, releasing the task that was suspended, if any.
26118 (Suspend_Until_True): Add this procedure that blocks the calling task
26119 until the state of the object is True. Program_Error is raised if
26120 another task is already waiting on that suspension object.
26121 (Initialize): Add this procedure for initializing the suspension
26122 object. It initializes the mutex and the condition variable which are
26123 used for synchronization and queuing, and it sets the internal state
26124 to False.
26125 (Finalize): Add this procedure for finalizing the suspension object,
26126 destroying the mutex and the condition variable.
26127
26128 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26129 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
26130 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
26131 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
26132 which provides a low-level abstraction (using operating system
26133 primitives) for Ada.Synchronous_Task_Control.
26134 This object is made up by a mutex (for ensuring mutual exclusion), a
26135 condition variable (for queuing threads until the condition is
26136 signaled), a Boolean (State) indicating whether the object is open,
26137 and a Boolean (Waiting) reflecting whether there is a task already
26138 suspended on this object.
26139
26140 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
26141 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
26142 s-intman-vms.ads, s-intman-mingw.adb,
26143 (Initialize_Interrupts): Removed, no longer used.
26144
26145 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
26146 (Setup_Interrupt_Mask): New procedure.
26147
26148 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
26149
26150 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
26151
26152 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
26153 this is no longer done in the body of s-taprop
26154 (Server_Task): Explicitely test for Pending_Action in case
26155 System.Parameters.No_Abort is True.
26156
26157 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
26158 is no longer done in the body of s-taprop
26159
261602005-06-14 Robert Dewar <dewar@adacore.com>
26161
26162 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26163 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26164 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26165 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26166 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26167 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
26168 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
26169 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26170 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
26171 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
26172 system-linux-hppa.ads, system-vms_64.ads,
26173 system-vxworks-alpha.ads: Minor comment update for
26174 AI-362 (unit is Pure).
26175
26176 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
26177 Add pragma Pure_05 for AI-362
26178 Make remaining conversion functions obsolescent in Ada 95
26179
26180 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
26181 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
26182 Add entries for a-wichun and a-zchuni
26183 Add a-widcha a-zchara for AI-395
26184 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
26185
26186 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
26187 Add entries for a-wichun.o and a-zchuni.o
26188 Entries for a-widcha.o and a-zchara.o
26189 Add entry for a-chacon.o
26190
26191 * a-ztenau.adb: Add with of Ada.Characters.Conversions
26192
26193 * a-chacon.ads, a-chacon.adb: New files.
26194
26195 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
26196 categorization violations.
26197
26198 * a-strmap.ads: Add pragma Pure_05 for AI-362
26199 * a-strmap.ads: Add note on implicit categorization for AI-362
26200
26201 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
26202
26203 * par-prag.adb: Dummy entry for pragma Persistent_BSS
26204 Set Ada_Version_Explicit, for implementation of AI-362
26205 Add processing for pragma Pure_05 and Preelaborate_05
26206 Add entry for Assertion_Policy pragma
26207
26208 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
26209 when needed for proper processing of categorization stuff
26210
da8f5fd9 26211 * sem_cat.adb:
0adcdb66
AC
26212 For several cases, make errors in preealborate units warnings,
26213 instead of errors, if GNAT_Mode is set. For AI-362.
26214
26215 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
26216 preelaborate unit is now warning if in GNAT mode
26217
26218 * s-stoele.ads: Document AI-362 for pragma preelaborate
26219
262202005-06-14 Doug Rupp <rupp@adacore.com>
26221
26222 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
26223 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
26224 Default_Exception_Msg_Max_Length: new parameter.
26225
26226 * a-except.ads: (Exception_Msg_Max_Length): Set to
26227 System.Parameters.Default_Exception_Msg_Max_Length
26228 Add pragma Preelaborate_05 for AI-362
26229 Add warnings off to allow categorization violations for AI-362
26230
262312005-06-14 Vincent Celier <celier@adacore.com>
26232
26233 * gnatsym.adb: Adapt to modification of package Symbols: procedure
26234 Process is now in package Processing.
26235
26236 * symbols.ads, symbols.adb:
26237 (Processing): New package, containing procedure Process
26238
da8f5fd9 26239 * symbols-vms-alpha.adb:
0adcdb66
AC
26240 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
26241
26242 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
26243 symbols-processing-vms-ia64.adb: New files.
26244
262452005-06-14 Pascal Obry <obry@adacore.com>
26246
26247 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
26248 implementation. This new version generates the proper DllMain routine
26249 to initialize the SAL. The DllMain is generated in Ada and compiled
26250 before being added as option to the library build command.
26251
262522005-06-14 Doug Rupp <rupp@adacore.com>
26253 Pascal Obry <obry@adacore.com>
26254
26255 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
26256 call to decc$translate_vms.
26257 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
26258 need to remove those quotes before catenating the filename.
26259 (__gnat_locate_exec_on_path): improvements to the Win32 section:
26260 * avoid allocating the memory twice for better efficiency;
26261 * allocate 32K buffer for environment expansion as suggested by MSDN;
26262 * prepend ".;" to the path so that current directory is searched too.
26263
262642005-06-14 Robert Dewar <dewar@adacore.com>
26265
26266 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
26267 instead of raising CE (AI-241)
26268 Add warnings off to allow categorization violations for AI-362
26269
262702005-06-14 Robert Dewar <dewar@adacore.com>
26271
26272 * ali-util.adb, gnatbind.adb: Remove references to
26273 Force_RM_Elaboration_Order.
26274
26275 * switch-b.adb: Remove recognition of -f switch
26276
262772005-06-14 Pascal Obry <obry@adacore.com>
26278
26279 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
26280 implementation which is slightly more efficient.
26281
262822005-06-14 Gary Dismukes <dismukes@adacore.com>
26283 Javier Miranda <miranda@adacore.com>
26284 Ed Schonberg <schonberg@adacore.com>
26285 Hristian Kirtchev <kirtchev@adacore.com>
26286
26287 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
26288 allocator's designated type is a class-wide type, and compiling for
26289 Ada 2005, emit a run-time check that the accessibility level of the
26290 type given in the allocator's expression is not deeper than the level
26291 of the allocator's access type.
26292
26293 (Tagged_Membership): Modified to gives support to abstract interface
26294 types.
26295
26296 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
26297 Access_Level.
26298 (Descendant_Tag): New predefined function
26299 (Is_Descendant_At_Same_Level): New predefined function
26300 (Get_Access_Level): New private function
26301 (Set_Access_Level): New private procedure
26302 (IW_Membership): New function. Given the tag of an object and the tag
26303 associated with an interface, evaluate if the object implements the
26304 interface.
26305 (Register_Interface_Tag): New procedure used to initialize the table of
26306 interfaces used by the IW_Membership function.
26307 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
26308 of the dispatch table.
26309 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
26310 table of interfaces of the parent.
26311 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
26312 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
26313 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
26314 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
26315 Ada 2005 semantics for the new predefined function.
26316
26317 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
26318 call to Descendant_Tag rather than Internal_Tag.
26319 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
26320 the accessibility level of the attribute's Item parameter is not deeper
26321 than the level of the attribute's prefix type. Tag_Error is raised if
26322 the check fails. The check is only emitted for Ada_05.
26323 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
26324 requested stream attribute, use it.
26325 (Expand_N_Attribute_Reference): If the designated type is an interface
26326 then rewrite the referenced object as a conversion to force the
26327 displacement of the pointer to the secondary dispatch table.
26328 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
26329 is a dereference of an object with a constrained partial view.
26330
26331 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
26332 type is a class-wide type, emit a run-time check that the accessibility
26333 level of the returned object is not deeper than the level of the
26334 function's master (only when compiling for Ada 2005).
26335
26336 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
26337 Action_Nb_Arg): Add entries for new Get_Access_Level and
26338 Set_Access_Level routines in these tables.
26339 (Make_DT): Generate a call to set the accessibility level of the
26340 tagged type in its TSD.
26341 (Make_DT): Code cleanup. The functionality of generating all the
26342 secondary dispatch tables has been moved to freeze_record_type.
26343 (Make_Abstract_Interface_DT): Minor code cleanup.
26344 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
26345 this subprogram implements a new algorithm that provides the
26346 same functionality and it is more clear in case of primitives
26347 associated with abstract interfaces.
26348 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
26349 clean up, the functionality of this subprogram is now provided
26350 by Set_All_DT_Position.
26351 (Write_DT): New subprogram: a debugging procedure designed to be called
26352 within gdb to display the dispatch tables associated with a tagged
26353 type.
26354 (Collect_All_Interfaces): New subprogram that collects the whole list
26355 of interfaces that are directly or indirectly implemented by a tagged
26356 type.
26357 (Default_Prim_Op_Position): New subprogram that returns the fixed
26358 position in the dispatch table of the default primitive operations.
26359 (Expand_Interface_Actuals): New subprogram to generate code that
26360 displaces all the actuals corresponding to class-wide interfaces to
26361 reference the interface tag of the actual object.
26362 (Expand_Interface_Conversion): New subprogram. Reference the base of
26363 the object to give access to the interface tag associated with the
26364 secondary dispatch table.
26365 (Expand_Interface_Thunk): New subprogram that generates the code of the
26366 thunk. This is required for compatibility with the C+ ABI.
26367 (Make_Abstract_Interface_DT): New subprogram that generate the
26368 declarations for the secondary dispatch tables associated with an
26369 abstract interface.
26370 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
26371 attribute for each primitive operation covering interface subprograms
26372 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
26373 These subprograms were upgraded to give support to abstract interfaces
26374
26375 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
26376 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
26377 RE_Set_Access_Level.
26378 (RE_Unit_Table): Add entries for new Ada.Tags operations.
26379 Add support to call the followig new run-time subprograms:
26380 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
26381
26382 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
26383 match its full declaration when both have an access definition with
26384 statically matching designated subtypes.
26385 (Analyze_Component_Declaration): Delete commented out code that was
26386 incorrectly setting the scope of an anonymous access component's type.
26387 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
26388 an access discriminant when the containing type is nonlimited.
26389 (Make_Incomplete_Type_Declaration): Create an incomplete type
26390 declaration for a record type that includes self-referential access
26391 components.
26392 (Check_Anonymous_Access_Types): Before full analysis of a record type
26393 declaration, create anonymous access types for each self-referential
26394 access component.
26395 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
26396 an access component in this context is a Local_Anonymous_Access, for
26397 proper accessibility checks.
26398 (Access_Definition): Set properly the scope of the anonymous access type
26399 created for a stand-alone access object.
26400 (Find_Type_Of_Object): An object declaration may be given with an access
26401 definition.
26402 (Complete_Subprograms_Derivation): New subprogram used to complete
26403 type derivation of private tagged types implementing interfaces.
26404 In this case some interface primitives may have been overriden
26405 with the partial-view and, instead of re-calculating them, they
26406 are included in the list of primitive operations of the full-view.
26407 (Build_Derived_Record_Type): Modified to give support to private
26408 types implemening interfaces.
26409 (Access_Definition): Reject ALL on anonymous access types.
26410 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
26411 type derivation to occur at a deeper accessibility level than the
26412 parent type.
26413 For the case of derivation within a generic body however, disallow the
26414 derivation if the derived type has an ancestor that is a formal type
26415 declared in the formal part of an enclosing generic.
26416 (Analyze_Object_Declaration): For protected objects, remove the check
26417 that they cannot contain interrupt handlers if not declared at library
26418 level.
26419 (Add_Interface_Tag_Components): New subprogram to add the tag components
26420 corresponding to all the abstract interface types implemented by a
26421 record type or a derived record type.
26422 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
26423 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
26424 Process_Full_View, Record_Type_Declaration): Modified to give
26425 support to abstract interface types
26426 (Collect_Interfaces): New subprogram that collects the list of
26427 interfaces that are not already implemented by the ancestors
26428 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
26429 when partial view has no discriminants and full view has defaults.
26430 (Constrain_Access): Reject a constraint on a general access type
26431 if the discriminants of the designated type have defaults.
26432 (Access_Subprogram_Declaration): Associate the Itype node with the inner
26433 full-type declaration or subprogram spec. This is required to handle
26434 nested anonymous declarations.
26435 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
26436 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
26437 Process_Full_View, Record_Type_Declaration): Modified to give
26438 support to abstract interface types
26439 (Derive_Subprograms): Addition of a new formal to indicate if
26440 we are in the case of an abstact-interface derivation
26441 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
26442 to the specification because it is requied to analyze all the
26443 identifiers found in a list of interfaces
26444
26445 * debug.adb: Complete documentation of flag "-gnatdZ"
26446
26447 * exp_ch3.adb: Implement config version of persistent_bss pragma
26448 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
26449 testing for TSS presence to properly enforce visibility rules.
26450 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
26451 Make_Abstract_Interfaces_DT to generate the secondary tables
26452 associated with abstract interfaces.
26453 (Build_Init_Procedure): Modified to initialize all the tags
26454 corresponding.
26455 (Component_Needs_Simple_Initialization): Similar to other tags,
26456 interface tags do not need initialization.
26457 (Freeze_Record_Type): Modified to give support to abstract interface
26458 types.
26459 (Expand_N_Object_Declaration): Do not generate an initialization for
26460 a scalar temporary marked as internal.
26461
26462 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
26463 in-out parameter that is a component in an initialization procedure,
26464 whose constraint might depend on discriminants, and that may be
26465 misaligned because of packing or representation clauses.
26466 (Is_Legal_Copy): New predicate to determine whether a possibly
26467 misaligned in-out actual can actually be passed by copy/return. This
26468 is an error in case the type is by_reference, and a warning if this is
26469 the consequence of a DEC import pragma on the subprogram.
26470 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
26471 interface types
26472 (Expand_Inlined_Call): Mark temporary generated for the return value as
26473 internal, so that no useless scalar normalization is generated for it.
26474 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
26475 null procedure can always be inlined.
26476 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
26477 procedure, generate an explicit empty body for it.
26478
26479 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
26480 Given a type implementing an interface, returns the corresponding
26481 access_disp_table value.
26482 (Find_Interface_Tag): New subprogram. Given a type implementing an
26483 interface, returns the record component containing the tag of the
26484 interface.
26485 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
26486 previous ones that return the corresponding tag and access_disp_table
26487 entities.
26488 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
26489 is a predefined primitive operation.
26490 (Expand_Subtype_From_Expr): If the expression is a selected component
26491 within an initialization procedure, compute its actual subtype, because
26492 the component may depend on the discriminants of the enclosing record.
26493
da8f5fd9 26494 * i-cpp.ads, i-cpp.adb:
0adcdb66
AC
26495 This package has been left available for compatibility with previous
26496 versions of the frontend. As part of the new layout this is now a
26497 dummy package that uses declarations available at a-tags.ads
26498
26499 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
26500 "constant access" and "aliased [constant] access" when not compiling
26501 with -gnat05.
26502 Suppress Ada 2005 keyword warning if -gnatwY used
26503 (P_Identifier_Declarations): Add support for object declarations with
26504 access definitions.
26505 (Private_Extension_Declaration): Complete the documentation
26506 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
26507 attribute in case of private extension declaration
26508 (P_Type_Declaration): Mark as "abstract" the type declarations
26509 corresponding with protected, synchronized and task interfaces
26510 (P_Declarative_Items): "not" and "overriding" are overriding indicators
26511 for a subprogram or instance declaration.
26512
26513 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
26514 instantiation that is a dispatching operation has controlling access
26515 parameters that are null excluding.
26516 Save and restore Ada_Version_Explicit, for implementation of AI-362
26517 (Validate_Derived_Type_Instance): Add check for abstract interface
26518 types.
26519 (Analyze_Formal_Package): Establish Instantiation source for the copy of
26520 the generic that is created to represent the formal package.
26521 (Analyze_Package_Instantiation): Instantiate body immediately if the
26522 package is a predefined unit that contains inlined subprograms, and
26523 we are compiling for a Configurable_Run_Time.
26524 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
26525 If the program has a null default, generate an empty body for it.
26526
26527 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
26528 error message condition, null procedures are correctly detected now.
26529 (New_Overloaded_Entity): Bypass trivial overriding indicator check
26530 for subprograms in the context of protected types. Instead, the
26531 indicator is examined in Sem_Ch9 while analysing the subprogram
26532 declaration.
26533 (Check_Overriding_Indicator): Check consistency of overriding indicator
26534 on subprogram stubs as well.
26535 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
26536 the library level.
26537 (Analize_Subprogram_Specification): When analyzing a subprogram in which
26538 the type of the first formal is a concurrent type, replace this type
26539 by the corresponding record type.
26540 (Analyze_Subprogram_Body): Undo the previous work.
26541 (Analyze_Procedure_Call): If the call has the form Object.Op, the
26542 analysis of the prefix ends up analyzing the call itself, after which
26543 we are done.
26544 (Has_Interface_Formals): New subprogram subsidiary to analyze
26545 subprogram_specification that returns true if some non
26546 class-wide interface subprogram is found
26547 (New_Overloaded_Entity): Modified to give support to abstract
26548 interface types
26549 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
26550 access to subprograms must be recursive.
26551 (Is_Unchecked_Conversion): Improve the test that recognizes
26552 instantiations of Unchecked_Conversion, and allows them in bodies that
26553 are to be inlined by the front-end. When the body comes from an
26554 instantiation, a reference to Unchecked_Conversion will be an
26555 Expanded_Name, even though the body has not been analyzed yet.
26556 Replace Is_Overriding and Not_Overriding in subprogram_indication with
26557 Must_Override and Must_Not_Override, to better express intent of AI.
26558 (Analyze_Subprogram_Body): If an overriding indicator is given, check
26559 that it is consistent with the overrinding status of the subprogram
26560 at this point.
26561 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
26562 always inlined.
26563 If the subprogram is a null procedure, indicate that it does not need
26564 a completion.
26565
26566 * sem_disp.adb (Check_Controlling_Type): Give support to entities
26567 available through limited-with clauses.
26568 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
26569 allowed as the last primitive of a tagged type if it has no previous
26570 spec.
26571 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
26572 to give support to abstract interface types
26573
26574 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
26575 in the case where the target type is an anonymous access type of an
26576 object or component (that is, when Is_Local_Anonymous_Access is true).
26577 Prevent the special checks for conversions of access discriminants in
26578 the case where the discriminant belongs to a nonlimited type, since
26579 such discriminants have their accessibility level defined in the same
26580 way as a normal component of an anonymous access type.
26581 (Resolve_Allocator): When an allocator's designated type is a class-wide
26582 type, check that the accessibility level of type given in the
26583 allocator's expression or subtype indication is not statically deeper
26584 than the level of the allocator's access type.
26585 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
26586 name in a discriminant constraint of a record component.
26587 (Resolve_Explicit_Dereference): Do not check whether the type is
26588 incomplete when the dereference is a use of an access discriminant in
26589 an initialization procedure.
26590 (Resolve_Type_Conversion): Handle conversions to abstract interface
26591 types.
26592 (Valid_Tagged_Conversion): The conversion of a tagged type to an
26593 abstract interface type is always valid.
26594 (Valid_Conversion): Modified to give support to abstract interface types
26595 (Resolve_Actuals): Enable full error reporting on view conversions
26596 between unrelated by_reference array types.
26597 The rule for view conversions of arrays with aliased components is
26598 weakened in Ada 2005.
26599 Call to obsolescent subprogram is now considered to be a violation of
26600 pragma Restrictions (No_Obsolescent_Features).
26601 (Check_Direct_Boolean_Operator): If the boolean operation has been
26602 constant-folded, there is nothing to check.
26603 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
26604 check on possible violation of restriction No_Direct_Boolean_Operators
26605 until after expansion of operands, to prevent spurious errors when
26606 operation is constant-folded.
26607
26608 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
26609 Has_Compatible_Type): Modified to give support to abstract interface
26610 types.
26611 (Interface_Present_In_Ancestor): New function to theck if some ancestor
26612 of a given type implements a given interface
26613
26614 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
26615 prefix is a parameterless function that returns an access_to_procedure.
26616 (Transform_Object_Operation): Handle properly function calls of the
26617 form Obj.Op (X), which prior to analysis appear as indexed components.
26618 (Analyze_One_Call): Complete the error notification to help new Ada
26619 2005 users.
26620 (Analyze_Allocator): For an allocator without an initial value, where
26621 the designated type has a constrained partial view, a discriminant
26622 constraint is illegal.
26623
266242005-06-14 Robert Dewar <dewar@adacore.com>
26625
26626 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
26627 do with treatment of Set_Col when positioned at end of line character.
26628
266292005-06-14 Robert Dewar <dewar@adacore.com>
26630
26631 * atree.adb: (Elist*): Protect against uninitialized field
26632
266332005-06-14 Ed Schonberg <schonberg@adacore.com>
26634
26635 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
26636 for an attribute reference that returns an access type.
26637 (Apply_Discriminant_Check): No need for check if (designated) type has
26638 constrained partial view.
26639
26640 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
26641 both bound checks, rather than a conjunction.
26642 (Insert_Valid_Check): If the expression is an actual that is an indexed
26643 component of a bit-packed array, force expansion of the packed element
26644 reference, because it is specifically inhibited elsewhere.
26645
266462005-06-14 Vincent Celier <celier@adacore.com>
26647
26648 * clean.adb (Clean_Project): Correctly delete executable specified as
26649 absolute path names.
26650
26651 * make.adb (Gnatmake): Allow relative executable path names with
26652 directory information even when project files are used.
26653 (Change_To_Object_Directory): Fail gracefully when unable to change
26654 current working directory to object directory of a project.
26655 (Gnatmake): Remove exception handler that could no longer be exercized
26656 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
26657 may be deallocated by Normalize_Arguments.
26658 (Collect_Arguments): Eliminate empty arguments
26659
26660 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
26661 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
26662 (Check_Project): Return False when Project is No_Project. Return True
26663 when All_Projects is True.
26664 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
26665 All_Projects to True.
26666 Minor reformatting
26667
266682005-06-14 Ed Schonberg <schonberg@adacore.com>
26669 Javier Miranda <miranda@adacore.com>
26670 Thomas Quinot <quinot@adacore.com>
26671 Robert Dewar <dewar@adacore.com>
26672 Hristian Kirtchev <kirtchev@adacore.com>
26673 Gary Dismukes <dismukes@adacore.com>
26674
26675 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
26676 anonymous access types, to indicate that the accessibility level of
26677 the type is determined by that of the enclosing declaration.
26678 (Has_Persistent_BSS): New flag
26679 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
26680 of this attribute with functions.
26681 (Is_Primitive_Wrapper): Remove the barrier.
26682 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
26683 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
26684 New subprograms.
26685 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
26686 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
26687 New subprograms.
26688 (Is_Pure_Unit_Access_Type): New flag
26689 (Abstract_Interfaces): Complete the assertion to cover all usages.
26690 (Set_Is_Interface): Complete the assertion to cover all usages.
26691 (Is_Primitive_Wrapper): New attribute.
26692 (Is_Obsolescent): Now applies to all entities (though it is only set
26693 for subprograms currently)
26694 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
26695 which solves various problems concerning access subtypes.
26696 (Has_Persistent_BSS): New flag
26697 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
26698 Remove these subprograms because this attribute is currently
26699 not used.
26700 New entity flags:
26701 Has_Specified_Stream_Input (Flag190)
26702 Has_Specified_Stream_Output (Flag191)
26703 Has_Specified_Stream_Read (Flag192)
26704 Has_Specified_Stream_Write (Flag193)
26705 Present in all type and subtype entities. Set for a given view if the
26706 corresponding stream-oriented attribute has been defined by an
26707 attribute definition clause. When such a clause occurs, a TSS is set
26708 on the underlying full view; the flags are used to track visibility of
26709 the attribute definition clause for partial or incomplete views.
26710 (Is_Pure_Unit_Access_Type): New flag
26711 Clarify use of Is_Internal.
26712 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
26713 internally generated to wrap the invocation of tasks and protected
26714 types that implement interfaces.
26715 (Implementation_Base_Type): Documentation correction
26716 (Is_Obsolescent): Now applies to all entities (though it is only set
26717 for subprograms currently)
26718 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
26719 which solves various problems concerning access subtypes.
26720
26721 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
26722 for examined parameters. Identify unequal parameter list lengths as
26723 non-conformant parameters.
26724 (Overriding_Possible): Do not check for "All" qualifier in declaration
26725 of controlling access parameter, following prescription of AI-404.
26726 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
26727 that build the procedure body that wraps an entry invocation
26728 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
26729 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
26730 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
26731 give support to abstract interface types
26732
26733 * freeze.adb (Freeze_Entity): Issue error message if
26734 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
26735 type has no storage pool (Ada 2005) AI-366.
26736 Also modified to give support to abstract interface types
26737 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
26738 Inline_Always pragma.
26739
26740 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
26741 now begin an entry declaration.
26742 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
26743 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
26744 a subprogram declaration preceded by an overriding indicator.
26745 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
26746 declarations or subprogram declarations preceded by reserved words
26747 "not" or "overriding".
26748 (P_Entry_Declaration): Update comment. Parse and check overriding
26749 indicator, set semantic flags of entry declarations.
26750 (P_Task): New error message in case of private applied
26751 to a task type declaration.
26752 (P_Protected): New error message in case of private applied
26753 to a task type declaration.
26754
26755 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
26756 in which the full view of a type implementing an interface is a
26757 concurrent type.
26758 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
26759 Declare_Inherited_Private_Subprograms): If an explicit operation
26760 overrides an operation that is inherited in the private part, mark the
26761 explicit one as overriding, to enable overriding indicator checks.
26762 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
26763 full view to partial view, to simplify handling in back-end.
26764
26765 * sprint.adb: Print interface lists where needed: derived types,
26766 protected types, task types.
26767 output "is null" for null procedures. Part of implementation of
26768
26769 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
26770 relaxation of rules for access types in pure, shared passive partitions.
26771
26772 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
26773 first read discriminants into temporary objects, performing checks on
26774 the read values, then possibly performing discriminant checks on the
26775 actual (if it is constrained), and only finally reading the components
26776 into a constrained temporary object.
26777 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
26778 case of reading discriminants of a mutable record type to recognize
26779 the new form of the code generated by
26780 Build_Mutable_Record_Read_Procedure.
26781
26782 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
26783 of a simple call to Make_TSS_Name.
26784 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
26785 buffer, in order for Is_TSS to work correctly on local TSS names.
26786
26787 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
26788 Is_Local_Anonymous_Access to check legaliy of attributes in the
26789 context of access components and stand-alone access objects.
26790 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
26791 treated as available for a limited private type if there is an
26792 attribute_definition_clause that applies to its full view, but not in
26793 other cases where the attribute is available for the full view
26794 (specifically, the sole fact that the full view is non-limited does not
26795 make the attribute available for the partial view).
26796 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
26797 non-overloaded intrinsic subprogram.
26798 (Check_Stream_Attribute): Reject an attribute reference for an
26799 unavailable stream attribute even if the prefix is not a limited type
26800 (case of a 'Input attribute reference for an abstract, non-classwide
26801 type)
26802 (Stream_Attribute_Available): New function to determine whether a stream
26803 attribute is available at a place.
26804 (Check_Attribute): Use Stream_Attribute_Available instead of just
26805 testing for TSS presence on the implementation base type.
26806 (Analyze_Attribute): Modified to give support to task interfaces.
26807 (Analyze_Access_Attribute): Add error check for use of an Access (or
26808 Unrestricted_Access) attribute with a subprogram marked as
26809 Inline_Always.
26810 (Analyze_Attribute, case Attribute_Address): Add error check for use of
26811 an Address attribute with a subprogram marked as Inline_Always.
26812 Update Eval_Attribute to handle new value of Width from AI-395
26813
26814 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
26815 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
26816 Factor common code across the stream-oriented attribute circcuits into
26817 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
26818 processing is functionally identical to the previous duplicated one,
26819 except that an expression that denotes an abstract subprogram will now
26820 be rejected, as mandated by AI-195 item 5.
26821
26822 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
26823 Is_Local_Anonymous_Access to apply accessibility checks to access
26824 components and stand-alone access objects.
26825 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
26826 elsewhere.
26827 (Is_Potentially_Persistent_Type): New function
26828 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
26829 a heap-object whose type has a constrained partial view, the object is
26830 unconstrained and the component may depend on a discriminant, making its
26831 renaming illegal.
26832
26833 * sinfo.ads, sinfo.adb
26834 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
26835 (Must_Override): Flag applicable to N_Entry_Declaration.
26836 Indicate that interface_list can appear in single task and single
26837 protected declarations.
26838 Replace Is_Overriding and Not_Overriding with Must_Override and
26839 Must_Not_Override, to better express intent of AI.
26840 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
26841 of an overriding indicator in a subprogram or instance.
26842 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
26843 Add the overriding indicator [[not] overriding] construct to the
26844 following grammar productions:
26845 ENTRY_DECLARATION
26846 GENERIC_INSTANTIATION
26847 SUBPROGRAM_SPECIFICATION
26848
26849 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
26850 can start with an overriding indicator.
26851
26852 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
26853 flags accordingly on subrogram specifications or instances.
26854
da8f5fd9 26855 * sem_ch8.adb:
0adcdb66
AC
26856 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
26857 overriding_indicator, if present, is consistent with status of spec.
26858 Improve error message for null-excluding checks on controlling access
26859 parameters.
26860 (Check_In_Previous_With_Clause): Protect the frontend against
26861 previously reported critical errors in the context clauses.
26862 Save and restore Ada_Version_Explicit, for implementation of AI-362
26863 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
26864 operation verify that controlling formals of the renamed entity that
26865 are access parameters are explicitly non-null.
26866 (Find_Expanded_Name): Improve error message when prefix is an illegal
26867 reference to a private child unit.
26868
26869 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
da8f5fd9 26870 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
0adcdb66
AC
26871 Rewrite to correspond to new wide character names in AI-395
26872
6f7f72f9
EB
26873 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
26874 default procedures.
0adcdb66
AC
26875
268762005-06-14 Ed Schonberg <schonberg@adacore.com>
26877 Robert Dewar <dewar@adacore.com>
26878
26879 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
26880 code, not on the bodies of predefined operations, to cut down on
26881 spurious noise.
26882
268832005-06-14 Ed Schonberg <schonberg@adacore.com>
26884
26885 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
26886 be expanded in place. The size computation does not require a
26887 subtraction, which would raise an exception on a compiler built with
26888 assertions when the upper bound is Integer'first.
26889 (Flatten): For an array of composite components, take into account the
26890 size of the components to determine whether it is safe to expand the
26891 array into a purely positional representation.
26892
268932005-06-14 Thomas Quinot <quinot@adacore.com>
26894
26895 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
26896 denoting a formal parameter into account.
26897
268982005-06-14 Ed Schonberg <schonberg@adacore.com>
26899
26900 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
26901 the entry_call alternative of a conditional entry call, wrap the
26902 conditional entry call itself.
26903
269042005-06-14 Nicolas Setton <setton@adacore.com>
26905 Ed Schonberg <schonberg@adacore.com>
26906
26907 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
26908 the "simple_choice" member in a variant record, in accordance with the
26909 description in the package spec: the information output for a constant
26910 should be "S number", not "SS number".
26911 (Get_Encoded_Name): Return at once if not generating code. Avoids name
26912 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
26913
269142005-06-14 Thomas Quinot <quinot@adacore.com>
26915
26916 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
26917 RACW without any primitives, do not generate the if statement for
26918 dispatching by name in the PolyORB/DSA case, as it would be malformed
26919 (it would have an Elsif_Parts list that is not No_List, but with a
26920 length of 0).
26921
269222005-06-14 Robert Dewar <dewar@adacore.com>
26923
26924 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
26925
269262005-06-14 Jose Ruiz <ruiz@adacore.com>
26927
26928 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
26929 can determine whether pragma Suppress_Exception_Locations is in effect.
26930
26931 * utils2.c (build_call_raise): Do not pass the file name to the
26932 exception handler if pragma Suppress_Exception_Locations is in effect.
26933 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
26934
269352005-06-14 Emmanuel Briot <briot@adacore.com>
26936
26937 * g-debpoo.adb (Deallocate, Dereference): Improve output.
26938
269392005-06-14 Nicolas Roche <roche@adacore.com>
26940
26941 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
26942 to ""
26943 (Next_Level): Fix minor bug in handling of ../dir case
26944 (Read): Add dir separator to Directory name so that "" is understood as
26945 "/"
26946
269472005-06-14 Pascal Obry <obry@adacore.com>
26948
26949 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
26950 releasing the items.
26951
269522005-06-14 Vincent Celier <celier@adacore.com>
26953 Cyrille Comar <comar@adacore.com>
26954
26955 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
26956 with output file descriptor and with output file name.
26957 (Dup, Dup2): Now global procedures as they are used by two subprograms
26958 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
26959
269602005-06-14 Thomas Quinot <quinot@adacore.com>
26961
26962 PR ada/6717
0adcdb66
AC
26963 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
26964 broadcast address.
26965 (Create_Selector): Bind listening socket used to create the signalling
26966 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
26967 Set listen backlog to 1 to ensure that we detect socket theft by a
26968 failure of our own connect(2) call.
26969 (Check_Selector): Improve documentation of the selector mechanism.
26970 (Broadcast_Inet_Addr): New constant.
26971
269722005-06-14 Gary Dismukes <dismukes@adacore.com>
26973
26974 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
26975 type which turns out to be an incomplete and incorrect fix.
26976 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
26977 of the type is declared in a record (for determination of insertion
26978 type).
26979 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
26980 a private type and ensure that the primary entity is used for the type
26981 of the newly created function's V formal by taking the Etype of the
26982 view.
26983
269842005-06-14 Javier Miranda <miranda@adacore.com>
26985 Jose Ruiz <ruiz@adacore.com>
26986 Robert Dewar <dewar@adacore.com>
26987 Ed Schonberg <schonberg@adacore.com>
26988
26989 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
26990 that indicates if we are parsing a compilation unit found in a
26991 limited-with clause.
26992 It is use to avoid the circularity check.
26993
26994 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
26995 we are parsing a compilation unit found in a limited-with clause. This
26996 is use to avoid the circularity check.
26997
26998 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
26999 unit as a consequence of parsing a limited-with clause. This is used
27000 to avoid the circularity check.
27001
27002 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
27003 (Analyze_Context): Limited-with clauses are now allowed
27004 in more compilation units.
27005 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
27006 againts previously reported critical errors in context clauses
27007 (Install_Limited_Withed_Unit): Code cleanup plus static detection
27008 of two further errors: renamed subprograms and renamed packages
27009 are not allowed in limited with clauses.
27010 (Install_Siblings): Do not install private_with_clauses on the package
27011 declaration for a non-private child unit.
27012 (Re_Install_Parents): When a parent of the subunit is reinstalled,
27013 reset visibility of child units properly.
27014 (Install_Withed_Unit): When a child unit appears in a with_clause of its
27015 parent, it is immediately visible.
27016
270172005-06-14 Ed Schonberg <schonberg@adacore.com>
27018 Emmanuel Briot <briot@adacore.com>
27019
27020 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
27021 declared within an inlined body as referenced, to prevent spurious
27022 warnings.
27023 (Output_One_Ref): If an entity renames an array component, indicate in
27024 the ALI file that this aliases (renames) the array. Capture as well
27025 function renamings that rename predefined operations.
27026 Add information about generic parent for package and subprogram
27027 instances.
27028 (Get_Type_Reference): For a subtype that is the renaming of an actual in
27029 an instantiation, use the first_subtype to ensure that we don't generate
27030 cross-reference information for internal types.
27031 For objects and parameters of a generic private type, retain the '*'
27032 indicator to distinguish such an entity from its type.
27033
6f7f72f9
EB
27034 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
27035 to store information about instantiated entities.
0adcdb66 27036
6f7f72f9
EB
27037 * ali.adb (Scan_ALI): Add support for parsing the reference to the
27038 generic parent
0adcdb66 27039
6f7f72f9
EB
27040 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
27041 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
27042 information.
0adcdb66
AC
27043
270442005-06-10 Doug Rupp <rupp@adacore.com>
27045 Arnaud Charlet <charlet@adacore.com>
27046 Olivier Hainque <hainque@adacore.com>
27047 Jose Ruiz <ruiz@adacore.com>
27048
27049 * Make-lang.in: Add initialize.o when needed.
27050 Remove obsolete references to RT_FLAGS.
27051 Add missing dependencies for sdefault.o
27052
27053 * initialize.c: New file.
27054
27055 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
27056 [VMS] cond_signal_table: Fix problem in declaration.
27057 [VMS] __gnat_error_handler: rewrite.
27058 Move all __gnat_initialize() routines to initialize.c
27059 Specialize the former "hpux" section to "hppa hpux", as this is what the
27060 section really is here for and we now have other hpux ports that need
27061 different contents.
27062 (__gnat_adjust_context_for_raise) i386-linux: First version of this
27063 function for this target. Adjust PC by one in the machine context. This
27064 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
27065 it is more reliable to do that in the signal handler itself.
27066 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
27067 flags, so that the handler is passed the context structure to adjust
27068 prior to the raise.
27069 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
27070 SA_SIGINFO sigaction should look like. Call
27071 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
27072 Machine_State_Operations stuff.
27073 Add conditional code so that the x86_64 is also supported.
27074
270752005-06-14 Pascal Obry <obry@adacore.com>
27076
27077 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
27078 the library name.
27079
270802005-06-14 Robert Dewar <dewar@adacore.com>
27081
27082 * opt.ads, opt.adb: New flags for persistent_bss mode
27083 Add Ada_Version_Explicit, for implementation of AI-362
27084 Add Assertions_Enabled_Config and associated handling
27085 Needed since setting can be changed with Assertion_Policy pragma
27086 Add new flag Warn_On_Ada_2005_Compatibility
27087
27088 * switch-c.adb: Recognize -gnatwy/Y
27089 Set Ada_Version_Explicit, for implementation of AI-362
27090 The -gnatg switch now includes -gnatyu
27091
27092 * usage.adb: Add -gnatwy/Y
27093 Remove wrong asterisk on -gnatwX line
27094 Add line for -gnatyu switch
27095
270962005-06-14 Vincent Celier <celier@adacore.com>
27097
27098 * osint.adb (Add_Default_Search_Dirs): Put source and object
27099 directories of project files before directories coming from
27100 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
27101
271022005-06-14 Robert Dewar <dewar@adacore.com>
27103
27104 PR ada/15613
0adcdb66
AC
27105 * par-ch2.adb (Scan_Pragma_Argument): New procedure
27106 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
27107
271082005-06-14 Vincent Celier <celier@adacore.com>
27109
27110 * prep.adb (Preprocess): Ignore error when scanning the first token of
27111 a line.
27112
271132005-06-14 Vincent Celier <celier@adacore.com>
27114
27115 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
27116 (Check_Stand_Alone_Library): If the specified reference symbol file does
27117 not exist, only issue a warning when the symbol policy is not
27118 Controlled. And, when symbol policy is Compliant, set the symbol
27119 policy to Autonomous.
27120
271212005-06-14 Vincent Celier <celier@adacore.com>
27122
27123 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
27124 when the project file in a with clause is not the last one, that is the
27125 project file name is followed by a comma.
27126 * prj-pp.adb: (First_With_In_List): New Boolean global variable
27127 (Print): Issue list of project files separated by commas in with clauses
27128 according to the values returned by Is_Not_Last_In_List.
27129 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
27130 (Set_Is_Not_Last_In_List): New procedure
27131
271322005-06-14 Eric Botcazou <ebotcazou@adacore.com>
27133
27134 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
27135
271362005-06-14 Robert Dewar <dewar@adacore.com>
27137
27138 * scng.adb: Add call to new Check_EOF routine
27139 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
27140 Add some comments regarding wide character handling
27141
27142 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
27143
27144 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
27145
27146 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
27147 characters are now considered graphic characters and hence yield false
27148 in this call.
27149
6f7f72f9
EB
27150 * nmake.adt: Modify header so that xnmake does not generate output
27151 files with multiple blank lines.
0adcdb66 27152
6f7f72f9
EB
27153 * treeprs.adt: Remove a blank line so that output from xtreeprs does
27154 not have an extra blank line
0adcdb66
AC
27155
271562005-06-14 Gary Dismukes <dismukes@adacore.com>
27157
27158 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
27159 expression when the component type is an anonymous access type to
27160 ensure that appropriate accessibility checks are done.
27161
27162 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
27163 expression of an assignment when the target object is of an anonymous
27164 access type. This ensures that required accessibility checks are done.
27165 (One_Bound): Move the check for type Universal_Integer to
27166 Process_Bounds.
27167 (Process_Bounds): Check whether the type of the preanalyzed range is
27168 Universal_Integer, and in that case set Typ to Integer_Type prior
27169 to setting the type of the original range and the calls to One_Bound.
27170
271712005-06-14 Ed Schonberg <schonberg@adacore.com>
27172
27173 * sem_case.adb (Expand_Others_Choice): Improve warning.
27174
271752005-06-14 Ed Schonberg <schonberg@adacore.com>
27176
27177 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
27178 constraint of full view if present, when other type is discriminated.
27179 (Eval_Relational_Op): Recognize tests of pointer values against Null,
27180 when the pointer is known to be non-null, and emit appropriate warning.
27181
271822005-06-14 Robert Dewar <dewar@adacore.com>
27183 Ed Schonberg <schonberg@adacore.com>
27184
27185 PR ada/10671
0adcdb66
AC
27186 * sem_prag.adb: Implement pragma Persistent_BSS
27187 Remove obsolete pragma Persistent_Data, Persistent_Object
27188 Set Ada_Version_Explicit, for implementation of AI-362
27189 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
27190 Add processing for pragma Pure_05 and Preelaborate_05
27191 Add processing for Assertion_Policy pragma
27192 Add pragma identifiers for Assert
27193 (Analyze_Pragma, case Assert): Check number of arguments
27194 (Process_Inline): Additional guard against an illegal program, where the
27195 argument of the pragma is undefined, and warnings on redundant
27196 constructs are enabled.
27197 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
27198 Ada_05 to this pragma, specifying that the pragma is only active in
27199 Ada_05 mode.
27200 (Check_Arg_Order): New procedure
27201 Add appropriate calls to this procedure throughout
27202 Also throughout, check entity name before doing any other checks
27203
27204 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
27205 Remove obsolete pragma Persistent_Data, Persistent_Object
27206 Add entries for pragma Pure_05 and Preelaborate_05
27207 Add entries for Assertion_Policy pragma and associated names
27208 Add some names for pragma argument processing
27209
27210 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
27211
272122005-06-14 Ed Schonberg <schonberg@adacore.com>
27213
27214 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
27215 appears within a negation (either from source or as a rewriting of
27216 inequality) adjust text of warning accordingly.
27217
272182005-06-14 Thomas Quinot <quinot@adacore.com>
27219
27220 * s-strxdr.adb: Follow AI95-00132
27221
272222005-06-14 Arnaud Charlet <charlet@adacore.com>
27223
27224 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
27225
272262005-06-14 Arnaud Charlet <charlet@adacore.com>
27227 Jose Ruiz <ruiz@adacore.com>
27228
27229 * s-tposen.adb, s-tpobop.adb
27230 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
27231 the exception id.
27232 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
27233 there is no violation of the Max_Entry_Queue_Length restriction (if it
27234 has been set); Program_Error is raised otherwise.
27235 (Requeue_Call): Before requeuing the task on the target entry queue we
27236 check that there is no violation of the Max_Entry_Queue_Length
27237 restriction (if it has been set); Program_Error is raised otherwise.
27238
272392005-06-14 Robert Dewar <dewar@adacore.com>
27240
27241 * styleg.adb: Fix several remaining problems in -gnatyu switch
27242 Blank line count not reset at start
27243 Scanning outside source buffer in some cases
27244 Confusing message for blanks at end of file
27245 Non-empty blank lines not recognized
27246
27247 * nmake.adt: Modify header so that xnmake does not generate output
27248 files with multiple blank lines.
27249
6f7f72f9
EB
27250 * treeprs.adt: Remove a blank line so that output from xtreeprs does
27251 not have an extra blank line
0adcdb66
AC
27252
272532005-06-14 Sergey Rybin <rybin@adacore.com>
27254
27255 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
27256
272572005-06-14 Doug Rupp <rupp@adacore.com>
27258 Vincent Celier <celier@adacore.com>
27259
27260 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
27261 Update copyright.
27262
27263 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
27264 Remove "Library" command.
27265 Change keyword for style check -gnatyd from NOCRLF to
27266 DOS_LINE_ENDINGS.
27267 Remove useless second style check keyword NONE
27268 Remove help documentation for inexistent style check keyword
27269 RM_COLUMN_LAYOUT.
27270 Add help documentation for style check keywords DOS_LINE_ENDINGS,
27271 UNNECESSARY_BLANK_LINES and XTRA_PARENS
27272 Add UNNECESSARY_BLANK_LINES for -gnatyu
27273 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
27274
6f7f72f9 27275 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
0adcdb66
AC
27276
272772005-06-14 Vincent Celier <celier@adacore.com>
27278
27279 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
27280 gprmake was invoked with -d.
27281 (Compile_Sources): If -d was used, output the "completed ..." message
27282 for each compilation.
27283 (Scan_Arg): Recognize new switch -d
27284 When -c and at least one main is specified, set
27285 Unique_Compile to True to guarantee that no other sources will be
27286 compiled.
27287
272882005-06-14 Matthew Heaney <heaney@adacore.com>
27289
27290 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
27291 * a-swuwha.ads, a-swuwha.adb: New files
27292
27293 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
27294 * a-szuzha.ads, a-szuzha.adb: New files.
27295
27296 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
da8f5fd9
AJ
27297 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
27298 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
27299 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
27300 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
0adcdb66 27301 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
da8f5fd9 27302 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
0adcdb66
AC
27303 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
27304 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
27305 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
27306 Ada 2005 RM.
27307
273082005-06-10 Eric Botcazou <ebotcazou@adacore.com>
27309 Olivier Hainque <hainque@adacore.com>
27310 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27311 Pascal Obry <obry@adacore.com>
27312
27313 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
27314
27315 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
27316 making a temporary around a procedure call because of non-addressable
27317 actual parameter.
27318 (process_freeze_entity): If entity is a private type, capture size
27319 information that may have been computed for the full view.
27320 (tree_transform, case N_Allocator): If have initializing expression,
27321 check type for Has_Constrained_Partial_View and pass that to
27322 build_allocator.
27323 (tree_transform, case N_Return_Statement): Pass extra arg to
27324 build_allocator.
27325
27326 * decl.c (annotate_value): Remove early return if -gnatR is not
27327 specified.
27328 (gnat_to_gnu_field): Don't make a packable type for a component clause
27329 if the position is byte aligned, the field is aliased, and the clause
27330 size isn't a multiple of the packable alignment. It serves no useful
27331 purpose packing-wise and would be rejected later on.
27332 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
27333
27334 PR ada/20515
27335 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
27336 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
27337 instead.
27338 (create_concat_name): Idem.
27339
273402005-06-10 Robert Dewar <dewar@adacore.com>
27341 Eric Botcazou <ebotcazou@adacore.com>
27342 Ben Brosgol <brosgol@adacore.com>
27343 Cyrille Comar <comar@adacore.com>
27344 Sergey Rybin <rybin@adacore.com>
27345 Pascal Obry <obry@adacore.com>
27346
27347 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
27348 Document second argument (Ada_05) of pragma Obsolescent
27349 Add note that call to subprogram marked with pragma Obsolescent
27350 is now considered to be a violation of program Restrictions
27351 (No_Obsolescent_Features).
27352 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
27353 that only machine-dependent attributes are supported.
27354
da8f5fd9 27355 * gnat_ugn.texi:
0adcdb66
AC
27356 Commented out menu lines and empty section for gnatclean examples
27357 Document -gnatwy/Y
27358 Fix some over long lines
27359 Clarify and enhance documentation of ADA_PROJECT_PATH.
27360 Rework section 2.11.2(3) about linking with a non-GNU compiler.
27361 Mention new switch -fcallgraph-info.
27362 Mention new switch -fstack-usage.
27363 For gnatpp, replace '-notab' with '-N' and add this option to Index
27364 Corrected VMS example.
27365 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
27366 Minor reformatting
27367 Add documentation for -gnatyu switch (unnecessary blank lines)
27368 Document new switch -U for GNAT PRETTY and GNAT METRIC
27369 Add note about Stdcall being handled as C convention on non Windows OS.
27370 Remove some junk typo in description of gnatbind -S switch
27371 Remove reference to Extensions_Allowed pragma
27372 Document the new order of the directories to be searched (source and
27373 object directories of project files before directories in ADA_*_PATH
27374 environment variables.
27375
6f7f72f9 27376 * g-trasym.ads: Document that IRIX is supported
0adcdb66
AC
27377
273782005-06-10 Arnaud Charlet <charlet@adacore.com>
27379
27380 * Makefile.in: Add initialize.o when needed.
27381 Adapt to new VMS package body Symbols and subunits
27382 No specialized version of a-sytaco is needed for VxWorks.
27383
27384 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
27385 * a-zchara.ads, a-widcha.ads: New files.
27386
27387 * system-hpux-ia64.ads: New file.
27388
27389 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
27390 is imported from the VxWorks kernel.
27391
273922005-06-14 Robert Dewar <dewar@adacore.com>
27393
27394 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
27395 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
27396 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
27397 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
27398 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
27399 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
27400 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
27401 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
27402 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
27403 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
27404 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
27405 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
27406
274072005-06-14 Thomas Quinot <quinot@adacore.com>
27408
27409 * xeinfo.adb: Fix typo in comment
27410
274112005-06-14 Javier Miranda <miranda@adacore.com>
27412
27413 * repinfo.ads: Fix typo in comment
27414
274152005-06-14 Gary Dismukes <dismukes@adacore.com>
27416
27417 * s-finimp.adb (Parent_Tag): Delete this imported function (function
27418 Parent_Tag is now in the visible part of Ada.Tags).
27419 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
27420 using imported function.
27421
274222005-06-14 Bernard Banner <banner@adacore.com>
27423
27424 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
27425 also apply for handling support for VxSim 653.
27426
274272005-06-14 Eric Botcazou <ebotcazou@adacore.com>
27428
27429 * xsnames.adb: Add automatic generation of snames.h.
27430
274312005-06-14 Thomas Quinot <quinot@adacore.com>
27432
27433 * gen-soccon.c: Add IP_MULTICAST_IF constant
27434 Minor reformatting and adjustments to prevent warnings.
27435
274362005-06-14 Pascal Obry <obry@adacore.com>
27437
27438 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
27439
e0d161cf
AP
274402005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
27441
27442 * trans.c (gnat_gimplify_expr): Call
27443 recompute_tree_invarant_for_addr_expr when we change
27444 the operand of the ADDR_EXPR.
27445
4c714dd4
KG
274462005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27447
27448 * misc.c: Don't include errors.h.
27449
7b9997f3
KG
274502005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27451
27452 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
27453
5ff62c2e
KH
274542005-05-29 Kazu Hirata <kazu@cs.umass.edu>
27455
27456 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
27457 comment typos.
27458 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
27459
9e94c78f 274602005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
8b37cc64
NN
27461
27462 PR ada/20270
27463 * Makefile.in: Make TGT_LIB behave correctly.
27464
d4ee4d25
DD
274652005-04-23 DJ Delorie <dj@redhat.com>
27466
27467 * misc.c: Adjust warning() callers.
27468
9e94c78f 274692005-04-16 Laurent Guerby <laurent@guerby.net>
159921c0 27470
6f7f72f9
EB
27471 PR ada/18847
27472 * a-nudira.adb (Value): Check for valid string.
27473 * a-nuflra.adb (Value): Likewise.
159921c0 27474
0b026622
RS
274752005-04-11 Richard Sandiford <rsandifo@redhat.com>
27476
27477 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
27478
bde83138
KH
274792005-04-10 Kazu Hirata <kazu@cs.umass.edu>
27480
27481 * adaint.c, init.c, tracebak.c: Fix comment typos.
27482 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
27483
9e94c78f 274842005-04-07 Laurent Guerby <laurent@guerby.net>
ad9945b5
LG
27485 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27486
27487 * Makefile.in: Add make ifeq define for hppa linux tasking support.
27488 * system-hpux.ads: Define Signed_Zeros to be True.
27489 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
27490
45f7cb60
KH
274912005-04-01 Kazu Hirata <kazu@cs.umass.edu>
27492
27493 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
27494 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
27495 typos.
27496
5662a50d
TT
274972005-03-30 Tom Tromey <tromey@redhat.com>
27498
27499 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
27500
e6e375cc
AL
275012005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27502
27503 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
27504
5db8bc34
AC
275052005-03-29 Robert Dewar <dewar@adacore.com>
27506
27507 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
27508 fixed-point expression has value that is not a multiple of the Small
27509 value.
27510
27511 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
27512
27513 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
27514 nanoseconds.
27515
27516 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
27517
275182005-03-29 Vincent Celier <celier@adacore.com>
27519
27520 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
27521 (Build_Dynamic_Library.Version_String): Return the empty string when
27522 Lib_Version is empty or when the symbol policy is not Autonomous.
27523
27524 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
27525 a symbol is not in the reference symbol file, increase the Major ID
27526 and set the Minor ID to 0.
27527 Use gsmatch=lequal instead of gsmatch=equal
27528
275292005-03-29 Doug Rupp <rupp@adacore.com>
27530
27531 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
27532 name and translate.
27533
275342005-03-29 Javier Miranda <miranda@adacore.com>
27535
27536 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
27537 (Inherit_DT): The first formal has been redefined as a Tag.
27538 This allows us the removal of the subprogram Get_TSD.
27539 (TSD): Replace the call to Get_TSD by the actual code.
27540
27541 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
27542 (Make_DT): Upgrade the call to Inherit_TSD according to the
27543 new interface: the first formal is now a Tag.
27544
27545 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
27546 redefined as a Tag.
27547 This change allows us to remove the subprogram Get_TSD.
27548 (CPP_Get_TSD): Subprogram removed.
27549 (TSD): Replace the call to CPP_Get_TSD by the actual code.
27550
27551 * rtsfind.ads: Remove support to call the run-time
27552 subprogram Get_TSD
27553
275542005-03-29 Robert Dewar <dewar@adacore.com>
27555
da8f5fd9 27556 * errutil.adb, errout.adb:
5db8bc34
AC
27557 Minor comment updates on Line_Terminator references
27558
27559 * par-ch10.adb: Add ??? comment about line terminator
27560
27561 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
27562 (check dos line terminator).
27563 (Check_Line_Max_Length): New procedure, split off from the existing
27564 Check_Line_Terminator routine. Separating this out allows -gnatyf to
27565 be properly recognized.
27566
27567 * styleg.adb: Add ??? comment for line terminator reference
27568
27569 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
27570 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
27571
27572 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
27573 (check dos line terminator).
27574 (Check_Line_Max_Length): New procedure, split off from the existing
27575 Check_Line_Terminator routine. Separating this out allows -gnatyf to
27576 be properly recognized.
27577
da8f5fd9 27578 * stylesw.ads, stylesw.adb:
5db8bc34
AC
27579 Add handling for new -gnatyd switch (check dos line terminator)
27580
27581 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
27582 Recognize -gnatwb/-gnatwB switches
27583 Include Warn_On_Bad_Fixed_Value for -gnatg
27584
da8f5fd9 27585 * usage.adb:
5db8bc34
AC
27586 Add line for new -gnatyd switch (check dos line terminator)
27587
27588 * usage.adb: Add lines for -gnatwb/-gnatwB
27589
27590 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
27591
27592 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
27593
27594 * gnat_ugn.texi: Fix overlong lines
27595 Document new -gnatyd switch
27596 Document new -gnatwb/-gnatwB switches
27597
275982005-03-29 Ed Schonberg <schonberg@adacore.com>
27599
27600 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
27601 order to retrieve the component list of the type, before examining
27602 individual components.
27603
27604 * sem_type.adb (Covers): Types are compatible if one is the base type
27605 of the other, even though their base types might differ when private
27606 views are involved.
27607
276082005-03-29 Thomas Quinot <quinot@adacore.com>
27609
27610 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
27611 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
27612 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
27613 analyzed if expansion is disabled (which could otherwise cause spurious
27614 error messages if expansion has been disabled due to previous
27615 (unrelated) errors).
27616
27617 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
27618 is disabled, the entity denoted by the argument is the access type
27619 itself, not an underlying record type, so there is no need to go back
27620 to the Corresponding_Remote_Type.
27621
276222005-03-29 Gary Dismukes <dismukes@adacore.com>
27623 Robert Dewar <dewar@adacore.com>
27624
27625 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
27626 expand a call to an instance of
27627 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
27628 Constructor actual of the instance. A class-wide membership
27629 check is also generated, to ensure that the tag passed to the instance
27630 denotes a type in the class.
27631 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
27632 of Name_Generic_Dispatching_Constructor.
27633
27634 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
27635 05 unit for AI-260-02).
27636
27637 * a-tgdico.ads: New file.
27638
27639 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
27640 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
27641
27642 * snames.ads, snames.adb (Preset_Names): Add entry for
27643 Generic_Dispatching_Constructor.
27644
27645 PR ada/20300
5db8bc34
AC
27646 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
27647 character type cases.
27648 (Analyze_Subprogram_Renaming): Add special handling for
27649 the case of renaming of stream attributes when the renaming denotes a
27650 generic formal subprogram association for an abstract formal subprogram.
27651 Check that the attribute is a primitive stream attribute (and not
27652 a class-wide stream attribute) and then rewrite the attribute name
27653 as the name of the appropriate compiler-generated stream primitive.
27654
276552005-03-29 Robert Dewar <dewar@adacore.com>
27656
27657 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
27658 recursive calls.
27659 (Is_Possibly_Unaligned_Object): Correct typo that
27660 resulted in inaccurate result for unaligned scalars within records.
27661
276622005-03-29 Ed Schonberg <schonberg@adacore.com>
27663
27664 * freeze.adb (Freeze_Record_Type): If the type of the component is an
27665 itype whose parent is controlled and not yet frozen, do not create a
27666 freeze node for the itype if expansion is disabled.
27667
276682005-03-29 Vincent Celier <celier@adacore.com>
27669
27670 * make.adb (Gnatmake): Don't fail if the main project file is declared
27671 as having no Ada sources. Do not display message "no sources to
27672 compile" in quiet output.
27673
276742005-03-29 Doug Rupp <rupp@adacore.com>
27675
27676 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
27677 extra tools.
27678
276792005-03-29 Robert Dewar <dewar@adacore.com>
27680
27681 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
27682 child.
27683
276842005-03-29 Robert Dewar <dewar@adacore.com>
27685
27686 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
27687 missing TYPE Improve the error message generated when compiling a
27688 limited interface in Ada83 or Ada95 mode.
27689
276902005-03-29 Robert Dewar <dewar@adacore.com>
27691
27692 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
27693 rather than proceed ahead using a junk attribute name.
27694
276952005-03-29 Vincent Celier <celier@adacore.com>
27696
27697 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
27698
27699 * prj-part.adb (Parse_Single_Project): Set the location of a project
27700 on its defining identifier, rather than on the reserved word "project".
27701
27702 * prj-proc.adb (Expression): Adapt to the fact that default of external
27703 references may be string expressions, not always literal strings.
27704 (Recursive_Process): Set Display_Name equal to Name
27705 when Location is No_Location, that is when there is no actual file.
27706 Get the Display_Name of the project from the source, when it is not a
27707 virtual project.
27708 (Process): Use the Display_Name in error messages
27709
27710 * prj-strt.adb (External_Reference): Allow default to be string
27711 expressions, not only literal strings.
27712
277132005-03-29 Vincent Celier <celier@adacore.com>
27714
27715 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
27716 file and the reference symbol file to be the same file.
27717
277182005-03-29 Thomas Quinot <quinot@adacore.com>
27719
27720 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
27721 forbid conversion of a local access-to-subprogram type to a remote one.
27722
27723 * sem_util.adb (Wrong_Type): For a record type that is the expanded
27724 equivalent type for a remote access-to-subprogram type, go back to the
27725 original RAS entity when displaying an error message, so the casing is
27726 the original source casing.
27727
277282005-03-29 Robert Dewar <dewar@adacore.com>
27729
27730 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
27731 on param update.
27732
277332005-03-29 Ed Schonberg <schonberg@adacore.com>
27734
27735 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
27736 subtype if code is being pre-analyzed, to prevent un-expanded
27737 references to protected formals, among others.
27738 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
27739 interpretation that can be a call, include the result of the call as a
27740 possible interpretation of the dereference.
27741
27742 * sem_ch5.adb (Process_Bounds): Determine type of range by
27743 pre-analyzing a copy of the original range, and then analyze the range
27744 with the expected type.
27745
27746 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
27747 with an overloaded prefix where not all interpretations yield an
27748 access to subprogram, do not rewrite node as a call.
27749 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
27750 the node as a call once the context identifies the interpretation of
27751 the prefix whose call yields the context type.
27752 (Valid_Conversion): For the case of a conversion between
27753 local access-to-subprogram types, check subtype conformance using
27754 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
27755 detailed error message.
27756
277572005-03-29 Ed Schonberg <schonberg@adacore.com>
27758
27759 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
27760 indicator, indicate that the formal can never be null.
27761 (Process_Formals): If a formal has a non_null indicator, insert the
27762 resulting subtype immediately before the enclosing subprogram decl,
27763 and not at the beginning of the corresponding declarative part, to
27764 prevent access before elaboration (Ada2005).
27765
277662005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27767
27768 PR ada/19956
27769 * utils.c (finish_record_type): Use variable_size when setting sizes.
27770
277712005-03-29 Robert Dewar <dewar@adacore.com>
27772
27773 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
27774 guarantee Unix style line terminators for the output files, even when
27775 running on windows.
27776
277772005-03-29 Robert Dewar <dewar@adacore.com>
27778
27779 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
27780 buffer if an exception is raised.
27781
277822005-03-29 Ed Falis <falis@adacore.com>
27783
27784 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
27785 VxWorks 653 1.4
27786
277872005-03-29 Robert Dewar <dewar@adacore.com>
27788
27789 * sem_util.ads: Minor reformatting
27790 * gnat_rm.texi: Minor editing.
27791
277922005-03-29 Eric Botcazou <ebotcazou@adacore.com>
27793
27794 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
27795 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
27796
aad9ff31
AL
277972005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27798
27799 * adaint.c (__gnat_portable_spawn): Adjust cast.
27800
d101034c
JM
278012005-03-23 Joseph S. Myers <joseph@codesourcery.com>
27802
27803 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
27804
3a0c4f5a
AC
278052005-03-17 Pascal Obry <obry@adacore.com>
27806
27807 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
27808 used.
27809
27810 * expect.c (__gnat_waitpid): Moved here from adaint.c.
27811 Reimplement under Win32 using Win32 API.
27812
27813 (__gnat_kill) [Win32]: Properly close the process handle before leaving
27814 this routine.
27815
278162005-03-17 Eric Botcazou <ebotcazou@adacore.com>
27817
27818 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
27819 (DECL_RENAMED_OBJECT): New accessor macro.
27820 (SET_DECL_RENAMED_OBJECT): New setter macro.
27821
27822 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
27823 object in all cases. Attach the renamed object to the VAR_DECL.
27824 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
27825 field is not prescribed.
27826
27827 * misc.c (gnat_handle_option): Handle -gnatO separately.
27828 (gnat_print_decl) <VAR_DECL>: New case.
27829 Print the DECL_RENAMED_OBJECT node.
27830
27831 * lang.opt: Declare separate -gnatO option.
27832
27833 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
27834 pointer, replace it with the renamed object.
27835 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
27836 pointer type if the source is not a fat pointer type whose underlying
27837 array has the same non-zero alias set as that of the destination array.
27838
278392005-03-17 Javier Miranda <miranda@adacore.com>
27840
27841 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
27842 (Get_Inheritance_Depth): Removed.
27843 (Set_Inheritance_Depth): Removed.
27844
27845 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
27846 subprogram Get_Expanded_Name because it is not referenced by the
27847 frontend.
27848
27849 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
27850 (CPP_Get_Inheritance_Depth): Removed.
27851 (CPP_Set_Inheritance_Depth): Removed.
27852
27853 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
27854
278552005-03-17 Robert Dewar <dewar@adacore.com>
27856
27857 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
27858 3, since we now expect GCC 3 to do all the work.
27859
278602005-03-17 Javier Miranda <miranda@adacore.com>
27861
27862 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
27863 of one barrier to avoid wrong usage of this attribute.
27864
27865 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
27866 First_Private_Entity.
27867
27868 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
27869 the subprogram against wrong usage.
27870 Adapt the code to traverse the entities in the
27871 scope of a record_type because in addition to its usage regarding
27872 packages, this subprogram is also called by Expand_N_Freeze_Entity
27873 to install the visible declarations of the enclosing scope of a
27874 record_type_with_private to establish the proper visibility before
27875 freezing the entity and related subprograms.
27876
278772005-03-17 Ed Schonberg <schonberg@adacore.com>
27878
27879 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
27880 entry formals.
27881
278822005-03-17 Thomas Quinot <quinot@adacore.com>
27883
27884 * exp_ch3.adb (Check_Attr): New subprogram.
27885 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
27886 into a new Check_Attr subprogram, in order to provide a more
27887 explanatory error message (including the name of the missing attribute).
27888 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
27889 subprogram determines whether a default implementation exists for a
27890 given stream attribute.
27891 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
27892 Determine whether to generate a default implementation for each stream
27893 attribute separately, as this depends on the specific attribute.
27894
27895 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
27896 limited extension where a stream attribute is missing for a limited
27897 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
27898 generate a bogus reference to the missing attribute to prevent
27899 cascaded errors. Instead, generate a null statement.
27900
27901 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
27902 available for a limited type if it has been specified for an ancestor
27903 of the type.
27904
279052005-03-17 Ed Schonberg <schonberg@adacore.com>
27906
27907 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
27908 entity is an operator.
27909
279102005-03-17 Thomas Quinot <quinot@adacore.com>
27911
27912 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27913 spec, to make this predicate available to other units.
27914
27915 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
27916 reimplementing it.
27917
27918 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
27919 when no distribution runtime library is available.
27920
27921 * sem_res.adb, sem_dist.adb: Disable expansion of remote
27922 access-to-subprogram types when no distribution runtime library is
27923 available.
27924 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
27925 predicate available to other units.
27926
27927 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
27928 spec, to make this predicate available to other units.
27929
279302005-03-17 Vincent Celier <celier@adacore.com>
27931
27932 * make.adb (Insert_Project_Sources): Make sure the Q is always
27933 initialized.
27934
27935 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
27936 the default for the tree, not the global default naming.
27937
27938 * prj-proc.adb (Recursive_Process): No need to put the default naming
27939 in the project data, it's already there.
27940
279412005-03-17 Doug Rupp <rupp@adacore.com>
27942
27943 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
27944
6f7f72f9
EB
27945 * 5xcrtl.ads: Renamed to...
27946 * s-crtl-vms64.ads: ...this new file
3a0c4f5a
AC
27947
279482005-03-17 Robert Dewar <dewar@adacore.com>
27949
27950 PR ada/19519
3a0c4f5a
AC
27951 * namet.adb (Copy_One_Character): Set proper wide character encoding
27952 for upper half character if we have upper half encoding.
27953
279542005-03-17 Robert Dewar <dewar@adacore.com>
27955
27956 * par.adb (Par): Improved msg for attempt to recompile predefined unit
27957
279582005-03-17 Thomas Quinot <quinot@adacore.com>
27959
27960 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
27961 tagged limited type, the TSS is a newly built renaming declaration:
27962 insert it using Set_TSS, not Copy_TSS.
27963
279642005-03-17 Javier Miranda <miranda@adacore.com>
27965
27966 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
27967 Try_Object_Operation): Analyze the object that is accessible
27968 through the prefix of the subprogram call before we apply
27969 the transformation of the object-operation notation.
27970
279712005-03-17 Jose Ruiz <ruiz@adacore.com>
27972
27973 * s-taprob.adb (Initialize_Protection): Initialize the protected
27974 object's owner to Null_Task.
27975 (Lock): If pragma Detect_Blocking is in effect and the caller of this
27976 procedure is already the protected object's owner then Program_Error
27977 is raised. In addition the protected object's owner is updated.
27978 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
27979 of this procedure is already the protected object's owner then
27980 Program_Error is raised.
27981 In addition the protected object's owner is updated.
27982 (Unlock): Remove the ownership of the protected object.
27983
27984 * s-taprob.ads (Protection): Add the field Owner, used to store the
27985 protected object's owner.
27986 This component is needed for detecting one type of potentially blocking
27987 operations (external calls on a protected subprogram with the same
27988 target object as that of the protected action). Document the rest of
27989 the components.
27990
27991 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
27992 Initialize the protected object's owner to Null_Task.
27993 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
27994 caller of this procedure is already the protected object's owner then
27995 Program_Error is raised.
27996 Do not raise Program_Error when this procedure is called from a
27997 protected action.
27998 (Unlock_Entries): Remove the ownership of the protected object.
27999 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
28000 of this procedure is already the protected object's owner then
28001 Program_Error is raised.
28002 Do not raise Program_Error when this procedure is called from
28003 a protected action.
28004
28005 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
28006 used to store the protected object's owner.
28007
28008 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
28009 effect and this procedure (a potentially blocking operation) is called
28010 from whithin a protected action, Program_Error is raised.
28011 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
28012 and this procedure (a potentially blocking operation) is called from
28013 whithin a protected action, Program_Error is raised.
28014
280152005-03-17 Vincent Celier <celier@adacore.com>
28016 Nicolas Setton <setton@adacore.com>
28017
28018 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
28019 switch, not supported by the linker on Darwin. Add '_' before
28020 <library>init, as this character is added unconditionally by the
28021 compiler.
28022 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
28023 correct one ".dylib". This fixes detection of the archive files when
28024 building library projects.
28025
280262005-03-17 Vincent Celier <celier@adacore.com>
28027
28028 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
28029 -gnat83, -gnat95 and -gnat05.
28030
280312005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
28032
28033 * gnat_ugn.texi: Document gnatmem restriction
28034
280352005-03-17 Thomas Quinot <quinot@adacore.com>
28036
28037 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
28038 cleanup
28039
280402005-03-17 Robert Dewar <dewar@adacore.com>
28041
28042 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
28043 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
28044 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
28045
28046 * casing.adb: Comment improvements
28047
280482005-03-17 Pascal Obry <obry@adacore.com>
28049
28050 * g-expect.adb: Minor reformatting.
28051
a1286ef5
ZW
280522005-03-15 Zack Weinberg <zack@codesourcery.com>
28053
28054 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
28055 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
28056 to dependencies.
28057
2532808d
VC
280582005-03-15 Vincent Celier <celier@adacore.com>
28059
a1286ef5
ZW
28060 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
28061 Add new parameter In_Tree to specify the project tree: needed
28062 by the project manager. Adapt to changes in project manager
28063 using new parameter In_Tree.
2532808d 28064
e2d6b9b9
JJ
280652005-03-15 Jakub Jelinek <jakub@redhat.com>
28066
28067 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
28068 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
28069 ada/bldtools to avoid make -jN failures.
28070
813edff1
EB
280712005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28072
28073 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
28074 to NULL_TREE on entry.
28075
4f51c6e7
AC
280762005-03-15 Robert Dewar <dewar@adacore.com>
28077
28078 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28079 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28080 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28081 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28082 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28083 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
28084 system-interix.ads, system-solaris-sparc.ads,
28085 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28086 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
28087 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
28088 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
28089 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
28090 Compiler_System_Version to be False.
28091
28092 * opt.ads: Add new flag Opt.Address_Is_Private
28093
28094 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
28095 Add new parameter Compiler_System_Version to avoid checking for
28096 completeness of parameters when compiler is compiling itself.
28097 Allows old versions of GNAT to be compiled with new compiler.
28098
280992005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28100
28101 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
28102 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
28103 calling thread.
28104 (Stack_Base_Available): New flag.
28105 (Get_Page_Size): New overloaded functions imported from C.
28106 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
28107 PROT_ON, PROT_OFF): New constants.
28108 (mprotect): New function imported from C.
28109 (pthread_teb_t): New record type.
28110
28111 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
28112 (Create_Task): Account for the Yellow Zone and the guard page.
28113
281142005-03-15 Vincent Celier <celier@adacore.com>
28115
28116 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28117 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28118 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
28119 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
28120 Library_File_Name_For): Add new parameter In_Tree
28121 to specify the project tree: needed by the project manager.
28122 Adapt to changes in project manager using new parameter In_Tree.
28123 Remove local imports, use functions in System.CRTL.
28124
28125 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
28126 to use the project manager.
28127
28128 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
28129 In_Tree to designate the project tree. Adapt to changes in the project
28130 manager, using In_Tree.
28131
28132 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
28133 Copy_Interface_Sources): Add new parameter In_Tree to specify the
28134 project tree: needed by the project manager.
28135 (Build_Library): Check that Arg'Length >= 6 before checking if it
28136 contains "--RTS=...".
28137
28138 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
28139 Library_File_Name_For): Add new parameter In_Tree to specify the
28140 project tree: needed by the project manager.
28141
28142 * prj.ads, prj.adb: Major modifications to allow several project trees
28143 in memory at the same time.
28144 Change tables to dynamic tables and hash tables to dynamic hash
28145 tables. Move tables and hash tables from Prj.Com (in the visible part)
28146 and Prj.Env (in the private part). Move some constants from the visible
28147 part to the private part. Make other constants deferred.
28148 (Project_Empty): Make it a variable, not a function
28149 (Empty_Project): Add parameter Tree. Returns the data with the default
28150 naming data of the project tree Tree.
28151 (Initialize): After updating Std_Naming_Data, copy its value to the
28152 component Naming of Project Empty.
28153 (Register_Default_Naming_Scheme): Use and update the default naming
28154 component of the project tree, instead of the global variable
28155 Std_Naming_Data.
28156 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
28157 Tree is not defaulted, return the default naming data of the Tree.
28158 (Initial_Buffer_Size): Constant moved from private part
28159 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
28160 variables initialized in procedure Initialize.
28161 (Add_To_Buffer): Add two in out parameters to replace global variables
28162 Buffer and Buffer_Last.
28163 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
28164 functions.
28165 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
28166 hash tables.
28167 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
28168 for the project tree.
28169 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
28170 constant at the beginning of the package spec, so that they cane be used
28171 in subprograms before their full declarations.
28172 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
28173 (Empty_Project): Add parameter of type Project_Node_Ref
28174 (Private_Project_Tree_Data): Add component Default_Naming of type
28175 Naming_Data.
28176 (Buffer, Buffer_Last): remove global variables
28177 (Add_To_Buffer): Add two in out parameters to replace global variables
28178 Buffer and Buffer_Last.
28179 (Current_Packages_To_Check): Remove global variable
28180 (Empty_Name): Move to private part
28181 (No-Symbols): Make it a constant
28182 (Private_Project_Tree_Data): New type for the private part of the
28183 project tree data.
28184 (Project_Tree_Data): New type for the data of a project tree
28185 (Project_Tree_Ref): New type to designate a project tree
28186 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
28187 for the project tree.
28188
28189 * prj-attr.ads: Add with Table; needed, as package Prj no longer
28190 imports package Table.
28191
28192 * prj-com.adb: Remove empty, no longer needed body
28193
28194 * prj-com.ads: Move most of the content of this package to package Prj.
28195
28196 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
28197 designate the project node tree and Packages_To_Check to replace
28198 global variable Current_Packages_To_Check.
28199 Add new parameters In_Tree and Packages_To_Check to local subprograms,
28200 when needed. Adapt to changes in project manager with project node tree
28201 In_Tree.
28202
28203 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
28204 project tree to most subprograms. Move tables and hash tables to
28205 private part of package Prj.
28206 Adapt to changes in project manager using project tree In_Tree.
28207
28208 * prj-makr.adb (Tree): New constant to designate the project node tree
28209 Adapt to change in project manager using project node tree Tree
28210
28211 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
28212 display the Library_Src_Dir and the Library_Dir.
28213 Add new parameter In_Tree to designate the project node tree to most
28214 subprograms. Adapt to changes in the project manager, using project tree
28215 In_Tree.
28216 (Check_Naming_Scheme): Do not alter the casing on platforms where
28217 the casing of file names is not significant.
28218 (Check): Add new parameter In_Tree to designate the
28219
28220 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
28221 designate the project tree.
28222 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
28223
28224 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
28225 to replace those that were in the private part of package Prj.
28226 Add new parameter In__Tree to designate the project node tree to most
28227 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
28228 (Post_Parse_Context_Clause): When specifying the project node of a with
28229 clause, indicate that it is a limited with only if there is "limited"
28230 in the with clause, not necessarily when In_Limited is True.
28231 (Parse): Add new parameter In_Tree to designate the project node tree
28232
28233 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
28234 designate the project node tree. Adapt to change in Prj.Tree with
28235 project node tree In_Tree.
28236
28237 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
28238 tree In_Tree in the call to function Empty_Process to give its initial
28239 value to the project data Processed_Data.
28240 Add new parameters In_Tree to designate the project tree and
28241 From_Project_Node_Tree to designate the project node tree to several
28242 subprograms. Adapt to change in project manager with project tree
28243 In_Tree and project node tree From_Project_Node_Tree.
28244
28245 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
28246 to replace those that were in the private part of package Prj.
28247 Add new parameter In_Tree to designate the project node tree to most
28248 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
28249
28250 * prj-tree.ads, prj-tree.adb: Add new parameter of type
28251 Project_Node_Tree_Ref to most subprograms.
28252 Use this new parameter to store project nodes in the designated project
28253 node tree.
28254 (Project_Node_Tree_Ref): New type to designate a project node tree
28255 (Tree_Private_Part): Change table to dynamic table and hash tables to
28256 dynamic hash tables.
28257
28258 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
28259 the project tree to most subprograms. Adapt to changes in project
28260 manager using project tree In_Tree.
28261
28262 * makegpr.adb (Project_Tree): New constant needed to use project
28263 manager.
28264
282652005-03-15 Olivier Hainque <hainque@adacore.com>
28266
28267 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
28268 for sigactions with SA_SIGINFO set. Call
28269 __gnat_adjust_context_for_raise before raising, to perform the
28270 potentially required adjustments to the machine context for the GCC
28271 unwinder.
28272
28273 * raise.h (__gnat_adjust_context_for_raise): New prototype.
28274
28275 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
28276 Adjust PC by one in the provided machine context.
28277 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
28278 so that the handler is passed the context structure to adjust prior to
28279 the raise.
28280 (__gnat_error_handler) HPUX: Adjust the signature to match what an
28281 SA_SIGINFO sigaction should look like. Call
28282 __gnat_adjust_context_for_raise before actually raising.
28283 (__gnat_adjust_context_for_raise): Default noop to help PC
28284 adjustments before raise from signal handlers.
28285 (__gnat_error_handler): Indirectly call a predicate function to
28286 determine if a condition should be resignaled or not.
28287 (__gnat_set_resignal_predicate): User interface to modify the predicate.
28288 (__gnat_default_resignal_p): Default GNAT predicate.
28289
282902005-03-15 Doug Rupp <rupp@adacore.com>
28291
28292 * adaint.c: Prefix #include of VMS system header files with vms/
28293 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
28294 Do not define a dummy function "convert_addresses" under Darwin,
28295 not needed.
28296
28297 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
28298 with vms/
28299
283002005-03-15 Nicolas Setton <setton@adacore.com>
28301
28302 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
28303 PPC/AIX.
28304
283052005-03-15 Robert Dewar <dewar@adacore.com>
28306
28307 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
28308 AI-386.
28309
28310 * a-retide.ads: Minor comment changes
28311
283122005-03-15 Robert Dewar <dewar@adacore.com>
28313
28314 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
28315 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
28316 Realloc_For_Chunk to private part of package.
28317 New subprograms for AI-301
28318
28319 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
28320 Get_Line procedure.
28321 Avoid unnecessary use of Get/Set_Wide_String
28322
283232005-03-15 Robert Dewar <dewar@adacore.com>
28324
28325 PR ada/13470
a1286ef5 28326 * a-stunau.ads, a-stunau.adb:
4f51c6e7
AC
28327 Change interface to allow efficient (and correct) implementation
28328 The previous changes to allow extra space in unbounded strings had
28329 left this interface a bit broken.
28330
28331 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
28332
28333 * g-spipat.ads, g-spipat.adb: New interface for Get_String
28334 Minor reformatting (function specs)
28335
28336 * g-spitbo.adb: New interface for Get_String
28337
28338 * g-spitbo.ads: Minor reformatting
28339
28340 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
28341
28342 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
28343
283442005-03-15 Javier Miranda <miranda@adacore.com>
28345 Robert Dewar <dewar@adacore.com>
28346 Thomas Quinot <quinot@adacore.com>
28347 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28348
28349 * atree.ads, atree.adb: Add support for Elist24 field
28350
28351 * atree.h: Fix wrong definition of Field27
28352 Add support for Elist16 field
28353 Add support for Elist24 field
28354
28355 * einfo.ads, einfo.adb (Abstract_Interfaces,
28356 Set_Abstract_Interfaces): New subprograms.
28357 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
28358 subprograms.
28359 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
28360 entities rather than a single node.
28361 (Is_Interface, Set_Is_Interface): New subprogram
28362 (First_Tag_Component): New syntesized attribute
28363 (Next_Tag_Component): New synthesized attribute
28364 (Write_Entity_Flags): Upgraded to write Is_Interface
28365 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
28366 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
28367 (Task_Body_Procedure): New subprogram to read this attribute.
28368 (Set_Task_Body_Procedure): New subprogram to set this attribute.
28369 (Has_Controlled_Component): Now applies to all entities.
28370 This is only a documentation change, since it always worked to apply
28371 this to other than composite types (yielding false), but now this is
28372 official.
28373 Update documentation on Must_Be_Byte_Aligned for new spec
28374
28375 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
28376 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
28377 uses of the Access_Disp_Table attribute to reference the first dispatch
28378 table associated with a tagged type. As
28379 part of the implementation of abstract interface types,
28380 Access_Disp_Table has been redefined to contain a list of dispatch
28381 tables (rather than a single dispatch table).
28382 Similarly, upgrade all the references to Tag_Component by the
28383 new attribute First_Tag_Component.
28384 (Find_Inherited_TSS): Moved to exp_tss.
28385 Clean up test in Expand_N_Object_Declaration for cases
28386 where we need to do a separate assignment of the initial value.
28387 (Expand_N_Object_Declaration): If the expression in the
28388 declaration of a tagged type is an aggregate, no need to generate an
28389 additional tag assignment.
28390 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
28391 is to be deleted.
28392 Bit packed array ops are only called if operands are known to be
28393 aligned.
28394 (Component_Equality): When returning an N_Raise_Program_Error statement,
28395 ensure that its Etype is set to Empty to avoid confusing GIGI (which
28396 expects that only expressions have a bona fide type).
28397 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
28398 determine the amount of data to be copied.
28399
28400 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
28401 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
28402 INTERFACE_TYPE_DEFINITION ::=
28403 [limited | task | protected | synchronized] interface
a1286ef5 28404 [AND interface_list]
4f51c6e7
AC
28405
28406 * par-ch3.adb (P_Type_Declaration): Modified to give support to
28407 interfaces.
28408 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
28409 interfaces.
28410 (P_Interface_Type_Definition): New subprogram that parses the new
28411 syntax rule of Ada 2005 interfaces
28412 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
28413 messages by the correct RENAMES (quotes removed).
28414
28415 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
28416 attribute First_Tag_Component.
28417
28418 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
28419 (Interface_List, Set_Interface_List): New subprograms.
28420 (Interface_Present, Set_Interface_Present): New subprograms.
28421 (Limited_Present, Set_Limited_Present): Available also in derived
28422 type definition nodes.
28423 (Protected_Present, Set_Protected_Present): Available also in
28424 record type definition and
28425 derived type definition nodes.
28426 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
28427 (Task_Present, Set_Task_Present): New subprogram.
28428 (Task_Body_Procedure): Removed.
28429 (Set_Task_Body_Procedure): Removed.
28430 These subprogram have been removed because the attribute
28431 Task_Body_Procedure has been moved to the corresponding task type
28432 or task subtype entity to leave a field free to store the list
28433 of interfaces implemented by a task (for AI-345)
28434 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
28435 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
28436 expression flag Do_Range_Check
28437 (Exception_Junk): Change to Flag7 to accomodate above change
28438 (Box_Present, Default_Name, Specification, Set_Box_Present,
28439 Set_Default_Name, Set_Specification): Expand the expression
28440 "X in N_Formal_Subprogram_Declaration" into the corresponding
28441 two comparisons. Required to use the csinfo tool.
28442
28443 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
28444 "with string" given.
28445
a1286ef5
ZW
28446 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
28447 expression given.
4f51c6e7
AC
28448
28449 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
28450 in 2005 mode
28451
28452 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
28453 attribute Task_Body_Procedure rather than the old semantic field that
28454 was available in the task_type_declaration node.
28455
28456 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
28457 interface type definitions.
28458 (P_Formal_Derived_Type_Definition): Modified to handle the list of
28459 interfaces.
28460
28461 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
28462 task type declaration.
28463 (P_Protected): Modified to handle the list of interfaces in a
28464 protected type declaration.
28465
284662005-03-15 Doug Rupp <rupp@adacore.com>
28467 Vincent Celier <celier@adacore.com>
28468
28469 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
28470 (Gen_Output_File_C): Likewise.
28471 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
28472
284732005-03-15 Thomas Quinot <quinot@adacore.com>
28474
28475 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
28476 is an N_Raise_Constraint_Error node, create a new copy of it without
28477 going through a call to Duplicate_Subexpr.
28478
284792005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28480 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28481 Nicolas Setton <setton@adacore.com>
28482 Ed Schonberg <schonberg@adacore.com>
28483
28484 PR ada/19900
28485 PR ada/19408
28486 PR ada/19140
28487 PR ada/20255
4f51c6e7
AC
28488 * decl.c (gnat_to_gnu_field): Reject aliased components with a
28489 representation clause that prescribes a size not equal to the rounded
28490 size of their types.
28491 (gnat_to_gnu_entity, case E_Component): Always look at
28492 Original_Record_Component if Present and not the entity.
28493 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
28494 of tagged extension types by not making field for components that are
28495 inside the parent.
28496 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
28497 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
28498 expression to the type of the object when the object is constant.
28499 Reverse defer_debug_incomplete_list before traversing it, so that trees
28500 are processed in the order at which they were added to the list. This
28501 order is important when using the stabs debug format.
28502 If we are deferring the output of debug information, also defer this
28503 output for a function return type.
28504 When adding fields to a record, prevent emitting debug information
28505 for incomplete records, emit the information only when the record is
28506 complete.
28507 (components_to_record): New parameter defer_debug.
28508 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
28509 (gnat_to_gnu_field_decl): New function.
28510 (substitution_list, annotate_rep): Call it.
28511 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
28512 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
28513 No longer update discriminants to not be a COMPONENT_REF.
28514 (copy_alias_set): Strip padding from input type; also handle
28515 unconstrained arrays properly.
28516
28517 * gigi.h (write_record_type_debug_info): New function.
28518 Convert to use ANSI-style prototypes. Remove unused
28519 declarations for emit_stack_check, elab_all_gnat and
28520 set_second_error_entity.
28521 (gnat_to_gnu_field_decl): New decl.
28522
28523 * utils.c (write_record_type_debug_info): New function.
28524 (finish_record_type): Delegate generation of debug information to
28525 write_record_type_debug_info.
28526 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
28527 (update_pointer_to): Fix pasto.
28528 (convert) <UNION_TYPE>: Accept slight type variations when
28529 converting to an unchecked union type.
28530
28531 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
28532 replace the N_Freeze_Entity with a null statement.
28533
28534 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
28535 within a constrained subcomponent of an enclosing record, place the
28536 freeze nodes in the scope stack entry for the enclosing record.
28537 (Undelay_Type): New Subprogram.
28538 (Set_Small_Size): Pass T, the type to modify; all callers changed.
28539 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
28540 within records; allow them to have freeze nodes if their base types
28541 aren't frozen yet.
28542
017205f5
EB
28543 * exp_util.adb (Remove_Side_Effects): Properly test for
28544 Expansion_Delayed and handle case when it's inside an
28545 N_Qualified_Expression.
28546
4f51c6e7
AC
28547 * sem_ch3.adb (Derived_Type_Declaration): New predicate
28548 Comes_From_Generic, to recognize accurately that the parent type in a
28549 derived type declaration can be traced back to a formal type, because
28550 it is one or is derived from one, or because its completion is derived
28551 from one.
28552 (Constrain_Component_Type): If component comes from source and has no
28553 explicit constraint, no need to constrain in in a subtype of the
28554 enclosing record.
28555 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
28556 Minor change to propagate Is_Ada_2005 flag
28557
28558 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
28559 Expansion_Delayed is False.
28560 (assoc_to_constructor): Ignore fields that have a
28561 Corresponding_Discriminant.
28562 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
28563 function returns "by target", dereference the target pointer using the
28564 type of the actual return value.
28565 <all>: Be prepared for a null gnu_result.
28566 (processed_inline_subprograms): Check flag_really_no_inline
28567 instead of flag_no_inline.
28568 (set_second_error_entity): Remove unused function.
28569 (gnat_to_gnu, case N_Selected_Component): Call
28570 gnat_to_gnu_field_decl.
28571 (assoc_to_constructor): Likewise.
28572
285732005-03-15 Robert Dewar <dewar@adacore.com>
28574 Ed Schonberg <schonberg@adacore.com>
28575 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28576
4f51c6e7
AC
28577 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
28578 Must_Be_Byte_Aligned for cases where we do not need to use a
28579 System.Pack_nn unit.
28580
28581 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
28582 as procedures.
28583 Needed now that we do some processing for IN parameters as well. This
28584 may well fix some unrelated errors.
28585 (Expand_Call): Handle case of unaligned objects (in particular those
28586 that come from packed arrays).
28587 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
28588 renamed entity is an inherited operation, re-expand the call using the
28589 original operation, which is the one to call.
28590 Detect attempt to inline parameterless recursive subprogram.
28591 (Represented_As_Scalar): Fix to work properly with private types
28592 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
28593 accurate estimate. Yields True in far fewer cases than before,
28594 improving the quality of code that depends on this test.
4f51c6e7
AC
28595
28596 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
28597 over both visible and private declarations to remove them from tree,
28598 and mark subprograms declared in package as eliminated, to prevent
28599 spurious use in subsequent compilation of generic units in the context.
28600
28601 * exp_util.ads: Minor cleanup in variable names
28602
28603 * sem_eval.ads, sem_eval.adb: Minor reformatting
28604 (Compile_Time_Known_Bounds): New function
28605
286062005-03-15 Ed Schonberg <schonberg@adacore.com>
28607
28608 * exp_ch7.adb (Convert_View): Use base types of underlying types when
28609 determining whether an unchecked conversion is needed for the argument
28610 of an initialization call.
28611
286122005-03-15 Ed Schonberg <schonberg@adacore.com>
28613
28614 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
28615 that appears in the instantiation rather than the internal subtype
28616 generated in the wrapper package, to avoid anomalies in gigi when the
28617 target is derived from a private type whose full view is an access type.
28618
286192005-03-15 Robert Dewar <dewar@adacore.com>
28620
28621 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
28622 not needed.
28623 Add documentation to replace the use of this flag
28624 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
28625 the x86_64.
28626
286272005-03-15 Thomas Quinot <quinot@adacore.com>
28628
28629 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
28630 here from exp_attr so it can be shared between exp_attr and exp_dist.
28631 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
28632 all TSS names, not a subset thereof, and the previous name introduced
28633 an unnecessarily confusion that a distinction might exist between
28634 "OK" TSS names and some "not OK" TSS names.
28635
286362005-03-15 Doug Rupp <rupp@adacore.com>
28637
28638 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
28639 Command_Name.
28640
286412005-03-15 Pascal Obry <obry@adacore.com>
28642 Eric Botcazou <ebotcazou@adacore.com>
28643
28644 PR ada/20226
28645 PR ada/20344
4f51c6e7
AC
28646 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
28647 when IN_RTS. This is to work around a bootstrap path problem.
28648
28649 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
28650 table and pass it to __gnat_install_SEH_handler().
28651 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
28652
28653 * lang.opt: Fix specification of -fRTS=.
28654
286552005-03-15 Doug Rupp <rupp@adacore.com>
28656 Bernard Banner <banner@adacore.com>
28657 Vincent Celier <celier@adacore.com>
28658 Arnaud Charlet <charlet@adacore.com>
28659
28660 PR ada/6852
28661 This change works fine when gnatlib is built from the gcc directory,
28662 but does not work when using the libada Makefile, since GCC_FOR_TARGET
28663 is not passed to ada/Makefile.in, so more work is needed by a
28664 Makefile/configure expert.
28665
28666 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
28667 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
28668 Setup gnatlink switch -M for x86_64 linux, as it is already setup
28669 for Linux x86.
28670 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
28671 Run ranlib on libgccprefix.a
28672 Define PREFIX_OBJS for Darwin, to build libgccprefix.
28673 (ADA_INCLUDE_SRCS): Split Ada packages.
28674
286752005-03-15 Robert Dewar <dewar@adacore.com>
28676
28677 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
28678
28679 * impunit.adb: Add GNAT.UTF_32
28680
28681 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
28682
28683 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
28684 now uses GNAT.UTF_32).
28685
28686 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
28687 capabilities for categorizing characters using Unicode categories
28688
286892005-03-15 Ed Schonberg <schonberg@adacore.com>
28690
28691 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
28692 instantiation that has been rewritten as a package body, retrieve spec
28693 to generate proper name for implicit_with_clause.
28694 (Install_Parents): Recognize a parent that is an instantiation but has
28695 been rewritten as a package declaration during analysis.
28696
286972005-03-15 Javier Miranda <miranda@adacore.com>
28698 Ed Schonberg <schonberg@adacore.com>
28699
28700 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
28701 parameter reported some error we immediately return. This improves the
28702 behaviour of the frontend in case of errors.
28703 (Install_Parent, Remove_Parent): Introduce new flag
28704 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
28705 ancestor of a generic child unit, when the child is being instantiated.
28706 (Inline_Instance_Body): If we are compiling the private
28707 part or the body of a child unit, restore the proper visibility of the
28708 parents after compiling the instance body.
28709
287102005-03-15 Ed Schonberg <schonberg@adacore.com>
28711 Javier Miranda <miranda@adacore.com>
28712
28713 PR ada/15608
28714 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
28715 of a private type, in which case it is underlying_type that denotes
28716 the proper task. Also modified to use the new entity attribute
28717 that is directly available in the task type and task subtype entities
28718 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
28719 arrays when other dimensions than the first are constrained by
28720 discriminants of an enclosing record.
28721 (Insert_Explicit_Dereference): If the prefix is an indexed component or
28722 a combination of indexed and selected components, find ultimate entity
28723 and generate the appropriate reference for it, to suppress spurious
28724 warnings.
28725 (Note_Possible_Modification): If an entity name has no entity, return.
28726 (Is_Variable): A function call never denotes a variable.
28727 (Requires_Transient_Scope): For record types, recurse only on
28728 components, not on internal subtypes that may have been generated for
28729 constrained components.
28730
287312005-03-15 Ed Schonberg <schonberg@adacore.com>
28732
28733 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
28734 Eliminated as candidates for resolution. Both efficient, and avoids
28735 anomalies with operators declared in deleted code.
28736 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
28737 expansion is disabled (as when compiling a generic) to prevent spurious
28738 warnings on prefixes of selected components.
28739
287402005-03-15 Ed Schonberg <schonberg@adacore.com>
28741
28742 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
28743 attached to a list before checking whether it appears in the private
28744 declarations of the current package.
28745 (Make_Inequality_Operator): Insert declaration in proper declarative
28746 list rather than just setting the Parent field, so that
28747 Is_Private_Declaration can handle it properly.
28748
287492005-03-15 Ed Schonberg <schonberg@adacore.com>
28750
28751 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
28752 a renaming a body, check that the renamed subprogram in not intrinsic.
28753 (Find_Direct_Name): If several use_visible entities hide
28754 each other, and the context is a predefined file compiled through
28755 rtsfind, keep only the entity that comes from a predefined file.
28756
287572005-03-15 Geert Bosch <bosch@adacore.com>
28758
28759 * s-fatgen.adb (Valid): Extend special exceptions to account for long
28760 long float padding to also cover AMD64 and IA64.
28761
287622005-03-15 Gary Dismukes <dismukes@adacore.com>
28763
28764 * s-imgwch.adb: Add with and use of Interfaces.
28765 (Img_Wide_Character): Change type of Val to Unsigned_16.
28766 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
28767
287682005-03-15 Matthew Gingell <gingell@adacore.com>
28769
28770 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
28771
287722005-03-15 Robert Dewar <dewar@adacore.com>
28773
28774 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
28775
28776 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
28777
28778 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
28779
287802005-03-15 Robert Dewar <dewar@adacore.com>
28781
28782 * s-bitops.adb, s-bitops.ads,
28783 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
28784 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
28785 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
28786 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
28787 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
28788 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
28789 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
28790 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
28791 reformatting.
28792
287932005-03-15 Eric Botcazou <ebotcazou@adacore.com>
28794
28795 * utils2.c (build_binary_op): Fix typo.
28796
287972005-03-15 Doug Rupp <rupp@adacore.com>
28798
28799 * s-crtl.ads (popen,pclose): New imports.
28800
288012005-03-15 Cyrille Comar <comar@adacore.com>
28802
28803 * comperr.adb (Compiler_Abort): remove references to obsolete
28804 procedures in the bug boxes for various GNAT builds.
28805
288062005-03-15 Vincent Celier <celier@adacore.com>
28807
28808 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
28809
288102005-03-15 Geert Bosch <bosch@adacore.com>
28811 Arnaud Charlet <charlet@adacore.com>
28812 Robert Dewar <dewar@adacore.com>
28813 Cyrille Comar <comar@adacore.com>
28814 Sergey Rybin <rybin@adacore.com>
28815
28816 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
28817 too specific and long-winded to be appropriate for the GNAT User's
28818 Guide.
28819 Warn about use of GCC switches not documented in the GNAT User's Guide,
28820 as these may cause generated code to not conform to Ada semantics.
28821 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
28822 Add documentation for -gnat95 and -gnat05 switches
28823 Remove paragraph documenting obsolete way to refer to third party
28824 libraries.
28825 Add a few references to Ada_05 that were missing.
28826 Update documentation on -gnatZ/-gnatL.
28827 Document limitation when using -m64 under Solaris.
28828 Change the "Name Casing" subsection of the pretty-printer section
28829 according to the changes in the dictionary processing.
28830
28831 * gnat_rm.texi: Document the Ada_05 pragma.
28832 Section on record representation clauses describes the new more
28833 relaxed rules about placement of large packed bit array components.
28834 Add documentation of GNAT.UTF_32
28835
9e94c78f 288362005-03-12 Daniel Berlin <dberlin@dberlin.org>
c75ab022
DB
28837
28838 * misc.c (gnat_post_options): Turn off structural
28839 aliasing for now.
4f51c6e7 28840
9e94c78f 288412005-03-08 Laurent Guerby <laurent@guerby.net>
391bdf45
LG
28842
28843 * system-linux-sparc.ads: Fix typo in previous commit.
28844
9e94c78f
EB
288452005-03-07 James A. Morrison <phython@gcc.gnu.org>
28846 Laurent Guerby <laurent@guerby.net>
fe8a06f2 28847
a1286ef5
ZW
28848 PR ada/20035
28849 * system-linux-sparc.ads: New.
28850 * Makefile.in: Add sparc linux entry.
fe8a06f2 28851
a1286ef5 288522005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
9811fd17 28853
a1286ef5 28854 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
9811fd17
DS
28855 parameters as unused.
28856
5395b47b
NN
288572005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
28858 Partial merge from libada-gnattools-branch:
28859
28860 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5
ZW
28861 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
28862 into code in gnattools/Makefile.in. Remove direct dependencies on
28863 stamp-tools by tools clauses.
5395b47b 28864 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5 28865 * config-lang.in: Add gnattools to $lang_dirs.
5395b47b 28866
4fa0972f
AP
288672005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
28868
28869 PR ada/19942
2532808d 28870 * utils.c (gnat_type_for_mode): Return null instead of ICE because
a1286ef5 28871 we asked for an unknown mode.
4fa0972f 28872
bd0b34a8
RH
288732005-02-12 Richard Henderson <rth@redhat.com>
28874
28875 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
28876 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
28877
0ebbef54
AJ
288782005-02-10 Andreas Jaeger <aj@suse.de>
28879
28880 * init.c (__gnat_initialize): Mark parameter as unused.
28881
fc5a191d
AC
288822005-02-09 Doug Rupp <rupp@adacore.com>
28883
28884 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
28885 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
28886
288872005-02-09 Doug Rupp <rupp@adacore.com>
28888
28889 * gnatchop.adb (dup, dup2),
28890 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
28891
28892 * gnatlbr.adb (mkdir),
28893 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
28894
28895 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
28896
288972005-02-09 Doug Rupp <rupp@adacore.com>
28898
28899 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
28900
289012005-02-09 Robert Dewar <dewar@adacore.com>
28902 Thomas Quinot <quinot@adacore.com>
28903 Javier Miranda <miranda@adacore.com>
28904 Pascal Obry <obry@adacore.com>
28905 Ed Schonberg <schonberg@adacore.com>
28906 Doug Rupp <rupp@adacore.com>
28907 Gary Dismukes <dismukes@adacore.com>
28908 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28909
28910 * g-zstspl.ads: New file.
28911
28912 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
28913
28914 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
28915 Ada 95 mode
28916 Add definition of Wide_Wide_Space for AI-285
28917
28918 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
28919 interface (to support Ada 95 and Ada 2005 units).
28920 Add Unbounded_IO files
28921 Add entries for Wide_Wide packages for AI-285
28922 Add list of containers packages to Ada 2005 unit list
28923
28924 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
28925 support new Unbounded_IO package cleanly.
28926
28927 * g-utf_32.ads, g-utf_32.adb: New files.
28928
28929 * Makefile.rtl: Add entry for g-utf_32
28930 Add new files for Unbounded_IO
28931 Adjust make file for new AI-285 wide wide packages
28932 Add AI-302 containers to the run time.
28933
28934 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
28935 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
28936 subprograms for AI-301.
28937
28938 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
28939
28940 * a-stunau.ads: Minor comment correction
28941
28942 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
28943 etc.
28944 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
28945 (Check_RPC): Update to match changes in expanded code.
28946 Clean up unused entity.
28947
28948 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
28949 was not taken into account.
28950 This includes proper initialization with Normalize_Scalars.
28951 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
28952 normalize scalars cases (particularly the latter) to do a better job
28953 of finding invalid representations.
28954
28955 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
28956
28957 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
28958 used
28959
28960 * exp_dist.adb: Add support for wide wide character type
28961 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
28962 private part, generate stub bodies at the end of the private part,
28963 not the visible part.
28964 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
28965 PolyORB support.
28966 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
28967 generic wrapper to execute final processing after completing the
28968 expansion of the RPC receiver for an RACW.
28969
28970 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
28971 packages and attributes.
28972 (Preset_Names): Addition of the new reserved words of Ada 2005,
28973 that is interface, overriding and synchronized.
28974 (Get_Pragma_Id): Give support to the use of the new reserved word
28975 "interface" as a pragma name.
28976 (Is_Pragma_Name): Give support to the use of the new reserved word
28977 "interface" as a pragma name.
28978 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
28979 attribute implementation.
28980
28981 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
28982 checks to entities that are output parameters of Asm operations.
28983 Handle the Stream_Size attribute.
28984 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
28985
28986 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
28987
28988 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
28989 for second parameter being 0.0.
28990 Add support for wide wide character type.
28991 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
28992
28993 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
28994 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
28995 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
28996 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
28997 for wide wide character cases.
28998
28999 * cstand.adb: Create entities for Wide_Wide_Character and
29000 Wide_Wide_String.
29001
29002 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
29003 accordance with AI-258.
29004 Add new declarations for 16/32 bit C character types (Part of AI285)
29005
29006 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
29007 (Obsolescent_Warning): New field
29008 (Rep_Clause): New local subprogram used to share code. Returns the rep
29009 clause for which the name is given in parameter.
29010 (Has_Stream_Size_Clause): New routine.
29011 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
29012 (Address_Clause): Implementation is now using Rep_Clause.
29013 (Alignment_Clause): Idem.
29014 (Size_Clause): Idem.
29015
29016 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
29017 entity in non-Ada 2005 mode and generate warning.
29018
29019 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
29020 (Prag): Code cleanup. Remove old gnat pragma "overriding"
29021
29022 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
29023 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
29024 on the named unit if the pragma is not in the current compilation unit,
29025 so that elaboration calls in the current unit can set up an elaboration
29026 dependency on the named unit, as needed.
29027 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
29028 subprogram as well as for subprograms declared within a package.
29029 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
29030 pragma overriding.
29031
29032 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
29033 to z) to avoid some instances of duplication for Wide_Wide packages.
29034
29035 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
29036 characters.
29037
29038 * scn.adb: Char_Literal_Value field is now a Uint
29039
29040 * scng.adb: Significant rewrite to handle new Ada 2005 features
29041 allowing wide and wide wide characters in program text, e.g. for
29042 identifiers, as described in AI-285.
29043 (Set_Reserved): New procedure, makes setting up keywords cleaner.
29044 (Initialize_Scanner): Register the new reserved words of Ada 2005.
29045 (Scan): Give support to the new reserved words.
29046
29047 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
29048 warning notifying that interface, overriding, and synchronized are
29049 new reserved words.
29050 (P_Pragma): Allow the use of the new reserved word "interface" as
29051 a pragma name.
29052
29053 * gnatls.adb, gnatbind.adb,
29054 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
29055 identifiers named "interface" to "SAL_Interface".
29056
29057 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
29058 (Structured Exception handling).
29059 (Gen_Main_C): Idem.
29060
a1286ef5 29061 * bindgen.adb:
fc5a191d
AC
29062 (Gen_Main_Ada): Set the default exit code if specified.
29063 (Gen_Main_C): Likewise.
29064 Part of *DC20-006.
29065 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
29066 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
29067
29068 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
29069 new -Xnnn switch.
29070
29071 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
29072 has a collision with the new Ada 2005 "interface" reserved word.
29073
29074 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
29075 generate a warning notifying that interface, overriding, and
29076 synchronized are new reserved words.
29077
29078 * scans.ads (Token_Type): Addition of the tokens corresponding to the
29079 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
29080 and Tok_Synchronized.
29081
29082 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
29083 "dispatching" rather than "primitive" operations, since dispatching
29084 calls are now allowed to abstract formal subprograms (which are not
29085 primitive).
29086 Char_Literal_Value field is now a Uint
29087 (Resolve_Slice): If the prefix is an access to an unconstrained array,
29088 compute the actual subtype of the designated object to impose the proper
29089 index constraints.
29090 (Resolve_Selected_Component): Do not insert an access check if the
29091 prefix is an access type: such a node is expanded into an explicit
29092 dereference, on which the access check is performed anyway. Removes
29093 expensive duplicate checks.
29094 (Resolve_Call): Use new flag Is_Obsolescent and field
29095 Obsolescent_Warning so that pragma Obsolescent works on library
29096 subprograms.
29097 Add support for wide wide character type
29098 (Resolve_Allocator): Replace the error message on wrong null-exclusion
29099 value by a warning message.
29100 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
29101 as fixed-point, and one of the operands is non-static and universal, it
29102 can only be an illegal exponentiation operation, in which case there is
29103 no real value to retrieve.
29104
29105 * exp_strm.adb: Add support for wide wide character type
29106 (Build_Elementary_Input_Call): Compute the size of the stream element by
29107 querying the rep chain to find the Stream_Attribute attribute value.
29108 (Build_Elementary_Write_Call): Ditto.
29109
29110 * sem_aggr.adb: Char_Literal_Value field is now a Uint
29111 Add support for wide wide character type
29112 Replace the error messages on wrong null-exclusion value by warnings
29113 as described in Ada 2005.
29114 (Resolve_Extension_Aggregate): Document the fact that the error
29115 message on class-wide expressions in extensions aggregates.
29116
29117 * sem_case.adb: Add support for wide wide character type
29118
29119 * sem_ch13.adb: Add support for wide wide character type
29120 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
29121
29122 * sem_ch3.adb: Add support for wide wide character type
29123 (Process_Subtype): If constraint is illegal for the type, set Ekind of
29124 now-useless Itype, to prevent cascaded errors on a compiler built
29125 without -gnatp.
29126
29127 * sem_ch8.adb: Add with and use of Sem_Disp.
29128 (Analyze_Subprogram_Renaming): Replace unclean uses of
29129 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
29130 of Corresponding_Spec to Empty).
29131 (Attribute_Renaming): Replace use of Corresponding_Spec with
29132 Corresponding_ Formal_Spec and simplify condition.
29133 (Use_One_Package): Check that scope of homonym of identifier is defined,
29134 before checking whether it is a wrapper package.
29135 Add support for wide wide character type
29136
29137 * sem_eval.adb: Add support for wide wide character type.
29138 (Eval_Arithmetic_Op): Check for compile time known signed integer
29139 overflow in the non-static case.
29140 (Subtypes_Statically_Match): A formal scalar type and its base type do
29141 not statically match.
29142
29143 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
29144 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
29145 subtype).
29146 (Unit_Declaration_Node): Ditto.
29147 (Is_Variable_Prefix): For the case of an indexed component whose prefix
29148 has a packed array type, the prefix has been rewritten into a type
29149 conversion. Determine variable-ness from the converted expression.
29150 Handle wide wide character cases.
29151
29152 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
29153
29154 * stringt.ads, stringt.adb: Handle full UTF-32 range.
29155 Remove ["0A"] from comment, since it can look like a line terminator.
29156 Currently we don't permit this, but this is under discussion by the
29157 ARG, and it is easy enough to use a different example.
29158
29159 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
29160 handling UTF-32 encoding for wide wide character.
29161 Implement new brackets coding ["hhhhhhhh"]
29162 Add UTF-8 encodings for full UTF-32 range
29163
29164 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
29165
29166 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
29167 bit range Add full UTF-32 support.
29168 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
29169 notify that constraint error will be raised at run-time
29170 because a null value is assigned to a null-excluding object.
29171 Remove some obsolete declarations and make Char_Code
29172 unsigned.
29173
29174 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
29175 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
29176 Rcheck subprograms.
29177
29178 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
29179 wrong null-exclusion value by a warning message.
29180 (Enable_Range_Check): Do range check if the prefix is an
29181 explicit dereference whose designated object is an unconstrained array.
29182 Current algorithm for removing duplicate checks is over-eager in this
29183 case.
29184
29185 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
29186 null-exclusion value by a warning message
29187
29188 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
29189 completely. Add support for Uint2 field
29190
29191 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
29192 exp_prag.adb: Char_Literal_Value field is now a Uint.
29193
29194 * exp_util.adb (Insert_Actions): Replace
29195 N_Formal_Subprogram_Declaration by
29196 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
29197 Char_Literal_Value field is now a Uint.
29198
29199 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
29200 defined for subprogram renaming declarations. When set, the field
29201 indicates the defining entity of a corresponding formal subprogram
29202 when the renaming corresponds to a formal subprogram association in an
29203 instantiation.
29204 (Set_Corresponding_Formal_Spec): New procedure to return
29205 Corresponding_Formal_Spec field.
29206 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
29207 (which is now a subtype).
29208 Char_Literal_Value field is now a Uint
29209
29210 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
29211 pointer to the base of the dispatch table.
29212 Minor changes to comments.
29213 (Controlling_Type): New function for determining the tagged type
29214 associated with a tagged primitive subprogram.
29215 (Expand_Dispatching_Call): Add support for a controlling actual that is
29216 directly a value of type Ada.Tag rather than a tagged object.
29217
29218 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
29219 describing the new layout.
29220 (Dispatch_Table): The expander computes the actual array size, allocates
29221 the Dispatch_Table record accordingly, and generates code that displaces
29222 the base of the record after the Typeinfo_Ptr component. The access to
29223 these components is done by means of local functions.
29224 (Offset_To_Top): New function.
29225 (Typeinfo_Ptr): New function.
29226 (Get_TSD): Modified to access the new position of the TSD.
29227 (Set_TSD): Modified to save the TSD in its new position.
29228
29229 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
29230 case of formal abstract subprograms. Add check and message for -gnat05.
29231 Update comments.
29232
29233 * sem_ch12.adb: Add with and use for Sem_Disp.
29234 (Analyze_Associations): Minor change from "=" to "in" for use of
29235 N_Formal_Subtype_Declaration (which is now a subtype).
29236 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
29237 N_Formal_Subtype_Declaration (which is now a subtype).
29238 (Analyze_Formal_Subprogram): Add handling for
29239 N_Formal_Abstract_Subprogram, marking the formal as abstract and
29240 dispatching, setting the controlling status of the formal parameters
29241 and result, and issuing an error if there is no controlling type for
29242 the formal subprogram.
29243 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
29244 which is an unclean use of that field, we set the new field
29245 Corresponding_Formal_Spec to make the formal subprogram available to
29246 processing in Analyze_Subprogram_Declaration.
29247 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
29248 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
29249 Constrained, so that it is is does not statically match its anonymous
29250 base type.
29251
29252 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
29253 abstract formal subprograms in error check for functions returning
29254 abstract types. Set scope of new designator for
29255 a parameterless subprogram, so that it is available when checking the
29256 body for nested subprograms, before full analysis of said body.
29257 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
29258 subprogram only if inner one comes from source.
29259 (Analyze_Function_Call): If the call is given in object notation, the
29260 analysis of the name rewrites the node and analyzes it with the proper
29261 argument list. After analyzing the name, if the call has been rewritten
29262 and the result type is set, no further analysis is needed.
29263 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
29264 mark in function specification, in a context where the formals are
29265 visible and hide outer homographs.
29266
29267 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
29268 as the tagged type for the cases of abstract formal subprograms and
29269 renamings of those. Clean up spec comments.
29270 (Check_Dispatching_Context): Add error message to indicate "abstract
29271 procedure", covering the case of a call to a formal abstract procedure
29272 that has statically tagged operands.
29273 (Check_Dispatching_Call): Check for the case of an actual given by
29274 a tag-indeterminate function call whose type is an ancestor of the
29275 containing call's associated tagged type. This situation can occur
29276 for inherited primitives with function defaults. In this case we
29277 use the tagged type's tag directly as the controlling argument for
29278 the calls.
29279 (Expand_Call): Name change on call to Expand_Dispatch_Call.
29280
29281 * sprint.adb (Sprint_Node_Actual): Split
29282 N_Formal_Subprogram_Declaration into two alternatives for the new
29283 cases N_Formal_Abstract_Subprogram_Declaration and
29284 N_Formal_Concrete_Subprogram_Declaration.
29285 Char_Literal_Value field is now a Uint.
29286
29287 * trans.c: Get rid of junk Uint2 reference.
29288 Char_Literal_Value field is now a Uint.
29289 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
29290 (gigi): Correct third arg to gimplify_body.
29291
29292 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
29293 (TYPE_LANG_FLAG_0): Check for record or union.
29294
29295 * treepr.adb: Char_Literal_Value field is now a Uint
29296
29297 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
29298 UI_From_CC.
29299
29300 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
29301 Add full UTF-32 support
29302 Char_Code is now 32 bits
29303
29304 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
29305 wide character UTF_32 line terminators.
29306 Initialize Main_Source_File to avoid error when no main
29307 source is loaded.
29308
29309 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
29310 (Main_Source_File) when no main source has been loaded, to avoid
29311 potential crash.
29312
293132005-02-09 Robert Dewar <dewar@adacore.com>
29314
a1286ef5
ZW
29315 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
29316 Fix name of Set routine
fc5a191d
AC
29317
29318 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
29319 fixed packages.
29320
29321 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
29322 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
29323 fixed packages
29324
29325 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
29326 forms of Get_Line subprograms for AI-301.
29327
29328 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
29329 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
29330 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
29331 a-stwima.ads: Minor reformatting.
29332
293332005-02-09 Doug Rupp <rupp@adacore.com>
29334 Thomas Quinot <quinot@adacore.com>
29335
29336 * adaint.c, adaint.h
29337 [VMS] (to_ptr32): New function.
29338 (MAYBE_TO_PTR32): New macro.
29339 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
29340 for pointer size.
29341 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
29342 [VMS] (#define fork()): Remove since unneccessary.
29343 (__gnat_set_close_on_exec): New routine to support
29344 GNAT.OS_Lib.Set_Close_On_Exec.
29345
29346 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
29347 the parent side as close-on-exec so that they are not inherited by the
29348 child.
29349
29350 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
29351 set or clear the FD_CLOEXEC flag on a file descriptor.
29352
293532005-02-09 Eric Botcazou <ebotcazou@adacore.com>
29354 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29355
6f7f72f9 29356 PR ada/19386
a1286ef5 29357 * decl.c:
fc5a191d
AC
29358 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
29359 on the field if Pragma Component_Alignment (Storage_Unit).
29360 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
29361 side-effects as if it were a constant; also make SAVE_EXPR to protect
29362 side-effects.
29363 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
29364 UNION_TYPE.
29365 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
29366 (components_to_record): Test it.
29367 Fix improper usage of REFERENCE_CLASS_P.
29368
29369 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
29370 RECORD_TYPE.
29371
29372 * utils2.c: Minor reformatting.
29373
29374 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
29375 handle other cases like RECORD_TYPE.
29376
29377 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
29378
293792005-02-09 Ed Schonberg <schonberg@adacore.com>
29380
29381 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
29382 component of an array of arrays in an assignment context, and the
29383 aggregate has component associations that require sliding on
29384 assignment, force reanalysis of the aggregate to generate a temporary
29385 before the assignment.
29386 (Must_Slide): Make global to the package, for use in Gen_Assign.
29387
293882005-02-09 Ed Schonberg <schonberg@adacore.com>
29389
29390 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
29391 unchecked union with no inferable discriminants, return a
29392 Raise_Program_Error node, rather than inserting it at the point the
29393 type is frozen.
29394 (Expand_Record_Equality, Component_Equality): Handle properly the case
29395 where some subcomponent is an unchecked union whose generated equality
29396 code raises program error.
29397
293982005-02-09 Doug Rupp <rupp@adacore.com>
29399
29400 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
29401 [VMS] (#define exit hack): Remove.
29402
294032005-02-09 Pascal Obry <obry@adacore.com>
9e94c78f 29404 Arnaud Charlet <charlet@adacore.com>
fc5a191d
AC
29405
29406 * init.c (__gnat_initialize): Add a new parameter eh which contains the
29407 address of the exception registration. The Win32 version of this
29408 routine calls __gnat_install_SEH_handler() to initialize the SEH
29409 (Structured Exception Handling) handler.
29410 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
29411 SEH (Structured Exception Handling) now.
29412 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
29413 (__gnat_initialize for ppc-vxworks): Adjust comments and the
29414 preprocessor condition protecting the call to the extra eh setup
29415 subprogram, which is only available for the ppc target.
29416 (__gnat_clear_exception_count): replaced reference to
29417 variable taskIdCurrent by call to taskIdSelf(), cleaner.
29418
29419 * seh_init.c: New file.
29420
29421 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
29422 (GNATBIND_OBJS): Idem.
29423
29424 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
29425 routine takes a new parameter (a pointer to the exception registration
29426 for the SEH (Structured Exception Handling) support.
29427
29428 * raise.h: (__gnat_install_SEH_handler): New prototype.
29429 Update copyright notice.
29430
29431 * s-tassta.adb (Task_Wrapper): Declare the exception registration
29432 record and initialize it by calling __gnat_install_SEH_handler.
29433
294342005-02-09 Vincent Celier <celier@adacore.com>
29435
29436 * make.adb (Gnatmake): Do not fail when the main project has no object
29437 directory.
29438
294392005-02-09 Doug Rupp <rupp@adacore.com>
29440
29441 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
29442 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
29443 [VMS]: Add translations for g-enblsp.adb.
29444
29445 * s-asthan-vms.adb: Removed.
29446 * s-asthan-vms-alpha.adb: Added.
29447
294482005-02-09 Pascal Obry <obry@adacore.com>
29449
29450 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
29451 (LIBGNAT_OBJS): Add seh_init.o.
29452
294532005-02-09 Arnaud Charlet <charlet@adacore.com>
29454
29455 PR ada/16592
fc5a191d
AC
29456 * Makefile.in: Link all gnat tools with -static-libgcc, since
29457 -shared-libgcc is now used by default on some systems (e.g. linux with
29458 recent binutils).
29459 Remove references to Makefile.prolog/generic, no longer used.
29460
294612005-02-09 Vincent Celier <celier@adacore.com>
29462
29463 * prj-makr.adb (Process_Directory): Put file name in canonical case
29464 before matching against the patterns.
29465 If gnatname has been invoked as <prefix>-gnatname
29466 then invoke the compiler as <prefix>-gcc, not just "gcc".
29467
294682005-02-09 Ed Schonberg <schonberg@adacore.com>
29469
29470 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
29471 with expansion disabled. The actual subtype is needed among other
29472 places when the selected component appears in the context of a loop
29473 bound, and denotes a packed array.
29474 (Operator_Check): Always use the first subtype in the
29475 error message, to avoid the appearance of internal base types.
29476 (Transform_Object_Operation): Copy each actual in full
29477 to the parameter associations of the constructed call, rather than
29478 using the shallow copy mechanism of New_Copy_List. This ensures that
29479 the chaining of named associations is done properly.
29480 (Complete_Object_Operation): Rewrite node, rather than
29481 replacing it, so that we can trace back to the original selected
29482 component.
29483
29484 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
29485 and calls that use object notation, if the called function is not
29486 declared in a withed unit, place the elaboration constraint on the
29487 unit in the context that makes the function accessible.
29488 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
29489 imposes an elaboration constraint between two packages.
29490
294912005-02-09 Ed Schonberg <schonberg@adacore.com>
29492
29493 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
29494 views of a private type after handling its private dependents, to
29495 maintain proper stack discipline between entry and exit from the
29496 package.
29497
294982005-02-09 Cyrille Comar <comar@adacore.com>
29499
29500 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
29501 Minor reformatting.
29502
295032005-02-09 Arnaud Charlet <charlet@adacore.com>
29504
29505 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
29506 fields for foreign threads.
29507
295082005-02-09 Doug Rupp <rupp@adacore.com>
29509
29510 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
29511 recursion warnings when compiled with -gnatdm.
29512
295132005-02-09 Robert Dewar <dewar@adacore.com>
29514
29515 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
29516 Slight fix to documentation of -gnaty with no parameters
29517
29518 * xr_tabls.ads: Add ??? comment for missing overall comment
29519
29520 * xsinfo.adb: Make default file name be sinfo.h, since this is what
29521 we now use by default.
29522
29523 * xsnames.adb: Adjust end of file test to look for five space followed
29524 by '#' instead of six spaces. The format of xsnames.adb was modified
29525 in the last update.
29526
29527 * a-numeri.ads: Add reference to AI-388 for greek letter pi
29528 identifier.
29529
29530 * clean.adb: Minor reformatting.
29531
29532 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
29533 gnatname.adb: Minor reformatting
29534 Add 2005 to copyright output when utility is run
29535
29536 * csets.adb: Eliminate obsolete comment
29537
29538 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
29539 Update comments.
29540
29541 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
29542
295432005-02-09 Sergey Rybin <rybin@adacore.com>
29544
29545 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
29546 the difference between compact and incompact layout and add the record
29547 representation clause to the example illustrating different layouts.
29548 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
29549 component clauses").
29550
295512005-02-09 Florian Villoing <villoing@adacore.com>
29552
29553 * gnat_ugn.texi: Fix typos.
29554 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
29555 @file.
29556 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
29557 in the generated documentation.
29558
295592005-02-09 Arnaud Charlet <charlet@adacore.com>
29560
29561 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
29562 longer supported.
29563 Update linker wrapper when linking with non GNU C++.
29564
295652005-02-09 Pascal Obry <obry@adacore.com>
29566
a1286ef5 29567 * gnat_ugn.texi:
fc5a191d
AC
29568 Document the procedure to debug the DllMain routine on Windows.
29569 Add note about -funwind-tables and mixed Ada and C/C++ programming in
29570 ZCX mode.
29571 Document new BIND qualifer /RETURN_CODES=VMS.
29572
295732005-02-09 Ben Brosgol <brosgol@adacore.com>
29574
29575 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
29576 Edited gnatmetric chapter
29577
295782005-02-09 Robert Dewar <dewar@adacore.com>
29579
a1286ef5 29580 * gnat_rm.texi:
fc5a191d
AC
29581 Changes to document new wide wide character support
29582 For AI-285
29583 Update documentation on Normalize_Scalars and Initialize_Scalars
29584
295852005-02-09 Pascal Obry <obry@adacore.com>
29586
29587 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
29588
295892005-02-09 Jose Ruiz <ruiz@adacore.com>
29590
29591 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
29592 from the VxWorks kernel) that is needed for getting the active
29593 priority of the different tasks.
29594
29595 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
29596 Use a pragma Elaborate_Body in the spec file instead.
29597 Noticed by code reading.
29598
295992005-02-09 Thomas Quinot <quinot@adacore.com>
29600
29601 * exp_util.ads: Minor correction in comment.
29602
296032005-02-09 Arnaud Charlet <charlet@adacore.com>
29604
29605 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
29606 since this procedure is now too complex to be worth inlining.
29607
c6a912da
RH
296082005-02-09 Richard Henderson <rth@redhat.com>
29609
29610 * utils.c (gnat_define_builtin): Remove.
29611 (gnat_install_builtins): Use build_common_builtin_nodes.
29612
4c2d6a70
AC
296132005-02-09 Arnaud Charlet <charlet@adacore.com>
29614
29615 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
29616 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
29617 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
29618 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
29619 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
29620 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
29621 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
29622 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
29623 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
29624 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
29625 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
29626 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
29627 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
29628 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
29629 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
29630 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
29631 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
29632 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
29633 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
29634 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
29635 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
29636 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
29637 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
29638 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
29639 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
29640 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
29641 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
29642 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
29643 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
29644 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
29645 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
29646 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
29647 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
29648 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
29649 library.
29650
9e94c78f 296512005-01-27 Laurent Guerby <laurent@guerby.net>
74a22497
LG
29652
29653 * Makefile.in: Fix a-intnam.ads from previous commit,
29654 add 2005 to copyright.
29655 * a-intman-rtems.ads: Renamed to...
29656 * a-intnam-rtems.ads:
29657
9e94c78f 296582005-01-27 Laurent Guerby <laurent@guerby.net>
7d921ba4
LG
29659
29660 * Makefile.in: Rename GNAT RTEMS specific files.
a1286ef5 29661 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
da8f5fd9 29662 5rosinte.ads, 5rparame.adb: Replaced by files below.
7d921ba4
LG
29663 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
29664 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
29665
9e94c78f
EB
296662005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
29667 Laurent Guerby <laurent@guerby.net>
9011d4bb
JS
29668
29669 PR ada/19488
29670 * 5rosinte.ads: Add No_Key constant.
a1286ef5
ZW
29671 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
29672 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9011d4bb 29673
9e94c78f 296742005-01-26 Laurent Guerby <laurent@guerby.net>
d487e3c1
LG
29675
29676 PR ada/19414
29677 * i-cobol.adb (Valid_Numeric): Handle zero length case.
a1286ef5 29678
3f38e738
RH
296792005-01-20 Richard Henderson <rth@redhat.com>
29680
29681 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
29682 a-intnam-linux.ads and system-linux-alpha.ads.
29683 * a-intnam-linux-alpha.ads: Remove file.
29684 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
29685 * system-linux-alpha.ads: New file.
29686
4d960a7e
JJ
296872005-01-18 Jakub Jelinek <jakub@redhat.com>
29688
29689 PR ada/13470
29690 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
29691 set to the new string.
29692
b4c6a3a2
TM
296932005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
29694
29695 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
29696 to True.
29697
8d5e1df2
RH
296982005-01-18 Richard Henderson <rth@redhat.com>
29699
29700 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
29701 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
29702 for alpha-linux.
29703 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
29704
03eef11c
AP
297052005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
29706
29707 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
29708 (GCC_ZCX_Support): Likewise.
29709
bc7566ca
BB
297102005-01-11 Bastian Blank <waldi@debian.org>
29711
29712 * system-linux-s390.ads: Define Preallocated_Stacks.
29713 * system-linux-s390x.ads: Likewise.
29714
e550819c
AC
297152005-01-04 Arnaud Charlet <charlet@adacore.com>
29716
29717 * gnat_ugn.texi: Fix texi errors with null variables.
29718
376a74d4
AC
297192005-01-03 Thomas Quinot <quinot@adacore.com>
29720
29721 * gen-soccon.c: New utility program to generate g-soccon.ads
29722 automatically.
29723
29724 * socket.c, gsocket.h: Split inclusion of system header files into a
29725 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
29726
29727 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
29728 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29729 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
29730 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
29731 should not be edited by hand anymore, but should be regenerated using
29732 gen-soccon.
29733
297342005-01-03 Robert Dewar <dewar@adacore.com>
29735 Ed Schonberg <schonberg@adacore.com>
29736 Vincent Celier <celier@adacore.com>
29737
29738 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
29739 on/off, since this is an obsolescent feature, for which we now generate
29740 a warning.
29741
29742 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
29743 warning mode is set and obsolescent usage of this attribute occurs.
29744 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
29745 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
29746 predates, and partly motivates, the adoption of the AI.
29747 Implement new Ada 2005 attribute Mod
29748
29749 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
29750 attribute Mod.
29751
29752 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
29753
29754 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
29755 pragma restrictions.
29756 New entry for Ada 2005 attribute Mod.
29757
a1286ef5 29758 * par-prag.adb:
376a74d4
AC
29759 Add recognition of new pragma Restrictions No_Dependence
29760 Recognize restriction No_Obsolescent_Features at parse time
29761
29762 * bcheck.adb: Add circuitry for checking for consistency of
29763 No_Dependence restrictions.
29764
29765 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
29766 restrictions.
29767
29768 * restrict.ads, restrict.adb: Add subprograms to deal with
29769 No_Dependence restrictions.
29770
29771 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
29772 restrictions.
29773
29774 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
29775 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
29776
29777 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
29778 dummy parameter to scng instantiation.
29779 Needed for new restriction No_Obsolescent_Features
29780
29781 * scn.adb: (Obsolescent_Check): New procedure
29782 Needed for new restriction No_Obsolescent_Features
29783
29784 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
29785 specified by AI-285, needed for implementation of AI-388 (adding greek
29786 pi to Ada.Numerics).
29787 Add new generic formal to scng, needed for new restriction
29788 No_Obsolescent_Features.
29789
29790 * s-rident.ads: Add new restriction No_Obsolescent_Features.
29791
29792 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
29793 restrictions lines.
29794 (Scan_ALI): When finding an unexpected character on an R line, raise
29795 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
29796 Ignore_Errors is True, default restrictions are set and scanning of the
29797 ALI file continues with the next line. Also, when Bad_R_Line is raised
29798 and Ignore_Errors is True, skip to the end of le line.
29799
29800 * sem_ch10.adb: Check that explicit with's do not violate
29801 No_Dependence restrictions.
29802 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
29803 illegal context clauses containing child units of instance.
29804
29805 * sem_prag.adb: Processing and checking for new No_Dependence
29806 restrictions.
29807 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
29808 analyze and check the External argument.
29809
29810 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
29811
298122005-01-03 Robert Dewar <dewar@adacore.com>
29813
29814 * atree.adb: Add a fifth component to entities
29815 This allows us to add 32 flags and four new fields
29816
29817 * atree.ads: Add a fifth component to entities
29818 This allows us to add 32 flags and four new fields
29819
29820 * einfo.ads, einfo.adb: Document new fields and new flags now available
29821 Add routines for printing new fields
29822
29823 * treepr.adb: Call routines to print out additional fields if present
29824
298252005-01-03 Arnaud Charlet <charlet@adacore.com>
29826
29827 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
29828 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
29829
29830 * Makefile.in: Add support to build shared Ada libraries on solaris x86
29831 Remove gpr2make, replaced by gprmake.
29832 Remove references to gnatmem and libaddr2line.
29833 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
29834 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
29835 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
29836 a-numaux-darwin.ads and a-numaux-darwin.adb
29837 Enable mlib-tgt-lynxos.adb on lynxos.
29838
29839 * Make-lang.in: Remove rules for gpr2make.
29840 When generating sdefault.adb, do not call Relocate_Path
29841 on S3 for function Target_Name, as it is not a path.
29842 Remove references to gnatmem and libaddr2line.
29843
29844 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
29845 files.
29846
298472005-01-03 Samuel Tardieu <tardieu@adacore.com>
29848
29849 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
29850 address is incompatible with its base type alignment constraints when
29851 this can be decided statically.
29852
298532005-01-03 Olivier Hainque <hainque@adacore.com>
29854
29855 * decl.c (compatible_signatures_p): New function. The intended purpose
29856 is to check if two function signatures for a call-site and a callee are
29857 compatible enough for the call to be valid. The underlying purpose is
29858 to check if a call to a mapped builtin is using the right interface.
29859 The current code actually does not check antyhing - this a placeholder
29860 for future refinements.
29861 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
29862 builtin calls for convention Intrinsic.
29863
29864 * gigi.h (builtin_decl_for): Declare (new function).
29865
29866 * utils.c (gnat_install_builtins): Install the target specific builtins.
29867 (builtin_decl_for): New function, provide a dummy body for now.
29868
298692005-01-03 Geert Bosch <bosch@adacore.com>
29870
29871 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
29872 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29873 (Pred): Implement in terms of Succ.
a1286ef5 29874
376a74d4
AC
29875 * trans.c (convert_with_check): Reimplement conversion of float to
29876 integer.
29877
298782005-01-03 Ed Schonberg <schonberg@adacore.com>
29879 Vincent Celier <celier@adacore.com>
29880
29881 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
29882 bounds can be negative, and must be declared Int, not Nat.
29883
29884 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
29885 array is checked after using the index in the array.
29886
29887 * makegpr.adb (Add_Switches): Check if there is a package for the
29888 processor. If there is no package, do not look for switches.
29889
298902005-01-03 Ed Schonberg <schonberg@adacore.com>
29891
29892 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
29893 generation of predefined stream operations (specs and bodies) should
29894 proceed. Under various restrictions these subprograms must not be
29895 generated.
29896
298972005-01-03 Thomas Quinot <quinot@adacore.com>
29898
a1286ef5 29899 * exp_dist.adb:
376a74d4
AC
29900 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
29901 amount of PCS-specific code in RACW stubs generation.
29902 (Copy_Specification): Set Etype on copied formal parameter entities, as
29903 this information is needed for PolyORB stubs generation.
29904 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
29905 variable Dynamic_Async.
29906 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
29907 (Build_RPC_Receiver_Specification): Make generic again, as recent
29908 changes have allowed RPC receivers to have the same profile for both
29909 variants of the PCS.
29910 Reorganise RPC receiver generation to reduce differences between the
29911 structure of GARLIC and PolyORB RPC receivers.
29912 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
29913 PCS-specific.
29914 Simplify elaboration code for RCI packages.
29915
29916 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
29917 generation to reduce differences between the structure of GARLIC and
29918 PolyORB RPC receivers.
29919
29920 * s-stratt.adb: Fix typo in comment.
29921
299222005-01-03 Thomas Quinot <quinot@adacore.com>
29923
29924 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
29925 copied from Make_Init_Call).
29926
29927 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
29928 reads and assignments on a temporary variable declared with appropriate
29929 discriminants.
29930
299312005-01-03 Robert Dewar <dewar@adacore.com>
29932
29933 * i-c.adb (To_C): Raise CE if string is null and Append_Null
29934
299352005-01-03 Robert Dewar <dewar@adacore.com>
29936
29937 * i-cstrin.adb (Update): Do not append a null in form called with a
29938 String. This avoids unintended behavior.
29939
299402005-01-03 Arnaud Charlet <charlet@adacore.com>
29941
29942 PR ada/17527
29943 * init.c: Fix warnings on Free BSD section.
29944
299452005-01-03 Arnaud Charlet <charlet@adacore.com>
29946
29947 PR ada/16949
29948 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
29949 xsinfo.adb).
29950
299512005-01-03 Vincent Celier <celier@adacore.com>
29952
29953 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
29954 libraries when Unique_Compile is True (-u switch).
29955 (Gnatmake): ditto.
29956
299572005-01-03 Robert Dewar <dewar@adacore.com>
29958
29959 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
29960 upper case letter or underscore after W, as allowed by spec.
29961
299622005-01-03 Arnaud Charlet <charlet@adacore.com>
29963
29964 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
29965 darwin port by using proper type definitions from header files.
29966 Use SIGTERM instead of SIGABRT for SIGADAABORT.
29967
299682005-01-03 Robert Dewar <dewar@adacore.com>
29969
29970 * par.adb: Enhance error message handling for configuration file
29971 pragmas.
29972
299732005-01-03 Robert Dewar <dewar@adacore.com>
29974
29975 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
29976 removed during the previous update (test properly for case of dividing
29977 largest negative number by -1, which generates overflow).
29978
299792005-01-03 Ed Schonberg <schonberg@adacore.com>
29980 Sergey Rybin <rybin@adacore.com>
29981
29982 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
29983 to use as the defining identifier for a formal package.
29984 (Remove_Parent): If the instance takes place within (an instance of)
29985 a sibling, preserve private declarations of common parent.
29986
299872005-01-03 Ed Schonberg <schonberg@adacore.com>
29988
29989 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
29990 to determine whether one of the operands is a fixed-point type for
29991 which a user-defined multiplication or division operation might be
29992 defined.
29993
29994 * sem_res.adb (Valid_Conversion): The legality rules for conversions
29995 of access types are symmetric in Ada 2005: either designated type can
29996 be unconstrained.
29997
299982005-01-03 Vincent Celier <celier@adacore.com>
29999
30000 * s-fileio.adb (Temp_File_Record): Change length of string component
30001 Name from L_tmpnam + 1 to max_path_len + 1.
30002
300032005-01-03 Arnaud Charlet <charlet@adacore.com>
30004
30005 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
30006 Self_Id.Deferral_Level = 0.
30007 (Do_Pending_Action): Move this function to the spec.
30008
30009 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
30010 Do_Pending_Action explicitely when needed, in case we're using
30011 No_Abort restrictions.
30012
30013 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
30014 deferral level since it will not get changed by the generated code.
30015 Keeping a default value of 1 would prevent some operations (e.g.
30016 select or delay) to proceed successfully.
30017
300182005-01-03 Ben Brosgol <brosgol@adacore.com>
30019 Robert Dewar <dewar@adacore.com>
30020 Cyrille Comar <comar@adacore.com>
30021
30022 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
30023 porting guide chapter (vms version).
30024 Revised doc title (removed "for native platforms") and subtitle.
30025 Add discussion on warning flag for obsolescent features. First we
30026 note that it applies to obsolete GNAT features, which was previously
30027 omitted. Second we contrast the behavior with that of the new
30028 Ada 2005 AI-368 restriction No_Obsolescent_Features.
30029 Preliminary rewriting of GNAT & libraries chapter in order to take
30030 into account default project locations & new project manager
30031 capabilities.
30032
300332005-01-03 Robert Dewar <dewar@adacore.com>
30034
30035 * cstand.adb (Create_Operators): Clean up format and documentation of
30036 unary and binary operator result tables. No change in code, just
30037 reformatting and addition of comments.
30038
30039 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
30040 sem_ch2.adb: Minor reformatting
30041
30042 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
30043 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
30044 comments for Tree_Read and Tree_Write.
30045
300462005-01-03 Pascal Obry <obry@adacore.com>
30047
30048 * exp_attr.ads: Minor reformatting.
30049
300502005-01-03 Romain Berrendonner <berrendo@adacore.com>
30051
30052 * comperr.adb (Compiler_Abort): Add specialized message for GAP
30053 versions.
30054
300552005-01-03 Ed Schonberg <schonberg@adacore.com>
30056
30057 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
30058 whether the ancestor type is private, as may be the case with nested
30059 instantiations.
30060
9e94c78f 300612004-12-30 Sohail Somani <sohail@sohailsomani.com>
15cd18b9
SS
30062
30063 PR ada/19128
30064 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
30065
2614034e 300662004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
15cd18b9 30067
2614034e
EB
30068 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
30069 * utils2.c (build_unary_op): Likewise.
30070
ad50bc8d
RH
300712004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30072
30073 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
30074
ed9c846c
RH
300752004-12-19 Richard Henderson <rth@redhat.com>
30076
30077 * trans.c (gigi): Update gimplify_body call.
30078
08f2586c
NS
300792004-12-09 Nathan Sidwell <nathan@codesourcery.com>
30080
30081 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
30082
180684eb
AC
300832004-12-07 Ed Falis <falis@adacore.com>
30084
30085 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
30086 current task being suspended.
30087
30088 * init.c (__gnat_clear_exception): added to reset VxWorks exception
30089 count.
30090 (__gnat_map_signal): removed test for current task being suspended.
30091
300922004-12-07 Gary Dismukes <dismukes@adacore.com>
30093
30094 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
30095 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
30096 targets (such as AAMP).
30097
300982004-12-07 Ed Schonberg <schonberg@adacore.com>
30099
30100 * atree.adb (Visit_Itype): Create a new name for the generated itype,
30101 because the back-end may otherwise treat it as a redefinition of the
30102 old symbol.
30103
301042004-12-07 Eric Botcazou <ebotcazou@adacore.com>
30105
30106 * back_end.adb (Scan_Back_End_Switches): Accept --param.
30107
30108 * lang-specs.h: Accept --param.
30109
301102004-12-07 Vincent Celier <celier@adacore.com>
30111
30112 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
30113 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
30114 Current_Body_Suffix => Ada_Body_Suffix).
30115 Take into account Externally_Built attribute.
30116
30117 * clean.adb (In_Extension_Chain): Always return False when one of the
30118 parameter is No_Project.
30119 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
30120 Ada_Language_Index).
30121 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
30122 Process_Languages for procedure Parse).
30123
30124 * gnatcmd.adb (Carg_Switches): New table.
30125 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
30126 Adapt to name changes in package Prj (Current_Spec_Suffix =>
30127 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
30128
30129 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
30130 Header_Num and function Hash are now declared in package Prj,
30131 not Prj.Com.
30132
30133 * prj.adb (Suffix_Of): New function.
30134 (Set (Suffix)): New procedure.
30135 (Hash): One function moved from Prj.Com
30136 (Is_Present, Language_Processing_Data_Of): New functions
30137 (Set): Two new procedures
30138 (Add_Language_Name, Display_Language_Name): New procedures
30139
30140 * prj.ads: (Suffix_Of): New function
30141 (Set (Suffix)): New procedure
30142 Add several types and tables for multi-language support.
30143 (Header_Num): Type moved from Prj.Com
30144 (Hash): Two functions moved from Prj.Com
30145 (Is_Present, Language_Processing_Data_Of): New functions
30146 (Set): Two new procedures
30147 (Add_Language_Name, Display_Language_Name): New procedures
30148 (Naming): Component name changes:
30149 Current_Spec_Suffix => Ada_Spec_Suffix,
30150 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
30151 Impl_Suffixes, Supp_Suffixes.
30152 (Project_Data): New components: Externally_Built, Supp_Languages,
30153 First_Language_Processing, Supp_Language_Processing, Default_Linker,
30154 Default_Linker_Path.
30155
30156 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
30157 new package Language_Processing with its attributes (Compiler_Driver,
30158 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
30159 Binder_Driver, Default_Linker).
30160
30161 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
30162 (Header_Num): Type moved to package Prj
30163
30164 * prj-env.adb: Adapt to name changes in package Prj
30165 (Current_Spec_Suffix => Ada_Spec_Suffix,
30166 Current_Body_Suffix => Ada_Body_Suffix).
30167
30168 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
30169 default to the project path, except the "-" is one of the directories
30170 in env var ADA_PROJECT_PATH.
30171 (Current_Project_Path): Global variable, replacing Project_Path
30172 that was in the body of Prj.Part.
30173 (Project_Path): New function
30174 (Set_Project_Path): New procedure
30175 Initialize Current_Project_Path during elaboration of the package
30176 Remove dependency on Prj.Com, no longer needed
30177
30178 * prj-ext.ads (Project_Path): New function
30179 (Set_Project_Path): New procedure
30180
30181 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
30182 suffix is defined for language <lang>.
30183 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
30184 accessing directly the components of Naming.
30185 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
30186 Reorganise of this package.
30187 Break procedure Check in several procedures.
30188
30189 * prj-nmsc.ads: Replace all procedures (Ada_Check,
30190 Other_Languages_Check and Language_Independent_Check) with a single
30191 procedure Check.
30192
30193 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
30194 Process_Languages, no longer needed.
30195
30196 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
30197 Current_Project_Path.
30198 Remove elaboration code, moved to the body of Prj.Ext
30199 Use new function Prj.Ext.Project_Path instead of old variable
30200 Project_Path.
30201 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
30202 When comparing with project paths on the stack, first put the resolved
30203 path in canonical case.
30204 (Parse_Single_Project): Set the path name of the project file in the
30205 tree to the normalized path.
30206
30207 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
30208 parameter Process_Languages, no longer needed.
30209 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
30210 Other_Languages_Check.
30211
30212 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
30213 to store the resolved canonical path of the project file.
30214 Remove dependency to Prj.Com, no longer needed
30215
30216 * prj-util.adb: Adapt to name changes in package Prj
30217 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
30218 Ada_Body_Suffix).
30219
30220 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
30221 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
30222 Externally_Built, Include_Option, Language_Processing.
30223
30224 * makegpr.adb: Numerous changes due to changes in packages
30225 Prj and Prj.Nmsc.
30226
30227 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
30228 default to the project path, except whe "-" is one of the directories
30229 in env var ADA_PROJECT_PATH.
30230 (Gnatls): In verbose mode, add the new section "Project Search Path:"
30231
302322004-12-07 Robert Dewar <dewar@adacore.com>
30233
30234 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
30235
30236 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
30237 set -gnatR3m mode.
30238
30239 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
30240 flag. No longer needed now that we handle this in gnat1drv.adb.
30241
30242 * repinfo.ads: Minor reformatting
30243
302442004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30245 Olivier Hainque <hainque@adacore.com>
30246 Eric Botcazou <ebotcazou@adacore.com>
30247
30248 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
30249 TYPE_SIZE_UNIT of result type if SIZE is not specified.
30250 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
30251 of a bitfield, which we know is useless and causes trouble because of
30252 alignment implications.
30253
30254 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
30255 BSS sections.
30256 (process_attributes): Clear DECL_COMMON again when a section attribute
30257 is present.
30258 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
30259 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
30260 (create_field_decl): Special case ADDRESSABLE negative to mean
30261 "no bitfield creation", to be used by make_aligning_type. Don't
30262 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
30263 fields claimed addressable still have to be bitfields. Use
30264 value_factor_p instead of a raw binop construction to check for the
30265 position's alignment.
30266
302672004-12-07 Geert Bosch <bosch@adacore.com>
30268
30269 * eval_fat.adb: Revert previous change.
30270
302712004-12-07 Thomas Quinot <quinot@adacore.com>
30272 Ed Schonberg <schonberg@adacore.com>
30273
30274 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
30275 with an implicit dereference as its prefix, use
30276 Insert_Explicit_Dereference instead of merely rewriting the prefix into
30277 an explicit dereference. This ensures that a reference to the original
30278 prefix is generated, if appropriate.
30279
30280 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
30281 dereference is rewritten to an explicit one, generate a reference to
30282 the entity denoted by its prefix using the original prefix node, so
30283 the dereference can be properly recorded as a read of the denoted
30284 access value, if appropriate.
30285
30286 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
30287 emitting 'assigned but never read' warning on a variable on the basis
30288 that it has an access type.
30289 (Check_References): Emit unreferenced warning when the scope is a
30290 subprogram body.
30291
302922004-12-07 Robert Dewar <dewar@adacore.com>
30293 Ed Schonberg <schonberg@adacore.com>
30294
30295 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
30296 intrinsic
30297
30298 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
30299 leaving call unchanged.
30300 This deals with the case where the pragma Import specified
30301 an external name, to be handled by the back end.
30302
30303 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
30304 subprogram which is Imported with convention Intrinsic if an
30305 External_Name argument is specified.
30306 (Process_Import_Or_Interface): Properly diagnose link name argument.
30307 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
30308 with Sem_Ch6.Cannot_Inline.
30309 (Process_Inline): Provide separate warning for inapplicable inline
30310 pragma.
30311 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
30312 treatment is uniform on different targets.
30313
303142004-12-07 Ed Schonberg <schonberg@adacore.com>
30315
30316 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
30317 construct is rewritten, preserve end label to permit source navigation.
30318
303192004-12-07 Thomas Quinot <quinot@adacore.com>
30320
30321 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
30322 Specific_Build_Stub_Target): New subprograms.
30323 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
30324 the PCS implementation used, using the above PCS-customized subprograms.
30325 Minor reformatting.
30326 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
30327 for generation of DSA code targeted to the PolyORB PCS.
30328 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
30329 implementation of the partition communication subsystem in ancillary
30330 subprograms.
30331 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
30332 PolyORB_Support.Build_Stub_Type): New subrograms containing the
30333 PCS-specific part of Add_Stub_Type.
30334 (Insert_Partition_Check): Use runtime library function to perform
30335 E.4(19) check.
30336
a1286ef5
ZW
30337 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
30338 (RE_Same_Partition): New entity, from s-parint.
180684eb 30339
a1286ef5 30340 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
180684eb
AC
30341
303422004-12-07 Gary Dismukes <dismukes@adacore.com>
30343
30344 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
30345 Output the copyright message on a separate line from the version
30346 message.
30347
303482004-12-07 Joel Brobecker <brobecker@adacore.com>
30349
30350 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
30351 compile-time warning.
30352
303532004-12-07 Robert Dewar <dewar@adacore.com>
30354
30355 * g-regpat.adb: (Match): Change a misuse of or to or else
30356
303572004-12-07 Ed Schonberg <schonberg@adacore.com>
30358
15cd18b9 30359 * lib-xref.adb:
180684eb
AC
30360 (Generate_Reference): Handle properly a reference to an entry formal,
30361 when an accept statement has a pragma Unreferenced for it.
30362
30363 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
30364 and the Has_Pragma_Unreferenced flag for each formal before analyzing
30365 the body, to ensure that warnings are properly emitted for each accept
30366 statement of a given task entry.
30367
303682004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
30369
30370 * Makefile.in: Add support for foreign threads on VMS.
30371
303722004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30373
30374 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
30375 Remove.
30376 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
30377
30378 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
30379
30380 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
30381 exception.
30382 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
30383
303842004-12-07 Robert Dewar <dewar@adacore.com>
30385
30386 * nlists.adb (Prepend_Debug): Remove parameters and nest within
30387 Prepend.
30388 (Remove_Next_Debug): Same fix
30389
30390 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
30391 maintain back pointers now, though we did not used to, and comments
30392 were out of date).
30393 (Prepend): Remove pragma Inline.
30394 (Remove_Next): Same cleanup
30395
303962004-12-07 Thomas Quinot <quinot@adacore.com>
30397
30398 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
30399 used to record an implicit dereference as a read operation on its
30400 prefix when operating under -gnatc. Necessary to avoid spurious
30401 'variable assigned but never read' warnings in that mode.
30402 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
30403 is a non-overloaded implicit dereference, call the above subprogram to
30404 ensure proper recording of references.
30405
304062004-12-07 Gary Dismukes <dismukes@adacore.com>
30407
30408 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
30409 to be resolved later as part of Analyze_Iteration_Scheme's call to
30410 Make_Index.
30411
304122004-12-07 Ed Schonberg <schonberg@adacore.com>
30413
30414 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
30415 prefix is not a scalar type, place error message on prefix, not on
30416 type entity.
30417
304182004-12-07 Bernard Banner <banner@adacore.com>
30419
30420 * vxaddr2line.adb: Add support for x86 vxworks
30421
304222004-12-07 Thomas Quinot <quinot@adacore.com>
30423
30424 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
30425 documentation of the behaviour of these functions when passed an IP
30426 address that has no record in the system hosts database and no reverse
30427 record in the DNS.
30428
30429 * cstand.adb, a-tags.ads: Fix typos in comment.
30430
304312004-12-07 Robert Dewar <dewar@adacore.com>
30432
30433 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
30434 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
30435 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
30436 s-poosiz.ads: Minor reformatting
30437
30438 * make.adb: Minor reformatting
30439 Add some ??? comments asking for more comments
30440
30441 * s-poosiz.adb: Minor reformatting
30442 Add comments on alignment requirement
30443
30444 * sinfo.ads: Remove obsolete comment and fix typo.
30445
304462004-12-07 Vincent Celier <celier@adacore.com>
30447 Sergey Rybin <rybin@adacore.com>
30448
30449 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
30450 Files" with the new tool and package names.
30451 Reformatting to suppress most of the warnings for line too long
30452 Document the new section "Project Search Path:" in the output of
30453 gnatls -v.
30454 Add gnatmetric section
30455
304562004-12-07 Vincent Celier <celier@adacore.com>
30457
30458 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
30459 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
30460 and -eit to -ept. Added qualifier
30461 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
30462
ed986c8e
AS
304632004-11-27 Andreas Schwab <schwab@suse.de>
30464
30465 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
30466
3c13948a
AC
304672004-11-25 Arnaud Charlet <charlet@adacore.com>
30468
30469 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
30470 internal implementation unit GNAT.Sockets.Thin,
30471 as their usage for sockets is non-portable (using the read and write
30472 functions from the system runtime library is fine on UNIX but won't
30473 work under Windows).
30474
30475 * mingw32.h: Update copyright notice.
30476
061fd2bf
AC
304772004-11-25 Arnaud Charlet <charlet@adacore.com>
30478
30479 * ada-tree.h: Minor reformatting of previous change to avoid lines
30480 longer than 79 characters.
30481
e850e1f4
OH
304822004-11-25 Olivier Hainque <hainque@adacore.com>
30483
30484 * tb-gcc.c: GCC infrastructure based implementation of
30485 __gnat_backtrace.
30486
39afeb1a
SB
304872004-11-24 Steven Bosscher <stevenb@suse.de>
30488
30489 * misc.c (gnat_post_options): Don't clear
30490 flag_inline_functions.
30491
9633a6ac
AP
304922004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
30493
30494 PR ada/17986
30495 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
30496 tree.
30497
7fe16580
AJ
304982004-11-21 Andreas Jaeger <aj@suse.de>
30499
30500 * stylesw.adb: Change Style_Check_Subprogram_Order to
30501 Style_Check_Order_Subprograms.
30502
9716416b
AC
305032004-11-18 Arnaud Charlet <charlet@adacore.com>
30504
30505 * adaint.h, adaint.c
30506 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
30507 to avoid warnings.
30508 Add also a cast to kill another warning.
30509 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
30510 parameter with the priority class of the parent process instead of
30511 always using the NORMAL_PRIORITY_CLASS.
30512 (__gnat_dup): New function.
30513 (__gnat_dup2): New function.
30514 (__gnat_is_symbolic_link): Enable the effective body of this
30515 function when __APPLE__ is defined.
30516
30517 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
30518 Update comments.
30519
305202004-11-18 Olivier Hainque <hainque@adacore.com>
30521
30522 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
30523 address of which may be used to represent "others" and "all others"
30524 choices in exception tables, instead of the current harcoded
30525 (void *)0 and (void *)1.
30526 (Setup_Exception): Do nothing in the GNAT SJLJ case.
30527
30528 * gigi.h (others_decl, all_others_decl): New decls representing the
30529 new Others_Value and All_Others_Value objects.
30530 (struct attrib): Rename "arg" component as "args", since GCC expects a
30531 list of arguments in there.
30532
30533 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
30534 corresponding objects exported by a-exexpr, instead of hardcoded dummy
30535 addresses.
30536
30537 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
30538 others_decl and all_others_decl instead of hardcoded dummy addresses
30539 to represent "others" and "all others" choices, which is cleaner and
30540 more flexible with respect to the possible eh pointer encoding policies.
30541
30542 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
30543 (process_attributes): Account for the naming change of the "args"
30544 attribute list entry component.
30545
30546 * decl.c (build_attr_list): Rename into prepend_attributes to allow
30547 cumulating attributes for different entities into a single list.
30548 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
30549 attributes for the current entity and propagate first subtype
30550 attributes to other subtypes.
30551 <E_Procedure>: Attribute arguments are attr->args and not
30552 attr->arg any more.
30553 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
30554 argument provided, as this is what GCC expects. Use NULL_TREE instead
30555 of 0 for trees.
30556
305572004-11-18 Robert Dewar <dewar@adacore.com>
30558
15cd18b9 30559 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
9716416b
AC
30560 Minor reformatting througout (including new function specs)
30561 Add ??? comments asking for clarification.
30562
305632004-11-18 Thomas Quinot <quinot@adacore.com>
30564
30565 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
30566 incomplete duplicate implementation of this subprogram from butil.
30567
305682004-11-18 Thomas Quinot <quinot@adacore.com>
30569
30570 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
30571 procedures factors the common processing for building an RPC receiver
30572 for an RCI package or an RACW type.
30573 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
30574 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
30575 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
30576 in use.
30577 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
30578 Add_RACW_Features.
30579 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
30580 Add_RAST_Features.
30581 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
30582 distribution subprogram identifiers that are either subprogram numbers
30583 or strings.
30584 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
30585 string distribution identifiers assigned to a given subprogram.
30586 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
30587 (Add_RAS_Dereference_TSS): Add comments.
30588 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
30589 is not referenced yet because it will be used by the PolyORB DSA
30590 implementation.
30591 (Insert_Partition_Check): Remove fossile code.
30592 (First_RCI_Subprogram_Id): Document this constant.
30593 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
30594 RAS_Access TSS.
30595 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
30596 replaced with calls to Get_Library_Unit_Name_String. Previously there
30597 were several instances of the same code in different locations in the
30598 compiler; this checkin completes the replacement of all of these
30599 instances with calls to a common subprogram.
30600 Minor reformatting.
30601
30602 * sem_dist.adb: Remove comment noting that RPC receiver generation
30603 should be disabled for RACWs that implement RASs.
30604 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
30605
30606 * sem_util.ads, sem_util.adb (Has_Stream): New function
30607 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
30608 qualified name of a library unit into the name buffer.
30609 (Note_Possible_Modification): Generate a reference only
30610 if the context comes from source.
30611
30612 * snames.ads (PCS_Names): New subtype corresponding to names of
30613 supported implementations of the Partition Communication Subsystem
30614 (PCS) (i.e. the runtime library support modules for the distributed
30615 systems annex).
30616
306172004-11-18 Robert Dewar <dewar@adacore.com>
30618 Ed Schonberg <schonberg@adacore.com>
30619
30620 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
30621 (Has_Rep_Pragma): New function
30622 (Has_Attribute_Definition_Clause): New function
30623 (Record_Rep_Pragma): Moved here from sem_ch13.adb
30624 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
30625
30626 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
30627
30628 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
30629 (Expand_Pragma_Psect_Object): New procedure
30630 These procedures contain the revised and cleaned up processing for
30631 these two pragmas. This processing was formerly in Sem_Prag, but
30632 is more appropriately moved here. The cleanup involves making sure
30633 that the pragmas are properly attached to the tree, and that no
30634 nodes are improperly shared.
30635
30636 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
30637 pragmas to Exp_Prag, which is more appropriate.
30638 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
30639 check for duplicates Remove use of Is_Psected flag, no longer needed.
30640 Use new Make_String_Literal function with string.
30641
30642 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
30643 that are functions return universal values, that have to be converted
30644 to the context type.
30645 Use new Make_String_Literal function with string.
30646 (Get_Stream_Convert_Pragma): New function, replaces the use of
30647 Get_Rep_Pragma, which had to be kludged to work in this case.
30648
30649 * freeze.adb: Use new Has_Rep_Pragma function
30650
30651 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
30652 function with string.
30653 Use new Has_Rep_Pragma function.
30654
30655 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
30656 string argument.
30657
306582004-11-18 Robert Dewar <dewar@adacore.com>
30659
30660 * errout.ads, errout.adb: (First_Sloc): New function
30661
30662 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
30663 check (-gnatyx) instead of being included as a redundant construct
30664 warning.
30665
30666 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
30667 Style_Check_Order_Subprograms.
30668
30669 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
30670 stylesw.adb: Add Style_Check_Xtra_Parens
30671
30672 * usage.adb: Add line for -gnatyx (check extra parens)
30673
30674 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
30675
306762004-11-18 Ed Schonberg <schonberg@adacore.com>
30677 Robert Dewar <dewar@adacore.com>
30678
30679 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
30680 discriminant of a constrained subtype, analyze the copy of the
30681 corresponding constraint, because in some cases it may be only
30682 partially analyzed.
30683 Removes long-lived ??? comments.
30684
30685 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
30686 handled controlled or secondary-stack expressions within the
30687 iteration_scheme of a loop.
30688
30689 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
30690 bounds that may contain functions calls, to prevent memory leaks when
30691 the bound contains a call to a function that uses the secondary stack.
30692 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
30693 generate temporaries for loop bounds that might contain function calls
30694 that require secondary stack and/or finalization actions.
30695
30696 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
30697 selected component and the selector is overloadable (not just a
30698 function) treat as function call, Analyze_Call will disambiguate if
30699 necessary.
30700 (Analyze_Selected_Component): Do not generate an actual subtype for the
30701 selected component if expansion is disabled. The actual subtype is only
30702 needed for constraint checks.
30703 (Analyze_Allocator): If restriction No_Streams is set, then do
30704 not permit objects to be declared of a stream type, or of a
30705 composite type containing a stream.
30706
30707 * restrict.ads: Remove the a-stream entry from Unit_Array, since
30708 No_Streams no longer prohibits with'ing this package.
30709
30710 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
30711 discriminants, but the parent base has unknown discriminants, there is
30712 no discriminant constraint to inherit. Such a discrepancy can arise
30713 when the actual for a formal type with unknown discriminants is a
30714 similar private type whose full view has discriminants.
30715 (Analyze_Object_Declaration): If restriction No_Streams is set, then
30716 do not permit objects to be declared of a stream type, or of a
30717 composite type containing a stream.
30718
307192004-11-18 Ed Schonberg <schonberg@adacore.com>
30720
30721 * exp_dbug.ads: Update documentation to reflect simpler encoding for
30722 protected operations.
30723
30724 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
30725 generated name, it complicates decoding in gdb and hinders debugging
30726 of protected operations.
30727 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
30728 flag for the protected entry barrier function.
30729 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
30730 flag for the protected entry function.
30731
307322004-11-18 Nicolas Setton <setton@adacore.com>
30733
30734 * expect.c: Define __unix__ when __APPLE__ is defined.
30735
30736 * Makefile.in: Inform the value of the variable GMEM_LIB in the
30737 Darwin-specific section.
30738
30739 * lang-specs.h: Change the placement of the %1 marker.
30740 Works around the fact that gcc adds -fPIC by default under Darwin.
30741
307422004-11-18 Ed Schonberg <schonberg@adacore.com>
30743
30744 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
30745 type of the object with the packed array type, set the Analyzed flag
30746 on the object if it is an entity or simple indexed component, to avoid
30747 spurious type errors.
30748
307492004-11-18 Gary Dismukes <dismukes@adacore.com>
30750
30751 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
30752 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
30753 separate line from the version message.
30754
307552004-11-18 Ed Falis <falis@adacore.com>
30756
30757 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
30758 vthreads.
30759 (init_float): Eliminate initialization of floating point status for
30760 AE653. The instructions have no effect for vThreads.
30761
307622004-11-18 Vincent Celier <celier@adacore.com>
30763
30764 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
30765 gnatbind is invoked with -shared.
30766
307672004-11-18 Jose Ruiz <ruiz@adacore.com>
30768
30769 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
30770 for Detect_Blocking which is redundant with the check done within the
30771 procedure Protected_Single_Entry_Call.
30772 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
30773 Detect_Blocking which is redundant with the check done within the
30774 procedure Protected_Single_Entry_Call.
30775
307762004-11-18 Vincent Celier <celier@adacore.com>
30777
30778 * makegpr.adb (Compile): Put the compiling switches (in package
30779 Compiler and on the command line) immediately after "-c", instead of
30780 at the end of the command line invocation of the compiler, when
30781 compiling a non-Ada file.
30782 (Build_Global_Archive): When there is no need to rebuild the archive,
30783 set Global_Archive_Exists, so that the archive is passed to the linker
30784 if one is needed.
30785
307862004-11-18 Robert Dewar <dewar@adacore.com>
30787 Sergey Rybin <rybin@adacore.com>
30788
15cd18b9 30789 * gnat_ugn.texi:
9716416b
AC
30790 Remove extra paren check from list of checks for redundant constructs
30791 Add documentation of new -gnatyx style check (check extra parens)
30792 Remove paragraph about gnatelim debug options.
30793
30794 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
30795 objects rather than forbidding dependencies on the package Ada.Streams.
30796
30797 * sinfo.ads: Add ??? note that we should document pragmas passed to
30798 back end.
30799
30800 * g-expect.ads: Fix a few typos in the comments.
30801
9e637a26
JM
308022004-11-09 Joseph S. Myers <joseph@codesourcery.com>
30803
30804 * misc.c (gnat_handle_option): Use %< and %> for quoting in
30805 warning message.
30806
0506cb1c
RO
308072004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30808
30809 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
30810
426e7d28
AS
308112004-11-07 Andreas Schwab <schwab@suse.de>
30812
30813 * Makefile.in (install-gnatlib): Remove spurious hyphen.
30814
8785609e 308152004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
30816
30817 PR ada/18228
30818 * Makefile.in (darwin): Set soext to .dylib.
30819
0ca5fab2
AC
308202004-10-26 Vincent Celier <celier@gnat.com>
30821 Thomas Quinot <quinot@act-europe.fr>
30822
30823 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
30824 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
30825 there is no use of GNAT.Sockets.Constants.
30826 Remove remaining pragma Import for C_Write
30827 Remove C_Read and C_Write from internal implementation unit
30828 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
30829 the read and write functions from the system runtime library is fine
30830 on UNIX but won't work under Windows).
30831
30832 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
30833 (Check_Selector): Use C_Recv instead of C_Read.
30834 Selectors are the GNAT.Sockets abstraction to perform a select()
30835 call on a set of descriptors. To allow abortion of an ongoing
30836 select operation, some data is written to a dedicated socket that
30837 is always monitored.
30838 Under Windows, the write and read library functions cannot operate
30839 on sockets, so we need to use send and recv instead, which is portable
30840 across all supported platforms.
30841
30842 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
30843 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
30844 (using the read and write functions from the system runtime library is
30845 fine on UNIX but won't work under Windows).
30846
308472004-10-26 Nicolas Setton <setton@act-europe.fr>
30848
30849 * mlib-tgt-darwin.adb: New file.
30850
30851 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30852 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30853 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30854 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
30855 subprogram body.
30856
30857 * Makefile.in: Add support for building shared libraries under Darwin.
30858 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
30859 the low level EH init subprogram to be called from __gnat_initialize.
30860
30861 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
30862 indicates which options to pass to the archive indexer.
30863
30864 * mlib-utl.adb: Add support for calling ranlib with additional
30865 options. This is needed for instance under Mac OS X.
30866 (Ranlib_Options): New global variable, used to store the potential
30867 options to pass to ranlib.
30868 (Ar): Use Ranlib_Options when spawning ranlib.
30869 (Initialize): Set the value of ranlib option.
30870
308712004-10-26 Olivier Hainque <hainque@act-europe.fr>
30872
30873 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
30874 instead of 8K, to reflect the real potential needs for stack-checking
30875 in the ZCX case.
30876
308772004-10-26 Pascal Obry <obry@gnat.com>
30878
30879 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
30880
30881 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
30882 Windows only the initial thread stack size can be set so it is good to
30883 start we a low stack size.
30884 The OS will adjust the size as needed.
30885
308862004-10-26 Olivier Hainque <hainque@act-europe.fr>
30887 Nicolas Setton <setton@act-europe.fr>
30888
30889 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
30890 "__unix__" instead of "unix".
30891 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
30892 sections were just mistakenly ignored. The former is
30893 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
30894 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
30895 of hpux. This prevents an unwanted definition of the symbol
30896 convert_addresses in adaint.o.
30897
308982004-10-26 Gary Dismukes <dismukes@gnat.com>
30899
30900 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
30901 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
30902
309032004-10-26 Cyrille Comar <comar@act-europe.fr>
30904
30905 * a-filico.ads, a-filico.adb: fix incorrect header.
30906
309072004-10-26 Javier Miranda <miranda@gnat.com>
30908
30909 * a-ststio.ads: Fix typo in identifier
30910
309112004-10-26 Thomas Quinot <quinot@act-europe.fr>
30912
30913 * sem_ch4.adb: Minor reformatting.
30914
309152004-10-26 Ed Schonberg <schonberg@gnat.com>
30916
30917 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
30918 enabled, check the result of unary and binary operations when the
30919 expression is the right-hand side of an assignment.
30920
309212004-10-26 Vincent Celier <celier@gnat.com>
30922
30923 * clean.adb (Delete): Do not output warnings when in quiet output and
30924 not in verbose mode.
30925 (Force_Deletions): New Boolean flag, defaulted to False
30926 (Delete): Only delete a file if it is writable, and when
30927 Force_Deletions is True.
30928 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
30929 (Usage): Line for new switch -f
30930 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
30931 own.
30932
309332004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30934
30935 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
30936 JM type only if its size matches that of the wrapper. When a size is
30937 prescribed and the field is not aliased, remove the wrapper of a JM
30938 type only if the size is not greater than that of the packed array.
30939 (gnat_to_gnu_entity): Change the extension of packed array wrappers
30940 from LJM to JM.
30941
309422004-10-26 Geert Bosch <bosch@gnat.com>
30943
30944 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
30945 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
30946 (Pred): Implement in terms of Succ.
30947
309482004-10-26 Ed Schonberg <schonberg@gnat.com>
30949
30950 * exp_aggr.adb (Safe_Component): An aggregate component that is an
30951 unchecked conversion is safe for in-place use if the expression of the
30952 conversion is safe.
30953 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
30954 be expandable in place even if the aggregate does not come from source.
30955 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
30956 designated object of an allocator in place, rather than building it
30957 first on the stack. The previous scheme forces a full copy of the array,
30958 and may be altogether unsusable if the size of the array is too large
30959 for stack allocation.
30960
309612004-10-26 Robert Dewar <dewar@gnat.com>
30962
30963 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
30964 compares if the component is atomic.
30965
30966 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
30967 array assignment if the component type is atomic.
30968
309692004-10-26 Ed Schonberg <schonberg@gnat.com>
30970 Eric Botcazou <ebotcazou@act-europe.fr>
30971
30972 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
30973 is aliased and is a by_reference type, do not pass by copy.
30974 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
30975 detect whether the call is in the right side of an assignment or
30976 the expression of an object declaration. Recurse on component
30977 association within aggregates.
30978 Call it in the condition that determines whether the temporary is
30979 necessary for correct stack-checking.
30980
309812004-10-26 Thomas Quinot <quinot@act-europe.fr>
30982
30983 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
30984 RACW_Type, used in the PolyORB version.
30985 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
30986 version and the GARLIC version.
30987
15cd18b9 30988 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
0ca5fab2
AC
30989 Rename RCI_Info to RCI_Locator for better consistency between the
30990 GARLIC and PolyORB versions of the distributed systems annex.
30991 (DSA_Implementation_Name): This enumeration lists the possible
30992 implementations of the Partition Communication Subsystem for the
30993 Distributed Systems Annex (DSA). The three available implementations
30994 are the dummy stub implementation (No_DSA), and two versions based on
30995 two different distribution runtime libraries: GARLIC and PolyORB. Both
30996 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
30997 technology.
30998 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
30999 that organization.
31000
31001 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
31002 between the GARLIC and PolyORB versions of the distributed systems
31003 annex.
31004 Remove RE_Unbounded_Reclaim_Pool since it is unused.
31005
310062004-10-26 Gary Dismukes <dismukes@gnat.com>
31007
31008 * gnat1drv.adb: Suppress calling the back end when
31009 Frontend_Layout_On_Target is true.
31010
310112004-10-26 Thomas Quinot <quinot@act-europe.fr>
31012
31013 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
31014 Set_Read_Only): New subprograms.
31015 These new routines allow the user to set or unset the Owner execute
31016 and Owner write permission flags on a file.
31017
31018 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
31019 GNAT.OS_Lib.Set_Executable instead of rolling our own.
31020
310212004-10-26 Matthew Gingell <gingell@gnat.com>
31022
31023 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
31024
310252004-10-26 Pascal Obry <obry@gnat.com>
31026
31027 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
31028 memory before the faulting page we properly test the process read
31029 access for this address using appropriate Win32 routine.
31030 (HPUX sections): guard with "__hpux__" instead of "hpux".
31031
310322004-10-26 Robert Dewar <dewar@gnat.com>
31033
31034 * lib-xref.adb (Generate_Reference): Don't complain about reference to
31035 entry parameter if pragma Unreferenced set, since we do not properly
31036 handle the case of multiple parameters.
31037
310382004-10-26 Vincent Celier <celier@gnat.com>
31039
31040 * prj-env.adb: (Contains_ALI_Files): New Boolean function
31041 (Ada_Objects_Path.Add): For a library project, add to the object path
31042 the library directory only if there is no object directory or if the
31043 library directory contains ALI files.
31044 (Set_Ada_Paths.Add.Recursive_Add): Ditto
31045
310462004-10-26 Vincent Celier <celier@gnat.com>
31047
31048 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
31049 extension of library projects.
31050
31051 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
31052 path defaults to ".:<prefix>/lib/gnat".
31053 (Parse): For an extending all project, allow direct import of a project
31054 that is virtually extended.
31055
31056 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
31057 the specified name is directly imported, return its ID. Otherwise, if
31058 an extension of this project is imported, return the ID of the
31059 extension.
31060
310612004-10-26 Robert Dewar <dewar@gnat.com>
31062
31063 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
31064 (Sub3): New procedure, used by Scaled_Divide
31065 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
31066 correct more than one instance of failure to propagate carries
31067 correctly.
31068 (Double_Divide): Handle overflow case of largest negative number
31069 divided by minus one.
31070
31071 * s-arit64.ads (Double_Divide): Document that overflow can occur in
31072 the case of a quotient value out of range.
31073 Fix comments.
31074
310752004-10-26 Robert Dewar <dewar@gnat.com>
31076
31077 * s-bitops.adb (Bit_Eq): Remove redundant check.
31078
31079 * s-bitops.ads: Minor comment updates
31080 Change some occurrences of Address to System.Address
31081
31082 * s-carsi8.ads: Fix minor cut-and-paste error in comments
31083
310842004-10-26 Ed Schonberg <schonberg@gnat.com>
31085
31086 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
31087 accessibility check to prefix that is a protected operation.
31088
310892004-10-26 Ed Schonberg <schonberg@gnat.com>
31090
31091 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
31092 empty, post message on stub.
31093
310942004-10-26 Ed Schonberg <schonberg@gnat.com>
31095 Javier Miranda <miranda@gnat.com>
31096
31097 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
31098 current instance appears within a unit that is directly in the context
31099 of the main unit.
31100 Used to determine whether the body of the instance should be analyzed
31101 immediately after its spec, to make its subprogram bodies available
31102 for front-end inlining.
31103 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
31104 constraint is not allowed on the component type (AARM 12.5.3(3))
31105
311062004-10-26 Cyrille Comar <comar@act-europe.fr>
31107
31108 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
31109 'Storage_Pool): enhance, document & limit detection of non-sharable
31110 internal pools.
31111
31112 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
31113
31114 * s-pooglo.ads: Add more documentation now that this pool is properly
31115 documented.
31116
311172004-10-26 Ed Schonberg <schonberg@gnat.com>
31118
31119 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
31120 or protected type with discriminants, do not constrain the
31121 corresponding record type if the subtype declaration has no
31122 discriminant constraints. This can be the case in source code, or in
31123 the subtype declaration created to rename an actual type within an
31124 instantiation.
31125
311262004-10-26 Ed Schonberg <schonberg@gnat.com>
31127
31128 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
31129 different kind of stub (possibly wrong name for file), do not check
31130 for conformance.
31131 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
31132 includes call to some function that returns an unconstrained type, do
31133 not inline.
31134
311352004-10-26 Ed Schonberg <schonberg@gnat.com>
31136
31137 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
31138 appear in the code for the main unit. Dependencies among units in the
31139 context of the main unit are established when those other units are
31140 compiled. Otherwise spurious elaboration constraints can generate
31141 incorrect elaboration circularities.
31142
311432004-10-26 Thomas Quinot <quinot@act-europe.fr>
31144 Ed Schonberg <schonberg@gnat.com>
31145
31146 * sem_util.adb (Is_Aliased_View): Defend against the case where this
31147 subprogram is called with a parameter that is not an object name. This
31148 situation arises for some cases of illegal code, which is diagnosed
31149 later, and in this case it is wrong to call Is_Aliased, as that might
31150 cause a compiler crash.
31151 (Explain_Limited_Type): Refine previous fix to include
31152 inherited components of derived types, to provide complete information.
31153
31154 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
31155 is the prival for a protected object.
31156 It is necessary to mark this entity as a variable, in addition to
31157 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
31158 modified to avoid checking the Aliased flag on entities that are not
31159 objects. (Checking that flag for non-objects is erroneous and could
31160 lead to a compiler crash).
31161
311622004-10-26 Robert Dewar <dewar@gnat.com>
31163
31164 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
31165 X_Frac = 0.5, then we know that the number X must be positive.
31166 (Succ): Remove the same redundant test, and also fix the primary test
31167 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
31168 Minor reformatting
31169 (Decompose): Add fuller comments to spec
31170
311712004-10-26 Pascal Obry <obry@gnat.com>
31172
31173 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
31174 validity (process must have read access). Set to 0 in all other cases.
31175 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
31176 violation on Win32.
31177 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
31178 segmentation violation.
31179
311802004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
31181
31182 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
31183 whose type is a constructed subtype of an aliased object with an
31184 unconstrained nominal subtype, convert the actual to the constructed
31185 subtype before taking its address.
31186
311872004-10-26 Vincent Celier <celier@gnat.com>
31188
31189 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
31190 (Is_Path_Name_Case_Sensitive): New function
31191
31192 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
31193 (Base_Name, Simple_Name, Current_Directory, Compose,
31194 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
31195 the result.
31196
311972004-10-26 Cyrille Comar <comar@act-europe.fr>
31198 Vasiliy Fofanov <fofanov@act-europe.fr>
31199 Vincent Celier <celier@gnat.com>
31200
31201 * gnat_ugn.texi: Generalize "finding memory problems" section into a
31202 "memory management issues" section and document some of the useful
31203 memory pools provided as part of the GNAT library.
31204 Remove "virtual" from declaration of A::method2 in
31205 the simple example of Ada/C++ mixed system.
31206 Library Projects may be virtually extended: their virtual extensions
31207 are not Library Projects.
31208 Added section on extending project hierarchies.
31209
d65c6710 312102004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
31211
31212 * adaint.c (__gnat_get_libraries_from_registry): Cast value
31213 to LPBYTE.
31214 (__gnat_portable_spawn): Remove const.
31215
31216 * mingw32.h (MAXPATHLEN): Check for previous definition.
31217
95e19580
MK
312182004-10-17 Matthias Klose <doko@debian.org>
31219
31220 * gnatvsn.ads: Set gnat library version to 4.0.
31221
88a6ecb6
VC
312222004-10-05 Vincent Celier <celier@gnat.com>
31223
a1286ef5 31224 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
88a6ecb6 31225
9e94c78f 312262004-10-04 Laurent Guerby <laurent@guerby.net>
110aba14
LG
31227
31228 PR ada/15156
31229 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 31230
09552763
PO
312312004-10-04 Pascal Obry <obry@gnat.com>
31232
31233 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
31234 other x86 platforms).
31235
a8e490b7
OH
312362004-10-04 Olivier Hainque <hainque@act-europe.fr>
31237
31238 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
31239 in general and triggers stack alignment adjustment for thread entry
31240 points on targets where this is necessary.
31241
71c10a83
BB
312422004-10-04 Bernard Banner <banner@gnat.com>
31243
31244 PR ada/13897
71c10a83
BB
31245 * Makefile.in: Add section for powerpc linux
31246 Add variant i-vxwork-x86.ads
31247
31248 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
31249
9a03df55
OH
312502004-10-04 Olivier Hainque <hainque@act-europe.fr>
31251
31252 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
31253 table registration calls when need be. Ensures no reference to the crt
31254 ctors symbol are issued in the SJLJ case, which avoids possible
31255 undefined symbol errors in the case of modules to be statically linked
31256 with the kernel.
31257
28d6470f
JM
312582004-10-04 Javier Miranda <miranda@gnat.com>
31259
31260 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
31261 in-line the code corresponding to subprogram Analyze_Actuals. In
31262 addition, analyze the actuals only in case of subprogram call.
31263
06237875
EF
312642004-10-04 Ed Falis <falis@gnat.com>
31265
31266 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
31267
259d6c3a
SR
312682004-10-04 Sergey Rybin <rybin@act-europe.fr>
31269
31270 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
31271 in the documentation.
31272
6f21ed26
RD
312732004-10-04 Robert Dewar <dewar@gnat.com>
31274
31275 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
31276 IF and CASE.
31277 (Analyze_Block_Statement): Add circuitry to detect following dead code
31278 (Check_Unreachable_Code): Handle case of block exit
31279
4cded177
RD
312802004-10-04 Robert Dewar <dewar@gnat.com>
31281
31282 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
31283 (XMatchD): Avoid warning for Logic_Error call
31284
c6a60aa1
RD
312852004-10-04 Robert Dewar <dewar@gnat.com>
31286
31287 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
31288 consider expressions buried within a procedure actual to be an actual.
31289 This caused some blowups with uses of packed slices within a procedure
31290 actual.
31291
1fdebfe5
RD
312922004-10-04 Robert Dewar <dewar@gnat.com>
31293
31294 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
31295 longer need to be initialized to zero.
31296 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
31297 initialized to zero.
31298
31299 * checks.adb (Expr_Known_Valid): Packed arrays are now always
31300 considered valid, even if the representation is modular. That's correct
31301 now that we no longer initialize packed modular arrays to zero.
31302
31303 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
31304 suffixes. These are now documented as the only cases in which the
31305 debugger ignores outer records.
31306 Previously, the spec allowed arbitrary suffixes for this purpose.
31307 Change name of LJM to JM for packed array pad records
31308 Create separate section on packed array handling, and add a whole new
31309 set of comments to this section describing the situation with packed
31310 modular types and justification requirements depending on endianness.
31311
cd91501c
RD
313122004-10-04 Robert Dewar <dewar@gnat.com>
31313
31314 * a-except.adb: Add a comment for last change
31315
31316 * einfo.ads: Minor spelling correction in comment
31317
31318 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
31319
31320 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
31321 messages.
31322
31323 * sem_util.ads: Minor comment update
31324
c71c53a8
ES
313252004-10-04 Ed Schonberg <schonberg@gnat.com>
31326
31327 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
31328 Inline_Always when in Configurable_Run_Time mode.
31329
31330 * sem_prag.adb (Process_Convention): If entity is an inherited
31331 subprogram, apply convention to parent subprogram if in same scope.
31332 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
31333 when in Configurable_Run_Time mode.
31334
71d9e9f2
ES
313352004-10-04 Ed Schonberg <schonberg@gnat.com>
31336
31337 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
31338 class_wide type after component list has been inherited.
31339
0b525bee
ES
313402004-10-04 Ed Schonberg <schonberg@gnat.com>
31341
31342 * sem_ch12.adb (Check_Generic_Actuals): New predicate
31343 Denotes_Previous_Actual, to handle properly the case of a private
31344 actual that is also the component type of a subsequent array actual.
31345 The visibility status of the first actual is not affected when the
31346 second is installed.
31347 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
31348 make fully recursive the treatment of formals of packages declared
31349 with a box.
31350 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
31351 the above on exit from an instantiation.
31352 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
31353 current instantiation which is now complete.
31354 (Analyze_Package_Instantiation): No instantiated body is needed if the
31355 main unit is generic. Efficient, and avoid anomalies when a instance
31356 appears in a package accessed through rtsfind.
31357
27ad9660
ES
313582004-10-04 Ed Schonberg <schonberg@gnat.com>
31359
31360 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
31361 do not generate a declaration for a temporary if the call is part of a
31362 library-level instantiation.
31363
1c6c6771
ES
313642004-10-04 Ed Schonberg <schonberg@gnat.com>
31365
31366 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
31367 searching for a limited component to flag.
31368
31369 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
31370 expansion of Input, to account for the fact that the implicit call
31371 generated by the attribute reference must freeze the user-defined
31372 stream subprogram. This is only relevant to 'Input, because it can
31373 appear in an object declaration, prior to the body of the subprogram.
31374
31375 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
31376 expansion can proceed and further errors uncovered.
31377 (Minor clean up): Fix cases of using | instead of \ for continuation
31378 messages.
31379
8005f3e5
RK
313802004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31381
31382 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
31383
31384 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
31385 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
31386 Use gcc_assert and gcc_unreachable.
31387
31388 * decl.c (gnat_to_gnu_entity, case object): Check and process a
31389 specified alignment before validating size.
31390 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
31391 stripped-down declaration for the type of the inner field when making
31392 a JM type.
31393
31394 * utils.c (finish_record_type): Do not compute the size in units
31395 incrementally. Instead compute it once for the rep clause case.
31396 Use gcc_assert and gcc_unreachable.
31397
6a294a29
VC
313982004-10-04 Vincent Celier <celier@gnat.com>
31399
31400 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
31401 in file name.
31402 (Is_Valid_Path_Name): Take '/' as a directory separator.
31403
9a080ea3
VC
314042004-10-04 Vincent Celier <celier@gnat.com>
31405
31406 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
31407 (Extended_Project) only if Extended_Project is defined, to avoid
31408 assertion error.
31409 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
31410 resolved path.
31411 (Parse_Single_Project): Ditto.
31412
31413 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
31414 Add_To_Project_Path for virtual projects.
31415
51004cb5
VC
314162004-10-04 Vincent Celier <celier@gnat.com>
31417
15cd18b9
SS
31418 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31419 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31420 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
51004cb5
VC
31421 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
31422 parameter Options_2.
31423
31424 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
31425 Build_Dynamic_Library with an empty Options_2.
31426
31427 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
31428 default anymore.
31429
31430 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
31431 directory separator, if any.
31432 (Gprmake): Do not allow mains on the command line for library projects.
31433 Do not attempt to link when the project is a library project.
31434 (Library_Opts): New table to store Library_Options.
31435 (Build_Library): If Library_Options is specified, pass these options
31436 when building a shared library.
31437
3b37ffbf
JR
314382004-10-04 Jose Ruiz <ruiz@act-europe.fr>
31439
31440 * s-tposen.adb (Service_Entry): The object must be always unlocked at
31441 the end of this procedure now that the unlock operation was inserted
31442 by the expander.
31443
b23e28d5
JR
314442004-10-04 Jose Ruiz <ruiz@act-europe.fr>
31445
31446 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
31447 corresponding to the Preallocated_Stacks flags in System.
31448 (Get_Target_Parameters): Including the processing for
31449 Preallocated_Stacks.
31450
15cd18b9
SS
31451 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
31452 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
31453 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31454 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
31455 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
31456 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
31457 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
31458 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
31459 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
31460 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
b23e28d5
JR
31461 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
31462 used to signal whether the compiler creates the required stacks and
31463 descriptors for the different tasks (when True) or it is done by the
31464 underlying operating system at run time (when False).
31465 It is initially set to False in all targets.
31466
31467 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
31468 if it is supported by the target.
31469 (Make_Task_Create_Call): Pass the stack address if it has been
31470 previously created. Otherwise pass a Null_Address.
31471
31472 * snames.adb: Add _stack.
31473
31474 * snames.ads: Add Name_uStack. Required to allow the expander to
31475 statically allocated task stacks.
31476
31477 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
31478 Stack_Address argument.
31479 Check that its value is equal to Null_Address because this target does
31480 not support the static stack allocation.
31481
6fd459bb
TQ
314822004-10-04 Thomas Quinot <quinot@act-europe.fr>
31483
31484 * usage.adb: Change "pragma inline" to "pragma Inline" in information
31485 and error messages
31486
5885facb
TQ
314872004-10-04 Thomas Quinot <quinot@act-europe.fr>
31488
31489 * exp_dist.adb: Split declaration of asynchronous flag out of
31490 Add_RACW_Read_Attribute.
31491 Minor reformatting for better alignment with PolyORB version.
31492 Store the entity for the asynchronous flag of an RACW, rather than the
31493 expression, in the asynchronous flags table. This will allow this flag
31494 to be used in other subprograms beside Add_RACW_Read_Attribute.
31495
d6c7ed50
TQ
314962004-10-04 Thomas Quinot <quinot@act-europe.fr>
31497
31498 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
15cd18b9
SS
31499 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31500 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
31501 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
d6c7ed50
TQ
31502 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
31503 sockets constant MSG_NOSIGNAL (Linux-specific).
31504 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
31505 all Send operations.
31506 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
31507 from trigerring SIGPIPE.
31508 Rename components to avoid clash with Ada 2005 possible reserved
31509 word 'interface'.
31510 (Check_Selector): When the select system call returns with an error
31511 condition, propagate Socket_Error to the caller.
31512
0f0377f6
JH
315132004-10-01 Jan Hubicka <jh@suse.cz>
31514
31515 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
31516
2c9beb8a
RD
315172004-09-23 Robert Dewar <dewar@gnat.com>
31518
31519 PR ada/17540
2c9beb8a
RD
31520 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
31521 instead do this at freeze time (we won't do it if there is an address
31522 clause).
31523 Change "pragma inline" to "pragma Inline" in information and error
31524 messages.
31525 Minor reformatting.
31526
31527 * freeze.adb (Check_Address_Clause): Remove previous change, not the
31528 right way of doing things after all.
31529 (Freeze_Entity): For object, set Is_Public for imported entities
31530 unless there is an address clause present.
31531
2494e673
OH
315322004-09-21 Olivier Hainque <hainque@act-europe.fr>
31533
31534 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
31535 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
31536 ensures proper handling of types with rep clauses, which might have
31537 their TYPE_SIZE set already.
31538
910d20fc
RD
315392004-09-21 Robert Dewar <dewar@gnat.com>
31540
31541 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
31542 packed array types in both little- and big-endian cases. This change
31543 ensures that we no longer count on the unused bits being initialized
31544 for such types (and in particular ensures that equality testing will
31545 only read the relevant bits).
31546 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
31547 These changes mean that we no longer need to initialize small packed
31548 arrays.
31549 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
31550 optimization to an LJM field as to its parent field.
31551
31552 * ada-tree.h, trans.c, utils.c, utils2.c:
31553 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
31554
8f235343
JH
315552004-09-20 Jan Hubicka <jh@suse.cz>
31556
31557 * utils.c (gnat_finalize): Remove.
31558 (end_subprog_body): Directly call cgraph_finalize_function;
31559 do not lower the nested functions.
31560
bb9be5eb
RD
315612004-09-20 Robert Dewar <dewar@gnat.com>
31562
31563 PR ada/17540
bb9be5eb
RD
31564 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
31565 if an address clause is present, since that means that the Import
31566 should be ignored.
31567
796ef2e2
AC
315682004-09-20 Arnaud Charlet <charlet@act-europe.fr>
31569
31570 * 5tsystem.ads: Removed, no longer used.
31571
6615c446
JO
315722004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
31573 Zack Weinberg <zack@codesourcery.com>
31574
31575 * ada-tree.def: Use tree_code_class enumeration constants
31576 instead of code letters.
31577 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
31578 Update for new tree-class enumeration constants.
31579
93ed8a01
VC
315802004-09-17 Vincent Celier <celier@gnat.com>
31581
31582 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
31583 capabilities of the general project manager.
31584
c885d7a1
AC
315852004-09-09 Vincent Celier <celier@gnat.com>
31586
31587 * a-direct.ads: Add pragma Ada_05
31588 (Directory_Entry_Type): Give default value to component Kind to avoid
31589 not initialized warnings.
31590
31591 * a-direct.adb (Current_Directory): Remove directory separator at the
31592 end.
31593 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
31594 an existing directory.
31595 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
31596 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
31597 Convert the result to File_Size.
31598
31599 * prj.ads: (Project_Error): New exception
31600
31601 * prj-attr.adb: Except in procedure Initialize, Fail comes from
31602 Prj.Com, not from Osint.
31603 (Attrs, Package_Attributes): Tables moved to private part of spec
31604 (Add_Attribute, Add_Unknown_Package): Moved to new child package
31605 Prj.Attr.PM.
31606 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
31607 Prj.Project_Error after call to Fail.
31608 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
31609 Fail. Check that package name is not already in use.
31610
31611 * prj-attr.ads: Comment updates to indicate that all subprograms may be
31612 used by tools, not only by the project manager, and to indicate that
31613 exception Prj.Prj_Error may be raised in case of problem.
31614 (Add_Unknown_Package, Add_Attribute): Moved to new child package
31615 Prj.Attr.PM.
31616 (Attrs, Package_Attributes): Table instantiations moved from the body to
31617 the private part to be accessible from Prj.Attr.PM body.
31618
31619 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
31620 from new package Prj.Attr.PM.
31621 (Parse_Attribute_Declaration): Call Add_Attribute from new package
31622 Prj.Attr.PM.
31623
31624 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
31625
31626 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
31627 instead of Elaboration_Checks).
31628
31629 * a-calend.adb: Minor reformatting
31630
316312004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31632
31633 * gigi.h (maybe_pad_type): New declaration.
31634 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
31635
31636 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
31637
31638 * cuintp.c: Convert to use buildN.
31639
31640 * decl.c (maybe_pad_type): No longer static.
31641 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
31642 target pointer.
31643 Convert to use buildN.
31644
31645 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
31646 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
31647 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
31648 RHS.
31649 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
31650 (gnat_gimplify_expr, case ADDR_EXPR): New case.
31651 Convert to use buildN.
31652
31653 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
31654 TREE_READONLY for const.
31655 Convert to use buildN.
31656
31657 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
31658 (create_var_decl): Refine when TREE_STATIC is set.
31659 Convert to use buildN.
31660
316612004-09-09 Gary Dismukes <dismukes@gnat.com>
31662
31663 * gnat_ugn.texi: Delete text relating to checking of ali and object
31664 consistency.
31665
31666 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
31667 routines.
31668
316692004-09-09 Jose Ruiz <ruiz@act-europe.fr>
31670
31671 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
31672 pragmas recognized by GNAT.
31673
31674 * gnat_rm.texi: Document pragma Detect_Blocking.
31675
31676 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
31677 raise Program_Error if called from a protected operation.
31678
31679 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
31680 the protected action nesting level.
31681 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
31682 protected action nesting level.
31683 (Unlock): When pragma Detect_Blocking is active decrease the protected
31684 action nesting level.
31685
31686 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
31687 Protected_Action_Nesting.
31688
31689 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
31690 Common_ATCB record. It contains the dynamic level of protected action
31691 nesting for each task. It is needed for checking whether potentially
31692 blocking operations are called from protected operations.
31693 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
31694 Detect_Blocking is active or not in the partition.
31695
31696 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
31697 raise Program_Error if called from a protected operation.
31698 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
31699 Program_Error if called from a protected operation.
31700 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
31701 Program_Error if called from a protected operation.
31702
31703 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
31704 raise Program_Error if called from a protected operation.
31705
31706 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
31707 raise Program_Error if called from a protected operation, and increase
31708 the protected action nesting level.
31709 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
31710 Program_Error if called from a protected operation, and increase the
31711 protected action nesting level.
31712 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
31713 protected action nesting level.
31714
31715 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
31716 raise Program_Error if called from a protected operation, and increase
31717 the protected action nesting level.
31718 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
31719 Program_Error if called from a protected operation, and increase the
31720 protected action nesting level.
31721 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
31722 raise Program_Error if called from a protected operation.
31723 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
31724 active, raise Program_Error if called from a protected operation.
31725 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
31726 protected action nesting level.
31727
31728 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
31729 insertion of the statement raising Program_Error. The run time
31730 contains the required machinery for handling that.
31731
31732 * sem_util.ads: Change comment associated to procedure
31733 Check_Potentially_Blocking_Operation.
31734 This procedure does not insert a call for raising the exception because
31735 that is currently done by the run time.
31736
31737 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
31738
31739 * init.c: Add the global variable __gl_detect_blocking that indicates
31740 whether pragma Detect_Blocking is active (1) or not (0). Needed for
31741 making the pragma available at run time.
31742 (__gnat_set_globals): Pass and update the detect_blocking parameter.
31743
31744 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
31745 pragma Detect_Blocking is active.
31746
31747 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
31748
31749 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
31750 DB is found in the ali file. Any unit compiled with pragma
31751 Detect_Blocking active forces its effect in the whole partition.
31752
31753 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
31754 Detect_Blocking is active and delay is called from a protected
31755 operation.
31756
31757 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
31758 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
31759 Detect_Blocking is active (0 otherwise).
31760 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
31761 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
31762 otherwise).
31763
317642004-09-09 Thomas Quinot <quinot@act-europe.fr>
31765
31766 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
31767 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
31768 package.
31769
31770 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
31771 (Register_Receiving_Stub): Add Subp_Info formal parameter.
31772 Update API in placeholder implemetation of s-parint to reflect changes
31773 in distribution runtime library.
31774
31775 * sem_ch3.adb (Expand_Derived_Record): Rename to
31776 Expand_Record_Extension.
31777
31778 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
31779 primitive operations of potentially distributed object types that have
31780 non-controlling anonymous access formals.
31781
31782 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
31783 subprogram.
31784 New implementation of expansion for remote access-to-subprogram types,
31785 based on the RACW infrastructure.
31786 This version of sem_dist is compatible with PolyORB/DSA as well as
31787 GLADE.
31788
31789 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
31790 Asynchrronous that applies to a remote access-to-subprogram type, mark
31791 the underlying RACW type as asynchronous.
31792
31793 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
31794 __gnat_using_gnu_linker to 1.
31795
31796 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
31797 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
31798 GNAT.Perfect_Hash_Generators, and remove the empty
31799 GNAT.Perfect_Hash package.
31800
31801 * atree.adb: Minor reformatting
31802
31803 * exp_ch3.adb (Expand_Derived_Record): Rename to
31804 Expand_Record_Extension.
31805 (Build_Record_Init_Proc.Build_Assignment): The default expression in
31806 a component declaration must remain attached at that point in the
31807 tree so New_Copy_Tree copies it if the enclosing record type is derived.
31808 It is therefore necessary to take a copy of the expression when building
31809 the corresponding assignment statement in the init proc.
31810 As a side effect, in the case of a derived record type, we now see the
31811 original expression, without any rewriting that could have occurred
31812 during expansion of the ancestor type's init proc, and we do not need
31813 to go back to Original_Node.
31814
31815 * exp_ch3.ads (Expand_Derived_Record): Rename to
31816 Expand_Record_Extension.
31817
31818 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
31819 Returns the RACW type used to implement a remote access-to-subprogram
31820 type.
31821 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
31822 New subprograms. Used to create a proxy tagged object for a remote
31823 subprogram. The proxy object is used as the designated object
31824 for RAS values on the same partition (unless All_Calls_Remote applies).
31825 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
31826 System.Partition_Interface.Get_Unique_Remote_Pointer.
31827 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
31828 Renamed from Add_RAS_*_Attribute.
31829 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
31830 subprograms.
31831 New implementation of expansion for remote access-to-subprogram types,
31832 based on the RACW infrastructure.
31833
31834 * exp_dist.ads (Copy_Specification): Update comment to note that this
31835 function can copy the specification from either a subprogram
31836 specification or an access-to-subprogram type definition.
31837
318382004-09-09 Ed Schonberg <schonberg@gnat.com>
31839
31840 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
31841 in an instance, between an explicit subprogram an one inherited from a
31842 type derived from an actual.
31843
31844 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
31845 add a polling call if the subprogram is to be inlined by the back-end,
31846 to avoid repeated calls with multiple inlinings.
31847
31848 * checks.adb (Apply_Alignment_Check): If the expression in the address
31849 clause is a call whose name is not a static entity (e.g. a dispatching
31850 call), treat as dynamic.
31851
318522004-09-09 Robert Dewar <dewar@gnat.com>
31853
31854 * g-trasym.ads: Minor reformatting
31855
31856 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
31857 packed arrays, since unused bits are expected to be zero for a
31858 comparison.
31859
318602004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
31861
31862 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
31863 comment.
31864
318652004-09-09 Pascal Obry <obry@gnat.com>
31866
31867 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
31868 enable map file generation. Add the right option to generate the map
31869 file if Map_File is set to True.
31870
31871 * gnatdll.adb (Gen_Map_File): New variable.
31872 (Syntax): Add info about new -m (Map_File) option.
31873 (Parse_Command_Line): Add support for -m option.
31874 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
31875 Minor reformatting.
31876
318772004-09-09 Laurent Pautet <pautet@act-europe.fr>
31878
31879 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
31880 new gnatdist implementation.
31881 Define a subpackage isolating the output routines specific to this
31882 verbose mode.
31883
318842004-09-09 Joel Brobecker <brobecker@gnat.com>
31885
31886 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
31887
31888 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
31889
318902004-09-09 Cyrille Comar <comar@act-europe.fr>
31891
31892 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
31893 internal unit.
31894
31895 * opt.ads: Add Ada_Version_Runtime constant used to decide which
31896 version of the language is used to compile the run time.
31897
318982004-09-09 Arnaud Charlet <charlet@act-europe.fr>
31899
31900 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
31901 of variable length temporaries for function return now that the
31902 back-end and gigi support it.
31903
23c7b149 319042004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
31905
31906 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
31907
31908 * trans.c (struct stmt_group): Delete field GLOBAL.
31909 (gnat_init_stmt_group): Do not initialize it.
31910 (call_to_gnu): Use save_expr, not protect_multiple_eval.
31911 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
31912 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
31913 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
31914 (start_stmt_group): Likewise.
31915 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
31916
31917 * utils2.c (ggc.h): Include.
31918 (build_call_raise): Call build_int_cst, not build_int_2.
31919
31920 * utils.c (gnat_init_decl_processing): Fix arg to
31921 build_common_tree_nodes.
31922 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
31923 (gnat_define_builtin): Set built_in_decls.
31924 (init_gigi_decls): Call build_int_cst, not build_int_2.
31925
31926 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
31927 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
31928 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
31929 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
31930 SET_TYPE_MODULE): Use them.
31931 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
31932 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
31933 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
31934 SET_TYPE_ADA_SIZE): Likewise.
31935 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
31936 (DECL_CONST_CORRESPONDING_VAR,
31937 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
31938 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
31939 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
31940 (TYPE_RM_SIZE_NUM): New macro.
31941 (TYPE_RM_SIZE): Modified to use above.
31942
31943 * cuintp.c: (build_cst_from_int): New function.
31944 (UI_To_gnu): Use it.
31945
31946 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
31947 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
31948 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
31949 MIN_EXPR for the size, copy it into new.
31950
23c7b149 319512004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
31952
31953 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
31954 packed indexed component where array is an IN OUT formal. This
31955 generated garbage code previously.
31956
31957 * gnat_ugn.texi: Document -fverbose-asm
31958
31959 * gnat-style.texi: Minor updates (note that boolean constants and
31960 variables are joined with AND/OR rather than short circuit forms).
31961
23c7b149 319622004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
31963
31964 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
31965 it is an upward conversion of an untagged type with no representation
31966 change.
31967
23c7b149 319682004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
31969
31970 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
31971 System.Partition_Interface.
31972
31973 * checks.adb (Apply_Access_Checks): Do not generate checks when
31974 expander is not active (but check for unset reference to prefix of
31975 dereference).
31976
31977 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
31978 pragma Debug as an if statement with a constant condition, for
31979 consistent treatment of entity references contained within the
31980 enclosed procedure call.
31981
23c7b149 319822004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
31983
31984 * bindgen.adb: (Set_EA_Last): New procedure
31985 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
31986 Set_EA_Last.
31987 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
31988 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
31989 linked without errors.
31990 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
31991 ST and EA.
31992 (Gen_Exception_Table_C): Correct same bugs
31993
31994 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
31995
31996 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
31997 on Windows, make sure that the drive letter is in upper case.
31998
31999 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
32000 Windows, when the drive letter is added and Case_Sensitive is True, the
32001 drive letter is forced to upper case.
32002
32003 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
32004 to Options_2 for the call to MLib.Utl.Gcc.
32005
32006 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
32007 directory separator when defining BASE_DIR.
32008
23c7b149 320092004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
32010
32011 * gprcmd.adb (Extend): Do not output trailing directory separator. This
32012 is not needed and it confuses Windows GNU/make which does not report
32013 directory terminated by a slash as a directory.
32014 (gprcmd): Idem for "pwd" internal command.
32015
32016 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
32017 target names rewrite to fix regressions with recent version of
32018 GNU/make. Starting with GNU/make 3.80 the pipe character was not
32019 handled properly anymore.
32020
4eb104c1
AS
320212004-09-01 Andreas Schwab <schwab@suse.de>
32022
32023 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
32024 * raise.c [!IN_RTS]: Undef abort.
32025
6a6bfc8e
NS
320262004-08-27 Nathan Sidwell <nathan@codesourcery.com>
32027
ce552f75
NS
32028 * utils2.c (build_allocator): Use ssize_int.
32029
6a6bfc8e
NS
32030 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
32031
f8b7bf58
AS
320322004-08-27 Andreas Schwab <schwab@suse.de>
32033
32034 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
32035
15793d0c
NS
320362004-08-25 Nathan Sidwell <nathan@codesourcery.com>
32037 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 32038
15793d0c
NS
32039 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
32040
7d60be94
NS
320412004-08-25 Nathan Sidwell <nathan@codesourcery.com>
32042
32043 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
32044 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
32045 * utils.c (init_gigi_decls): Likewise.
32046 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 32047
8c1d6d62
NS
320482004-08-24 Nathan Sidwell <nathan@codesourcery.com>
32049
7d60be94 32050 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
32051 build_common_tree_nodes call.
32052
3224bead
NS
320532004-08-20 Nathan Sidwell <nathan@codesourcery.com>
32054
32055 * utils2.c (build_allocator): Use build_int_cst for negative
32056 size types.
32057
4766261d
RH
320582004-08-18 Richard Henderson <rth@redhat.com>
32059
32060 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
32061
1f6c00df
NS
320622004-08-16 Nathan Sidwell <nathan@codesourcery.com>
32063
32064 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
32065 call.s
32066 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
32067 (gnat_to_gnu): Likewise.
32068
4c46b835
AC
320692004-08-16 Pascal Obry <obry@gnat.com>
32070
32071 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
32072 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
32073 option and not mdll anymore. Update comment.
32074
320752004-08-16 Pascal Obry <obry@gnat.com>
32076
32077 * bld.adb (Put_Include_Project): Properly handle directory separators
32078 on Windows.
32079
320802004-08-16 Ed Schonberg <schonberg@gnat.com>
32081
32082 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
32083 decreasing the number of allocated junk nodes while searching for the
32084 appropriate subprogram.
32085
4a90aeeb
NS
320862004-08-15 Nathan Sidwell <nathan@codesourcery.com>
32087
32088 * cuintp.c (UI_To_gnu): Use build_int_cst..
32089 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
32090 * utils.c (init_gigi_decls): Likewise.
32091 * utils2.c (build_call_raise): Likewise.
32092
244e5a2c
AC
320932004-08-13 Olivier Hainque <hainque@act-europe.fr>
32094
32095 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
32096 for a global aliased object with a variable size and an unconstrained
32097 nominal subtype, pretend there is no initializer if the one we have is
32098 incomplete, and avoid referencing an inexistant component in there. The
32099 part we have will be rebuilt anyway and the reference may confuse
32100 further operations.
32101
321022004-08-13 Thomas Quinot <quinot@act-europe.fr>
32103
32104 * einfo.ads: Minor reformatting
32105
32106 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
32107 restrictions in the ALI if we only want to warn about violations.
32108
321092004-08-13 Vincent Celier <celier@gnat.com>
32110
32111 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
32112 when creating a new Unit_Record in table Units.
32113
32114 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
32115 that are violated, if any.
32116
32117 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
32118 add directory separator if path already ends with a directory separator.
32119
321202004-08-13 Ed Schonberg <schonberg@gnat.com>
32121
32122 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
32123 unit, this is an attempt to inline a construct that is not available in
32124 the current restricted mode, so abort rather than trying to continue.
32125
32126 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
32127 discriminants that rename those of the parent, recover names of
32128 original discriminants for the constraint on the full view of the
32129 parent.
32130 (Complete_Private_Subtype): Do not create a subtype declaration if the
32131 subtype is an itype.
32132
32133 * gnat_rm.texi: Added section on implementation of discriminated
32134 records with default values for discriminants.
32135
321362004-08-13 Ed Schonberg <schonberg@gnat.com>
32137
32138 PR ada/15601
32139 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
32140 the second operand is overloaded.
32141
1a186ec5
RH
321422004-08-10 Richard Henderson <rth@redhat.com>
32143
32144 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
32145 add __builtin_alloca.
32146
89f1a702
RH
321472004-08-10 Richard Henderson <rth@redhat.com>
32148
32149 * config-lang.in (boot_language): Yes.
32150
5d09245e
AC
321512004-08-09 Thomas Quinot <quinot@act-europe.fr>
32152
32153 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
32154 from complaining on potential uninitialized reference.
32155 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
32156 new specification and test explicitly for non-zero return value.
32157
32158 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
32159 returning C.int, to avoid using a derived boolean type.
32160
32161 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
32162 Duplicate_Subexpr_No_Checks in preference to direct use of
32163 Remove_Side_Effects and New_Copy_Tree.
32164 Clear Comes_From_Source on prefix of 'Size attribute reference.
32165
32166 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
32167 g-socthi-vxworks.adb: Change calls to
32168 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
32169 and test explicitly for non-zero return value.
32170
6615c446 32171 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
32172 (Is_Socket_In_Set): Declare imported function as returning C.int, to
32173 avoid using a derived boolean type.
32174
321752004-08-09 Albert Lee <lee@gnat.com>
32176
32177 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
32178
321792004-08-09 Pascal Obry <obry@gnat.com>
32180
32181 * gnat_ugn.texi: Document new way to build DLLs on Windows using
32182 GCC's -shared option.
32183
32184 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
32185 Options_2 parameter (options put after object files).
32186
321872004-08-09 Olivier Hainque <hainque@act-europe.fr>
32188
32189 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
32190 ignore overflows on low and high bounds of an index to also account for
32191 differences in signedness between sizetype and gnu_index_subtype.
32192 These are as legitimate as the ones caused by a lower TYPE_PRECISION
32193 on sizetype.
32194
321952004-08-09 Robert Dewar <dewar@gnat.com>
32196
32197 * s-solita.ads, s-solita.adb: Minor reformatting
32198
32199 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
32200 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
32201 obsolescent section
32202 Add note that No_Implicit_Conditionals does not suppress
32203 run time constraint checks.
32204
32205 * vms_conv.ads: Minor reformatting
32206
32207 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
32208 and necessary for following change).
32209 (Mark): Return new format Mark_Id containing sec stack address
32210 (Release): Use sec stack address from Mark_Id avoiding Self call
32211
32212 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
32213 pointer (cleanup and necessary for following change).
32214 Define Mark_Id as record containing address of secondary stack, that way
32215 Release does not need to find the stack again, decreasing the number of
32216 calls to Self and improving efficiency.
32217
32218 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
32219
32220 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
32221 case variable into the individual case branches when possible.
32222
32223 * sem_ch11.adb: Minor reformatting
32224
32225 * prj.ads: Correct spelling of suffixs
32226
32227 * prj-nmsc.adb: Minor reformatting
32228 Correct spelling suffixs throughout (also in identifiers)
32229
32230 * freeze.adb: Minor spelling correction
32231
32232 * exp_ch2.adb: Cleanups to handling of Current_Value
32233 (no functional effect).
32234
32235 * bld.adb: Correct spelling of suffixs
32236
32237 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
32238
322392004-08-09 Ed Schonberg <schonberg@gnat.com>
32240
32241 PR ada/15408
5d09245e
AC
32242 * sem_ch7.adb (Install_Private_Declarations): In the body of the
32243 package or of a child, private entities are both immediately_visible
32244 and not hidden.
32245
322462004-08-09 Ed Schonberg <schonberg@gnat.com>
32247
32248 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
32249 there are no range checks on the value of the literal.
32250
32251 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
32252 wrapped is the triggering alternative of an asynchronous select, action
32253 statements mustbe inserted before the select itself.
32254
32255 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
32256 case where the prefix is a protected function call.
32257 (Resolve_Attribute, case 'Access): The attribute reference on a
32258 subprogram is legal in a generic body if the subprogram is declared
32259 elsewhere.
32260
322612004-08-09 Vincent Celier <celier@gnat.com>
32262
32263 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
32264 languages, otherwise building the library may fail with unresolved
32265 symbols.
32266 (Compile_Sources): Do not build libraries if -c switch is used
32267
32268 * gnatlink.adb (Process_Args): New switches -M and -Mmap
32269 (Write_Usage): If map file creation is supported, output new switches
32270 -M and -Mmap.
32271 (Gnatlink): When -M is specified, add the necessary switch(es) to the
32272 gcc call, when supported.
32273
32274 * Makefile.in: Added indepsw.o to the object list for gnatlink
32275 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
32276
32277 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
32278 indepsw.adb, indepsw.ads: New files.
32279
322802004-08-09 Bernard Banner <banner@gnat.com>
32281
32282 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
32283
32284 * Makefile.in: add section for vxworks x86
32285
322862004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
32287
32288 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
32289 per-object constrained components where the discriminant is of an
32290 Access type.
32291 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
32292 the parent initialization procedure for derived Unchecked_Unions.
32293 Instead, derived Unchecked_Unions build their own initialization
32294 procedure.
32295 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
32296 Check the body of the subprogram for details.
32297 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
32298 functions for derived Unchecked_Union types by introducing a condition.
32299 Allow the creation of TSS equality functions for Unchecked_Unions.
32300 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
32301 Add formal parameter Discr to function signature. Discr is used to
32302 control the generated case statement for Unchecked_Union types.
32303 (Make_Eq_If): Rename formal parameter Node to E in function signature.
32304
32305 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
32306 Unchecked_Unions.
32307 Check the body of the subprogram for details.
32308 (Expand_Composite_Equality): Augment composite type equality to include
32309 correct handling of Unchecked_Union components.
32310 (Expand_N_In): Add condition to detect illegal membership tests when the
32311 subtype mark is a constrained Unchecked_Union and the expression lacks
32312 inferable discriminants, and build a Raise_Program_Error node.
32313 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
32314 to detect types that contain components of unconstrained Unchecked_Union
32315 subtype. Add condition to detect equality between types that have an
32316 unconstrained Unchecked_Union component, and build a Raise_Program_Error
32317 node. Add condition to detect equality between Unchecked_Union types
32318 that lack inferable discriminants, and build a Raise_Program_Error node.
32319 Otherwise build a TSS equality function call.
32320 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
32321 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
32322 with the operand lacking inferable discriminants, and build a Raise_
32323 Program_Error node.
32324 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
32325 composite equality.
32326 (Has_Inferable_Discriminants): Implement new predicate for objects and
32327 expressions of Unchecked_Union type. Check the body of subprogram for
32328 details.
32329 (Has_Unconstrained_UU_Components): Add function
32330 Component_Is_Unconstrained_UU. It is used to detect whether a single
32331 component is of an unconstrained Unchecked_Union subtype. Add function
32332 Variant_Is_Unconstrained_UU. It is used to detect whether a single
32333 component inside a variant is of an unconstrained Unchecked_Union type.
32334
32335 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
32336 inferred discriminant values. Add condition to generate a case
32337 statement with an inferred discriminant as the switch.
32338 (Make_Component_List_Assign): Introduce a Boolean flag that determines
32339 the behaviour of the subprogram in the presence of an Unchecked_Union.
32340 Add condition to trigger the usage of the inferred discriminant value
32341 as the generated case statement switch.
32342 (Make_Field_Assign): Introduce a Boolean flag that determines the
32343 behaviour of the subprogram in the presence of an Unchecked_Union. Add
32344 condition to trigger the usage of the inferred discriminant value as
32345 the right-hand side of the generated assignment.
32346
32347 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
32348 parameter generation when dealing with Unchecked_Unions.
32349
32350 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
32351 checks for Unchecked_Unions.
32352
32353 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
32354
32355 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
32356 Raise_Program_Error nodes for the execution of Read and Write
32357 attributes of Unchecked_Union types and the execution of Input and
32358 Output attributes of Unchecked_Union types that lack default
32359 discriminant values.
32360
32361 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
32362 Unchecked_Union. Add procedure Check_Component. It is used to inspect
32363 per-object constrained components of Unchecked_Unions for being
32364 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
32365 check individual components withing a variant.
32366
32367 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
32368 comparison of Unchecked_Unions.
32369 (Resolve_Equality_OP): Remove guard that prevents equality between
32370 Unchecked_Unions.
32371
32372 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
32373 of component subtypes for Unchecked_Union components.
32374 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
32375 since it is the actual subtype.
32376
32377 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
32378 pass of Unchecked_Union subtypes as generic actuals to formal types
32379 that lack known_discriminant_parts or that are derived Unchecked_Union
32380 types, and do nothing. In any other case, produce an error message.
32381
32382 * sem_ch3.adb (Analyze_Component_Declaration): Add function
32383 Contains_POC. It determines whether a constraint uses the discriminant
32384 of an enclosing record type.
32385 Add condition to detect per-object constrained component and set the
32386 appropriate flag.
32387 (Derived_Type_Declaration): Remove guard that prevents derivation from
32388 Unchecked_Union types.
32389 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
32390 Union subtypes.
32391
32392 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
32393 references to Unchecked_Union discriminants.
32394
32395 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
32396 formal generation when dealing with Unchecked_Unions.
32397 (Set_Actual_Subtypes): Add condition to prevent generation of actual
32398 subtypes for Unchecked_Unions.
32399
32400 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
32401 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
32402 completions of discriminated partial views by Unchecked_Unions and
32403 produce an error message.
32404
324052004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32406
32407 * trans.c (struct stmt_group): New field, GLOBAL.
32408 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
32409 (struct elab_info): New struct.
32410 (elab_info_list, gnu_elab_proc_stack): New variables.
32411 (Compilation_Unit_to_gnu): New procedure.
32412 (gigi): Call it and also handle elaboration procs we've saved.
32413 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
32414 global field from parent.
32415 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
32416 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
32417 (start_stmt_group): Initialize global field from parent.
32418 (add_decl_expr): Set to global for current statement group.
32419 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
32420 post.
32421
32422 * utils.c (global_bindings_p): True when no current_function_decl; no
32423 longer check current_binding_level.
32424
324252004-08-09 Ben Brosgol <brosgol@gnat.com>
32426
32427 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
32428 choice.
32429
32430 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
32431
160ff372
AS
324322004-08-06 Andreas Schwab <schwab@suse.de>
32433
32434 * utils.c (gnat_define_builtin): Remove second parameter of
32435 make_decl_rtl.
32436 (begin_subprog_body): Likewise.
32437
615cbd95
AC
324382004-07-26 Arnaud Charlet <charlet@act-europe.fr>
32439
32440 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
32441 optimization, not supported by the tree-ssa back-end.
32442
324432004-07-26 Olivier Hainque <hainque@act-europe.fr>
32444
32445 * s-mastop-irix.adb: Update comments.
32446
32447 * a-except.adb (Exception_Information): Raise Constraint_Error if
32448 exception Id is Null_Id.
32449 This is required behavior, which is more reliably and clearly checked
32450 at the top level interface level.
32451
324522004-07-26 Javier Miranda <miranda@gnat.com>
32453
32454 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
32455 call if a component has no default_expression and the box is used.
32456
32457 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
32458 default_expression and you use box, it behaves as if you had declared a
32459 stand-alone object.
32460 (Resolve_Record_Aggregate): If a component has no default_expression and
32461 you use box, it behaves as if you had declared a stand-alone object.
32462
32463 * sem_ch10.adb (Install_Siblings): Do not make visible the private
32464 entities of private-with siblings.
32465
324662004-07-26 Ed Schonberg <schonberg@gnat.com>
32467
32468 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
32469 for a component of an itype, set the parent pointer for analysis,
32470 there is no list in which to insert it.
32471
32472 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
32473 bona-fide renamings, not for inherited operations.
32474
32475 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
32476 actual for a formal that is an access parameter, create local
32477 finalization list even if the expression is not an aggregate.
32478
324792004-07-26 Ed Schonberg <schonberg@gnat.com>
32480
32481 PR ada/16213
32482 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
32483 Diagnose properly illegal subprogram renamings that are library units.
32484
324852004-07-26 Ed Schonberg <schonberg@gnat.com>
32486
32487 PR ada/15588
32488 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
32489 conversion rewritten as an unchecked conversion, check that original
32490 expression is a variable.
32491
32492 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
32493 unchecked_conversion, create new node rather than rewriting in place,
32494 to preserve original construct.
32495
324962004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32497
32498 * gigi.h (gnat_expand_body): Deleted.
32499
32500 * Make-lang.in: (trans.o): Depends on function.h.
32501
32502 * misc.c: (gnat_expand_body): Moved to here.
32503
32504 * trans.c (gnat_expand_body_1): Deleted.
32505 (gnat_expand_body): Moved from here.
32506 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
32507 (add_stmt): Check for marked visited with global_bindings_p.
32508 (gnat_gimplify_expr, case COMPONENT_REF): New case.
32509 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
32510
32511 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
32512 VIEW_CONVERT_EXPR if not operation type.
32513
32514 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
32515 fat pointer.
32516
32517 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
32518 changes: reformatting of negation operators, removing unneeded
32519 inequality comparison with zero, converting equality comparisons with
32520 zero to negations, changing int/0/1 to bool/false/true, replace calls
32521 to gigi_abort with abort, and various other similar changes.
32522
325232004-07-26 Vincent Celier <celier@gnat.com>
32524
32525 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
32526 "setup".
32527
32528 * make.adb (Gnatmake): Fail when a library is not present and there is
32529 no object directory.
32530
32531 * mlib-prj.adb (Check_Library): No need to check if the library needs
32532 to be rebuilt if there is no object directory, hence no object files
32533 to build the library.
32534
32535 * opt.ads (Setup_Projects): New Boolean flag.
32536
32537 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
32538 Location.
32539 Create directory when Kind /= "" and in "gnat setup". Report error if
32540 directory cannot be created.
32541 (Ada_Check): Create library interface copy dir if it does not exist
32542 and we are in "gnat setup".
32543 (Find_Sources): No error if in "gnat setup" and no Ada sources were
32544 found.
32545 (Language_Independent_Check): Create object directory, exec directory
32546 and/or library directory if they do not exist and we are in
32547 "gnat setup".
32548
32549 * vms_conv.ads: (Command_Type): New command Setup.
32550
32551 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
32552
32553 * vms_data.ads: Add qualifiers/switches for new built-in command
32554 "setup".
32555
b785f485
RH
325562004-07-25 Richard Henderson <rth@redhat.com>
32557
32558 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
32559 DECL_IGNORED_P on RESULT_DECL.
32560
35ae2ed8
AC
325612004-07-20 Olivier Hainque <hainque@act-europe.fr>
32562
32563 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
32564 allocation and potentially overflowing update with
32565 Tailored_Exception_Information. Use the sec-stack free procedural
32566 interface to output Exception_Information instead.
32567
32568 * a-except.adb (To_Stderr): New subprogram for character, and string
32569 version moved from a-exextr to be visible from other separate units.
32570 (Tailored_Exception_Information): Remove the procedural version,
32571 previously used by the default Last_Chance_Handler and not any more.
32572 Adjust various comments.
32573
32574 * a-exexda.adb: Generalize the exception information procedural
32575 interface, to minimize the use of secondary stack and the need for
32576 local buffers when the info is to be output to stderr:
32577 (Address_Image): Removed.
32578 (Append_Info_Character): New subprogram, checking for overflows and
32579 outputing to stderr if buffer to fill is of length 0.
32580 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
32581 (Append_Info_Address, Append_Info_Exception_Name,
32582 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
32583 Append_Info_Basic_Exception_Traceback,
32584 Append_Info_Exception_Information): New subprograms.
32585 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
32586 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
32587 Exception_Info_Maxlength, Exception_Name_Length,
32588 Exception_Message_Length): New subprograms.
32589 (Exception_Information): Use Append_Info_Exception_Information.
32590 (Tailored_Exception_Information): Use
32591 Append_Info_Basic_Exception_Information.
32592 Export services for the default Last_Chance_Handler.
32593
32594 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
32595 other separate units.
32596
325972004-07-20 Vincent Celier <celier@gnat.com>
32598
32599 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
32600
326012004-07-20 Ed Schonberg <schonberg@gnat.com>
32602
32603 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
32604 emit itype references for the designated types of component types that
32605 are declared outside of the full record declaration, and that may
32606 denote a partial view of that record type.
32607
326082004-07-20 Ed Schonberg <schonberg@gnat.com>
32609
32610 PR ada/15607
32611 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
32612 which is the designated type in an access component declaration, to the
32613 list of incomplete dependents of the parent type, to avoid elaboration
32614 issues with out-of-scope subtypes.
32615 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
32616 full view of the parent.
32617
326182004-07-20 Ed Schonberg <schonberg@gnat.com>
32619
32620 PR ada/15610
32621 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
32622 entities that are hidden, such as references to generic actuals
32623 outside an instance.
32624
326252004-07-20 Javier Miranda <miranda@gnat.com>
32626
32627 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
32628 support to the new notation.
32629 (Analyze_Selected_Component): Add call to Try_Object_Operation.
32630
326312004-07-20 Jose Ruiz <ruiz@act-europe.fr>
32632
32633 * s-taprob.adb: Adding the elaboration code required for initializing
32634 the tasking soft links that are common to the full and the restricted
32635 run times.
32636
32637 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
32638 restricted run time has been moved to the package
32639 System.Soft_Links.Tasking.
32640
32641 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
32642 restricted run time has been moved to the package
32643 System.Soft_Links.Tasking.
32644
32645 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
32646
32647 * s-solita.ads, s-solita.adb: New files.
32648
326492004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32650
32651 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
32652 Case_Statement_to_gnu): Split off from gnat_to_gnu.
32653 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
32654 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
32655 Exception_Handler_to_gnu_zcx): Likewise.
32656
6e34d3a3
JM
326572004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
32658
32659 * gigi.h (builtin_function): Declare.
32660
523456db
AC
326612004-07-15 Robert Dewar <dewar@gnat.com>
32662
32663 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
32664 reformatting
32665
32666 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
32667 access values as an example of a warning.
32668
32669 * gnat_rm.texi: Document new attribute Has_Access_Values
32670
32671 * gnat-style.texi: Document that box comments belong on nested
32672 subprograms
32673
32674 * sem_util.ads (Has_Access_Values): Improved documentation
32675
32676 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
32677
32678 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
32679 (Process_Interface_Name): Call to this new procedure
32680 (Set_Extended_Import_Export_External_Name): Call to this new procedure
32681
32682 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
32683
32684 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
32685
32686 * einfo.ads: Minor comment typo fixed
32687
326882004-07-15 Jose Ruiz <ruiz@act-europe.fr>
32689
32690 * snames.adb: Add _atcb.
32691
32692 * snames.ads: Add Name_uATCB.
32693
32694 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
32695 (in the expanded code) when using the restricted run time.
32696
32697 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
32698 a in parameter in order to allow ATCBs to be preallocated (in the
32699 expanded code).
32700
32701 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
32702 order to allow ATCBs to be preallocated. In case of error, the ATCB is
32703 deallocated in System.Tasking.Stages.
32704
32705 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
32706 order to allow ATCBs to be preallocated.
32707
32708 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
32709 here. It was previously done in Initialize_ATCB.
32710
32711 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
32712
32713 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
32714 Restricted run time.
32715
32716 * exp_ch3.adb: When using the Restricted run time, pass the
32717 preallocated Ada_Task_Control_Block when creating a task.
32718
327192004-07-15 Ed Schonberg <schonberg@gnat.com>
32720
32721 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
32722 function call that is itself an actual in an enclosing call, diagnose
32723 problem here rather than assuming that resolution will catch it.
32724
32725 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
32726 the local copy of a generic unit for a formal package, and the generic
32727 is a child unit, install private part of ancestors before compiling
32728 private part of spec.
32729
32730 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
32731 use scope entities rather than tree structures, to handle properly
32732 parent units that are instances rewritten as bodies for inlining
32733 purposes.
32734
32735 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
32736 Remove_Parents): Handle properly a parent unit that is an
32737 instantiation, when the unit has been rewritten as a body for inlining
32738 purposes.
32739
32740 * par.adb (Goto_List): Global variable to collect goto statements in a
32741 given unit, for use in detecting natural loops.
32742
32743 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
32744 use in detecting natural loops.
32745
32746 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
32747 backwards goto's, and rewrite as a infinite loop, to improve locality
32748 of temporaries.
32749
32750 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
32751 subcomponent that includes an indexed reference, to prevent the
32752 generation of copies that would miscompile the desired assignment
32753 statement.
32754 (Build_Task_Image_Decls): Add a numeric suffix to
32755 generated name for string variable, to avoid spurious conflicts with
32756 the name of the type of a single protected object.
32757
32758 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
32759 loop with an explicit exit statement, to avoid generating an
32760 out-of-range value with 'Succ leading to spurious constraint_errors
32761 when compiling with -gnatVo.
32762
327632004-07-15 Thomas Quinot <quinot@act-europe.fr>
32764
32765 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
32766 might not be analyzed yet, even if its Etype is already set (case of an
32767 unchecked conversion built using Unchecked_Convert_To, for example).
32768 If the prefix has already been analyzed, this will be a nop anyway.
32769
32770 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
32771 controller type, or an assignment of a record type with controlled
32772 components, copy only user data, and leave the finalization chain
32773 pointers untouched.
32774
327752004-07-15 Vincent Celier <celier@gnat.com>
32776
32777 * make.adb (Collect_Arguments): Improve error message when attempting
32778 to compile a source not part of any project, when -x is not used.
32779
32780 * prj.ads: (Defined_Variable_Kind): New subtype
32781
32782 * prj-attr.adb (Register_New_Package): Two new procedures to register
32783 a package with or without its attributes.
32784 (Register_New_Attribute): Mew procedure to register a new attribute in a
32785 package.
32786 New attribute oriented subprograms: Attribute_Node_Id_Of,
32787 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32788 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32789 Next_Attribute.
32790 New package oriented subprograms: Package_Node_Id_Of,
32791 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32792
32793 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
32794 type.
32795 (Package_Node_Id): Now a private, self initialized type
32796 (Register_New_Package): New procedure to register a package with its
32797 attributes.
32798 New attribute oriented subprograms: Attribute_Node_Id_Of,
32799 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
32800 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
32801 Next_Attribute.
32802 New package oriented subprograms: Package_Node_Id_Of,
32803 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
32804
32805 * prj-dect.adb (Parse_Attribute_Declaration,
32806 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
32807
32808 * prj-makr.adb (Make): Parse existing project file before creating
32809 other files. Fail if there was an error during parsing.
32810
32811 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
32812 new spec of Prj.Attr.
32813
32814 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
32815 to new spec of Prj.Attr.
32816
328172004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32818
32819 * utils2.c: Fix typo in comment.
32820
328212004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
32822
32823 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
32824 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
32825
a1c7af89
AS
328262004-07-14 Andreas Schwab <schwab@suse.de>
32827
32828 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
32829
a5cb3b30
AC
328302004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32831
32832 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
32833 object type.
32834 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
32835 TYPE_STUB_DECL.
32836
32837 * misc.c (gnat_types_compatible_p): New function.
32838 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
32839 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
32840
32841 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
32842 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
32843 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
32844 (mark_visited): Don't mark dummy type.
6615c446 32845 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
32846 parameter, we must remove any LJM building from GNU_NAME.
32847 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
32848 (pos_to_constructor): Use int_const_binop.
32849 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
32850 PARM_DECL.
32851
32852 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
32853 (gnat_pushlevel): Set TREE_USE on BLOCK node.
32854 (gnat_install_builtins): Add __builtin_memset.
32855
328562004-07-13 Olivier Hainque <hainque@act-europe.fr>
32857
32858 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
32859 for a renaming, stabilize the initialization expression if we are at a
32860 local level. At the local level, uses of the renaming may be performed
32861 by a direct dereference of the initializing expression, and we don't
32862 want possible variables there to be evaluated for every use.
32863
32864 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
32865 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
32866 them on the way. Account for the fact that we may introduce side
32867 effects in the process.
32868
0976078c
RH
328692004-07-13 Richard Henderson <rth@redhat.com>
32870
32871 * misc.c (default_pass_by_ref): Use pass_by_reference.
32872
9dcf6e73
JM
328732004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
32874
32875 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
32876 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
32877
ac45df5d
RH
328782004-07-08 Richard Henderson <rth@redhat.com>
32879
32880 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
32881 commentary.
32882
15ce9ca2
AC
328832004-07-06 Vincent Celier <celier@gnat.com>
32884
32885 * vms_conv.ads: Minor reformatting.
32886 Alphabetical order for enumerated values of type Command_Type, to have
32887 the command in alphabetical order for the usage.
32888
32889 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
32890 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
32891
32892 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
32893
32894 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
32895 (Add_Archive_Path): Only add the global archive if there is one.
32896 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
32897 or not any object file to put in the global archive, and don't build
32898 a global archive if there is none.
32899 (X_Switches): New table
32900 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
32901 in the X_Switches table, if any.
32902 (Initialize): Make sure the X_Switches table is empty
32903 (Scan_Arg): Record -X switches in table X_Switches
32904
32905 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
32906
32907 * make.adb: Minor comment fix
32908
32909 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
32910 invoked with directory information, add the directory in front of the
32911 path.
32912
32913 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
32914 invoked with directory information, add the directory in front of the
32915 path.
32916
32917 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
32918 when Keep_Temporary_Files is False.
32919 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
32920 directory information, add the directory in front of the path.
32921 When not on VMS, handle new switch -dn before the command to set
32922 Keep_Temporary_Files to True.
32923 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
32924 everywhere.
32925
32926 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
32927 invoked with directory information, add the directory in front of the
32928 path.
32929
329302004-07-06 Thomas Quinot <quinot@act-europe.fr>
32931
32932 * snames.ads, snames.adb (Name_Stub): New name for the distributed
32933 systems annex.
32934
32935 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
32936 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
32937
32938 * g-socket.adb (To_Timeval): Fix incorrect conversion of
32939 Selector_Duration to Timeval for the case of 0.0.
32940
32941 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
32942 documentation from Evolve_And_Then.
32943
329442004-07-06 Jose Ruiz <ruiz@act-europe.fr>
32945
32946 * s-taprop-tru64.adb, s-taprop-os2.adb,
32947 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
32948
329492004-07-06 Robert Dewar <dewar@gnat.com>
32950
32951 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
32952 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
32953 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
32954 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
32955 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
32956 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
32957 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
32958 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
32959 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
32960 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
32961 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
32962 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
32963 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
32964 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
32965 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
32966 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
32967 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
32968 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
32969 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
32970 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
32971 vms_data.ads: Minor reformatting,
32972 Fix bad box comment format.
32973
32974 * gnat_rm.texi: Fix minor grammatical error
32975
32976 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
32977
32978 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
32979 more cases of discriminated records to be recognized as not needing a
32980 secondary stack.
32981 (Has_Access_Values): New function.
32982
32983 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
32984
32985 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
32986 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
32987 with LRM terminology).
32988 Change terminology in comments primitive type => elementary type.
32989
329902004-07-06 Ed Schonberg <schonberg@gnat.com>
32991
32992 PR ada/15602
32993 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
32994 parameters do not impose any requirements on the presence of a body.
32995
329962004-07-06 Ed Schonberg <schonberg@gnat.com>
32997
32998 PR ada/15593
32999 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
33000 compilation unit and is in an open scope at the point of instantiation,
33001 assume that a body may be present later.
33002
330032004-07-06 Ed Schonberg <schonberg@gnat.com>
33004
33005 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
33006 Improve error message when specified size is not supported.
33007
33008 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
33009 is never a primitive operation.
33010
cb42deba
AS
330112004-07-05 Andreas Schwab <schwab@suse.de>
33012
33013 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
33014 RECORD_OR_UNION_CHECK.
33015 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
33016
98877933
KC
330172004-07-04 Kelley Cook <kcook@gcc.gnu.org>
33018
33019 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
33020 dependency on xgnatugn, instead build it via a submake.
33021 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
33022
8fff4fc1
RH
330232004-07-04 Richard Henderson <rth@redhat.com>
33024
33025 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
33026
4dfa0342
RH
330272004-07-01 Richard Henderson <rth@redhat.com>
33028
33029 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
33030 * utils.c (max_size): Likewise.
33031
909f21b3
RK
330322004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33033
33034 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
33035 and rest_of_type_compilation; add arg to create_*_decl.
15cd18b9 33036 (annotate_decl_with_node): Deleted.
909f21b3
RK
33037 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
33038 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
33039 (get_current_block_context, gnat_pushdecl): New declarations.
33040 (gnat_init_stmt_group): Likewise.
33041 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
33042 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
33043 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
33044 (gnat_init): Call gnat_init_stmt_group.
33045 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
33046 (gnu_pending_elaboration_list): Deleted.
33047 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
33048 (gigi): Rearrange initialization calls and move some to last above.
33049 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
33050 Delete calls to add_decl_expr; add arg to create_*_decl.
33051 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 33052 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
33053 begin_subprog_body and call it.
33054 Don't push and pop ggc context.
33055 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
33056 (add_stmt): Remove handling of DECL_EXPR from here.
33057 If not in function, mark visited.
33058 (add_decl_expr): Put global at top level.
33059 Check for cases of DECL_INITIAL we have to handle here.
33060 (process_type): Add extra arg to create_type_decl.
33061 (build_unit_elab): Rework to just gimplify.
33062 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
33063 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
33064 (get_pending_elaborations, pending_elaborations_p): Likewise.
33065 (push_pending_elaborations, pop_pending_elaborations): Likewise.
33066 (get_elaboration_location, insert_elaboration_list): Likewise.
33067 (gnat_binding_level): Renamed from ada_binding_level.
33068 (init_gnat_to_gnu): Don't clear pending_elaborations.
33069 (global_bindings_p): Treat as global if no current_binding_level.
33070 (set_current_block_context): New function.
33071 (gnat_pushdecl): Renamed from pushdecl; major rework.
33072 All callers changed.
33073 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
33074 (finish_record_type): Call call pushdecl for stub decl.
33075 (function_nesting_depth): Deleted.
33076 (begin_subprog_body): Delete obsolete code.
33077 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 33078
246d2ceb
AC
330792004-06-28 Robert Dewar <dewar@gnat.com>
33080
33081 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33082 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
33083 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
33084 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
33085 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
33086
33087 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
33088 deal with problem of inefficient slices on machines with strict
33089 alignment, when the slice is a component of a composite.
33090
33091 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
33092 machines, we need the check there as well.
33093
330942004-06-28 Ed Schonberg <schonberg@gnat.com>
33095
33096 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
33097 determine safe copying direction for overlapping slice assignments
33098 when component is controlled.
33099
33100 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
33101 formal derived type in the actual for a formal package are visible in
33102 the enclosing instance.
33103
331042004-06-28 Ed Schonberg <schonberg@gnat.com>
33105
33106 PR ada/15600
33107 * sem_util.adb (Trace_Components): Diagnose properly an illegal
33108 circularity involving a private type whose completion includes a
33109 self-referential component.
33110 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
33111 renaming or an instantiation from an implicit derived operation.
33112
331132004-06-28 Pascal Obry <obry@gnat.com>
33114
33115 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
33116 DLL.
33117 (Library_File_Name_For): Idem.
33118
331192004-06-28 Matthew Gingell <gingell@gnat.com>
33120
33121 * g-traceb.ads: Add explanatory note on the format of addresses
33122 expected by addr2line.
33123
331242004-06-28 Jerome Guitton <guitton@act-europe.fr>
33125
33126 * Makefile.in: Force debugging information on s-tasdeb.adb,
33127 a-except.adb and s-assert.adb needed by the debugger.
33128
331292004-06-28 Vincent Celier <celier@gnat.com>
33130
33131 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
33132 Need_To_Build_Lib.
33133 (Gnatmake): Ditto.
33134
33135 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
33136
33137 * prj.adb: Minor reformatting
33138 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
33139
33140 * prj.ads: Comment updates
33141 Minor reformatting
33142 (Project_Data): Change Flag1 to Need_To_Build_Lib.
33143 Remove Flag2: not used.
33144
33145 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
33146 declaration.
33147
33148 * gnat_ugn.texi: Put a "null;" declaration in one project file example
33149
33150 * gnat_rm.texi: Document Empty declarations "null;".
33151
33152 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
33153 front of the linker options.
33154 (Link_Foreign): Put the global archives and the libraries in front of
33155 the linker options.
33156
331572004-06-28 Javier Miranda <miranda@gnat.com>
33158
33159 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
33160 (RTU_Loaded): Code cleanup
33161 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
33162 withed predefined units.
33163
33164 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
33165 explicitly withed predefined units.
33166 Fix typo in comment
33167
33168 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
33169 explicitly withed predefined units.
33170
bce3da32
RK
331712004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33172
33173 * ada-tree.def (DECL_STMT): Deleted.
33174 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
33175 (DECL_STMT_VAR): Deleted.
33176 * decl.c: add_decl_stmt now add_decl_expr.
33177 * gigi.h: Likewise.
33178 * trans.c: Likewise.
15cd18b9 33179 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
bce3da32
RK
33180 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
33181 (add_stmt): Only handle padded type here.
33182 (add_stmt_with_node): Allow gnat_node to not be present.
33183 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
33184 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
33185 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
33186 make a SAVE_EXPR for the entire fat pointer.
33187 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
33188 (create_index_type): Make a DECL_EXPR.
33189 (end_subprog_body): Don't call allocate_struct_function here but
33190 do clear cfun.
33191
0da2c8ac
AC
331922004-06-25 Pascal Obry <obry@gnat.com>
33193
33194 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
33195 Relocatable from Build_Dynamic_Library call.
33196
33197 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
33198 Relocatable are now synonym.
33199
33200 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
33201
33202 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
33203 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
33204 call.
33205
33206 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
33207 Lib_Address and Relocatable.
33208 (Default_DLL_Address): Removed.
33209
6615c446
JO
33210 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33211 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
33212 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
33213 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
33214 (Default_DLL_Address): Removed.
33215
33216 * mlib-tgt-mingw.adb: Ditto.
33217 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
33218
33219 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
33220 the initial thread stack size.
33221
33222 * a-strmap.ads: Move package L to private part as it is not used in
33223 the spec. Found while reading code.
33224
332252004-06-25 Olivier Hainque <hainque@act-europe.fr>
33226
33227 * tracebak.c: Introduce support for a GCC infrastructure based
33228 implementation of __gnat_backtrace.
33229
33230 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
33231 any more. Use accessors instead. This eases maintenance and relaxes
33232 some alignment constraints.
33233 (_GNAT_Exception structure): Remove the Ada specific fields
33234 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
33235 a-exexpr.adb.
33236 (is_handled_by, __gnat_eh_personality): Replace component references to
33237 exception structure by use of the new accessors.
33238
33239 * init.c (__gnat_initialize): Adjust comments to match the just
33240 reverted meaning of the -static link-time option.
33241
33242 * adaint.c (convert_addresses): Arrange not to define a stub for
33243 mips-irix any more, as we now want to rely on a real version from a
33244 recent libaddr2line.
33245
33246 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
33247 the personality routine can use them and not have to rely on a C
33248 counterpart of the record anymore. This simplifies maintenance and
33249 relaxes the constraint of having Standard'Maximum_Alignment match
33250 BIGGEST_ALIGNMENT.
33251 Update comments, and add a section on the common header alignment issue.
33252
332532004-06-25 Geert Bosch <bosch@gnat.com>
33254
33255 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
33256 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
33257
332582004-06-25 Robert Dewar <dewar@gnat.com>
33259
33260 * gnat_rm.texi: Fix section on component clauses to indicate that the
33261 restriction on byte boundary placement still applies for bit packed
33262 arrays.
33263 Add comment on stack usage from Initialize_Scalars
33264
33265 * gnat_ugn.texi: Add documentation for -gnatyLnnn
33266
33267 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
33268 limiting nesting level.
33269
33270 * usage.adb: Add line for -gnatyLnnn switch
33271
33272 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
33273 sem_ch13.adb, exp_aggr.adb: Minor reformatting
33274
33275 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
33276 type as well as on the subtype. This corrects a problem in freeze in
33277 setting alignments of atomic types.
33278
33279 * sem_eval.ads: Minor comment typo fixed
33280
33281 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
33282 level. Minor reformatting.
33283
33284 * fname.adb (Is_Predefined_File_Name): Require a letter after the
33285 minus sign. This means that file names like a--b.adb will not be
33286 considered predefined.
33287
33288 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
33289 record Test new flag and give diagnostic for bad component clause.
33290 (Freeze_Entity): Set alignment of array from component alignment in
33291 cases where this is safe to do.
33292
33293 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
33294 arrays.
33295
33296 * cstand.adb: (Create_Standard): Set alignment of String to 1
33297
33298 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
33299
33300 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
33301 code in the common constrained array cases.
33302
33303 * a-storio.adb: Change implementation to avoid possible alignment
33304 problems on machines requiring strict alignment (data should be moved
33305 as type Buffer, not type Elmt).
33306
33307 * checks.adb (Apply_Array_Size_Check): Improve these checks by
33308 killing the overflow checks which we really do not need (64-bits is
33309 enough).
33310
333112004-06-25 Vincent Celier <celier@gnat.com>
33312
33313 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
33314 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
33315 inconditionally for the main project.
33316 (Recursive_Add_Archives.Add_Archive_Path): New procedure
33317 (Link_Executables.Check_Time_Stamps): New procedure
33318 (Link_Executables.Link_Foreign): New procedure
33319 Changes made to reduce nesting level of this package
33320 (Check): New procedure
33321 (Add_Switches): When not in quiet output, check that a switch is not
33322 the concatenation of several valid switches. If it is, issue a warning.
33323 (Build_Global_Archive): If the global archive is rebuilt, linking need
33324 to be done.
33325 (Compile_Sources): Rebuilding a library archive does not imply
33326 rebuilding the global archive.
33327 (Build_Global_Archive): New procedure
33328 (Build_Library): New name for Build_Archive, now only for library
33329 project
33330 (Check_Archive_Builder): New procedure
33331 (Create_Global_Archive_Dependency_File): New procedure
33332 (Gprmake): Call Build_Global_Archive before linking
33333 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
33334 throughout.
33335 (Scan_Arg): Display the Copyright notice when -v is used
33336
33337 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
33338 for gnatls.
33339
33340 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
33341 COMPILE.
33342 Add new GNAT LIST qualifier /FILES=
33343 Added qualifier /DIRECTORY= to GNAT METRIC
33344 Added qualifier /FILES= to GNAT METRIC
33345 Added qualifier /FILES to GNAT PRETTY
33346
33347 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
33348 to take into account both versions of the switch.
33349
33350 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
33351 always be the last switch to the gcc driver. Disable switch storing so
33352 that switches automatically added by the gcc driver are not put in the
33353 ALI file.
33354
33355 * prj.adb (Project_Empty): Take into account changes in components of
33356 Project_Data.
33357
33358 * prj.ads (Languages_Processed): New enumaration value All_Languages.
33359
33360 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
33361 used. Split Boolean component Ada_Sources_Present in two Boolean
33362 components Ada_Sources_Present and Other_Sources_Present.
33363 Minor reformatting
33364
33365 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
33366 instead of Sources_Present.
33367 (Set_Ada_Paths.Add.Recursive_Add): Ditto
33368
33369 * prj-nmsc.adb: Minor reformatting
33370 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
33371 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
33372 Check_Ada_Naming_Scheme.
33373 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
33374 throughout.
33375
33376 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
33377 In_Limited.
33378 Make sure that all cycles where there is at least one "limited with"
33379 are detected.
33380 (Parse_Single_Project): New Boolean parameter In_Limited
33381
33382 * prj-proc.adb (Recursive_Check): When Process_Languages is
33383 All_Languages, call first Prj.Nmsc.Ada_Check, then
33384 Prj.Nmsc.Other_Languages_Check.
33385
33386 * prj-proc.adb (Process): Use Ada_Sources_Present or
33387 Other_Sources_Present (instead of Sources_Present) depending on
33388 Process_Languages.
33389
33390 * lang-specs.h: Keep -g and -m switches in the same order, and as the
33391 last switches.
33392
33393 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
33394 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
33395 False.
33396 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
33397 False.
33398
33399 * lib.ads (Disable_Switch_Storing): New procedure.
33400
33401 * make.adb: Modifications to reduce nesting level of this package.
33402 (Check_Standard_Library): New procedure
33403 (Gnatmake.Check_Mains): New procedure
33404 (Gnatmake.Create_Binder_Mapping_File): New procedure
33405 (Compile_Sources.Compile): Add switch -gnatez as the last option
33406 (Display): Never display -gnatez
33407
6615c446 33408 * Makefile.generic:
0da2c8ac
AC
33409 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
33410
33411 * gnatcmd.adb (Check_Project): New function
33412 (Process_Link): New procedure to reduce nesting depth
33413 (Check_Files): New procedure to reduce the nesting depth.
33414 For GNAT METRIC, include the inherited sources in extending projects.
33415 (GNATCmd): When GNAT LS is invoked with a project file and no files,
33416 add the list of files from the sources of the project file. If this list
33417 is too long, put it in a temp text files and use switch -files=
33418 (Delete_Temp_Config_Files): Delete the temp text file that contains
33419 a list of source for gnatpp or gnatmetric, if one has been created.
33420 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
33421 in the project file is too large, create a temporary text file that
33422 list them and pass it to the tool with "-files=<temp text file>".
33423 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
33424
33425 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
33426 generated file is in not in Ada.
33427
33428 * gnatls.adb: Remove all parameters And_Save that are no longer used.
33429 (Scan_Ls_Arg): Add processing for -files=
33430 (Usage): Add line for -files=
33431
33432 * g-os_lib.adb (On_Windows): New global constant Boolean flag
33433 (Normalize_Pathname): When on Windows and the path starts with a
33434 directory separator, make sure that the resulting path will start with
33435 a drive letter.
33436
33437 * clean.adb (Clean_Archive): New procedure
33438 (Clean_Project): When there is non-Ada code, delete the global archive,
33439 the archive dependency files, the object files and their dependency
33440 files, if they exist.
33441 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
33442
334432004-06-25 Thomas Quinot <quinot@act-europe.fr>
33444
33445 * sinfo.ads: Fix typo in comment.
33446
33447 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
33448 the TSS for remote access-to-subprogram types, since these TSS are
33449 always present once the type has been analyzed.
33450 (RAS_E_Dereference): Same.
33451
33452 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
33453 reference raises Bad_Attribute, mark the reference as analyzed so the
33454 node (and any children resulting from rewrites that could have occurred
33455 during the analysis that ultimately failed) is not analyzed again.
33456
33457 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
33458
33459 * exp_dist.adb: Minor comment fix.
33460
33461 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
33462 type is an anonymous access type, no unchecked deallocation of the
33463 allocated object can occur. If the object is controlled, attach it with
33464 a count of 1. This allows attachment to the Global_Final_List, if
33465 no other relevant list is available.
33466 (Get_Allocator_Final_List): For an anonymous access type that is
33467 the type of a discriminant or record component, the corresponding
33468 finalisation list is the one of the scope of the type.
33469
334702004-06-25 Ed Schonberg <schonberg@gnat.com>
33471
33472 * sem_ch3.adb (Replace_Type): When computing the signature of an
33473 inherited subprogram, use the first subtype if the derived type
33474 declaration has no constraint.
33475
33476 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
33477 before applying previous optimization. Minor code cleanup.
33478
33479 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
33480 placed at the beginning of an unpacked record without explicit
33481 alignment, a slice of it will be aligned and does not need a copy when
33482 used as an actual.
33483
334842004-06-25 Ed Schonberg <schonberg@gnat.com>
33485
33486 PR ada/15591
33487 PR ada/15592
33488 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
33489 reference is written with expressions mimicking parameters.
33490
334912004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
33492
33493 PR ada/15589
33494 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
33495 STEP 2a. The constraints of a full type declaration of a derived record
33496 type are checked for conformance with those declared in the
33497 corresponding private extension declaration. The message
33498 "not conformant with previous declaration" is emitted if an error is
33499 detected.
33500
335012004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33502
33503 * g-traceb.ads: Document the need for -E binder switch in the spec.
33504
33505 * g-trasym.ads: Document the need for -E binder switch in the spec.
33506
335072004-06-25 Jose Ruiz <ruiz@act-europe.fr>
33508
33509 * sem_prag.adb: Add handling of pragma Detect_Blocking.
33510
33511 * snames.h, snames.ads, snames.adb: Add entry for pragma
33512 Detect_Blocking.
33513
33514 * s-rident.ads: Change reference to pragma Detect_Blocking.
33515
33516 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
33517 system.ads.
33518
33519 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
33520 to indicate whether pragma Detect_Blocking is active.
33521
33522 * par-prag.adb: Add entry for pragma Detect_Blocking.
33523
33524 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
33525 of not handling WITH.
33526 Note that this replaces the previous update which was incorrect.
33527
335282004-06-25 Javier Miranda <miranda@gnat.com>
33529
33530 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
33531 use-clauses to have a clean environment.
33532
33533 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
33534 the installation of the use-clauses to stablish a clean environment in
33535 case of compilation of a separate unit; otherwise the call to
33536 use_one_package is protected by the barrier Applicable_Use.
33537
33538 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
33539 the installation of the use-clauses to stablish a clean environment in
33540 case of compilation of a separate unit.
33541 (End_Use_Clauses): Minor comment cleanup.
33542
335432004-06-25 Sergey Rybin <rybin@act-europe.fr>
33544
33545 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
33546
65355d53
RH
335472004-06-23 Richard Henderson <rth@redhat.com>
33548
33549 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
33550
c0e3aa48
RK
335512004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33552
33553 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
33554 now bool instead of int.
33555 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
33556 * trans.c (gnu_switch_label_stack): New function.
33557 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
33558 elaboration of renamed entity returns.
33559 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
33560 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
33561 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
33562 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
33563 DECL_SIZE_UNIT and simplify variable-sized case.
33564 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
33565 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
33566 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
33567 (build_unit_elab): Disable for now.
33568 * utils.c (mark_visited): New function.
33569 (pushdecl): Walk tree to call it for global decl.
33570 (update_pointer_to): Update all variants of pointer and ref types.
33571 Add arg to COMPONENT_REF.
33572 (convert): Likewise.
33573 Move check for converting between variants lower down.
33574 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
33575 (build_allocator): Don't force type of MODIFY_EXPR.
33576 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
33577 put_var_into_stack.
33578
966389ee
RK
335792004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33580
33581 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
33582 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
33583 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
33584 subprograms.
33585 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
33586 all callers changed.
33587 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
33588 the way that EXIT_STMT finds the loop label.
33589 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
33590 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
33591 (add_stmt): Use annotate_with_locus insted of setting directly.
33592 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
33593 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
33594 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
33595 (build_vms_descriptor): Add extra args to ARRAY_REF.
33596 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
33597 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
33598 New cases.
33599 (build_binary_op): Don't make explicit CONVERT_EXPR.
33600 Add extra rgs to ARRAY_REF.
33601
cc335f43
AC
336022004-06-14 Pascal Obry <obry@gnat.com>
33603
33604 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
33605 Windows. Fix minor typo.
33606
33607 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
33608 which is now supported on Windows. With this implementation using the
33609 Library Project feature is no different on Windows than on UNIX.
33610
336112004-06-14 Vincent Celier <celier@gnat.com>
33612
33613 * makegpr.adb (Compile_Sources): Nothing to do when there are no
33614 non-Ada sources.
33615
33616 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
33617
33618 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
33619 found, show the project name and the path of the previously parsed
33620 project file.
33621
336222004-06-14 Ed Schonberg <schonberg@gnat.com>
33623
33624 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
33625 array, avoid copying the actual before the call.
33626
336272004-06-14 Thomas Quinot <quinot@act-europe.fr>
33628
33629 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
33630 Instead, allocate memory on worst-case alignment assumptions, and then
33631 return an aligned address within the allocated zone.
33632
336332004-06-14 Robert Dewar <dewar@gnat.com>
33634
33635 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
33636 elab entities in predefined units in No_Run_Time_Mode.
33637 (Gen_Adainit_C): Same fix
33638 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
33639 units in No_Run_Time_Mode
33640 (Gen_Elab_Calls_C): Same fix
33641
33642 * symbols-vms-alpha.adb: Minor reformatting
33643
33644 * g-debpoo.ads: Minor reformatting
33645
33646 * lib.adb (In_Same_Extended_Unit): Version working on node id's
33647
33648 * lib.ads (In_Same_Extended_Unit): Version working on node id's
33649
33650 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
33651 working on nodes.
33652
33653 * make.adb: Minor reformatting
33654
33655 * par-ch12.adb: Minor reformatting
33656
33657 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
33658
33659 * prj-strt.adb: Minor reformatting
33660
33661 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
33662 be more general.
33663
33664 * sem_attr.adb: Minor reformatting
33665
33666 * sem_ch7.adb: Minor reformatting
33667
33668 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
33669 for type in the same unit as the object declaration.
33670
33671 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
33672 static string expressions and not just string literals.
33673 Minor reformatting
33674 (Set_Warning): Reset restriction warning flag for restriction pragma
33675 Implement pragma Profile_Warnings
33676 Implement pragma Profile (Restricted)
33677 Give obolescent messages for old restrictions and pragmas
33678
33679 * snames.h, snames.ads, snames.adb: Add new entry for pragma
33680 Profile_Warnings.
33681
33682 * s-rident.ads: Add declarations for restrictions required by profile
33683 Restricted and profile Ravenscar.
33684
33685 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
33686
33687 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
33688 configuration pragmas.
33689
5453d5bd
AC
336902004-06-11 Vincent Celier <celier@gnat.com>
33691
33692 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
33693 gnatsym, when symbol policy is Restricted.
33694
33695 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
33696 gnatsym, when symbol policy is Restricted.
33697
33698 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
33699 read the symbol file.
33700 (Finalize): Fail in symbol policy Restricted if a symbol in the original
33701 symbol file is not in the object files. Do not create a new symbol file
33702 when symbol policy is Restricted.
33703
33704 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
33705 in Scng.
33706
33707 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
33708 Restricted.
33709 (Usage): Line for new switch -R
33710
33711 * make.adb (Initialize): When the platform is not VMS, add the
33712 directory where gnatmake is invoked in the front of the path, if
33713 gnatmake is invoked with directory information. Change the Scan_Args
33714 while loop to a for loop.
33715 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
33716 if Depth is equal or greater than the proposed depth, there is nothing
33717 to do.
33718 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
33719 instead of 0.
33720
33721 * prj.ads: Add new symbol policy Restricted.
33722
33723 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
33724 with the new parameters Check_All_Labels and Case_Location.
33725
33726 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
33727 (Library_Symbol_File needs to be defined).
33728
33729 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
33730 and Case_Location If Check_All_Labels is True, check that all values of
33731 the string type are used, and output warning(s) if they are not.
33732
33733 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
33734 and Case_Location.
33735
33736 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
33737
33738 * gnat_ugn.texi: Update documentation about the library directory in
33739 Library Projects.
33740
33741 * makegpr.adb (Display_Command): In verbose mode, also display the
33742 value of the CPATH env var, when the compiler is gcc.
33743 (Initialize): Change the Scan_Args while loop to a for loop
33744 (Compile_Individual_Sources): Change directory to object directory
33745 before compilations.
33746
33747 * symbols.ads: New symbol policy Restricted.
33748
337492004-06-11 Olivier Hainque <hainque@act-europe.fr>
33750
33751 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
33752 is now taken care of internally in the Exception_Propagation package
33753 and does not require clients assistance any more.
33754
33755 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
33756 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
33757 functions. Helpers to maintain a predicate required in the handling of
33758 occurrence transfer between tasks.
33759 This is now handled internally and does not require clients assistance
33760 for the setup/propagate separation anymore.
33761 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
33762 allocation strategy, handle the Setup_And_Not_Propagated predicate and
33763 document.
33764
33765 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
33766 raise_after_setup, now that everything is handled internally within the
33767 setup/propagation engine.
33768
337692004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
33770
33771 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
33772 Add additional conditions for the case of an actual being a simple
33773 name or literal. Improve inlining by preventing the generation
33774 of temporaries with a short lifetime (one use).
33775
337762004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
33777
33778 PR ada/15587
5453d5bd
AC
33779 * einfo.ads: Minor comment updates for Has_Completion and
33780 E_Constant list of flags.
33781
33782 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
33783 and constant redeclarations now set the Has_Completion flag of their
33784 defining identifiers.
33785
33786 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
33787 Inspect_Deferred_Constant_Completion.
33788 Used to detect private deferred constants that have not been completed
33789 either by a constant redeclaration or pragma Import. Emits error message
33790 "constant declaration requires initialization expression".
33791
33792 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
33793 completes a deferred constant.
33794
337952004-06-11 Geert Bosch <bosch@gnat.com>
33796
33797 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
33798
33799 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
33800 calculating exponent for scaling denormal numbers.
33801 (Leading_Part): Properly raise Constraint_Error for zero or negative
33802 Adjustment.
33803 (Remainder): Properly raise Constraint_Error for zero divisor.
33804
338052004-06-11 Thomas Quinot <quinot@act-europe.fr>
33806
33807 * sem_util.adb: Minor reformatting.
33808
33809 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
33810 dereference when accessing the entry parameter record.
33811 (Check_Array_Type): Always check for possible implicit dereference.
33812 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33813 Abort if a pointer is still present (denoting that an implicit
33814 dereference was left in the tree by the front-end).
33815
33816 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
33817 dereference when accessing the entry parameter record.
33818 (Check_Array_Type): Always check for possible implicit dereference.
33819 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
33820 Abort if a pointer is still present (denoting that an implicit
33821 dereference was left in the tree by the front-end).
33822
338232004-06-11 Emmanuel Briot <briot@act-europe.fr>
33824
33825 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
33826 message, like the compiler itself does. Easier to parse the output.
33827
33828 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
33829
33830 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
33831 be base names, and not includes directories.
33832
338332004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33834
33835 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
33836 so that dependencies are properly taken into account by make.
33837
338382004-06-11 Arnaud Charlet <charlet@act-europe.fr>
33839
33840 PR ada/15622
33841 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
33842 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
33843
338442004-06-11 Jerome Guitton <guitton@act-europe.fr>
33845
33846 * Makefile.in (install-gnatlib): install target-specific run-time files.
33847
33848 * Make-lang.in: Remove obsolete targets.
33849
338502004-06-11 Ed Schonberg <schonberg@gnat.com>
33851
33852 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
33853 specification, to catch misuses of program unit names.
33854
33855 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
33856 superfluous conversions in an instance.
33857
338582004-06-11 Ed Schonberg <schonberg@gnat.com>
33859
33860 PR ada/15403
5453d5bd
AC
33861 * sem_ch12.adb (Save_References): If operator node has been folded to
33862 enumeration literal, associated_node must be discarded.
33863
338642004-06-11 Jose Ruiz <ruiz@act-europe.fr>
33865
33866 * s-stchop-vxworks.adb: Add required pragma Convention to
33867 Task_Descriptor because it is updated by a C function.
33868
a98f59be
AC
338692004-06-08 Arnaud Charlet <charlet@act-europe.fr>
33870
33871 PR ada/15568
a98f59be
AC
33872 * Makefile.in: Remove target specific SO_OPT on IRIX
33873
821e1ea1
RK
338742004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33875
33876 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
33877 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
33878 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
33879 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
33880 (STMT_STMT, USE_STMT): New statement codes.
33881 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
33882 * ada-tree.h: Reflect above changes.
15cd18b9 33883 (struct tree_loop_id): Deleted.
821e1ea1
RK
33884 (union lang_tree_node, struct lang_decl, struct lang_type):
33885 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
33886 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
33887 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
33888 (IS_ADA_STMT): New macro.
33889 * decl.c (annotate_decl_with_node): New function.
33890 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
33891 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
33892 Call add_stmt_with_node to do needed assignments.
33893 Add call to update setjmp buffer directly, not via EXPR_STMT.
33894 (maybe_variable): Argment GNAT_NODE deleted.
33895 * gigi.h (maybe_variable): Likewise.
33896 (make_transform, add_stmt_with_node, set_block_for_group): New.
33897 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
33898 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
33899 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
33900 (set_lineno, set_lineno_from_sloc): Likewise.
33901 (record_code_position, insert_code_for): Likewise.
33902 (gnat_poplevel): Now returns void.
33903 (end_subprog_body): Now takes argument.
33904 * misc.c (cgraph.h, tree-inline.h): New includes.
33905 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
33906 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
33907 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
33908 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
33909 (gnat_parse_file): Don't set immediate_size_expand.
33910 Call cgraph functions.
33911 (gnat_expand_expr): Remove most cases.
33912 (record_code_position, insert_code_for): Remove from here.
33913 * trans.c (toplev.h, tree-gimple.h): Now included.
33914 (discard_file_names): Deleted.
33915 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
33916 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
33917 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
33918 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
33919 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
33920 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
33921 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
33922 (set_block_for_group, add_stmt_list): Likewise.
33923 (start_stmt_group): Renamed from start_block_stmt.
33924 (end_stmt_group): Likewise, from end_block_stmt.
33925 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
33926 (gigi): Don't set discard_file_names or call set_lineno.
33927 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
33928 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
33929 Numerous changes throughout to reflect new names and complete
33930 function-at-a-time implementation.
33931 (gnat_expand_stmt): Delete or comment out all cases.
33932 (process_inlined_subprograms): Use add_stmt.
33933 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
33934 call set_lineno; also remove unneeded block handling.
33935 (process_type): Remove unneeded block handling.
33936 (build_unit_elab): Remove calls to deleted functions.
33937 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
33938 (tree-dump.h): Likewise.
33939 (struct ada_binding_level): Add field jmpbuf_decl.
33940 (gnat_define_builtin, gnat_install_builtins): New.
33941 (gnat_gimplify_function, gnat_finalize): Likewise.
33942 (gnat_poplevel): No longer return BLOCK, set it instead.
33943 Remove code dealing with nested functions.
33944 (gnat_init_decl_processing): Also set size_type_node.
33945 Call gnat_install_builtins.
33946 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
33947 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
33948 Remove special-case for "main".
33949 (end_subprog_body): Add arg and rework for tree-ssa.
33950 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
33951 Add case for BOOLEAN_TYPE.
33952 * utils2.c (rtl.h): Now include.
33953 (build_call_raise): Test Debug_Flag_NN directly.
33954 (build_call_alloc_dealloc): Don't use local stack allocation for now.
33955 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
33956 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
33957
0ab80019
AC
339582004-06-07 Robert Dewar <dewar@gnat.com>
33959
33960 * a-direct.ads, einfo.ads: Minor comment updates
33961
33962 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
33963 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33964 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
33965 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
33966 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
33967
33968 * s-interr-sigaction.adb: Remove unreferenced variable
33969 (Attached_Interrupts). Minor reformatting.
33970 Avoid use of variable I (replace by J).
33971
33972 * par-ch10.adb: Fix text of one error message
33973
33974 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
33975 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
33976 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
33977 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
33978 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
33979 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 33980 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
33981 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
33982 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
33983 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
33984 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
33985 2005 support.
33986
339872004-06-07 Doug Rupp <rupp@gnat.com>
33988
33989 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
33990
33991 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
33992
33993 * mlib-tgt-vms-ia64.adb: New file.
33994
33995 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
33996 Add mlib-tgt-vms-ia64.adb
33997 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
33998 Move to alpha specific ifeq section.
33999 Add VMS specific versions of symbols.adb
34000 Renaming of 5q vms files.
34001
34002 * 5qsystem.ads renamed to system-vms_64.ads.
34003
340042004-06-07 Vincent Celier <celier@gnat.com>
34005
34006 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
34007 explain that when a time of day corresponding to the non existing hour
34008 on the day switching to DST is specified, Split may return a different
34009 value for Seconds.
34010
34011 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
34012 to GNAT PRETTY.
34013
34014 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
34015 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
34016
34017 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
34018 to False.
34019 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
34020 the linking options.
34021 (Build_Library.Check_Libs): On VMS, if there is a dependency on
34022 g-trasym.ads, set Gtrasymobj_Needed to True.
34023
34024 * prj-attr.adb: Add new package Metrics for gnatmetric
34025
34026 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
34027 canonical case to take into account files with upper case characters on
34028 Windows.
34029 (Ada_Check): Load the reference symbol file name in the name buffer to
34030 check it, not the symbol file name.
34031
34032 * snames.ads, snames.adb: Add standard name Metrics (name of project
34033 file package for gnatmetric).
34034
34035 * vms_conv.ads: Add Metric to Comment_Type
34036
34037 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
34038
34039 * vms_data.ads: Add qualifiers for GNAT METRIC
34040
34041 * makegpr.adb (Link_Executables): Take into account the switches
34042 specified in package Linker of the main project.
34043
340442004-06-07 Thomas Quinot <quinot@act-europe.fr>
34045
34046 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
34047 the index of the last element is Units.Last, not Units.Table'Last
34048 (which is usually not a valid index within the actually allocated
34049 storage for the table).
34050
34051 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
34052 determines whether to generate a call to a checked storage pool
34053 Dereference action.
34054 Generate such a call only for a dereference that either comes from
34055 source, or is the result of rewriting a dereference that comes from
34056 source.
34057
340582004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
34059
34060 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
34061
340622004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
34063
34064 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
34065 file level, elaborate the stride for inner dimensions in alignment
34066 units, not bytes.
34067
34068 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
34069 in a comment.
34070
340712004-06-07 Javier Miranda <miranda@gnat.com>
34072
34073 * exp_ch6.adb: Correct wrong modification in previous patch
34074
340752004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
34076
34077 * g-trasym.ads: Corrected comment to properly reflect level of support
34078 on VMS.
34079
340802004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
34081
34082 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
34083 includes case of a variable referenced on the left hand side of an
34084 assignment, therefore remove redundant code. Variables and prefixes of
34085 indexed or selected components are now marked as referenced on left
34086 hand side. Warnings are now properly emitted when variables or prefixes
34087 are assigned but not read.
34088
34089 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
34090 left hand side referenced variables. Private access types do not
34091 produce the warning "variable ... is assigned but never read".
34092 Add also additional checks to left hand side referenced variables.
34093 Aliased, renamed objects and access types do not produce the warning
34094 "variable ... is assigned but never read" since other entities may read
34095 the memory location.
34096
340972004-06-07 Jerome Guitton <guitton@act-europe.fr>
34098
34099 * Makefile.in: In the powerpc/vxworks-specific section, restore
34100 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
34101 by mistake).
34102
341032004-06-07 Ed Schonberg <schonberg@gnat.com>
34104
34105 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
34106 predefined operators.
34107 Removes spurious type errors from g-trasym-vms.adb.
34108
34109 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
34110 distinct from the operator appearing in the source, call appropriate
34111 routine to insert conversions when needed, and complete resolution of
34112 node.
34113 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
34114 interpretations for rewritten right operand.
34115 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
34116 the other operand is overloaded and the context is a type conversion.
34117
341182004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34119
34120 * ada-tree.def (BLOCK_STMT): Now has two operands.
34121 (BREAK_STMT): New.
34122
34123 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
34124
34125 * gigi.h: (gnat_poplevel): Now returns a tree.
34126
34127 * trans.c (end_block_stmt): Add arg; all callers changed.
34128 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
34129 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
34130 (add_stmt): Set TREE_TYPE.
34131 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
34132 (gnat_expand_stmt, case BREAK_STMT): New case.
34133
34134 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
34135
341362004-06-07 Jose Ruiz <ruiz@act-europe.fr>
34137
34138 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
34139 procedure Set_Stack_Size that is not needed.
34140
341412004-06-07 Sergey Rybin <rybin@act-europe.fr>
34142
34143 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
34144 used for gnatpp input file and for the files upon which it depends
34145
341462004-06-07 Ben Brosgol <brosgol@gnat.com>
34147
34148 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
34149
341502004-06-07 Arnaud Charlet <charlet@act-europe.fr>
34151
34152 * gnatvsn.ads: Bump version numbers appropriately.
34153 Add new build type.
34154
341552004-06-07 Pascal Obry <obry@gnat.com>
34156
34157 * gnat_ugn.texi: Improve comments about imported names and link names
34158 on Windows. Add a note about the requirement to use -k gnatdll's option
34159 when working with a DLL which has stripped stdcall symbols (no @nn
34160 suffix).
34161
8a36a0cc
AC
341622004-05-27 Vincent Celier <celier@gnat.com>
34163
34164 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
34165 COMMENTS_LAYOUT=UNTOUCHED
34166
34167 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
34168 symbols-vms-alpha.adb
34169
341702004-05-27 Thomas Quinot <quinot@act-europe.fr>
34171
34172 * sem.ads: Clarify documentation on checks suppression.
34173
34174 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
34175
341762004-05-27 Ed Schonberg <schonberg@gnat.com>
34177
34178 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
34179 the case of multiple derivations.
34180 (Is_Object_Reference): For a selected component, verify that the prefix
34181 is itself an object and not a value.
34182
34183 * sem_ch12.adb (Same_Instantiated_Constant): New name for
34184 Same_Instantiated_Entity.
34185 (Same_Instantiated_Variable): Subsidiary to
34186 Check_Formal_Package_Instance, to recognize actuals for in-out generic
34187 formals that are obtained from a previous formal package.
34188 (Instantiate_Subprogram_Body): Emit proper error when
34189 generating code and the proper body of a stub is missing.
34190
34191 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
34192 has a universal interpretation, do the disambiguation here.
34193
34194 * exp_ch4.adb (Expand_N_Type_Conversion,
34195 Expand_N_Unchecked_Type_Conversion): Special handling when target type
34196 is Address, to avoid typing anomalies when Address is a visible integer
34197 type.
34198
34199 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
34200 to determine whether a subprogram should not be marked Pure, even when
34201 declared in a pure package.
34202
342032004-05-27 Jose Ruiz <ruiz@act-europe.fr>
34204
34205 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
34206
34207 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
34208 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
34209 Update the documentation about the Ravenscar profile, following the
34210 definition found in AI-249.
34211
34212 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
34213 setting the Profile (Ravenscar). This must be done in addition to
34214 setting the required restrictions.
34215
34216 * rtsfind.ads: Add the set of operations defined in package
34217 Ada.Interrupts.
34218
34219 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
34220 restriction.
34221
342222004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
34223
34224 lang-specs.h: Always require -c or -S and always redirect to /dev/null
34225 if -gnatc or -gnats is passed.
34226
342272004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
34228
34229 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
34230 a significant reference. Warnings are now properly emitted when a
34231 discriminated type is not referenced.
34232
34233 * lib-xref.adb (Generate_Reference): A deferred constant completion,
34234 record representation clause or record type discriminant does not
34235 produce a reference to its corresponding entity. Warnings are now
34236 properly emitted when deferred constants and record types are not
34237 referenced.
34238
342392004-05-27 Geert Bosch <bosch@gnat.com>
34240
34241 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
34242 Fixes ACATS Annex G tests.
34243
342442004-05-27 Robert Dewar <dewar@gnat.com>
34245
34246 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
34247 handling WITH
34248
342492004-05-27 Arnaud Charlet <charlet@act-europe.fr>
34250
34251 * s-interr.adb (Server_Task): Take into account case of early return
34252 from sigwait under e.g. linux.
34253
342542004-05-27 Sergey Rybin <rybin@act-europe.fr>
34255
34256 * gnat_ugn.texi: Add description for the new gnatpp options:
34257 -rnb - replace the original source without creating its backup copy
34258 -c0 - do not format comments
34259
0fb2ea01
AC
342602004-05-24 Geert Bosch <bosch@gnat.com>
34261
34262 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
34263 with 192 bits of precision, sufficient to reduce a double-extended
34264 arguments X with a maximum relative error of T'Machine_Epsilon, for X
34265 in -2.0**32 .. 2.0**32.
34266 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
34267 reduction by the processor, which only uses a 68-bit approximation of
34268 Pi.
34269 (Tan): Always reduce arguments and compute function either using
34270 the processor's fptan instruction, or by dividing sin and cos as needed.
34271
342722004-05-24 Doug Rupp <rupp@gnat.com>
34273
34274 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
34275 gcc error on 32/64 bit VMS.
34276
342772004-05-24 Olivier Hainque <hainque@act-europe.fr>
34278
34279 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
34280 since this is what we get for stack overflows although not documented
34281 as such.
34282 Document the issues which may require adjustments to our signal
34283 handlers.
34284
342852004-05-24 Ed Schonberg <schonberg@gnat.com>
34286
34287 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
34288 enclosing dynamic scope if the instantiation is within a generic unit.
34289
342902004-05-24 Arnaud Charlet <charlet@act-europe.fr>
34291
34292 * exp_dbug.ads: Fix typo.
34293
34294 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
34295 Rename it to its proper name: system-linux-ia64.ads
34296 (stamp-gnatlib1): Remove extra target specific run time files when
34297 setting up the rts directory.
34298
342992004-05-24 Javier Miranda <miranda@gnat.com>
34300
34301 * einfo.ads, einfo.adb (Limited_Views): Removed.
34302 (Limited_View): New attribute that replaces the previous one. It is
34303 now a bona fide package with the limited-view list through the
34304 first_entity and first_private attributes.
34305
34306 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
34307 limited-private-with clause.
34308 (Install_Limited_Withed_Unit): Install the private declarations of a
34309 limited-private-withed package. Update the installation of the shadow
34310 entities according to the new structure (see Build_Limited_Views)
34311 (Build_Limited_Views): Replace the previous implementation of the
34312 limited view by a package entity that references the first shadow
34313 entity plus the first shadow private entity (required for limited-
34314 private-with clause)
34315 (New_Internal_Shadow_Entity): Code cleanup.
34316 (Remove_Limited_With_Clause): Update the implementation to undo the
34317 new work carried out by Build_Limited_Views.
34318 (Build_Chain): Complete documentation.
34319 Replace Ada0Y by Ada 0Y in comments
34320 Minor reformating
34321
34322 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
34323 types the level of accessibility depends on the enclosing type
34324 declaration.
34325
34326 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
34327 entities. Complete documentation of previous change.
34328
343292004-05-24 Robert Dewar <dewar@gnat.com>
34330
34331 * namet.adb: Minor reformatting
34332 Avoid use of name I (replace by J)
34333 Minor code restructuring
34334
34335 * sem_ch6.adb: Minor reformatting
34336
34337 * lib-writ.adb: Do not set restriction as active if this is a
34338 Restriction_Warning case.
34339
34340 * sem_prag.adb: Reset restriction warning flag if real pragma
34341 restriction encountered.
34342
34343 * s-htable.adb: Minor reformatting
34344 Change rotate count to 3 in Hash (improves hash for small strings)
34345
34346 * 5qsystem.ads: Add comments for type Address (no literals allowed).
34347
34348 * gnat_ugn.texi: Add new section of documentation "Code Generation
34349 Control", which describes the use of -m switches.
34350
343512004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
34352
a1db9d9c
AC
34353 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
34354 through the DECL_INITIAL for renamed variables.
0fb2ea01 34355
7599f1b0
AC
343562004-05-24 Arnaud Charlet <charlet@act-europe.fr>
34357
34358 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
34359
c37bb106
AC
343602004-05-19 Joel Brobecker <brobecker@gnat.com>
34361
34362 * exp_dbug.ads: Correct comments concerning handling of overloading,
34363 since we no longer use $ anymore.
34364
343652004-05-19 Sergey Rybin <rybin@act-europe.fr>
34366
34367 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
34368 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
34369 with illegal subunits.
34370
343712004-05-19 Ed Schonberg <schonberg@gnat.com>
34372
34373 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
34374 body with front-end inlining enabled, check whether an inline pragma
34375 appears immediately after the body and applies to it.
34376
34377 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
34378 enabled and the pragma appears after the body of the subprogram.
34379
b5e792e2
AC
343802004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34381
34382 Part of function-at-a-time conversion
34383
34384 * misc.c (adjust_decl_rtl): Deleted.
34385 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
34386 Define.
34387
34388 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
34389 (add_decl_stmt, add_stmt, block_has_vars): New functions.
34390 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
34391
34392 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
34393 when making a decl.
34394 (gnat_to_gnu_entity): Likewise.
34395 Use add_stmt to update setjmp buffer.
34396 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
34397 flush_addressof.
34398 No longer call adjust_decl_rtl.
34399 (DECL_INIT_BY_ASSIGN_P): New macro.
34400 (DECL_STMT_VAR): Likewise.
34401
34402 * trans.c (gigi): Call start_block_stmt to make the outermost
34403 BLOCK_STMT.
34404 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
34405 Call start_block_stmt and end_block_stmt temporarily.
34406 Use gnat_expand_stmt instead of expand_expr_stmt.
34407 (add_decl_stmt): New function.
34408 (tree_transform): Call it.
34409 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
34410 (end_block_stmt): Set type and NULL_STMT.
34411 (gnat_expand_stmt): Make recursize call instead of calling
34412 expand_expr_stmt.
34413 (gnat_expand_stmt, case DECL_STMT): New case.
34414 (set_lineno_from_sloc): Do nothing if global.
34415 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
34416 (start_block_stmt, add_stmt, end_block_stmt): New functions.
34417 (build_block_stmt): Call them.
34418 (gnat_to_code): Don't expand NULL_STMT.
34419 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
34420 args.
34421 (tree_transform): Likewise.
34422 (tree_transform, case N_Null_Statement): Return NULL_STMT.
34423 (gnat_expand_stmt, case NULL_STMT): New case.
34424 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
34425 IF_STMT_TRUE.
34426
34427 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
34428 TREE_ADDRESSABLE.
34429
34430 * utils.c (create_var_decl): Do not call expand_decl or
34431 expand_decl_init.
34432 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
34433 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
34434 here.
34435 (struct e_stack): Add chain_next to GTY.
34436 (struct binding_level): Deleted.
34437 (struct ada_binding_level): New struct.
34438 (free_block_chain): New.
34439 (global_binding_level, clear_binding_level): Deleted.
34440 (global_bindings_p): Rework to see if no chain.
34441 (kept_level_p, set_block): Deleted.
34442 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
34443 new data structure and work directly on BLOCK node.
34444 (gnat_poplevel): Similarly.
34445 (get_decls): Look at BLOCK_VARS.
34446 (insert_block): Work directly on BLOCK node.
34447 (block_has_var): New function.
34448 (pushdecl): Rework for new binding structures.
34449 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
34450 poplevel.
34451 (build_subprog_body): Likewise.
34452 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
34453
34454 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
34455
34456 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
34457 (DECL_STMT_VAR): Likewise.
34458
344592004-05-17 Robert Dewar <dewar@gnat.com>
34460
34461 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
34462 procedure
34463
34464 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
34465 of restriction synonyums by using
34466 Restrict.Process_Restriction_Synonyms.
34467
34468 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
34469
34470 * s-restri.ads (Tasking_Allowed): Correct missing comment
34471
34472 * s-rident.ads: Add entries for restriction synonyms
34473
34474 * ali.adb: Fix some problems with badly formatted ALI files that can
34475 result in infinite loops.
34476
34477 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
34478 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
34479 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
34480 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
34481 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
34482 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
34483 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
34484 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
34485 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
34486 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
34487 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
34488 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
34489 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
34490 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
34491 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
34492 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
34493 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
34494 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
34495 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
34496 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
34497 to Task_Id (minor cleanup).
34498
344992004-05-17 Vincent Celier <celier@gnat.com>
34500
34501 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
34502 directory separator.
34503
34504 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
34505 project being extended, if Languages is not declared in extending
34506 project.
34507
345082004-05-17 Javier Miranda <miranda@gnat.com>
34509
34510 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
34511 limited view of a visible sibling.
34512
9bc856dd
AC
345132004-05-14 Robert Dewar <dewar@gnat.com>
34514
34515 * gnat_ugn.texi: Minor change to -gnatS documentation
34516
34517 * sprint.adb: Remove some instances of Assert (False) and for this
34518 purpose replace them by output of a ??? string.
34519
34520 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
34521 Assert (False).
34522
34523 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
34524 flag processing. This was suppressing required dependencies in
34525 No_Run_Time mode and is not needed since the binder does not generate
34526 references for things in libgnat anyway.
34527
34528 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
34529 warning.
34530
345312004-05-14 Thomas Quinot <quinot@act-europe.fr>
34532
34533 * gnat_ugn.texi: Document AIX-specific issue with initialization of
34534 resolver library.
34535
34536 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
34537 action for the case of an actual parameter in an init proc call.
34538
345392004-05-14 Ed Schonberg <schonberg@gnat.com>
34540
34541 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
34542 subtype, check visible entities in base type.
34543
34544 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
34545 actions if the object is a renaming.
34546
34547 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
34548 Check_Formal_Package_Instance, to determine more precisely when the
34549 formal and the actual denote the same entity.
34550
345512004-05-14 Javier Miranda <miranda@gnat.com>
34552
34553 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
34554
34555 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
34556 corresponding to a private_with must be removed from visibility; it
34557 will be made visible later, just before we analyze the private part of
34558 the package.
34559 (Check_Private_Child_Unit): Allow private_with clauses in public
34560 siblings.
34561 (Install_Siblings): Make visible the private entities of private-withed
34562 siblings.
34563 (Install_Withed_Unit): Do not install the private withed unit if we
34564 are compiling a package declaration and the Private_With_OK flag was
34565 not set by the caller. These declarations will be installed later,
34566 just before we analyze the private part of the package.
34567
34568 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
34569 during the evaluation of the expression that initializes the object,
34570 decorate it with the expected type to avoid cascade errors.
34571 Code cleanup.
34572
34573 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
34574 subprogram we have to install the private_with clauses after its
34575 specification has been analyzed (as documented in AI-262.TXT).
34576
34577 * sem_ch8.adb (Has_Private_With): New function. Determines if the
34578 current compilation unit has a private with on a given entity.
34579 (Find_Direct_Name): Detect the Beaujolais problem described in
34580 AI-262.TXT
34581
34582 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
34583 provides the functionality of the function Is_Ancestor that was
34584 previously available in sem_ch10. It has been renamed to avoid
34585 overloading.
34586
34587 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
34588
345892004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34590
34591 * utils.c (build_vms_descriptor): Use SImode pointers.
34592
345932004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
34594
34595 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
34596
345972004-05-14 GNAT Script <nobody@gnat.com>
34598
34599 * Make-lang.in: Makefile automatically updated
34600
084c663c
AC
346012004-05-14 Arnaud Charlet <charlet@act-europe.fr>
34602
34603 Renaming of target specific files for clarity
34604
6615c446 34605 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
34606
34607 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
34608 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
34609 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
34610 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
34611 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
34612 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
34613 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
34614 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
34615 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
34616 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
34617 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
34618 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
34619 51osinte.adb, 51osinte.ads, 51system.ads,
34620 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34621 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
34622 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
34623 56tpopsp.adb, 57system.ads, 58system.ads,
34624 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
34625 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34626 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
34627 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
34628 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
34629 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34630 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
34631 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
34632 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
34633 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
34634 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
34635 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
34636 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
34637 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
34638 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
34639 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34640 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34641 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34642 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
34643 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
34644 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
34645 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
34646 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
34647 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34648 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
34649 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
34650 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34651 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
34652 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34653 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
34654 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
34655 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
34656 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
34657 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
34658 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
34659 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
34660 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
34661 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
34662 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
34663 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
34664
34665 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
34666 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
34667 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
34668 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
34669 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
34670 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
34671 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
34672 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
34673 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
34674 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
34675 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
34676 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
34677 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
34678 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
34679 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
34680 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
34681 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
34682 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
34683 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
34684 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
34685 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
34686 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
34687 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
34688 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
34689 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
34690 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
34691 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
34692 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
34693 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
34694 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
34695 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
34696 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
34697 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
34698 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
34699 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
34700 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
34701 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
34702 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
34703 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
34704 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
34705 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
34706 s-osinte-vms.ads, s-osinte-vxworks.adb,
34707 s-osinte-vxworks.ads, s-osprim-mingw.adb,
34708 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
34709 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
34710 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
34711 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
34712 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
34713 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
34714 s-stchop-vxworks.adb, s-taprop-dummy.adb,
34715 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
34716 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
34717 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
34718 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
34719 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
34720 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
34721 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
34722 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
34723 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
34724 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
34725 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
34726 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
34727 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
34728 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
34729 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
34730 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
34731 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
34732 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
34733 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
34734 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
34735 system-irix-o32.ads, system-linux-x86_64.ads,
34736 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
34737 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
34738 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
34739 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
34740 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
34741 system-vxworks-mips.ads, system-vxworks-ppc.ads,
34742 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
34743 above.
34744
90afe2c9
ZW
347452004-05-13 Zack Weinberg <zack@codesourcery.com>
34746
34747 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
34748
6de9cd9a
DN
347492004-05-13 Diego Novillo <dnovillo@redhat.com>
34750
34751 Merge from tree-ssa-20020619-branch.
34752
34753 * config-lang.in (boot_language, build_by_default): Set
34754 to no.
34755 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
34756 (max_size): Add static chain op for call_expr.
34757
f5657d67
RS
347582004-05-12 Richard Sandiford <rsandifo@redhat.com>
34759
34760 PR target/15331
34761 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
34762
4413b636
RS
347632004-05-11 Roger Sayle <roger@eyesopen.com>
34764
34765 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
34766 COND_EXPR.
34767
5950a3ac
AC
347682004-05-10 Doug Rupp <rupp@gnat.com>
34769
34770 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
34771 system.aux_dec.
34772
34773 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
34774
34775 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
34776
34777 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
34778 Fixes undefined symbols in IA64 gnatlib.
34779
34780 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
34781
34782 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
34783 Short_Address). This will be moved to system.auxdec.
34784
347852004-05-10 Thomas Quinot <quinot@act-europe.fr>
34786
34787 * sem_util.adb: Replace test for presence of a node that is always
34788 present with a call to Discard_Node.
34789
34790 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
34791 Analyze on the library unit node after generation of distribution stub
34792 constructs. The call was a no-op because Unit_Node has already been
34793 Analyzed, and the tree fragments for the distribution stubs are
34794 analyzed as they are inserted in Exp_Dist.
34795 Update comment regarding to distribution stubs to reflect that we
34796 do not generate stub in separate files anymore.
34797
34798 * einfo.ads: Clarify the fact that a tagged private type has the
34799 E_Record_Type_With_Private Ekind.
34800
34801 * erroutc.adb: Minor reformatting
34802
34803 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
34804 values if line length is increased using -gnatyM (noticed during code
34805 reading).
34806
34807 * eval_fat.adb: Minor reformatting
34808 Put spaces around exponentiation operator
34809
348102004-05-10 Ed Schonberg <schonberg@gnat.com>
34811
34812 PR ada/15005
34813 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
34814 has been rewritten as an explicit dereference, retrieve type of
34815 original node to check for possibly unconstrained record type.
34816
348172004-05-10 Ed Schonberg <schonberg@gnat.com>
34818
34819 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
34820 overriding, use the operation of the parent unconditionally.
34821
34822 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
34823 operation when either operand is a literal, to avoid further
34824 ambiguities.
34825
34826 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
34827 overridden by a previous explicit declaration, mark the previous entity
34828 as overriding.
34829
34830 * sem_disp.adb (Check_Dispatching_Operation): New predicate
34831 Is_Visibly_Controlled, to determine whether a declaration of a
34832 primitive control operation for a derived type overrides an inherited
34833 one. Add warning if the explicit declaration does not override.
34834
348352004-05-10 Vincent Celier <celier@gnat.com>
34836
34837 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
34838 some cases when the sources are no longer present.
34839
34840 * make.adb (Collect_Arguments): Fail if an external source, not part
34841 of any project need to be compiled, when switch -x has not been
34842 specified.
34843
34844 * makeusg.adb: Document new switch -x
34845
34846 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
34847 defaulted to False.
34848
34849 * switch-m.adb (Scan_Make_Switches): New switch -x
34850
34851 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
34852 gnatmake switch -x.
34853
34854 * gnat_ugn.texi: Document new gnatmake switch -x
34855
348562004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
34857
34858 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
34859
34860 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
34861 (process_attributes): Likewise.
34862
348632004-05-10 Joel Brobecker <brobecker@gnat.com>
34864
34865 * s-inmaop.ads: Fix spelling mistake in one of the comments.
34866
348672004-05-10 Robert Dewar <dewar@gnat.com>
34868
34869 * gnat_ugn.texi: Document that for config pragma files, the maximum
34870 line length is always 32767.
34871
34872 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
34873 literals is now allowed.
34874
34875 * gnat-style.texi: Remove statement about splitting long lines before
34876 an operator rather than after, since we do not follow this rule at all.
34877 Clarify rule (really lack of rule) for spaces around exponentiation
34878
34879 * sem_elim.adb: Allow concatenation of string literals as well as a
34880 single string literal for pragma arguments.
34881
34882 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
34883
34884 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
34885 written for append case.
34886
34887 * frontend.adb: Changes to avoid checking max line length in config
34888 pragma files.
34889
34890 * g-os_lib.ads: Minor reformatting
34891
34892 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
34893 wrong in any case. Instead use standard value. Noticed during code
34894 reading.
34895
34896 * opt.ads (Max_Line_Length): New field, used to implement removal of
34897 limitation on length of lines when scanning config pragma files.
34898
34899 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
34900 makeutl.ads, makeutl.adb: Minor reformatting
34901
34902 * scn.adb: Do not check line length while scanning config pragma files
34903 Do not check line length while scanning out license information
34904
34905 * scng.adb: Changes to avoid line length checks while parsing config
34906 pragma files.
34907
349082004-05-10 GNAT Script <nobody@gnat.com>
34909
34910 * Make-lang.in: Makefile automatically updated
34911
48664302
AC
349122004-05-05 Arnaud Charlet <charlet@act-europe.fr>
34913
34914 * osint.adb (Find_Program_Name): Fix handling of VMS version
34915 number.
34916
aa720a54
AC
349172004-05-05 Emmanuel Briot <briot@act-europe.fr>
34918
34919 * g-os_lib.ads (Invalid_Time): New constant
34920
34921 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
34922 return OS_Time instead of time_t to match what is imported by Ada.
34923 Now return -1 if the file doesn't exist, instead of a random value
34924
349252004-05-05 Robert Dewar <dewar@gnat.com>
34926
34927 * usage.adb: Add line for -gnatR?s switch
34928
34929 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
34930
34931 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
34932 and for Match (Data_First, Data_last)
34933
34934 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
34935 written when we are dealing with multi-unit files.
34936
349372004-05-05 Jerome Guitton <guitton@act-europe.fr>
34938
34939 * Makefile.in: Remove unused targets and variables.
34940
349412004-05-05 Vincent Celier <celier@gnat.com>
34942
34943 * switch-m.adb: New gnatmake switch -eI
34944
34945 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
34946 of new gnatmake switch -eInnn.
34947
34948 * makegpr.adb: Take into account new parameters Index and Src_Index in
34949 Prj.Util.
34950
34951 * clean.adb: Implement support for multi-unit sources, including new
34952 switch -i.
34953
34954 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
34955 Src_Index.
34956
34957 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
34958 (Extract_From_Q): New out parameter Index
34959 (Mark, Is_Marked): Subprograms moved to Makeutl
34960 (Switches_Of): New parameter Source_Index
34961 (Add_Switch): New parameter Index
34962 (Check): New parameter Source_Index
34963 (Collect_Arguments): New parameter Source_Index
34964 (Collect_Arguments_And_Compile): New parameter Source_Index
34965 (Compile): New parameter Source_Index
34966 Put subprograms in alphabetical order
34967 Add support for multi-source sources, including in project files.
34968
34969 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
34970 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
34971 Make.
34972
34973 * makeusg.adb: New gnatmake switch -eInnn
34974
34975 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
34976 Prj.Util.Value_Of.
34977
34978 * opt.ads (Main_Index): New variable, defaulted to 0.
34979
34980 * osint.ads, osinte.adb (Add_File): New parameter Index
34981 (Current_Source_Index): New function
34982
34983 * prj.adb: Take into account new components Index and Src_Index
34984
34985 * prj.ads (String_Element): New component Index
34986 (Variable_Value): New component Index
34987 (Array_Element): New component Src_Index
34988
34989 * prj-attr.adb: Indicate that optional index may be specified for
34990 attributes Main, Executable, Spec, Body and some of Switches.
34991
34992 * prj-attr.ads (Attribute_Kind): New values for optional indexes
34993 (Attribute_Record): New component Optional_Index
34994
34995 * prj-com.ads (File_Name_Data): New component Index
34996
34997 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
34998
34999 * prj-env.adb (Put): Output optional index
35000
35001 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
35002 attributes Spec and Body.
35003
35004 * prj-nmsc.adb: Process optional indexes
35005
35006 * prj-pp.adb: Ouput "at" for optional indexes
35007
35008 * prj-proc.adb: Take into account optional indexes
35009
35010 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
35011 Optional_Index. For string literal,
35012 process optional index when Optional_Index is True.
35013 (Parse_Expresion): New Boolean parameter Optional_Index
35014
35015 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
35016 (Set_Source_Index_Of): New procedure
35017
35018 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
35019 index.
35020
35021 * prj-util.ads (Executable_Of): New parameter Index
35022 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
35023 New parameter Src_Index, defaulted to 0.
35024
350252004-05-05 Ed Schonberg <schonberg@gnat.com>
35026
35027 PR ada/15257
35028 * sem_ch3.adb (Access_Definition): If this is an access parameter
35029 whose designated type is imported through a limited_with clause, do
35030 not add the enclosing subprogram to the list of private dependents of
35031 the type.
35032
350332004-05-05 Ed Schonberg <schonberg@gnat.com>
35034
35035 PR ada/15258
35036 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
35037 a limited_with clause, and the other is its non-limited view.
35038
350392004-05-05 Thomas Quinot <quinot@act-europe.fr>
35040
35041 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
35042
90afe2c9 35043 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
35044 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
35045 Stand.Boolean_Literals to produce references to entities
35046 Standard_False and Standard_True from compile-time computed boolean
35047 values.
35048
35049 * stand.ads (Boolean_Literals): New variable, provides the entity
35050 values for False and True, for use by the expander.
35051
350522004-05-05 Doug Rupp <rupp@gnat.com>
35053
35054 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
35055 5vinmaop.adb: Unchecked convert Short_Address vice Address
35056
35057 * adaint.c, raise.c: Caste CRTL function return value
35058 to avoid gcc error on 32/64 bit IVMS.
35059
35060 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
35061 target = IA64/VMS.
35062
35063 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
35064
35065 * 5qsystem.ads (Address): Declare as Long_Integer
35066 (Short_Address): Declare as 32 bit subtype of Address
35067 Declare abstract address operations to avoid gratuitous ambiguities.
35068
350692004-05-05 Jose Ruiz <ruiz@act-europe.fr>
35070
35071 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
35072 instead of the old Boolean_Entry_Barriers.
35073 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
35074
350752004-05-05 GNAT Script <nobody@gnat.com>
35076
35077 * Make-lang.in: Makefile automatically updated
35078
1ab2888d
AC
350792004-05-03 Arnaud Charlet <charlet@act-europe.fr>
35080
35081 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
35082
9f4fd324
AC
350832004-05-03 Olivier Hainque <hainque@act-europe.fr>
35084
35085 PR ada/15152
9f4fd324
AC
35086 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
35087 alone. Replacing object references by literals is inappropriate in a
35088 so low level context.
35089
350902004-05-03 Arnaud Charlet <charlet@act-europe.fr>
35091
35092 * a-exexpr.adb: Add comments
35093
350942004-05-03 Joel Brobecker <brobecker@gnat.com>
35095
35096 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
35097 declare the Ancestor_Tags array in Type_Specific_Data with a small size
35098 without risking a bounds check error when accessing one of its
35099 components.
35100 (Type_Specific_Data): Define Ancestor_Tags as a small array.
35101 This prevents us from hitting a limitation during the debug info
35102 generation when using stabs.
35103
35104 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
35105 small array.
35106 This prevents us from hitting a limitation during the debug info
35107 generation when using stabs.
35108
351092004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
35110
35111 lang-specs.h: Remove -gnatz* from specs.
35112
351132004-05-03 Vincent Celier <celier@gnat.com>
35114
35115 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
35116
35117 * Make-lang.in, Makefile.in: Add gprmake
35118
351192004-05-03 Thomas Quinot <quinot@act-europe.fr>
35120
35121 * sem_aggr.adb: Fix typo in comment.
35122
351232004-05-03 Robert Dewar <dewar@gnat.com>
35124
35125 * make.adb: Minor reformatting
35126
35127 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
35128
35129 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
35130 so that it works when address is not a private type.
35131
35132 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
35133 properly with rewritten unchecked conversions. This prevents
35134 order-of-elaboration issues that can otherwise arise.
35135 (Minimum_Size): Don't check size of access types under VMS
35136
35137 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
35138 interpretations of integer literals as type System.Address.
35139
35140 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
35141 (Is_Descendent_Of): New function
35142
351432004-05-03 Jose Ruiz <ruiz@act-europe.fr>
35144
35145 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
35146 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
35147 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
35148
35149 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
35150 of the old Max_Entry_Queue_Depth.
35151
35152 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
35153 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
35154 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
35155
35156 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
35157 New entry for proper handling of Max_Entry_Queue_Depth.
35158 New entry for proper handling of No_Dynamic_Interrupts.
35159
35160 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
35161 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
35162 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
35163 the GNAT specific restriction Max_Entry_Queue_Depth.
35164 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
35165 the GNAT specific restriction No_Dynamic_Interrupts.
35166
35167 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
35168 instead of the old Boolean_Entry_Barriers.
35169 Use the new restriction No_Dynamic_Attachment instead of the old
35170 No_Dynamic_Interrupts.
35171
35172 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
35173 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
35174
35175 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
35176 of the old Max_Entry_Queue_Depth.
35177
351782004-05-03 GNAT Script <nobody@gnat.com>
35179
35180 * Make-lang.in: Makefile automatically updated
35181
d935a36e
AC
351822004-04-29 Ed Schonberg <schonberg@gnat.com>
35183
35184 * checks.adb (Enable_Range_Check): If the prefix of an index component
35185 is an access to an unconstrained array, perform check unconditionally.
35186
351872004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35188
35189 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
35190 Component_Clause.
35191
351922004-04-29 Olivier Hainque <hainque@act-europe.fr>
35193
35194 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
35195 alternate stack setting. There was no support for the tasking cases
35196 and the changes eventually caused a number of side-effect failures in
35197 the non-tasking case too.
35198
351992004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
35200
35201 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
35202 -gnats is passed.
35203
352042004-04-29 Vincent Celier <celier@gnat.com>
35205
35206 * make.adb (Gnatmake): Increase max size of argument array for
35207 gnatbind for the potential addition of -F.
35208 If there are Stand-Alone Library projects, invoke gnatbind with -F to
35209 be sure that elaboration flags will be checked.
35210
35211 * switch-c.adb: Correct call to Scan_Pos for -gnateI
35212
352132004-04-29 Thomas Quinot <quinot@act-europe.fr>
35214
35215 * sem_warn.adb (Check_References): Move '<access-variable> may be
35216 null' warning out of under Warn_On_No_Value_Assigned.
35217
352182004-04-29 Ed Falis <falis@gnat.com>
35219
35220 * gnat_ugn.texi: Fixed texi error
35221
352222004-04-29 Robert Dewar <dewar@gnat.com>
35223
35224 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
35225 abstract operations if they come from predefined files.
35226
35227 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
35228 Dynamic, not RM).
35229
35230 * s-addope.adb: Correct obvious error in mod function
35231
352322004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
35233
35234 * Makefile.in: Add target pairs for powerpc darwin*
35235 tasking support.
35236
35237 * a-intnam-darwin.ads, s-osinte-darwin.adb,
35238 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
35239
ea16c81b
UW
352402004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
35241
35242 * Makefile.in: Add target macro definitions for s390*-linux*.
35243 * system-linux-s390.ads: New file.
35244 * system-linux-s390x.ads: New file.
35245
f0e6f845
JM
352462004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
35247
35248 * gnat_ugn.texi: Correct argument to @setfilename.
35249
e8c2eedc
UW
352502004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
35251
35252 * a-exexpr.adb (Unwind_Word): New data type.
35253 (Unwind_Exception): Use it as type of Private1 and Private2.
35254
35255 * raise.c (db_action_for): Fix debug printf.
35256
f2c9e65a
AC
352572004-04-27 Ed Schonberg <schonberg@gnat.com>
35258
35259 * a-wtmoio.ads: Formal type must be a modular type, not a signed
35260 integer type.
35261
352622004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35263
35264 * decl.c (gnat_to_gnu_entity, case object): Call
35265 __builtin_update_setjmp_buf.
35266
35267 * gigi.h (update_setjmp_buf): Deleted.
35268 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
35269
35270 * misc.c: (update_setjmp_buf): Deleted.
35271
35272 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
35273 around block of RTL.
35274
35275 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
35276
35b7fa6a
AC
352772004-04-26 Thomas Quinot <quinot@act-europe.fr>
35278
35279 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
35280 subprogram for which no pragma All_Calls_Remote applies, store the
35281 address of the real subprogram in the underlying record type, so local
35282 dereferences do not go through the PCS.
35283
352842004-04-26 Robert Dewar <dewar@gnat.com>
35285
35286 * i-c.ads: Add some type qualifications to avoid ambiguities when
35287 compiling with s-auxdec.ads and a non-private address type.
35288
352892004-04-26 Arnaud Charlet <charlet@act-europe.fr>
35290
35291 * Makefile.rtl: Fix error in previous check-in:
35292 Add s-addope.o to non tasking object list (rather than tasking object
35293 list).
35294
352952004-04-26 Javier Miranda <miranda@gnat.com>
35296
35297 * sem_aggr.adb: Fix typo in comments
35298 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
35299 Required to check the null-exclusion attribute.
35300
35301 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
35302 case of anonymous access types in record and array components. For a
35303 component definition the level is the same of the enclosing composite
35304 type.
35305
35306 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
35307 that are anonymous access types the level of accessibility depends on
35308 the enclosing type declaration. In order to have this information, set
35309 the scope of the anonymous access type to the enclosing record type
35310 declaration.
35311 (Array_Type_Declaration): In case of components that are anonymous
35312 access types the level of accessibility depends on the enclosing type
35313 declaration. In order to have this information, set the scope of the
35314 anonymous access type to the enclosing array type declaration.
35315
35316 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
35317 access type.
35318
35319 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
35320 renaming of anonymous access-to-constant types allowed if and only if
35321 the renamed object is access-to-constant.
35322
35323 * sem_util.adb (Type_Access_Level): In case of anonymous access types
35324 that are component_definition or discriminants of a nonlimited type,
35325 the level is the same as that of the enclosing component type.
35326
353272004-04-26 Sergey Rybin <rybin@act-europe.fr>
35328
35329 * sem_elim.adb: Some minor code reorganization from code reading. Fix
35330 misprint in the function name (File_Name_Match).
35331
9e94c78f 353322004-04-23 Laurent Guerby <laurent@guerby.net>
5a944040 35333
90afe2c9 35334 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 35335 install.
90afe2c9 35336
d0fd1344
RO
353372004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35338
35339 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
35340
cc4f0de1
AC
353412004-04-23 Emmanuel Briot <briot@act-europe.fr>
35342
35343 * adaint.c (__gnat_try_lock): No longer requires that the parent
35344 directory be writable, the directory itself is enough.
35345 (gnat_is_absolute_path): Change profile, so that the call from
35346 GNAT.OS_Lib can be made more efficient.
35347
35348 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
35349 from GNAT.OS_Lib can be made more efficient.
35350
35351 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
35352 one copy of the file name. Found by code reading.
35353
353542004-04-23 Vincent Celier <celier@gnat.com>
35355
35356 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
35357 Correct documentation on gnatmake switches transmitted to the compiler
35358
35359 * ali.ads: Minor comment fix
35360
353612004-04-23 Javier Miranda <miranda@gnat.com>
35362
35363 * sem_ch6.adb: (Confirming Types): Code cleanup
35364
35365 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
35366 subprogram types: E_Anonymous_Access_Subprogram_Type and
35367 E_Anonymous_Access_Protected_Subprogram_Type.
35368
353692004-04-23 Thomas Quinot <quinot@act-europe.fr>
35370
35371 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
35372 whether a pragma All_Calls_Remote applies to the subprogram on which
35373 'Access is taken.
35374 No functional change is introduced by this revision; the new parameter
35375 will be used to allow calls to local RCI subprograms to be optimized
35376 to not use the PCS in the case where no pragma All_Calls_Remote applies,
35377 as is already done in the PolyORB implementation of the DSA.
35378
35379 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
35380 whether a pragma All_Calls_Remote applies to the subprogram on which
35381 'Access is taken.
35382 No functional change is introduced by this revision; the new parameter
35383 will be used to allow calls to local RCI subprograms to be optimized
35384 to not use the PCS in the case where no pragma All_Calls_Remote applies,
35385 as is already done in the PolyORB implementation of the DSA.
35386
353872004-04-23 Robert Dewar <dewar@gnat.com>
35388
35389 * Makefile.rtl: Add entry for s-addope.o in run time library list
35390 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
35391 * s-addope.ads, s-addope.adb: New files.
35392
90afe2c9
ZW
35393 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
35394 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
35395 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
35396 System.Address to be non-private and signed.
35397
35398 * sem_elim.adb: Minor reformatting (fairly extensive)
35399 Some minor code reorganization from code reading
35400 Add a couple of ??? comments
35401
354022004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35403
35404 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 35405 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
35406
35407 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
35408
354092004-04-23 Sergey Rybin <rybin@act-europe.fr>
35410
35411 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
35412 Eliminate' section.
35413
35414 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
35415 no longer used as a parameter name for Eliminate pragma).
35416
9e94c78f 354172004-04-22 Laurent Guerby <laurent@guerby.net>
78bad775
LG
35418
35419 PR optimization/14984
35420 PR optimization/14985
35421 * trans.c (gigi): Fix non determinism leading to bootstrap
35422 comparison failures.
35423
af4b9434
AC
354242004-04-21 Pascal Obry <obry@gnat.com>
35425
35426 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
35427 passed to spawnvp() to properly handle program pathname with spaces on
35428 Win32.
35429
354302004-04-21 Emmanuel Briot <briot@act-europe.fr>
35431
35432 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
35433 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
35434 unlocked in case of exceptions.
35435
354362004-04-21 Joel Brobecker <brobecker@gnat.com>
35437
35438 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
35439 This function does not exist anymore.
35440
354412004-04-21 Thomas Quinot <quinot@act-europe.fr>
35442
35443 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
35444
35445 * link.c: Move variables to the __gnat name space.
35446
35447 * Makefile.in: list link.o explicitly when needed.
35448
35449 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
35450
354512004-04-21 Javier Miranda <miranda@gnat.com>
35452
35453 * einfo.adb (Original_Access_Type): New subprogram
35454 (Set_Original_Access_Type): New subprogram
35455 (Write_Field21_Name): Write the name of the new field
35456
35457 * einfo.ads (Original_Access_Type): New field present in access to
35458 subprogram types.
35459 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
35460 E_Anonymous_Access_Protected_Subprogram_Type.
35461
35462 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
35463 subprogram types.
35464
35465 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
35466 to anonymous access to subprogram types.
35467
35468 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
35469 to subprogram types.
35470
35471 * sem_ch3.adb (Access_Definition): Complete decoration of entities
35472 corresponding to anonymous access to subprogram types.
35473 (Analyze_Component_Declaration): Add new actual to the call to
35474 subprogram replace_anonymous_access_to_protected_subprogram.
35475 (Array_Type_Declaration): Add new actual to the call to subprogram
35476 replace_anonymous_access_to_protected_subprogram.
35477 (Process_Discriminants): Add new actual to the call to subprogram
35478 replace_anonymous_access_to_protected_subprogram.
35479 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
35480
35481 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
35482 formal.
35483
35484 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
35485 access to subprogram types.
35486
35487 * sem_util.adb (Has_Declarations): Addition of package_specification
35488 nodes.
35489
354902004-04-21 Ed Schonberg <schonberg@gnat.com>
35491
35492 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
35493 inlined flags to renamed entity only if in current unit.
35494
354952004-04-21 Thomas Quinot <quinot@act-europe.fr>
35496
35497 * s-parint.ads: Add DSA implementation marker.
35498
35499 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
35500 value of System.Partition_Interface.DSA_Implementation to determine
35501 what version of the distributed systems annex is available (no
35502 implementation, GLADE, or PolyORB).
35503
355042004-04-21 Joel Brobecker <brobecker@gnat.com>
35505
35506 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
35507
355082004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35509
35510 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
35511 with new type if alias sets differ.
35512 Fixes ACATS c41103b.
35513
355142004-04-21 Vincent Celier <celier@gnat.com>
35515
35516 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
35517 Add array Lang_Args for the language specific compiling argument
35518 switches.
35519
35520 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
35521
355222004-04-21 Sergey Rybin <rybin@act-europe.fr>
35523
35524 * gnat_rm.texi: Update the descripton of the Eliminate pragma
35525 according to the recent changes in the format of the parameters of the
35526 pragma (replacing Homonym_Number with Source_Location).
35527
7324bf49
AC
355282004-04-19 Arnaud Charlet <charlet@act-europe.fr>
35529
35530 * 5isystem.ads: Removed, unused.
35531
35532 * gnat_rm.texi: Redo 1.13 change.
35533
355342004-04-19 Robert Dewar <dewar@gnat.com>
35535
35536 * s-stoele.ads: Clean up definition of Storage_Offset (the new
35537 definition is cleaner, avoids the kludge of explicit Standard operator
35538 references, and also is consistent with a visible System.Address with
35539 no visible operations.
35540
35541 * s-geveop.adb: Add declarations to avoid assumption of visible
35542 operations on type System.Address (since these might not be available
35543 if Address is a non-private type for which the operations
35544 are made abstract).
35545
35546 * sem_eval.adb: Minor reformatting
35547
35548 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
35549 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
35550 reformatting (new function spec format).
35551
35552 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
35553 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
35554 s-caun64.adb: Add declarations to avoid assumption of visible
35555 operations on type System.Address (since these might not be available
35556 if Address is a non-private type for which the operations are made
35557 abstract).
35558
35559 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
35560
35561 * exp_intr.adb: Minor comment update
35562
35563 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
35564
35565 * 5omastop.adb: Add declarations to avoid assumption of visible
35566 operations on type System.Address (since these might not be available
35567 if Address is a non-private type for which the operations
35568 are made abstract).
35569
355702004-04-19 Vincent Celier <celier@gnat.com>
35571
35572 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
35573
35574 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
35575 defaulted to Ada.
35576
35577 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
35578 defaulted to Ada.
35579 Call Check with Process_Languages.
35580 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
35581 with Process_Languages.
35582 (Recursive_Check): New Boolean parameter Process_Languages. Call
35583 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
35584 Process_Languages.
35585
35586 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
35587
35588 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
35589 parameter Ada_Main, defaulted to True.
35590 Check for Ada specific characteristics only when Ada_Main is True.
35591
35592 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
35593
35594 * prj.adb: (Project_Empty): Add new Project_Data components.
35595
35596 * prj.ads: New types and tables for non Ada languages.
35597 (Project_Data): New components Languages, Impl_Suffixes,
35598 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
35599 Include_Path, Include_Data_Set.
35600
35601 * prj-env.ads, prj-env.adb: Minor reformatting
35602
35603 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
35604 Put subprograms in alphabetical order
35605
35606 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
35607 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
35608 Opt.Follow_Links.
35609
35610 * mlib-prj.adb: Back out modification in last version, as they are
35611 incorrect.
35612 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
35613
35614 * make.adb: (Mains): Moved to package Makeutl
35615 (Linker_Opts): Moved to package Makeutl
35616 (Is_External_Assignment): Moved to package Makeutl
35617 (Test_If_Relative_Path): Moved to package Makeutl
35618 (Gnatmake): Move sorting of linker options to function
35619 Makeutl.Linker_Options_Switches.
35620
8f9df7d8
VC
35621 * makeutl.ads, makeutl.adb: New files.
35622
7324bf49
AC
35623 * Makefile.in: Add makeutl.o to the object files for gnatmake
35624
35625 * makeusg.adb: Add line for new switch -eL.
35626
35627 * gnatls.adb (Image): New function.
35628 (Output_Unit): If in verbose mode, output the list of restrictions
35629 specified by pragmas Restrictions.
35630
35631 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
35632 Text_IO.
35633
35634 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
35635 needed, to put it in the range 1970 (included) - 2026 (excluded).
35636 (Time_Of): Do not shift Unix_Min_Year (1970).
35637 Shift the date by multiple of 56 years, if needed, to put it in the
35638 range 1970 (included) - 2026 (excluded).
35639
35640 * adaint.h, adaint.c (__gnat_set_executable): New function.
35641
356422004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35643
35644 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
35645 and pop GC context.
35646 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
35647 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
35648 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
35649 (tree_transform, case N_Code_Statement): Likewise.
35650 (gnat_expand_stmt, case LABEL_STMT): Don't look at
35651 LABEL_STMT_FIRST_IN_EH.
35652 (gnat_expand_stmt, case ASM_STMT): New case.
35653
35654 * utils2.c (build_unary_op): Properly set TREE_READONLY of
35655 UNCONSTRAINED_ARRAY_REF.
35656
35657 * utils.c (poplevel): Temporarily push/pop GC context around inline
35658 function expansion.
35659
35660 * decl.c (maybe_variable): Properly set TREE_READONLY of
35661 UNCONSTRAINED_ARRAY_REF.
35662 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
35663
35664 * ada-tree.def: (ASM_STMT): New.
35665
35666 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
35667 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
35668 ASM_STMT_INPUT): New.
35669 (ASM_STMT_CLOBBER): Likewise.
35670
356712004-04-19 Thomas Quinot <quinot@act-europe.fr>
35672
35673 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
35674 general rcheck mechanism to raise Program_Error for E.4(18), instead
35675 of a custom raiser in System.Partition_Interface.
35676 Part of general cleanup work before PolyORB integration.
35677
35678 * snames.ads, snames.adb: Add new runtime library entities and names
35679 for PolyORB DSA.
35680
35681 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
35682 exp_dist.
35683 (Build_Subprogram_Id): New subprogram provided by exp_dist
35684 Code reorganisation in preparation for PolyORB integration.
35685
35686 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
35687 exp_dist.
35688 (Build_Subprogram_Id): New subprogram provided by exp_dist
35689
35690 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
35691 actual parameter types for call to dereference of an
35692 access-to-subprogram type.
35693
35694 * rtsfind.ads: Add new runtime library entities and names for PolyORB
35695 DSA.
35696
35697 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
35698 instead, which has the same behaviour here since we never pass it a
35699 NULL pointer.
35700
35701 * link.c (run_path_option, Solaris case): Use -Wl, as for other
35702 platforms.
35703
35704 * Makefile.in: adjust object file lists for gnatlink and gnatmake
35705 to account for new dependency upon Interfaces.C.Strings + link.o
35706 For x86 FreeBSD, use 86numaux.
35707
35708 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
35709 from Mlib.Tgt to Mlib.
35710
35711 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
35712 target-independent.
35713
35714 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
35715 target-specific versions of this subprogram, now implemented as a
35716 target-independent function in Mlib.
35717
35718 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
35719 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
35720 (Linker_Library_Path_Option): Remove target-specific versions of this
35721 subprogram, now implemented as a target-independent function in Mlib.
35722
35723 * atree.adb: (Allocate_Initialize_Node): New subprogram.
35724 Factors out node table slots allocation.
35725 (Fix_Parents): New subprogram.
35726 Encapsulate the pattern of fixing up parent pointers for syntactic
35727 children of a rewritten node.
35728 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
35729 (Rewrite): Use New_Copy when creating saved copy of original node.
35730 (Replace): Use Copy_Node to copy nodes.
35731
357322004-04-19 Javier Miranda <miranda@gnat.com>
35733
35734 * sprint.adb (Sprint_Node_Actual): Give support to the new
35735 Access_To_Subprogram node available in Access_Definition nodes. In
35736 addition, give support to the AI-231 node fields: null-exclusion,
35737 all-present, constant-present.
35738
35739 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
35740
90afe2c9 35741 * sinfo.ads, sinfo.adb:
7324bf49
AC
35742 New field Access_To_Subprogram_Definition in Access_Definition nodes
35743
35744 * sem_ch6.adb (Process_Formals): Move here the code that creates and
35745 decorates internal subtype declaration corresponding to the
35746 null-excluding formal. This code was previously in Set_Actual_Subtypes.
35747 In addition, carry out some code cleanup on this code. In case of
35748 access to protected subprogram call
35749 Replace_Anonymous_Access_To_Protected_Subprogram.
35750 (Set_Actual_Subtypes): Code cleanup.
35751
35752 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
35753 Find_Type in case of anonymous access renamings. Add warning in case of
35754 null-excluding attribute used in anonymous access renaming.
35755
35756 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
35757 subprogram
35758
35759 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
35760 subprogram.
35761 (Access_Definition): In case of anonymous access to subprograms call
35762 the corresponding semantic routine to decorate the node.
35763 (Access_Subprogram_Declaration): Addition of some comments indicating
35764 some code that probably should be added here. Detected by comparison
35765 with the access_definition subprogram.
35766 (Analyze_Component_Declaration): In case of access to protected
35767 subprogram call Replace_Anonymous_Access_To_Protected.
35768 (Array_Type_Declaration): In case of access to protected subprogram call
35769 Replace_Anonymous_Access_To_Protected_Subprogram.
35770 (Process_Discriminants): In case of access to protected subprogram call
35771 Replace_Anonymous_Access_To_Protected_Subprogram.
35772
35773 * par.adb (P_Access_Definition): New formal that indicates if the
35774 null-exclusion part was present.
35775 (P_Access_Type_Definition): New formal that indicates if the caller has
35776 already parsed the null-excluding part.
35777
35778 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
35779 (P_Identifier_Declarations): Code cleanup and give support to renamings
35780 of anonymous access to subprogram types.
35781 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
35782 (P_Array_Type_Definition): Give support to AI-254.
35783 (P_Component_Items): Give support to AI-254.
35784 (P_Access_Definition): New formal that indicates if the header was
35785 already parsed by the caller.
35786 (P_Access_Type_Definition): New formal that indicates if the caller has
35787 already parsed the null-excluding part.
35788
35789 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
35790 call to P_Access_Definition.
35791
357922004-04-19 Geert Bosch <bosch@gnat.com>
35793
35794 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
35795 the delicate semantics of floating-point to integer conversion.
35796 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
35797
35798 * eval_fat.adb (Machine_Mantissa): Moved to spec.
35799 (Machine_Radix): New function.
35800
35801 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
35802 conversion checks.
35803 (Machine_Radix): New function also for use in conversion checks.
35804
358052004-04-19 Ed Schonberg <schonberg@gnat.com>
35806
35807 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
35808
35809 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
35810 to decorate the access-to-protected subprogram and the equivalent type.
35811
35812 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
35813 to anonymous access to subprogram types.
35814
35815 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
35816 constant-folding, for legality checks in contexts that require an RM
35817 static expression.
35818
35819 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
35820 temporary but stack checking is not enabled, increment serial number
35821 to so that symbol generation is consistent with and without stack
35822 checking.
35823
35824 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
35825 independent on whether stack checking is enabled, caller must check
35826 the corresponding flag.
35827
35828 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
35829 range checks.
35830 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
35831 parent if it has discriminants.
35832 (Build_Derived_Private_Type): Constructed full view does
35833 not come from source.
35834 (Process_Discriminants): Default discriminants on a tagged type are
35835 legal if this is the internal completion of a private untagged
35836 derivation.
35837
35838 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
35839 no constraint checks, because it corresponds to an existing object.
35840
35841 * sem_prag.adb (Process_Convention): Pragma applies
35842 only to subprograms in the same declarative part, i.e. the same unit,
35843 not the same scope.
35844
35845 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
35846 ignore type mismatch on a numeric conversion if expression comes from
35847 expansion.
35848
358492004-04-19 Sergey Rybin <rybin@act-europe.fr>
35850
35851 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
35852 Homonym_Number parameter, add processing for Source_Location parameter
35853 corresponding.
35854 (Check_Eliminated): Remove the check for homonym numbers, add the check
35855 for source location traces.
35856
35857 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
35858 with Arg_Source_Location corresponding to the changes in the format of
35859 the pragma.
35860
35861 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
35862 Eliminate pragma corresponding to the changes in the format of the
35863 pragma: Homonym_Number is replaced with Source_Location, two ways of
35864 distinguishing homonyms are mutially-exclusive.
35865
358662004-04-19 Joel Brobecker <brobecker@gnat.com>
35867
35868 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
35869
35870 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
35871 No_Dollar_In_Label, no longer necessary, as it is always True.
35872 (Strip_Suffixes): Likewise.
35873
358742004-04-19 Gary Dismukes <dismukes@gnat.com>
35875
35876 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
35877 modulus for compatibility with size clause on targets with 16-bit
35878 Integer.
35879
35880 * layout.adb (Discrimify): In the case of private types, set Vtyp to
35881 full type to fix type mismatches on calls to size functions for
35882 discriminant-dependent array components.
35883
358842004-04-19 Jerome Guitton <guitton@act-europe.fr>
35885
35886 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
35887 lib.
35888
358892004-04-19 Pascal Obry <obry@gnat.com>
35890
35891 * mdll-utl.adb (Locate): New version is idempotent.
35892
9e94c78f 358932004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
35894
35895 PR ada/14988 (partial)
35896 * impunit.adb: Fix typo.
90afe2c9 35897
cce0244b
NN
358982004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
35899
35900 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
35901 and install-rts-cert targets. Remove all gnatlib and gnattools
35902 targets and all other rts-* targets (moved to libada). Remove (now)
35903 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
35904 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
35905
af152989
AC
359062004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35907
35908 * trans.c (tree_transform): Shortcut returning error_mark_node for
35909 statements in annotate_only_mode.
35910 (tree_transform, case N_Label, case N_Return_Statement,
35911 N_Goto_Statement): Make statement tree instead of generating code.
35912 (tree_transform, case N_Assignment_Statement): No longer check
35913 type_annotate_only.
35914 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
35915 RETURN_STMT): New.
35916 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
35917 New fcns.
35918 (gnat_to_gnu): Collect any RTL generated and deal with it.
35919 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
35920 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
35921 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
35922
35923 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
35924
35925 * ada-tree.def (EXPR_STMT): Fix typo in name.
35926 (BLOCK_STMT, IF_STMT): New nodes.
35927
35928 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
35929 LABEL_STMT_FIRST_IN_EH): New macros.
35930 (RETURN_STMT_EXPR): Likewise.
35931
35932 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
35933 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
35934
359352004-04-08 Thomas Quinot <quinot@act-europe.fr>
35936
35937 * atree.ads: Correct documentation on extended nodes.
35938
35939 * link.c: Set run_path_option for FreeBSD.
35940
359412004-04-08 Vincent Celier <celier@gnat.com>
35942
35943 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
35944 one of the ALI file, do not link with DEC lib.
35945
35946 * par.adb Remove the last two characters ("%s" or "%b") when checking
35947 if a language defined unit may be recompiled.
35948
359492004-04-08 Ed Schonberg <schonberg@gnat.com>
35950
35951 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
35952 removal of abstract operation leaves no possible interpretation for
35953 expression.
35954
35955 * sem_eval.adb (Eval_Qualified_Expression): Use
35956 Set_Raises_Constraint_Error on node when needed, so that it does not
35957 get optimized away by subsequent optimizations.
35958
35959 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
35960 operands even when they are not wrapped in a type conversion.
35961
359622004-04-08 Olivier Hainque <hainque@act-europe.fr>
35963
35964 * sem_prag.adb (Set_Exported): Warn about making static as result of
35965 export only when the export is coming from source. This may be not
35966 be true e.g. on VMS where we expand export pragmas for exception codes
35967 together with imported or exported exceptions, and we don't want the
35968 user to be warned about something he didn't write.
35969
359702004-04-08 Thomas Quinot <quinot@act-europe.fr>
35971
35972 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
35973 duplication between normal entities and those declared as renamings.
35974 No functional change.
35975
90afe2c9 35976 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
35977 inline functions returning an unconstrained result.
35978
359792004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
35980
35981 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
35982 conform to what other front-ends do.
35983
359842004-04-08 Doug Rupp <rupp@gnat.com>
35985
35986 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
35987 libraries.
35988
3984e89a
AC
359892004-04-06 Pascal Obry <obry@gnat.com>
35990
35991 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
35992
35993 * osint.adb (Program_Name): Do not look past a directory separator.
35994
359952004-04-06 Thomas Quinot <quinot@act-europe.fr>
35996
35997 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
35998
35999 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
36000 requirement for preserving a copy of the original assignment node.
36001
36002 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
36003
360042004-04-06 Olivier Hainque <hainque@act-europe.fr>
36005
36006 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
36007 when supported.
36008
360092004-04-06 Ed Schonberg <schonberg@gnat.com>
36010
36011 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
36012 operator calls in functional notation, and apply
36013 Universal_Interpretation to operands, not to their type.
36014
360152004-04-06 Robert Dewar <dewar@gnat.com>
36016
36017 * 5wdirval.adb: Minor reformatting
36018
360192004-04-06 Ed Falis <falis@gnat.com>
36020
36021 * gnat_rm.texi: Improve a reference to the GCC manual
36022
30c20106
AC
360232004-04-05 Vincent Celier <celier@gnat.com>
36024
36025 * adaint.h, adaint.c: Add function __gnat_named_file_length
36026
36027 * impunit.adb: Add Ada.Directories to the list
36028
36029 * Makefile.in: Add VMS and Windows versions of
36030 Ada.Directories.Validity package body.
36031
36032 * Makefile.rtl: Add a-direct and a-dirval
36033
36034 * mlib-tgt.ads: Minor comment update.
36035
36036 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
36037 a-direct.ads, a-direct.adb: New files.
36038
360392004-04-05 Vincent Celier <celier@gnat.com>
36040
36041 PR ada/13620
36042 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
36043 just to the compiler.
36044
360452004-04-05 Robert Dewar <dewar@gnat.com>
36046
36047 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
36048 returned string is 1.
36049
36050 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
36051
36052 * eval_fat.ads: Minor reformatting
36053
36054 * g-curexc.ads: Document that lower bound of returned string values
36055 is always one.
36056
36057 * gnatlink.adb: Add ??? comment for previous change
36058 (need to document why this is VMS specific)
36059
36060 * s-stoele.ads: Minor reformatting
36061
36062 * tbuild.ads: Minor reformatting throughout (new function specs)
36063
36064 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
36065 after WITH.
36066
36067 * scng.adb: Minor reformatting
36068
360692004-04-05 Geert Bosch <bosch@gnat.com>
36070
36071 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
36072 (Leading_Part): Still perform truncation to machine number if the
36073 specified radix_digits is greater or equal to machine_mantissa.
36074
360752004-04-05 Javier Miranda <miranda@gnat.com>
36076
36077 * par-ch3.adb: Complete documentation of previous change
36078 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
36079 (aliased must appear before constant).
36080
36081 * par-ch4.adb: Complete documentation of previous change.
36082
36083 * par-ch6.adb: Complete documentation of previous change.
36084
36085 * sinfo.ads: Fix typo in commment.
36086
360872004-04-05 Ed Schonberg <schonberg@gnat.com>
36088
36089 * sem_ch3.adb (Inherit_Components): If derived type is private and has
36090 stored discriminants, use its discriminants to constrain parent type,
36091 as is done for non-private derived record types.
36092
36093 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
36094 Ada 2005 AI-310: an abstract non-dispatching operation is not a
36095 candidate interpretation in an overloaded call.
36096
36097 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
36098 expression is Null and target type is not an access type (e.g. a
36099 non-private address type).
36100
361012004-04-05 Thomas Quinot <quinot@act-europe.fr>
36102
36103 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
36104 statement whose right-hand side is an inlined call, save a copy of the
36105 original assignment subtree to preserve enough consistency for
36106 Analyze_Assignment to proceed.
36107
36108 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
36109 complete assignment subtree which is now unnecessary, as the expansion
36110 of inlined call has been improved to preserve a consistent assignment
36111 tree. Note_Possible_Modification must be called only
36112 after checks have been applied, or else unnecessary checks will
36113 be generated.
36114
36115 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
36116 of explicit dereferences that do not Come_From_Source:
36117 - be selective on cases where we must go back to the dereferenced
36118 pointer (an assignment to an implicit dereference must not be
36119 recorded as modifying the pointer);
36120 - do not rely on Original_Node being present (Analyze_Assignment
36121 calls Note_Possible_Modification on a copied tree).
36122
36123 * sem_warn.adb (Check_References): When an unset reference to a pointer
36124 that is never assigned is encountered, prefer '<pointer> may be null'
36125 warning over '<pointer> is never assigned a value'.
36126
361272004-04-05 Ramon Fernandez <fernandez@gnat.com>
36128
36129 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
36130 the ABI.
36131
361322004-04-05 Olivier Hainque <hainque@act-europe.fr>
36133
36134 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
36135 libexc. We currently don't reference anything in this library and
36136 linking it in triggers linker warnings we don't want to see.
36137
36138 * init.c: Update comments.
36139
4f976745
RK
361402004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36141
36142 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
36143 * utils.c (create_field_decl): Likewise.
36144 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
36145
6da7d579
AC
361462004-04-02 Arnaud Charlet <charlet@act-europe.fr>
36147
36148 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
36149 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
36150 Add info directory entry and category.
36151
18c6ada9
JH
361522004-04-02 Jan Hubicka <jh@suse.cz>
36153
36154 * utils.c: Include function.h
36155 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
36156
7cd4527e
AC
361572004-04-01 Arnaud Charlet <charlet@act-europe.fr>
36158
36159 PR ada/14150
36160 * Make-lang.in: Clean up generation of documentation
36161
36162 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
36163
36164 * xgnatug.adb: Removed, replaced by xgnatugn.adb
36165
36166 * xgnatugn.adb: Replaces xgnatug.adb
36167
36168 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
36169
36170 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
36171
36172 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36173 gnat_ug_wnt.texi: Removed.
36174
0c250f07
AC
361752004-04-01 Arnaud Charlet <charlet@act-europe.fr>
36176
36177 * utils2.c: Update copyright notice.
36178
6b6fcd3e
AC
361792004-04-01 Robert Dewar <dewar@gnat.com>
36180
36181 * checks.adb: Minor reformatting throughout
36182 Note that prev checkin added RM reference to alignment warning
36183
361842004-04-01 Ed Schonberg <schonberg@gnat.com>
36185
36186 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
36187 non-static when building aggregate for bit-packed array.
36188
36189 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
36190 function call that is itself the actual in a procedure call, build
36191 temporary for it.
36192
36193 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
36194 a string literal, create a temporary for it, constant folding only
36195 handles scalars here.
36196
361972004-04-01 Vincent Celier <celier@gnat.com>
36198
36199 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
36200 Error_Msg_SP): New empty procedures to instantiate the Scanner.
36201 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
36202 tokens.
36203 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
36204 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
36205 and get the checksum.
36206
36207 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
36208 already in the Q.
36209 Increase the Marking_Label at the end of the Multiple_Main_Loop,
36210 instead of at the beginning.
36211
36212 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
36213 directly.
36214 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
36215 on VMS.
36216
36217 * osint.ads (Multi_Unit_Index_Character): New Character global variable
36218
36219 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
36220 not '~' directly.
36221
36222 * par.adb: Remove test on file name to detect language defined units.
36223 Add test on unit name, after parsing, to detect language defined units
36224 that are not compiled with -gnatg (except System.RPC and its children)
36225
36226 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
36227 following units without style checking.
36228
36229 * switch-c.adb: Change -gnatC to -gnateI
36230
36231 * usage.adb: Document new switch -gnateInnn
36232
36233 * scng.adb (Accumulate_Token_Checksum): New procedure
36234 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
36235 word or literal number.
36236 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
36237 numbers.
36238
362392004-04-01 Thomas Quinot <quinot@act-europe.fr>
36240
36241 * a-tasatt.adb,
36242 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
36243 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
36244 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
36245 5vtpopde.adb: Add missing 'constant' keywords.
36246
362472004-04-01 Javier Miranda <miranda@gnat.com>
36248
36249 * par-ch4.adb: (P_Allocator): Code cleanup
36250
36251 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
36252 attribute.
36253
36254 * sinfo.ads: Complete documentation of previous change
36255
362562004-04-01 Pascal Obry <obry@gnat.com>
36257
36258 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
36259 only on VMS. This special handling was done because an old GNU/ld bug
36260 on Windows which has been fixed.
36261
362622004-04-01 GNAT Script <nobody@gnat.com>
36263
36264 * Make-lang.in: Makefile automatically updated
36265
8df83eae
RK
362662004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36267
36268 * decl.c (gnat_to_gnu_entity, make_type_from_size):
36269 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
36270 * trans.c (tree_transform, convert_with_check): Likewise.
36271 * utils.c (gnat_signed_or_unsigned_type): Likewise.
36272 (build_vms_descriptor, unchecked_convert): Likewise.
36273 * utils2.c (nonbinary_modular_operation): Likewise.
36274
2820d220
AC
362752004-03-29 Javier Miranda <miranda@gnat.com>
36276
36277 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
36278 (Install_Null_Excluding_Check): Local subprogram that determines whether
36279 an access node requires a runtime access check and if so inserts the
36280 appropriate run-time check.
36281 (Apply_Access_Check): Call Install_Null_Excluding check if required
36282 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
36283
36284 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
36285
36286 * einfo.ads: Fix typo in comment
36287
36288 * exp_ch3.adb (Build_Assignment): Generate conversion to the
36289 null-excluding type to force the corresponding run-time check.
36290 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
36291 type to force the corresponding run-time check.
36292
36293 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
36294 the null-excluding type to force the corresponding run-time check.
36295
36296 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
36297 case of access types unless they have the null-excluding attribute.
36298
36299 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
36300 part.
36301
36302 * exp_util.ads: Fix typo in comment
36303
36304 * par.adb (P_Null_Exclusion): New subprogram
36305 (P_Subtype_Indication): New formal that indicates if the null-excluding
36306 part has been scanned-out and it was present
36307
36308 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
36309
36310 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
36311 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
36312 type to force the corresponding run-time check
36313 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
36314 components
36315 (Resolve_Array_Aggregate): Carry out some static checks
36316 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
36317
36318 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
36319 attribute must be set only if specified by means of the null-excluding
36320 part. In addition, we must also propagate the access-constant attribute
36321 if present.
36322 (Access_Subprogram_Declaration, Access_Type_Declaration,
36323 Analyze_Component_Declaration, Analyze_Object_Declaration,
36324 Array_Type_Declaration, Process_Discriminants,
36325 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
36326 and carry out some static checks.
36327 (Build_Derived_Access_Type): Set the null-excluding attribute
36328 (Derived_Type_Declaration, Process_Subtype): Carry out some static
36329 checks.
36330
36331 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
36332
36333 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
36334
36335 * sem_ch6.adb (Process_Formals): Carry out some static checks.
36336 (Set_Actual_Subtypes): Generate null-excluding subtype if the
36337 null-excluding part was present; it is not required to be done here in
36338 case of anonymous access types.
36339 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
36340 value.
36341
36342 * sem_res.adb (Resolve_Actuals): Carry out some static check
36343 (Resolve_Null): Allow null in anonymous access
36344
36345 * sinfo.adb: New subprogram Null_Exclusion_Present
36346 All_Present and Constant_Present available on access_definition nodes
36347
36348 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
36349 object_declaration, derived_type_definition, component_definition,
36350 discriminant_specification, access_to_object_definition,
36351 access_function_definition, allocator, access_procedure_definition,
36352 access_definition, parameter_specification, All_Present and
36353 Constant_Present flags available on access_definition nodes.
36354
363552004-03-29 Robert Dewar <dewar@gnat.com>
36356
36357 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
36358 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
36359 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
36360 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
36361 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
36362 sem_prag.adb: Updates to handle multiple units/file
36363
36364 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
36365
36366 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
36367 sem_util.adb: Minor reformatting
36368
36369 * sem_ch12.adb: Add comment for previous change
36370
363712004-03-29 Laurent Pautet <pautet@act-europe.fr>
36372
36373 * osint.adb (Executable_Prefix): Set Exec_Name to the current
36374 executable name when not initialized. Otherwise, use its current value.
36375
36376 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
36377 initialize it to another executable name than the current one. This
36378 allows to configure paths for an executable name (gnatmake) different
36379 from the current one (gnatdist).
36380
363812004-03-29 Ed Schonberg <schonberg@gnat.com>
36382
36383 * exp_ch6.adb (Expand_Call): A call to a function declared in the
36384 current unit cannot be inlined if it appears in the body of a withed
36385 unit, to avoid order of elaboration problems in gigi.
36386
36387 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
36388 information for protected (wrapper) operation as well, to simplify gdb
36389 use.
36390
36391 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
36392 protected body, indicate that the entity for the generated spec comes
36393 from source, to ensure that references are properly generated for it.
36394 (Build_Body_To_Inline): Do not inline a function that returns a
36395 controlled type.
36396
36397 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
36398 apply convention to homonyms that are declared explicitly.
36399
36400 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
36401 that renames an equality operator and the operands are overloaded,
36402 resolve them with the declared formal types, before rewriting as an
36403 operator.
36404
364052004-03-29 GNAT Script <nobody@gnat.com>
36406
36407 * Make-lang.in: Makefile automatically updated
36408
6d11af89
AC
364092004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
36410
36411 * memtrack.adb: Log realloc calls, which are treated as free followed
36412 by alloc.
36413
364142004-03-25 Vincent Celier <celier@gnat.com>
36415
36416 * prj-makr.adb (Process_Directories): Detect when a file contains
36417 several units. Do not include such files in the config pragmas or
36418 in the naming scheme.
36419
36420 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
36421 Resolve links only when not in Trusted_Mode.
36422 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
36423 Do not resolve links for the display names.
36424
36425 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
36426 resolve links when computing the display names.
36427
364282004-03-25 Thomas Quinot <quinot@act-europe.fr>
36429
36430 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
36431 attribute reference does not denote a subtype, it can be any
36432 expression that has a classwide type, potentially after an implicit
36433 dereference. In particular, the prefix can be a view conversion for
36434 a classwide type (for which Is_Object_Reference holds), but it can
36435 also be a value conversion for an access-to-classwide type. In the
36436 latter case, there is an implicit dereference, and the original node
36437 for the prefix does not verify Is_Object_Reference.
36438
36439 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
36440 conversion of a discriminant-dependent component of a mutable object
36441 is one itself.
36442
364432004-03-25 Ed Schonberg <schonberg@gnat.com>
36444
36445 * freeze.adb (Freeze_Entity): When an inherited subprogram is
36446 inherited, has convention C, and has unconstrained array parameters,
36447 place the corresponding warning on the derived type declaration rather
36448 than the original subprogram.
36449
36450 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
36451 indication on renaming declaration, if formal has a box and actual
36452 is absent.
36453
36454 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
36455 determine whether to generate an implicit or explicit reference to
36456 the renamed entity.
36457
36458 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
36459 subprogram renaming comes from a defaulted formal subprogram in an
36460 instance.
36461
364622004-03-25 Gary Dismukes <dismukes@gnat.com>
36463
36464 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
36465 value expressions to ensure that calls within a component definition
36466 will be checked (since those are evaluated during the record type's
36467 elaboration).
36468
364692004-03-25 Arnaud Charlet <charlet@act-europe.fr>
36470
36471 * s-tpobop.adb: Code clean up:
36472 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
36473 code.
36474 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
36475
364762004-03-25 Jose Ruiz <ruiz@act-europe.fr>
36477
36478 * Makefile.in: Clean up in the ravenscar run time.
36479
22421b79
RK
364802004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36481
36482 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
36483 of No_Strict_Aliasing to build_pointer_type_for_mode.
36484 * utils.c (update_pointer_to): Walk pointer and ref chains.
36485
24105bab
AC
364862004-03-22 Cyrille Comar <comar@act-europe.fr>
36487
36488 * ali.ads: Fix Comment about Dynamic_Elab.
36489
36490 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
36491 Has_RACW, Is_Generic, etc.)
36492 (Output_Object, Gnatls): Take into account ALI files not attached to
36493 an object.
36494
364952004-03-22 Vincent Celier <celier@gnat.com>
36496
36497 * gprep.adb: Change all String_Access to Name_Id
36498 (Is_ASCII_Letter): new function
36499 (Double_File_Name_Buffer): New procedure
36500 (Preprocess_Infile_Name): New procedure
36501 (Process_Files): New procedure
36502 (Gnatprep): Check if output and input are existing directories.
36503 Call Process_Files to do the real job.
36504
365052004-03-22 Robert Dewar <dewar@gnat.com>
36506
36507 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
36508 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
36509
365102004-03-22 Sergey Rybin <rybin@act-europe.fr>
36511
36512 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
36513 case when the source contains only comments.
36514
365152004-03-22 Ed Schonberg <schonberg@gnat.com>
36516
36517 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
36518 declaration for a child subprogram body that acts as a spec, indicate
36519 that the entity in the declaration needs debugging information.
36520
36521 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
36522 full view if the subtype is created for a constrained record component;
36523 gigi has enough information to construct the record, and there is no
36524 place in the tree for the declaration.
36525
36526 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
36527 serial number for the dummy body that is built for analysis, to avoid
36528 inconsistencies in the generation of internal names when compiling
36529 with -gnatN.
36530
365312004-03-22 Thomas Quinot <quinot@act-europe.fr>
36532
36533 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
36534 object.
36535
365362004-03-22 GNAT Script <nobody@gnat.com>
36537
36538 * Make-lang.in: Makefile automatically updated
36539
6fce44af
RK
365402004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36541
36542 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
36543 * trans.c (tree_transform, emit_index_check): Likewise.
36544 * utils.c (build_template): Likewise.
36545 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
36546 (maybe_unconstrained_array, unchecked_convert): Likewise.
36547 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
36548 (build_unary_op): Likewise.
36549 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
36550 (fill_vms_descriptor): Likewise.
36551 (build_call_alloc_dealloc): Likewise.
36552 ALIGN is unsigned.
36553 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
36554
802f6d4b
JM
365552004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
36556
36557 PR other/14630
36558 * gnat_ug.texi: Add info directory category and entry.
36559 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36560 gnat_ug_wnt.texi: Regenerate.
36561
30f3b32b
AC
365622004-03-19 Arnaud Charlet <charlet@act-europe.fr>
36563
36564 * ada-tree.h: Update copyright notice.
36565 Minor reformatting.
36566
365672004-03-19 Olivier Hainque <hainque@act-europe.fr>
36568
36569 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
36570 as regular exception objects and not as mere integers representing the
36571 condition code. The latter approach required some dynamics to mask off
36572 severity bits, which did not fit well into the GCC table based model.
36573 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
36574 exception data objects. We don't it and it would conflict with the other
36575 external symbol we have to generate for such exceptions.
36576
36577 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
36578 the special code for VMS exceptions, since these are now represented
36579 as regular exceptions objects.
36580
7548281d
RK
365812004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36582
36583 * decl.c (debug_no_type_hash): Remove.
36584 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
36585 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
36586
9e94c78f 365872004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 36588
90afe2c9 36589 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 36590 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 36591
eb34af89
RK
365922004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36593
36594 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
36595 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
36596 (TYPE_RM_SIZE_INT): Directly use type.values.
36597 (TREE_LOOP_ID): Clean up check.
36598 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
36599 TYPE_VALUES, not TYPE_FIELDS.
36600 * trans.c (convert_with_check): Delay access of bounds of basetype
36601 until sure is numeric.
36602
a336eaca
AC
366032004-03-18 Arnaud Charlet <charlet@act-europe.fr>
36604
36605 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
36606
36607 Code clean up:
36608 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
36609 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
36610 Specific.Set instead of direct call to e.g pthread_setspecific.
36611
366122004-03-18 Thomas Quinot <quinot@act-europe.fr>
36613
36614 * adaint.c: Update comments.
36615
36616 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
36617 GNATLIB_SHARED for FreeBSD.
36618
366192004-03-18 Jose Ruiz <ruiz@act-europe.fr>
36620
36621 * init.c [VxWorks]: Do not fix the stack size for the environment task.
36622 When needed (stack checking) the stack size is retrieved
36623 from the VxWorks kernel.
36624
36625 * Makefile.in: Flag -nostdinc is required when building the run time
36626 for avoiding looking for files in the base compiler.
36627 Add the VxWorks specific version of the package body for
36628 System.Stack_checking.Operations (5zstchop.adb).
36629
36630 * Make-lang.in: Add the object file for
36631 System.Stack_Checking.Operations.
36632
36633 * Makefile.rtl: Add object file for the package
36634 System.Stack_Checking.Operations.
36635
36636 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
36637
36638 * s-stache.ads, s-stache.adb: Move the operations related to stack
36639 checking from this package to package System.Stack_Checking.Operations.
36640 This way, stack checking operations are only linked in the final
36641 executable when using the -fstack-check flag.
36642
366432004-03-18 Doug Rupp <rupp@gnat.com>
36644
36645 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
36646 Reorganize ifeq's.
36647
36648 * 5qsystem.ads, 5xcrtl.ads: New files.
36649
366502004-03-18 Vincent Celier <celier@gnat.com>
36651
36652 * prj.adb (Reset): Reset hash table Files_Htable
36653
36654 * prj-env.adb (Source_Paths, Object_Paths): New tables.
36655 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
36656 the procedures Add_To_Path_File.
36657 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
36658 making sure that each directory is present only once and, for object
36659 dirs, when a directory already present is added, the duplicate is
36660 removed and the directory is always put as the last in the table.
36661 Write the path files at the end of these accumulations.
36662
36663 * prj-nmsc.adb (Record_Source): Add source file name in hash table
36664 Files_Htable for all sources.
36665
36666 * prj-proc.adb (Process): Remove restrictions between not directly
36667 related extending projects.
36668
366692004-03-18 Emmanuel Briot <briot@act-europe.fr>
36670
36671 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
36672 (Find_Sources): Minor speed optimization.
36673
36674 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
36675 parameter Trusted_Mode.
36676
366772004-03-18 Sergey Rybin <rybin@act-europe.fr>
36678
36679 * scn.adb (Determine_License): Take into account a degenerated case
36680 when the source contains only comments.
36681
366822004-03-18 Ed Schonberg <schonberg@gnat.com>
36683
36684 * sem_warn.adb (Check_References): For a warning on a selected
36685 component that does not come from source, locate an uninitialized
36686 component of the record type to produce a more precise error message.
36687
e6f69614
AC
366882004-03-15 Jerome Guitton <guitton@act-europe.fr>
36689
36690 * 3zsoccon.ads: Fix multicast options.
36691
36692 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
36693 in the spec.
36694
366952004-03-15 Robert Dewar <dewar@gnat.com>
36696
36697 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
36698 pragma used for a private type.
36699
36700 * lib-xref.adb (Generate_Reference): Do not generate warning if
36701 reference is in a different unit from the pragma Unreferenced.
36702
36703 * 5vtpopde.adb: Minor reformatting
36704 Fix casing of To_Task_ID
36705
36706 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
36707 flag if we have an unchecked conversion to an access type in the same
36708 unit.
36709
367102004-03-15 Geert Bosch <bosch@gnat.com>
36711
36712 * a-ngcoty.adb (Modulus): In alternate formula for large real or
36713 imaginary parts, use Double precision throughout.
36714
36715 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
36716 we want to be able to compile run-time with -gnata for testing, but
36717 this may also be instantiated in user code that is compiled with -gnata.
36718
367192004-03-15 Olivier Hainque <hainque@act-europe.fr>
36720
36721 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
36722 codes. Having a separate type for this is useful to enforce consistency
36723 throughout the various run-time units.
36724 (Exception_Data): Use Exception_Code for Import_Code.
36725
36726 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
36727 Natural and Integer in various places.
36728 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
36729 with the severity bits masked off.
36730 (Register_VMS_Exception): Handle the additional exception data pointer
36731 argument.
36732
36733 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
36734 component, now reflected by an exported accessor.
36735 (is_handled_by): New routine to compute whether the propagated
36736 occurrence matches some handler choice specification. Extracted out of
36737 get_action_description_for, and expanded to take care of the VMS
36738 specifities.
36739 (get_action_description_for): Use is_handled_by instead of an explicit
36740 complex condition to decide if the current choice at hand catches the
36741 propagated occurrence.
36742
36743 * raise.h (Exception_Code): New type for C.
36744
36745 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
36746 System.Standard_Library.Exception_Code, to allow references from the
36747 pragma import/export expander.
36748
36749 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
36750 New accessors to allow easy access to GNAT exception data
36751 characteristics.
36752 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
36753 redundant Handled_By_Others component, helper for the personality
36754 routine which will now be able to call the appropriate exception data
36755 accessor instead.
36756
36757 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
36758 component of Standard_Exception_Type to be the closest possible to
36759 Exception_Code in System.Standard_Library, that we cannot get at this
36760 point. Expand a ??? comment to notify that this type node should
36761 probably be rewritten later on.
36762
36763 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
36764 registration call to include a pointer to the exception object in the
36765 arguments.
36766
36767 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
36768 instead of int and explicit bitmasks.
36769
367702004-03-15 Vincent Celier <celier@gnat.com>
36771
36772 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
36773 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
36774
36775 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
36776 longer needed now that it is in the spec of
36777 System.Tasking.Task_Attributes.
36778
36779 * adaint.h, adaint.c: (__gnat_create_output_file): New function
36780
36781 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
36782
36783 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
36784
36785 * make.adb (Gnatmake): Do not check the executable suffix; it is being
36786 taken care of in Scan_Make_Arg.
36787 (Scan_Make_Arg): Add the executable suffix only if the argument
36788 following -o, in canonical case, does not end with the executable
36789 suffix. When in verbose mode and executable file name does not end
36790 with executable suffix, output the executable name, in canonical case.
36791
36792 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
36793 to avoid warnings when instantiating Ada.Task_Attributes.
36794 Minor reformating.
36795
36796 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
36797 in the correct order.
36798
36799 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
36800 redirect standard output and error to a file for the invocation of the
36801 compiler, then read the file.
36802
36803 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
36804 directory, instead of the Value.
36805 (Find_Source_Dirs): Remove useless code & comments.
36806
368072004-03-15 Ed Schonberg <schonberg@gnat.com>
36808
36809 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
36810 tagged type is inherited, and the parent operation is not frozen yet,
36811 force generation of a freeze node for the inherited operation, so the
36812 corresponding dispatch entry is properly initialized.
36813 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
36814 when looking for user-defined equality operation.
36815
36816 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
36817 boolean when locating primitive equality of tagged component.
36818
36819 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
36820 bit-aligned field and the right-hand side a string literal, introduce
36821 a temporary before expanding assignment into a loop.
36822
36823 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
36824 priority in full, to ensure that any expanded subepxressions of it are
36825 elaborated in the scope of the init_proc.
36826
36827 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
36828 after object declaration, skipping over code that may have been
36829 generated for validity checks.
36830
36831 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
36832 discriminants, ignore the known discriminants of its full view, if
36833 any, to check legality.
36834
36835 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
36836 component if type has unknown discriminants.
36837 (Analyze_Private_Extension_Declaration): Discriminant constraint is
36838 null if type has unknown discriminants.
36839
36840 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
36841 for end label when present.
36842
36843 * s-fileio.adb (Open): When called with a C_Stream, use given name for
36844 temporary file, rather than an empty string.
36845
368462004-03-15 Ed Falis <falis@gnat.com>
36847
36848 * s-thread.adb: Removed, no longer used.
36849
368502004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36851
36852 * decl.c (target.h): Now include.
36853 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
36854 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
36855 (validate_size): For POINTER_TYPE, get smallest size permitted on
36856 machine.
36857
36858 * fe.h: Sort Einfo decls and add Set_Mechanism.
36859
36860 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
36861 (ada/decl.o): Depends on target.h.
36862
36863 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
36864 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
36865
368662004-03-15 Thomas Quinot <quinot@act-europe.fr>
36867
36868 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
36869
36870 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
36871 Insert_Dereference_Action when rewriting an implicit dereference into
36872 an explicit one, this will be taken care of during expansion of the
36873 explicit dereference.
36874 (Expand_N_Slice): Same. Always do the rewriting, even for the case
36875 of non-packed slices, since the dereference action generated by
36876 expansion of the explicit dereference is needed in any case.
36877 (Expand_N_Selected_Component): When rewriting an implicit dereference,
36878 analyze and resolve the rewritten explicit dereference so it is seen
36879 by the expander.
36880 (Insert_Dereference_Action): This procedure is now called only for the
36881 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
36882 dereferences that do not come from source (including explicit
36883 dereferences resulting from rewriting implicit ones), but do not
36884 recursively insert a check for the dereference nodes contained within
36885 the check.
36886 (Insert_Dereference_Action): Clarify and correct comment.
36887
e4c9c075
PB
368882004-03-08 Paolo Bonzini <bonzini@gnu.org>
36889
36890 PR ada/14131
36891 Move language detection to the top level.
36892 * config-lang.in: Build by default.
36893
8a6a52dc
AC
368942004-03-05 Robert Dewar <dewar@gnat.com>
36895
36896 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
36897
36898 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
36899 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 36900 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
36901 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
36902 unchecked conversion to spec to avoid warnings.
36903
36904 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
36905 to Task_ID
36906
36907 * 7stpopsp.adb: Correct casing in To_Task_ID call
36908
36909 * a-strsea.ads, a-strsea.adb: Minor reformatting
36910
36911 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
36912
36913 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
36914 Adjust Max_Msg_Length to be clearly large enough.
36915
36916 * fe.h: Define In_Same_Source_Unit
36917
36918 * osint.adb: Add pragma Warnings Off to suppress warnings
36919 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
36920 aliasing warnings.
36921
36922 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
36923
36924 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
36925
36926 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
36927
36928 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
36929
36930 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
36931
36932 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
36933 node. We now do generate them for gcc back end.
36934
36935 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
36936 warning.
36937
36938 * sinput-c.adb: Fix bad name in header.
36939 Add pragma Warnings Off to suppress aliasing warning.
36940
36941 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
36942
36943 * snames.h, snames.ads, snames.adb: Add entry for pragma
36944 No_Strict_Aliasing.
36945
369462004-03-05 Vincent Celier <celier@gnat.com>
36947
36948 * prj-com.ads: Add hash table Files_Htable to check when a file name
36949 is already a source of another project.
36950
36951 * prj-nmsc.adb (Record_Source): Before recording a new source, check
36952 if its file name is not already a source of another project. Report an
36953 error if it is.
36954
36955 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
36956 source file name, call gnatpp with all the sources of the main project.
36957
36958 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
36959 of file names.
36960
36961 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
36962 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
36963 /RUNTIME_SYSTEM=, converted to --RTS=
36964 /NOTABS, converted to -notabs
36965
369662004-03-05 Pascal Obry <obry@gnat.com>
36967
36968 * make.adb: Minor reformatting.
36969
369702004-03-05 Ed Schonberg <schonberg@gnat.com>
36971
36972 Part of implemention of AI-262.
36973 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
36974
36975 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
36976 procedure.
36977
36978 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
36979 when component type is a partially constrained class-wide subtype.
36980 (Constrain_Discriminated_Type): If parent type has unknown
36981 discriminants, a constraint is illegal, even if full view has
36982 discriminants.
36983 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
36984 with unknown discriminants whose full view is a discriminated record.
36985
36986 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
36987 flag, to handle properly derivations of tagged types with unknown
36988 discriminants.
36989 (Analyze_Package_Spec, Analyze_Package_Body): Install
36990 Private_With_Clauses before analyzing private part or body.
36991
36992 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
36993 Has_Discriminants can be true for a given type (documentation).
36994
369952004-03-05 Arnaud Charlet <charlet@act-europe.fr>
36996
36997 * s-restri.ads: Fix license (GPL->GMGPL).
36998
36999 * s-tassta.adb: Minor reformatting.
37000
37001 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
37002 by calls to Exit_One_ATC_Level, since additional clean up is performed
37003 by this function.
37004
37005 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
37006 by calls to Exit_One_ATC_Level, since additional clean up is performed
37007 by this function.
37008
370092004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37010
37011 * trans.c: Reflect GCC changes to fix bootstrap problem.
37012 Add warning for suspicious aliasing unchecked conversion.
37013
370142004-03-05 GNAT Script <nobody@gnat.com>
37015
37016 * Make-lang.in: Makefile automatically updated
37017
555360a5
AC
370182004-03-02 Emmanuel Briot <briot@act-europe.fr>
37019
37020 * ali.adb (Read_Instantiation_Instance): Do not modify the
37021 current_file_num when reading information about instantiations, since
37022 this corrupts files in later references.
37023
370242004-03-02 Vincent Celier <celier@gnat.com>
37025
37026 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
37027 before checking if it is read-only.
37028
37029 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
37030 of SRC_DIRS and eliminate duplicates.
37031
37032 * gprcmd.adb: Replace command "path" with command "path_sep" to return
37033 the path separator.
37034 (Usage): Document path_sep
37035
37036 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
37037 C++ compiler. No need for a script.
37038 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
37039 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
37040 subst.
37041
37042 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
37043 where there are Ada sources.
37044 (Set_Ada_Paths): Only add to the include path the source dirs of project
37045 with Ada sources.
37046 (Add_To_Path): Add the Display_Values of the directories, not their
37047 Values.
37048
37049 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
37050 data.
37051
37052 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
37053 is not No_Name.
37054 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
37055 Value is canonicalized.
37056 (Language_Independent_Check): Do not copy Value to Display_Value when
37057 canonicalizing Value.
37058
37059 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
37060 path to find limited with cycles.
37061 (Parse_Single_Project): Use canonical cased path to find the end of a
37062 with cycle.
37063
370642004-03-02 Ed Schonberg <schonberg@gnat.com>
37065
37066 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
37067 and not a child unit.
37068
37069 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
37070 appear in a with_clause.
37071
37072 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
37073 only happen in type_annotate mode, do not try to elaborate it.
37074
37075 * exp_util.adb (Force_Evaluation): If expression is a selected
37076 component on the left of an assignment, use a renaming rather than a
37077 temporary to remove side effects.
37078
37079 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
37080 inlined instance body, which is analyzed before the end of the
37081 enclosing scope.
37082
370832004-03-02 Robert Dewar <dewar@gnat.com>
37084
37085 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
37086 sem_ch4.adb: Use new feature for substitution of keywords in VMS
37087
37088 * errout.ads, errout.adb: Implement new circuit for substitution of
37089 keywords in VMS.
37090
37091 * sem_case.adb (Analyze_Choices): Place message properly when case is
37092 a subtype reference rather than an explicit range.
37093
37094 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
37095
370962004-03-02 Doug Rupp <rupp@gnat.com>
37097
37098 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
37099
371002004-03-02 Thomas Quinot <quinot@act-europe.fr>
37101
37102 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
37103
371042004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37105
37106 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
37107 BLKmode bitfield.
37108
8a7988f5
AC
371092004-02-25 Robert Dewar <dewar@gnat.com>
37110
37111 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
37112 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
37113 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
37114 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
37115 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
37116 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
37117 the defining instance of the type to avoid aliasing problems.
37118 Fix copyright header. Fix bad comments in package header.
37119
37120 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
37121
371222004-02-25 Ed Schonberg <schonberg@gnat.com>
37123
37124 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
37125 rewritten as references when aliased through an address clause.
37126
37127 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
37128 whether call can be interpreted as an indirect call to the result of a
37129 parameterless function call returning an access subprogram.
37130
371312004-02-25 Arnaud Charlet <charlet@act-europe.fr>
37132
37133 Code clean up:
37134 * exp_ch7.adb (Make_Clean): Remove generation of calls to
37135 Unlock[_Entries], since this is now done by Service_Entries directly.
37136
37137 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
37138
37139 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
37140 Requeue_Call for better code readability. Change spec and update calls:
37141 PO_Service_Entries now unlock the PO on exit.
37142 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
37143 PO_Service_Entries.
37144
37145 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
37146
37147 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
37148
371492004-02-25 Sergey Rybin <rybin@act-europe.fr>
37150
37151 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
37152 protected subprogram call and analyzing the result of such expanding
37153 in case when the called protected subprogram is eliminated.
37154
37155 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
37156 names.
37157
371582004-02-25 Jerome Guitton <guitton@act-europe.fr>
37159
37160 * Makefile.in: Clean ups.
37161
6871ba5f
AC
371622004-02-23 Ed Schonberg <schonberg@gnat.com>
37163
37164 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
37165 protected operations if original subprogram is flagged as eliminated.
37166 (Expand_N_Subprogram_Body): For a protected operation, create
37167 discriminals for next operation before checking whether the operation
37168 is eliminated.
37169
37170 * exp_ch9.adb (Expand_N_Protected_Body,
37171 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
37172 for internal protected operations if the original subprogram is
37173 eliminated.
37174
37175 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
37176 declared in a single protected object.
37177
371782004-02-23 Vincent Celier <celier@gnat.com>
37179
37180 * prj-attr.adb: Make attribute Builder'Executable an associative array,
37181 case insensitive if file names are case insensitive, instead of a
37182 standard associative array.
37183
37184 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
37185 them as case insensitive on platforms where the file names are case
37186 sensitive.
37187
37188 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
37189 project file has already been parsed that canonical path are compared.
37190
371912004-02-23 Robert Dewar <dewar@gnat.com>
37192
37193 * sinput-c.ads: Correct bad unit title in header
37194
37195 * freeze.adb: Minor reformatting
37196
371972004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37198
37199 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
37200 nonaddressable COMPONENT_REF that is removing padding that we are
37201 taking the address of, take the address of the padded record instead
37202 if item is variable size.
37203
6e059adb
AC
372042004-02-20 Robert Dewar <dewar@gnat.com>
37205
37206 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
37207
372082004-02-20 Ed Schonberg <schonberg@gnat.com>
37209
37210 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
37211 itype references for the constrained designated type of a component
37212 whose base type is already frozen.
37213
372142004-02-20 Arnaud Charlet <charlet@act-europe.fr>
37215
37216 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
37217 avoid GCC warnings.
37218
372192004-02-20 Sergey Rybin <rybin@act-europe.fr>
37220
37221 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
37222 identifier for a phantom package that rewrites the formal package
37223 declaration with a box. The Add semantic decorations for the defining
37224 identifier from the original node (that represents the formal package).
37225
88e3a2a3
MK
372262004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
37227
37228 * Make-lang.in (ada/stamp-sdefault): Use the top level
37229 move-if-change.
37230
4221057e
RH
372312004-02-19 Richard Henderson <rth@redhat.com>
37232
37233 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
37234
5c1c8a03
AC
372352004-02-18 Emmanuel Briot <briot@act-europe.fr>
37236
37237 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
37238 Scan_ALI can be used for multiple ALI files without reinitializing
37239 between calls.
37240
372412004-02-18 Robert Dewar <dewar@gnat.com>
37242
37243 * debug.adb: Minor reformatting.
37244
372452004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37246
37247 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
37248 to zero if there is an address clause.
37249
372502004-02-18 Thomas Quinot <quinot@act-europe.fr>
37251
37252 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
37253
372542004-02-18 Gary Dismukes <dismukes@gnat.com>
37255
37256 * layout.adb (Layout_Component_List): Revise generation of call to
37257 discriminant-checking function to pass selections of all of the type's
37258 discriminants rather than just the variant-controlling discriminant.
37259
372602004-02-18 Olivier Hainque <hainque@act-europe.fr>
37261
37262 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
37263 fail in the current setup and triggers spurious system error messages.
37264 Pretend it occurred and failed instead.
37265
372662004-02-18 Vincent Celier <celier@gnat.com>
37267
37268 * bld.adb: Mark FLDFLAGS as saved
37269 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
37270 it is not the root project. Put each directory to be
37271 extended between double quotes to prevent it to be expanded on Windows.
37272 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
37273 the project file. Set them back to their initial values if they have not
37274 been set in the project file.
37275
37276 * gprcmd.adb: (Gprdebug, Debug): New global variables
37277 (Display_Command): New procedure
37278 (Usage): Document new command "linkopts"
37279 Call Display_Command when env var GPRDEBUG has the value "TRUE"
37280 Implement new command "linkopts"
37281 Remove quotes that may be around arguments for "extend"
37282 Always call Normalize_Pathname with arguments formatted for the platform
37283
37284 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
37285 Change @echo to @$(display) in target clean to be able to clean silently
37286
37287 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
37288
37289 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
37290 canonical case.
37291
37292 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
37293 = Extending_All when current project is an extending all project.
37294
37295 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
37296 set to True only for LINK command, after Unix switch -o.
37297 (Process_Arguments): Set Output_File_Expected to True for LINK command
37298 after Unix switch -o. When Output_File_Expected is True, never add an
37299 extension to a file name.
37300
37301 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
37302 option file name, only to the --for-linker= switch.
37303 (Option_File_Name): If option file name do not end with ".opt", append
37304 "/OPTIONS".
37305
373062004-02-18 GNAT Script <nobody@gnat.com>
37307
37308 * Make-lang.in: Makefile automatically updated
37309
80bcb4d2
MK
373102004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
37311
37312 * Make-lang.in (stamp-sdefault): Do not depend on
37313 move-if-change.
37314
1daa84b6
ZW
373152004-02-12 Zack Weinberg <zack@codesourcery.com>
37316
37317 * config-lang.in: Disable Ada by default until probe logic for
37318 a bootstrap Ada compiler can be moved to the top level configure
37319 script.
37320
18c0ecbe
AC
373212004-02-12 Olivier Hainque <hainque@act-europe.fr>
37322
37323 * decl.c (components_to_record): Don't claim that the internal fields
37324 we make to hold the variant parts are semantically addressable, because
37325 they are not.
37326
37327 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
37328 adjust the comment describing the modular type form when we can use it.
37329 (Install_PAT): Account for the Esiz renaming.
37330
37331 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
37332 sc_onstack context indication before raising the exception to which
37333 the signal is mapped. Allows better handling of later signals possibly
37334 triggered by the resumed user code if the exception is handled.
37335
373362004-02-12 Arnaud Charlet <charlet@act-europe.fr>
37337
37338 * 5zinit.adb: Removed, no longer used.
37339
373402004-02-12 Robert Dewar <dewar@gnat.com>
37341
37342 * ali.adb: Remove separating space between parameters on R line. Makes
37343 format consistent with format used by the binder for Set_Globals call.
37344
37345 * atree.ads, atree.adb: Minor reformatting (new function header format)
37346
37347 * bindgen.adb: Add Run-Time Globals documentation section containing
37348 detailed documentation of the globals passed from the binder file to
37349 the run time.
37350
37351 * gnatls.adb: Minor reformatting
37352
37353 * init.c (__gnat_set_globals): Add note pointing to documentation in
37354 bindgen.
37355
37356 * lib-writ.ads, lib-writ.adb: Remove separating space between
37357 parameters on R line.
37358 Makes format consistent with format used by the binder for Set_Globals
37359 call.
37360
37361 * osint.ads: Add 2004 to copyright notice
37362 Minor reformatting
37363
37364 * snames.ads: Correct capitalization of FIFO_Within_Priorities
37365 Noticed during code reading, documentation issue only
37366
37367 * usage.adb: Remove junk line for obsolete C switch
37368 Noticed during code reading
37369
373702004-02-12 Vincent Celier <celier@gnat.com>
37371
37372 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
37373 extend for each directory, so that multiple /** directories are
37374 extended individually.
37375 (Recursive_Process): Set the default for LANGUAGES to ada
37376
37377 * gprcmd.adb: Define new command "ignore", to do nothing.
37378 Implement new comment "path".
37379
37380 * Makefile.generic: Suppress output when SILENT is set
37381 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
37382 used, so that the correct compiler is invoked.
37383 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
37384 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
37385
373862004-02-12 Jerome Guitton <guitton@act-europe.fr>
37387
37388 * Makefile.in: Clean ups and remove obsolete targets.
37389
373902004-02-12 Ed Schonberg <schonberg@gnat.com>
37391
37392 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
37393 predicate declared in exp_util.
37394
37395 * exp_util.adb: Add comments.
37396
37397 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
37398 visibility before compiling context of the subunit.
37399
37400 * sem_res.adb (Check_Parameterless_Call): If the context expects a
37401 value but the name is a procedure, do not attempt to analyze as a call,
37402 in order to obtain more telling diagnostics.
37403
37404 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
37405 'Access on parameterless function calls.
37406 (Normalize_Actuals): For a parameterless function call with missing
37407 actuals, defer diagnostic until resolution of enclosing call.
37408
37409 * sem_util.adb (Wrong_Type): If the context type is an access to
37410 subprogram and the expression is a procedure name, suggest a missing
37411 'attribute.
37412
c1dcfa14
AC
374132004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
37414 Nathanael Nerode <neroden@gcc.gnu.org>
37415
6f7f72f9
EB
37416 PR ada/6637
37417 PR ada/5911
c1dcfa14 37418 Merge with libada-branch:
90afe2c9 37419 * config-lang.in: Build libada only when ada is built.
c1dcfa14 37420
2e071734
AC
374212004-02-09 Ed Schonberg <schonberg@gnat.com>
37422
37423 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
37424 for a tagged type, verify that both formals have the same type.
37425
37426 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
37427 temporary when the formal is an in-parameter and the actual a possibly
37428 unaligned slice.
37429
37430 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
37431 when expansion is disabled, to ensure proper name capture with
37432 overloaded literals. Condition can be of any boolean type, resolve
37433 accordingly.
37434
37435 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
37436 renaming is for a formal subprogram with a default operator name, and
37437 there is a usable operator that is visible at the point of
37438 instantiation.
37439
374402004-02-09 Robert Dewar <dewar@gnat.com>
37441
37442 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
37443 rewrite to ignore errors in ali files, intended to allow tools downward
37444 compatibility with new versions of ali files.
37445
37446 * ali.ads: Add new parameter Ignore_Errors
37447
37448 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
37449 duplicating the error message giving the file with restrictions.
37450
37451 * debug.adb: Add debug flag I for gnatbind
37452
37453 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
37454 operators for the case where the operator is a defining operator.
37455
37456 * exp_ch3.adb: Minor reformatting (new function spec format).
37457
37458 * exp_ch4.adb: Add comment for previous change, and make minor
37459 adjustment to loop to always check for improper loop termination.
37460 Minor reformatting throughout (new function spec format).
37461
37462 * gnatbind.adb: Implement -di debug flag for gnatbind
37463
37464 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
37465
37466 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
37467
37468 * lib-load.adb: Fix bad assertion.
37469 Found by testing and code reading.
37470 Minor reformatting.
37471
37472 * lib-load.ads: Minor reformatting.
37473
37474 * lib-writ.adb: There is only one R line now.
37475
37476 * lib-writ.ads: Add documentation on making downward compatible changes
37477 to ali files so old tools work with new ali files.
37478 There is only one R line now.
37479 Add documentation on format incompatibilities (with special GPS note)
37480
37481 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
37482
37483 * par-load.adb: Minor reformatting
37484
37485 * sem_ch8.adb: Fix to error message from last update
37486 Minor reformatting and restructuring of code from last update
37487
37488 * par-prag.adb, snames.adb, snames.ads, snames.h,
37489 sem_prag.adb: Implement pragma Profile.
37490
37491 * stylesw.adb: Implement -gnatyN switch to turn off all style check
37492 options.
37493
37494 * usage.adb: Add line for -gnatyN switch
37495
37496 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
37497
a41ea816
AC
374982004-02-09 Albert Lee <lee@gnat.com>
37499
37500 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
37501
375022004-02-09 Ed Schonberg <schonberg@gnat.com>
37503
37504 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
37505 slices.
37506
37507 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
37508 is nested in an instance that is not frozen yet, to avoid
37509 order-of-elaboration problems in gigi.
37510
37511 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
37512 body the attribute is legal.
37513
375142004-02-09 Robert Dewar <dewar@gnat.com>
37515
37516 * s-rident.ads: Minor comment correction
37517
37518 * targparm.adb: Remove dependence on uintp completely. There was
37519 always a bug in Make in that it called Targparm before initializing
37520 the Uint package. The old code appeared to get away with this, but
37521 the new code did not! This caused an assertion error in gnatmake.
37522
37523 * targparm.ads: Fix bad comment, restriction pragmas with parameters
37524 are indeed fully supported.
37525
725c60f8
AM
375262004-02-06 Alan Modra <amodra@bigpond.net.au>
37527
37528 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
37529
136e64db
KH
375302004-02-05 Kazu Hirata <kazu@cs.umass.edu>
37531
37532 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
37533 with targetm.calls.promote_prototypes.
37534
06effe87
AC
375352004-02-04 Robert Dewar <dewar@gnat.com>
37536
37537 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
37538 ali.ads, gprcmd.adb: Minor reformatting
37539
37540 * bindgen.adb: Output restrictions string for new style restrictions
37541 handling
37542
37543 * impunit.adb: Add s-rident.ads (System.Rident) and
37544 s-restri (System.Restrictions)
37545
37546 * lib-writ.adb: Fix bug in writing restrictions string (last few
37547 entries wrong)
37548
37549 * s-restri.ads, s-restri.adb: Change name Restrictions to
37550 Run_Time_Restrictions to avoid conflict with package name.
37551 Add circuit to read and acquire run time restrictions.
37552
375532004-02-04 Jose Ruiz <ruiz@act-europe.fr>
37554
37555 * restrict.ads, restrict.adb: Use the new restriction
37556 No_Task_Attributes_Package instead of the old No_Task_Attributes.
37557
37558 * sem_prag.adb: No_Task_Attributes is a synonym of
37559 No_Task_Attributes_Package.
37560
37561 * snames.ads, snames.adb: New entry for proper handling of
37562 No_Task_Attributes.
37563
37564 * s-rident.ads: Adding restriction No_Task_Attributes_Package
37565 (AI-00249) that supersedes the GNAT specific restriction
37566 No_Task_Attributes.
37567
375682004-02-04 Ed Schonberg <schonberg@gnat.com>
37569
90afe2c9 37570 * sem_prag.adb:
06effe87
AC
37571 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
37572 body, an identifier may be wrapped in an unchecked conversion.
37573
375742004-02-04 Vincent Celier <celier@gnat.com>
37575
37576 * lib-writ.ads: Comment update for the W lines
37577
37578 * bld.adb: (Expression): An empty string list is static
37579
37580 * fname-uf.adb: Minor comment update
37581
37582 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
37583
37584 * gnatbind.adb: Initialize Cumulative_Restrictions with the
37585 restrictions on the target.
37586
2fb00d7f
KH
375872004-02-03 Kazu Hirata <kazu@cs.umass.edu>
37588
37589 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
37590 gen_rtx.
37591
5ed23e25
AC
375922004-02-02 Arnaud Charlet <charlet@gnat.com>
37593
37594 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
37595
6e937c1c
AC
375962004-02-02 Vincent Celier <celier@gnat.com>
37597
37598 * gprcmd.adb (Check_Args): If condition is false, print the invoked
37599 comment before the usage.
37600 Gprcmd: Fail when command is not recognized.
37601 (Usage): Document command "prefix"
37602
37603 * g-md5.adb (Digest): Process last block.
37604 (Update): Do not process last block. Store remaining characters and
37605 length in Context.
37606
37607 * g-md5.ads (Update): Document that several call to update are
37608 equivalent to one call with the concatenated string.
37609 (Context): Add fields to allow new Update behaviour.
37610
37611 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
37612 defaulted to False.
37613 When May_Fail is True and no existing file can be found, return No_File.
37614
37615 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
37616 functions.
37617
37618 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
37619 spec file name instead on the W line.
37620
376212004-02-02 Robert Dewar <dewar@gnat.com>
37622
37623 * ali.adb: Read and acquire info from new format restrictions lines
37624
37625 * bcheck.adb: Add circuits for checking restrictions with parameters
37626
37627 * bindgen.adb: Output dummy restrictions data
37628 To be changed later
37629
37630 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
37631 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
37632 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
37633 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
37634 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
37635
37636 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
37637 the warning message on access to possibly uninitialized variable S)
37638 Minor changes for new restrictions handling.
37639
37640 * gnatbind.adb: Minor reformatting
37641 Minor changes for new restrictions handling
37642 Move circuit for -r processing here from bcheck (cleaner)
37643
37644 * gnatcmd.adb, gnatlink.adb: Minor reformatting
37645
37646 * lib-writ.adb: Output new format restrictions lines
37647
37648 * lib-writ.ads: Document new R format lines for new restrictions
37649 handling.
37650
37651 * s-restri.ads/adb: New files
37652
37653 * Makefile.rtl: Add entry for s-restri.ads/adb
37654
37655 * par-ch3.adb: Fix bad error messages starting with upper case letter
37656 Minor reformatting
37657
37658 * restrict.adb: Major rewrite throughout for new restrictions handling
37659 Major point is to handle restrictions with parameters
37660
37661 * restrict.ads: Major changes in interface to handle restrictions with
37662 parameters. Also generally simplifies setting of restrictions.
37663
37664 * snames.ads/adb: New entry for proper handling of No_Requeue
37665
37666 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
37667 restriction counting.
37668 Other minor changes for new restrictions handling
37669
37670 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
37671 Restriction_Warnings now allows full parameter notation
37672 Major rewrite of Restrictions for new restrictions handling
37673
376742004-02-02 Javier Miranda <miranda@gnat.com>
37675
37676 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
37677 syntax rule for object renaming declarations.
37678 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
37679 component definitions.
37680
37681 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
37682 components.
37683 (Array_Type_Declaration): Give support to access components. In addition
37684 it was also modified to reflect the name of the object in anonymous
37685 array types. The old code did not take into account that it is possible
37686 to have an unconstrained anonymous array with an initial value.
37687 (Check_Or_Process_Discriminants): Allow access discriminant in
37688 non-limited types.
37689 (Process_Discriminants): Allow access discriminant in non-limited types
37690 Initialize the new Access_Definition field in N_Object_Renaming_Decl
37691 node. Change Ada0Y to Ada 0Y in comments
37692
37693 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
37694 equality operators.
37695 Change Ada0Y to Ada 0Y in comments
37696
37697 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
37698 renamings Change Ada0Y to Ada 0Y in comments
37699
37700 * sem_type.adb (Find_Unique_Type): Give support to the equality
37701 operators for universal access types
37702 Change Ada0Y to Ada 0Y in comments
37703
37704 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
37705
37706 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
37707 field.
37708 (N_Object_Renaming_Declaration): Addition of Access_Definition field
37709 Change Ada0Y to Ada 0Y in comments
37710
37711 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
37712 component definition and object renaming nodes
37713 Change Ada0Y to Ada 0Y in comments
37714
377152004-02-02 Jose Ruiz <ruiz@act-europe.fr>
37716
37717 * restrict.adb: Use the new restriction identifier
37718 No_Requeue_Statements instead of the old No_Requeue for defining the
37719 restricted profile.
37720
37721 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
37722 No_Requeue_Statements.
37723
37724 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
37725 that supersedes the GNAT specific restriction No_Requeue. The later is
37726 kept for backward compatibility.
37727
377282004-02-02 Ed Schonberg <schonberg@gnat.com>
37729
37730 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
37731 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
37732 pragma and fix incorrect ones.
37733
37734 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
37735 warning if the pragma is redundant.
37736
377372004-02-02 Thomas Quinot <quinot@act-europe.fr>
37738
37739 * 5staprop.adb: Add missing 'constant' keywords.
37740
37741 * Makefile.in: use consistent value for SYMLIB on
37742 platforms where libaddr2line is supported.
37743
377442004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37745
37746 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
37747 annotating types.
37748
377492004-02-02 Olivier Hainque <hainque@act-europe.fr>
37750
37751 * init.c (__gnat_install_handler): Setup an alternate stack for signal
37752 handlers in the environment thread. This allows proper propagation of
37753 an exception on stack overflows in this thread even when the builtin
37754 ABI stack-checking scheme is used without support for a stack reserve
37755 region.
37756
37757 * utils.c (create_field_decl): Augment the head comment about bitfield
37758 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
37759 here, because the former is not accurate enough at this point.
37760 Let finish_record_type decide instead.
37761 Don't make a bitfield if the field is to be addressable.
37762 Always set a size for the field if the record is packed, to ensure the
37763 checks for bitfield creation are triggered.
37764 (finish_record_type): During last pass over the fields, clear
37765 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
37766 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
37767 from DECL_BIT_FIELD.
37768
71cbe2c1
KC
377692004-01-30 Kelley Cook <kcook@gcc.gnu.org>
37770
90afe2c9 37771 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
37772 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
37773 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
37774
7f996f90
RO
377752004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37776
37777 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
37778
37779 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
37780 (ZCX_By_Default): Likewise.
37781 (Front_End_ZCX_Support): Likewise.
37782
37783 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
37784 (Initialize_Lock): Mark Level unreferenced.
37785 (Sleep): Mark Reason unreferenced.
37786 (Timed_Sleep): Likewise.
37787 (Wakeup): Likewise.
37788 (Exit_Task): Use Result.
37789 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 37790
7f996f90
RO
37791 * 5gtasinf.adb (New_Sproc): Make Attr constant.
37792 (Bound_Thread_Attributes): Make Sproc constant.
37793 (New_Bound_Thread_Attributes): Likewise.
37794
26fd4eae
AC
377952004-01-26 Ed Schonberg <schonberg@gnat.com>
37796
37797 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
37798 one-dimensional array an slice assignments, when component type is
37799 controlled.
37800
37801 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
37802 component type is controlled, and control_actions are in effect, use
37803 TSS procedure rather than generating inline code.
37804
37805 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
37806 arrays with controlled components.
37807
378082004-01-26 Vincent Celier <celier@gnat.com>
37809
37810 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
37811 command line for the non VMS case.
37812
37813 * gnatlink.adb (Process_Binder_File): When building object file, if
37814 GNU linker is used, put all object paths between quotes, to prevent ld
37815 error when there are unusual characters (such as '!') in the paths.
37816
37817 * Makefile.generic: When there are sources in Ada and the main is in
37818 C/C++, invoke gnatmake with -B, instead of -z.
37819
37820 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
37821 from VMS_Conversion.
37822 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
37823 specification of argument file on the command line.
37824
378252004-01-26 Bernard Banner <banner@gnat.com>
37826
37827 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
37828
378292004-01-26 Ed Schonberg <schonberg@gnat.com>
37830
37831 * snames.adb: Update copyright notice.
37832 Add info on slice assignment for controlled arrays.
37833
b7e429ab
AC
378342004-01-23 Robert Dewar <dewar@gnat.com>
37835
37836 * exp_aggr.adb: Minor reformatting
37837
37838 * exp_ch9.adb: Minor code clean up
37839 Minor reformatting
37840 Fix bad character in comment
37841
37842 PR ada/13471
37843 * targparm.adb (Get_Target_Parameters): Give clean abort error on
37844 unexpected end of file, along with more detailed message.
37845
378462004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37847
37848 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
37849 PAT.
37850
37851 * decl.c (copy_alias_set): New function.
37852 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
37853
378542004-01-23 Doug Rupp <rupp@gnat.com>
37855
37856 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
37857 lib$${file} in case subsequent character is not a separator.
37858
378592004-01-23 Vincent Celier <celier@gnat.com>
37860
37861 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
37862 when the GCC version is at least 3.
37863
37864 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
37865 Remove all "Opt.", to prepare for opt split
37866
37867 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
37868 Extends_All. Set to True when the project parsed is an extending all
37869 project. Fails for importing an extending all project only when the
37870 imported project is an extending all project.
37871 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
37872 depending on the value of Extends_All returned.
37873
37874 * prj-proc.adb (Process): Check that no project shares its object
37875 directory with a project that extends it, directly or indirectly,
37876 including a virtual project.
37877 Check that no project extended by another project shares its object
37878 directory with another also extended project.
37879
37880 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
37881 Kind = N_With_Clause
37882
37883 * prj-tree.ads: Minor reformatting
37884 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
37885
378862004-01-23 Ed Schonberg <schonberg@gnat.com>
37887
37888 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
37889 applies to a type with an incomplete view, use full view in Name of
37890 clause, for consistency with uses of Get_Attribute_Definition_Clause.
37891
378922004-01-23 Arnaud Charlet <charlet@act-europe.fr>
37893
37894 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
37895 SCHED_RR, since other values are not supported by this policy.
37896 (Initialize): Move initialization of mutex attribute to package
37897 elaboration, to prevent early access to this variable.
37898
37899 * Makefile.in: Remove mention of Makefile.adalib, unused.
37900
b291953f
AC
37901 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37902 1ssecsta.ads: Removed, unused.
b7e429ab 37903
adc04486
AC
379042004-01-21 Javier Miranda <miranda@gnat.com>
37905
37906 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
37907 entity if already built in the current scope.
37908
37909 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
37910 reminder in internal scopes. Required for nested limited aggregates.
37911
379122004-01-21 Doug Rupp <rupp@gnat.com>
37913
37914 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
37915 VMS. Replace all occurences of libgnat- and libgnarl- with
37916 libgnat$(hyphen) and libgnarl$(hyphen).
37917 Fixed shared library build problem on VMS.
37918
379192004-01-21 Robert Dewar <dewar@gnat.com>
37920
37921 * mlib-prj.adb: Minor reformatting
37922
379232004-01-21 Thomas Quinot <quinot@act-europe.fr>
37924
37925 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
37926 'constant' keywords for declaration of pointers that are not modified.
37927
37928 * exp_pakd.adb: Fix English in comment.
37929
379302004-01-21 Ed Schonberg <schonberg@gnat.com>
37931
37932 PR ada/10889
37933 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
37934 copy all attributes of the parent, including the foreign language
37935 convention.
37936
379372004-01-21 Sergey Rybin <rybin@act-europe.fr>
37938
37939 PR ada/10565
37940 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
37941 for 'delay until' statement.
37942
a541f69d
KC
379432004-01-20 Kelley Cook <kcook@gcc.gnu.org>
37944
37945 * Make-lang.in: Replace $(docdir) with doc.
37946 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
37947 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
37948 to use consistent MAKEINFO rule.
37949 (ada.man, ada.srcman): Dummy entry.
37950 (ADA_INFOFILES): Define.
37951 (ada.info, ada.srcinfo): New rules.
37952
c01a9391
AC
379532004-01-19 Arnaud Charlet <charlet@act-europe.fr>
37954
37955 * utils.c: Update copyright notice, missed in previous change.
37956
379572004-01-19 Vincent Celier <celier@gnat.com>
37958
37959 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
37960 args if Bind is True. Set First_ALI, if not already done.
37961 (Build_Library): For Stand Alone Libraries, extract from one ALI file
37962 an eventual --RTS switch, for gnatbind, and all backend switches +
37963 --RTS, for linking.
37964
379652004-01-19 Robert Dewar <dewar@gnat.com>
37966
37967 * sem_attr.adb, memtrack.adb: Minor reformatting
37968
379692004-01-19 Ed Schonberg <schonberg@gnat.com>
37970
37971 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
37972 that rename enumeration literals. This is properly done in sem_eval.
37973
37974 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
37975 to functions that rename enumeration literals.
37976
37977 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
37978 functions that rename enumeration literals.
37979
510d1e80
KH
379802004-01-16 Kazu Hirata <kazu@cs.umass.edu>
37981
37982 * Make-lang.in (utils.o): Depend on target.h.
37983 * utils.c: Include target.h.
37984 (process_attributes): Use targetm.have_named_sections instead
37985 of ASM_OUTPUT_SECTION_NAME.
37986
fbf3e0dd
AJ
379872004-01-16 Andreas Jaeger <aj@suse.de>
37988
37989 * Makefile.in: Add $(DESTDIR).
37990
acd47d2a
AC
379912004-01-15 Olivier Hainque <hainque@act-europe.fr>
37992
37993 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
37994 also when not defining if a Size clause applies. That information is
37995 not to be ignored.
37996
379972004-01-15 Arnaud Charlet <charlet@act-europe.fr>
37998
37999 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
38000 symbolic links for the shared gnat run time when needed.
38001
380022004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
38003
38004 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
38005 for writing, and terminate with an error message if not.
38006
380072004-01-15 Ed Schonberg <schonberg@gnat.com>
38008
38009 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
38010 warning on an access to subprogram in an instance, when the target
38011 type is declared in the same generic unit.
38012 (Eval_Attribute): If 'access is known to fail accessibility check,
38013 rewrite as a raise statement.
38014
380152004-01-15 GNAT Script <nobody@gnat.com>
38016
38017 * Make-lang.in: Makefile automatically updated
38018
03787dfd
KC
380192004-01-15 Kelley Cook <kcook@gcc.gnu.org>
38020
38021 * Make-lang.in (ada.srcextra): Dummy entry.
38022
73e232f0
KC
380232004-01-14 Kelley Cook <kcook@gcc.gnu.org>
38024
38025 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
38026
9bc43c53
AC
380272004-01-13 Ed Schonberg <schonberg@gnat.com>
38028
38029 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
38030 components that are initialized with aggregates.
38031
380322004-01-13 Vincent Celier <celier@gnat.com>
38033
38034 * gnatlink.adb (Process_Binder_File): To find directory of shared
38035 libgcc, if "gcc-lib" is not a subdirectory, look for the last
38036 subdirectory "lib" in the path of the shared libgnat or libgnarl.
38037
38038 * make.adb (Gnatmake): If GCC version is at least 3, link with
38039 -shared-libgcc, when there is at least one shared library project.
38040
38041 * opt.ads (GCC_Version): New integer constant.
38042
38043 * adaint.c (get_gcc_version): New function.
38044
380452004-01-13 Robert Dewar <dewar@gnat.com>
38046
38047 * sem_dist.adb, sem_res.adb, sem_util.adb,
38048 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
38049 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
38050
380512004-01-13 Thomas Quinot <quinot@act-europe.fr>
38052
38053 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
38054 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
38055 declarations.
38056
8b52de7b
AC
380572004-01-12 Arnaud Charlet <charlet@act-europe.fr>
38058
f6ea0188
AC
38059 * misc.c: Remove trailing spaces.
38060 Update copyright notice missed in previous change.
38061
8b52de7b
AC
38062 PR ada/13572
38063 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
38064 prefix/share/make
38065
38066 * Makefile.generic: Update copyright.
38067 Add license notice.
38068
38069 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
38070 of prefix/share/make.
38071
38072 * Makefile.prolog: Update copyright.
38073 Add license notice.
38074
380752004-01-12 Laurent Pautet <pautet@act-europe.fr>
38076
38077 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
38078 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
38079 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
38080 instead of String.
38081
38082 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
38083 signature.
38084
380852004-01-12 Javier Miranda <miranda@gnat.com>
38086
38087 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
38088 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
38089 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
38090 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
38091 Component_Definition node.
38092
380932004-01-12 Ed Falis <falis@gnat.com>
38094
38095 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
38096
380972004-01-12 Thomas Quinot <quinot@act-europe.fr>
38098
38099 * link.c: Change default libgnat kind to STATIC for FreeBSD.
38100
381012004-01-12 Bernard Banner <banner@gnat.com>
38102
38103 * Makefile.in: map 86numaux to a-numaux for x86_64
38104
381052004-01-12 Ed Schonberg <schonberg@gnat.com>
38106
38107 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
38108 generated to rename a generic actual, go to the actual itself, the
38109 subtype is not a user-visible entity.
38110
38111 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
38112 part is a private subtype, reset the visibility of its full view, if
38113 any, to be consistent.
38114
38115 PR ada/13417
38116 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
38117 to use a generic package G as a formal package for another generic
38118 declared within G.
38119
381202004-01-12 Robert Dewar <dewar@gnat.com>
38121
38122 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
38123
38124 * usage.adb: Remove mention of obsolete -gnatwb switch
38125 Noticed during code reading
38126
381272004-01-12 Jerome Guitton <guitton@act-europe.fr>
38128
38129 * 1ssecsta.adb: Minor changes for -gnatwa warnings
38130
381312004-01-12 GNAT Script <nobody@gnat.com>
38132
38133 * Make-lang.in: Makefile automatically updated
38134
0fab64a3
MM
381352004-01-09 Mark Mitchell <mark@codesourcery.com>
38136
38137 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
38138
47527624
RO
381392004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38140
38141 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
38142
dedebde1
KC
381432004-01-05 Kelley Cook <kcook@gcc.gnu.org>
38144
fbf3e0dd 38145 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
38146 Update comment and copyright date.
38147 * stamp-xgnatug: Delete.
38148
91b1417d
AC
381492004-01-05 Robert Dewar <dewar@gnat.com>
38150
38151 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
38152 be modified by the binder generated main program if the -D switch is
38153 used.
38154
38155 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
38156 imported functions (since now we expect this to be done for imported
38157 functions)
38158
38159 * 5vtaprop.adb: Add several ??? for sections requiring more comments
38160 Minor reformatting throughout
38161
38162 * 5zinit.adb: Minor reformatting
38163 Add 2004 to copyright date
38164 Minor changes to avoid -gnatwa warnings
38165 Correct some instances of using OR instead of OR ELSE (noted while
38166 doing reformatting)
38167
38168 * sprint.adb: Minor updates to avoid -gnatwa warnings
38169
fbf3e0dd 38170 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
38171 (SS_Get_Max): New function to obtain high water mark for ss stack
38172 Default_Secondary_Stack is not a constant since it may be modified by
38173 the binder generated main program if the -D switch is used.
38174
38175 * switch-b.adb: New -Dnnn switch for binder
38176
fbf3e0dd 38177 * switch-c.adb:
91b1417d
AC
38178 Make -gnatg imply all warnings currently in -gnatwa
38179
38180 * vms_conv.adb: Minor reformatting
38181 Add 2004 to copyright notice
38182 Add 2004 to printed copyright notice
38183
38184 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
38185 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
38186 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
38187 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
38188 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
38189 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
38190 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
38191 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
38192 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
38193 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
38194 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
38195 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
38196 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
38197 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
38198 checks.adb, clean.adb, cstand.adb, einfo.ads,
38199 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
38200 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
38201 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
38202 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
38203 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
38204 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
38205 Minor reformatting and code clean ups.
38206 Minor changes to prevent -gnatwa warnings
38207
38208 * ali.adb: Minor reformatting and cleanup of code
38209 Acquire new SS indication of secondary stack use from ali files
38210
38211 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
38212 (since now we expect this to be done for imported functions)
38213
38214 * bindgen.adb: Generate call to modify default secondary stack size if
38215 -Dnnn switch given
38216
38217 * bindusg.adb: Add line for new -D switch
38218
38219 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
38220 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
38221 Add circuitry for both records and arrays to avoid gigi
38222 processing if the type involved has non-bit-aligned components
38223
38224 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
38225 N_String_Literal node always references an E_String_Literal_Subtype
38226 entity. This may not be true in the future.
38227 (Possible_Bit_Aligned_Component): Move processing of
38228 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
38229
38230 * exp_ch6.adb (Expand_Thread_Body): Pick up
38231 Default_Secondary_Stack_Size as variable so that we get value modified
38232 by possible -Dnnn binder parameter.
38233
38234 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
38235 (Type_May_Have_Bit_Aligned_Components): New function.
38236
38237 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
38238 (Type_May_Have_Bit_Aligned_Components): New function.
38239
38240 * fe.h: (Set_Identifier_Casing): Fix prototype.
38241 Add declaration for Sem_Elim.Eliminate_Error_Msg.
38242 Minor reformatting.
38243
38244 * freeze.adb (Freeze_Entity): Add RM reference to error message about
38245 importing constant atomic/volatile objects.
38246 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
38247 unless explicit Pure_Function pragma given, to avoid insidious bug of
38248 call to non-pure imported function getting eliminated.
38249
38250 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
38251 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
38252 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
38253 Add 2004 to printed copyright notice
38254
38255 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
38256 stack used.
38257
38258 * Makefile.rtl: Add entry for g-sestin.o
38259 g-sestin.ads: New file.
38260
38261 * mdll.adb: Minor changes to avoid -gnatwa warnings
38262
38263 * mlib-tgt.adb: Minor reformatting
38264
38265 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
38266 New switch Sec_Stack_Used (GNAT, GNATBIND)
38267 Make Default_Secondary_Stack_Size a variable instead of a constant,
38268 so that it can be modified by the new -Dnnn bind switch.
38269
38270 * rtsfind.adb (Load_Fail): Give full error message in configurable
38271 run-time mode if all_errors mode is set. This was not done in the case
38272 of a file not found, which was an oversight.
38273 Note if secondary stack unit is used by compiler.
38274
38275 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
38276 ineffective elaborate all pragmas on non-visible packages (this
38277 happened when a renamed subprogram was called). Now the elaborate all
38278 always goes on the package containing the renaming rather than the one
38279 containing the renamed subprogram.
38280
38281 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
38282 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
38283
38284 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
38285 has an Etype that references an E_String_Literal.
38286 (Eval_String_Literal): Avoid assumption that N_String_Literal node
38287 always references an E_String_Literal_Subtype entity. This may not
38288 be true in the future.
38289
38290 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
38291 pragma location.
38292
38293 * sem_res.adb (Resolve): Specialize msg for function name used in proc
38294 call.
38295
382962004-01-05 Ed Falis <falis@gnat.com>
38297
38298 * g-debuti.adb: Replaced direct boolean operator with short-circuit
38299 form.
38300
383012004-01-05 Vincent Celier <celier@gnat.com>
38302
38303 * bld.adb: Minor comment updates
38304 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
38305 of Item_Name).
38306
38307 * make.adb (Gnatmake): Special process for files to compile/check when
38308 -B is specified. Fail when there are only foreign mains in attribute
38309 Main of the project file and -B is not specified. Do not skip bind/link
38310 steps when -B is specified.
38311
38312 * makeusg.adb: Document new switch -B
38313
38314 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
38315
38316 * switch-m.adb: (Scan_Make_Switches): Process -B switch
38317
38318 * vms_data.ads: Add new GNAT PRETTY qualifier
38319 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
38320
383212004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38322
38323 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
38324 case.
38325
38326 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
38327 Set_Identifier_Casing.
38328
38329 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
38330 has size that overflows.
38331
383322004-01-05 Gary Dismukes <dismukes@gnat.com>
38333
38334 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
38335 -gnatwa warning on static condition.
38336
383372004-01-05 Doug Rupp <rupp@gnat.com>
38338
38339 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
38340
383412004-01-05 Arnaud Charlet <charlet@act-europe.fr>
38342
38343 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
38344 all attributes, including read-only attribute.
38345
383462004-01-05 Pascal Obry <obry@gnat.com>
38347
38348 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
38349 library naming scheme.
38350
38351 * mlib-prj.adb (Build_Library): Generate different names for the static
38352 or dynamic version of the GNAT runtime. This is needed to support the
38353 new shared library naming scheme.
38354 (Process_Binder_File): Add detection of shared library in binder file
38355 based on the new naming scheme.
38356
38357 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
38358 scheme for the shared runtime libraries.
38359
38360 * Makefile.in:
38361 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
38362 scheme.
38363 (install-gnatlib): Do not create symlinks for shared libraries.
38364 (gnatlib-shared-default): Idem.
38365 (gnatlib-shared-dual-win32): New target. Not used for now as the
38366 auto-import feature does not support arrays/records.
38367 (gnatlib-shared-win32): Do not create copy for the shared libraries.
38368 (gnatlib-shared-vms): Fix shared runtime libraries names.
38369
38370 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
38371 dependent runtime shared library name.
38372
383732004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
38374
38375 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
38376 than the object.
38377
383782004-01-05 Ed Schonberg <schonberg@gnat.com>
38379
38380 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
38381 protected objects when allocator has a subtype indication, not a
38382 qualified expression. Note that qualified expressions may have to be
38383 checked when limited aggregates are implemented.
38384
38385 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
38386 pure, emit warning.
38387 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
38388 subprogram is imported, remove warning.
38389
383902004-01-05 Geert Bosch <bosch@gnat.com>
38391
38392 * s-poosiz.adb: Update copyright notice.
38393 (Allocate): Use Task_Lock to protect against concurrent access.
38394 (Deallocate): Likewise.
38395
383962004-01-05 Joel Brobecker <brobecker@gnat.com>
38397
38398 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
38399 comment.
38400
2ab127f3
KC
384012003-12-23 Kelley Cook <kcook@gcc.gnu.org>
38402
38403 * gnat_ug.texi: Force a CVS commit by updating copyright.
38404 * gnat_ug_vxw.texi: Regenerate.
38405 * gnat_ug_wnt.texi: Regenerate.
38406 * gnat_ug_vms.texi: Regenerate.
38407 * gnat_ug_unx.texi: Regenerate.
38408
aed8bfdc
KH
384092003-12-20 Kazu Hirata <kazu@cs.umass.edu>
38410
38411 * trans.c: Remove uses of "register" specifier in
38412 declarations of local variables.
38413
90c2f1de
KC
384142003-12-18 Kelley Cook <kcook@gcc.gnu.org>
38415
38416 * stamp-xgnatug: New stamp file.
38417 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
38418 (ada/doctools/xgnatug): Add $(build_exeext).
38419 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
38420 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
38421
891a6e79
AC
384222003-12-17 Ed Falis <falis@gnat.com>
38423
38424 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
38425 eliminate warning.
38426
38427 * a-exextr.adb: Add context clause for
38428 Ada.Exceptions.Last_Chance_Handler.
38429
384302003-12-17 Sergey Rybin <rybin@act-europe.fr>
38431
38432 * cstand.adb (Create_Standard): Change the way how the declaration of
38433 the Duration type is created (making it the same way as it is for all
38434 the other standard types).
38435
384362003-12-17 Robert Dewar <dewar@gnat.com>
38437
38438 * s-crtl.ads: Fix header format
38439 Change Pure to Preelaborate
38440
384412003-12-17 Ed Schonberg <schonberg@gnat.com>
38442
38443 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
38444 the expression type only if it is declared in the current unit.
38445
38446 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
38447 are universal and already analyzed, as can occur in constrained
38448 subcomponents that depend on discriminants, when one constraint is a
38449 subtype mark.
38450
38451 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
38452 type Any_Fixed is legal as the argument of a conversion, if only one
38453 fixed-point type is in context.
38454
384552003-12-17 GNAT Script <nobody@gnat.com>
38456
38457 * Make-lang.in: Makefile automatically updated
38458
209db2bf
AC
384592003-12-15 Robert Dewar <dewar@gnat.com>
38460
38461 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
38462 sec stack size.
38463
384642003-12-15 Vincent Celier <celier@gnat.com>
38465
38466 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
38467 (Gnatchop): Do not set failure status when reporting the number of
38468 warnings.
38469
384702003-12-15 Doug Rupp <rupp@gnat.com>
38471
38472 * s-ctrl.ads: New file.
38473
38474 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
38475
38476 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
38477 (GNATBIND_OBJS): Add ada/s-crtl.o.
38478
38479 * Makefile.in [VMS]: Clean up ifeq rules.
38480
38481 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
38482 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
38483 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
38484 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
38485 s-tasdeb.adb: Update copyright.
38486 Import System.CRTL.
38487 Make minor modifications to use System.CRTL declared functions instead
38488 of importing locally.
38489
384902003-12-15 GNAT Script <nobody@gnat.com>
38491
38492 * Make-lang.in: Makefile automatically updated
38493
a9f4e3d2
AC
384942003-12-11 Ed Falis <falis@gnat.com>
38495
38496 * 5zinit.adb: Clean up.
38497
38498 * 5zintman.adb (Notify_Exception): replaced case statement with a call
38499 to __gnat_map_signal, imported from init.c to support
38500 signal -> exception mappings that depend on the vxWorks version.
38501
fbf3e0dd 38502 * init.c:
a9f4e3d2
AC
38503 Created and exported __gnat_map_signal to support signal -> exception
38504 mapping that is dependent on the VxWorks version.
38505 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
38506
385072003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
38508
38509 * 5wosinte.ads: Link with -mthreads switch.
38510
385112003-12-11 Arnaud Charlet <charlet@act-europe.fr>
38512
38513 * init.c (__gnat_install_handler [NetBSD]): Set
38514 __gnat_handler_installed, as done on all other platforms.
38515 Remove duplicated code.
38516
385172003-12-11 Jerome Guitton <guitton@act-europe.fr>
38518
38519 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
38520
385212003-12-11 Thomas Quinot <quinot@act-europe.fr>
38522
38523 * sinfo.ads: Fix inconsistent example code in comment.
38524
385252003-12-11 Robert Dewar <dewar@gnat.com>
38526
38527 * a-tiinau.adb: Add a couple of comments
38528
38529 * sem_ch3.adb: Minor reformatting
38530
fbf3e0dd 38531 * sem_prag.adb:
a9f4e3d2
AC
38532 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
38533 Minor reformatting throughout
38534
385352003-12-11 Ed Schonberg <schonberg@gnat.com>
38536
38537 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
38538 bounds of a loop, create a separate block in order to generate proper
38539 cleanup actions to prevent memory leaks.
38540
38541 * sem_res.adb (Resolve_Call): After a call to
38542 Establish_Transient_Scope, the call may be rewritten and relocated, in
38543 which case no further processing is needed.
38544
38545 * sem_util.adb: (Wrong_Type): Refine previous fix.
38546 Fixes ACATS regressions.
38547
38548 PR ada/13353
a9f4e3d2
AC
38549 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
38550 be inlined.
38551
c45b6ae0
AC
385522003-12-08 Jerome Guitton <guitton@act-europe.fr>
38553
38554 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
38555 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
38556 obsolete files.
38557
38558 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
38559 (rts-zfp): Ditto.
38560
385612003-12-08 Robert Dewar <dewar@gnat.com>
38562
38563 * 7sintman.adb: Minor reformatting
38564
38565 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
38566 standard linker options to get standard libraries linked. We now plan
38567 to provide dummy versions of these libraries to match the appropriate
38568 configurable run-time (e.g. if a library is not needed at all, provide
38569 a dummy empty library).
38570
38571 * targparm.ads: Configurable_Run_Time mode no longer affects linker
38572 options (-L parameters and standard libraries). What we plan to do is
38573 to provide dummy libraries where the libraries are not required.
38574
38575 * gnatbind.adb: Minor comment improvement
38576
385772003-12-08 Javier Miranda <miranda@gnat.com>
38578
38579 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
38580 aggregate in the parent. Otherwise constants with limited aggregates
38581 are not supported. Add new formal to pass the component type (Ctype).
38582 It is required to call the corresponding IP subprogram in case of
38583 default initialized components.
38584 (Gen_Assign): In case of default-initialized component, generate a
38585 call to the IP subprogram associated with the component.
38586 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
38587 of aggregate with default initialized components.
38588 (Has_Default_Init_Comps): Improve implementation to recursively check
38589 all the present expressions.
38590
38591 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
38592 to indicate that the initialization call corresponds to a
38593 default-initialized component of an aggregate.
38594 In case of default initialized aggregate with tasks this parameter is
38595 used to generate a null string (this is just a workaround that must be
38596 improved later). In case of discriminants, this parameter is used to
38597 generate a selected component node that gives access to the discriminant
38598 value.
38599
38600 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
38601 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
38602 allocated aggregates with default-initialized components.
38603
38604 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
38605 the box notation is used in positional aggregates.
38606
386072003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
38608
38609 * lib.ads: Fix typo in comment
38610
386112003-12-08 Vincent Celier <celier@gnat.com>
38612
38613 * prj.adb (Project_Empty): New component Unkept_Comments
38614 (Scan): Remove procedure; moved to Prj.Err.
38615
38616 * prj.ads (Project_Data): New Boolean component Unkept_Comments
38617 (Scan): Remove procedure; moved to Prj.Err.
38618
38619 * prj-dect.adb: Manage comments for the different declarations.
38620
38621 * prj-part.adb (With_Record): New component Node
38622 (Parse): New Boolean parameter Store_Comments, defaulted to False.
38623 Set the scanner to return ends of line and comments as tokens, if
38624 Store_Comments is True.
38625 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
38626 comments are associated with these nodes. Store the node IDs in the
38627 With_Records.
38628 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
38629 With_Records.
38630 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
38631 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
38632 current project. Call Tree.Restore afterwards. Set the various nodes
38633 for comment storage (Next_End, End_Of_Line, Previous_Line,
38634 Previous_End).
38635
38636 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
38637 defaulted to False.
38638
38639 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
38640 to False. When Truncated is True, truncate the string, never go to the
38641 next line.
38642 (Write_End_Of_Line_Comment): New procedure
38643 (Print): Process comments for nodes N_With_Clause,
38644 N_Package_Declaration, N_String_Type_Declaration,
38645 N_Attribute_Declaration, N_Typed_Variable_Declaration,
38646 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
38647 Process nodes N_Comment.
38648
38649 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
38650 without comments and there are some comments, set the flag
38651 Unkept_Comments to True.
38652 (Scan): If there are comments, set the flag Unkept_Comments to True and
38653 clear the comments.
38654 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
38655 (Next_End_Nodes: New table
38656 (Comment_Zones_Of): New function
38657 (Scan): New procedure; moved from Prj. Accumulate comments in the
38658 Comments table and set end of line comments, comments after, after end
38659 and before end.
38660 (Add_Comments): New procedure
38661 (Save, Restore, Seset_State): New procedures
38662 (There_Are_Unkept_Comments): New function
38663 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
38664 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
38665 procedures.
38666 (First_Comment_After, First_Comment_After_End): New functions
38667 (First_Comment_Before, First_Comment_Before_End): New functions
38668 (Next_Comment): New function
38669 (End_Of_Line_Comment, Follows_Empty_Line,
38670 Is_Followed_By_Empty_Line): New functions
38671 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
38672 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
38673 (Set_Next_Comment): New procedure
38674 (Default_Project_Node): Associate comment before if the node can store
38675 comments.
38676
38677 * scans.ads (Token_Type): New enumeration value Tok_Comment
38678 (Comment_Id): New global variable
38679
38680 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
38681 defaulted to False.
38682 (Scan): Store position of start of comment. If comments are tokens, set
38683 Comment_Id and set Token to Tok_Comment when scanning a comment.
38684 (Set_Comment_As_Token): New procedure
38685
38686 * sinput-p.adb: Update Copyright notice
38687 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
38688 that no longer exists.
38689
386902003-12-08 Javier Miranda <miranda@gnat.com>
38691
38692 * sem_aggr.adb: Add dependence on Exp_Tss package
38693 Correct typo in comment
38694 (Resolve_Aggregate): In case of array aggregates set the estimated
38695 type of the aggregate before calling resolve. This is needed to know
38696 the name of the corresponding IP in case of limited array aggregates.
38697 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
38698 in case of default initialized array components.
38699
38700 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
38701 types. Required to give support to limited aggregates in generic
38702 formals.
38703
387042003-12-08 Ed Schonberg <schonberg@gnat.com>
38705
38706 * sem_ch3.adb (Check_Initialization): For legality purposes, an
38707 inlined body functions like an instantiation.
38708 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
38709 until bounds are analyzed, to diagnose premature use of type.
38710
38711 * sem_util.adb (Wrong_Type): Improve error message when the type of
38712 the expression is used prematurely.
38713
387142003-12-08 GNAT Script <nobody@gnat.com>
38715
38716 * Make-lang.in: Makefile automatically updated
38717
0875a894
AC
387182003-12-08 Arnaud Charlet <charlet@act-europe.fr>
38719
7618d510
AC
38720 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
38721 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
38722 maintenance troubles.
38723
5b4994bc
AC
387242003-12-05 Thomas Quinot <quinot@act-europe.fr>
38725
38726 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
38727 version of this unit).
38728
387292003-12-05 Olivier Hainque <hainque@act-europe.fr>
38730
38731 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
38732 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
38733 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
38734 the body of System.Interrupt_Management common to several targets.
38735 Update copyright notice when appropriate.
38736
38737 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
38738 constant.
38739
38740 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
38741 to ensure that the kernel fills in the interrupted context structure
38742 before calling a signal handler, which is necessary to be able to
38743 unwind past it. Update the copyright notice.
38744
387452003-12-05 Jerome Guitton <guitton@act-europe.fr>
38746
38747 * a-elchha.ads: New file.
38748
38749 * a-elchha.adb: New default last chance handler. Contents taken from
38750 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
38751
38752 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
38753 is moved to a-elchha.adb to provide a target-independent default last
38754 chance handler.
38755
38756 * Makefile.rtl: Add a-elchha.o
38757
38758 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
38759
387602003-12-05 Ed Schonberg <schonberg@gnat.com>
38761
38762 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
38763 declared in an instance, do not inline the call if the instance is not
38764 frozen yet, to prevent order of elaboration problems.
38765
38766 * sem_prag.adb: Add comments for previous fix.
38767
387682003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
38769
38770 * g-table.adb: Use the right variable in Set_Item.
38771 Update copyright notice.
38772
387732003-12-05 Arnaud Charlet <charlet@act-europe.fr>
38774
38775 * Makefile.in: Remove unused rules.
38776
387772003-12-05 Vincent Celier <celier@gnat.com>
38778
38779 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
38780 -nostdlib. Not needed here after all.
38781
efdfd311
AC
387822003-12-03 Thomas Quinot <quinot@act-europe.fr>
38783
38784 PR ada/11724
fbf3e0dd 38785 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
38786 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
38787 on some platforms (including FreeBSD), it is a 64 bit value.
38788 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
38789
387902003-12-03 Arnaud Charlet <charlet@act-europe.fr>
38791
38792 * gnatvsn.ads (Library_Version): Now contain only the relevant
38793 version info.
38794 (Verbose_Library_Version): New constant.
38795
38796 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
38797 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
38798 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
38799
38800 * gnatlbr.adb: Clean up: replace Library_Version by
38801 Verbose_Library_Version.
38802
fbf3e0dd 38803 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
38804 Clean up: replace Library_Version by Verbose_Library_Version.
38805
38806 * 5lintman.adb: Removed.
38807
fbf3e0dd 38808 * Makefile.in:
efdfd311
AC
38809 Update and simplify computation of LIBRARY_VERSION.
38810 Fix computation of GSMATCH_VERSION.
38811 5lintman.adb is no longer used: replaced by 7sintman.adb.
38812
388132003-12-03 Robert Dewar <dewar@gnat.com>
38814
fbf3e0dd 38815 * exp_ch5.adb:
efdfd311
AC
38816 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
38817 name. Modified to consider small non-bit-packed arrays as troublesome
38818 and in need of component-by-component assigment expansion.
38819
388202003-12-03 Vincent Celier <celier@gnat.com>
38821
38822 * lang-specs.h: Process nostdlib as nostdinc
38823
38824 * back_end.adb: Update Copyright notice
38825 (Scan_Compiler_Arguments): Process -nostdlib directly.
38826
388272003-12-03 Jose Ruiz <ruiz@act-europe.fr>
38828
fbf3e0dd 38829 * Makefile.in:
efdfd311
AC
38830 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
38831 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
38832 included in HIE_NONE_TARGET_PAIRS.
38833
388342003-12-03 Ed Schonberg <schonberg@gnat.com>
38835
fbf3e0dd 38836 * sem_attr.adb:
efdfd311
AC
38837 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
38838 is legal in an instance, because legality is cheched in the template.
38839
fbf3e0dd 38840 * sem_prag.adb:
efdfd311
AC
38841 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
38842 appplied to an unchecked conversion of a formal parameter.
38843
fbf3e0dd 38844 * sem_warn.adb:
efdfd311
AC
38845 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
38846 variables.
38847
388482003-12-03 Olivier Hainque <hainque@act-europe.fr>
38849
38850 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
38851 routines. The second one is new functionality to deal with backtracing
38852 through signal handlers.
38853 (unwind): Split into the two separate subroutines above.
38854 Update the documentation, and deal properly with sizeof (REG) different
38855 from sizeof (void*).
38856
08aa9a4a
AC
388572003-12-01 Nicolas Setton <setton@act-europe.fr>
38858
38859 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
38860 so that the debugger can reliably access the value of the parameter,
38861 and therefore is able to display the exception name when an exception
38862 breakpoint is reached.
38863
388642003-12-01 Thomas Quinot <quinot@act-europe.fr>
38865
38866 * fmap.adb: Fix typo in warning message.
38867
38868 * g-socket.ads, g-socket.adb: Make Free a visible instance of
38869 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
38870
388712003-12-01 Vincent Celier <celier@gnat.com>
38872
38873 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
38874 ther is no Afile.
38875 (Build_Library): Get the switches only if Default_Switches is declared
38876 in package Binder.
38877
388782003-12-01 Ed Schonberg <schonberg@gnat.com>
38879
38880 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
38881 actuals that are indexed components, reanalyze actual to ensure that
38882 packed array references are properly expanded.
38883
38884 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
38885 attempted assignment to a discriminant.
38886
388872003-12-01 Robert Dewar <dewar@gnat.com>
38888
38889 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
38890 reformatting.
38891
38892 * switch-c.adb: Minor reformatting of comments
38893
388942003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38895
38896 * Makefile.in: Clean ups.
38897
388982003-12-01 GNAT Script <nobody@gnat.com>
38899
38900 * Make-lang.in: Makefile automatically updated
38901
c6135994
AC
389022003-12-01 Arnaud Charlet <charlet@act-europe.fr>
38903
38904 * 5wsystem.ads: Disable zero cost exception, not ready yet.
38905
51a30506
UW
389062003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
38907
38908 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
38909 to force serialization.
38910
81a5b587
AC
389112003-11-26 Thomas Quinot <quinot@act-europe.fr>
38912
fbf3e0dd 38913 * g-socket.ads, g-socket.adb:
81a5b587
AC
38914 Clarify documentation of function Stream. Introduce a Free procedure
38915 to release the returned Stream once it becomes unused.
38916
38917 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
38918
389192003-11-26 Arnaud Charlet <charlet@act-europe.fr>
38920
38921 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
38922 since NT 4 cannot handle timeout values that are too large,
38923 e.g. DWORD'Last - 1.
38924
389252003-11-26 Ed Schonberg <schonberg@gnat.com>
38926
fbf3e0dd 38927 * exp_ch4.adb:
81a5b587
AC
38928 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
38929 in procedure calls and whose expansion must be deferred.
38930
38931 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
38932 is in exp_ch4.
38933
fbf3e0dd 38934 * sem_ch3.adb:
81a5b587
AC
38935 (Build_Derived_Array_Type): Create operator for unconstrained type
38936 if ancestor is unconstrained.
38937
389382003-11-26 Vincent Celier <celier@gnat.com>
38939
38940 * make.adb (Project_Object_Directory): New global variable
38941 (Change_To_Object_Directory): New procedure
38942 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
38943 of Change_Dir directly. Do not change working directory to object
38944 directory of main project after each compilation.
38945 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
38946 directly.
38947 Change to object directory of main project before binding step.
38948 (Initialize): Initialize Project_Object_Directory to No_Project
38949
fbf3e0dd 38950 * mlib-prj.adb:
81a5b587
AC
38951 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
38952 binding a Stand-Alone Library.
38953
38954 * output.adb: Update Copyright notice
38955 (Write_Char): Output buffer when full
38956
389572003-11-26 Robert Dewar <dewar@gnat.com>
38958
38959 * sem_ch13.adb: (Check_Size): Reset size if size is too small
38960
fbf3e0dd 38961 * sem_ch13.ads:
81a5b587
AC
38962 (Check_Size): Fix documentation to include bit-packed array case
38963
38964 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
38965
38966 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
38967
38968 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
38969
9e94c78f 389702003-11-24 Arnaud Charlet <charlet@act-europe.fr>
d4c47b51
AC
38971
38972 PR ada/13142
38973 * utils.c (init_gigi_decls): Change name of built-in setjmp to
38974 __builtin_setjmp, since this is apparently needed by recent
38975 non Ada changes.
38976
7677e9e0
RO
389772003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38978
d4c47b51 38979 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
38980 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
38981
6c1e24d3
AC
389822003-11-24 Jose Ruiz <ruiz@act-europe.fr>
38983
fbf3e0dd 38984 * Makefile.in:
6c1e24d3
AC
38985 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
38986 signals and interrupts.
38987
38988 * 5zintman.ads: New File.
38989
38990 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
38991 add exception signals to the set of unmasked signals.
38992
fbf3e0dd 38993 * 5ztaprop.adb:
6c1e24d3
AC
38994 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
38995 between signals and interrupts.
38996 Add to Unblocked_Signal_Mask the set of signals that are in
38997 Keep_Unmasked.
38998
fbf3e0dd 38999 * 7sinmaop.adb:
6c1e24d3
AC
39000 Adding a check to see whether the Interrupt_ID we want to unmask is in
39001 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
39002 reason is that the index type of the Keep_Unmasked array is not always
39003 Interrupt_ID; it may be a subtype of Interrupt_ID.
39004
390052003-11-24 Gary Dismukes <dismukes@gnat.com>
39006
fbf3e0dd 39007 * exp_util.adb:
6c1e24d3
AC
39008 (Remove_Side_Effects): Condition constantness of object created for a
39009 an unchecked type conversion on the constantness of the expression
39010 to ensure the correct value for 'Constrained when passing components
39011 of view-converted class-wide objects.
39012
390132003-11-24 Robert Dewar <dewar@gnat.com>
39014
39015 * par-load.adb (Load): Improve handling of misspelled and missing units
39016 Removes several cases of compilation abandoned messages
39017
39018 * lib.adb: (Remove_Unit): New procedure
39019
39020 * lib.ads: (Remove_Unit): New procedure
39021
39022 * lib-load.adb: Minor reformatting
39023
390242003-11-24 Vincent Celier <celier@gnat.com>
39025
fbf3e0dd 39026 * make.adb:
6c1e24d3
AC
39027 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
39028 (Marking_Label): Label to mark processed source files. Incremented for
39029 each executable.
39030 (Gnatmake): Increase Marking_Labet for each executable
39031 (Is_Marked): Compare against marking label
39032 (Mark): Mark with marking label
39033
390342003-11-24 Jerome Guitton <guitton@act-europe.fr>
39035
fbf3e0dd 39036 * s-thread.ads:
6c1e24d3
AC
39037 Move the declaration of the TSD for System.Threads to System.Soft_Links.
39038 Add some comments.
39039
39040 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
39041 (rts-cert): build a single relocatable object for the run-time lib.
39042 Fix perms.
39043
390442003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
39045
fbf3e0dd 39046 * Make-lang.in:
6c1e24d3
AC
39047 Use gnatls rather than gcc to obtain the location of GNAT RTL for
39048 crosstools build.
39049
390502003-11-24 Sergey Rybin <rybin@act-europe.fr>
39051
39052 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
39053 can not use it as before (that is, as a variable) when dumping it into
39054 the tree file. Add a local variable to store the result of this
39055 function and to be used as the string to be written into the tree.
39056
39057 * scn.adb (Initialize_Scanner): Add comments explaining the recent
39058 changes.
39059
39060 * sinput.adb (Source_First, Source_Last): In case of
39061 Internal_Source_File, replace returning attributes of
39062 Internal_Source_Ptr (which is wrong) with returning attributes of
39063 Internal_Source.
39064
390652003-11-24 Ed Schonberg <schonberg@gnat.com>
39066
fbf3e0dd 39067 * sem_ch3.adb:
6c1e24d3
AC
39068 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
39069 used for implicit concatenation operators.
39070 Code cleanup.
39071
fbf3e0dd 39072 * sem_elab.adb:
6c1e24d3
AC
39073 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
39074 task bodies that are in the scope of a Suppress pragma.
39075 (Check_A Call): Use the flag to prevent spurious elaboration checks.
39076
fbf3e0dd 39077 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
39078 New flag No_Elaboration_Check on function/procedure calls, to properly
39079 suppress checks on calls in task bodies that are within a local suppress
39080 pragma.
39081
fbf3e0dd 39082 * exp_ch4.adb:
6c1e24d3
AC
39083 (Expand_Concatenate_Other): Use the proper integer type for the
39084 expression for the upper bound, to avoid universal_integer computations
39085 when possible.
39086
6f2aeb72
KC
390872003-11-21 Kelley Cook <kcook@gcc.gnu.org>
39088
39089 * .cvsignore: Delete.
39090
e9f85cd6
AS
390912003-11-21 Andreas Schwab <schwab@suse.de>
39092
39093 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
39094
4e074baf
VF
390952003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
39096
39097 * 5wsystem.ads: Enable zero cost exception.
39098
f1f9fe30
AC
390992003-11-21 Jerome Guitton <guitton@act-europe.fr>
39100
39101 * 5ztiitho.adb: Remove an unreferenced variable.
39102
391032003-11-21 Thomas Quinot <quinot@act-europe.fr>
39104
39105 * adaint.c: For FreeBSD, use mkstemp.
39106
391072003-11-21 Arnaud Charlet <charlet@act-europe.fr>
39108
39109 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
39110
391112003-11-21 Robert Dewar <dewar@gnat.com>
39112
39113 * bld.adb: Remove useless USE of gnatvsn
39114
39115 * gnatchop.adb: Minor reformatting
39116 Clean up version handling to be more consistent
39117
39118 * gnatxref.adb: Minor reformatting
39119
39120 * gprcmd.adb: Minor reformatting
39121 Fix output of copyright to be more consistent with other tools
39122
391232003-11-21 Vincent Celier <celier@gnat.com>
39124
39125 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
39126
391272003-11-21 Sergey Rybin <rybin@act-europe.fr>
39128
39129 * atree.adb (Initialize): Add initializations for global variables
39130 used in New_Copy_Tree.
39131
39132 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
39133 Internal_Source_File as the actual).
39134 Put the set of statements creating Any_Character before the set of
39135 statements creating Any_Array to have Any_Character fully initialized
39136 when it is used in creating Any_Array.
39137
39138 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
39139 not call Scan in case if the actual is Internal_Source_File
39140 Add 2003 to copyright note.
39141
39142 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
39143 processing Internal_Source_File.
39144
39145 * types.ads: Add the constant Internal_Source_File representing the
39146 source buffer for artificial source-code-like strings created within
39147 the compiler (the definition of Source_File_Index is changed).
39148
c5b2a8ae
AC
391492003-11-20 Arnaud Charlet <charlet@act-europe.fr>
39150
39151 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
39152 56system.ads: New file, FreeBSD version.
39153
a03ad584
JM
391542003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
39155
39156 * Make-lang.in (ada.extraclean): Delete.
39157
19f0526a
AC
391582003-11-19 Arnaud Charlet <charlet@act-europe.fr>
39159
39160 * gnatmem.adb: Clean up verbose output.
39161
39162 * gprcmd.adb: Change copyright to FSF.
39163
391642003-11-19 Vincent Celier <celier@gnat.com>
39165
39166 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
39167 and Version (ignored).
39168
39169 * symbols.ads: (Policy): New type
39170 (Initialize): New parameter Reference, Symbol_Policy and
39171 Library_Version.
39172 Remove parameter Force.
39173 Minor reformatting.
39174
39175 * snames.ads, snames.adbadb: New standard names
39176 Library_Reference_Symbol_File and Library_Symbol_Policy
39177
fbf3e0dd 39178 * mlib-prj.adb:
19f0526a
AC
39179 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
39180 project.
39181
fbf3e0dd 39182 * mlib-tgt.adb:
19f0526a
AC
39183 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
39184
39185 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
39186
39187 * prj.adb: (Project_Empty): New component Symbol_Data
39188
39189 * prj.ads: (Policy, Symbol_Record): New types
39190 (Project_Data): New component Symbol_Data
39191
fbf3e0dd 39192 * prj-attr.adb:
19f0526a
AC
39193 New attributes Library_Symbol_File, Library_Symbol_Policy and
39194 Library_Reference_Symbol_File.
39195
fbf3e0dd 39196 * prj-nmsc.adb:
19f0526a
AC
39197 (Ada_Check): When project is a Stand-Alone library project, process
39198 attribute Library_Symbol_File, Library_Symbol_Policy and
39199 Library_Reference_Symbol_File.
39200
39201 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39202 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
39203 5sml-tgt.adb (Build_Dynamic_Library): New parameter
39204 Symbol_Data (ignored).
39205
39206 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
39207 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
39208 functions Option_File_Name and Version_String. Set new options of
39209 gnatsym related to symbol file, symbol policy and reference symbol
39210 file.
39211
fbf3e0dd 39212 * 5vsymbol.adb:
19f0526a
AC
39213 Extensive modifications to take into account the reference symbol file,
39214 the symbol policy, the library version and to put in the symbol file the
39215 minor and major IDs.
39216
39217 * bld.adb (Process_Declarative_Items): Put second argument of
39218 gprcmd to_absolute between single quotes, to avoid problems with
39219 Windows.
39220
39221 * bld-io.adb: Update Copyright notice.
39222 (Flush): Remove last character of a line, if it is a back slash, to
39223 avoid make problems.
39224
fbf3e0dd 39225 * gnatsym.adb:
19f0526a
AC
39226 Implement new scheme with reference symbol file and symbol policy.
39227
39228 * g-os_lib.ads: (Is_Directory): Clarify comment
39229
392302003-11-19 Robert Dewar <dewar@gnat.com>
39231
39232 * atree.adb: Move New_Copy_Tree global variables to head of package
39233
39234 * errout.adb: Minor reformatting
39235
392362003-11-19 Javier Miranda <miranda@gnat.com>
39237
39238 * sem_ch4.adb: (Diagnose_Call): Improve error message.
39239 Add reference to Ada0Y (AI-50217)
39240
39241 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
39242 sem_util.adb: Add reference to AI-50217
39243
39244 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
39245
39246 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
39247
39248 * sem_aggr.adb: Complete documentation of AI-287 changes
39249
39250 * par-ch4.adb: Document previous changes.
39251
39252 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
39253 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
39254 Ada0Y (AI-50217)
39255
39256 * exp_aggr.adb: Add references to AI-287 in previous changes
39257
392582003-11-19 Ed Schonberg <schonberg@gnat.com>
39259
fbf3e0dd 39260 * exp_ch6.adb:
19f0526a
AC
39261 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
39262 in the rewriting is the result of an inlined call.
39263
39264 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
39265 parameter is a type conversion, use original node to construct the
39266 post-call assignment, because expression may have been rewritten, e.g.
39267 if it is a packed array.
39268
fbf3e0dd 39269 * sem_attr.adb:
19f0526a
AC
39270 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
39271 body, just as it is in an instance.
39272 Categorization routines
39273
39274 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
39275 Instantiate_Object): Set proper sloc reference for message on missing
39276 actual.
39277
392782003-11-19 Thomas Quinot <quinot@act-europe.fr>
39279
39280 * Makefile.in: Add FreeBSD libgnat pairs.
39281
39282 * usage.adb: Fix typo in usage message.
39283
392842003-11-19 Jerome Guitton <guitton@act-europe.fr>
39285
39286 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
39287 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
39288 pragma Thread_Body.
39289 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
39290
39291 * s-thread.adb: This file is now a dummy implementation of
39292 System.Thread.
39293
392942003-11-19 Sergey Rybin <rybin@act-europe.fr>
39295
39296 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
39297
392982003-11-19 Emmanuel Briot <briot@act-europe.fr>
39299
39300 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
39301 instanciation references in the parent type description.
39302
0d77ab84
AC
393032003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39304
39305 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
39306
39307 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
39308 TYPE_PRECISION directly from esize.
39309
393102003-11-18 Thomas Quinot <quinot@act-europe.fr>
39311
fbf3e0dd 39312 * cstreams.c:
0d77ab84
AC
39313 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
39314
39315 * init.c: Initialization routines for FreeBSD
39316
39317 * link.c: Link info for FreeBSD
39318
39319 * sysdep.c: Add the case of FreeBSD
39320
cb7a5092
AC
393212003-11-17 Jerome Guitton <guitton@act-europe.fr>
39322
39323 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
39324 already called in System.Threads.
39325
39326 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
39327 environment task, as it has been moved to System.Threads.Initialization.
39328
393292003-11-17 Arnaud Charlet <charlet@act-europe.fr>
39330
39331 * adaint.c (__gnatlib_install_locks): Only reference
39332 __gnat_install_locks on VMS, since other platforms can avoid using
39333 --enable-threads=gnat
39334
393352003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39336
39337 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
39338
39339 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
39340 TYPE_PACKED_ARRAY_TYPE_P.
39341 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
39342
39343 Part of PR ada/12806
39344 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
39345 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
39346
393472003-11-17 Vincent Celier <celier@gnat.com>
39348
39349 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
39350 to False.
39351 Do not set exit status to Failure when Warning is True.
39352 (Gnatchop): Make errors "no compilation units found" and
39353 "no source files written" warnings only.
39354
39355 * make.adb (Gnatmake): When using a project file, set
39356 Look_In_Primary_Dir to False.
39357 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
39358 and Local_Configuration_Pragmas in the project where they are declared
39359 not an extending project which might have inherited them.
39360
39361 * osint.adb (Locate_File): If Name is already an absolute path, do not
39362 look for a directory.
39363
39364 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
39365 -gnats (Check_Syntax) is used, issue only a warning, not an error.
39366
39367 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
39368 in objects of type Variable_Value.
39369
39370 * prj.ads: (Variable_Value): New component Project
39371
39372 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
39373 is in a project extended by Project.
39374
39375 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
39376 Project of Variable_Values to this new parameter value.
39377 (Expression): Set component Project of Variable_Values.
39378 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
39379 Set the component Project in array elements.
39380
393812003-11-17 Sergey Rybin <rybin@act-europe.fr>
39382
39383 * errout.adb: (Initialize): Add initialization for error nodes.
39384
39385 * sem_ch12.adb (Initialize): Add missing initializations for
39386 Exchanged_Views and Hidden_Entities.
39387
393882003-11-17 Ed Schonberg <schonberg@gnat.com>
39389
39390 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
39391 already instantiated tree for use in subsequent inlining.
39392 (Analyze_Associations, Instantiate_Formal_Subprogram,
39393 Instantiate_Object): improve error message for mismatch in
39394 instantiations.
39395
39396 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
39397 instantiations of subprograms declared in instances.
39398
393992003-11-17 Javier Miranda <miranda@gnat.com>
39400
39401 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
39402 executed only under the Extensions_Allowed flag.
39403
394042003-11-17 Robert Dewar <dewar@gnat.com>
39405
39406 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
39407 zeroes suppressed.
39408 (Address_Image): Fix bug of returning 0x instead of 0x0
39409 Minor reformatting (function specs).
39410
39411 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
39412 (missed case of 33-63)
39413
39414 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
39415
39416 * s-thread.adb: Add comments for pragma Restriction
39417
39418 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
39419 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
39420
394212003-11-17 Ed Falis <falis@gnat.com>
39422
39423 * s-thread.adb: Added No_Tasking restriction for this implementation.
39424
394252003-11-17 Emmanuel Briot <briot@act-europe.fr>
39426
39427 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
39428 instanciation references in the parent type description.
39429
394302003-11-17 GNAT Script <nobody@gnat.com>
39431
39432 * Make-lang.in: Makefile automatically updated
39433
7d60db05
JM
394342003-11-16 Jason Merrill <jason@redhat.com>
39435
39436 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
39437 and TAGS files that include them for each front end.
39438
c0040397
AJ
394392003-11-14 Andreas Jaeger <aj@suse.de>
39440
a477ab83 39441 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 39442 is the canonical version.
a477ab83
AJ
39443 * misc.c (gnat_handle_option): Likewise.
39444
c0040397
AJ
39445 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
39446
39447 * 5nsystem.ads: New file for x86_64-linux-gnu.
39448
95a6aaf9
AC
394492003-11-14 Arnaud Charlet <charlet@act-europe.fr>
39450
262cc585 39451 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 39452
4a4fe537
AC
39453 * comperr.adb: Fix logic in previous change.
39454
65356e64
AC
394552003-11-13 Vincent Celier <celier@gnat.com>
39456
39457 * 5bml-tgt.adb (Build_Dynamic_Library): Use
39458 Osint.Include_Dir_Default_Prefix instead of
39459 Sdefault.Include_Dir_Default_Name.
39460
39461 * gnatlbr.adb: Update Copyright notice
39462 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
39463 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
39464 instead of Sdefault.Object_Dir_Default_Name
39465
c0040397 39466 * gnatlink.adb:
65356e64
AC
39467 (Process_Binder_File): Never suppress the option following -Xlinker
39468
c0040397 39469 * mdll-utl.adb:
65356e64
AC
39470 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
39471 Sdefault.Object_Dir_Default_Name.
39472
c0040397 39473 * osint.ads, osint.adb:
65356e64
AC
39474 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
39475 Minor reformatting.
39476
39477 * vms_conv.ads: Minor reformating
39478 Remove GNAT STANDARD and GNAT PSTA
39479
c0040397 39480 * vms_conv.adb:
65356e64
AC
39481 Allow GNAT MAKE to have several files on the command line.
39482 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
39483 Sdefault.Object_Dir_Default_Name.
39484 Minor Reformating
39485 Remove data for GNAT STANDARD
39486
c0040397 39487 * vms_data.ads:
65356e64
AC
39488 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
39489 Remove data for GNAT STANDARD
39490 Remove options and documentation for -gnatwb/-gnatwB: these warning
39491 options no longer exist.
39492
394932003-11-13 Ed Falis <falis@gnat.com>
39494
39495 * 5zthrini.adb: (Init_RTS): Made visible
39496
c0040397 39497 * 5zthrini.adb:
65356e64
AC
39498 (Register): Removed unnecessary call to taskVarGet that checked whether
39499 an ATSD was already set as a task var for the argument thread.
39500
c0040397 39501 * s-thread.adb:
65356e64
AC
39502 Updated comment to reflect that this is a VxWorks version
39503 Added context clause for System.Threads.Initialization
39504 Added call to System.Threads.Initialization.Init_RTS
39505
395062003-11-13 Jerome Guitton <guitton@act-europe.fr>
39507
c0040397 39508 * 5zthrini.adb:
65356e64
AC
39509 (Init_RTS): New procedure, for the initialization of the run-time lib.
39510
c0040397 39511 * s-thread.adb:
65356e64
AC
39512 Remove dependancy on System.Init, so that this file can be used in the
39513 AE653 sequential run-time lib.
39514
395152003-11-13 Robert Dewar <dewar@gnat.com>
39516
39517 * bindgen.adb: Minor reformatting
39518
395192003-11-13 Ed Schonberg <schonberg@gnat.com>
39520
c0040397 39521 * checks.adb:
65356e64
AC
39522 (Apply_Discriminant_Check): Do no apply check if target type is derived
39523 from source type with no applicable constraint.
39524
c0040397 39525 * lib-writ.adb:
65356e64
AC
39526 (Ensure_System_Dependency): Do not apply the style checks that may have
39527 been specified for the main unit.
39528
c0040397 39529 * sem_ch8.adb:
65356e64
AC
39530 (Find_Selected_Component): Further improvement in error message, with
39531 RM reference.
39532
c0040397 39533 * sem_res.adb:
65356e64
AC
39534 (Resolve): Handle properly the case of an illegal overloaded protected
39535 procedure.
39536
395372003-11-13 Javier Miranda <miranda@gnat.com>
39538
c0040397 39539 * exp_aggr.adb:
65356e64
AC
39540 (Has_Default_Init_Comps): New function to check the presence of
39541 default initialization in an aggregate.
39542 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
39543 extension aggregate of a limited record. In addition, a new formal
39544 was added to do not initialize the record controller (if any) during
39545 this recursive expansion of ancestors.
39546 (Init_Controller): Add support for limited record components.
39547 (Expand_Record_Aggregate): In case of default initialized components
39548 convert the aggregate into a set of assignments.
39549
39550 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
39551 describing the new syntax.
39552 Nothing else needed to be done because this subprogram delegates part of
39553 its work to P_Precord_Or_Array_Component_Association.
39554 (P_Record_Or_Array_Component_Association): Give support to the new
39555 syntax for default initialization of components.
39556
c0040397 39557 * sem_aggr.adb:
65356e64
AC
39558 (Resolve_Aggregate): Relax the strictness of the frontend in case of
39559 limited aggregates.
39560 (Resolve_Record_Aggregate): Give support to default initialized
39561 components.
39562 (Get_Value): In case of default initialized components, duplicate
39563 the corresponding default expression (from the record type
39564 declaration). In case of default initialization in the *others*
39565 choice, do not check that all components have the same type.
39566 (Resolve_Extension_Aggregate): Give support to limited extension
39567 aggregates.
39568
c0040397 39569 * sem_ch3.adb:
65356e64
AC
39570 (Check_Initialization): Relax the strictness of the front-end in case
39571 of aggregate and extension aggregates. This test is now done in
39572 Get_Value in a per-component manner.
39573
39574 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
39575 expression corresponds to a limited aggregate. This test is now done
39576 in Get_Value.
39577
39578 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
39579 Box_Present flag.
39580
39581 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
39582 present in an N_Component_Association node
39583
395842003-11-13 Thomas Quinot <quinot@act-europe.fr>
39585
39586 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
39587 type-conformant entry only if they are homographs.
39588
395892003-11-13 GNAT Script <nobody@gnat.com>
39590
39591 * Make-lang.in: Makefile automatically updated
39592
49add53f
RO
395932003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39594
39595 * adadecode.c: Use <> form of include for ctype.h.
39596 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
39597
94bae1cc
RO
395982003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39599
39600 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
39601 Works around PR middle-end/6552.
39602
463f452c
AC
396032003-11-10 Ed Falis <falis@gnat.com>
39604
39605 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
39606
39607 * 5zinit.adb: (Install_Handler): Moved back to spec
39608 (Install_Signal_Handlers): Deleted
39609
39610 * 5zthrini.adb: Added context clause for System.Storage_Elements
39611 (Register): Only handles creation of taskVar; initialization moved to
39612 Thread_Body_Enter.
39613 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
39614 Added declaration of environment task secondary stack and
39615 initialization.
39616
39617 * s-thread.adb: Implement bodies for thread body processing
39618
c0040397 39619 * s-thread.ads:
463f452c
AC
39620 Added comment identifying supported targets for pragma Thread_Body.
39621
396222003-11-10 Pascal Obry <obry@gnat.com>
39623
39624 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
39625 GNAT_MAX_PATH_LEN.
39626
c0040397 39627 * s-fileio.adb:
463f452c
AC
39628 (Open): Properly check for string length before copying into the buffer.
39629 Raises Name_Error if buffer is too small. Note that this was a potential
39630 buffer overflow.
39631
396322003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
39633
39634 * bindgen.adb, comperr.adb: Code clean ups.
39635 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
39636
396372003-11-10 Sergey Rybin <rybin@act-europe.fr>
39638
39639 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
39640
396412003-11-10 Vincent Celier <celier@gnat.com>
39642
c0040397 39643 * gprcmd.adb:
463f452c
AC
39644 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
39645 installation.
39646
39647 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
39648
39649 * prj.adb: (Project_Empty): Add new boolean component Virtual
39650
39651 * prj.ads: (Virtual_Prefix): New constant string
39652 (Project_Data): New boolean component Virtual
39653
39654 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
39655 a library project is extended by a virtual extending project.
39656
c0040397 39657 * prj-part.adb:
463f452c
AC
39658 Modifications throughout to implement extending-all project, including:
39659 (Virtual_Hash, Processed_Hash): New hash tables
39660 (Create_Virtual_Extending_Project): New procedure
39661 (Look_For_Virtual_Projects_For): New procedure
39662
c0040397 39663 * prj-proc.adb:
463f452c
AC
39664 (Process): After checking the projects, if main project is an
39665 extending-all project, set the object directory of all virtual extending
39666 project to the object directory of the main project.
39667 Adjust error message when a virtual extending project has the same
39668 object directory as an project being extended.
39669 (Recursive_Process): If name starts with the virtual prefix, set Virtual
39670 to True in the project data.
39671
c0040397 39672 * prj-tree.adb:
463f452c
AC
39673 (Default_Project_Node): Add new boolean component Extending_All
39674 (Is_Extending_All): New function
39675 (Set_Is_Extending_All): New procedure
39676
39677 * prj-tree.ads: (Is_Extending_All): New function
39678 (Set_Is_Extending_All): New procedure
39679 (Project_Node_Record): New boolean component Extending_All
39680
39681 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
39682
c0040397 39683 * vms_data.ads:
463f452c
AC
39684 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
39685
39686 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
39687 "gprcmd prefix" to define it.
39688
396892003-11-10 Thomas Quinot <quinot@act-europe.fr>
39690
39691 * einfo.ads: Fix a typo and remove an extraneous word in comments.
39692
c0040397 39693 * lib-load.adb:
463f452c
AC
39694 (Create_Dummy_Package_Unit): Set the scope of the entity for the
39695 created dummy package to Standard_Standard, not to itself, to
39696 defend other parts of the front-end against encoutering a cycle in
39697 the scope chain.
39698
c0040397 39699 * sem_ch10.adb:
463f452c
AC
39700 (Analyze_With_Clause): When setting the entities for the successive
39701 N_Expanded_Names that constitute the name of a child unit, do not
39702 attempt to go further than Standard_Standard in the chain of scopes.
39703 This case arises from the placeholder units created by
39704 Create_Dummy_Package_Unit in the case of a with_clause for a
39705 nonexistent child unit.
39706
397072003-11-10 Ed Schonberg <schonberg@gnat.com>
39708
c0040397 39709 * exp_ch6.adb:
463f452c
AC
39710 (Expand_Thread_Body): Place subprogram on scope stack, so that new
39711 declarations are given the proper scope.
39712
c0040397 39713 * sem_ch13.adb:
463f452c
AC
39714 (Check_Expr_Constants): Reject an expression that contains a constant
39715 created during expansion, and that appears after the object to which
39716 the address clause applies.
39717
39718 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
39719 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
39720 that uses 'Range of a function call with controlled components, so
39721 that the function result can be finalized before starting the loop.
39722
c0040397 39723 * sem_ch8.adb:
463f452c
AC
39724 (Find_Selected_Component): Improve error message when prefix is
39725 an implicit dereference of an incomplete type.
39726
397272003-11-10 Robert Dewar <dewar@gnat.com>
39728
39729 * opt.ads: New Print_Standard flag for -gnatS switch
39730
39731 * sem_ch13.adb: Remove some additional checks for unaligned arrays
39732
39733 * cstand.adb (Create_Standard): Print out package standard if -gnatS
39734 switch set
39735
39736 * debug.adb: Update doc for -gnatds to discuss relationship with new
39737 -gnatS flag
39738
39739 * sinfo.adb: Add new field Entity_Or_Associated_Node
39740
39741 * sinfo.ads: Add new field Entity_Or_Associated_Node
39742 Update documentation for Associated_Node and Entity fields to clarify
39743 relationship and usage.
39744
c0040397 39745 * sprint.adb:
463f452c
AC
39746 (Write_Id): Properly process Associated_Node field in generic template
39747
c0040397 39748 * switch-c.adb:
463f452c
AC
39749 Recognize new -gnatS switch for printing package Standard
39750 This replaces gnatpsta
39751
c0040397 39752 * usage.adb:
463f452c
AC
39753 Add line for new -gnatS switch for printing package Standard
39754 This replaces gnatpsta
39755
c77c5f2e
AJ
397562003-11-10 Andreas Jaeger <aj@suse.de>
39757
39758 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
39759 integer.
39760
5c90f17f
AC
397612003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39762
39763 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
39764 by gnat1.
39765
139f0d1e
AC
397662003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39767
39768 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
39769 no longer needed.
39770
39771 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
39772
39773 * sysdep.c: Add handling of cygwin.
39774
f3e4c05c
GS
397752003-11-10 GNAT Script <nobody@gnat.com>
39776
39777 * Make-lang.in: Makefile automatically updated
39778
2cdc8909
AC
397792003-11-10 Arnaud Charlet <charlet@act-europe.fr>
39780
39781 PR 12950
39782 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
39783 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
39784 Replace GNAT_ROOT by GCC_ROOT.
39785
39786 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
39787
37783865
ZW
397882003-11-06 Zack Weinberg <zack@codesourcery.com>
39789
39790 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
39791 and update for changed meaning of GET_MODE_BITSIZE.
39792
6bc1c519
AC
397932003-11-04 Doug Rupp <rupp@gnat.com>
39794
39795 * sysdep.c: Problem discovered during IA64 VMS port.
39796 [VMS] #include <unixio.h> to get proper prototypes.
39797
37783865 39798 * adaint.c:
6bc1c519
AC
39799 Issues discovered/problems fixed during IA64 VMS port.
39800 [VMS] #define _POSIX_EXIT for proper semantics.
39801 [VMS] #include <unixio.h> for proper prototypes.
39802 [VMS] (fork): #define IA64 version.
39803 (__gnat_os_exit): Remove unnecessary VMS specific code.
39804
398052003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39806
39807 Part of PR ada/12806
6bc1c519
AC
39808 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
39809 tree, not integer.
39810
37783865 39811 * decl.c:
6bc1c519
AC
39812 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
39813 not integer.
39814
39815 * targtyps.c, decl.c, misc.c,
39816 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
39817 routines to work around change in FP sizing semantics in GCC.
39818
37783865 39819 * utils.c:
6bc1c519
AC
39820 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
39821
39822 * gigi.h: (enumerate_modes): New function.
39823
39824 * Make-lang.in: (ada/misc.o): Add real.h.
39825
39826 * misc.c: (enumerate_modes): New function.
39827
398282003-11-04 Robert Dewar <dewar@gnat.com>
39829
39830 * 3vtrasym.adb: Minor reformatting
39831 Use terminology encoded/decoded name, rather than C++ specific notion
39832 of mangling (this is the terminology used throughout GNAT).
39833
39834 * einfo.h: Regenerated
39835
39836 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
39837
37783865 39838 * exp_ch6.adb:
6bc1c519
AC
39839 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
39840
39841 * par-prag.adb: Add dummy entry for Thread_Body pragma
39842
37783865 39843 * rtsfind.ads:
6bc1c519
AC
39844 Add entries for System.Threads entities for thread body processing
39845
37783865 39846 * sem_attr.adb:
6bc1c519
AC
39847 (Analyze_Pragma, Access attributes): Check these are not applied to a
39848 thread body, since this is not permitted
39849
39850 * sem_prag.adb: Add processing for Thread_Body pragma.
39851 Minor comment fix.
39852
37783865 39853 * sem_res.adb:
6bc1c519
AC
39854 (Resolve_Call): Check for incorrect attempt to call a thread body
39855 procedure with a direct call.
39856
39857 * snames.ads, snames.adb: Add entry for Thread_Body pragma
39858 Add names associated with thread body expansion
39859
39860 * snames.h: Add entry for Thread_Body pragma
39861
39862 * s-thread.adb: Add entries for thread body processing
39863 These are dummy bodies so far
39864
39865 * s-thread.ads: Add documentation on thread body handling.
39866 Add entries for thread body processing.
39867
398682003-11-04 Javier Miranda <miranda@gnat.com>
39869
37783865 39870 * sem_ch10.adb:
6bc1c519
AC
39871 (Build_Limited_Views): Return after posting an error in case of limited
39872 with_clause on subprograms, generics, instances or generic renamings
39873 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
39874 on subprograms, generics, instances or generic renamings
39875
398762003-11-04 Arnaud Charlet <charlet@act-europe.fr>
39877
39878 * raise.c (setup_to_install): Correct mistake in last revision; two
39879 arguments out of order.
39880
39881 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
39882 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
39883 notice, missed in previous change.
39884 Remove trailing blanks and other style errors introduced in previous
39885 change.
39886
398872003-11-04 Olivier Hainque <hainque@act-europe.fr>
39888
39889 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
39890 rid of the wrapper for a LJM type, ensuring we don't do that if the
39891 field is addressable. This avoids potential low level type view
39892 mismatches later on, for instance in a by-reference argument passing
39893 process.
39894
398952003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39896
39897 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
39898 aligned at byte boundary.
39899
399002003-11-04 Joel Brobecker <brobecker@gnat.com>
39901
39902 * decl.c (components_to_record): Do not delete the empty variants from
39903 the end of the union type.
39904
399052003-11-04 Ed Schonberg <schonberg@gnat.com>
39906
39907 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
39908 operation for a derived type, an explicit declaration may use a local
39909 subtype of Boolean.
39910
399112003-11-04 Vincent Celier <celier@gnat.com>
39912
39913 * make.adb (Gnatmake): Allow main sources on the command line with a
39914 library project when it is only for compilation (no binding or
39915 linking).
39916
487e9fff
RO
399172003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39918
39919 * Makefile.in: Remove many duplicate variables.
39920
63069342
KC
399212003-11-03 Kelley Cook <kcook@gcc.gnu.org>
39922
39923 * Make-lang.in (dvi): Move targets to $(docobjdir).
39924 (gnat_ug_vms.dvi): Simplify rule and adjust target.
39925 (gnat_ug_wnt.dvi): Likewise.
39926 (gnat_ug_unx.dvi): Likewise.
39927 (gnat_ug_vxw.dvi): Likewise.
39928 (gnat_rm.dvi): Likewise.
39929 (gnat-style.dvi): Likewise.
39930
c2edc52b
KC
399312003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39932
39933 * gigi.h: Missed commit from update for C90.
39934
14df9585
KC
399352003-10-31 Kelley Cook <kcook@gcc.gnu.org>
39936
39937 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
39938
acd8e984
AS
399392003-10-31 Andreas Schwab <schwab@suse.de>
39940
39941 * raise.c (get_action_description_for): Fix typo in last change.
39942
b2c62c45
NN
399432003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
39944
39945 PR ada/12761
39946 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
39947 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
39948
9373164a
KC
399492003-10-30 Kelley Cook <kcook@gcc.gnu.org>
39950
39951 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
39952 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
39953 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
39954 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
39955 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
39956
bde58e32
AC
399572003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
39958
37783865 39959 * 3vtrasym.adb:
bde58e32
AC
39960 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
39961 numbers when symbol name is too long.
39962
399632003-10-30 Ed Falis <falis@gnat.com>
39964
39965 * g-signal.ads, g-signal.adb: New files
39966
39967 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
39968
39969 * Makefile.rtl: Introduce GNAT.Signals
39970
399712003-10-30 Robert Dewar <dewar@gnat.com>
39972
39973 * freeze.adb: Minor reformatting
39974
39975 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
39976
37783865
ZW
39977 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
39978 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
39979 New handling of Id_Check parameter to improve recognition of keywords
39980 used as identifiers.
39981 Update copyright notice to include 2003
39982
657a9dd9
AC
399832003-10-29 Robert Dewar <dewar@gnat.com>
39984
39985 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
39986 sem_ch10.adb: Minor reformatting
39987
39988 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
39989 (Expand_Assign_Record): Test right hand side for bit unaligned as well
39990
399912003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
39992
37783865 39993 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
39994 Support for TBK$SYMBOLIZE-based symbolic traceback.
39995
399962003-10-29 Jose Ruiz <ruiz@act-europe.fr>
39997
37783865 39998 * exp_disp.adb:
657a9dd9
AC
39999 Revert previous change, that did not work well when pragma No_Run_Time
40000 was used in conjunction with a run-time other than ZFP.
40001
400022003-10-29 Vincent Celier <celier@gnat.com>
40003
37783865 40004 * make.adb:
657a9dd9
AC
40005 (Gnatmake): When there are no Ada mains in attribute Main, disable the
40006 bind and link steps only is switch -z is not used.
40007
400082003-10-29 Arnaud Charlet <charlet@act-europe.fr>
40009
40010 * Makefile.generic: Remove duplicated setting of CC.
40011
40012 * Makefile.prolog: Set CC to gcc by default, to override make's
40013 default (cc).
40014
40015 * einfo.h: Regenerated.
40016
400172003-10-29 Ed Schonberg <schonberg@gnat.com>
40018
40019 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
40020 current body, after compiling subunit.
40021
40022 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
40023 when in deleted code, because gigi needs properly ordered freeze
40024 actions to annotate types.
40025
40026 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
40027 prevent the premature freezing of record type that contains
40028 subcomponents with a private type that does not yet have a completion.
40029
400302003-10-29 Javier Miranda <miranda@gnat.com>
40031
37783865 40032 * sem_ch12.adb:
657a9dd9
AC
40033 (Analyze_Package_Instantiation): Check that instances can not be used in
40034 limited with_clauses.
40035
37783865 40036 * sem_ch8.adb:
657a9dd9
AC
40037 (Analyze_Package_Renaming): Check that limited withed packages cannot
40038 be renamed. Improve text on error messages related to limited
40039 with_clauses.
40040
40041 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
40042
40043 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
40044 Update copyright notice.
40045
40046 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
40047 (Install_Limited_Context_Clauses): New subprogram that isolates all the
40048 checks required for limited context_clauses and installs the limited
40049 view.
40050 (Install_Limited_Withed_Unit): Complete its documentation.
40051 (Analyze_Context): Check that limited with_clauses are only allowed in
40052 package specs.
40053 (Install_Context): Call Install_Limited_Context_Clauses after the
40054 parents have been installed.
40055 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
40056 package as 'From_With_Type'; this mark indicates that the limited view
40057 is installed. Used to check bad usages of limited with_clauses.
40058 (Build_Limited_Views): Do not add shadow entities to the scope's list
40059 of entities. Do not add real entities to the Non_Limited_Views chain.
40060 Improve error notification.
40061 (Remove_Context_Clauses): Remove context clauses in two phases:
40062 limited views first and regular views later (to maintain the
40063 stack model).
40064 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
40065 its visible entities.
40066
400672003-10-29 Thomas Quinot <quinot@act-europe.fr>
40068
40069 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
40070 with any type that Is_Fixed_Point_Type.
40071
40072 * sinfo.ads: Fix documentation for Associated_Node attribute.
40073
400742003-10-29 Sergey Rybin <rybin@act-europe.fr>
40075
40076 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
40077 both '-gnatc' and '-gnatt' are specified.
40078
40079 * atree.adb (Initialize): Add initialization for Node_Count (set to
40080 zero).
40081
400822003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40083
40084 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
40085 do not consider as Pure.
40086
40087 Part of implementation of function-at-a-time:
40088
40089 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
40090 (tree_transform): Add new argument to build_component_ref.
40091 (tree_transform, case N_Assignment_Statement): Make and return an
40092 EXPR_STMT.
40093 (tree_transform): If result IS_STMT, set flags and return it.
40094 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
40095
40096 * utils2.c (build_simple_component_ref, build_component_ref): Add new
40097 arg, NO_FOLD_P.
40098 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
40099 (build_allocator): Likewise.
40100
40101 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
40102 Add new arg to build_component_ref.
40103 (maybe_unconstrained_array, unchecked_convert): Likewise.
40104
40105 * ada-tree.def (EXPR_STMT): New code.
40106
40107 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
40108
40109 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
40110 build_component_ref calls.
40111
40112 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
40113
40114 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
40115 (build_component_ref): Add new argument, NO_FOLD_P.
40116
ecad994d
AC
401172003-10-27 Arnaud Charlet <charlet@act-europe.fr>
40118
40119 * Makefile.generic: Add missing substitution on object_deps handling.
40120
6f7f72f9 40121 PR ada/5909
ecad994d
AC
40122 * Make-lang.in (check-ada): Enable ACATS test suite.
40123
401242003-10-27 Robert Dewar <dewar@gnat.com>
40125
37783865 40126 * exp_ch3.adb:
ecad994d
AC
40127 (Freeze_Array_Type): We do not need an initialization routine for types
40128 derived from String or Wide_String. They should be treated the same
40129 as String and Wide_String themselves. This caused problems with the
40130 use of Initialize_Scalars.
40131
37783865 40132 * exp_ch5.adb:
ecad994d
AC
40133 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
40134 composites. This allows use of component clauses that are not byte
40135 aligned.
40136
37783865 40137 * sem_prag.adb:
ecad994d
AC
40138 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
40139 is an attempt to pack an array of atomic objects.
40140
40141 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
40142
401432003-10-27 Pascal Obry <obry@gnat.com>
40144
37783865 40145 * g-dirope.adb:
ecad994d
AC
40146 (Basename): Check for drive letters in a pathname only on DOS based OS.
40147
401482003-10-27 Vincent Celier <celier@gnat.com>
40149
37783865 40150 * make.adb:
ecad994d
AC
40151 (Gnatmake): When unable to change dir to the object dir, display the
40152 content of the parent dir of the obj dir, to try to understand why this
40153 happens.
40154
401552003-10-27 GNAT Script <nobody@gnat.com>
40156
40157 * Make-lang.in: Makefile automatically updated
40158
401592003-10-27 Ed Schonberg <schonberg@gnat.com>
40160
37783865 40161 * sem_ch12.adb:
ecad994d
AC
40162 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
40163 should not be done in Save/Restore_Scope_Stack, because it is performed
40164 locally.
40165
37783865 40166 * sem_ch8.adb:
ecad994d
AC
40167 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
40168 whether use clauses should be removed/restored.
40169
37783865 40170 * sem_ch8.ads:
ecad994d
AC
40171 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
40172 whether use clauses should be removed/restored.
40173
b6b3c138
AJ
401742003-10-26 Andreas Jaeger <aj@suse.de>
40175
40176 * Makefile.in: Remove duplicated lines.
40177
b6d83931
AC
401782003-10-24 Arnaud Charlet <charlet@act-europe.fr>
40179
40180 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
40181 minimize the differences with ACT tree.
40182
40183 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
40184 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
40185 Gnatvsn.Gnat_Static_Version_String to reduce differences between
40186 ACT and FSF trees.
40187
401882003-10-24 Pascal Obry <obry@gnat.com>
40189
6f7f72f9 40190 PR ada/12014
b6d83931
AC
40191 * adadecode.c (ostrcpy): New function.
40192 (__gnat_decode): Use ostrcpy of strcpy.
40193 (has_prefix): Set first parameter a const.
40194 (has_suffix): Set first parameter a const.
40195 Update copyright notice. Fix source name in header.
40196 Removes a trailing space.
b6d83931
AC
40197
401982003-10-24 Jose Ruiz <ruiz@act-europe.fr>
40199
b6b3c138 40200 * exp_disp.adb:
b6d83931
AC
40201 Remove the test against being in No_Run_Time_Mode before generating a
40202 call to Register_Tag. It is redundant with the test against the
40203 availability of the function Register_Tag.
40204
402052003-10-24 Vincent Celier <celier@gnat.com>
40206
40207 * g-catiio.adb: (Month_Name): Correct spelling of February
40208
40209 * make.adb: (Mains): New package
40210 (Initialize): Call Mains.Delete
40211 (Gnatmake): Check that each main on the command line is a source of a
40212 project file and, if there are several mains, each of them is a source
40213 of the same project file.
40214 (Gnatmake): When a foreign language is specified in attribute Languages,
40215 no main is specified on the command line and attribute Mains is not
40216 empty, only build the Ada main. If there is no Ada main, just compile
40217 the Ada sources and their closure.
40218 (Gnatmake): If a main is specified on the command line with directory
40219 information, check that the source exists and, if it does, that the path
40220 is the actual path of a source of a project.
40221
b6b3c138 40222 * prj-env.adb:
b6d83931
AC
40223 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
40224 Full_Path is True, return the full path instead of the simple file name.
40225 (Project_Of): New function
40226
b6b3c138 40227 * prj-env.ads:
b6d83931
AC
40228 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
40229 defaulted to False.
40230 (Project_Of): New function
40231
402322003-10-24 Arnaud Charlet <charlet@act-europe.fr>
40233
b6b3c138 40234 * Makefile.generic:
b6d83931
AC
40235 Ensure objects of main project are always checked and rebuilt if needed.
40236 Set CC to gcc by default.
40237 Prepare new handling of link by creating a global archive (not activated
40238 yet).
40239
40240 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
40241 stringt.h: Update copyright notice. Remove trailing blanks.
40242 Fix source name in header.
40243
402442003-10-24 Robert Dewar <dewar@gnat.com>
40245
40246 * sem_ch12.adb: Minor reformatting
40247
b6b3c138 40248 * sem_ch3.adb:
b6d83931
AC
40249 Minor reformatting (including new function return style throughout)
40250
b6b3c138 40251 * sem_ch3.ads:
b6d83931
AC
40252 Minor reformatting (including new function return style throughout)
40253
402542003-10-24 Arnaud Charlet <charlet@act-europe.fr>
40255
40256 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
40257 stringt.h: Update copyright notice. Remove trailing blanks.
40258 Fix source name in header.
40259
402602003-10-24 GNAT Script <nobody@gnat.com>
40261
40262 * Make-lang.in: Makefile automatically updated
40263
b4e2d709
NN
402642003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
40265
40266 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
40267 stringt.h: Convert to ISO C90 declarations and definitions.
40268
9d7d51be
AC
402692003-10-23 Thomas Quinot <quinot@act-europe.fr>
40270
6f7f72f9 40271 PR ada/11978
9d7d51be
AC
40272 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
40273 External_Tag attribute definition clauses.
40274
402752003-10-23 Ed Schonberg <schonberg@gnat.com>
40276
6f7f72f9 40277 PR ada/7613
9d7d51be
AC
40278 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
40279 child unit, generate a fully qualified name to avoid spurious errors
40280 when the context contains renamings of different child units with
40281 the same simple name.
40282
40283 * exp_dbug.ads: Add documentation on name qualification for renamings
40284 of child units.
40285
402862003-10-23 Robert Dewar <dewar@gnat.com>
40287
40288 * g-regpat.ads, g-regpat.adb: Minor reformatting
40289
402902003-10-23 Jose Ruiz <ruiz@act-europe.fr>
40291
40292 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
40293
402942003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40295
40296 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
40297 Machine call.
40298
40299 * urealp.h: (Machine): Update to proper definition.
40300
6d244bbe
AC
403012003-10-23 Arnaud Charlet <charlet@act-europe.fr>
40302
40303 * init.c, adaint.c: Minor reformatting.
40304
8f4eb34b
DS
403052003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
40306
6d244bbe 40307 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
40308 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
40309 rather than t_create, t_access in call to GetFileTime. Use union
40310 to convert between FILETIME and unsigned long long.
40311 (__gnat_file_time_name): Test for invalid file handle.
40312 (__gnat_set_filetime_name): Support win32 targets using
40313 w32api SetFileTime.
40314
25412599
DS
403152003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
40316
40317 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
40318
40319 * ctrl_c.c (__gnat_int_handler): Remove declaration.
40320
40321 * decl.c (creat_concat_name): Const-ify prefix.
40322
40323 * adaint.c: Include ctype.h if __MINGW32__.
40324 (__gnat_readlink): Mark arguments as possibly unused.
40325 (__gnat_symlink): Likewise.
40326 (__gnat_is_symbolic_link): Likewise.
40327 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
40328 declaration
b6b3c138 40329 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
40330 not needed.
40331 (__gnat_is_absolute_path): Add parenthesis around condition of
40332 'if' statement to avoid warning.
40333 (__gnat_plist_init): Specify void as parameter.
40334 (plist_enter): Likewise.
40335 (plist_leave): Likewise.
40336 (remove_handle): Make static. Initialize prev.
40337
698a5e79
AC
403382003-10-22 Arnaud Charlet <charlet@act-europe.fr>
40339
6f7f72f9
EB
40340 PR ada/10110
40341 * Makefile.in: Disable build of gnatpsta.
698a5e79
AC
40342 * cstreams.c (__gnat_full_name): Minor improvements and clean up
40343 of previous change.
40344
e97c30aa
RO
403452003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40346
40347 * tracebak.c (MAX): Avoid redefinition warning.
40348
40349 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
40350 Change msg to const char *.
40351 (__gnat_install_handler): Remove ss, unused.
40352 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
40353 to const char *.
40354 * cstreams.c (__gnat_full_name): Declare p only when used.
40355 (__gnat_full_name) [sgi] Return buffer.
40356
65f1ebd1
AC
403572003-10-22 Arnaud Charlet <charlet@act-europe.fr>
40358
40359 * mingw32.h: New file.
0c644933
AC
40360 * gnat_wrapper.adb: New file.
40361
6d244bbe 403622003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
40363
40364 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
40365 string match a pre compiled regular expression (the corresponding
40366 version of the function working on a raw regular expression)
40367 Fix typos in various comments
40368 Update copyright notice in spec
40369
6d244bbe 403702003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 40371
b6b3c138 40372 * exp_ch3.adb:
0c644933
AC
40373 (Component_Needs_Simple_Initialization): Return False when the type is a
40374 packed bit array. Revise spec comments to document this case.
40375
b6b3c138 40376 * exp_prag.adb:
0c644933
AC
40377 (Expand_Pragma_Import): Set any expression on the imported object to
40378 empty to avoid initializing imported objects (in particular this
40379 covers the case of zero-initialization of bit arrays).
40380 Update copyright notice.
40381
6d244bbe 403822003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 40383
b6b3c138 40384 * sem_ch12.adb:
0c644933
AC
40385 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
40386 a subunit is missing.
40387 (Instantiate_Subprogram_Body): If body of function is missing, set type
40388 of return expression explicitly in dummy body, to prevent cascaded
40389 errors when a subunit is missing.
40390 Fixes PR 5677.
40391
b6b3c138 40392 * sem_ch3.adb:
0c644933
AC
40393 (Access_Subprogram_Declaration): Verify that return type is valid.
40394 Fixes PR 8693.
40395
b6b3c138 40396 * sem_elab.adb:
0c644933
AC
40397 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
40398 generic.
40399 Fixes PR 12318.
40400
b6b3c138 40401 * sem_util.adb:
0c644933
AC
40402 (Corresponding_Discriminant): If the scope of the discriminant is a
40403 private type without discriminant, use its full view.
40404 Fixes PR 8247.
65f1ebd1 40405
fbf5a39b
AC
404062003-10-21 Arnaud Charlet <charlet@act-europe.fr>
40407
40408 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
40409 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
40410 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
40411 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
40412 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
40413 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
40414 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
40415 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
40416 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
40417 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
40418 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
40419 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
40420 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
40421 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
40422 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
40423 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
40424 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
40425 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
40426 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
40427 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
40428 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
40429 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
40430 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
40431 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
40432 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
40433 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
40434 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
40435 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
40436 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
40437 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
40438 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
40439 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
40440 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
40441 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
40442 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
40443 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
40444 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
40445 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
40446 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
40447 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
40448 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
40449 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
40450 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
40451 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
40452 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
40453 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
40454 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
40455 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
40456 vms_conv.ads, vms_conv.adb, vms_data.ads,
40457 vxaddr2line.adb: Files added. Merge with ACT tree.
40458
40459 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
40460 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
40461 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
40462 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
40463 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
40464 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
40465 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40466 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
40467 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
40468 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
40469
40470 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40471 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40472 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40473 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40474 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
40475 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
40476 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40477 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
40478 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
40479 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
40480 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
40481 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
40482 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
40483 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
40484 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
40485 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
40486 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
40487 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40488 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
40489 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
40490 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
40491 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
40492 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
40493 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
40494 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
40495 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
40496 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
40497 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
40498 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
40499 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
40500 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
40501 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
40502 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
40503 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
40504 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
40505 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
40506 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
40507 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
40508 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
40509 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
40510 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
40511 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
40512 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
40513 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
40514 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
40515 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
40516 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
40517 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
40518 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
40519 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
40520 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
40521 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
40522 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
40523 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
40524 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
40525 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
40526 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
40527 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
40528 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
40529 checks.adb, checks.ads, cio.c, comperr.adb,
40530 comperr.ads, csets.adb, cstand.adb, cstreams.c,
40531 debug_a.adb, debug_a.ads, debug.adb, decl.c,
40532 einfo.adb, einfo.ads, errout.adb, errout.ads,
40533 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
40534 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
40535 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
40536 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
40537 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
40538 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
40539 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
40540 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
40541 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
40542 fe.h, fmap.adb, fmap.ads, fname.adb,
40543 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
40544 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
40545 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
40546 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40547 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40548 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40549 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
40550 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
40551 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
40552 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
40553 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
40554 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
40555 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
40556 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
40557 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
40558 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
40559 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
40560 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
40561 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
40562 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
40563 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
40564 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
40565 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
40566 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
40567 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
40568 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
40569 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
40570 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
40571 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
40572 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
40573 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
40574 layout.adb, lib.adb, lib.ads, lib-list.adb,
40575 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
40576 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40577 link.c, live.adb, make.adb, make.ads,
40578 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
40579 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
40580 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
40581 misc.c, mkdir.c, mlib.adb, mlib.ads,
40582 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
40583 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
40584 namet.adb, namet.ads, namet.h, nlists.ads,
40585 nlists.h, nmake.adt, opt.adb, opt.ads,
40586 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
40587 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
40588 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40589 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
40590 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
40591 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
40592 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
40593 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
40594 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
40595 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
40596 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
40597 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
40598 prj-util.adb, prj-util.ads, raise.c, raise.h,
40599 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
40600 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
40601 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
40602 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
40603 scans.ads, scn.adb, scn.ads, s-crc32.adb,
40604 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
40605 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
40606 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
40607 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
40608 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
40609 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40610 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40611 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
40612 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
40613 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
40614 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
40615 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
40616 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
40617 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
40618 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40619 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
40620 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
40621 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
40622 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
40623 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
40624 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
40625 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
40626 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
40627 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
40628 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
40629 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
40630 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
40631 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
40632 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
40633 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
40634 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
40635 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
40636 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
40637 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
40638 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
40639 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
40640 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
40641 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
40642 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
40643 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
40644 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
40645 stringt.adb, stringt.ads, stringt.h, style.ads,
40646 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
40647 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
40648 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
40649 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
40650 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
40651 table.adb, table.ads, targparm.adb, targparm.ads,
40652 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
40653 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
40654 ttypes.ads, types.ads, types.h, uintp.adb,
40655 uintp.ads, uintp.h, uname.adb, urealp.adb,
40656 urealp.ads, urealp.h, usage.adb, utils2.c,
40657 utils.c, validsw.adb, validsw.ads, widechar.adb,
40658 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
40659 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
40660 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
40661 gnatvsn.ads: Merge with ACT tree.
40662
40663 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
40664
97ae108d
MM
406652003-10-20 Mark Mitchell <mark@codesourcery.com>
40666
de696511
MM
40667 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
40668 (gnat_ug_vmx.info): Likewise.
40669 (gnat_ug_vxw.info): Likewise.
40670 (gnat_ug_wnt.info): Likewise.
40671 (gnat_rm.info): Likewise.
40672 (gnat-style.info): Likewise.
40673
97ae108d
MM
40674 * Make-lang.in (ada.install-info): Remove target.
40675 (info): New target.
40676 (install-info): Likewise.
40677 (gnat_ug_unx.info): Simplify rule.
40678 (gnat_ug_vmx.info): Likewise.
40679 (gnat_ug_vxw.info): Likewise.
40680 (gnat_ug_wnt.info): Likewise.
40681 (gnat_rm.info): Likewise.
40682 (gnat-style.info): Likewise.
40683
43aba518
NN
406842003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
40685
40686 * Make-lang.in: Replace uses of $(target_alias) with
40687 $(target_noncanonical).
40688 * ada/Makefile.in: Remove unused mention of $(target_alias).
40689
62b81e45
MM
406902003-10-06 Mark Mitchell <mark@codesourcery.com>
40691
40692 * Make-lang.in (ada.info): Replace with ...
40693 (info): ... this.
40694 (ada.dvi): Replace with ...
40695 (dvi): ... this.
40696
783be936
ZW
406972003-09-29 Zack Weinberg <zack@codesourcery.com>
40698
40699 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
40700 initialize dconstp5 and dconstmp5.
40701
177560b2
RH
407022003-09-28 Richard Henderson <rth@redhat.com>
40703
40704 * trans.c (tree_transform): Update call to expand_asm_operands.
40705
f31686a3
RH
407062003-09-21 Richard Henderson <rth@redhat.com>
40707
40708 * trans.c, utils.c: Revert.
40709
7e2af53a
RH
407102003-09-21 Richard Henderson <rth@redhat.com>
40711
40712 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
40713 change to const.
40714
5f1e32fa
MM
407152003-09-04 Michael Matz <matz@suse.de>
40716
40717 * misc.c: Include "target.h".
40718 * Make-lang.in (misc.o): Add dependency on target.h.
40719
61f71b34
DD
407202003-09-03 DJ Delorie <dj@redhat.com>
40721
40722 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
40723 hook.
40724
2ed26f6b
ZW
407252003-08-30 Zack Weinberg <zack@codesourcery.com>
40726
40727 * Makefile.in: Update substitutions to match changes to
40728 configure. Use include directives instead of @-insertions
40729 to read in host and target fragments. Add a rule to
40730 regenerate ada/Makefile.
40731
b2e608ca
NB
407322003-07-18 Neil Booth <neil@daikokuya.co.uk>
40733
40734 * lang-options.h: Remove.
40735 * lang.opt: Add help text.
40736
0cea056b
NS
407372003-07-07 Nathan Sidwell <nathan@codesourcery.com>
40738
40739 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
40740 calls.
40741
cb66e385
NB
407422003-07-06 Neil Booth <neil@daikokuya.co.uk>
40743
40744 * misc.c (gnat_handle_option): Don't handle filenames.
40745
9e94c78f 407462003-07-04 H.J. Lu <hongjiu.lu@intel.com>
8c90b13a
L
40747
40748 * Make-lang.in: Replace PWD with PWD_COMMAND.
40749 * Makefile.adalib: Likewise.
40750 * Makefile.in: Likewise.
40751
9c286213
MK
407522003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
40753
40754 * misc.c (gnat_argv): Revert last change.
40755 (gnat_handle_option, gnat_init_options): Copy arguments.
40756
b9add449
NB
407572003-07-03 Neil Booth <neil@daikokuya.co.uk>
40758
9c286213 40759 * misc.c (gnat_argv): Make const.
b9add449 40760
836d77a9
NB
407612003-07-02 Neil Booth <neil@daikokuya.co.uk>
40762
40763 * misc.c (save_argc, save_argv): Keep non-static!
40764
b86f6cd9
NB
407652003-07-02 Neil Booth <neil@daikokuya.co.uk>
40766
40767 * misc.c (save_argc, save_argv): Make static.
40768 (gnat_init_options): New prototype.
40769 (gnat_init_options): Update.
40770
6344b1f1
MK
407712003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
40772
40773 * gnat_ug.texi: Remove unlikely characters from @vars.
40774 * gnat_ug_vms.texi: Regenerate.
40775
2e040219
NS
407762003-06-27 Nathan Sidwell <nathan@codesourcery.com>
40777
40778 * misc.c (record_code_position): Adjust emit_note call.
40779
9eee5e72
NB
407802003-06-26 Neil Booth <neil@daikokuya.co.uk>
40781
40782 * misc.c (gnat_handle_option): Don't check for missing arguments.
40783
1f9cc6db
NS
407842003-06-20 Nathan Sidwell <nathan@codesourcery.com>
40785
40786 * utils.c (end_subprog_body): Adjust expand_function_end call.
40787
23d6baa3
MK
407882003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
40789
40790 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
40791 Bind_Main_Program.
40792
be43ab4e
NB
407932003-06-15 Neil Booth <neil@daikokuya.co.uk>
40794
40795 * lang.opt: Declare Ada.
40796 * misc.c (gnat_init_options): Update.
40797
ee6b0296
NS
407982003-06-14 Nathan Sidwell <nathan@codesourcery.com>
40799
40800 * utils.c (begin_subprog_body): Adjust init_function_start call.
40801
d7b42618
NB
408022003-06-14 Neil Booth <neil@daikokuya.co.uk>
40803
40804 * Make-lang.in: Update to use options.c and options.h.
40805 * misc.c: Include options.h not aoptions.h.
40806 (gnat_handle_option): Abort on unrecognized switch.
40807 (gnat_init_options): Request Ada switches.
40808
57eb6503
NB
408092003-06-14 Neil Booth <neil@daikokuya.co.uk>
40810
40811 * lang.opt: Add -Wall.
40812 * misc.c (gnat_handle_option): Handle it.
40813
70fd6569
NB
408142003-06-12 Neil Booth <neil@daikokuya.co.uk>
40815
40816 * misc.c (gnat_handle_option): Fix warnings.
40817
8cdea5a1
MK
408182003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
40819
40820 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
40821
3c900cb5
NB
408222003-06-11 Neil Booth <neil@daikokuya.co.uk>
40823
40824 * Make-lang.in: Update to handle command-line options.
40825 * lang.opt: New file.
40826 * misc.c: Include aoptions.h.
40827 (cl_options_count, cl_options): Remove.
40828 (gnat_handle_option): New.
40829 (gnat_decode_option): Remove.
40830 (LANG_HOOKS_DECODE_OPTION): Remove.
40831 (LANG_HOOKS_HANDLE_OPTION): Override.
40832
e8face4c
NN
408332003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
40834
40835 * init.c, misc.c, trans.c, utils.c: Remove dead code.
40836
4665e56c
NN
408372003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
40838
40839 * Makefile.in: Replace "host_canonical" with "host" for autoconf
40840 substitution.
40841
a165c302
NB
408422003-06-08 Neil Booth <neil@daikokuya.co.uk>
40843
40844 * Make-lang.in: Update.
40845 * misc.c: Include opts.h. Define cl_options_count and cl_options.
40846
2772ef3e
NB
408472003-06-07 Neil Booth <neil@daikokuya.co.uk>
40848
40849 * misc.c (gnat_init_options): Update.
40850
d8277a55
MK
408512003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40852
40853 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
40854 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
40855 __attribute__ ((__unused__)).
40856
602a82f3 408572003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
40858
40859 * Make-lang.in: Add support for stageprofile and stagefeedback
40860
3aa07c6d
MK
408612003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
40862
40863 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
40864 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
40865
f1093866
MK
408662003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
40867
40868 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
40869 Remove non-VMS directive.
40870 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
40871 alternatives.
40872 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
40873
408742003-06-04 Olivier Hainque <hainque@act-europe.fr>
40875
6f7f72f9 40876 PR ada/9953
2ed26f6b
ZW
40877 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
40878 and turn ZCX_By_Default back to False since the underlying support
40879 is not quite there yet.
dee2df72 40880
80eaf415
AJ
408812003-06-01 Andreas Jaeger <aj@suse.de>
40882
40883 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
40884 and ROUND_TYPE_SIZE_UNIT.
40885
9e94c78f 408862003-05-22 Geert Bosch <bosch@gnat.com>
36f9020c
GB
40887
40888 * gnat_rm.texi : Remove reference to Ada Core Technologies.
40889
e7b5f0c9
NS
408902003-05-03 Nathan Sidwell <nathan@codesourcery.com>
40891
40892 * trans.c (tree_transform): Use location_t and input_location
40893 directly.
40894 (build_unit_elab): Likewise.
40895 * utils.c (create_label_decl): Likewise.
40896
d479d37f
NS
408972003-05-01 Nathan Sidwell <nathan@codesourcery.com>
40898
561712fe
NS
40899 * trans.c (tree_transform, build_unit_elab,
40900 set_lineno): Rename lineno to input_line.
d479d37f
NS
40901 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
40902 end_subprog_body): Likewise.
40903 * utils2.c (build_call_raise): Likewise.
40904
9e94c78f 409052003-05-01 Laurent Guerby <guerby@acm.org>
4f9335cd 40906
2ed26f6b
ZW
40907 PR ada/10546
40908 * 5iosinte.ads: Increase pthread_cond_t size to match recent
40909 LinuxThread and NPTL version, merge from ACT.
80eaf415 40910
0864034e
ZW
409112003-04-28 Zack Weinberg <zack@codesourcery.com>
40912
40913 * utils.c (convert): No need to clear TREE_CST_RTL.
40914
9e94c78f 409152003-04-23 Geert Bosch <bosch@gnat.com>
bcea76b6
GB
40916
40917 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40918 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
40919 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
40920 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
40921 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
40922 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
40923 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
40924 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
40925 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
40926 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
40927 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
40928 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
40929 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
40930 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
40931 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
40932 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
40933 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
40934 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
40935 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
40936 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
40937 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
40938 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
40939 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
40940 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
40941 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
40942 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
40943 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
40944 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
40945 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
40946 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
40947 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
40948 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
40949 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
40950 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
40951 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
40952 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
40953 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
40954 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
40955 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
40956 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
40957 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
40958 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
40959 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
40960 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
40961 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
40962 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
40963 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
40964 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
40965 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
40966 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
40967 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
40968 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
40969 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
40970 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
40971 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
40972 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
40973 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
40974 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
40975 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
40976 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
40977 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
40978 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
40979 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
40980 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
40981 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
40982 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
40983 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
40984 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
40985 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
40986 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
40987 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
40988 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
40989 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
40990 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
40991 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
40992 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
40993 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
40994 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
40995 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
40996 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
40997 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
40998 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
40999 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
41000 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
41001 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
41002 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
41003 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
41004 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
41005 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
41006 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
41007 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
41008 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
41009 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
41010 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
41011 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
41012 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
41013 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
41014 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
41015 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
41016 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
41017 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
41018 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
41019 ali.adb, ali.ads, alloc.ads, argv.c,
41020 atree.adb, atree.ads, atree.h, aux-io.c,
41021 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
41022 binde.adb, binde.ads, binderr.adb, binderr.ads,
41023 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
41024 butil.adb, butil.ads, cal.c, calendar.ads,
41025 casing.adb, casing.ads, ceinfo.adb, checks.adb,
41026 checks.ads, cio.c, comperr.adb, comperr.ads,
41027 config-lang.in, csets.adb, csets.ads, csinfo.adb,
41028 cstand.adb, cstand.ads, cuintp.c, debug.adb,
41029 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
41030 dec-io.ads, dec.ads, deftarg.c, directio.ads,
41031 einfo.adb, einfo.ads, elists.adb, elists.ads,
41032 elists.h, errno.c, errout.adb, errout.ads,
41033 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
41034 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
41035 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
41036 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
41037 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
41038 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
41039 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
41040 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
41041 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
41042 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
41043 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
41044 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
41045 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
41046 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
41047 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
41048 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
41049 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
41050 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
41051 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
41052 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
41053 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
41054 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
41055 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
41056 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
41057 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
41058 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
41059 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
41060 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
41061 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
41062 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
41063 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
41064 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
41065 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
41066 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
41067 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
41068 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
41069 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
41070 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
41071 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
41072 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
41073 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
41074 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
41075 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
41076 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
41077 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
41078 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
41079 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
41080 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
41081 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
41082 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
41083 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
41084 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
41085 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
41086 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
41087 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
41088 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
41089 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
41090 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
41091 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
41092 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
41093 lib.adb, lib.ads, live.adb, live.ads,
41094 machcode.ads, make.adb, make.ads, makeusg.adb,
41095 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
41096 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
41097 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
41098 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
41099 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
41100 mlib.ads, namet.adb, namet.ads, nlists.adb,
41101 nlists.ads, opt.adb, opt.ads, osint-b.adb,
41102 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
41103 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
41104 osint.ads, output.adb, output.ads, par-ch10.adb,
41105 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
41106 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
41107 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
41108 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
41109 par-tchk.adb, par-util.adb, par.adb, par.ads,
41110 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
41111 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
41112 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
41113 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
41114 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
41115 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
41116 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
41117 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
41118 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
41119 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
41120 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
41121 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
41122 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
41123 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
41124 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
41125 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
41126 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
41127 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
41128 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
41129 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
41130 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
41131 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
41132 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
41133 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
41134 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
41135 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
41136 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
41137 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
41138 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
41139 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
41140 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
41141 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
41142 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
41143 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
41144 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
41145 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
41146 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
41147 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
41148 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
41149 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
41150 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
41151 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
41152 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
41153 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
41154 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
41155 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
41156 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
41157 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
41158 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
41159 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
41160 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
41161 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
41162 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
41163 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
41164 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
41165 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
41166 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
41167 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
41168 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
41169 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
41170 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
41171 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
41172 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
41173 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
41174 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
41175 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
41176 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
41177 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
41178 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
41179 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
41180 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
41181 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
41182 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
41183 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
41184 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
41185 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
41186 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
41187 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
41188 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
41189 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
41190 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
41191 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
41192 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
41193 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41194 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
41195 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
41196 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
41197 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
41198 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
41199 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
41200 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
41201 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
41202 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
41203 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
41204 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
41205 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
41206 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
41207 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
41208 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
41209 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
41210 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
41211 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
41212 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
41213 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
41214 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
41215 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
41216 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
41217 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
41218 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
41219 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
41220 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
41221 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
41222 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
41223 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
41224 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
41225 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
41226 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
41227 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
41228 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
41229 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
41230 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
41231 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
41232 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
41233 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
41234 snames.ads, sprint.adb, sprint.ads, stand.adb,
41235 stand.ads, stringt.adb, stringt.ads, style.adb,
41236 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
41237 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
41238 switch-m.ads, switch.adb, switch.ads, system.ads,
41239 table.adb, table.ads, targparm.adb, targparm.ads,
41240 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
41241 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
41242 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
41243 ttypef.ads, ttypes.ads, types.adb, types.ads,
41244 uintp.adb, uintp.ads, uname.adb, uname.ads,
41245 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
41246 usage.adb, usage.ads, validsw.adb, validsw.ads,
41247 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
41248 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
41249 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
41250 formatting and other trivial changes from ACT.
41251
dcf92453
ZW
412522003-04-12 Zack Weinberg <zack@codesourcery.com>
41253
41254 * gigi.h, utils2.c (build_constructor):
41255 Rename gnat_build_constructor. Use build_constructor.
41256 * decl.c (gnat_to_gnu_entity)
41257 * trans.c (tree_transform, pos_to_constructor, extract_values)
41258 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
41259 (unchecked_convert)
41260 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
41261 (fill_vms_descriptor):
41262 Update to match.
41263
d78e771d
ZW
412642003-04-06 Zack Weinberg <zack@codesourcery.com>
41265
41266 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
41267 * misc.c (gnat_tree_size): New function.
41268 (LANG_HOOKS_TREE_SIZE): Override.
41269
78d55cc8
JM
412702003-04-03 Jason Merrill <jason@redhat.com>
41271
41272 * misc.c (gnat_adjust_rli): #if 0.
41273
9e94c78f 412742003-03-31 Geert Bosch <bosch@gnat.com>
b174e2d4
GB
41275
41276 PR ada/10020
41277 * link.c : Fix misspelled "const" keyword
41278
f29a2bd1
MM
412792003-03-23 Mark Mitchell <mark@codesourcery.com>
41280
41281 PR c++/7086
41282 * utils2.c: Adjust calls to put_var_into_stack.
41283
08e247b1
NN
412842003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
41285
41286 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
41287
4bfec483
NB
412882003-03-08 Neil Booth <neil@daikokuya.co.uk>
41289
41290 * misc.c (gnat_init): Update for new prototype.
41291
3d713bb8
GB
412922003-03-05 Olivier Hainque <hainque@gnat.com>
41293
41294 ada/9961
78d55cc8
JM
41295 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
41296 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 41297
8b89fcdf
TT
412982003-03-04 Tom Tromey <tromey@redhat.com>
41299
41300 * Make-lang.in (ada.tags): New target.
41301
3d713bb8 413022003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
41303
41304 ada/9911
41305 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
41306 wrapper, which name remains constant whatever underlying GCC
41307 scheme.
41308
41309 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
41310 the stable interface needed for a-except.
41311
f4ae98be
AJ
413122003-03-02 Andreas Jaeger <aj@suse.de>
41313
41314 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41315 gnat_ug_wnt.texi: Regenerate.
41316
9e94c78f 413172003-03-02 Laurent Guerby <guerby@acm.org>
5348742b 41318
f4ae98be 41319 * Makefile.in (install-gnatlib): Match previous change there
5348742b 41320 so it works.
f4ae98be 41321
8c108db2
AS
413222003-02-28 Andreas Schwab <schwab@suse.de>
41323
41324 * Make-lang.in (install-gnatlib): Change to ada directory before
41325 running make instead of using ada/Makefile directly.
41326
601d71bc
BE
413272003-02-18 Ben Elliston <bje@redhat.com>
41328
6f7f72f9 41329 Part of PR ada/9406
601d71bc
BE
41330 * gnat_ug.texi (Binder output file): Grammar fix.
41331
bf7c02dd
BE
413322003-02-18 Ben Elliston <bje@redhat.com>
41333
41334 PR other/7350
41335 * 5qtaprop.adb (Sleep): Fix typo in comment.
41336
b3a8389d
JM
413372003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
41338
41339 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
41340 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41341 gnat_ug_wnt.texi: Regenerate.
41342
9e94c78f 413432003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5da14cb5
CC
41344
41345 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
41346 be created if necessary.
41347 (ada.install-common): Let $(DESTDIR)$(bindir) be created
41348 if necessary. Remove erroneous and redundant gnatchop
41349 installation commands. Test for gnatdll before attempting
41350 to install it.
41351 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
41352 and gnatdll from all plausible locations.
41353
271bd540
RS
413542003-02-01 Richard Sandiford <rsandifo@redhat.com>
41355
41356 * utils2.c (build_unary_op): Don't check flag_volatile.
41357 * gnat_ug.texi: Remove -fvolatile from example.
41358 * gnat_ug_vxw.texi: Likewise.
41359
9e94c78f 413602003-01-29 Laurent Guerby <guerby@acm.org>
c1cc6a51 41361
d78e771d
ZW
41362 PR ada/8344
41363 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
41364 * Makefile.in: match previous change.
41365 * Make-lang.in: match previous change.
c1cc6a51 41366
9e94c78f 413672003-01-29 Joel Sherrill <joel@OARcorp.com>
c4039eb0
JS
41368
41369 * 5rosinte.ads: Add SIGXCPU.
41370 * 5rtpopsp.adb: New file.
41371 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
41372 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
41373 specific file 5rtpopsp.adb.
41374 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
41375 is likely needed for all newlib targets.
41376 * init.c: Add RTEMS specific version of __gnat_initialize().
41377
00d29f7d
RO
413782003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41379
41380 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
41381
437026ef
RO
413822003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41383
41384 * init.c (__gnat_error_handler): Make msg const.
41385
41386 * gmem.c (convert_addresses): Move declaration ...
41387 * adaint.h: ... here.
41388 * adaint.c (convert_addresses): Adapt addrs type to match
41389 prototype.
41390
41391 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
41392
e12825cd
AS
413932003-01-24 Andreas Schwab <schwab@suse.de>
41394
41395 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
41396 size_t to avoid warning.
41397
a8729406
ZW
413982003-01-21 Zack Weinberg <zack@codesourcery.com>
41399
b09b91b9 41400 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 41401
17211ab5
GK
414022003-01-09 Geoffrey Keating <geoffk@apple.com>
41403
41404 * gnat_rm.texi: Remove RCS version number.
41405
41406 * ada-tree.h (union lang_tree_node): Add chain_next option.
41407
1d27195c
CC
414082003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
41409
41410 * Make-lang.in (ada.install-info, ada.install-common,
41411 ada.uninstall): Prepend $(DESTDIR) to the destination
41412 directory in all (un)installation commands.
41413 * Makefile.in (install-gnatlib, install-rts): Ditto.
41414
bdefb2ab
JM
414152002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
41416
41417 * gnat_rm.texi, gnat_ug.texi: Use @copying.
41418 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41419 gnat_ug_wnt.texi: Regenerate.
41420
46d40353
JM
414212002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
41422
41423 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
41424 only.
41425 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
41426 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
41427 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
41428 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
41429 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
41430 $(srcdir)/doc/include/gcc-common.texi.
41431
9e94c78f 414322002-12-15 Geert Bosch <bosch@gnat.com>
d2f97d3e
GB
41433
41434 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
41435
9e94c78f 414362002-12-14 Geert Bosch <bosch@gnat.com>
93a81b02 41437
6f7f72f9 41438 PR ada/5690
4977bab6
ZW
41439 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
41440 case of a body created for a Renaming_As_Body, on which
6f7f72f9 41441 conformance checks are not performed.
4977bab6
ZW
41442
414432002-11-30 Zack Weinberg <zack@codesourcery.com>
41444
41445 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
41446 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
41447 not already included.
41448 * Make-lang.in: Update dependencies.
93a81b02 41449
dfc15546
NN
414502002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
41451 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 41452 solution to buffer overflow bug on GNU/Linux.
dfc15546 41453
8b54424d 414542002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9
EB
41455
41456 PR ada/5856
41457 PR ada/6919
8b54424d
NN
41458 * bindgen.adb: Remove all references to Public_Version.
41459 * comperr.adb: Remove all references to Public_Version and
41460 GNATPRO_Version; correct bug reporting instructions.
41461 * comperr.ads: Change to match bug box.
41462 * gnatvsn.ads: Remove all references to Public version and
41463 GNATPRO version.
41464
cc41268d 414652002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 41466
1a083c0e
NN
41467 PR ada/6919
41468 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
41469 GNU/Linux.
41470
cc41268d
NN
41471 PR ada/6558
41472 * config-lang.in: Remove diff_excludes.
41473
1c7b0712 414742002-11-05 Graham Stott <graham.stott@btinternet.com>
6f7f72f9 41475
1c7b0712
GS
41476 PR ada/8358
41477 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 41478 (build_unit_elab): Use..
1c7b0712 41479
9e94c78f 414802002-10-30 Geert Bosch <bosch@gnat.com>
6f7f72f9 41481
1c4048ca
GB
41482 PR ada/6558
41483 * misc.c : Include optabs.h
41484
41485 * Make-lang.in (misc.o): Add dependency on optabs.h
41486
9e94c78f 414872002-10-29 Geert Bosch <bosch@gnat.com>
6f7f72f9 41488
4977bab6 41489 PR ada/6558
f0d96f9c
GB
41490 * Make-lang.in (gnatbind): Depend on CONFIG_H
41491
a7512dec 414922002-10-29 Geert bosch <bosch@gnat.com>
6f7f72f9 41493
4977bab6
ZW
41494 PR ada/6558
41495 * misc.c: Unrevert misc.c (1.13)
a7512dec 41496
c6362f4f
NN
414972002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
41498
41499 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
41500 maintainership comments.
41501
415022002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 41503
91ed4b19 41504 PR ada/5904
4977bab6
ZW
41505 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
41506 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
41507 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
41508 7staprop.adb: Correct statements in comments about
91ed4b19
NN
41509 maintainership of GNAT.
41510
1f02b6af 41511 PR ada/5904
4977bab6
ZW
41512 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
41513 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
41514 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
41515 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
41516 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
41517 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
41518 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
41519 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
41520 comments about maintainership of GNAT.
41521
71ff80dc 41522 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
41523 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
41524 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
41525 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
41526 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
41527 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
41528 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
41529 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
41530 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
41531 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
41532 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
41533 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
41534 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
41535 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
41536 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
41537 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
41538 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
41539 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
41540 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
41541 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
41542 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
41543 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
41544 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
41545 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
41546 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
41547 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
41548 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
41549 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
41550 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
41551 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
41552 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
41553 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
41554 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
41555 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
41556 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
41557 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
41558 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
41559 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
41560 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
41561 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
41562 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
41563 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
41564 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
41565 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
41566 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
41567 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
41568 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
41569 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
41570 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
41571 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
41572 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
41573 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
41574 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
41575 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
41576 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
41577 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
41578 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
41579 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
41580 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
41581 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
41582 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
41583 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
41584 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
41585 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
41586 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
41587 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
41588 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
41589 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
41590 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
41591 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
41592 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
41593 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
41594 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
41595 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
41596 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
41597 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
41598 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
41599 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
41600 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
41601 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
41602 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
41603 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
41604 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
41605 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
41606 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
41607 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
41608 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
41609 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
41610 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
41611 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
41612 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
41613 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
41614 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
41615 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
41616 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
41617 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
41618 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
41619 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
41620 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
41621 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
41622 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
41623 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
41624 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
41625 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
41626 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
41627 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
41628 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
41629 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
41630 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
41631 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
41632 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
41633 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
41634 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
41635 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
41636 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
41637 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
41638 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
41639 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
41640 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
41641 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
41642 par-endh.adb par-labl.adb par-load.adb par-prag.adb
41643 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
41644 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
41645 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
41646 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
41647 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
41648 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
41649 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
41650 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
41651 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
41652 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
41653 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
41654 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
41655 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
41656 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
41657 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
41658 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
41659 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
41660 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
41661 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
41662 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
41663 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
41664 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
41665 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
41666 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
41667 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
41668 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
41669 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
41670 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
41671 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
41672 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
41673 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
41674 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
41675 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
41676 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
41677 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
41678 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
41679 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
41680 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
41681 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
41682 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
41683 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
41684 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
41685 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
41686 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
41687 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
41688 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
41689 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
41690 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
41691 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
41692 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
41693 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
41694 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
41695 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
41696 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
41697 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
41698 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
41699 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
41700 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
41701 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
41702 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
41703 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
41704 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
41705 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
41706 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
41707 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
41708 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
41709 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
41710 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
41711 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
41712 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
41713 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
41714 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
41715 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
41716 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
41717 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
41718 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
41719 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
41720 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
41721 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
41722 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
41723 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
41724 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
41725 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
41726 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
41727 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
41728 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
41729 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
41730 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
41731 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
41732 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
41733 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
41734 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
41735 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
41736 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
41737 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
41738 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
41739 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
41740 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
41741 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
41742 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
41743 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
41744 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
41745 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
41746 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
41747 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
41748 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
41749 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
41750 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
41751 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
41752 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
41753 stringt.ads stringt.h style.adb style.ads stylesw.adb
41754 stylesw.ads switch.adb switch.ads sysdep.c system.ads
41755 table.adb table.ads targparm.adb targparm.ads targtyps.c
41756 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
41757 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
41758 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
41759 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
41760 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
41761 usage.ads utils.c utils2.c validsw.adb validsw.ads
41762 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
41763 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
41764 xtreeprs.adb: Correct statements in comments about maintainership
41765 of GNAT.
41766
b4f94ac1
ZW
417672002-09-23 Zack Weinberg <zack@codesourcery.com>
41768
41769 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
41770 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
41771 * gnatvsn.ads: Gnat_Version_String is now a function.
41772 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
41773 copy the C version_string into a String and return it.
41774 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
41775 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
41776 Remove pragma Ident (Gnat_Version_String). If this was the
41777 sole use of package Gnatvsn, remove the with statement too.
41778 * gnat1drv.adb: Tweak -gnatv output.
41779
eaff3bf8
RH
417802002-09-17 Richard Henderson <rth@redhat.com>
41781
41782 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
41783 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
41784 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
41785 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
41786 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
41787 and real_2expN instead of a loop.
41788 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
41789 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
41790
9e94c78f
EB
417912002-08-25 Andre Leis <a.leis@gmx.net>
41792 David Billinghurst <David.Billinghurst@riotinto.com>
d241f75b 41793
f4ae98be 41794 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 41795
4320085a
RO
417962002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41797
41798 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
41799 Remove $(CONFIG_H) dependency.
41800
22aa533e
NS
418012002-08-08 Nathan Sidwell <nathan@codesourcery.com>
41802
41803 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
41804
1dcd444b
KG
418052002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41806
41807 * adadecode.c (ada_demangle): Use xstrdup in lieu of
41808 xmalloc/strcpy.
41809 * misc.c (gnat_decode_option): Likewise.
41810
7bc7d27b
FW
418112002-07-15 Florian Weimer <fw@deneb.enyo.de>
41812
41813 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41814 function approach did not work well because of a side effect (the
41815 function call could reallocate the table which was being indexed
41816 using its result). Fixes ada/4851. [RESURRECTED]
41817
6a2dd09a
RS
418182002-07-01 Roger Sayle <roger@eyesopen.com>
41819
41820 * ada/utils.c (builtin_function): Accept an additional parameter.
41821
c168bbd7
AJ
418222002-06-28 Andreas Jaeger <aj@suse.de>
41823
41824 PR ada/7144
41825 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
41826 <adi@thur.de>.
41827
b41e09a7
KG
418282002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41829
41830 * Makefile.in (SHELL): Set to @SHELL@.
41831
62c71f4b
KG
418322002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41833
41834 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
41835 array size calculation.
41836
94213cff
AJ
418372002-06-04 Andreas Jaeger <aj@suse.de>
41838
41839 * Make-lang.in (gnatbind): Readd rule that has been lost in last
41840 patch.
41841
e2500fed
GK
418422002-06-03 Geoffrey Keating <geoffk@redhat.com>
41843
41844 Merge from pch-branch:
41845
41846 * config-lang.in (gtfiles): Add ada-tree.h.
41847 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
41848 (SET_TYPE_MODULUS): New.
41849 (SET_TYPE_INDEX): New.
41850 (SET_TYPE_DIGITS_VALUE): New.
41851 (SET_TYPE_RM_SIZE): New.
41852 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
41853 (SET_TYPE_ADA_SIZE): New.
41854 (SET_TYPE_ACTUAL_BOUNDS): New.
41855 (SET_DECL_CONST_CORRESPONDING_VAR): New.
41856 (SET_DECL_ORIGINAL_FIELD): New.
41857 (TREE_LOOP_ID): Correct typo.
41858 * decl.c: Use new macros.
41859 * utils.c: Include debug.h, use new macros.
94213cff 41860 * utils2.c: Use new macros.
e2500fed
GK
41861
41862 * ada-tree.h: Update all macros for new tree description.
41863 (struct tree_loop_id): New.
41864 (union lang_tree_node): New.
41865 (struct lang_decl): New.
41866 (struct lang_type): New.
41867 * misc.c (gnat_mark_tree): Delete.
41868 (LANG_HOOKS_MARK_TREE): Delete.
41869 * trans.c (tree_transform): No longer any need to cast
41870 for TREE_LOOP_ID.
41871
41872 * utils.c (struct language_function): New dummy structure.
41873
41874 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
41875 (misc.o): Likewise.
41876 (utils.o): Likewise; also gtype-ada.h.
41877 * Make-lang.in (gnat1): Add dependency on s-gtype.
41878 (gnatbind): Add dependency on $(CONFIG_H).
41879 * utils.c: Correct last #include.
41880 (stuct e_stack): Remove unnecessary 'static'.
41881 (mark_e_stack): Remove unused prototype.
41882
41883 * scn-nlit.adb: Remove whitespace after version number to
41884 keep lines under 80 chars.
41885 * snames.adb: Likewise.
41886 * treepr.ads: Likewise.
94213cff 41887
e2500fed
GK
41888 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
41889 (misc.o): Likewise.
41890 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
41891 * config-lang.in (gtfiles): New.
41892 * decl.c: Use gengtype for roots.
41893 * gigi.h: Use gengtype for roots.
41894 * trans.c: Use gengtype for roots.
41895 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
41896
27e511e0
GDR
418972002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
41898
41899 * misc.c (gnat_init): Adjust setting of internal_error_function.
41900
113dc143
JM
419012002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
41902
41903 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
41904 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
41905 gnat_ug_wnt.texi: Regenerate.
41906
5321fb3e
FW
419072002-05-31 Florian Weimer <fw@deneb.enyo.de>
41908
15e6136e
FW
41909 * 5ntaprop.adb (with System.OS_Primitives): Remove.
41910
019310ac
FW
41911 * cstreams.c (max_path_len): Move from here ...
41912 * adaint.c (__gnat_max_path_len): ... to here.
41913 * adaint.c (__gnat_max_path_len): Declare.
41914 * g-dirope.adb (Max_Path): Adjust.
41915 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 41916 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
41917 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
41918 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
41919
5321fb3e
FW
41920 * Makefile.in, Make-lang.in: Documentation is now built in
41921 Make-lang.in. Store Info and generated Texinfo files in the
41922 source directory.
41923 * gnat_ug.texi: Remove CVS keywords, correct version number.
41924 Set file name correctly.
41925
41926 * gnat_ug_*.texi: Add.
41927 * .cvsignore: Ignore generated Texinfo files.
41928
b1c12c4b
ZW
419292002-05-30 Zack Weinberg <zack@codesourcery.com>
41930
41931 * ada.h: Add MI guard macro.
41932 (SUBTYPE): Define constants with an anonymous enum, not static
41933 const variables.
41934 (IN): Cast constants to appropriate type before use.
41935
ead33da9
JM
419362002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
41937
41938 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
41939 (experimental)".
41940
7d600178
RO
419412002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41942
41943 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
41944 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
41945 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
41946 (ALL_ADA_CFLAGS): Likewise.
41947 (ADA_INCLUDES): Likewise.
41948 Adapt for new working dir.
41949 (GNATBIND): Use Makefile.in version.
41950 (.SUFFIXES): Copy from Makefile.in.
41951 (ada-warn): Define.
41952 (.adb.o, .ads.o): Copy from Makefile.in.
41953 Added $(OUTPUT_OPTION).
41954 (GNAT1_C_OBJS): Moved from Makefile.in.
41955 Prefix with ada subdir.
41956 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
41957 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
41958 Adapt for new working dir.
41959 (EXTRA_GNATBIND_OBJS): Likewise.
41960 (ADA_BACKEND): Moved from Makefile.in.
41961 Renamed to avoid conflict with global BACKEND.
41962 Use that one.
41963 (TARGET_ADA_SRCS): Moved from Makefile.in.
41964 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
41965 Use ADA_BACKEND.
41966 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
41967 (ada_extra_files): Moved from Makefile.in.
41968 Prefix with ada subdir.
41969 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
41970 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
41971 (ada/nmake.ads): Likewise.
41972 (update-sources): Moved from Makefile.in.
41973 Prefix with ada subdir.
41974 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
41975 (ADA_TREE_H): Likewise.
41976 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
41977 (ada/memtrack.o): Likewise.
41978 (ada/adadecode.o): Likewise.
41979 Update dependencies.
41980 (ada/adaint.o): New.
41981 (ada/argv.o): Moved from Makefile.in.
41982 Prefix with ada subdir.
94213cff 41983 Update dependencies.
7d600178
RO
41984 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
41985 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
41986 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
41987 Prefix with ada subdir.
41988 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
41989 (GNAT DEPENDENCIES): Regenerate.
41990 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
41991 toplevel Makefile.in.
41992 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
41993 (TARGET_ADA_SRCS): Removed.
41994 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
41995 (GNATBIND_OBJS): Likewise.
41996 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
41997 (BACKEND): Removed.
41998 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
41999 (TREE_H): Likewise.
42000 (ada_extra_files): Likewise.
42001 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
42002 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
42003 (update-sources): Likewise.
42004 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
42005 (ADA_TREE_H): Likewise.
42006 (adadecoce.o): Likewise.
42007 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
42008 (GNAT DEPENDENCIES): Likewise.
42009
1e6347d8
RO
420102002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42011
42012 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
42013 * Makefile.in: Likewise.
42014
db80834f
RO
420152002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42016
42017 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
42018 Restore $(CONFIG_H) and prefix.o dependencies.
42019 (ada.stage[1-4]): Depend on stage?-start.
42020
42021 * Makefile.in (b_gnatb.c): Depend on interfac.o.
42022
ac293f98
JW
420232002-05-02 Jim Wilson <wilson@redhat.com>
42024
42025 * utils.c (finish_record_type): Change record_size to record_type.
42026
b303008e
JDA
420272001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
42028
42029 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
42030 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
42031 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 42032
ff45c01e
NB
420332002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
42034
42035 * misc.c (gnat_parse_file): Update.
42036
349ae713
NB
420372002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
42038
42039 * misc.c (gnat_init): Don't set lang_attribute_common.
42040
ace133aa
JM
420412002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
42042
42043 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
42044
5c558dd9
FW
420452002-04-21 Florian Weimer <fw@deneb.enyo.de>
42046
b4f94ac1 42047 * gnat_ug.texi: New file.
88e1739c 42048
5c558dd9
FW
42049 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
42050 instead of gfdl.texi
42051
42052 * xgnatug.adb, ug_words: New files.
42053
42054 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 42055 gnat_rm and gnat-style manuals.
5c558dd9 42056
7a228918
NB
420572002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
42058
42059 * gigi.h (incomplete_type_error): Remove.
42060 * utils.c (incomplete_type_error): Remove.
42061
b2123dc0
MM
420622002-04-16 Mark Mitchell <mark@codesourcery.com>
42063
42064 * trans.c (tree_transform): Add has_scope argument to
42065 expand_start_stmt_expr.
42066
78ef5b89
NB
420672002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
42068
42069 * gigi.h (truthvalue_conversion): Rename.
42070 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
42071 * trans.c (tree_transform): Update.
42072 * utils2.c (truthvalue_conversion): Rename, update.
42073 (build_binary_op, build_unary_op): Update.
42074
a71742a8
LG
420752002-04-04 Laurent Guerby <guerby@acm.org>
42076
42077 * make.adb: Implement -margs, remove restriction about file name placement.
42078 * makeusg.adb: Documentation update.
42079 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
42080 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
42081
82a4b025
NB
420822002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
42083
42084 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
42085 (builtin_function): Similarly.
42086
dffd7eb6
NB
420872002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
42088
42089 * decl.c (gnat_to_gnu_entity): Update.
42090 * gigi.h (mark_addressable): Rename.
42091 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
42092 * trans.c (tree_transform): Update.
42093 * utils.c (create_var_decl): Update.
42094 * util2.c (build_binary_op, build_unary_op,
42095 fill_vms_descriptor): Update.
42096 (mark_addressable): Rename, update.
42097
ceef8ce4
NB
420982002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
42099
42100 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
42101 Rename.
42102 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
42103 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
42104 * trans.c (tree_transform, convert_with_check): Update.
42105 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
42106 Rename.
42107
48a7a235
NB
421082002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
42109
42110 * gigi.h (finish_incomplete_decl): Rename.
42111 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
42112 * utils.c (gnat_init_decl_processing): Don't set hook.
42113 (finish_incomplete_decl): Rename.
42114
1d5af871
AS
421152002-03-29 Andreas Schwab <schwab@suse.de>
42116
42117 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
42118 directory.
42119
9e94c78f 421202001-03-28 Robert Dewar <dewar@gnat.com>
8cbb664e
MG
42121
42122 * checks.ads:
42123 (Remove_Checks): New procedure
42124
42125 * checks.adb:
42126 (Remove_Checks): New procedure
42127
42128 * exp_util.adb:
42129 Use new Duplicate_Subexpr functions
42130 (Duplicate_Subexpr_No_Checks): New procedure
42131 (Duplicate_Subexpr_No_Checks_Orig): New procedure
42132 (Duplicate_Subexpr): Restore original form (checks duplicated)
42133 (Duplicate_Subexpr): Call Remove_Checks
42134
82a4b025 42135 * exp_util.ads:
8cbb664e
MG
42136 (Duplicate_Subexpr_No_Checks): New procedure
42137 (Duplicate_Subexpr_No_Checks_Orig): New procedure
42138 Add 2002 to copyright notice
42139
42140 * sem_util.adb: Use new Duplicate_Subexpr functions
42141
82a4b025 42142 * sem_eval.adb:
8cbb664e
MG
42143 (Eval_Indexed_Component): This is the place to call
42144 Constant_Array_Ref and to replace the value. We simply merge
42145 the code of this function in here, since it is now no longer
42146 used elsewhere. This fixes the problem of the back end not
42147 realizing we were clever enough to see that this was
42148 constant.
42149 (Expr_Val): Remove call to Constant_Array_Ref
42150 (Expr_Rep_Val): Remove call to Constant_Array_Ref
42151 Minor reformatting
42152 (Constant_Array_Ref): Deal with string literals (patch
42153 suggested by Zack Weinberg on the gcc list)
42154
9e94c78f 421552001-03-28 Ed Schonberg <schonber@gnat.com>
8cbb664e 42156
82a4b025 42157 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
42158 Duplicate_Subexpr_Move_Checks.
42159
82a4b025 42160 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
42161 Duplicate_Subexpr_Move_Checks.
42162
82a4b025
NB
42163 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
42164 value of array exists before retrieving it (it may a private
8cbb664e
MG
42165 protected component in a function).
42166
9e94c78f 421672002-03-28 Geert Bosch <bosch@gnat.com>
792c4e74
GB
42168
42169 * prj-pp.adb : New file.
42170
42171 * prj-pp.ads : New file.
42172
915e8bad
AJ
421732002-03-28 Andreas Jaeger <aj@suse.de>
42174
42175 * Makefile.in (stamp-sdefault): Fix path for Makefile.
42176
0840811c
NB
421772002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
42178
42179 * misc.c (gnat_expand_expr): Move prototype.
42180
7ffb4fd2
NB
421812002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
42182
42183 * misc.c (insert_default_attributes): Remove.
42184
c9d892a8
NB
421852002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
42186
42187 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
42188 (gnat_init): Don't set hook.
42189 (gnat_expand_expr): Fix prototype.
42190
31c816cf
NB
421912002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
42192
42193 * misc.c (ggc_p): Remove.
42194
ef83161c
GB
421952002-03-27 Geert Bosch <bosch@gnat.com>
42196
42197 * prj-makr.ads, prj-makr.adb : New files.
42198
4f0ade92
NB
421992002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
42200
42201 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
42202 (lang_mark_tree): Make static, rename.
42203
c88770e9
NB
422042002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
42205
42206 * misc.c (maybe_build_cleanup): Remove.
42207
05671968
NB
422082002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
42209
42210 * gigi.h (yyparse): Remove.
42211
ad42149c
FW
422122002-03-23 Florian Weimer <fw@deneb.enyo.de>
42213
9e94c78f 42214 From Ben Brosgol <brosgol@gnat.com>
82a4b025 42215 * gnat_rm.texi: Sync with ACT version.
ad42149c 42216
7afff7cf
NB
422172002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
42218
42219 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
42220 (gnat_init): Remove old hook.
42221
52dabb6c
NB
422222002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
42223
42224 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
42225 (yyparse): Rename gnat_parse_file.
42226
6cbcc541
GK
422272002-03-14 Geoffrey Keating <geoffk@redhat.com>
42228
42229 Delete all lines containing "$Revision:".
42230 * xeinfo.adb: Don't look for revision numbers.
42231 * xnmake.adb: Likewise.
42232 * xsinfo.adb: Likewise.
42233 * xsnames.adb: Likewise.
42234 * xtreeprs.adb: Likewise.
42235
2f9834e8
KG
422362002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
42237
42238 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
42239 gnat_tree_code_name): Delete.
42240 (tree_code_type, tree_code_length, tree_code_name): Define.
42241 (gnat_init): Don't try to copy into the various tree_code
42242 arrays.
42243
63adb4ff
RH
422442002-03-11 Richard Henderson <rth@redhat.com>
42245
42246 * Makefile.in (.NOTPARALLEL): Add fake tag.
42247
43ff4547
GB
422482002-03-07 Geert Bosch <bosch@gnat.com>
42249
82a4b025
NB
42250 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
42251 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
42252 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
42253 switch-m.adb, switch-m.ads : New files.
42254
07fc65c4
GB
422552002-03-07 Geert Bosch <bosch@gnat.com>
42256
42257 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
42258 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
42259 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
42260 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
42261 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
42262 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
42263 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
42264 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
42265 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
42266 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
42267 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
42268 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
42269 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
42270 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
42271 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
42272 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
42273 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
42274 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
42275 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42276 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
42277 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
42278 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
42279 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
42280 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
42281 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
42282 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
42283 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
42284 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
42285 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
42286 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
42287 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
42288 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
42289 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
42290 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
42291 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
42292 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
42293 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42294 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
42295 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
42296 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
42297 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
42298 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
42299 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
42300 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
42301 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
42302 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
42303 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
42304 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
42305 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
42306 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
42307 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
42308 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
42309 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
42310 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
42311 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
42312 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
42313 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
42314 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
42315 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
42316 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
42317 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
42318 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
42319 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
42320 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
42321 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
42322 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
42323 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
42324 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
42325 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
42326 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
42327 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
42328 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
42329 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
42330 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
42331 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
42332 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
42333 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
42334 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42335 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
42336 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42337 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
42338 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
42339 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
42340 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
42341 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
42342 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
42343 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
42344 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
42345 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
42346 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
42347 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
42348 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
42349 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
42350 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
42351 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
42352 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
42353 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
42354
42355 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
42356 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
42357 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
42358 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
42359
42360 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
42361 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
42362
42363 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
42364 to mdll-fil.ad[bs] and mdll-util.ad[bs]
42365
42366 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
42367 from mdllfile.ad[bs] and mdlltool.ad[bs]
42368
ca7558fc
KG
423692002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
42370
42371 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
42372 lieu of explicit sizeof/sizeof.
42373
63e1b1c4
NB
423742002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
42375
42376 * misc.c (copy_lang_decl): Remove.
42377
f458d1d5
ZW
423782002-02-27 Zack Weinberg <zack@codesourcery.com>
42379
42380 * misc.c: Delete traditional-mode-related code copied from the
42381 C front end but not used, or used only to permit the compiler
42382 to link.
42383
21e09952
RH
423842002-02-07 Richard Henderson <rth@redhat.com>
42385
42386 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
42387 * adaint.h (__gnat_to_gm_time): Update prototype.
42388
ead39bdf 423892002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
42390
42391 * trans.c (tree_transform) [N_Loop_Statement]: Use
42392 expand_exit_loop_top_cond.
42393
72ac12bf
RH
423942001-12-23 Richard Henderson <rth@redhat.com>
42395
42396 * utils.c (end_subprog_body): Push GC context around
42397 rest_of_compilation for nested functions.
42398
14aacce7
RH
423992001-12-23 Richard Henderson <rth@redhat.com>
42400
42401 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
42402
b3d45d87
FW
424032001-12-23 Florian Weimer <fw@deneb.enyo.de>
42404
ece2d1b8
FW
42405 * gnat-style.texi (Declarations and Types): Remove ancient style
42406 rule which was mandated by code generation issues.
82a4b025 42407
b3d45d87
FW
42408 * gnat-style.texi (header): Add @dircategory, @direntry.
42409 (title page): Remove date.
42410 (general) Add @./@: where approriate, and two spaces after the
42411 full stop at the end of a sentence. Use @samp markup when
42412 referring concrete lexical entities (keywords, attribute names
42413 etc.), and @syntax for ARM grammar elements. Use @r for English
42414 text in comments. Use @emph for emphasis. Change "if-statements"
42415 etc. to "if statements" (without @samp). Break long lines. Make
42416 casing of section names consistent.
42417 (Identifiers): Use @samp markup for variable names.
42418 (Comments): Use @samp markup for comment characters. Line-end
42419 comments may follow any Ada code, not just statements. Fix
42420 misspelling of "Integer" as "integer".
42421 (Loop statements): Do not use variable name "I", use "J".
42422 (Subprogram Declarations): Document alignment.
42423 (Subprogram Bodies, Block statements): Document empty line before
42424 "begin".
42425
7a73ad55
FW
424262001-12-22 Florian Weimer <fw@deneb.enyo.de>
42427
42428 * make.adb (Add_Switch): Make Generic_Position a procedure. The
42429 function approach did not work well because of a side effect (the
42430 function call could reallocate the table which was being indexed
42431 using its result). Fixes ada/4851.
42432
9e94c78f 424332001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
42434
42435 * bindgen.adb: Minor reformatting
82a4b025 42436
17c5c8a5 42437 * cstand.adb: Minor reformatting
82a4b025 42438
17c5c8a5
GB
42439 * fmap.adb: Minor reformatting
42440 Change name from Add for Add_To_File_Map (Add is much too generic)
42441 Change Path_Name_Of to Mapped_Path_Name
42442 Change File_Name_Of to Mapped_File_Name
42443 Fix copyright dates in header
82a4b025 42444
17c5c8a5
GB
42445 * fmap.ads:
42446 Change name from Add for Add_To_File_Map (Add is much too generic)
42447 Change Path_Name_Of to Mapped_Path_Name
42448 Change File_Name_Of to Mapped_File_Name
42449 Fix copyright dates in header
82a4b025 42450
17c5c8a5
GB
42451 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
42452 Add use clause for Fmap.
82a4b025 42453
17c5c8a5 42454 * make.adb: Minor reformatting
82a4b025 42455
17c5c8a5
GB
42456 * osint.adb: Minor reformatting. Change of names in Fmap.
42457 Add use clause for Fmap.
82a4b025 42458
17c5c8a5 42459 * prj-env.adb: Minor reformatting
82a4b025 42460
17c5c8a5 42461 * prj-env.ads: Minor reformatting
82a4b025 42462
07fc65c4
GB
42463 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
42464 error found (there were odd exceptions to this general rule in
17c5c8a5 42465 -gnatec/-gnatem processing)
82a4b025 42466
9e94c78f 424672001-12-19 Olivier Hainque <hainque@gnat.com>
17c5c8a5 42468
07fc65c4
GB
42469 * raise.c (__gnat_eh_personality): Exception handling personality
42470 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 42471 and still containing a bunch of debugging artifacts.
07fc65c4 42472 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 42473 inspired from the C++ library.
82a4b025 42474
07fc65c4 42475 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 42476 exception handling integration.
82a4b025 42477
9e94c78f 424782001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5
GB
42479
42480 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
42481 (HIE_SOURCES): Add s-secsta.ad{s,b}.
42482 (HIE_OBJS): Add s-fat*.o
07fc65c4 42483 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
42484 interrupt handling files.
42485 (RAVEN_MOD): Removed, no longer needed.
82a4b025 42486
9e94c78f 424872001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
42488
42489 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
42490 Add 2001 to copyright date
82a4b025 42491
07fc65c4 42492 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 42493 need to force universal inlining for these cases.
82a4b025 42494
9e94c78f 424952001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5 42496
07fc65c4 42497 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 42498 Ravenscar HI.
82a4b025 42499
17c5c8a5
GB
42500 * exp_ch7.adb: Allow use of secondary stack in HI mode.
42501 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 42502
9e94c78f 425032001-12-19 Vincent Celier <celier@gnat.com>
17c5c8a5 42504
07fc65c4 42505 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 42506 Pkg_Id and Case_Insensitive.
82a4b025 42507
9e94c78f 425082001-12-19 Pascal Obry <obry@gnat.com>
17c5c8a5
GB
42509
42510 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 42511
9e94c78f 425122001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
42513
42514 * prj-tree.ads: Minor reformatting
42515
38be19f6
JM
425162001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
42517
42518 * config-lang.in (diff_excludes): Remove.
42519
9e94c78f 425202001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 42521
07fc65c4
GB
42522 * sem_res.adb (Resolve_Selected_Component): do not generate a
42523 discriminant check if the selected component is a component of
6510f4c9
GB
42524 the argument of an initialization procedure.
42525
07fc65c4
GB
42526 * trans.c (tree_transform, case of arithmetic operators): If result
42527 type is private, the gnu_type is the base type of the full view,
6510f4c9 42528 given that the full view itself may be a subtype.
82a4b025 42529
9e94c78f 425302001-12-17 Robert Dewar <dewar@gnat.com>
6510f4c9
GB
42531
42532 * sem_res.adb: Minor reformatting
82a4b025 42533
07fc65c4
GB
42534 * trans.c (tree_transform, case N_Real_Literal): Add missing third
42535 parameter in call to Machine (unknown horrible effects from this
6510f4c9 42536 omission).
82a4b025 42537
6510f4c9
GB
42538 * urealp.h: Add definition of Round_Even for call to Machine
42539 Add third parameter for Machine
82a4b025 42540
9e94c78f 425412001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 42542
07fc65c4 42543 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 42544 predefined units in No_Run_Time mode.
82a4b025 42545
9e94c78f 425462001-12-17 Richard Kenner <kenner@gnat.com>
6510f4c9
GB
42547
42548 * misc.c (insn-codes.h): Now include.
82a4b025 42549
9e94c78f 425502001-12-17 Olivier Hainque <hainque@gnat.com>
6510f4c9 42551
07fc65c4 42552 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
42553 exception handling mechanism
42554 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
42555 to factorize previous code sequences and make them externally callable,
42556 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
42557 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
42558 Use the new notification routines.
82a4b025 42559
9e94c78f 425602001-12-17 Emmanuel Briot <briot@gnat.com>
6510f4c9
GB
42561
42562 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 42563
9e94c78f 425642001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9 42565
07fc65c4 42566 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 42567 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 42568
07fc65c4 42569 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 42570 mode on 32 bits targets.
82a4b025 42571
9e94c78f 425722001-12-17 Vincent Celier <celier@gnat.com>
6510f4c9
GB
42573
42574 * fmap.adb: Initial version.
82a4b025 42575
6510f4c9 42576 * fmap.ads: Initial version.
82a4b025 42577
6510f4c9
GB
42578 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
42579 If search is successfully done, add to mapping.
82a4b025 42580
6510f4c9 42581 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 42582
6510f4c9
GB
42583 * make.adb:
42584 (Gnatmake): Add new local variable Mapping_File_Name.
42585 Create mapping file when using project file(s).
42586 Delete mapping file before exiting.
82a4b025 42587
6510f4c9 42588 * opt.ads (Mapping_File_Name): New variable
82a4b025 42589
6510f4c9 42590 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 42591
6510f4c9 42592 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 42593
6510f4c9 42594 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 42595
07fc65c4 42596 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 42597 (Mapping_File)
82a4b025 42598
6510f4c9 42599 * usage.adb: Add entry for new switch -gnatem.
82a4b025 42600
6510f4c9 42601 * Makefile.in: Add dependencies for fmap.o.
82a4b025 42602
9e94c78f 426032001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 42604
07fc65c4 42605 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
42606 is a package instantiation rewritten as a package body.
42607 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 42608
9e94c78f 426092001-12-17 Gary Dismuke <dismukes@gnat.com>
6510f4c9
GB
42610
42611 * layout.adb:
42612 (Compute_Length): Move conversion to Unsigned to callers.
42613 (Get_Max_Size): Convert Len expression to Unsigned after calls to
42614 Compute_Length and Determine_Range.
42615 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
42616 Compute_Length and Determine_Range.
42617 Above changes fix problem with length computation for supernull arrays
07fc65c4 42618 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 42619 conversion used by Compute_Length.
82a4b025 42620
9e94c78f 426212001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9
GB
42622
42623 * rtsfind.ads:
42624 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
42625 System.Secondary_Stack.
42626 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
42627 in HI-E mode.
42628 Remove unused entity RE_Exception_Data.
82a4b025 42629
6510f4c9 42630 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 42631
6510f4c9
GB
42632 * rident.ads (No_Secondary_Stack): New restriction.
42633
9e94c78f 426342001-12-17 Joel Brobecker <brobecke@gnat.com>
3a77b68d 42635
07fc65c4 42636 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
42637 regarding "Bit_Order Clauses" that was sent to a customer.
42638 Very interesting documentation!
82a4b025 42639
9e94c78f 426402001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d 42641
07fc65c4
GB
42642 * sem_case.adb (Choice_Image): Avoid creating improper character
42643 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 42644 fixes bombs in certain error message cases.
82a4b025 42645
9e94c78f 426462001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d
GB
42647
42648 * a-reatim.adb: Minor reformatting.
82a4b025 42649
9e94c78f 426502001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 42651
07fc65c4
GB
42652 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
42653 case where the formal is an extension of another formal in the current
3a77b68d 42654 unit or in a parent generic unit.
82a4b025 42655
9e94c78f 426562001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d 42657
07fc65c4 42658 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 42659 Minor code clean up.
82a4b025 42660
3a77b68d 42661 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 42662
9e94c78f 426632001-12-17 Gary Dismukes <dismukes@gnat.com>
3a77b68d 42664
07fc65c4 42665 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 42666 when Java_VM.
82a4b025 42667
9e94c78f 426682001-12-17 Robert Dewa <dewar@gnat.com>
3a77b68d
GB
42669
42670 * exp_attr.adb: Minor reformatting
82a4b025 42671
9e94c78f 426722001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 42673
07fc65c4 42674 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
42675 derivations nested within a child unit: verify that the parent
42676 type is declared in an outer scope.
82a4b025 42677
9e94c78f 426782001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
42679
42680 * sem_ch12.adb: Minor reformatting
82a4b025 42681
9e94c78f 426822001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 42683
07fc65c4
GB
42684 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
42685 warning if current unit is a predefined one, from which bodies may
3a77b68d 42686 have been deleted.
82a4b025 42687
9e94c78f 426882001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
42689
42690 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
42691 Fix header format. Add 2001 to copyright date.
82a4b025 42692
07fc65c4 42693 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
42694 which caused CE during compilation if checks were enabled.
42695
9e94c78f 426962001-12-17 Vincent Celier <celier@gnat.com>
79503fdd
GB
42697
42698 * make.adb:
42699 (Switches_Of): New function
42700 (Test_If_Relative_Path): New procedure
42701 (Add_Switches): Use new function Switches_Of
42702 (Collect_Arguments_And_Compile): Use new function Switches_Of.
42703 When using a project file, test if there are any relative
42704 search path. Fail if there are any.
07fc65c4
GB
42705 (Gnatmake): Only add switches for the primary directory when not using
42706 a project file. When using a project file, change directory to the
42707 object directory of the main project file. When using a project file,
42708 test if there are any relative search path. Fail if there are any.
42709 When using a project file, fail if specified executable is relative
42710 path with directory information, and prepend executable, if not
42711 specified as an absolute path, with the exec directory. Make sure
79503fdd 42712 that only one -o switch is transmitted to the linker.
82a4b025 42713
79503fdd 42714 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 42715
79503fdd
GB
42716 * prj-nmsc.adb:
42717 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
42718 when using a non standard naming scheme.
42719 (Check_Ada_Naming_Scheme): Make sure that error messages
42720 do not raise exceptions.
42721 (Is_Illegal_Append): Return True if there is no dot in the suffix.
42722 (Language_Independent_Check): Check the exec directory.
82a4b025 42723
79503fdd 42724 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 42725
79503fdd
GB
42726 * prj.ads:
42727 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
42728 (Project_Data): Add component Exec_Directory
82a4b025 42729
79503fdd 42730 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 42731
79503fdd 42732 * snames.ads: Added Exec_Dir
82a4b025 42733
9e94c78f 427342001-12-17 Robert Dewar <dewar@gnat.com>
79503fdd
GB
42735
42736 * make.adb: Minor reformatting
82a4b025 42737
79503fdd 42738 * prj-nmsc.adb: Minor reformatting
82a4b025 42739
79503fdd 42740 * snames.adb: Updated to match snames.ads
82a4b025 42741
79503fdd
GB
42742 * snames.ads: Alphebetize entries for project file
42743
9e94c78f 427442001-12-17 Ed Schonberg <schonber@gnat.com>
79503fdd 42745
07fc65c4 42746 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 42747 subprogram that was already elaborated.
82a4b025 42748
9e94c78f 427492001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 42750
07fc65c4 42751 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
42752 and Esize if object is referenced via pointer.
42753
9e94c78f 427542001-12-17 Ed Schonberg <schonber@gnat.com>
855ff2e1 42755
07fc65c4 42756 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 42757 is discrete before analyzing choices.
82a4b025 42758
9e94c78f 427592001-12-17 Joel Brobecker <brobecke@gnat.com>
855ff2e1 42760
07fc65c4
GB
42761 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
42762 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
42763 intended for the debugger.
42764 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 42765
9e94c78f 427662001-12-17 Robert Dewar <dewar@gnat.com>
855ff2e1
GB
42767
42768 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 42769
855ff2e1 42770 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 42771
855ff2e1 42772 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 42773
855ff2e1 42774 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 42775
855ff2e1 42776 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 42777
855ff2e1
GB
42778 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
42779
9e94c78f 427802001-12-17 Robert Dewar <dewar@gnat.com>
c1c22e7a
GB
42781
42782 * ali.adb: Type reference does not reset current file.
82a4b025 42783
c1c22e7a 42784 * ali.adb: Recognize and scan renaming reference
82a4b025 42785
c1c22e7a 42786 * ali.ads: Add spec for storing renaming references.
82a4b025 42787
c1c22e7a 42788 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 42789
c1c22e7a 42790 * lib-xref.adb: Implement output of renaming reference.
82a4b025 42791
c1c22e7a
GB
42792 * checks.adb:
42793 (Determine_Range): Document local variables
42794 (Determine_Range): Make sure Hbound is initialized. It looks as though
42795 there could be a real problem here with an uninitialized reference
42796 to Hbound, but no actual example of failure has been found.
82a4b025 42797
9e94c78f 427982001-12-17 Laurent Pautet <pautet@gnat.com>
c1c22e7a
GB
42799
42800 * g-socket.ads:
42801 Fix comment of Shutdown_Socket and Close_Socket. These functions
42802 should not fail silently because if they are called twice, this
42803 probably means that there is a race condition in the user program.
42804 Anyway, this behaviour is consistent with the rest of this unit.
42805 When an error occurs, an exception is raised with the error message
42806 as exception message.
42807
9e94c78f 428082001-12-17 Robert Dewar <dewar@gnat.com>
7eb7bb07 42809
07fc65c4 42810 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 42811 that it happens before modification of Sloc values for -gnatD.
82a4b025 42812
07fc65c4 42813 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 42814 so that it happens before modification of Sloc values for -gnatD.
82a4b025 42815
7eb7bb07
RD
42816 * switch.adb: Minor reformatting
42817
b6434700
RH
428182001-12-15 Richard Henderson <rth@redhat.com>
42819
42820 * sem_ch7.adb: Wrap comment.
42821
44d6a706
JM
428222001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42823
42824 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
42825 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
42826 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
42827 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
42828 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
42829 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
42830 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
42831 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
42832 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
42833 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
42834 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
42835 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
42836 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
42837 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
42838 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
42839 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
42840 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
42841 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
42842 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
42843 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
42844 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
42845 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
42846 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
42847 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
42848 spelling errors.
42849
9e94c78f 428502001-12-14 Vincent Celier <celier@gnat.com>
226ada7a 42851
07fc65c4 42852 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 42853 put the .dg file in the same directory as the object file.
82a4b025 42854
9e94c78f 428552001-12-14 Robert Dewar <dewar@gnat.com>
226ada7a
GB
42856
42857 * osint.adb: Minor reformatting
82a4b025 42858
07fc65c4 42859 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 42860 instantiation references.
82a4b025 42861
226ada7a 42862 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 42863
07fc65c4 42864 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 42865 instantiation references
82a4b025 42866
226ada7a 42867 * ali.ads: Add spec for storing instantiation references
82a4b025 42868
226ada7a 42869 * bindusg.adb: Minor reformatting
82a4b025 42870
226ada7a 42871 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 42872
226ada7a 42873 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 42874
226ada7a 42875 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 42876
226ada7a 42877 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 42878
226ada7a
GB
42879 * csets.ads:
42880 Fix header format
42881 Add 2001 to copyright date
42882 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 42883
9e94c78f 428842001-12-14 Matt Gingell <gingell@gnat.com>
226ada7a 42885
07fc65c4 42886 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 42887 expression.
82a4b025 42888
9e94c78f 428892001-12-14 Richard Kenner <kenner@gnat.com>
226ada7a 42890
07fc65c4 42891 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 42892 if operand is CONSTRUCTOR.
82a4b025 42893
9e94c78f 428942001-12-14 Ed Schonberg <schonber@gnat.com>
226ada7a 42895
07fc65c4
GB
42896 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
42897 before emiting check on right-hand side, so that exception information
226ada7a
GB
42898 is correct.
42899
9e94c78f 429002001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 42901
07fc65c4 42902 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 42903 if just annotating types and non-constant.
82a4b025 42904
9e94c78f 429052001-12-14 Vincent Celier <celier@gnat.com>
226ada7a
GB
42906
42907 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
42908 Default_Ada_...
82a4b025 42909
07fc65c4 42910 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
42911 Remove functions.
42912 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 42913
07fc65c4 42914 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
42915 Remove functions.
42916 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
42917
9b94bf9e
JM
429182001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
42919
42920 * ChangeLog: Remove piece of diff output.
42921
9e94c78f 429222001-12-14 Geert Bosch <bosch@gnat.com>
449d2be3
GB
42923
42924 * config-lang.in: Update copyright notice
42925
42926 * layout.adb: Remove commented out code.
42927
42928 * mdllfile.ads: Update copyright notice. Fix header format.
42929
42930 * sem_case.ads: Likewise.
42931
42932 * sem_ch3.adb: Minor reformatting.
42933
9e94c78f 429342001-12-12 Geert Bosch <bosch@gnat.com>
e5bd5cb4
GB
42935
42936 * freeze.ads: Update copyright date.
42937
42938 * g-comlin.ads: Minor reformatting.
42939
42940 * gnat-style.texi: Fix typo.
42941
9e94c78f 429422001-12-12 Geert Bosch <bosch@gnat.com>
b468d8ec
GB
42943
42944 * einfo.h: Regenerate.
42945
9e94c78f 429462001-12-12 Ed Schonberg <schonber@gnat.com>
ed7da216 42947
07fc65c4 42948 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 42949 on known node types, rather than untyped fields. Further cleanups.
82a4b025 42950
9e94c78f 429512001-12-12 Robert Dewar <dewar@gnat.com>
ed7da216
GB
42952
42953 * sem_ch12.adb:
42954 (Save_Entity_Descendant): Minor comment update.
42955 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 42956 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 42957 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 42958 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 42959 reference nodes, since this field is used in such nodes.
82a4b025 42960
ed7da216
GB
42961 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
42962
9e94c78f 429632001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
42964
42965 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 42966
de76a39c 42967 * par-ch12.adb: Minor reformatting
82a4b025 42968
de76a39c 42969 * prj-dect.ads: Fix copyright header
82a4b025 42970
07fc65c4 42971 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 42972 inputs fit in 32 bits, but the result still overflows.
82a4b025 42973
de76a39c 42974 * s-fatgen.ads: Minor comment improvement
82a4b025 42975
9e94c78f 429762001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 42977
07fc65c4
GB
42978 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
42979 formal derived type, look for an inherited component from the full
de76a39c 42980 view of the parent, if any.
82a4b025 42981
9e94c78f 429822001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
42983
42984 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 42985
07fc65c4
GB
42986 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
42987 ensure that the alignment of objects with address clauses is
de76a39c
GB
42988 appropriate, and raise PE if not.
42989
07fc65c4 42990 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 42991 Exp_Pakd.Known_Aligned_Enough
82a4b025 42992
de76a39c
GB
42993 * mdllfile.ads: Minor reformatting
42994
42995 * mlib-fil.ads: Minor reformatting
82a4b025 42996
9e94c78f 429972001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 42998
07fc65c4
GB
42999 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
43000 fix to any component reference if enclosing record has non-standard
de76a39c 43001 representation.
82a4b025 43002
9e94c78f 430032001-12-12 Vincent Celier <celier@gnat.com>
de76a39c 43004
07fc65c4 43005 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 43006 Iteration
82a4b025 43007
9e94c78f 430082001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 43009
07fc65c4 43010 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 43011 sem_attr.
82a4b025 43012
9e94c78f 430132001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
43014
43015 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 43016
9e94c78f 430172001-12-12 Emmanuel Briot <briot@gnat.com>
de76a39c
GB
43018
43019 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
43020 and it adds dependencies to system.io.
82a4b025 43021
9e94c78f 430222001-12-12 Pascal Obry <obry@gnat.com>
de76a39c 43023
07fc65c4 43024 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
43025 variable name.
43026
9e94c78f 430272001-12-11 Ed Schonberg <schonber@gnat.com>
0b09835f
ES
43028
43029 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
43030 that is the parent of other generics, the instance body replaces the
43031 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
43032 that is visible in clients and within the body.
43033
9e94c78f 430342001-12-11 Vincent Celier <celier@gnat.com>
598c3446
GB
43035
43036 * gnatmain.adb: Initial version.
82a4b025 43037
598c3446 43038 * gnatmain.ads: Initial version.
82a4b025 43039
598c3446 43040 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 43041
598c3446 43042 * snames.adb: Updated to match snames.ads.
82a4b025 43043
598c3446 43044 * snames.ads: Added Gnatstub.
82a4b025 43045
9e94c78f 430462001-12-11 Vincent Celier <celier@gnat.com>
598c3446 43047
07fc65c4 43048 * prj-attr.adb (Initialization_Data): Change name from
598c3446 43049 Initialisation_Data.
82a4b025 43050
9e94c78f 430512001-12-11 Emmanuel Briot <briot@gnat.com>
598c3446
GB
43052
43053 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
43054 + and * applied to backslashed expressions like \r.
82a4b025 43055
9e94c78f 430562001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
598c3446 43057
07fc65c4 43058 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 43059 subtype of String_List.
82a4b025 43060
9e94c78f 430612001-12-11 Robert Dewar <dewar@gnat.com>
598c3446
GB
43062
43063 * g-os_lib.ads: Change copyright to FSF
43064 Add comments for String_List type
82a4b025 43065
9e94c78f 430662001-12-11 Vincent Celier <celier@gnat.com>
598c3446 43067
07fc65c4 43068 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
43069 string to the buffer).
43070
9e94c78f 430712001-12-11 Ed Schonberg <schonber@gnat.com>
7fb754a1
GB
43072
43073 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
43074 sem_attr.
82a4b025 43075
7fb754a1 43076 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
43077 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
43078 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
43079 constraint error.
43080
9e94c78f 430812001-12-11 Robert Dewar <dewar@gnat.com>
7fb754a1 43082
07fc65c4 43083 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 43084 handled.
82a4b025 43085
9e94c78f 430862001-12-11 Ed Schonber <schonber@gnat.com>
7fb754a1 43087
07fc65c4 43088 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 43089 renamed unit before checking for recursive instantiations.
82a4b025 43090
9e94c78f 430912001-12-11 Emmanuel Briot <briot@gnat.com>
7fb754a1
GB
43092
43093 * prj.ads: Add comments for some of the fields.
43094
9e94c78f 430952001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc 43096
07fc65c4 43097 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 43098 the main unit if they are not otherwise referenced.
82a4b025 43099
9e94c78f 431002001-12-11 Ed Schonberg <schonber@gnat.com>
0873bafc 43101
07fc65c4 43102 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 43103 code and diagnose additional illegal uses
82a4b025 43104
07fc65c4 43105 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 43106 object only if the prefix is.
82a4b025 43107
9e94c78f 431082001-12-11 Vincent Celier <celier@gnat.com>
0873bafc
GB
43109
43110 * g-diopit.adb: Initial version.
82a4b025 43111
0873bafc 43112 * g-diopit.ads: Initial version.
82a4b025 43113
0873bafc
GB
43114 * g-dirope.adb:
43115 (Expand_Path): Avoid use of Unbounded_String
43116 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 43117
0873bafc 43118 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 43119
9e94c78f 431202001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
43121
43122 * sem_attr.adb: Minor reformatting
43123
9e94c78f 431242001-12-11 Ed Schonberg <schonber@gnat.com>
d087cd96
GB
43125
43126 * sem_ch3.adb: Clarify some ???.
82a4b025 43127
9e94c78f 431282001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96 43129
07fc65c4 43130 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 43131 Exp_Pakd.Known_Aligned_Enough
82a4b025 43132
07fc65c4 43133 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
43134 version is moved to Exp_Ch13.
43135
9e94c78f 431362001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96
GB
43137
43138 * einfo.ads: Minor reformatting
82a4b025 43139
d087cd96 43140 * exp_ch5.adb: Add comment for previous.change
82a4b025 43141
d087cd96 43142 * ali.adb: New interface for extended typeref stuff.
82a4b025 43143
d087cd96 43144 * ali.ads: New interface for typeref stuff.
82a4b025 43145
d087cd96 43146 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 43147
d087cd96 43148 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 43149
d087cd96 43150 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 43151
07fc65c4
GB
43152 * lib-xref.adb: Extend generation of <..> notation to cover
43153 subtype/object types. Note that this is a complete rewrite,
43154 getting rid of the very nasty quadratic algorithm previously
d087cd96 43155 used for derived type output.
82a4b025 43156
07fc65c4
GB
43157 * lib-xref.ads: Extend description of <..> notation to cover
43158 subtype/object types. Uses {..} for these other cases.
d087cd96 43159 Also use (..) for pointer types.
82a4b025 43160
d087cd96 43161 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 43162
07fc65c4 43163 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
43164 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
43165
9e94c78f 431662001-12-11 Vincent Celier <celier@gnat.com>
290986ed
GB
43167
43168 * gnatcmd.adb:
43169 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
43170 Changed /BIND_ONLY to /ACTIONS=BIND
43171 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 43172
290986ed
GB
431732001-12-11 Ed Schonberg <schonber@gnat.com>
43174
43175 * sem_ch8.adb (Find_Selected_Component): improved search for a
43176 candidate package in case of error.
82a4b025 43177
290986ed
GB
43178 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
43179 chain back on scope stack before reinstalling use clauses.
82a4b025 43180
290986ed
GB
43181 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
43182 is enabled, do not kill the code for the condition, to preserve
43183 warning.
43184
9e94c78f 431852001-12-11 Robert Dewar <dewar@gnat.com>
84157f51 43186
07fc65c4 43187 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
43188 of conversion, not to result of conversion.
43189
9e94c78f 431902001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 43191
07fc65c4
GB
43192 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
43193 before freezing parent. If the declarations are mutually recursive,
43194 an access to the current record type may be frozen before the
84157f51
GB
43195 derivation is complete.
43196
9e94c78f 431972001-12-05 Vincent Celier <celier@gnat.com>
7ffa903f 43198
07fc65c4 43199 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 43200 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 43201
7ffa903f
VC
43202 * opt.ads:
43203 (Bind_Only): New Flag
43204 (Link_Only): New flag
82a4b025 43205
07fc65c4 43206 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 43207 and -l (Link_Only)
82a4b025 43208
7ffa903f 43209 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 43210
7ffa903f
VC
43211 * make.adb:
43212 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
43213 (Gnatmake): Set the step flags. Only perform a step if the
43214 corresponding step flag is True.
43215 (Scan_Make_Arg): Reset the bind and link step flags when -u
43216 or -gnatc has been specified.
43217
9e94c78f 432182001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 43219
07fc65c4 43220 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 43221 get bounds from right operand.
82a4b025 43222
f91b40db 43223 * sem_eval.adb: Minor reformatting
82a4b025 43224
07fc65c4 43225 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 43226 than Index'First, its lower bound may be different from 1.
82a4b025 43227
07fc65c4 43228 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 43229 and C48009J
82a4b025 43230
9e94c78f 432312001-12-05 Vincent Celier <celier@gnat.com>
f91b40db
GB
43232
43233 * prj-nmsc.adb Minor reformatting
82a4b025 43234
07fc65c4 43235 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 43236 set and libraries are not supported.
82a4b025 43237
9e94c78f 432382001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 43239
07fc65c4
GB
43240 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
43241 private view explicitly, so the back-end can treat as a global
f91b40db
GB
43242 when appropriate.
43243
9e94c78f 432442001-12-05 Ed Schonberg <schonber@gnat.com>
45d04cbb
GB
43245
43246 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
43247 unit, always replace instance node with new body, for ASIS use.
43248
9e94c78f 432492001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 43250
07fc65c4
GB
43251 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
43252 libraries are not supported and both attributes Library_Name and
45d04cbb 43253 Library_Dir are specified.
82a4b025 43254
07fc65c4 43255 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 43256 first term.
82a4b025 43257
45d04cbb
GB
43258 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
43259 (prj-nmsc is now importing MLib.Tgt)
82a4b025 43260
45d04cbb
GB
43261 * prj-proc.adb: Put the change indicated above that was forgotten.
43262
9e94c78f 432632001-12-05 Robert Dewar <dewar@gnat.com>
84436014
RD
43264
43265 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
43266
9e94c78f 432672001-12-05 Ed Schonberg <schonber@gnat.com>
7ae0dcd8
ES
43268
43269 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
43270 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 43271
7ae0dcd8
ES
43272 * sem_ch3.adb: Minor reformatting
43273
9e94c78f 432742001-12-05 Robert Dewar <dewar@gnat.com>
c9a4817d 43275
07fc65c4 43276 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 43277 Minor reformatting
82a4b025 43278
c9a4817d
RD
43279 * exp_ch6.adb: Minor reformatting
43280 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
43281 a parameter whose root type is System.Address, since treating such
43282 subprograms as pure in the code generator is almost surely a mistake
43283 that will lead to unexpected results.
82a4b025 43284
07fc65c4 43285 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 43286 change handling of conversions.
82a4b025 43287
c9a4817d
RD
43288 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
43289
9e94c78f 432902001-12-05 Ed Schonberg <schonber@gnat.com>
2514b839 43291
07fc65c4
GB
43292 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
43293 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
43294 declaration.
43295
9e94c78f 432962001-12-05 Robert Dewar <dewar@gnat.com>
457b6274 43297
07fc65c4 43298 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
43299 Fixes compilation abandoned bomb in B24009B.
43300
9e94c78f 433012001-12-05 Ed Schonberg <schonber@gnat.com>
19349925
ES
43302
43303 * sem_ch12.adb:
43304 Document use of Associated_Node on Selected_Components.
43305 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
43306 to clarify use of untyped descendant fields.
43307
9e94c78f 433082001-12-05 Robert Dewar <dewar@gnat.com>
6663c393
RD
43309
43310 * prj-dect.ads: Add ??? comment
43311 Add 2001 to copyright notice (was not done in after all)
82a4b025 43312
6663c393 43313 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 43314
6663c393 43315 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 43316
6663c393
RD
43317 * snames.ads: Minor reformatting
43318
9e94c78f 433192001-12-05 Geert Bosch <bosch@gnat.com>
d7b2a6af
GB
43320
43321 * snames.adb: Autoupdate
43322
9e94c78f 433232001-12-05 Vincent Celier <celier@gnat.com>
fbc9a404
VC
43324
43325 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 43326
fbc9a404 43327 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 43328
fbc9a404 43329 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 43330
fbc9a404 43331 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 43332
07fc65c4 43333 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 43334 Tok_Extends.
82a4b025 43335
fbc9a404 43336 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 43337
fbc9a404 43338 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 43339
fbc9a404 43340 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 43341
fbc9a404
VC
43342 * snames.ads: Change modifying to extends.
43343
9e94c78f 433442001-12-05 Robert Dewar <dewar@gnat.com>
7cff0b1b 43345
07fc65c4 43346 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 43347 do this after all.
82a4b025 43348
07fc65c4 43349 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
43350 do this after all. Add 2001 to copyright notice
43351
9e94c78f 433522001-12-04 Geert Bosch <bosch@gnat.com>
4f56ebb7
GB
43353
43354 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
43355
9e94c78f 433562001-12-04 Robert Dewar <dewar@gnat.com>
053defdf 43357
07fc65c4
GB
43358 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
43359 location if we already have errors. Stops some cases of cascaded
053defdf 43360 errors.
82a4b025 43361
053defdf
RD
43362 * errout.adb: Improve comment.
43363
9e94c78f 433642001-12-04 Robert Dewar <dewar@gnat.com>
f311e166
RD
43365
43366 * sem_ch12.adb:
43367 (Analyze_Formal_Type_Definition): Defend against Error.
43368 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 43369
07fc65c4 43370 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
43371 remove following semicolon if present. Removes cascaded error.
43372
9e94c78f 433732001-12-04 Douglas B. Rupp <rupp@gnat.com>
d61bd65a
DR
43374
43375 * bindgen.adb:
43376 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
43377 exceptions equals 0.
43378 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
43379 Fixes PIWG E tests (which have to be run with -gnatL).
43380
9e94c78f 433812001-12-04 Robert Dewar <dewar@gnat.com>
4ba603e2
RD
43382
43383 * einfo.ads: Minor reformatting
43384
9e94c78f 433852001-12-04 Ed Schonberg <schonber@gnat.com>
57568d91 43386
07fc65c4
GB
43387 * einfo.ads: Block_Node points to the identifier of the block, not to
43388 the block node itself, to preserve the link when the block is
43389 rewritten, e.g. within an if-statement with a static condition.
82a4b025 43390
07fc65c4 43391 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 43392 entity using new meaning of Block_Node.
82a4b025 43393
07fc65c4 43394 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
43395 identifier of block node, rather than to node itself.
43396
9e94c78f 433972001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 43398
0815d36a
GD
43399 * layout.adb:
43400 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
43401 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 43402 because the Vname component does not exist at this point and will
0815d36a
GD
43403 fail name resolution. Also set Analyzed.
43404 Remove with and use of Sem_Res.
43405
9e94c78f 434062001-12-04 Arnaud Charlet <charlet@gnat.com>
edc0f304
AC
43407
43408 * Makefile.in: (HIE_SOURCES): add s-fat*.
43409
9e94c78f 434102001-12-04 Robert Dewar <dewar@gnat.com>
32213142
RD
43411
43412 * sem_attr.adb:
43413 (Compile_Time_Known_Attribute): New procedure.
43414 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
43415 proper range check.
43416
9e94c78f 434172001-12-04 Ed Schonberg <schonber@gnat.com>
c0def2ad 43418
07fc65c4 43419 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
43420 processing discriminants to diagnose illegal default values.
43421
9e94c78f 434222001-12-04 Ed Schonberg <schonber@gnat.com>
ee0a48c5 43423
07fc65c4
GB
43424 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
43425 access discriminant within a type extension that constrains its
ee0a48c5
ES
43426 parent discriminants.
43427
9e94c78f 434282001-12-04 Ed Schonberg <schonber@gnat.com>
dd5875a6 43429
07fc65c4 43430 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 43431 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 43432
07fc65c4 43433 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
43434 type definition is illegal.
43435 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
43436 misplaced.
43437
9e94c78f 434382001-12-04 Ed Schonberg <schonber@gnat.com>
c2a41e57 43439
07fc65c4 43440 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
43441 constants.
43442
9e94c78f 434432001-12-04 Robert Dewar <dewar@gnat.com>
0ae84753
RD
43444
43445 * errout.adb: Minor reformatting
43446
9e94c78f 434472001-12-04 Robert Dewar <dewar@gnat.com>
63db260e
RD
43448
43449 * exp_util.adb: Minor reformatting from last change
82a4b025 43450
07fc65c4
GB
43451 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
43452 which is a rewriting of an expression, traverse the original
63db260e
RD
43453 expression to remove warnings that may have been posted on it.
43454
9e94c78f 434552001-12-04 Ed Schonberg <schonber@gnat.com>
c6d289f4 43456
07fc65c4 43457 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
43458 record that has other packed components.
43459
9e94c78f 434602001-12-04 Douglass B. Rupp <rupp@gnat.com>
5917e80d
DR
43461
43462 * adaint.c: Minor cleanups.
43463
9e94c78f 434642001-12-04 Douglass B. Rupp <rupp@gnat.com>
2c70f9dd
DR
43465
43466 * adaint.c: Do not use utime.h on vxworks.
43467
9e94c78f 434682001-12-04 Arnaud Charlet <charlet@gnat.com>
e59b3387 43469
07fc65c4 43470 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
43471 more confusion than it solves.
43472
9e94c78f 434732001-12-04 Geert bosch <bosch@gnat.com>
e288604a
GB
43474
43475 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
43476
5ac21013
GB
434772001-12-04 Geert Bosch <bosch@gnat.com>
43478
07fc65c4 43479 * Makefile.in (update-sources): New target.
5ac21013
GB
43480 For use by gcc_release script.
43481
9e94c78f 434822001-12-04 Ed Schonberg <schonber@gnat.com>
7dd5bd5e 43483
07fc65c4 43484 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
43485 a configuration pragma, it is now legal wherever a pragma can appear.
43486
a078a589
ZW
434872001-12-04 Zack Weinberg <zack@codesourcery.com>
43488
43489 * Makefile.in: Don't set ALL. Delete @cross_defines@,
43490 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
43491 is now @CROSS@ -DIN_GCC; update comment.
43492
9e94c78f 434932001-12-04 Robert Dewar <dewar@gnat.com>
0839863c
GB
43494
43495 * einfo.adb (Has_Pragma_Pure_Function): New flag.
43496 Fix problem that stopped ceinfo from working
82a4b025 43497
0839863c 43498 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 43499
0839863c
GB
43500 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
43501
9e94c78f 435022001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
43503
43504 * gnatchop.adb:
43505 (File_Time_Stamp): New procedure.
43506 (Preserve_Mode): New boolean.
43507 (Write_Unit): Pass time stamp.
43508 Implement -p switch (preserve time stamps).
82a4b025 43509
9678de49 43510 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 43511
9678de49 43512 * gnatchop.adb: Do usage info for -p switch
82a4b025 43513
9678de49 43514 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 43515
9678de49 43516 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 43517
9678de49
DR
43518 * adaint.h: Fix typo
43519
9e94c78f 435202001-12-03 Robert Dewar <dewar@gnat.com>
3b9a13c4 43521
667e5c5d 43522 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 43523 have Associated_Node.
3b9a13c4 43524
9e94c78f 435252001-12-03 Robert Dewar <dewar@gnat.com>
767b404e
RD
43526
43527 * prj-proc.adb: Minor reformatting
667e5c5d 43528
767b404e
RD
43529 * make.adb: Minor reformatting
43530
9e94c78f 435312001-12-03 Geert Bosch <bosch@gnat.com>
11ac71ba 43532
667e5c5d 43533 * make.adb: Minor reformatting.
11ac71ba 43534
ef3d4d6e 435352001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
43536
43537 * sem_ch12.adb: Minor reformatting
43538
9e94c78f 435392001-12-03 Ed Schonberg <schonber@gnat.com>
d6d32b24 43540
667e5c5d
AJ
43541 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
43542 push Standard on the stack before analyzing the instance body,
d6d32b24 43543 in order to have a clean visibility environment.
667e5c5d
AJ
43544
43545 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 43546
9e94c78f 435472001-12-03 Ed Schonberg <schonber@gnat.com>
13f08f03 43548
667e5c5d 43549 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
43550 instantiation of a body that contains an inlined body.
43551
9e94c78f 435522001-12-03 Ed Schonberg <schonber@gnat.com>
3bd6c100
ES
43553
43554 * sem_ch12.adb:
43555 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
43556 to prevent freezing within formal packages.
43557 (Freeze_Subprogram_Body): If body comes from another instance that
43558 appeared before its own body, place freeze node at end of current
43559 declarative part, to prevent a back-end crash.
43560 (Inline_Instance_Body): Handle properly a package instance within
43561 a subprogram instance that is a child unit.
43562
58d07d8f
GS
435632001-12-01 Graham Stott <grahams@redhat.com>
43564
43565 * Makefile.in (misc.o): Add missing $(srcdir) prefix
43566 and add optabs.h dependency.
43567
43568 * misc.c: Include optabs.h
43569 (gnat_tree_code_type): Make static and const.
43570 (gnat_tree_code_length): Likewise.
43571 (gnat_tree_code_name): Likewise.
43572 (update_setjmp_buf): Obtain operands mode from insn_data.
43573
c87222f0
RH
435742001-11-29 Richard Henderson <rth@redhat.com>
43575
43576 * init.c: Remove obsolete dwarf2 frame.h section.
43577
d3945f0a
JM
435782001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
43579
43580 * Make-lang.in (ada.generated-manpages): New dummy target.
43581
9e94c78f 435822001-11-29 Ed Schonberg <schonber@gnat.com>
9f639397 43583
667e5c5d
AJ
43584 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
43585 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
43586 ACATS B460005.
43587
9e94c78f 435882001-11-28 Geert Bosch <bosch@gnat.com>
c835e5c6
GB
43589
43590 * init.c: Minor whitespace changes.
43591
9e94c78f 435922001-11-28 Doug Rupp <rupp@gnat.com>
49bb4548 43593
667e5c5d 43594 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
43595 signal stack.
43596
ea2417e5
ZW
435972001-11-28 Zack Weinberg <zack@codesourcery.com>
43598
43599 * misc.c (gnat_expand_constant): Move declaration above
43600 definition of lang_hooks.
43601 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
43602 (gnat_init): lang_expand_constant no longer exists.
43603
43604 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
43605 always have vprintf.
43606 (gnat_init): Always call set_internal_error_function.
43607
f8e0aa73
AJ
436082001-11-27 Andreas Jaeger <aj@suse.de>
43609
43610 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
43611
d99b0e79
LG
436122001-11-27 Laurent Guerby <guerby@acm.org>
43613
43614 * Makefile.in: Regenerate Ada dependencies.
43615
3f0496e5
RH
436162001-11-26 Richard Henderson <rth@redhat.com>
43617
43618 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
43619 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
43620 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
43621
92fa4733
LG
436222001-11-25 Laurent Guerby <guerby@acm.org>
43623
43624 * sysdep.c (rts_get_*): Fix style.
43625
07626501
LG
436262001-11-19 Laurent Guerby <guerby@acm.org>
43627
43628 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
43629 since it is of no apparent use and cause warnings.
43630
22703ccc
NB
436312001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
43632
43633 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
43634 static too.
43635 (gnat_init): Don't return NULL.
43636 (finish_parse): Remove.
43637
b0df4321
LG
436382001-11-17 Laurent Guerby <guerby@acm.org>
43639
43640 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
43641 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
43642 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
43643 * lang-spec.h: Add missing struct field to silence warnings.
43644 * sysdep.c (rts_get_*): Provide K&R prototype.
43645 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
43646 * traceback.c (Unlock_Task, Lock_Task): Likewise.
43647 * tracebak.c (__gnat_backtrace): Remove unused variable.
43648 * utils.c (end_subprog_body): Move to K&R style.
43649
d215024f
RK
43650Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43651
43652 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
43653
f5e99456
NB
436542001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
43655
43656 * misc.c (gnat_init): Change prototype. Include the
43657 functionality of the old init_parse and init_decl_processing.
43658 (gnat_init_decl_processing): New prototype.
43659 (init_parse): Remove.
43660 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
43661
5d69f816
NB
436622001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
43663
43664 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
43665 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
43666 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
43667 set_yydebug): Remove.
43668
3ac88239
NB
436692001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
43670
43671 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
43672 (struct lang_hooks): Constify.
43673 (language_string, lang_identify): Remove.
43674 * utils.c (init_decl_processing): Update.
43675
d23c55c2
NB
436762001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
43677
43678 * misc.c: Include langhooks-def.h.
43679 * Makefile.in: Update.
43680
9e94c78f 436812001-10-30 Robert Dewar <dewar@gnat.com>
04a1b79c
RD
43682
43683 * style.adb:
43684 (Check_Identifier): Rewrite circuit to be compatible with use of letters
43685 in the upper half of ASCII.
43686 (Check_Identifier): Minor reformatting
43687
9e94c78f 436882001-10-30 Geert Bosch <bosch@gnat.com>
81fa2d39 43689
f8e0aa73 43690 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
43691 Freeze_Entity.
43692
9e94c78f 436932001-10-30 Robert Dewar <dewar@gnat.com>
ffc5527f
RD
43694
43695 * a-reatim.ads: Minor reformatting
43696
9e94c78f 436972001-10-30 Robert Dewar <dewar@gnat.com>
865335eb 43698
f8e0aa73 43699 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
43700 undocumented declarations.
43701
9e94c78f 437022001-10-30 Pascal Obry <obry@gnat.com>
5e257178 43703
f8e0aa73 43704 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
43705 to the binder and linker.
43706 Minor style fix.
f8e0aa73 43707
5e257178
PO
43708 * mdll.ads: Fix layout. Update copyright notice.
43709
43710 * mdll.adb: Fix layout. Update copyright notice.
43711
9e94c78f 437122001-10-30 Robert Dewar <dewar@gnat.com>
1753e0ad
RD
43713
43714 * usage.adb: Minor fix to output for -gnaty.
43715
9e94c78f 437162001-10-30 Ed Schonberg <schonber@gnat.com>
84bfdde0 43717
f8e0aa73
AJ
43718 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
43719 to accommodate all its possible values.
84bfdde0 43720
f8e0aa73 43721 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
43722 and of small absolute values of T.
43723
9e94c78f 437242001-10-30 Richard Kenner <kenner@gnat.com>
c296e5fc 43725
f8e0aa73
AJ
43726 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
43727 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
43728 fixes ACATS failures.
43729
9e94c78f 437302001-10-30 Geert Bosch <bosch@gnat.com>
07c809df
GB
43731
43732 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
43733 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
43734
9e94c78f 437352001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 43736
54d22416 43737 * bindusg.adb: Undocument -f switch.
f8e0aa73 43738
54d22416 43739 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
43740
43741 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 43742 obsolescent.
f8e0aa73 43743
54d22416 43744 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 43745
54d22416
RD
43746 * gnatbind.adb: Minor update of warning msg.
43747
9e94c78f 437482001-10-30 Vincent Celier <celier@gnat.com>
af5cf6f8 43749
f8e0aa73 43750 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 43751 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 43752 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
43753 or MEDIUM or HIGH)
43754
9e94c78f 437552001-10-30 Geert Bosch <bosch@gnat.com>
984bc4c3
GB
43756
43757 * decl.c: Minor whitespace fixes.
43758
9e94c78f 437592001-10-30 Richard Kenner <kenner@gnat.com>
5dece937
RK
43760
43761 * utils2.c (build_allocator): Test for SIZE overflow in array case too
43762
9e94c78f 437632001-10-30 Geert Bosch <bosch@gnat.com>
de4bf6cb 43764
f8e0aa73 43765 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 43766 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 43767
de4bf6cb
GB
43768 * layout.adb:
43769 (Get_Max_Size): Use variant record for tracking value/expression.
43770 Makes logic clearer and prevents warnings for uninitialized variables.
43771 (Layout_Array_Type): Use variant record for tracking value/expression.
43772 Makes logic clearer and prevents warnings for uninitialized variables.
43773
9e94c78f 437742001-10-30 Robert Dewar <dewar@gnat.com>
f5e44987
RD
43775
43776 * lib.adb: Minor reformatting
43777
43778 * s-taprop.ads: Minor reformatting
43779
45659035 437802001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 43781
45659035
GB
43782 * init.c:
43783 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
43784 const.
43785 (_gnat_error_handler): Make MSG const.
43786
9e94c78f 437872001-10-29 Richard Kenner <kenner@gnat.com>
45659035
GB
43788
43789 * sysdep.c: Fix localtime_r problem on LynxOS.
43790 Also remove #elif to avoid warnings.
f8e0aa73
AJ
43791
43792 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 43793 used by this.
f8e0aa73 43794
45659035
GB
43795 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
43796
638e383e
JM
437972001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
43798
43799 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
43800 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
43801 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
43802 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
43803 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
43804 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
43805 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
43806 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
43807 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
43808 types.ads, urealp.adb: Fix spelling errors.
43809
9e94c78f 438102001-10-27 Laurent Guerby <guerby@acm.org>
97f6baa0
LG
43811
43812 * trans.c (gigi): Fix non determinism leading to bootstrap
43813 comparison failures for debugging information.
43814
46b58b8c
FW
438152001-10-26 Florian Weimer <fw@deneb.enyo.de>
43816
43817 * gnat_rm.texi: Use @./@: where appropriate.
43818
9e94c78f 438192001-10-26 Robert Dewar <dewar@gnat.com>
30151c7b
RD
43820
43821 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
43822
9e94c78f 438232001-10-26 Richard Kenner <kenner@gnat.com>
c0b1738d
RK
43824
43825 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
43826
9e94c78f 438272001-10-26 Richard Kenner <kenner@gnat.com>
5b09c153 43828
f8e0aa73 43829 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
43830 implication that compiler is modifying the size.
43831
9e94c78f 438322001-10-26 Robert Dewar <dewar@gnat.com>
4d553668
RD
43833
43834 * prj-util.adb: Minor reformatting. Fix bad header format.
43835
9e94c78f 438362001-10-26 Robert Dewar <dewar@gnat.com>
3e542a58
RD
43837
43838 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 43839
3e542a58 43840 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
43841
43842 * sem_ch12.adb: Change Node4 to Associated_Node. Change
43843 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
43844 much more narrowly in places where needed. These are cleanups.
43845
9e94c78f 438462001-10-26 Joel Brobecker <brobecke@gnat.com>
0bf08bfe
JB
43847
43848 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 43849
0bf08bfe
JB
43850 * 5ztaprop.adb:
43851 (Initialize_TCB): Initialize thread ID to null, to be able to verify
43852 later that this field has been set.
43853 (Finalize_TCB): ditto.
43854 (Suspend_Task): Verify that the thread ID is not null before using it.
43855 (Resume_Task): ditto.
f8e0aa73 43856
0bf08bfe
JB
43857 * s-tasdeb.adb:
43858 (Resume_All_Tasks): Lock the tasks list before using it.
43859 (Suspend_All_Tasks): ditto.
43860
9e94c78f 438612001-10-26 Richard Kenner <kenner@gnat.com>
7a3a8c06 43862
f8e0aa73 43863 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
43864 Make constant variant of designated type for Is_Access_Constant.
43865 Call update_pointer_to with main variant.
f8e0aa73
AJ
43866
43867 * trans.c (process_freeze_entity, process_type):
7a3a8c06 43868 Call update_pointer_to on main variant.
f8e0aa73 43869
7a3a8c06
RK
43870 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
43871 If main variant, update all other variants.
f8e0aa73
AJ
43872
43873 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
43874 TREE_STATIC.
43875
9e94c78f 438762001-10-26 Robert Dewar <dewar@gnat.com>
a160babb
RD
43877
43878 * prj-util.adb: Minor reformatting
43879
9e94c78f 438802001-10-26 Robert Dewar <dewar@gnat.com>
b403bd17
RD
43881
43882 * prj-util.adb: Minor reformatting
43883
9e94c78f 438842001-10-26 Robert Dewar <dewar@gnat.com>
5fc3b4c7
RD
43885
43886 * prj-attr.adb: Minor reformatting throughout
43887
9e94c78f 438882001-10-26 Robert Dewar <dewar@gnat.com>
8c736034
RD
43889
43890 * prj-attr.ads: Minor reformatting
43891 Add ??? comment (this whole spec has almost no comments)
43892
9e94c78f 438932001-10-26 Vincent Celier <celier@gnat.com>
47d5b6ed 43894
f8e0aa73 43895 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 43896 ("//") that precede the drive letter on Interix.
47d5b6ed 43897
9e94c78f 438982001-10-26 Geert Bosch <bosch@gnat.com>
41af791f
GB
43899
43900 * gnat_rm.texi: Add GNAT Reference Manual.
43901
9e94c78f 439022001-10-25 Robert Dewar <dewar@gnat.com>
ed4a1468 43903
f8e0aa73 43904 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 43905 is Error. Similar change for other renaming cases.
ed4a1468 43906
9e94c78f 439072001-10-25 Robert Dewar <dewar@gnat.com>
24377ae4
RD
43908
43909 * s-atacco.ads: Add pragma Inline_Always for functions.
43910 Fix header format. Add copyright 2001
43911
9e94c78f 439122001-10-25 Ed Schonberg <schonber@gnat.com>
fef3204e 43913
f8e0aa73 43914 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 43915 return Error rather than Empty so that analysis can proceed.
fef3204e 43916
9e94c78f 439172001-10-25 Ed Schonberg <schonber@gnat.com>
dfc69d80 43918
f8e0aa73 43919 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 43920 messages when a unit appears in its own context.
dfc69d80 43921
9e94c78f 439222001-10-25 Ed Schonberg <schonber@gnat.com>
5a15af62 43923
f8e0aa73 43924 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 43925 entity to specification, so that semantic analysis can proceed.
5a15af62 43926
9e94c78f 439272001-10-25 Robert Dewar <dewar@gnat.com>
2b881d53 43928
f8e0aa73 43929 * sem_util.adb
b4f94ac1 43930 (Defining_Entity): Deal with Error.
2b881d53
RD
43931 (Process_End_Label): Deal with bad end label for.
43932
9e94c78f 439332001-10-25 Ed Schonberg <schonber@gnat.com>
578053f2 43934
f8e0aa73 43935 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
43936 instance but callee is not declared in the generic unit.
43937
9e94c78f 439382001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
43939
43940 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
43941 enclosing unit, which may already be different from the calling unit.
43942
9e94c78f 439432001-10-25 Geert Bosch <bosch@gnat.com>
3de6e6da
GB
43944
43945 * 4gintnam.ads: fix header format.
43946
9e94c78f 439472001-10-25 Ed Schonberg <schonber@gnat.com>
6f311316 43948
f8e0aa73 43949 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
43950 operation on the result of a parameterless call, perform elaboration
43951 check after the node has been properly rewritten.
f8e0aa73
AJ
43952
43953 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
43954 inlined within the generic tree, the defining identifier is not a
43955 compilation_unit.
6f311316 43956
9e94c78f 439572001-10-25 Ed Schonberg <schonber@gnat.com>
17be0cdf 43958
f8e0aa73 43959 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 43960 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
43961
43962 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 43963 compatibility by retrieving the access type of the generic copy.
17be0cdf 43964
9e94c78f 439652001-10-25 Robert Dewar <dewar@gnat.com>
ce9e9122
RD
43966
43967 * sem_ch3.adb:
43968 (Analyze_Number_Declaration): Handle error expression.
43969 (Signed_Integer_Type_Declaration): Handle error bound.
43970 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 43971
ce9e9122
RD
43972 * sem_util.adb (Get_Index_Bounds): Check for Error.
43973
9e94c78f 439742001-10-25 Robert Dewar <dewar@gnat.com>
e12fbc9e 43975
f8e0aa73 43976 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
43977 in no run time mode.
43978
9e94c78f 439792001-10-25 Pascal Obry <obry@gnat.com>
52b80488 43980
f8e0aa73 43981 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 43982 mode case for ALLOC case.
f8e0aa73
AJ
43983
43984 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 43985 all platforms. Improvement of last change.
52b80488 43986
9e94c78f 439872001-10-25 Robert Dewar <dewar@gnat.com>
316ad9c5
RD
43988
43989 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
43990
1a7e4df4
GB
439912001-10-25 Geert Bosch <bosch@gnat.com>
43992
43993 * osint.adb (Is_Relative): Remove duplicate.
43994
9e94c78f 439952001-10-25 Pascal Obry <obry@gnat.com>
90a9fff2 43996
f8e0aa73 43997 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 43998 pathnames in UNIX and DOS style with drive letter.
90a9fff2 43999 (Is_Relative): new routine.
f8e0aa73 44000
90a9fff2 44001 * osint.adb: Minor reformatting
f8e0aa73
AJ
44002
44003 * osint.adb (Is_Relative): implementation using
b4f94ac1 44004 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 44005
9e94c78f 440062001-10-25 Pascal Obry <obry@gnat.com>
5c1ba4cc 44007
f8e0aa73 44008 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 44009 original Path and the translated one.
f8e0aa73 44010
5c1ba4cc
PO
44011 * g-dirope.adb: (Base_Name): add some comments.
44012
9e94c78f 440132001-10-25 Robert Dewar <dewar@gnat.com>
a7fb206d 44014
f8e0aa73 44015 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 44016 in HIE mode, avoids compilation abandoned message
f8e0aa73 44017
a7fb206d 44018 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 44019
a7fb206d
RD
44020 * exp_imgv.adb: Correct typo in previous change (not my day!)
44021
9e94c78f 440222001-10-25 Robert Dewar <dewar@gnat.com>
e6a7e62e
RD
44023
44024 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
44025
9e94c78f 440262001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 44027
f8e0aa73 44028 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 44029 declarations. This is more uniform with other GNAT spec.
75c09e7d 44030
0d2b8e0b 440312001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
44032
44033 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
44034
0d2b8e0b 440352001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
44036
44037 * Makefile.in (tools, gnattools): Remove gnatmem.
44038
17ed6335
RH
440392001-10-17 Richard Henderson <rth@redhat.com>
44040
44041 * Makefile.in (misc.o): Depend on langhooks.h.
44042 * misc.c: Include it.
44043 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
44044 (LANG_HOOKS_DECODE_OPTION): New.
44045 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
44046
f2436274
FW
440472001-10-16 Florian Weimer <fw@deneb.enyo.de>
44048
44049 * trans.c (tree_transform): Adjust to recent change in
44050 expand_asm_operands to implement named asm operands.
44051
b14127e6
ES
440522001-10-11 Ed Schonberg <schonber@gnat.com>
44053
f8e0aa73 44054 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
44055 renaming of discriminant for mutable record type.
44056
e70ee92a
RD
440572001-10-11 Robert Dewar <dewar@gnat.com>
44058
44059 * validsw.adb: Properly save -gnatVn status.
44060
9e94c78f 440612001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 44062
9a5621d7
RD
44063 * usage.adb: Add lines for V switch.
44064
f8e0aa73 44065 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
44066 (/VALIDITY_CHECKING).
44067
9e94c78f 440682001-10-11 Ed Schonberg <schonber@gnat.com>
45667f04 44069
f8e0aa73 44070 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
44071 an extension of System is known to be visible.
44072
9e94c78f 440732001-10-11 Ed Schonberg <schonber@gnat.com>
c3de5c4c 44074
f8e0aa73 44075 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
44076 properly. Fixes regression on ACATS C34005G.
44077
9e94c78f 440782001-10-11 Robert Dewar <dewar@gnat.com>
4fa964a6 44079
f8e0aa73 44080 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
44081 loop in generic instance, since this is likely not very useful.
44082
9e94c78f 440832001-10-11 Robert Dewar <dewar@gnat.com>
0868e09c 44084
f8e0aa73 44085 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 44086 the error message for high integrity mode.
f8e0aa73
AJ
44087
44088 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 44089 is not available in high integrity mode.
f8e0aa73 44090
0868e09c
RD
44091 * rtsfind.ads:
44092 (OK_To_Use_In_HIE_Mode): New array.
44093 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
44094
44095 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
44096 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
44097
44098 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
44099 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 44100 caused by new Rtsfind changes.
f8e0aa73
AJ
44101
44102 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 44103 body is deleted.
f8e0aa73
AJ
44104
44105 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
44106 giving message for entity not available in high integrity mode.
44107
9e94c78f 441082001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 44109
934abf9c
PO
44110 * impunit.adb: Add GNAT.CRC32.
44111
9e94c78f 441122001-10-11 Ed Schonberg <schonber@gnat.com>
3c72bea4 44113
f8e0aa73
AJ
44114 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
44115 properly the case where one universal operand in a non-static
3c72bea4
ES
44116 exponentiation of a real literal.
44117
9e94c78f 441182001-10-11 Ed Schonberg <schonber@gnat.com>
44d8d2bb 44119
f8e0aa73
AJ
44120 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
44121 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 44122
9e94c78f 441232001-10-11 Ed Schonberg <schonber@gnat.com>
9e2b9627 44124
f8e0aa73
AJ
44125 * exp_ch7.adb (Make_Transient_Block): if statement is within
44126 exception handler, always use new transient scope to place Clean
9e2b9627
ES
44127 procedure.
44128
9e94c78f 441292001-10-11 Pascal Obry <obry@gnat.com>
cfac6e9f
PO
44130
44131 * Makefile.in:
44132 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
44133 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
44134 (GNATLS_RTL_OBJS): add g-crc32.o
44135 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 44136
cfac6e9f
PO
44137 * ali-util.adb:
44138 (CRC_Match): new function.
f8e0aa73 44139 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
44140 instead of the previous simple checksum algorithm.
44141 (Time_Stamp_Mismatch): use CRC_Match for comparison.
44142 (Set_Source_Table): idem.
f8e0aa73 44143
cfac6e9f 44144 * ali-util.ads:
f8e0aa73 44145 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
44146 instead of simple checksum.
44147 (CRC_Match): new function.
44148 (CRC_Error): new constant.
f8e0aa73
AJ
44149
44150 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
44151 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 44152 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
44153
44154 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 44155 is what this variable will store.
f8e0aa73 44156
cfac6e9f 44157 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
44158 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
44159 rename All_Checksum_Match to All_CRC_Match. Change due to API
44160 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 44161 CRC using GNAT.CRC32.
f8e0aa73
AJ
44162
44163 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 44164 now and not anymore a simple checksum.
f8e0aa73
AJ
44165
44166 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 44167 places.
f8e0aa73 44168
cfac6e9f 44169 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 44170
cfac6e9f
PO
44171 * scans.adb:
44172 (Restore_Scan_State): rename Checksum to CRC.
44173 (Save_Scan_State): idem.
f8e0aa73 44174
cfac6e9f
PO
44175 * scans.ads:
44176 With GNAT.CRC32.
44177 (Checksum): rename to CRC.
44178 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
44179
44180 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 44181 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
44182
44183 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 44184 GNAT.CRC32). Update copyright notice.
f8e0aa73 44185
cfac6e9f
PO
44186 * scn.adb:
44187 (Accumulate_Checksum): removed.
44188 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 44189
cfac6e9f
PO
44190 * sinput-l.adb:
44191 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 44192 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 44193 Source_CRC)
f8e0aa73
AJ
44194
44195 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 44196 Source_CRC in S initialization.
f8e0aa73 44197
cfac6e9f 44198 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 44199
cfac6e9f
PO
44200 * sinput.ads (Source_Checksum): renamed to Source_CRC.
44201 Update comments for the CRC.
f8e0aa73 44202
cfac6e9f 44203 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
44204
44205 * types.ads (Get_Hex_String): Returns the hexadecimal representation
44206 for a word. This is currently used only for CRC. In previous version,
44207 the checksum was using a representation with all letter being
44208 upper-case. With the new implementation (using CRC) we do not remove
44209 the 32th bit of the CRC, so we can have an upper-case starting letter
44210 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
44211 It is ambigous since the CRC was optional and could be followed by
44212 options like EB, EE. So now this routines uses lower-case letter for
44213 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 44214 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 44215
cfac6e9f 44216 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
44217
44218 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 44219 for the compiler.
f8e0aa73
AJ
44220
44221 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 44222 for the compiler.
f8e0aa73 44223
cfac6e9f
PO
44224 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
44225 Add 2001 to copyright notice
44226 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
44227
44228 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 44229 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 44230
cfac6e9f
PO
44231 * ali.adb: Undo some of previous changes, not needed.
44232 Keep the change for lower case letters in the checksum.
f8e0aa73 44233
cfac6e9f
PO
44234 * ali.ads: Undo previous change not needed.
44235
44236 * bcheck.adb: Undo most of previous change, not needed.
44237 But do use Checksums_Match for checksum comparison.
f8e0aa73 44238
cfac6e9f
PO
44239 * gnatls.adb: Undo most of previous change, not needed.
44240 But do use Checksums_Match for comparing checksums.
f8e0aa73 44241
cfac6e9f 44242 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 44243
cfac6e9f 44244 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
44245
44246 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 44247 not upper case letters.
f8e0aa73 44248
cfac6e9f 44249 * scans.adb: Undo previous change, not needed
f8e0aa73 44250
cfac6e9f 44251 * scans.ads: Undo previous change, not needed.
f8e0aa73 44252
cfac6e9f 44253 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 44254
cfac6e9f 44255 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 44256
cfac6e9f
PO
44257 * scn.adb:
44258 (Accumulate_Checksum): Use System.CRC32.
44259 (Initialize_Checksum): New procedure.
44260 Remove other changes of previous revision.
f8e0aa73 44261
cfac6e9f 44262 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 44263
cfac6e9f
PO
44264 * sinput.adb: Undo previous change, not needed.
44265
44266 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
44267
44268 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 44269 on new checksum algorithm
f8e0aa73 44270
cfac6e9f
PO
44271 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
44272 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 44273
cfac6e9f 44274 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 44275
cfac6e9f
PO
44276 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
44277
4d6d06a5
GB
442782001-10-11 Geert Bosch <bosch@gnat.com>
44279
44280 * einfo.h: Regenerate.
44281
44282 * nmake.ads: Regenerate.
44283
44284 * nmake.adb: Regenerate.
44285
44286 * sinfo.h: Regenerate.
44287
44288 * treeprs.adb: Regenerate.
44289
c97412e2
GB
442902001-10-10 Geert Bosch <bosch@gnat.com>
44291
44292 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 44293
9e94c78f 442942001-10-10 Ed Schonberg <schonber@gnat.com>
b83018ca 44295
f8e0aa73 44296 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
44297 is Flag174.
44298
e834fe1f
GB
442992001-10-10 Geert Bosch <bosch@gnat.com>
44300
44301 * snames.ads: Add new names for project facility.
44302
44303 * snames.adb: Update to reflect snames.ads changes.
44304
44305 * snames.h: Update to reflect snames.ads changes.
44306
9e94c78f 443072001-10-10 Vincent Celier <celier@gnat.com>
b30668b7
VC
44308
44309 * make.adb:
44310 (Add_Switches): reflect the changes for the switches attributes
44311 Default_Switches indexed by the programming language,
44312 Switches indexed by the file name.
44313 (Collect_Arguments_And_Compile): Idem.
44314 Reflect the attribute name changes.
f8e0aa73 44315
b30668b7
VC
44316 * prj-attr.adb:
44317 (Initialisation_Data): Change the names of some packages and
44318 attributes.
44319 (Initialize): process case insensitive associative arrays.
f8e0aa73 44320
b30668b7
VC
44321 * prj-attr.ads:
44322 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 44323
b30668b7
VC
44324 * prj-dect.adb:
44325 (Parse_Attribute_Declaration): For case insensitive associative
44326 arrays, set the index string to lower case.
f8e0aa73 44327
b30668b7
VC
44328 * prj-env.adb:
44329 Reflect the changes of the project attributes.
f8e0aa73 44330
b30668b7
VC
44331 * prj-nmsc.adb:
44332 Replace Check_Naming_Scheme by Ada_Check and
44333 Language_Independent_Check.
f8e0aa73 44334
b30668b7
VC
44335 * prj-nmsc.ads:
44336 Replaced Check_Naming_Scheme by 2 procedures:
44337 Ada_Check and Language_Independent_Check.
f8e0aa73 44338
b30668b7
VC
44339 * prj-proc.adb:
44340 (Process_Declarative_Items): For case-insensitive associative
44341 arrays, set the index string to lower case.
44342 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
44343 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 44344
b30668b7
VC
44345 * prj-tree.adb:
44346 (Case_Insensitive): New function
44347 (Set_Case_Insensitive): New procedure
f8e0aa73 44348
b30668b7
VC
44349 * prj-tree.ads:
44350 (Case_Insensitive): New function
44351 (Set_Case_Insensitive): New procedure
44352 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 44353
b30668b7
VC
44354 * prj-util.adb:
44355 (Value_Of): new function to get the string value of a single
44356 string variable or attribute.
f8e0aa73 44357
b30668b7
VC
44358 * prj-util.ads:
44359 (Value_Of): new function to get the string value of a single
44360 string variable or attribute.
f8e0aa73 44361
b30668b7
VC
44362 * prj.adb:
44363 (Ada_Default_Spec_Suffix): New function
44364 (Ada_Default_Impl_Suffix): New function
44365 Change definitions of several constants to reflect
44366 new components of record types.
f8e0aa73 44367
b30668b7
VC
44368 * prj.ads:
44369 (Naming_Data): Change several components to reflect new
44370 elements of naming schemes.
44371 (Project_Data): New flags Sources_Present and
44372 Language_Independent_Checked.
44373 (Ada_Default_Spec_Suffix): New function.
44374 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 44375
b30668b7
VC
44376 * snames.ads:
44377 Modification of predefined names for project manager: added
44378 Implementation, Specification_Exceptions, Implementation_Exceptions,
44379 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
44380 Default_Switches, _Languages, Builder, Cross_Reference,
44381 Finder. Removed Body_Part, Specification_Append, Body_Append,
44382 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
44383 Gnatlink.
f8e0aa73 44384
b30668b7
VC
44385 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44386 Add comments.
f8e0aa73 44387
b30668b7
VC
44388 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
44389 not that it is Nil_Variable_Value.
f8e0aa73 44390
b30668b7
VC
44391 * prj.ads: Add ??? for uncommented declarations
44392
9e94c78f 443932001-10-10 Ed Schonberg <schonber@gnat.com>
662e57b4 44394
f8e0aa73
AJ
44395 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
44396 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
44397 treat it as a bona fide constant.
44398
9e94c78f 443992001-10-10 Robert Dewar <dewar@gnat.com>
72e4357f
RD
44400
44401 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 44402
72e4357f 44403 * snames.ads: Add entry for pragma External.
f8e0aa73 44404
72e4357f 44405 * par-prag.adb: Add pragma External.
f8e0aa73 44406
72e4357f
RD
44407 * snames.adb: Updated to match snames.ads.
44408
9e94c78f 444092001-10-10 Ed Schonberg <schonber@gnat.com>
7bc1c7df
ES
44410
44411 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
44412 a dynamic task if the allocator appears in an indexed assignment
44413 or selected component assignment.
f8e0aa73
AJ
44414
44415 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
44416 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
44417 assignment to generate meaningful name.
44418
9e94c78f 444192001-10-10 Ed Schonberg <schonber@gnat.com>
c84700e7 44420
f8e0aa73 44421 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
44422 a generic package.
44423
44424 * einfo.ads: Body_Entity is also defined for generic package.
44425 Documentation change only
f8e0aa73
AJ
44426
44427 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
44428 others_choice for a discriminated component initialization,
44429 convert discriminant references into the corresponding discriminals.
44430
44431 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
44432 only if original type is private and expression has to be wrapped
c84700e7 44433 in a conversion.
f8e0aa73
AJ
44434
44435 * checks.adb:
44436 (Apply_Constraint_Check): Do not perform length check
c84700e7 44437 if expression is an aggregate with only an others_choice.
f8e0aa73 44438 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
44439 (typically the discriminal in an init_proc) denote the same value.
44440 Two useful optimization uncovered by bugfixes above.
44441
9e94c78f 444422001-10-10 Robert Dewar <dewar@gnat.com>
d8d80dcd 44443
f8e0aa73 44444 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
44445 This fixes a problem in the C representation of component alignment.
44446 Add 2001 to copyright notice
44447
9e94c78f 444482001-10-10 Richard Kenner <kenner@gnat.com>
a8fee948 44449
f8e0aa73 44450 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
44451 if it is a packed array type.
44452
9e94c78f 444532001-10-10 Richard Kenner <kenner@gnat.com>
c2d7fe59 44454
f8e0aa73 44455 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
44456 VAR_DECL for constant if not Is_Public but -O0.
44457
fb75e100
RK
444582001-10-10 Richard Kenner <kenner@gnat.com>
44459
44460 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
44461
1724557a
GB
444622001-10-10 Geert Bosch <bosch@gnat.com>
44463
f8e0aa73 44464 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
44465 use '/' as switch character, allowing for absolute file names.
44466
9f2f9eb6
JM
444672001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
44468
44469 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
44470 FSF address.
44471
8fecf41d
GB
444722001-10-08 Geert Bosch <bosch@gnat.com>
44473
44474 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
44475 Automatically build utilities when files need to be regenerated.
44476
589f1edf
GB
444772001-10-08 Geert Bosch <bosch@gnat.com>
44478
44479 * xsnames.adb: New utility for updating snames.ads and snames.adb
44480
67f28219
ZW
444812001-10-08 Zack Weinberg <zack@codesourcery.com>
44482
44483 * Make-lang.in (ADAFLAGS): Add -W -Wall.
44484 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
44485 (gnat1): Also depend on attribs.o.
44486 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
44487 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
44488 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
44489 (ADAFLAGS): Add -W -Wall.
44490 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
44491 take out CFLAGS.
44492
44493 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
44494 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
44495 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
44496 Use $(ADAC), not $(CC), as compilation command.
44497
44498 (gnattools): Depend directly on tools to build, don't use
44499 recursive make.
44500 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
44501
44502 * einfo.h, sinfo.h: New files (autogenerated).
44503
295ef2bb
RH
445042001-10-08 Richard Henderson <rth@redhat.com>
44505
44506 * comperr.adb (Abort_In_Progress): New.
44507 (Compiler_Abort): Use it to prevent recursion.
44508
9e94c78f 445092001-10-08 Robert Dewar <dewar@gnat.com>
5c736541
RD
44510
44511 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
44512
44513 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 44514 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
44515
44516 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 44517 to help error recovery. Part of general work on 9407-004.
67f28219 44518
5c736541 44519 * par.adb: Add ??? for misuse of error
67f28219 44520
5c736541
RD
44521 * sem_res.adb:
44522 (Resolve): Defend against Error, fixes 9407-003.
44523 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
44524
44525 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
44526 to Any_Type to help error recovery).
44527
9e94c78f 445282001-10-08 Richard Kenner <kenner@gnat.com>
a153ae15
RK
44529
44530 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
44531 Consistently set MEM attributes from expression; fixes
44532 bootstrap failure on x86.
44533
9e94c78f 445342001-10-08 Geert Bosch <bosch@gnat.com>
743f3c7b
GB
44535
44536 * 5oosinte.adb: Add 2001 to copyright notice.
44537
9e94c78f 445382001-10-08 Geert Bosch <bosch@gnat.com>
210c4ef4
GB
44539
44540 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
44541
44542 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
44543
cc712abf
JM
445442001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
44545
44546 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
44547
9e94c78f 445482001-10-05 Geert Bosch <bosch@gnat.com>
4c4abc0f
GB
44549
44550 * adaint.h: Small formatting fix.
44551
7f50e2e3
GB
445522001-10-04 Geert Bosch <bosch@gnat.com>
44553
44554 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
44555 Arg is int, not FILE *, in dummy version of functions.
67f28219 44556
7f50e2e3
GB
44557 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
44558 Arg is int, not FILE *.
44559
5d1a9698
GB
445602001-10-04 Geert Bosch <bosch@gnat.com>
44561
44562 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 44563
5d1a9698
GB
44564 * 4lintnam.ads: Fix header format.
44565 Change Linux to GNU/Linux.
67f28219 44566
5d1a9698
GB
44567 * 5iosinte.adb: Change Linux to GNU/Linux.
44568
44569 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 44570
5d1a9698 44571 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 44572
5d1a9698
GB
44573 * 5itaspri.ads: Change Linux to GNU/Linux.
44574 Update copyright notice.
67f28219 44575
5d1a9698 44576 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 44577
5d1a9698 44578 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 44579
5d1a9698 44580 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 44581
5d1a9698 44582 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 44583
5d1a9698 44584 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 44585
5d1a9698 44586 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 44587
5d1a9698 44588 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 44589
5d1a9698 44590 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 44591
5d1a9698
GB
44592 * 5qtaspri.ads: Change Linux to GNU/Linux.
44593 Add 2001 to copyright notice.
67f28219 44594
5d1a9698
GB
44595 * 5vintman.ads: Change Linux to GNU/Linux.
44596 Fix header format. Add 2001 to copyright notice.
67f28219 44597
5d1a9698 44598 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 44599
5d1a9698
GB
44600 * g-trasym.ads: Change Linux to GNU/Linux.
44601 Add 2001 to copyright notice.
67f28219 44602
5d1a9698 44603 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 44604
5d1a9698
GB
44605 * s-intman.ads: Change Linux to GNU/Linux.
44606 Add 2001 to copyright notice. Fix header format.
67f28219 44607
5d1a9698 44608 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 44609
5d1a9698 44610 * adaint.c: Change Linux to GNU/Linux.
67f28219 44611
5d1a9698 44612 * cio.c: Change Linux to GNU/Linux.
67f28219 44613
5d1a9698 44614 * cstreams.c: Change Linux to GNU/Linux.
67f28219 44615
5d1a9698 44616 * init.c: Change Linux to GNU/Linux.
67f28219 44617
5d1a9698 44618 * gmem.c: Change Linux to GNU/Linux.
67f28219 44619
5d1a9698
GB
44620 * tracebak.c: Change Linux to GNU/Linux.
44621
44622
c25ca2d7
GB
446232001-10-02 Geert Bosch <bosch@gnat.com>
44624
44625 * misc.c (insert_default_attributes): Add dummy version.
This page took 6.580481 seconds and 5 git commands to generate.