]> gcc.gnu.org Git - gcc.git/blob - gcc/ada/ChangeLog
trans.c (build_binary_op_trapv): Use more efficient overflow check for addition/subtr...
[gcc.git] / gcc / ada / ChangeLog
1 2008-11-07 Geert Bosch <bosch@adacore.com>
2
3 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
4 overflow check for addition/subtraction if neither operand is constant.
5
6 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
7
8 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
9 files for the target-dependent part of the runtime.
10 (SPARC/Linux): Likewise.
11
12 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
13
14 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
15 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
16 purposes.
17
18 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
19
20 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
21 in GC memory.
22
23 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
24
25 PR ada/19419
26 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
27 Generate a call to memmove for an assignment between overlapping
28 array slices.
29
30 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31
32 PR target/37977
33 * gcc-interface/Makefile.in: Add multilib handling for
34 s390-linux and s390x-linux.
35
36 2008-10-24 Jakub Jelinek <jakub@redhat.com>
37
38 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
39 check-acats-subtargets and check-gnat-subtargets.
40 (check_acats_targets): New variable.
41 (check-acats-subtargets, check-acats%): New targets.
42 (check-acats): If -j is used and CHAPTERS is empty, run the testing
43 in multiple make goals, possibly parallel, and afterwards run
44 dg-extract-results.sh to merge the sum and log files.
45
46 2008-10-17 Geert Bosch <bosch@adacore.com>
47
48 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
49 to use only a single check instead of three, and avoid unnecessary
50 COMPOUND_EXPR.
51 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
52 creating more opportunities for optimizations.
53
54 2008-10-13 Jakub Jelinek <jakub@redhat.com>
55
56 PR middle-end/37601
57 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
58 NULL TYPE_DOMAIN.
59
60 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
61
62 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
63 dealing with volatileness to after code dealing with renaming.
64
65 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
66
67 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
68 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
69
70 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
71
72 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
73 (unchecked_convert): Use it to disable problematic folding with
74 VIEW_CONVERT_EXPR in the general case. Always disable it for the
75 special VIEW_CONVERT_EXPR built for integral types and cope with
76 its addressability issues by preserving the first conversion.
77
78 2008-10-01 Andreas Schwab <schwab@suse.de>
79
80 * system-linux-ppc64.ads: New file.
81 * gcc-interface/Makefile.in: Add multilib handling for
82 powerpc-linux.
83
84 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
85
86 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
87 to that of ptr_mode instead of word_mode.
88
89 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
90
91 PR ada/5911
92 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
93
94 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
95
96 PR ada/37641
97 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
98 instead of deprecated FILE_WRITE_PROPERTIES.
99
100 2008-09-22 Olivier Hainque <hainque@adacore.com>
101
102 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
103 are never assigned, volatile entities are not constant for code
104 generation purposes.
105
106 2008-09-21 Laurent Guerby <laurent@guerby.net>
107
108 PR ada/5911
109 * gcc-interface/Makefile.in: Add multilib handling for x86_64
110 and sparc.
111 * system-linux-sparcv9.ads: New file.
112
113 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
114
115 * exp_dbug.ads: Document new convention for the XVZ variable.
116 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
117 debug info if necessary for the type padding the component type.
118 <E_Array_Subtype>: Likewise.
119 (maybe_pad_type): Emit the XVZ variable in units.
120 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
121 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
122 on statements generated to initialize the parameter attributes cache.
123 Set the source line of the end label of the body on the special return
124 statement built for a procedure with copy-in copy-out parameters.
125
126 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
127
128 PR ada/37585
129 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
130 inlined external functions if they contain a nested function not
131 declared inline.
132
133 2008-09-18 Jan Hubicka <jh@suse.cz>
134
135 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
136 (end_subprog_body): Do not set DECL_INLINE.
137
138 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
139
140 PR ada/21327
141 * gnat_ugn.texi: Use proper format in direntry.
142
143 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
144
145 * gcc-interface/trans.c (gigi): Declare the name of the compilation
146 unit as the first global name.
147
148 2008-09-14 Jan Hubicka <jh@suse.cz>
149
150 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
151
152 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
153
154 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
155 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
156 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
157 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
158 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
159 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
160 gcc-interface/gigi.h, gcc-interface/trans.c,
161 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
162 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
163 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
164 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
165 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
166 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
167 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
168 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
169 comments.
170 * gnathtml.pl: Fix typos.
171
172 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
173
174 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
175 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
176 layer. RTEMS binds to OS provided adapter routines so there are
177 no modifications to s-osinte-rtems.adb.
178
179 2008-09-09 Arnaud Charlet <charlet@adacore.com>
180 Joel Sherrill <joel.sherrill@oarcorp.com>
181
182 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
183
184 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
185
186 * s-interr-hwint.adb: New file.
187
188 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
189 needed by s-interr-hwint.adb.
190
191 * s-osinte-vxworks-kernel.adb: New file.
192
193 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
194
195 * s-stchop-rtems.adb: Add file missed in early commit. Already
196 referenced in gcc-interface/Makefile.in.
197
198 2008-08-30 Thomas Quinot <quinot@adacore.com>
199
200 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
201 be built even without a separate libada directory.
202
203 2008-08-22 Arnaud Charlet <charlet@adacore.com>
204
205 * lib-xref.ads: Fix typo in subprogram reference definition.
206
207 2008-08-22 Robert Dewar <dewar@adacore.com>
208
209 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
210 to avoid warning.
211
212 * g-trasym.adb: Ditto
213
214 * s-utf_32.adb (Get_Category): Fix obvious typo
215
216 * s-wwdcha.adb: Minor code reorganization
217 Remove dead code
218
219 2008-08-22 Robert Dewar <dewar@adacore.com>
220
221 * checks.adb (Determine_Range): Deal with values that might be invalid
222
223 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
224 configuration switches.
225
226 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
227
228 * sem_prag.adb: Implement pragma Assume_No_Default_Values
229
230 * snames.adb, snames.ads, snames.h:
231 Add entries for pragma Assume_No_Invalid_Values
232
233 * switch-c.adb: Add processing for -gnatB switch
234
235 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
236
237 2008-08-22 Javier Miranda <miranda@adacore.com>
238
239 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
240 init procedure all the expanded code associated with the spec of
241 task types and protected types.
242
243 2008-08-22 Gary Dismukes <dismukes@adacore.com>
244
245 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
246 component expression copies rather than directly setting Etype and
247 Is_Static_Expression.
248
249 2008-08-22 Gary Dismukes <dismukes@adacore.com>
250
251 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
252 private types to allow for types derived from a private type with
253 preelaborable initialization, but return False for a private extension
254 (unless it has the pragma).
255
256 2008-08-22 Robert Dewar <dewar@adacore.com>
257
258 * opt.ads: Minor code reorganization (put entries in alpha order)
259
260 2008-08-22 Pascal Obry <obry@adacore.com>
261
262 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
263 spawn.
264
265 2008-08-22 Geert Bosch <bosch@adacore.com>
266
267 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
268 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
269
270 2008-08-22 Doug Rupp <rupp@adacore.com>
271
272 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
273 __gnat_set_features.
274
275 * init.c
276 (__gnat_set_features): New function.
277 (__gnat_features_set): New tracking variable.
278 (__gl_no_malloc_64): New feature global variable
279
280 2008-08-22 Ed Schonberg <schonberg@adacore.com>
281
282 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
283 use_type_clause in an instance.
284
285 2008-08-22 Bob Duff <duff@adacore.com>
286
287 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
288
289 2008-08-22 Robert Dewar <dewar@adacore.com>
290
291 * exp_ch6.adb: Minor reformatting
292
293 * exp_ch7.adb: Minor reformatting
294
295 * exp_ch7.ads: Put routines in proper alpha order
296
297 * exp_dist.adb: Minor reformatting
298
299 2008-08-22 Vincent Celier <celier@adacore.com>
300
301 * prj.ads: Minor comment update
302
303 2008-08-22 Robert Dewar <dewar@adacore.com>
304
305 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
306
307 2008-08-22 Ed Schonberg <schonberg@adacore.com>
308
309 * exp_tss.adb:
310 (Base_Init_Proc): For a protected subtype, use the base type of the
311 corresponding record to locate the propoer initialization procedure.
312
313 2008-08-22 Robert Dewar <dewar@adacore.com>
314
315 * checks.adb:
316 (In_Subrange_Of): New calling sequence
317 (Determine_Range): Prepare for new processing using base type
318
319 * exp_ch4.adb:
320 (Compile_Time_Compare): Use new calling sequence
321
322 * exp_ch5.adb:
323 (Compile_Time_Compare): Use new calling sequence
324
325 * sem_eval.adb:
326 (Compile_Time_Compare): New calling sequence allows dealing with
327 invalid values.
328 (In_Subrange_Of): Ditto
329
330 * sem_eval.ads:
331 (Compile_Time_Compare): New calling sequence allows dealing with
332 invalid values.
333 (In_Subrange_Of): Ditto
334
335 2008-08-22 Pascal Obry <obry@adacore.com>
336
337 * adaint.c: Fix possible race condition on win32_wait().
338
339 2008-08-22 Bob Duff <duff@adacore.com>
340
341 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
342 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
343 exp_intr.adb, exp_ch3.adb: Rename:
344 Exp_Ch7.Controlled_Type => Needs_Finalization
345 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
346 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
347 Has_Controlled_Parts
348 (Has_Some_Controlled_Component): Fix bug in array case.
349
350 2008-08-22 Robert Dewar <dewar@adacore.com>
351
352 * sem_ch8.adb: Minor reformatting
353
354 2008-08-22 Kevin Pouget <pouget@adacore.com>
355
356 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
357 Shared_Var_Close procedure specifications from package spec to package body.
358
359 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
360 RE_Shared_Var_WOpen entries.
361
362 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
363 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
364
365 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
366
367 * init.c: adjust EH support code on Alpha/Tru64 as well.
368
369 * raise-gcc.c: Add back a couple of comments.
370
371 2008-08-22 Ed Schonberg <schonberg@adacore.com>
372
373 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
374 involved and the return type is class-wide, use the type of the expression
375 for the generated access type. Suppress useless discriminant checks on the
376 allocator.
377
378 2008-08-22 Bob Duff <duff@adacore.com>
379
380 * exp_ch7.adb: Minor comment fix
381
382 * exp_ch6.ads: Minor comment fix
383
384 2008-08-22 Thomas Quinot <quinot@adacore.com>
385
386 * sem_ch8.adb: Minor reformatting
387 Minor code reorganization (introduce subprogram to factor duplicated
388 code).
389
390 2008-08-22 Sergey Rybin <rybin@adacore.com>
391
392 * gnat_ugn.texi: Change the description of gnatcheck default rule
393 settings.
394
395 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
396
397 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
398 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
399 do not adjust the PC anymore.
400 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
401 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
402
403 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
404 instead of _Unwind_GetIP.
405
406 2008-08-22 Gary Dismukes <dismukes@adacore.com>
407
408 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
409 with a range is transformed into a positional aggregate, any copied
410 component literals should be marked Is_Static_Expression.
411
412 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
413 not being known at at compile time when Configurable_Run_Time_Mode is
414 true.
415
416 2008-08-22 Robert Dewar <dewar@adacore.com>
417
418 * exp_attr.adb:
419 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
420 Read or Input attribute.
421
422 2008-08-22 Ed Schonberg <schonberg@adacore.com>
423
424 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
425 clauses in related units is redundant, if one of the units is a package
426 instantiation, use its instance_spec to determine which unit is the
427 ancestor of the other.
428
429 2008-08-22 Javier Miranda <miranda@adacore.com>
430
431 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
432 attributes add missing support to handle designated types that come
433 from the limited view.
434
435 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
436
437 2008-08-22 Sergey Rybin <rybin@adacore.com>
438
439 * vms_data.ads: Add entry for new gnatcheck -mNNN option
440
441 * gnat_ugn.texi: Add description for gnatcheck option '-m'
442
443 2008-08-22 Sergey Rybin <rybin@adacore.com>
444
445 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
446 acoording to the latest changes in the metric rule interface
447
448 2008-08-22 Vincent Celier <celier@adacore.com>
449
450 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
451 (Check): Check if the file names registered in the ALI file for the
452 spec, the body and each of the subunits are the ones expected.
453
454 2008-08-22 Robert Dewar <dewar@adacore.com>
455
456 * g-catiio.adb: Code cleanup.
457
458 2008-08-20 Vincent Celier <celier@adacore.com>
459
460 * make.adb (Gnatmake): Remove extra space in version line
461
462 * ali.adb:
463 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
464 as the name may already have been entered in the table by the Project
465 Manager.
466
467 2008-08-20 Jose Ruiz <ruiz@adacore.com>
468
469 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
470 weak symbols so we use the version provided by MaRTE when available.
471
472 2008-08-20 Emmanuel Briot <briot@adacore.com>
473
474 * g-catiio.ads, g-catiio.adb:
475 (Value): Avoid an unnecessary system call to Clock in most cases.
476 This call is only needed when only the time is provided in the string,
477 and ignored in all other cases. This is more efficient.
478
479 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
480
481 * raise-gcc.c: Fix formatting nits.
482
483 2008-08-20 Robert Dewar <dewar@adacore.com>
484
485 * sem_ch13.adb:
486 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
487 non-existing component clause.
488
489 * exp_ch5.adb: Minor reformatting
490
491 * g-comlin.adb: Minor reformatting
492
493 * make.adb: Minor reformatting
494
495 * prj-proc.adb: Minor reformatting
496
497 * stylesw.ads: Minor reformatting
498
499 2008-08-20 Vincent Celier <celier@adacore.com>
500
501 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
502 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
503 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
504 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
505 and a switch is not recognized by gnatmake.
506 (Gnatmake): Implement new scheme for gnatmake switches and global
507 compilation switches.
508 (Switches_Of): Try successively Switches (<file name>),
509 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
510
511 2008-08-20 Ed Schonberg <schonberg@adacore.com>
512
513 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
514 implement style check that overriding operations are explicitly marked
515 at such.
516
517 * style.ads (Missing_Overriding): new procedure that provides interface
518 to previous one.
519
520 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
521 that the declaration or body of overriding operations carries an
522 explicit overriding indicator.
523
524 * sem_ch8.adb
525 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
526 explicit indicator should be present.
527
528 * sem_ch6.adb (Verify_Overriding_Indicator,
529 Check_Overriding_Indicator): If operation is overriding, check whether
530 declaration and/or body of subprogram should be present
531
532 2008-08-20 Vincent Celier <celier@adacore.com>
533
534 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
535 gprbuild when casing is MixedCase, whatever the casing of the letters
536 in the file name.
537
538 2008-08-20 Gary Dismukes <dismukes@adacore.com>
539
540 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
541 creating dummy init proc.
542 (Requires_Init_Proc): Return False in the case No_Default_Initialization
543 is in force and the type does not have associated default
544 initialization. Move test of Is_Public (with tests of restrictions
545 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
546 for default initialization.
547
548 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
549
550 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
551 of any alias or prefix but having attached parameters (as \"-O2\").
552
553 2008-08-20 Robert Dewar <dewar@adacore.com>
554
555 * s-fileio.adb: Minor reformatting
556
557 2008-08-20 Thomas Quinot <quinot@adacore.com>
558
559 * exp_strm.adb (Build_Elementary_Input_Call,
560 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
561 selects the stream attribute routines for long float types.
562
563 2008-08-20 Vincent Celier <celier@adacore.com>
564
565 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
566
567 * prj.ads (Array_Data): Add a component Location
568
569 2008-08-20 Ed Schonberg <schonberg@adacore.com>
570
571 * sem_prag.adb:
572 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
573 argument for ASIS and navigation use.
574
575 2008-08-20 Ed Schonberg <schonberg@adacore.com>
576
577 * einfo.ads: Add comment.
578
579 2008-08-20 Bob Duff <duff@adacore.com>
580
581 * sem_eval.ads: Minor comment fix.
582
583 2008-08-20 Bob Duff <duff@adacore.com>
584
585 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
586 folding. We were folding things like "False and then ...", but not
587 "X and then ..." where X is a constant whose value is known at compile
588 time.
589
590 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
591
592 * exp_ch5.adb (Controlled_Type): New routine.
593 (Expand_N_Extended_Return_Statement): When generating a move of the
594 final list in extended return statements, check the type of the
595 function and in the case of double expanded return statements, the type
596 of the returned object.
597 (Expand_Simple_Function_Return): Perform an interface conversion when
598 the type of the returned object is an interface and the context is an
599 extended return statement.
600
601 2008-08-20 Ed Schonberg <schonberg@adacore.com>
602
603 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
604 and the full view is visible, set flag on full view as well.
605
606 2008-08-20 Thomas Quinot <quinot@adacore.com>
607
608 * g-comlin.adb: Minor reformatting
609 Minor code reorganization.
610
611 * freeze.adb: Minor reformatting
612
613 2008-08-20 Vincent Celier <celier@adacore.com>
614
615 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
616 source of another project.
617
618 2008-08-20 Pascal Obry <obry@adacore.com>
619
620 * s-os_lib.ads: Minor reformatting.
621
622 2008-08-20 Arnaud Charlet <charlet@adacore.com>
623
624 * gnatvsn.ads: Minor reformatting.
625
626 2008-08-20 Arnaud Charlet <charlet@adacore.com>
627
628 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
629 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
630 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
631 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
632 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
633 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
634 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
635 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
636 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
637 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
638 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
639 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
640 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
641 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
642 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
643 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
644 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
645 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
646 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
647 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
648 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
649 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
650 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
651 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
652 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
653 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
654 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
655 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
656 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
657 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
658 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
659 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
660 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
661 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
662 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
663 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
664 s-poosiz.adb, link.c: Fix copyright notice.
665
666 2008-08-20 Arnaud Charlet <charlet@adacore.com>
667
668 * g-comlin.ads: Update comments.
669
670 2008-08-20 Ed Schonberg <schonberg@adacore.com>
671
672 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
673
674 2008-08-20 Gary Dismukes <dismukes@adacore.com>
675
676 * exp_ch11.adb:
677 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
678 Make_Implicit_Exception_Handler when rewriting an exception handler with
679 a choice parameter, and pass the handler's Sloc instead of that of the
680 handled sequence of statements. Make_Implicit_Exception_Handler sets the
681 Sloc to No_Location (unless debugging generated code), which we don't
682 want for the case of a user handler.
683
684 2008-08-20 Robert Dewar <dewar@adacore.com>
685
686 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
687
688 * sem_ch13.adb:
689 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
690 now labeled as info msgs, not warnings.
691
692 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
693
694 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
695
696 * a-textio.adb: Remove redundant test.
697
698 * a-witeio.adb: Minor code reorganization
699 Remove redundant test found working on another issue
700
701 * a-ztexio.adb: Minor code reorganization
702 Remove redundant test found working on another issue
703
704 2008-08-20 Thomas Quinot <quinot@adacore.com>
705
706 * s-fileio.adb (Open) Use C helper function to determine whether a
707 given errno value corresponds to a "file not found" error.
708
709 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
710
711 2008-08-20 Jose Ruiz <ruiz@adacore.com>
712
713 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
714 to get access to the per-task errno variable.
715 (__set_errno for MaRTE): Do not redefine this function here since it is
716 already defined in MaRTE.
717
718 2008-08-20 Tristan Gingold <gingold@adacore.com>
719
720 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
721
722 2008-08-20 Robert Dewar <dewar@adacore.com>
723
724 * freeze.adb: Minor reformatting
725
726 * g-comlin.adb: Minor reformatting
727
728 * g-socket.adb: Minor reformatting
729
730 * g-socthi-mingw.adb: Minor reformatting
731
732 * g-stheme.adb: Minor reformatting
733
734 2008-08-20 Ed Schonberg <schonberg@adacore.com>
735
736 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
737 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
738 confusion between partial and full views of an ancestor of the context
739 type when the parent is a private extension declared in a parent unit,
740 and full views are available for the context type.
741
742 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
743 Robert Dewar <dewar@adacore.com>
744
745 PR ada/30827
746 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
747 version string.
748 Move comment in the right place.
749 * g-comver.adb (Version): Look for a zero-termination in
750 addition to a closing parenthesis.
751
752 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
753
754 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
755 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
756 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
757 Is_Package_Or_Generic_Package instead of hand-crafted tests.
758
759 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
760
761 PR ada/15808
762 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
763 as well.
764
765 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
766
767 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
768
769 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
770
771 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
772 for back-copy statements in lieu of that of the actual.
773
774 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
775
776 PR ada/20548
777 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
778 setjmp test consistently. Adjust for new behavior of flag_stack_check.
779 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
780 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
781
782 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
783
784 PR ada/36777
785 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
786 * sem_attr.adb (Check_Type): The current instance of a protected
787 object is not a type name.
788 (Analyze_Access_Attribute): Accept instances of protected objects.
789 (Analyze_Attribute, Attribute_Address clause): Ditto.
790 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
791 the prefix as being the current instance if needed.
792
793 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
794
795 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
796 Remove duplicate s-win32.o. Add s-winext.o.
797
798 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
799
800 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
801 with SOSC.SOCK__STREAM.
802 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
803 SOSC.MSG_OOB.
804
805 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
806
807 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
808 * gsocket.h, socket.c: Update to support RTEMS.
809 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
810
811 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
812 Robert Dewar <dewar@adacore.com>
813
814 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
815 left argument even when right argument is 0.
816 (Expand_N_Op_Mod): Ditto when right argument is 1.
817 (Expand_N_Op_Multiply): Ditto when any argument is 0.
818 (Expand_N_Op_Rem): Ditto when right argument is 1.
819
820 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
821
822 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
823 by warn_unused.
824
825 2008-08-08 Ed Schonberg <schonberg@adacore.com>
826
827 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
828 from Freeze_Entity. Used to generate cross-reference information for
829 types declared in generic packages.
830
831 2008-08-08 Thomas Quinot <quinot@adacore.com>
832
833 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
834 compatibility shim.
835
836 2008-08-08 Thomas Quinot <quinot@adacore.com>
837
838 * gsocket.h:
839 On Windows, include <errno.h> and redefine only selected errno values
840 from their <winsock2.h> definitions.
841
842 * s-osinte-freebsd.ads: Minor reformatting
843
844 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
845
846 * g-soccon.ads: New file.
847
848 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
849 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
850 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
851 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
852 unit, to allow building software that depends on this internal unit
853 with both older and newer compilers.
854
855 2008-08-08 Robert Dewar <dewar@adacore.com>
856
857 * s-strxdr.adb: Minor reformatting
858
859 2008-08-08 Bob Duff <duff@adacore.com>
860
861 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
862 checking for integer operations (including division by zero)", which
863 is wrong -- divide by zero is not part of overflow checking.
864 Also added misc clarification about what check-suppression means.
865
866 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
867
868 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
869
870 * g-comlin.adb (Add_Switch): Handle addition of switches at the
871 begining of the command line.
872 (Append, Add): Renaming of Append to Add as this now allows addition
873 at the begining of the list.
874
875 * g-comlin.ads (Add_Switch): Handle addition of switches at the
876 begining of the command line.
877
878 2008-08-08 Thomas Quinot <quinot@adacore.com>
879
880 * g-sercom.ads:
881 (Name): Document application scope (only legacy PC serial ports on
882 Linux and Windows).
883
884 2008-08-08 Thomas Quinot <quinot@adacore.com>
885
886 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
887 previous change, not needed after all.
888
889 2008-08-08 Ed Schonberg <schonberg@adacore.com>
890
891 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
892 exclusion indicator is present
893
894 2008-08-08 Robert Dewar <dewar@adacore.com>
895
896 * g-comlin.adb: Minor code reorganization
897 Minor reformatting
898
899 * g-comlin.ads: Minor reformatting
900
901 * s-fileio.adb: Minor reformatting
902
903 * sem_attr.adb: Minor code reorganization (use Nkind_In)
904 Minor reformatting
905
906 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
907
908 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
909 with s-oscons-tmplt.i.
910
911 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
912
913 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
914
915 2008-08-06 Ed Schonberg <schonberg@adacore.com>
916
917 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
918 of incomplete type.
919
920 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
921 of a formal parameter of an incomplete type. Improve error message for
922 other improper uses of incomplete types.
923
924 2008-08-06 Robert Dewar <dewar@adacore.com>
925
926 * gnat_ugn.texi: Clarify -gnato documentation
927
928 2008-08-06 Thomas Quinot <quinot@adacore.com>
929
930 * gcc-interface/Makefile.in,
931 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
932 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
933 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
934 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
935 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
936 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
937 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
938 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
939 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
940 Remove GNAT.Sockets.Constants. This internal package is replaced by
941 System.OS_Constants.
942
943 2008-08-06 Thomas Quinot <quinot@adacore.com>
944
945 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
946 Remove obsolete targets referencing gen-soccon
947 When generating s-oscons.ads, use a file name that includes the
948 THREAD_KIND, to ensure that the (potentially different) version from a
949 previous build with a different threads flavour does not get reused.
950
951 2008-08-06 Thomas Quinot <quinot@adacore.com>
952
953 * sem_res.adb: Minor reformatting
954
955 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
956 only when the operating system reports a non-existing file or directory
957 (ENOENT), otherwise raise Name_Error.
958
959 * exp_ch11.adb: Minor reformatting
960
961 2008-08-06 Ed Schonberg <schonberg@adacore.com>
962
963 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
964 incomplete, add the access_to_subprogram type to the list of private
965 dependents only if the incomplete type will be completed in the current
966 scope.
967 (Build_Discriminant_Constraints): If the type of the discriminant is
968 access_to_variable, reject a constraint that is access_to_constant.
969
970 2008-08-06 Thomas Quinot <quinot@adacore.com>
971
972 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
973 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
974 g-sttsne-dummy.ads: New files.
975
976 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
977 with pragma Unimplemented_Unit for sockets packages on Nucleus.
978
979 2008-08-06 Pascal Obry <obry@adacore.com>
980
981 * adaint.c: Another fix for ACL support on Windows.
982
983 2008-08-06 Javier Miranda <miranda@adacore.com>
984
985 * exp_disp (Expand_Interface_Actuals): Adds missing support for
986 expansion of calls to subprograms using selected components.
987
988 2008-08-06 Ed Schonberg <schonberg@adacore.com>
989
990 * sem_res.adb (Resolve_Call): Use base type to determine whether a
991 dereference is needed because a subtype of an access_to_subprogram is
992 simply an access-subtype
993
994 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
995
996 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
997 parameters, always specify the expected separator.
998
999 2008-08-06 Thomas Quinot <quinot@adacore.com>
1000
1001 * xnmake.adb: Use new XUtil package for platform independent text
1002 output.
1003
1004 2008-08-06 Vincent Celier <celier@adacore.com>
1005
1006 * gnat_ugn.texi: Document compiler switch -gnateG
1007
1008 2008-08-06 Quentin Ochem <ochem@adacore.com>
1009
1010 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
1011 in the case of an empty pattern size.
1012 (Compute_Result): Do not do any computation in the case of an empty
1013 pattern size.
1014 (Report_Result): Fixed computation of the overflow guard.
1015
1016 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1017
1018 * g-awk.adb (Finalize): Do not use directly objects of the type in the
1019 finalization routine to prevent elaboration order anomalies in new
1020 finalization scheme.
1021
1022 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1023
1024 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
1025 declaration for the same type.
1026
1027 2008-08-06 Thomas Quinot <quinot@adacore.com>
1028
1029 * sem.adb: Minor rewording (comment)
1030
1031 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
1032
1033 * g-comlin.adb (Define_Switch, Get_Switches): New.
1034 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
1035 ungrouping switches.
1036 (For_Each_Simple_Switch): Allow more control over parameters handling.
1037 This generic method now allows ungrouping of switches with parameters
1038 and switches with more than one letter after the prefix.
1039 (Set_Command_Line): Take care of switches that are prefixed with a
1040 switch handling parameters without delimiter (-gnatya and -gnaty3 for
1041 example).
1042 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
1043 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
1044 the operation.
1045 (Start, Alias_Switches, Group_Switches): Take care of parameters
1046 possibly present inside a group.
1047
1048 * g-comlin.ads (Define_Switch): New method used to define a list of
1049 expected switches, that are necessary for correctly ungrouping switches
1050 with more that one character after the prefix.
1051 (Get_Switches): Method that builds a getopt string from the list of
1052 switches as set previously by Define_Switch.
1053 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
1054 status of the operation. Also allow the removal of switches with
1055 parameters only.
1056 (Command_Line_Configuration_Record): Maintain a list of expected
1057 switches.
1058
1059 2008-08-06 Doug Rupp <rupp@adacore.com>
1060
1061 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
1062 TARGET_MALLOC64 clear.
1063
1064 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
1065 if TARGET_MALLOC64 clear.
1066
1067 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
1068 (TARGET_MALLC64): New macro. Default to clear.
1069
1070 2008-08-06 Doug Rupp <rupp@adacore.com>
1071
1072 * gcc-interface/utils2.c (snames.h) Include
1073 (TARGET_ABI_OPEN_VMS): Initialize.
1074 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
1075 for Convention C.
1076
1077 2008-08-06 Ed Schonberg <schonberg@adacore.com>
1078
1079 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
1080 null exclusion in a discriminant declaration
1081
1082 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
1083 indicators when type is not an access type.
1084
1085 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
1086 indicators when type is not an access type.
1087
1088 2008-08-06 Javier Miranda <miranda@adacore.com>
1089
1090 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
1091 with the target interface before expanding the code of the interface
1092 conversion.
1093
1094 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1095
1096 * freeze.adb:
1097 (Freeze_Entity): A deferred constant does not violate the restriction
1098 No_Default_Initialization,
1099
1100 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
1101 can carry a null exclusion indicator, and on which an error may be
1102 posted if the indicator is redundant.
1103
1104 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
1105 does not apply to a subtype mark that already excludes null.
1106
1107 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
1108 exclusion does not apply to a subtype mark that already excludes null.
1109
1110 2008-08-05 Thomas Quinot <quinot@adacore.com>
1111
1112 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
1113
1114 2008-08-05 Doug Rupp <rupp@adacore.com>
1115
1116 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
1117
1118 2008-08-05 Thomas Quinot <quinot@adacore.com>
1119
1120 * gsocket.h: Make this file includable in a Nucleus environment, which
1121 does not support sockets.
1122
1123 * socket.c: Remove Nucleus-specific hack.
1124
1125 2008-08-05 Pascal Obry <obry@adacore.com>
1126
1127 * adaint.c: Remove support for readable attribute on vxworks and nucleus
1128
1129 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1130
1131 * sem_attr.adb:
1132 (Analyze_Attribute, case 'Result): handle properly the case where some
1133 operand of the expression in a post-condition generates a transient
1134 block.
1135
1136 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
1137 right-hand side when it is an anonymous access_to_subprogram, to force
1138 static accessibility check when needed.
1139
1140 2008-08-05 Sergey Rybin <rybin@adacore.com>
1141
1142 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
1143 rule according to the change in the rule option.
1144 Add documentation for -gnatw.b/-gnatw.B
1145
1146 2008-08-05 Robert Dewar <dewar@adacore.com>
1147
1148 * ug_words: Add entries for -gnatw.b/-gnatw.B
1149
1150 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
1151
1152 2008-08-05 Vincent Celier <celier@adacore.com>
1153
1154 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
1155 (File).
1156
1157 * a-ztdeio.adb: Ditto.
1158
1159 2008-08-05 Pascal Obry <obry@adacore.com>
1160
1161 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
1162 readable attribute.
1163
1164 2008-08-05 Vincent Celier <celier@adacore.com>
1165
1166 * s-wchwts.adb:
1167 (Wide_String_To_String): Returns a String with the same 'First as its
1168 parameter S.
1169 (Wide_Wide_String_To_String): Ditto
1170
1171 * s-wchwts.ads:
1172 (Wide_String_To_String): Document that the lowest index of the returned
1173 String is equal to S'First.
1174
1175 2008-08-05 Thomas Quinot <quinot@adacore.com>
1176
1177 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1178
1179 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1180 s-oscons.ads
1181
1182 2008-08-05 Robert Dewar <dewar@adacore.com>
1183
1184 * opt.ads (Warn_On_Biased_Representation): New flag
1185
1186 * sem_ch13.adb:
1187 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1188 representation is required.
1189 (Minimum_Size): Don't allow biasing if enum rep clause case
1190
1191 * sem_warn.adb:
1192 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1193 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1194
1195 * usage.adb: Add lines for -gnatw.b/B switches
1196
1197 2008-08-05 Pascal Obry <obry@adacore.com>
1198
1199 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1200
1201 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1202
1203 2008-08-05 Thomas Quinot <quinot@adacore.com>
1204
1205 * socket.c: Minor reformatting.
1206
1207 2008-08-05 Robert Dewar <dewar@adacore.com>
1208
1209 * sem_ch3.adb: Minor reformatting
1210
1211 * prj-nmsc.adb: Minor reformatting
1212
1213 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1214
1215 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1216 visibility check on the component type if the simple test fails.
1217
1218 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1219
1220 * init.c (__gnat_install_handler for linux): If we are building the
1221 Xenomai run time then we need to do two additional things: avoid
1222 memory swapping and transform the Linux environment task into a native
1223 Xenomai task.
1224
1225 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1226 time): Use interface to Xenomai native skin and avoid linux-specific
1227 way of setting CPU affinity.
1228 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1229
1230 2008-08-05 Bob Duff <duff@adacore.com>
1231
1232 * checks.ads: Minor comment fix
1233
1234 2008-08-05 Thomas Quinot <quinot@adacore.com>
1235
1236 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1237 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1238 CS8.
1239
1240 2008-08-05 Robert Dewar <dewar@adacore.com>
1241
1242 * mlib.adb: Minor code reorganization
1243 Minor reformatting
1244
1245 * make.adb: Minor reformatting
1246
1247 * prj-attr.ads: Minor reformatting
1248
1249 * s-os_lib.adb: Minor reformatting
1250
1251 * s-fileio.adb: Minor code reorganization
1252 Minor reformatting
1253
1254 * prj.ads: Minor reformatting
1255
1256 2008-08-05 Bob Duff <duff@adacore.com>
1257
1258 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1259 unresolved initial value of "null", because it causes implicitly
1260 generated "=" operators to be ambiguous, and because this type should
1261 not be passed to gigi.
1262
1263 2008-08-05 Vincent Celier <celier@adacore.com>
1264
1265 * mlib.adb: Update comments.
1266
1267 * make.adb (Switches_Of): Check for Switches (others), before checking
1268 for Default_Switches ("Ada").
1269 (Gnatmake): Use Builder'Switches (others) in preference to
1270 Builder'Default_Switches ("Ada") if there are several mains.
1271
1272 * prj-attr-pm.adb:
1273 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1274 aggregate.
1275
1276 * prj-attr.adb:
1277 Add markers to indicates that attributes Switches allow others as index
1278 (Others_Allowed_For): New Boolean function, returning True for
1279 attributes with the mark.
1280 (Initialize): Recognize optional letter 'O' as the marker for
1281 associative array attributes where others is allowed as the index.
1282
1283 * prj-attr.ads:
1284 (Others_Allowed_For): New Boolean function
1285 (Attribute_Record): New Boolean component Others_Allowed
1286
1287 * prj-dect.adb:
1288 (Parse_Attribute_Declaration): For associative array attribute where
1289 others is allowed as the index, allow others as an index.
1290
1291 * prj-nmsc.adb:
1292 (Process_Binder): Skip associative array attributes with index others
1293 (Process_Compiler): Ditto
1294
1295 * prj-util.adb:
1296 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1297 index is All_Other_Names.
1298
1299 * prj.ads:
1300 (All_Other_Names): New constant
1301
1302 * prj-proc.adb:
1303 (Process_Declarative_Items): Skip associative array attribute when index
1304 is reserved word "others".
1305
1306 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1307
1308 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1309
1310 2008-08-05 Thomas Quinot <quinot@adacore.com>
1311
1312 * a-rttiev.adb: Minor reformatting (comments)
1313
1314 * gen-soccon.c: Rename to gen-oscons.c
1315
1316 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1317 GNAT.Sockets.Constants.
1318 Add new constants for GNAT.Serial_Communications and System.File_IO.
1319
1320 2008-08-05 Javier Miranda <miranda@adacore.com>
1321
1322 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1323 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1324 implementation of this routine has been simplified.
1325
1326 2008-08-05 Pascal Obry <obry@adacore.com>
1327
1328 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1329 Set_Read_Only Win32 implementation.
1330
1331 2008-08-05 Thomas Quinot <quinot@adacore.com>
1332
1333 * exp_strm.adb: Minor reformatting (comments)
1334
1335 * sem_ch12.adb: Minor reformatting.
1336
1337 2008-08-05 Robert Dewar <dewar@adacore.com>
1338
1339 * sem_ch3.adb: Minor reformatting
1340
1341 * checks.adb: Minor reformatting
1342
1343 2008-08-05 Thomas Quinot <quinot@adacore.com>
1344
1345 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1346 restriction on Prefix.
1347
1348 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1349
1350 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1351 methods needed to handle switch sections when building a command line.
1352 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1353 Current_Section): New public methods or methods modified to handle
1354 building command lines with sections.
1355 (Set_Command_Line): Take into account sections when analysing a switch
1356 string.
1357 (Start): Sort the switches by sections before iterating the command line
1358 elements.
1359
1360 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1361 Is_New_Section, Current_Section): New methods or methods modified to
1362 handle building command lines with sections.
1363
1364 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1365
1366 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1367 discriminants, indicate that the corresponding object declaration has
1368 no initialization, to prevent spurious warnings when the access type is
1369 null-excluding.
1370
1371 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1372
1373 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1374 Abort_Task, warn if the call appears within a protected operation.
1375
1376 2008-08-04 Robert Dewar <dewar@adacore.com>
1377
1378 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1379
1380 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1381
1382 * sem_ch3.adb:
1383 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1384 anonymous access to protected subprogram that is the return type of the
1385 specification of a subprogram body.
1386
1387 * sem_ch6.adb:
1388 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1389 subprogram, freeze it now to prevent access anomalies in the back-end.
1390
1391 * exp_ch9.adb: Minor code cleanup.
1392 Make sure that new declarations are inserted into the tree before
1393 analysis (from code reading).
1394
1395 2008-08-04 Robert Dewar <dewar@adacore.com>
1396
1397 * exp_ch5.adb:
1398 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1399 at point of return.
1400
1401 2008-08-04 Thomas Quinot <quinot@adacore.com>
1402
1403 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1404
1405 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1406
1407 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1408
1409 2008-08-04 Javier Miranda <miranda@adacore.com>
1410
1411 * sem_prag.adb (Process_Convention): Add missing support for
1412 N_Private_Extension_Declaration nodes.
1413
1414 2008-08-04 Robert Dewar <dewar@adacore.com>
1415
1416 * exp_ch4.adb: Minor reformatting
1417
1418 2008-08-04 Pascal Obry <obry@adacore.com>
1419
1420 * adaint.h: Add missing prototype.
1421
1422 * adaint.c: Refine support for Windows file attributes.
1423
1424 2008-08-04 Robert Dewar <dewar@adacore.com>
1425
1426 * sem_res.adb:
1427 (Valid_Conversion): Catch case of designated types having different
1428 sizes, even though they statically match.
1429
1430 2008-08-04 Javier Miranda <miranda@adacore.com>
1431
1432 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1433 added in previous patch to handle access to subprograms.
1434
1435 2008-08-04 Robert Dewar <dewar@adacore.com>
1436
1437 * freeze.adb:
1438 (Freeze_Entity): Only check No_Default_Initialization restriction for
1439 constructs that come from source
1440
1441 2008-08-04 Thomas Quinot <quinot@adacore.com>
1442
1443 * exp_ch6.adb: Minor comment fix.
1444
1445 * sem_ch4.adb: Minor reformatting.
1446
1447 2008-08-04 Robert Dewar <dewar@adacore.com>
1448
1449 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1450
1451 2008-08-04 Pascal Obry <obry@adacore.com>
1452
1453 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1454 file attributes.
1455
1456 2008-08-04 Javier Miranda <miranda@adacore.com>
1457
1458 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1459 for N_Formal_Object_Declaration nodes. Adding kludge required by
1460 First_Formal to provide its functionality with access to functions.
1461 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1462 for anonymous access types returned by functions.
1463
1464 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1465 conversion of null-excluding access types (required only once to force
1466 the generation of the required runtime check).
1467
1468 * sem_type.adb (Covers): minor reformating
1469
1470 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1471 with internally generated nodes. Avoid generating the error inside init
1472 procs.
1473
1474 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1475 (Resolve_Null): Generate the null-excluding check in case of assignment
1476 to a null-excluding object.
1477 (Valid_Conversion): Add missing support for anonymous access to
1478 subprograms.
1479
1480 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1481 anonymous access types whose designated type is an itype. This case
1482 occurs with anonymous access to protected subprograms types.
1483 (Analyze_Return_Type): Add missing support for anonymous access to
1484 protected subprogram.
1485
1486 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1487 subprograms addition of missing check on matching convention. Required
1488 to properly handle access to protected subprogram types.
1489
1490 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1491 null excluding access types.
1492
1493 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1494
1495 * sem_ch12.adb: Add comments
1496
1497 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1498 access type and the allocator is not initialized, warn rather than
1499 reporting an error.
1500
1501 2008-08-04 Robert Dewar <dewar@adacore.com>
1502
1503 * exp_ch4.adb: Minor reformatting
1504
1505 * exp_dist.adb: Minor reformatting
1506
1507 * g-comlin.adb: Minor reformatting
1508
1509 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1510
1511 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1512 target to the type of the aggregate in the case where the target object
1513 is class-wide.
1514
1515 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1516 result type is class-wide and inherently limited, and the expression
1517 has a specific type, create a return object of the specific type, for
1518 more efficient handling of returns of build-in-place aggregates (avoids
1519 conversions of the class-wide return object to the specific type on
1520 component assignments).
1521
1522 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1523 about a type mismatch for a class-wide function with a return object
1524 having a specific type when the object declaration doesn't come from
1525 source. Such an object can result from the expansion of a simple return.
1526
1527 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1528
1529 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1530
1531 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1532 compiling for 64bit windows.
1533
1534 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1535
1536 * g-comlin.adb (Group_Switches): Preserve the switch order when
1537 grouping and allow switch grouping of switches with more than one
1538 character extension (e.g. gnatw.x).
1539 (Args_From_Expanded): Remove this now obsolete method.
1540
1541 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1542
1543 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1544 chain at once, to ensure that type is properly decorated for back-end,
1545 when allocator appears within a loop.
1546
1547 2008-08-04 Kevin Pouget <pouget@adacore.com>
1548
1549 * snames.h, snames.adb, snames.ads:
1550 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1551
1552 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1553 Build_To_Any_Call and Build_TypeCode_Call procedures.
1554
1555 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1556
1557 * rtsfind.ads: Add corresponding names.
1558
1559 * tbuild.adb: Update prefix restrictions to allow '_' character.
1560
1561 2008-08-04 Doug Rupp <rupp@adacore.com>
1562
1563 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1564 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1565 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1566 use it. Calculate pointer range overflow using 64bit types.
1567
1568 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1569
1570 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1571 legal context for an anonymous access to subprogram.
1572
1573 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1574 indirect call, report success to the caller to include possible
1575 interpretation.
1576
1577 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1578 check when the type
1579 of the extended return is an anonymous access_to_subprogram type.
1580
1581 * sem_res.adb:
1582 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1583 access_to_subprogram and the context requires its return type, and a
1584 dereference has not been introduced previously.
1585
1586 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1587
1588 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1589 gnatcheck support in GPS.
1590
1591 2008-08-04 Vincent Celier <celier@adacore.com>
1592
1593 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1594 requested
1595
1596 2008-08-04 Vincent Celier <celier@adacore.com>
1597
1598 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1599 variable, but don't check the resulting value as it has no impact on
1600 the processing.
1601
1602 * opt.ads:
1603 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1604 when switch -gnateG is used.
1605
1606 * prep.adb:
1607 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1608 when the source is modified by the preprocessor and there is no
1609 preprocessing errors.
1610
1611 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1612
1613 * sinput-l.adb:
1614 (Load_File): Output the result of preprocessing if the source text was
1615 modified.
1616
1617 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1618
1619 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1620
1621 * ug_words: Add VMS equivalent for -gnateG
1622
1623 * vms_data.ads:
1624 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1625
1626 2008-08-04 Doug Rupp <rupp@adacore.com>
1627
1628 * gcc-interface/utils2.c:
1629 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1630 in 32bit descriptor.
1631
1632 2008-08-04 Robert Dewar <dewar@adacore.com>
1633
1634 * par-ch10.adb: Minor reformatting
1635
1636 * i-cobol.adb: Minor reformatting.
1637
1638 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1639
1640 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1641 anonymous access return type of a regular function that is not a
1642 compilation unit.
1643
1644 2008-08-04 Vincent Celier <celier@adacore.com>
1645
1646 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1647
1648 * snames.adb: New standard name Global_Compilation_Switches
1649
1650 * snames.ads: New standard name Global_Compilation_Switches
1651
1652 * make.adb: Correct spelling error in comment
1653
1654 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1655
1656 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1657 target.
1658
1659 2008-08-04 Thomas Quinot <quinot@adacore.com>
1660
1661 * sem_ch10.adb: Minor comment fix.
1662
1663 2008-08-04 Robert Dewar <dewar@adacore.com>
1664
1665 * restrict.adb: Improved messages for restriction warnings
1666
1667 * restrict.ads: Improved messages for restriction messages
1668
1669 * s-rident.ads (Profile_Name): Add No_Profile
1670
1671 2008-08-04 Robert Dewar <dewar@adacore.com>
1672
1673 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1674
1675 2008-08-04 Robert Dewar <dewar@adacore.com>
1676
1677 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1678
1679 2008-08-04 Vincent Celier <celier@adacore.com>
1680
1681 * prj-proc.adb:
1682 (Copy_Package_Declarations): When inheriting package Naming from a
1683 project being extended, do not inherit source exception names.
1684
1685 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1686
1687 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1688 list of declaration to find previous subprogram, do not go to the
1689 original node of a generic unit.
1690
1691 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1692
1693 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1694 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1695
1696 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1697
1698 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1699 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1700 and adjust for above renaming.
1701 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1702 gnu_expr_alt_type parameter. Convert the expression to it instead
1703 of changing its type in place.
1704 (build_function_stub): Adjust call to above function.
1705
1706 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1707
1708 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1709 code. Do not get full definition of deferred constants with address
1710 clause for a use. Do not ignore deferred constant definitions with
1711 address clause. Ignore constant definitions already marked with the
1712 error node.
1713 <object>: Remove obsolete comment. For a deferred constant with
1714 address clause, get the initializer from the full view.
1715 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1716 Rework and remove obsolete comment.
1717 <N_Object_Declaration>: For a deferred constant with address clause,
1718 mark the full view with the error node.
1719 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1720 formatting nits.
1721
1722 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1723
1724 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1725
1726 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1727 sem_prag.adb, snames.adb, snames.ads, snames.h,
1728 par-prag.adb: Undo previous stream related changes.
1729
1730 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1731
1732 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1733 Define enumeration type to designate different IO mechanisms.
1734 Enchance generic package Stream_Ops_Internal to include an
1735 implementation of Input and Output.
1736
1737 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1738 No_Stream_Optimization is active, choose the default byte IO
1739 implementations of stream attributes for Strings.
1740 Otherwise use the corresponding block IO version.
1741
1742 2008-08-01 Olivier Hainque <hainque@adacore.com>
1743
1744 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1745 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1746
1747 2008-08-01 Robert Dewar <dewar@adacore.com>
1748
1749 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1750 convert plain identifier into defining identifier.
1751
1752 2008-08-01 Robert Dewar <dewar@adacore.com>
1753
1754 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1755 warnings
1756
1757 * lib-xref.adb: Add error defense.
1758
1759 2008-08-01 Bob Duff <duff@adacore.com>
1760
1761 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1762
1763 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1764
1765 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1766 correct accessibility levels. In the "when others" case, retrieve the
1767 access level of the Etype of Prev rather than Prev_Orig, because the
1768 original exression has not always been analyzed.
1769
1770 2008-08-01 Robert Dewar <dewar@adacore.com>
1771
1772 * prj-nmsc.adb: Minor reformatting
1773
1774 * sem_ch4.adb: Minor reformatting
1775 Minor code reorganization
1776
1777 * prj.ads: Minor reformatting
1778
1779 * s-os_lib.adb: Minor reformatting
1780
1781 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1782 half encodings
1783
1784 * scans.ads: Minor reformatting.
1785
1786 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1787 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1788
1789 * sem_res.adb:
1790 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1791
1792 * sem_ch12.adb: Minor comment reformatting
1793
1794 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1795 keyword
1796
1797 2008-08-01 Robert Dewar <dewar@adacore.com>
1798
1799 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1800 generating code
1801
1802 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1803
1804 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1805 converted is a real literal and the target type has static bounds,
1806 perform the conversion exactly to prevent floating-point anomalies on
1807 some targets.
1808
1809 2008-08-01 Vincent Celier <celier@adacore.com>
1810
1811 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1812
1813 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1814
1815 * prj.adb (Object_Exist_For): Use Object_Generated, not
1816 Objects_Generated that is removed and was never modified anyway.
1817
1818 * prj.ads:
1819 (Path_Syntax_Kind): New enumeration type
1820 (Language_Config): New component Path_Syntax, defaulted to Host.
1821 Components PIC_Option and Objects_Generated removed, as they are not
1822 used.
1823
1824 * snames.adb: New standard name Path_Syntax
1825
1826 * snames.ads: New standard name Path_Syntax
1827
1828 2008-08-01 Vincent Celier <celier@adacore.com>
1829
1830 * mlib-utl.adb:
1831 (Adalib_Path): New variable to store the path of the adalib directory
1832 when procedure Specify_Adalib_Dir is called.
1833 (Lib_Directory): If Adalib_Path is not null, return its value
1834 (Specify_Adalib_Dir): New procedure
1835
1836 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1837
1838 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1839
1840 * sem_prag.adb:
1841 (Check_Precondition_Postcondition): If not generating code, analyze the
1842 expression in a postcondition that appears in a subprogram body, so that
1843 it is properly decorated for ASIS use.
1844
1845 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1846
1847 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1848 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1849 N_Identifier. This was interfering with other cases that are rewritten
1850 as N_Identifier, such as allocators, resulting in passing of the wrong
1851 accessibility level, and based on testing this code is apparently no
1852 longer needed at all.
1853
1854 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1855
1856 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1857 procedure call whose prefix
1858 is a parameterless function call that returns an access_to_procedure.
1859
1860 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1861
1862 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1863 for RTX. Adding a suffix that is incremented at each iteration.
1864
1865 2008-08-01 Robert Dewar <dewar@adacore.com>
1866
1867 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1868 Raise_Exception
1869
1870 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
1871
1872 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1873 paths, which are authorized by Windows but can lead to errors when used
1874 elsewhere.
1875
1876 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1877
1878 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1879 a pending instantiation for the body of a subprogram that is to be
1880 inlined.
1881
1882 * sem_ch12.adb:
1883 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1884
1885 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1886 create a pending instance for its body, so that calls to the subprogram
1887 can be inlined by the back-end.
1888
1889 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1890
1891 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1892 rts-rtx-w32).
1893
1894 2008-08-01 Robert Dewar <dewar@adacore.com>
1895
1896 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1897
1898 2008-08-01 Doug Rupp <rupp@adacore.com>
1899
1900 * gnat_rm.texi: Document new mechanism Short_Descriptor.
1901
1902 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1903 mechanism values.
1904
1905 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1906 mechanism and Short_Descriptor mechanism values.
1907
1908 * snames.adb (preset_names): Add short_descriptor entry.
1909
1910 * snames.ads: Add Name_Short_Descriptor.
1911
1912 * types.h: Add new By_Short_Descriptor mechanism values.
1913
1914 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1915 mechanism and Short_Descriptor mechanism values.
1916
1917 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1918 values.
1919 (Descriptor_Codes): Modify range for new mechanism values.
1920
1921 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1922 mechanism values.
1923
1924 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1925 (gnat_to_gnu_param): Handle By_Short_Descriptor.
1926
1927 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1928 (build_vms_descriptor32): New prototype.
1929 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1930
1931 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1932 argument in call fill_vms_descriptor.
1933
1934 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1935 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1936 (build_vms_descriptor): Renamed from build_vms_descriptor64.
1937 (convert_vms_descriptor32): New function.
1938 (convert_vms_descriptor64): New function.
1939 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1940 descriptors.
1941
1942 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1943 no longer needed.
1944
1945 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1946
1947 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1948 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1949 name.
1950
1951 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1952
1953 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1954 current directory so only fully qualified names are allowed.
1955
1956 2008-08-01 Robert Dewar <dewar@adacore.com>
1957
1958 * gnat_ugn.texi:
1959 Minor editing, remove uncomfortable use of semicolon
1960
1961 * s-ststop.adb: Add some ??? comments
1962
1963 * sem_ch10.adb: Minor reformatting
1964
1965 * snames.ads:
1966 Minor comment fixes, some pragmas were not properly
1967 categorized in the comments, documentation change only
1968
1969 * xref_lib.adb: Minor reformatting
1970
1971 * sinput.adb: Minor reformatting
1972
1973 * gnatchop.adb: Minor reformatting
1974
1975 * sem_util.ads: Minor reformatting.
1976
1977 * opt.ads: Minor documentation fix
1978
1979 * scng.adb: Minor reformatting
1980
1981 * prj-part.adb: Update comments
1982
1983 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1984
1985 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1986 tagged synchronized type, use corresponding record type.
1987
1988 2008-08-01 Doug Rupp <rupp@adacore.com>
1989
1990 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1991 dummy transfer address for debugging.
1992
1993 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1994
1995 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1996
1997 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
1998
1999 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
2000 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
2001
2002 2008-07-31 Pascal Obry <obry@adacore.com>
2003
2004 * prj-nmsc.adb: Keep Object and Exec directory casing.
2005
2006 2008-07-31 Jose Ruiz <ruiz@adacore.com>
2007
2008 * system-rtx-rtss.ads
2009 Change the default stack size. It is important to set the commit part.
2010
2011 * s-taprop-rtx.adb
2012 (Initialize): Get the clock resolution.
2013 (RT_Resolution): Return the clock resolution that is indicated by the
2014 system.
2015
2016 * s-parame-vxworks.adb
2017 Document that this body is used for RTX in RTSS (kernel) mode.
2018
2019 * gcc-interface/Makefile.in
2020 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
2021 s-parame-vxworks.adb body in order to have reasonable stack sizes in
2022 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
2023 cannot ask for too big values.
2024
2025 2008-07-31 Robert Dewar <dewar@adacore.com>
2026
2027 * exp_aggr.adb: Minor reformatting
2028
2029 * makeutl.adb: Minor reformatting
2030
2031 * prj-env.adb: Minor reformatting
2032
2033 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2034
2035 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
2036 tagged type is completed by a concurrent type.
2037
2038 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2039
2040 * sem_aggr.adb:
2041 (Resolve_Record_Aggregate): Bypass error that a type without
2042 components must have a "null record" aggregate when compiling for Ada
2043 2005, since it's legal to give an aggregate of form (others => <>)
2044 for such a type.
2045
2046 2008-07-31 Javier Miranda <miranda@adacore.com>
2047
2048 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
2049 handle synchronized types. Required to handle well the object.operation
2050 notation applied to synchronized types.
2051
2052 2008-07-31 Quentin Ochem <ochem@adacore.com>
2053
2054 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
2055 anymore - just used internally.
2056 Added handling of very small tasks - when the theoretical size is
2057 already full at the point of the call.
2058 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
2059 not need to be added to the result.
2060
2061 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2062
2063 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
2064 corresponding spec is a primitive wrapper. Update comment.
2065
2066 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2067
2068 * bindgen.adb Comment reformatting. Update the list of run-time globals.
2069 (Gen_Adainit_Ada): Add the declaration, import and value set for
2070 configuration flag Canonical_Streams.
2071 (Gen_Adainit_C): Add the declaration and initial value of external
2072 symbol __gl_canonical_streams.
2073
2074 * init.c: Update the list of global values computed by the binder.
2075
2076 * opt.ads: Add flag Canonical_Streams.
2077
2078 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
2079 semantically handled pragmas.
2080
2081 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
2082 (Analyze_Pragma): Add case for pragma Canonical_Streams.
2083
2084 * snames.adb: Add character value for name Canonical_Streams.
2085
2086 * snames.ads:
2087 Add Name_Canonical_Streams to the list of configuration pragmas.
2088 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
2089
2090 * snames.h: Add a definition for Pragma_Canonical_Streams.
2091
2092 * s-ststop.adb:
2093 Add a flag and import to seize the value of external symbol
2094 __gl_canonical_streams. Update comment and initial value of constant
2095 Use_Block_IO.
2096
2097 * gnat_rm.texi: Add section of pragma Canonical_Streams.
2098
2099 * gnat_ugn.texi:
2100 Add pragma Canonical_Streams to the list of configuration pragmas.
2101
2102 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2103
2104 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
2105 has the form A.B.C and B is a unit renaming, analyze its compilation
2106 unit and add a with_clause on A.b to the context.
2107
2108 2008-07-31 Vincent Celier <celier@adacore.com>
2109
2110 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
2111 return the empty string, instead of raising Constraint_Error.
2112
2113 2008-07-31 Gary Dismukes <dismukes@adacore.com>
2114
2115 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
2116
2117 * checks.adb (Apply_Accessibility_Check): Insert the check on
2118 Insert_Node.
2119
2120 * exp_attr.adb:
2121 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
2122 to new parameter Insert_Node on call to Apply_Accessibility_Check.
2123 Necessary to distinguish the insertion node because the dereferenced
2124 formal may come from a rename, but the check must be inserted in
2125 front of the attribute.
2126
2127 * exp_ch4.adb:
2128 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
2129 call to Apply_Accessibility_Check.
2130 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
2131 on call to Apply_Accessibility_Check.
2132 Minor reformatting
2133
2134 2008-07-31 Javier Miranda <miranda@adacore.com>
2135
2136 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
2137 types when the candidate type is a synchronized type.
2138
2139 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
2140 types, and complete management of synchronized types adding missing
2141 code to handle formal that is a synchronized type.
2142
2143 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
2144 are not available and cause the compiler to blowup. Found compiling
2145 test with switch -gnatc
2146
2147 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
2148 Has_Correct_Formal_Mode plus code cleanup.
2149
2150 2008-07-31 Bob Duff <duff@adacore.com>
2151
2152 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
2153 recognized as two end-of-lines, but it should be just one.
2154
2155 2008-07-31 Thomas Quinot <quinot@adacore.com>
2156
2157 * exp_ch9.adb: Minor reformatting
2158
2159 * tbuild.ads: Fix several occurrences of incorrectly referring to
2160 Name_Find as Find_Name.
2161
2162 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2163
2164 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
2165 and the context is an object declaration with non-static bounds, treat
2166 the aggregate as non-static.
2167
2168 2008-07-31 Vincent Celier <celier@adacore.com>
2169
2170 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2171 Move back spec of Parse_Single_Project to body, as it is not called
2172 outside of package Prj.Part.
2173 (Project_Data): Remove components Linker_Name, Linker_Path and
2174 Minimum_Linker_Options as they are no longer set.
2175 Remove function There_Are_Ada_Sources from package Prj and move code
2176 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2177
2178 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2179
2180 * mlib-utl.ads: Fix typo.
2181
2182 2008-07-31 Robert Dewar <dewar@adacore.com>
2183
2184 * sem_ch12.adb: Minor reformatting
2185
2186 2008-07-31 Sergey Rybin <rybin@adacore.com>
2187
2188 * gnat_ugn.texi: Change the description of the
2189 Overly_Nested_Control_Structures: now the rule always requires a
2190 positive parameter for '+R' option
2191
2192 2008-07-31 Thomas Quinot <quinot@adacore.com>
2193
2194 * g-pehage.adb: Minor reformatting
2195
2196 2008-07-31 Pascal Obry <obry@adacore.com>
2197
2198 * s-finimp.ads: Minor reformatting.
2199
2200 2008-07-31 Vincent Celier <celier@adacore.com>
2201
2202 * s-regexp.ads: Minor comment fix
2203
2204 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2205
2206 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2207 so that we can compile this file successfully with -gnatc.
2208
2209 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2210
2211 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2212 of the type when looking for stream subprograms for type String,
2213 Wide_String and Wide_Wide_String.
2214
2215 * s-ststop.adb: Change the initialization expression of constant
2216 Use_Block_IO.
2217
2218 2008-07-31 Geert Bosch <bosch@adacore.com>
2219
2220 * arit64.c:
2221 New file implementing __gnat_mulv64 signed integer multiplication with
2222 overflow checking
2223
2224 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2225
2226 * gcc-interface/gigi.h:
2227 (standard_types): Add ADT_mulv64_decl
2228 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2229
2230 * gcc-interface/utils.c:
2231 (init_gigi_decls): Add initialization of mulv64_decl
2232
2233 * gcc-interface/trans.c:
2234 (build_unary_op_trapv): New function
2235 (build_binary_op_trapv): New function
2236 (gnat_to_gnu): Use the above functions instead of
2237 build_{unary,binary}_op
2238
2239 * gcc-interface/Makefile.in
2240 (LIBGNAT_SRCS): Add arit64.c
2241 (LIBGNAT_OBJS): Add arit64.o
2242
2243 2008-07-31 Vincent Celier <celier@adacore.com>
2244
2245 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2246 Linker'Default_Switches are declared. Warn if they are declared.
2247
2248 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2249
2250 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2251 Insert_Actions to place the pointer declaration in the code, rather
2252 than Insert_Before_And_Analyze, so that insertions of temporaries are
2253 kept in the proper order when transient scopes are present.
2254
2255
2256 2008-07-31 Robert Dewar <dewar@adacore.com>
2257
2258 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2259
2260 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2261
2262 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2263 subprogram case
2264
2265 2008-07-31 Vincent Celier <celier@adacore.com>
2266
2267 * s-os_lib.adb: Minor comment fix
2268
2269 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2270
2271 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2272 transfer pre/postconditions from generic copy to original tree, so that
2273 they will appear in each instance.
2274 (Process_PPCs): Do not transform postconditions into a procedure in a
2275 generic context, to prevent double expansion of check pragmas.
2276
2277 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2278 can be the renaming of the
2279 current instance, so check validity of the name accordingly.
2280
2281 2008-07-31 Robert Dewar <dewar@adacore.com>
2282
2283 * mlib-utl.ads: Minor reformatting
2284
2285 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2286
2287 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2288 from context. This attribute must be usable in Ada95 mode.
2289 The attribute can appear in the body of a function marked
2290 Inline_Always, but in this case the postocondition is not enforced.
2291
2292 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2293 of an inlined call pre- and postconditions are legal
2294
2295 2008-07-31 Vincent Celier <celier@adacore.com>
2296
2297 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2298 were for gprmake only
2299
2300 2008-07-31 Robert Dewar <dewar@adacore.com>
2301
2302 * gnat_ugn.texi: Update -gnatN documentation.
2303
2304 * gnat_rm.texi: Add note about pre/postcondition
2305 pragmas not checked in conjunction with front-end inlining.
2306
2307 2008-07-31 Robert Dewar <dewar@adacore.com>
2308
2309 * g-pehage.adb, g-pehage.ads: Minor reformatting
2310
2311 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2312
2313 * mlib-utl.ads, prj-makr.ads: Add comments.
2314
2315 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2316
2317 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2318 [WINDOWS]: Add s-winext.o.
2319
2320 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2321
2322 PR ada/36554
2323 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2324 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2325 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2326 Set precision to 1 for subtype of BOOLEAN_TYPE.
2327 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2328 (make_type_from_size): Deal with BOOLEAN_TYPE.
2329 * gcc-interface/misc.c (gnat_print_type): Likewise.
2330 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2331 Set boolean_type_node as its translation in the table, as well
2332 as boolean_false_node for False and boolean_true_node for True.
2333 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2334 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2335 (create_param_decl): Deal with BOOLEAN_TYPE.
2336 (build_vms_descriptor): Likewise.
2337 (build_vms_descriptor64): Likewise.
2338 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2339
2340 2008-07-30 Robert Dewar <dewar@adacore.com>
2341
2342 * exp_ch9.adb: Minor reformatting
2343
2344 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2345 if no primitive operation is found.
2346
2347 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2348
2349 * sem_ch8.adb: Minor reformatting
2350
2351 2008-07-30 Laurent Pautet <pautet@adacore.com>
2352
2353 * g-pehage.adb:
2354 Remove a limitation on the length of the words handled by the minimal
2355 perfect hash function generator.
2356
2357 * g-pehage.ads:
2358 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2359 Fix some typos.
2360
2361 2008-07-30 Robert Dewar <dewar@adacore.com>
2362
2363 * gnatlink.adb: Minor reformatting
2364
2365 2008-07-30 Thomas Quinot <quinot@adacore.com>
2366
2367 * rtsfind.adb (Check_RPC): Check version consistency even when not
2368 generating RCI stubs. Provide more detailed error message in case of
2369 mismatch.
2370
2371 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2372
2373 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2374 as a actual in an instance, check for a missing attribute to prevent
2375 program_error on an illegal program.
2376
2377 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2378 error if primitive is not found, so that exception can be handled
2379 elsewhere on illegal programs.
2380
2381 2008-07-30 Robert Dewar <dewar@adacore.com>
2382
2383 * uintp.adb (UI_GCD): Fix potential overflow
2384
2385 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2386
2387 * einfo.adb: Flag245 is now used.
2388 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2389 check to include functions.
2390 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2391 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2392 include functions.
2393 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2394 to the list of displayed flags.
2395
2396 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2397 Wrapped_Entity. These two flags are now present in functions.
2398 New flag Is_Private_Primitive.
2399 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2400
2401 * exp_ch9.adb:
2402 (Build_Wrapper_Bodies): New subprogram.
2403 (Build_Wrapper_Body): The spec and body have been moved to in
2404 Build_Wrapper_ Bodies. Code cleanup.
2405 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2406 Wrappers are now generated for primitives declared between the private
2407 and full view of a concurrent type that implements an interface.
2408 (Build_Wrapper_Specs): New subprogram.
2409 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2410 creation mechanism with a call to Build_Wrapper_Bodies.
2411 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2412 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2413 (Expand_N_Task_Body): Replace the wrapper body creation
2414 mechanism with a call to Build_Wrapper_Bodies.
2415 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2416 creation mechanism with a call to Build_Wrapper_Specs.
2417 (Is_Private_Primitive_Subprogram): New subprogram.
2418 (Overriding_Possible): Code cleanup.
2419 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2420
2421 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2422
2423 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2424 (Process_Full_View): Build wrapper specs for all primitives
2425 that belong to a private view completed by a concurrent type
2426 implementing an interface.
2427
2428 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2429 is a primitive of a
2430 concurrent type with a private view that implements an interface, try to
2431 find the proper spec.
2432 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2433 primitive if the type of its first parameter is a non-generic tagged
2434 private type.
2435 (Analyze_Subprogram_Specification): Code reformatting.
2436 (Disambiguate_Spec): New routine.
2437 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2438 (Is_Private_Concurrent_Primitive): New routine.
2439
2440 * sem_ch6.ads:
2441 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2442
2443 2008-07-30 Doug Rupp <rupp@adacore.com>
2444
2445 * gigi.h (build_vms_descriptor64): New function prototype.
2446 (fill_vms_descriptor): Modified function prototype.
2447
2448 * utils.c (build_vms_descriptor64): New function.
2449
2450 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2451
2452 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2453 argument.
2454
2455 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2456 64bit and 32bit descriptor and save the 64bit version as an alternate
2457 TREE_TYPE in the parameter.
2458 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2459 thin pointer.
2460
2461 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2462
2463 2008-07-30 Robert Dewar <dewar@adacore.com>
2464
2465 * make.adb: Minor reformatting
2466
2467 * mlib-utl.adb: Minor reformatting
2468
2469 * osint.ads: Minor reformatting
2470
2471 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2472
2473 * adaint.c
2474 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2475 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2476 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2477
2478 * cio.c
2479 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2480 the function RtPrintf for console output.
2481
2482 * argv.c Do not use the environ variable for RTX.
2483
2484 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2485 been moved before the call to Osint.Add_Default_Search_Dirs in order
2486 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2487 from the appropriate run time.
2488
2489 * targparm.ads
2490 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2491 target is a RTSS module for RTX.
2492
2493 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2494 RTX_RTSS_Kernel_Module
2495 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2496
2497 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2498 exception handling mechanism for Windows and RTX in Win32 mode, but
2499 not for RTX in kernel mode (RTSS).
2500 (LIBGNAT_SRCS): Remove ada.h
2501
2502 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2503
2504 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2505 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2506 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2507 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2508 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2509 ALL_ADA_CFLAGS): Remove.
2510 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2511 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2512 (GCC_CFLAGS): Remove X_CFLAGS.
2513 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2514 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2515 (ADA_CFLAGS): Substitute.
2516
2517 2008-07-30 Laurent Guerby <laurent@guerby.net>
2518
2519 PR ada/5911
2520 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2521 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2522 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2523 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2524 by stamp-gnatlib2-rts.
2525
2526 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2527
2528 PR documentation/15479
2529 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2530 statement for GNAT. Add @copying stanza, use it. Update to
2531 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2532 title as Front-Cover Text.
2533 * gnat_rm.texi: Likewise.
2534 * gnat_ugn.texi: Likewise.
2535
2536 2008-07-29 Jan Hubicka <jh@suse.cz>
2537
2538 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2539 check.
2540
2541 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2542
2543 * gcc-interface: New directory.
2544
2545 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2546 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2547 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2548 to gcc-interface subdirectory.
2549
2550 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2551
2552 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2553
2554 2008-07-28 Jan Hubicka <jh@suse.cz>
2555
2556 * misc.c (gnat_post_options): Do not set flag_no_inline.
2557
2558 2008-07-28 Richard Guenther <rguenther@suse.de>
2559
2560 Merge from gimple-tuples-branch.
2561
2562 2008-07-22 Olivier Hainque <hainque@adacore.com>
2563
2564 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2565 this is called for an elab proc to be discarded if empty.
2566 * utils.c (end_subprog_body): Honor ELAB_P.
2567 (build_function_stub): Adjust call to end_subprog_body.
2568 * trans.c (Subprogram_Body_to_gnu): Likewise.
2569 (gigi): Reorganize processing of elab procs to prevent
2570 gimplifying twice, using the new end_subprog_body argument.
2571
2572 2008-07-19 Richard Guenther <rguenther@suse.de>
2573
2574 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2575 (utils.o): Likewise.
2576 * trans.c: Include tree-iterator.h.
2577 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2578 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2579 (set_expr_location_from_node): Likewise.
2580 (gigi): Tuplify.
2581 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2582 of GENERIC_NEXT.
2583 * utils.c: Include tree-iterator.h.
2584 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2585
2586 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2587
2588 * trans.c: Include gimple.h instead of tree-gimple.h.
2589 * utils.c: Same.
2590
2591 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2592
2593 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2594
2595 2008-07-25 Jan Hubicka <jh@suse.cz>
2596
2597 * utils.c (end_subprog_body): Remove inline trees check.
2598 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2599
2600 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2601
2602 * raise-gcc.c: Move tsystem.h before tm.h.
2603
2604 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2605
2606 * gnathtml.pl: New file.
2607
2608 2008-07-19 Olivier Hainque <hainque@adacore.com>
2609
2610 * targtyps.c (get_target_default_allocator_alignment): Use
2611 MALLOC_ABI_ALIGNMENT.
2612
2613 2008-07-17 Olivier Hainque <hainque@adacore.com>
2614
2615 * adaint.c (__MINGW32__ section): Include ctype.h and define
2616 a fallback ISALPHA if IN_RTS.
2617 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2618
2619 2008-07-17 Olivier Hainque <hainque@adacore.com>
2620
2621 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2622 argument, to apply to references in addition to definitions. Prevent
2623 setting TREE_STATIC on externals.
2624 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2625
2626 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2627
2628 PR documentation/15479
2629 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2630 Replace backets around optional parameters with @ovar
2631 where possible, use @r{[}, @r{]} otherwise.
2632 Replace some @r, @i, and @emph with @var where appropriate.
2633
2634 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2635
2636 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2637
2638 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2639
2640 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2641 -Wc++-compat warnings.
2642 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2643 __gnat_locate_exec_on_path): Likewise.
2644 * decl.c (annotate_value): Likewise.
2645 * misc.c (gnat_handle_option): Likewise.
2646 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2647 post_error_ne_tree): Likewise.
2648
2649 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2650
2651 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2652 version of its type, attempt to first convert its elements.
2653
2654 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2655
2656 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2657
2658 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2659
2660 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2661
2662 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2663
2664 * utils2.c (known_alignment): Derive the alignment from pointed-to
2665 types only if it is otherwise unknown.
2666 <INTEGER_CST>: Tidy.
2667 <MULT_EXPR>: Likewise.
2668 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2669 that of the base.
2670
2671 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2672
2673 PR ada/36573
2674 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2675
2676 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2677
2678 * gnat_rm.texi (Implementation Defined Characteristics)
2679 (Standard Library Routines): Use @smallexample for indented
2680 text. Drop Indentation outside examples.
2681 * gnat_ugn.texi: Likewise.
2682
2683 2008-06-13 Olivier Hainque <hainque@adacore.com>
2684
2685 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2686 if undefined.
2687 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2688 realignment with force_align_arg_pointer attribute on foreign
2689 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2690
2691 2008-06-13 Olivier Hainque <hainque@adacore.com>
2692
2693 * utils.c (rest_of_record_type_compilation): When computing
2694 encodings for the components of a variable size type, early
2695 strip conversions on the current position expression to make
2696 sure it's shape is visible. Use remove_conversions for this
2697 purpose.
2698
2699 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2700
2701 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2702 constrained subtype of a discriminated type, discard the fields that
2703 are beyond its limits according to its size.
2704
2705 2008-06-10 Olivier Hainque <hainque@adacore.com>
2706
2707 * utils.c (create_subprog_decl): If this is for the 'main' entry
2708 point according to the asm name, redirect main_identifier_node.
2709
2710 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2711
2712 * decl.c (components_to_record): Adjust the packedness for the
2713 qualified union as well.
2714
2715 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2716
2717 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2718 checks non fatal.
2719
2720 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2721
2722 * sem_res.adb (Large_Storage_Type): A type is large if it
2723 requires as many bits as Positive to store its values and its
2724 bounds are known at compile time.
2725 * sem_ch13.adb (Minimum_Size): Note that this function returns
2726 0 if the size is not known at compile time.
2727
2728 2008-06-06 Nicolas Setton <setton@adacore.com>
2729 Olivier Hainque <hainque@adacore.com>
2730
2731 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2732 attribute, parallel descriptive type attached to another
2733 type for debug info generation purposes.
2734 * utils.c (add_parallel_type): New function, register
2735 parallel type to be attached to a type.
2736 (get_parallel_type): New function, fetch a registered
2737 parallel type, if any.
2738 (rest_of_record_type_compilation): Register the parallel
2739 type we make for variable size records.
2740 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2741 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2742 parallel debug types we make.
2743 * trans.c (extract_encoding, decode_name): New functions.
2744 (gigi): If the DWARF attribute extensions are available, setup
2745 to use them.
2746 * lang.opt: Register language specific processing request
2747 for -gdwarf+.
2748 * misc.c (gnat_dwarf_extensions): New global variable. How much
2749 do we want of our DWARF extensions. 0 by default.
2750 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2751 (gnat_post_options): Map gnat_dwarf_extensions to the
2752 commonuse_gnu_debug_info_extensions for later processing.
2753
2754 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2755
2756 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2757
2758 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2759
2760 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2761 * gnat_ugn.texi (Style Checking)
2762 (Adding the Results of Compiler Checks to gnatcheck Output)
2763 (Example of Binder Output File): Fix typos.
2764 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2765 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2766 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2767 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2768 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2769 sinfo.ads, utils.c: Fix typos in comments.
2770 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2771
2772 2008-05-29 Thomas Quinot <quinot@adacore.com>
2773
2774 * sem_eval.adb: Minor reformatting
2775
2776 2008-05-29 Ed Schonberg <schonberg@adacore.com>
2777
2778 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2779 is abstract, do not apply abstractness check on subprogram if this is
2780 a renaming declaration.
2781
2782 2008-05-29 Arnaud Charlet <charlet@adacore.com>
2783
2784 PR ada/864
2785 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2786 allow recognition of program suffix in addition to prefix.
2787
2788 * gnatchop.adb (Locate_Executable): Add support for prefix.
2789
2790 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2791 mlib-utl.adb: Adjust calls to Program_Name.
2792
2793 2008-05-29 Robert Dewar <dewar@adacore.com>
2794
2795 * sem_ch3.adb: Minor reformatting
2796 * sem_prag.adb: Minor reformatting
2797 * sem_res.adb: Minor reformatting
2798 * sinput-p.ads: Minor reformatting
2799
2800 2008-05-29 Javier Miranda <miranda@adacore.com>
2801
2802 * sem_util.adb:
2803 (Abstract_Interface_List): Add missing support for full type-declaration
2804 associated with synchronized types.
2805
2806 2008-05-29 Robert Dewar <dewar@adacore.com>
2807
2808 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2809
2810 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2811
2812 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2813 access type, wrap the expression in a conversion to force an
2814 accessibility check.
2815
2816 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2817 accessibility checks even when expansion is disabled in order to
2818 generate messages in the presence of previous errors or in
2819 semantics-only mode.
2820
2821 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2822
2823 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2824 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2825
2826 2008-05-28 Vincent Celier <celier@adacore.com>
2827
2828 PR ada/34446
2829 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2830 preprocessing expressions
2831
2832 2008-05-28 Vincent Celier <celier@adacore.com>
2833
2834 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2835 for preprocessing
2836
2837 * sinput-p.ads: Minor comment update and reformatting
2838
2839 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2840
2841 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2842 type has a deeper level than any master only when it is the type of an
2843 access parameter.
2844
2845 2008-05-28 Javier Miranda <miranda@adacore.com>
2846
2847 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2848
2849 2008-05-28 Javier Miranda <miranda@adacore.com>
2850
2851 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2852 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2853 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2854 Add code that was previously located in
2855 Find_Overridden_Synchronized_Primitive because it is only used here.
2856
2857 2008-05-28 Sergey Rybin <rybin@adacore.com>
2858
2859 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2860 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2861
2862 2008-05-28 Robert Dewar <dewar@adacore.com>
2863
2864 * restrict.ads:
2865 Add missing restrictions, and properly label all GNAT defined ones
2866
2867 * rtsfind.ads:
2868 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2869 Add entry for Ada.Task_Termination.Set_Specific_Handler
2870 Add entry for Ada.Task_Termination.Specific_Handler
2871
2872 * s-rident.ads:
2873 Add missing restrictions and properly mark all gnat defined ones
2874
2875 * sem_ch3.adb:
2876 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2877
2878 * sem_res.adb:
2879 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2880
2881 * gnat_rm.texi: Add missing restrictions, and properly label all
2882 GNAT defined ones
2883
2884 2008-05-28 Robert Dewar <dewar@adacore.com>
2885
2886 * restrict.adb:
2887 (Check_Restriction): violation of restriction No_Finalization is
2888 treated as a serious error to stop expansion
2889
2890 2008-05-28 Robert Dewar <dewar@adacore.com>
2891
2892 * exp_util.adb: Minor reformatting
2893 * exp_util.ads: Minor reformatting.
2894
2895 2008-05-28 Arnaud Charlet <charlet@adacore.com>
2896
2897 * Make-lang.in: Remove gprmake.
2898
2899 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2900
2901 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2902
2903 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2904 improper progenitor names, and avoid cascaded errors.
2905
2906 2008-05-28 Robert Dewar <dewar@adacore.com>
2907
2908 * gnat_rm.texi: Add note on Old giving warning when applied to constant
2909
2910 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2911 a constant
2912
2913 2008-05-28 Robert Dewar <dewar@adacore.com>
2914
2915 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2916 size
2917
2918 2008-05-28 Robert Dewar <dewar@adacore.com>
2919
2920 * exp_ch5.adb:
2921 (Expand_Simple_Function_Return): Copy unaligned result into temporary
2922
2923 2008-05-28 Javier Miranda <miranda@adacore.com>
2924
2925 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2926 for user-defined predefined primitives.
2927
2928 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2929 (Find_Overridden_Synchronized_Primitive): Ditto.
2930
2931 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2932
2933 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2934
2935 * a-ststio.adb, s-direio.adb:
2936 Further code clean up of previous change.
2937 Update comments.
2938
2939 2008-05-27 Vincent Celier <celier@adacore.com>
2940
2941 * prj-nmsc.adb: Minor reformatting
2942
2943 2008-05-27 Bob Duff <duff@adacore.com>
2944
2945 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2946 untagged private type with a tagged full type, where the full type has
2947 a self reference, create the corresponding class-wide type early, in
2948 case the self reference is "access T'Class".
2949
2950 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2951
2952 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2953 tasks and context is an object declaration. create master entity before
2954 expansion.
2955
2956 2008-05-27 Robert Dewar <dewar@adacore.com>
2957
2958 * mlib-prj.adb: Minor reformatting
2959
2960 * prj-part.adb: Minor reformatting
2961
2962 * prj.ads: Minor reformatting
2963
2964 * exp_ch3.adb: Minor reformatting.
2965
2966 * sem_ch3.ads: Minor reformatting
2967
2968 * sem_eval.adb: Minor reformatting
2969
2970 2008-05-27 Vincent Celier <celier@adacore.com>
2971
2972 * gnatcmd.adb:
2973 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2974
2975 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2976
2977 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2978 tasks, create an activation chain now, before the expansion into
2979 assignments and build-in-place calls that require the presence of an
2980 activation chain.
2981 (Backend_Processing_Possible): If the component type is inherently
2982 limited, the aggregate must be expanded into individual built-in-place
2983 assignments.
2984
2985 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2986 determine whether an allocation extra parameter must be built, to
2987 handle case of a private type whose full type is a discriminated type
2988 with defaults.
2989
2990 2008-05-27 Bob Duff <duff@adacore.com>
2991
2992 * gnat_rm.texi:
2993 Document the new behavior regarding trampolines.
2994
2995 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2996
2997 * a-direio.adb, a-sequio.adb: Replace address clause by
2998 unrestricted_access, simpler and compatible with .NET.
2999
3000 2008-05-27 Vincent Celier <celier@adacore.com>
3001
3002 * prj-part.adb:
3003 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
3004 a project file, so that symbolic links are not resolved.
3005
3006 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3007
3008 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
3009 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
3010 portable across GNAT targets, since this kind of address clause is not
3011 supported by VM back-ends (.NET/JGNAT).
3012
3013 2008-05-27 Arnaud Charlet <charlet@adacore.com>
3014
3015 * bindgen.adb: Update comments.
3016
3017 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
3018
3019 2008-05-27 Vincent Celier <celier@adacore.com>
3020
3021 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
3022 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
3023 mlib-tgt.adb, prj-env.adb, prj-env.ads:
3024 (Path_Information): New record type
3025 Use component of type Path_Information when there are two paths, one in
3026 canonical format and one in display format.
3027 Update the project manager to these new components.
3028
3029 2008-05-27 Robert Dewar <dewar@adacore.com>
3030
3031 * makeutl.adb: Minor reformatting
3032 * prj-nmsc.adb: Minor reformatting
3033 * s-stausa.adb: Minor reformatting
3034 * s-stausa.ads: Minor reformatting
3035 * sem_ch6.adb: Minor reformatting
3036
3037 2008-05-27 Thomas Quinot <quinot@adacore.com>
3038
3039 * sem_res.adb: Minor comment fixes
3040
3041 2008-05-27 Thomas Quinot <quinot@adacore.com>
3042
3043 * makeutl.adb: Minor code reorganization
3044
3045 * exp_aggr.adb: Add ??? comment
3046 Fix typo
3047
3048 * exp_ch6.adb: Minor reformatting
3049
3050 2008-05-27 Quentin Ochem <ochem@adacore.com>
3051
3052 * s-stausa.adb (Initialize): Updated result initialization, and
3053 initialization of environment stack.
3054 (Fill_Stack): Improved computation of the pattern zone, taking into
3055 account already filled at the calling point.
3056 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
3057 Measure and Overflow_Guard.
3058 (Report_Result): Fixed computation of the result using new fields of
3059 Stack_Analyzer.
3060
3061 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
3062 params by more explicit Stack_Size / Max_Pattern_Size params.
3063 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
3064 Added Stack_Used_When_Filling field.
3065 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
3066 Min_Measure and Max_Measure fields.
3067
3068 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
3069
3070 2008-05-27 Vincent Celier <celier@adacore.com>
3071
3072 * prj-nmsc.adb:
3073 (Check_File): Make sure that a unit that replaces the same unit in a
3074 project being extended is properly processed.
3075
3076 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3077
3078 * sem_ch3.adb:
3079 (Get_Discr_Value): Remove obsolete code that failed to find the value
3080 of a discriminant for an inherited task component appearing in a type
3081 extension.
3082
3083 2008-05-27 Thomas Quinot <quinot@adacore.com>
3084
3085 (System.File_IO.{Close, Delete, Reset}):
3086 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
3087
3088 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
3089 Pass File parameter by reference.
3090
3091 2008-05-27 Vincent Celier <celier@adacore.com>
3092
3093 * prj-nmsc.adb:
3094 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
3095 sources of the same project that have the same object file name.
3096 (Find_Explicit_Sources): Always remove a source exception that was not
3097 found.
3098
3099 2008-05-27 Thomas Quinot <quinot@adacore.com>
3100
3101 * sem_ch3.adb: Minor reformatting
3102
3103 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3104
3105 * sem_ch6.adb:
3106 (Is_Interface_Conformant): Handle properly a primitive operation that
3107 overrides an interface function with a controlling access result.
3108 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
3109 inherited and overriding operations, omit as well the conformance check
3110 on result types, to prevent spurious errors.
3111
3112 2008-05-27 Vincent Celier <celier@adacore.com>
3113
3114 * makeutl.ads, makeutl.adb:
3115 (Set_Location): New procedure
3116 (Get_Location): New function
3117 (Update_Main): New procedure
3118
3119 2008-05-27 Vincent Celier <celier@adacore.com>
3120
3121 * prj-nmsc.adb:
3122 (Check_Library): Allow standard project to be extended as a static
3123 library project.
3124 (Get_Mains): Do not inherit attribute Main in an extending library
3125 project.
3126
3127 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3128
3129 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
3130 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
3131 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
3132 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
3133 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
3134 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
3135 * system-mingw.ads (Always_Compatible_Rep): Likewise.
3136 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
3137 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
3138 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
3139
3140 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3141
3142 * sem_attr.adb: add guard to previous patch.
3143
3144 2008-05-27 Ed Schonberg <schonberg@adacore.com>
3145
3146 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
3147 a synchronized tagged type, do not attempt to build dispatch table for
3148 full view. The table is built for the corresponding record type, which
3149 has its own declaration.
3150
3151 2008-05-27 Gary Dismukes <dismukes@adacore.com>
3152
3153 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
3154 to the known type entity E, rather than setting it to Any_Type. Fixes
3155 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
3156 for objects whose type had an illegal constraint.
3157
3158 2008-05-27 Vincent Celier <celier@adacore.com>
3159
3160 * gnat_ugn.texi:
3161 Add succinct documentation for attribute Excluded_Source_List_File
3162
3163 2008-05-27 Vincent Celier <celier@adacore.com>
3164
3165 * prj-attr.adb: Add new project level attribute Map_File_Option
3166
3167 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
3168
3169 * prj.ads: Minor reformatting and comment update
3170 (Project_Configuration): New component Map_File_Option
3171
3172 * snames.adb: New standard name Map_File_Option
3173
3174 * snames.ads: New standard name Map_File_Option
3175
3176 2008-05-27 Vincent Celier <celier@adacore.com>
3177
3178 * xsnames.adb: Remove unused variable Oname
3179
3180 2008-05-27 Doug Rupp <rupp@adacore.com>
3181
3182 * exp_ch6.adb:
3183 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3184
3185 * exp_vfpt.ads:
3186 (Expand_Vax_Foreign_Return): Fix comments.
3187
3188 2008-05-27 Thomas Quinot <quinot@adacore.com>
3189
3190 * exp_dist.adb: Minor reformating
3191
3192 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3193
3194 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3195 No_Default_Initialization, which is now delayed until the freeze point
3196 of the object. Add a comment about deferral of the check.
3197
3198 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3199 on objects is moved here.
3200
3201 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3202
3203 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3204 (Compare_Array_S16): Adjust for above change.
3205 * s-casi32.adb (Uword): Likewise.
3206 (Compare_Array_S32): Likewise.
3207 * s-casi64.adb (Uword): Likewise.
3208 (Compare_Array_S64): Likewise.
3209 * s-caun16.adb (Uhalf): Likewise.
3210 (Compare_Array_U16): Likewise.
3211 * s-caun32.adb (Uword): Likewise.
3212 (Compare_Array_U32): Likewise.
3213 * s-caun64.adb (Uword): Likewise.
3214 (Compare_Array_U64): Likewise.
3215
3216 2008-05-26 Robert Dewar <dewar@adacore.com>
3217
3218 * exp_ch6.adb: Add ??? comment for previous change
3219
3220 * exp_vfpt.adb: Minor reformatting
3221
3222 * exp_vfpt.ads: Add ??? comment for last change
3223
3224 * sem_attr.adb: Add some ??? comments for previous change
3225
3226 * s-vaflop.ads: Add comments for previous change
3227
3228 2008-05-26 Doug Rupp <rupp@adacore.com>
3229
3230 * s-vaflop-vms-alpha.adb:
3231 Remove System.IO use clause, to prevent spurious ambiguities when
3232 package is access through rtsfind.
3233
3234 2008-05-26 Sergey Rybin <rybin@adacore.com>
3235
3236 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3237 made in front-end
3238
3239 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3240
3241 * sem_attr.adb:
3242 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3243 converted to S (A)'address only if A .. B is known to be a non-null
3244 range.
3245
3246 2008-05-26 Doug Rupp <rupp@adacore.com>
3247
3248 * s-vaflop.adb:
3249 (Return_D, Return_F, Return_G): New functions.
3250
3251 * s-vaflop.ads:
3252 (Return_D, Return_F, Return_G): New functions.
3253
3254 * exp_vfpt.adb:
3255 (Expand_Vax_Foreign_Return): New procedure
3256
3257 * exp_vfpt.ads:
3258 (Expand_Vax_Foreign_Return): New procedure
3259
3260 * rtsfind.ads:
3261 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3262 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3263
3264 * exp_ch6.adb:
3265 Import Exp_Vfpt
3266 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3267
3268 * s-vaflop-vms-alpha.adb:
3269 (Return_D, Return_F, Return_G): New functions.
3270
3271 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3272
3273 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3274 init proc entity when there is actual default initialization associated
3275 with the component type, to avoid spurious errors on objects of scalar
3276 array types that are marked Is_Public when No_Default_Initialization
3277 applies.
3278
3279 2008-05-26 Thomas Quinot <quinot@adacore.com>
3280
3281 * rtsfind.ads, rtsfind.adb:
3282 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3283 (Check_RPC): Support per-PCS-kind API versioning.
3284
3285 exp_dist.ads, exp_dist.adb:
3286 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3287 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3288 library function Get_RACW.
3289 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3290 library function Get_Reference.
3291 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3292 through an intermediate Any.
3293 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3294 going through an intermediate Any.
3295
3296 * sem_dist.adb: Minor reformatting.
3297
3298 2008-05-26 Javier Miranda <miranda@adacore.com>
3299
3300 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3301 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3302 (Is_Internal): Adding documentation on internal entities that have
3303 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3304
3305 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3306 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3307 Added assertion to force entities with this attribute to have
3308 attribute Is_Internal set to True.
3309 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3310
3311 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3312 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3313 a new implementation.
3314 (Add_Interface_Tag_Components): Remove special management of
3315 synchronized interfaces.
3316 (Analyze_Interface_Declaration): Minor reformating
3317 (Build_Derived_Record_Type): Minor reformating
3318 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3319 predefined primitive inherited from interface type because the body of
3320 internally generated predefined primitives of tagged types are generated
3321 later by Freeze_Type
3322 (Derive_Subprogram): Avoid generating an internal name if the parent
3323 subprogram overrides an interface primitive.
3324 (Derive_Subprograms): New implementation that keeps separate the
3325 management of tagged types not implementing interfaces, from tagged
3326 types that implement interfaces.
3327 (Is_Progenitor): New implementation.
3328 (Process_Full_View): Add documentation
3329 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3330 by call to Derive_Progenitor_Subprograms.
3331
3332 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3333 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3334 Skip_Controlling_Formals.
3335
3336 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3337 (Check_Conventions): New implementation. Remove local subprogram
3338 Skip_Check. Remove formal Search_From of routine Check_Convention.
3339 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3340 Skip_Controlling_Formals.
3341 (New_Overloaded_Entity): Enable addition of predefined dispatching
3342 operations.
3343
3344 * sem_disp.ads
3345 (Find_Primitive_Covering_Interface): New subprogram.
3346
3347 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3348 the task body procedure as a primitive of the corresponding tagged
3349 type.
3350 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3351 to the list of primitives.
3352 (Find_Primitive_Covering_Interface): New subprogram.
3353 (Override_Dispatching_Operation): Add documentation.
3354
3355 * sem_type.adb (Covers): Minor reformatings
3356
3357 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3358 Collect_Interfaces.
3359 Rename formal.
3360 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3361 (Implements_Interface): New subprogram.
3362 (Is_Parent): Removed.
3363 (Primitive_Names_Match): New subprogram.
3364 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3365 (Ultimate_Alias): New subprogram.
3366
3367 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3368 Collect_Interfaces.
3369 Remove special management for synchronized types. Rename formal. Remove
3370 internal subprograms Interface_Present_In_Parent and Add_Interface.
3371 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3372 on non-record types by code to return false in such case.
3373 (Implements_Interface): New subprogram.
3374 (Is_Parent): Removed. No special management is now required for
3375 synchronized types covering interfaces.
3376 (Primitive_Names_Match): New subprogram.
3377 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3378 (Ultimate_Alias): New subprogram.
3379
3380 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3381 Add internal entities associated with secondary dispatch tables to
3382 the list of tagged type primitives that are not interfaces.
3383 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3384 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3385 the management of predefined equality operator. In addition, if
3386 the type has an equality function corresponding with a primitive
3387 defined in an interface type, the inherited equality is abstract
3388 as well, and no body can be created for it.
3389
3390 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3391 exp_util to exp_disp.
3392 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3393 an entity corresponds with one of the predefined primitives required
3394 to implement interfaces.
3395 Update copyright notice.
3396
3397 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3398 final check on abstract subprograms all the primitives associated with
3399 interface primitives because they must be visible in the public and
3400 private part.
3401 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3402 interface type. This allows the use of this routine, for debugging
3403 purposes, when the tagged type is not fully decorated.
3404 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3405 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3406 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3407 entity corresponds with one of the predefined primitives required to
3408 implement interfaces.
3409
3410 * exp_util.adb (Find_Interface_ADT): New implementation
3411 (Find_Interface): Removed.
3412
3413 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3414 list of interfaces associated with nodes
3415 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3416
3417 2008-05-26 Thomas Quinot <quinot@adacore.com>
3418
3419 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3420 condition for assignment to temporary.
3421
3422 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3423
3424 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3425 checks on the upper bound if the index type is a modular type, to
3426 prevent wrap-around computations when size is close to upper bound of
3427 type.
3428
3429 2008-05-26 Robert Dewar <dewar@adacore.com>
3430
3431 * sem_ch3.adb: Minor reformatting
3432
3433 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3434
3435 * sem_ch12.adb (Remove_Parent): Use specification of instance
3436 to retrieve generic parent,
3437 to handle properly the case where the instance is a child unit.
3438 Add guard to handle properly wrapper packages.
3439 Minor reformatting
3440
3441 2008-05-26 Thomas Quinot <quinot@adacore.com>
3442
3443 * sinfo.ads: Minor reformatting
3444
3445 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3446
3447 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3448 Generate a tag check when the result subtype of a function, defined by
3449 an access definition, designates a specific tagged type.
3450 (Make_Tag_Check): New routine.
3451
3452 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3453
3454 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3455
3456 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3457
3458 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3459 (builtin_decl_for): Likewise.
3460 * trans.c (gigi): Likewise.
3461 * utils.c (def_builtin_1): Fix formatting.
3462
3463 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3464
3465 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3466 Create the statements which map a string name to protected or task
3467 entry indix.
3468
3469 * exp_ch9.adb: Add with and use clause for Stringt.
3470 Minor code reformatting.
3471 (Build_Entry_Names): New routine.
3472 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3473 for flag Build_Entry_Names which controls the allocation of the data
3474 structure for the string names of entries.
3475
3476 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3477
3478 * exp_util.adb (Entry_Names_OK): New function.
3479
3480 * exp_util.ads (Entry_Names_OK): New function.
3481
3482 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3483 enumerations RE_Id and RE_Unit_Table.
3484
3485 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3486 (Free_Entry_Names_Array): New routine.
3487
3488 * s-taskin.ads: Comment reformatting.
3489 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3490 Add component Entry_Names to record Ada_Task_Control_Block.
3491 (Free_Entry_Names_Array): New routine.
3492
3493 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3494 dynamically allocate an array
3495 of string pointers. This structure holds string entry names.
3496 (Free_Entry_Names): New routine.
3497 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3498 (Set_Entry_Names): New routine.
3499
3500 * s-tassta.ads:
3501 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3502 control the allocation of the data structure which stores entry names.
3503 (Set_Entry_Name): New routine.
3504
3505 * s-tpoben.adb:
3506 Add with and use clause for Ada.Unchecked_Conversion.
3507 (Finalize): Deallocate the entry names array.
3508 (Free_Entry_Names): New routine.
3509 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3510 create an array of string pointers to hold the entry names.
3511 (Set_Entry_Name): New routine.
3512
3513 * s-tpoben.ads:
3514 Add field Entry_Names to record Protection_Entries.
3515 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3516 (Set_Entry_Name): New routine.
3517
3518 2008-05-26 Vincent Celier <celier@adacore.com>
3519
3520 * prj-nmsc.adb:
3521 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3522
3523 * prj.ads:
3524 (Project_Configuration): New component Shared_Lib_Driver
3525
3526 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3527
3528 * inline.adb:
3529 (Cleanup_Scopes): For a protected operation, transfer finalization list
3530 to protected body subprogram, to force cleanup actions when needed.
3531
3532 2008-05-26 Robert Dewar <dewar@adacore.com>
3533
3534 * sem_cat.adb: Minor reformatting
3535
3536 * gnatname.adb: Minor reformatting
3537
3538 * osint.ads: Minor reformatting
3539
3540 * s-carun8.ads: Minor reformatting
3541
3542 * g-heasor.ads: Minor comment fix (unit is now pure)
3543
3544 2008-05-26 Robert Dewar <dewar@adacore.com>
3545
3546 * exp_ch2.adb:
3547 (Expand_Current_Value): Properly type generated integer literal
3548
3549 2008-05-26 Sergey Rybin <rybin@adacore.com>
3550
3551 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3552 Separate_Numeric_Error_Handlers.
3553
3554 2008-05-26 Pascal Obry <obry@adacore.com>
3555
3556 * sem_aggr.adb: Minor reformatting.
3557
3558 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3559
3560 * s-osinte-aix.adb:
3561 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3562 the scheduling policy to FIFO within priorities or round-robin
3563 respectively.
3564 Hence, the priority must be set in this case to the one selected by the
3565 user.
3566
3567 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3568
3569 * sem_ch12.adb:
3570 (Remove_Parent): If the enclosing scope is an instance whose generic
3571 parent is declared within some parent scope of the just completed
3572 instance, make full views of the entities in that parent visible, when
3573 applicable.
3574
3575 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3576
3577 * mingw32.h (STD_MINGW): Set to true for target w64.
3578
3579 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3580
3581 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3582 instead of TREE_STATIC on the ADDR_EXPR.
3583
3584 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3585
3586 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3587 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3588 GNAT standard locations.
3589
3590 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3591
3592 * gigi.h (mark_visited): Declare.
3593 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3594 only the topmost node of expressions.
3595 (elaborate_expression_1): Look deeper for read-only variables.
3596 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3597 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3598 (mark_visited_r): New function.
3599
3600 2008-05-23 Vincent Celier <celier@adacore.com>
3601
3602 * snames.adb: New standard name Excluded_Source_List_File.
3603
3604 * snames.ads: New standard name Excluded_Source_List_File.
3605
3606 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3607
3608 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3609 Get excluded sources from
3610 file indicated by attribute Excluded_Source_List_File, when present and
3611 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3612
3613 2008-05-23 Robert Dewar <dewar@adacore.com>
3614
3615 * exp_dist.adb: Minor reformatting
3616
3617 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3618
3619 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3620 slice, convert it to an indexed component, which is equivalent, more
3621 efficient, and usable even if the slice itself is not addressable.
3622
3623 2008-05-23 Olivier Hainque <hainque@adacore.com>
3624
3625 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3626 convention also allows access to named compiler built-in subprograms
3627 such as the GCC __builtin family.
3628
3629 2008-05-23 Vincent Celier <celier@adacore.com>
3630
3631 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3632 sep. If there are several possibilities, choose the one with the
3633 longer prefix.
3634
3635 2008-05-23 Vincent Celier <celier@adacore.com>
3636
3637 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3638 back end switches when executable specified with --GCC= is same as
3639 default, even if there are additional options.
3640
3641 * gnat_ugn.texi:
3642 Document when the back end switches from the ALI file are taken into
3643 account when gnatlink is invoked with --GCC=
3644
3645 2008-05-23 Thomas Quinot <quinot@adacore.com>
3646
3647 * s-os_lib.adb:
3648 (copy_File): Do not open destination file if source file is unreadable.
3649
3650 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3651
3652 * utils.c (handle_type_generic_attribute): Adjust to accept
3653 fixed arguments before an elipsis.
3654
3655 2008-05-21 Thomas Quinot <quinot@adacore.com>
3656
3657 * g-sothco.ads, g-sothco.adb: New files.
3658
3659 2008-05-20 Thomas Quinot <quinot@adacore.com>
3660
3661 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3662
3663 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3664 Add missing "with" of Ada.Unchecked_Conversion
3665
3666 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3667 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3668 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3669 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3670 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3671 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3672 Move common code out of GNAT.Sockets.Thin implementations and into
3673 Thin_Common.
3674 New constant SIZEOF_fd_set
3675 New flag Has_Sockaddr_Len
3676 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3677
3678 * g-stsifd-sockets.adb
3679 (Create): Remove call to Set_Length; use Set_Family to set the family
3680 and (on appropriate platforms) length fields in struct sockaddr.
3681
3682 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3683 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3684 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3685 Move common code out of GNAT.Sockets.Thin implementations and into
3686 Thin_Common.
3687
3688 * g-socket.ads, g-socket.adb:
3689 Move common code out of GNAT.Sockets.Thin implementations and into
3690 Thin_Common.
3691 (Connect_Socket, Accept_Socket): Provide new versions of these two
3692 routines that operate with a user specified timeout.
3693 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3694 this is now handled automatically by Set_Family on platforms that
3695 require it.
3696
3697 * gen-soccon.c:
3698 Move common code out of GNAT.Sockets.Thin implementations and into
3699 Thin_Common.
3700 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3701 this constant to 0 (not -1) because we use it to initialize an
3702 unsigned_char value.
3703 Align values for numeric constants only.
3704 Handle the case of systems that do not support AF_INET6.
3705 New constant SIZEOF_fd_set
3706 New flag Has_Sockaddr_Len
3707 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3708
3709 * gsocket.h: New flag Has_Sockaddr_Len
3710 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3711
3712 2008-05-20 Santiago Uruena <uruena@adacore.com>
3713
3714 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3715
3716 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3717
3718 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3719 the underlying issue with malloc/free has been fixed. Remove associated
3720 comments.
3721 Minor reformatting.
3722 Related to PR ada/24533
3723
3724 2008-05-20 Robert Dewar <dewar@adacore.com>
3725
3726 * ali.adb: Correct casing of ASCII.NUL
3727
3728 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3729 properly.
3730
3731 2008-05-20 Robert Dewar <dewar@adacore.com>
3732 Gary Dismukes <dismukes@adacore.com>
3733
3734 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3735 overflow if result converted to wider integer type.
3736 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3737 discriminated types when discriminant checks are suppressed.
3738
3739 2008-05-20 Vincent Celier <celier@adacore.com>
3740
3741 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3742 Wide_Wide_Character.
3743
3744 2008-05-20 Tristan Gingold <gingold@adacore.com>
3745
3746 * decl.c: Do not emit a variable for a object that has an address
3747 representation clause whose value is known at compile time.
3748 When a variable has an address clause whose value is known at compile
3749 time, refer to this variable by using directly the address instead of
3750 dereferencing a pointer.
3751
3752 2008-05-20 Robert Dewar <dewar@adacore.com>
3753
3754 PR ada/30740
3755 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3756 subtypes, always False for non-modular types.
3757 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3758 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3759 for Shared_Storage package.
3760 (Is_RACW_Stub_Type): New entity flag.
3761
3762 * exp_ch4.adb
3763 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3764 case where we have a modular type with a non-binary modules.
3765 Comments reformattings.
3766
3767 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3768 all types.
3769
3770 2008-05-20 Javier Miranda <miranda@adacore.com>
3771
3772 * exp_aggr.adb
3773 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3774 tests did not covered the case in which the type of the aggregate has
3775 no progenitors but some its parents has progenitors.
3776
3777 2008-05-20 Gary Dismukes <dismukes@adacore.com>
3778 Hristian Kirtchev <kirtchev@adacore.com>
3779
3780 * exp_ch3.adb
3781 (Expand_N_Object_Declaration): Correct the condition which triggers the
3782 generation of a call to Displace when initializing a class-wide object.
3783 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3784 when Frontend_Layout_On_Target is true to ensure that they're available
3785 for calling when a record variant size function is built in Layout.
3786
3787 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3788
3789 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3790 procedure for a derived type retrieve the discriminant values from the
3791 parent using the corresponding discriminant.
3792 (Expand_N_Assignment_Statement): Skip generation of implicit
3793 if-statement associated with controlled types if we are
3794 compiling with restriction No_Finalization.
3795
3796 2008-05-20 Vincent Celier <celier@adacore.com>
3797
3798 * prj.adb (Hash (Project_Id)): New function
3799 (Project_Empty): Add new component Interfaces_Defined
3800
3801 * prj.ads (Source_Data): New component Object_Linked
3802 (Language_Config): New components Object_Generated and Objects_Linked
3803 (Hash (Project_Id)): New function
3804 (Source_Data): New Boolean components In_Interfaces and
3805 Declared_In_Interfaces.
3806 (Project_Data): New Boolean component Interfaces_Defined
3807
3808 * prj-attr.adb:
3809 New project level attribute Object_Generated and Objects_Linked
3810 Add new project level attribute Interfaces
3811
3812 * prj-dect.adb: Use functions Present and No throughout
3813 (Parse_Variable_Declaration): If a string type is specified as a simple
3814 name and is not found in the current project, look for it also in the
3815 ancestors of the project.
3816
3817 * prj-makr.adb:
3818 Replace procedure Make with procedures Initialize, Process and Finalize
3819 to implement H414-023: process different directories with different
3820 patterns.
3821 Use functions Present and No throughout
3822
3823 * prj-makr.ads:
3824 Replace procedure Make with procedures Initialize, Process and Finalize
3825
3826 * prj-nmsc.adb
3827 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3828 the language configuration.
3829 (Process_Project_Level_Array_Attributes): Process new attributes
3830 Object_Generated and Object_Linked.
3831 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3832 False, to indicate that the erreor/warning is a continuation.
3833 (Check): Call Report_No_Sources with Contnuation = True after the first
3834 call.
3835 (Error_Msg): Process successively contnuation character and warning
3836 character.
3837 (Find_Explicit_Sources): Check that all declared sources have been found
3838 (Check_File): Indicate in hash table Source_Names when a declared source
3839 is found.
3840 (Check_File): Set Other_Part when found
3841 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3842 to the naming scheme have been found. For Ada, report an error if an
3843 exception has not been found. Otherwise, disregard the exception.
3844 (Check_Interfaces): New procedure
3845 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3846 and body.
3847 (Check): In multi-language mode, call Check_Interfaces
3848 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3849 for an excluded source.
3850 (Remove_Source): A source replacing a source in the interfaces is also
3851 in the interfaces.
3852
3853 * prj-pars.adb: Use function Present
3854
3855 * prj-part.adb: Use functions Present and No throughout
3856 (Parse_Single_Project): Set the parent project for child projects
3857 (Create_Virtual_Extending_Project): Register project with no qualifier
3858 (Parse_Single_Project): Allow an abstract project to be extend several
3859 times. Do not allow an abstract project to extend a non abstract
3860 project.
3861
3862 * prj-pp.adb: Use functions Present and No throughout
3863 (Print): Take into account the full associative array attribute
3864 declarations.
3865
3866 * prj-proc.adb: Use functions Present and No throughout
3867 (Expression): Call itself with the same From_Project_Node for the
3868 default value of an external reference.
3869
3870 * prj-strt.adb: Use functions Present and No throughout
3871 (Parse_Variable_Reference): If a variable is specified as a simple name
3872 and is not found in the current project, look for it also in the
3873 ancestors of the project.
3874
3875 * prj-tree.ads, prj-tree.adb (Present): New function
3876 (No): New function
3877 Use functions Present and No throughout
3878 (Parent_Project_Of): New function
3879 (Set_Parent_Project_Of): New procedure
3880
3881 * snames.ads, snames.adb:
3882 Add new standard names Object_Generated and Objects_Linked
3883
3884 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3885
3886 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3887 and the derived type are of the same kind.
3888 (Expand_Call): Generate type conversions for actuals of
3889 record or array types when the parent and the derived types differ in
3890 size and/or packed status.
3891
3892 2008-05-20 Javier Miranda <miranda@adacore.com>
3893 Ed Schonberg <schonberg@adacore.com>
3894
3895 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3896 generating dispatch tables of locally defined tagged types statically.
3897 Remove implicit if-statement that is no longer required.
3898 (Expand_Dispatching_Call): If this is a call to an instance of the
3899 generic dispatching constructor, the type of the first argument may be
3900 a subtype of Tag, so always use the base type to recognize this case.
3901
3902 2008-05-20 Thomas Quinot <quinot@adacore.com>
3903
3904 * exp_dist.adb
3905 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3906 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3907 assigning NULL into the result, to avoid a spurious warning.
3908 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3909 is not frozen.
3910 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3911 type.
3912 (Build_From_Any_Function, Build_To_Any_Function,
3913 Build_TypeCode_Function): For a type that has user-specified stream
3914 attributes, use an opaque sequence of octets as the representation.
3915
3916 2008-05-20 Kevin Pouget <pouget@adacore.com>
3917
3918 * exp_smem.ads, exp_smem.adb: Construction of access and assign
3919 routines has been replaced by an instantiation of
3920 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3921 shared variable declaration.
3922 Calls to access and assign routines have been replaced by calls to
3923 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3924 instantiated package.
3925
3926 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3927 It identifies the new generic package added in s-shasto.
3928
3929 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3930 is instantiated for each shared passive variable. It provides
3931 supporting procedures called upon each read or write access by the
3932 expanded code.
3933
3934 * sem_attr.adb:
3935 For this runtime unit (always compiled in GNAT mode), we allow
3936 stream attributes references for limited types for the case where
3937 shared passive objects are implemented using stream attributes,
3938 which is the default in GNAT's persistent storage implementation.
3939
3940 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3941
3942 * freeze.adb
3943 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3944 convention from its base type, do not set the type to that of integer,
3945 because it may inherit a size clause.
3946 Warn on a size clause with a size different
3947 from that of Integer, if the type has convention C.
3948
3949 2008-05-20 Vincent Celier <celier@adacore.com>
3950
3951 * gnatname.adb
3952 (Scan_Args): Rewrite to take into account new switch --and to separate
3953 arguments into sections.
3954 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3955 section, then Finalize.
3956
3957 2008-05-20 Tristan Gingold <gingold@adacore.com>
3958
3959 * init.c: Enable stack probing on ppc-linux.
3960
3961 * tracebak.c: Add symbolic traceback for ppc-linux.
3962
3963 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3964
3965 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3966
3967 * Makefile.in
3968 (common-tools): New rule, to avoid parallel build failure on gnat tools.
3969 Reenable parallel builds on this Makefile.
3970
3971 * Make-lang.in: Update dependencies.
3972
3973 2008-05-20 Robert Dewar <dewar@adacore.com>
3974
3975 * opt.ads (Treat_Restrictions_As_Warnings): New switch
3976
3977 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3978 Treat_Restrictions_As_Warnings.
3979
3980 * switch-c.adb: Recognize new switch -gnatr
3981
3982 * usage.adb: Add line for -gnatr
3983
3984 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3985
3986 * par-ch3.adb
3987 (P_Access_Definition): Change the error message when parsing "access
3988 all" in Ada 95 mode. The message no longer forces the user to recompile
3989 in 05 mode only to discover that anonymous access types are not allowed
3990 to have "all".
3991
3992 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3993
3994 * par-ch9.adb
3995 (P_Protected): Update the error message on missing "-gnat05" switch when
3996 using interfaces in conjunction with protected types. Remove the
3997 incorrect error message associated with the presence of "private" after
3998 a "with".
3999
4000 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4001
4002 * sem_aggr.adb: Update comments.
4003 Improve previous change for PR ada/17985
4004
4005 2008-05-20 Thomas Quinot <quinot@adacore.com>
4006
4007 * sem_cat.adb
4008 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
4009 the visible part of the spec of a remote types unit.
4010 (Validate_Remote_Access_Object_Type_Declaration):
4011 New local subprogram Is_Valid_Remote_Object_Type, replaces
4012 Is_Recursively_Limited_Private.
4013 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
4014 non-controlling formals (and the return type, even though this is not
4015 explicit in the standard) must support external streaming.
4016 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
4017 as above for of RAS types and RCI subprograms. (The return type is not
4018 checked yet).
4019 Update comments related to RACWs designating limited interfaces per
4020 ARG ruling on AI05-060.
4021
4022 * sem_util.ads, sem_util.adb
4023 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
4024 Is_Remote_Call_Interface to identify RACW types in a stable and
4025 consistent way. We used to rely in this predicate on the privateness of
4026 the designated type and its ancestors, but depending on the currently
4027 visible private parts, this caused false negatives. We now uniformly
4028 rely on checks made at the point where the RACW type is declared.
4029 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
4030
4031 2008-05-20 Javier Miranda <miranda@adacore.com>
4032 Ed Schonberg <schonberg@adacore.com>
4033 Hristian Kirtchev <kirtchev@adacore.com>
4034
4035 * sem_ch3.adb
4036 (Analyze_Object_Declaration): Fix over-conservative condition
4037 restricting use of predefined assignment with tagged types that have
4038 convention CPP.
4039 (Analyze_Object_Declaration): Relax the check regarding deferred
4040 constants declared in scopes other than packages since they can be
4041 completed with pragma Import.
4042 Add missing escaping of all-caps word 'CPP' in error messages.
4043 (Build_Discriminated_Subtype): Do not inherit representation clauses
4044 from parent type if subtype already carries them, because they are
4045 inherited earlier during derivation and already include those that may
4046 come from a partial view.
4047
4048 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
4049 Check the declarations of a subprogram body for proper deferred
4050 constant completion.
4051
4052 * sem_ch7.ads, sem_ch7.adb
4053 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
4054
4055 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4056 Thomas Quinot <quinot@adacore.com>
4057
4058 * sem_ch4.adb
4059 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
4060 F is a parameterless function that returns an array, and S is a subtype
4061 mark.
4062 (Analyze_Call): Insert dereference when the prefix is a parameterless
4063 function that returns an access to subprogram and the call has
4064 parameters.
4065 Reject a non-overloaded call whose name resolves to denote
4066 a primitive operation of the stub type generated to support a remote
4067 access-to-class-wide type.
4068
4069 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4070
4071 * sem_ch8.adb
4072 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
4073 when there is a use clause for the same entity in the context.
4074 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
4075 created for a stream attribute of an abstract type or interface type.
4076
4077 2008-05-20 Thomas Quinot <quinot@adacore.com>
4078
4079 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
4080 subprogram.
4081
4082 * sem_type.adb
4083 (Add_One_Interp): Ignore any interpretation that is a primitive
4084 operation of an RACW stub type (these primitives are only executed
4085 through dispatching, never through static calls).
4086 (Collect_Interps): When only one interpretation has been found, set N's
4087 Entity and Etype to that interpretation, otherwise Entity and Etype may
4088 still refer to an interpretation that was ignored by Add_One_Interp,
4089 in which case would end up with being marked as not overloaded but with
4090 an Entity attribute not pointing to its (unique) correct interpretation.
4091
4092 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4093
4094 * sem_eval.adb
4095 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
4096 denotes the whole array of its prefix.
4097
4098 2008-05-20 Robert Dewar <dewar@adacore.com>
4099
4100 * sem_res.adb (Resolve_Op_Not): Warn on double negation
4101
4102 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4103
4104 * sprint.adb
4105 (Print_Itype): Do not modify the sloc of the component type of a
4106 (packed) array itype, because it is an unrelated type whose source
4107 location is independent of the point of creation of the itype itself.
4108
4109 2008-05-20 Thomas Quinot <quinot@adacore.com>
4110
4111 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
4112 Append.
4113
4114 2008-05-20 Robert Dewar <dewar@adacore.com>
4115 Vincent Celier <celier@adacore.com>
4116
4117 * vms_data.ads: Add entry for -gnatr
4118 Put GNAT SYNC section in proper alpha order
4119 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
4120
4121 * gnat_ugn.texi: Add documentation for new gnatname switch --and
4122 Update the style checks section
4123 Add documentation of -gnatr
4124 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
4125 subsection the explanation how compiler checks should be disabled for
4126 gnatcheck.
4127 Update the list of Ada 95 reserved words used by in the project language
4128 Add documentation for project qualifiers.
4129 Document that abstract projects may be extended by different projects in
4130 the same project tree.
4131 Add documentation for gnatmake switch -d
4132
4133 * ug_words: Add -gnatyy VMS equivalence string.
4134 Add entry for -gnatr
4135
4136 2008-05-20 Bob Duff <duff@adacore.com>
4137
4138 * a-rttiev.adb
4139 (Set_Handler): Remove code from both of these that implements
4140 RM-D.15(15/2), because it causes a race condition and potential
4141 deadlock.
4142 (Process_Queued_Events): Add comment explaining "exception when others
4143 => null". Add clarifying ".all", even though implicit .all is legal
4144 here.
4145
4146 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4147
4148 * s-winext.ads: Replace representation clause by pragma Pack. Gives
4149 equivalent representation, but has the advantage of allowing
4150 compilation of this file under 64 bits platforms.
4151
4152 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
4153
4154 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
4155
4156 * adaint.c:
4157 Don't define dummy implementation of convert_addresses on ppc-linux.
4158
4159 2008-05-20 Ed Schonberg <schonberg@adacore.com>
4160
4161 * exp_ch7.adb
4162 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
4163 if expression is aggregate component.
4164
4165 2008-05-20 Robert Dewar <dewar@adacore.com>
4166
4167 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
4168 sem_ch12.adb: Update comments. Minor reformatting.
4169
4170 * exp_ch2.adb: Typo
4171
4172 * s-unstyp.ads: Fixed some typos in comments.
4173
4174 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4175
4176 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4177 type/constant.
4178
4179 * g-socthi-vxworks.ads: Update to latest socket changes.
4180
4181 * a-caldel-vms.adb: Resync with a-caldel spec.
4182
4183 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4184 Update comments.
4185
4186 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4187
4188 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4189 for dummy types pointed to by the converted pointer types.
4190
4191 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4192
4193 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4194 of records and unions.
4195 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4196
4197 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4198 Robert Dewar <dewar@adacore.com>
4199
4200 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4201 restrictions to the prefix of 'Old.
4202 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4203 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4204 variables.
4205
4206 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4207
4208 PR ada/24880
4209 PR ada/26635
4210 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4211 expression to an integral type with lower precision, use NOP_EXPR
4212 directly in a couple of special cases.
4213
4214 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4215 Ed Schonberg <schonberg@adacore.com>
4216
4217 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4218 constraint expressions.
4219
4220 2008-05-12 Tomas Bily <tbily@suse.cz>
4221
4222 * utils2.c (known_alignment, contains_save_expr_p)
4223 (gnat_mark_addressable): Use CASE_CONVERT.
4224 * decl.c (annotate_value): Likewise.
4225 * trans.c (maybe_stabilize_reference): Likewise.
4226 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4227 * utils.c (rest_of_record_type_compilation): Likewise.
4228 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4229 (protect_multiple_eval): Likewise.
4230
4231 2008-05-08 Andreas Schwab <schwab@suse.de>
4232
4233 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4234 DECL_IS_PURE to DECL_PURE_P.
4235
4236 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4237
4238 * decl.c (maybe_pad_type): Add ??? comment.
4239
4240 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4241
4242 * decl.c (components_to_record): Zero the alignment of the qualified
4243 union built for the variant part upon creating it.
4244
4245 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4246
4247 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4248 mode even if the alignment is not a factor of the original size. But
4249 make sure to create the inner field with the original size. Reorder.
4250 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4251 record as always addressable.
4252 * utils.c (convert): Deal specially with conversions between original
4253 and packable versions of a record type.
4254 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4255 recognizing an assignment between padded objects.
4256
4257 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4258
4259 * decl.c (make_packable_type): Resize the last component to its RM size
4260 only if it is of an aggregate type.
4261 * trans.c (call_to_gnu): Fix nit in comment.
4262 (gnat_to_gnu): Likewise.
4263
4264 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4265
4266 * Makefile.in: Adapt sh4-linux target.
4267
4268 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4269
4270 PR ada/35792
4271 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4272 tagged type by an untagged protected or task type.
4273
4274 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4275 Tristan Gingold <gingold@adacore.com>
4276
4277 PR ada/36007
4278 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4279 of aliased objects with an unconstrained nominal subtype.
4280 Cap the promotion to the effective alignment of the word mode.
4281
4282 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4283
4284 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4285 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4286 Use '&&' instead of ';'.
4287
4288 2008-04-24 Olivier Hainque <hainque@adacore.com>
4289
4290 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4291 doesn't require signed arithmetic anymore.
4292
4293 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4294
4295 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4296 (call_to_gnu): Don't set TREE_INVARIANT.
4297 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4298
4299 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4300
4301 * s-osinte-rtems.adb: Add sigalstack function.
4302 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4303 function. Add Alternate_Stack and Alternate_Stack_Size.
4304 Add missing process_shared field to pthread_condattr_t
4305 and change ss_low_priority to int from timespec.
4306
4307 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4308
4309 * i-forbla.adb: Link against -llapack and -lblas by default
4310 instead of the private -lgnalasup.
4311
4312 2008-04-21 Olivier Hainque <hainque@adacore.com>
4313
4314 Access to most C builtins from Ada
4315 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4316 (handle_pure_attribute, handle_novops_attribute,
4317 handle_nonnull_attribute, handle_sentinel_attribute,
4318 handle_noreturn_attribute, handle_malloc_attribute,
4319 handle_type_generic_attribute): New attribute handlers, from C fe.
4320 (gnat_internal_attribute_table): Map the new handlers.
4321 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4322 (init_gigi_decls): ... here.
4323 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4324 Move to a section dedicated to builtins processing.
4325 (build_void_list_node, builtin_type_for_size): New functions.
4326 (def_fn_type, get_nonnull_operand): Likewise.
4327 (install_builtin_elementary_type, install_builtin_function_types,
4328 install_builtin_attributes): Likewise.
4329 (fake_attribute_handler): Fake handler for attributes we don't
4330 support in Ada.
4331 (def_builtin_1): New function, worker for DEF_BUILTIN.
4332 (install_builtin_functions): New function.
4333 (gnat_install_builtins): Move to the builtins processing section.
4334 Now calling the newly introduced installers.
4335
4336 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4337
4338 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4339 constant objects, but not exceptions.
4340 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4341 compatibility test.
4342 * utils.c (create_var_decl_1): Likewise.
4343 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4344 the type when copying to padded object and the source is a constructor.
4345
4346 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4347
4348 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4349 alignment, reset it to zero if it would end up not being greater
4350 than that of the type.
4351
4352 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4353
4354 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4355 the padded type has a variable size.
4356
4357 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4358
4359 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4360 target pointer mechanism as soon as the size is not constant.
4361
4362 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4363
4364 * gigi.h (create_var_decl_1): Declare.
4365 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4366 (create_true_var_decl): Likewise.
4367 * utils.c (create_var_decl_1): Make global and reorder parameters.
4368 (create_var_decl): Delete.
4369 (create_true_var_decl): Likewise.
4370
4371 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4372
4373 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4374 objects by default.
4375 * fe.h (Debug_Flag_Dot_A): Delete.
4376 * debug.adb (-gnatd.a): Update documentation.
4377
4378 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4379
4380 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4381 "not null" parameter.
4382
4383 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4384
4385 * g-socket.adb: Add a message "IPv6 not supported" to the
4386 Socket_Error exception.
4387
4388 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4389
4390 PR ada/29015
4391 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4392 the type is known instead of the underlying type.
4393
4394 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4395
4396 PR ada/22387
4397 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4398 procedure for a derived type retrieve the discriminant values from
4399 the parent using the corresponding discriminant.
4400
4401 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4402 Gary Dismukes <dismukes@adacore.com>
4403
4404 PR ada/28733
4405 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4406 which is not an entity (and hence not a package).
4407 (End_Use_Package): Ditto.
4408
4409 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4410
4411 PR ada/16086
4412 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4413 protected operation that matches the signature, not only an entry, a
4414 regular subprogram or a literal.
4415
4416 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4417
4418 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4419 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4420 if a size or alignment is specified. Do not take into account
4421 alignment promotions for the computation of the object's size.
4422 <type>: Call maybe_pad_type only if a size or alignment is specified.
4423 (maybe_pad_type): Really reuse the RM_Size of the original type if
4424 requested.
4425 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4426 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4427 statements. Use the padded view of the type when copying between
4428 padded objects of the same underlying type.
4429
4430 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4431
4432 * vms_data.ads: Fix typo in constant.
4433 * gen-soccon.c: Fix typo in error string.
4434 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4435 Fix typos.
4436 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4437 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4438 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4439 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4440 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4441 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4442 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4443 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4444 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4445 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4446 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4447 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4448 sinfo.ads: Fix typos in comments.
4449
4450 2008-04-14 Robert Dewar <dewar@adacore.com>
4451
4452 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4453 to every non-object and change error message.
4454
4455 2008-04-14 Robert Dewar <dewar@adacore.com>
4456
4457 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4458 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4459 directly.
4460
4461 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4462
4463 PR ada/18680
4464 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4465 apply pragma Linker_Section on type.
4466
4467 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4468
4469 PR ada/16098
4470 * sem_prag.adb (Error_Pragma_Ref): New.
4471 (Process_Convention): Specialized message for non-local
4472 subprogram renaming. Detect the problem in homonyms as well.
4473
4474 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4475
4476 PR ada/15915
4477 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4478 * sem_ch12.adb (Instantiate_Object): Use it.
4479 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4480 storage pool denotes a variable as per RM 13.11(15).
4481
4482 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4483
4484 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4485 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4486
4487 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4488
4489 PR ada/20822
4490 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4491 line endings even on non-Unix platforms.
4492
4493 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4494
4495 PR ada/35050
4496 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4497 renaming information.
4498
4499 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4500
4501 PR ada/17985
4502 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4503 itself.
4504
4505 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4506
4507 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4508 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4509 snames.ads, sprint.adb, stand.ads, stringt.ads,
4510 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4511 switch.ads, sysdep.c, table.adb, table.ads,
4512 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4513 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4514 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4515 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4516 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4517 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4518 Fix comment typos.
4519
4520 * sem_ch10.adb, sem_ch10.ads,
4521 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4522 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4523 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4524 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4525 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4526 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4527 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4528 sem_warn.ads: Fix comment typos.
4529
4530 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4531 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4532 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4533 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4534 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4535 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4536 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4537 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4538 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4539 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4540 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4541 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4542 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4543 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4544 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4545 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4546 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4547 sem_cat.adb, sem_cat.ads: Fix comment typos.
4548
4549 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4550
4551 PR ada/35825
4552 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4553
4554 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4555
4556 * s-linux-hppa.ads: Fix syntax errors.
4557
4558 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4559
4560 * gnat_ugn.texi: Fix typos.
4561 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4562 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4563 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4564 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4565 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4566 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4567 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4568 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4569 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4570 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4571 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4572 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4573 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4574 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4575 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4576 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4577 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4578 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4579 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4580 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4581 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4582 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4583 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4584 s-rident.ads: Fix comment typos.
4585
4586 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4587
4588 PR ada/28305
4589 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4590 environment if generic instance is a top-level one.
4591
4592 2008-04-09 Doug Rupp <rupp@adacore.com>
4593
4594 * decl.c (validate_size): Set minimum size for fat pointers same as
4595 access types. Code clean ups.
4596
4597 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4598 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4599
4600 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4601
4602 * s-crtl.ads (malloc32) New function, alias for malloc
4603 (realloc32) New function, alias for realloc
4604
4605 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4606
4607 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4608 allocator size is 32 and default pointer size is 64.
4609 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4610 lhs type if smaller, whatever the modes.
4611
4612 * gigi.h (malloc32_decl): New macro definition
4613
4614 * utils.c (init_gigi_decls): New malloc32_decl
4615 Various code clean ups.
4616
4617 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4618 Task_Address vice System.Address.
4619
4620 * s-taspri-vms.ads: Import System.Aux_DEC
4621 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4622 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4623
4624 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4625 Task_Address vice System.Address.
4626
4627 * s-inmaop-vms.adb: Import System.Task_Primitives
4628 (To_Address): Unchecked convert to Task_Address vice System.Address
4629
4630 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4631 expires now.
4632 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4633 (To_Address) Unchecked convert to Task_Address vice System.Address
4634
4635 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4636
4637 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4638
4639 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4640
4641 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4642 (fdesc_type_node): Define.
4643 (null_fdesc_node): Likewise.
4644 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4645 uses descriptors for vtables and the type comes from a dispatch table,
4646 return the descriptor type.
4647 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4648 uses descriptors for vtables and the type comes from a dispatch table,
4649 build a descriptor in the static case and copy the existing one in the
4650 non-static case.
4651 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4652 the type is a pointer-to-subprogram coming from a dispatch table,
4653 return the null descriptor.
4654 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4655 vtables, the source type is the descriptor type and the target type
4656 is a pointer type, first build the pointer.
4657 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4658 build the descriptor type and the null descriptor.
4659
4660 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4661
4662 * decl.c (prepend_attributes): Fix typo.
4663 * trans.c (Pragma_to_gnu): Likewise.
4664 * utils.c (gnat_genericize): Likewise.
4665
4666 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4667 Richard Kenner <kenner@adacore.com>
4668
4669 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4670 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4671 <E_Record_Type>: Try to get a better form of the component for
4672 packing, even if it has an integral mode.
4673 <E_Record_Subtype>: Likewise.
4674 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4675 exception suppressing the final conversion between record types.
4676
4677 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4678
4679 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4680 alignment for space, promote the alignment of non-scalar variables with
4681 no size and alignment.
4682 * gigi.h (gnat_types_compatible_p): Declare.
4683 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4684 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4685 * utils.c (gnat_types_compatible_p) : New predicate.
4686 (convert): Use it throughout to test for cases where a mere view
4687 conversion is sufficient.
4688 * utils2.c (build_binary_op): Minor tweaks.
4689 (build_unary_op): Likewise.
4690
4691 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4692
4693 * decl.c (adjust_packed): Expand comment.
4694
4695 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4696
4697 * s-tasuti.ads: Use Task_Address instead of System.Address.
4698
4699 * makeutl.adb (Path_Or_File_Name): New function
4700
4701 * nlists.ads, itypes.ads: Update comments.
4702
4703 * s-crtl.ads (malloc32, realloc32): New functions.
4704
4705 * s-auxdec.ads (Short_Address_Size): New constant.
4706
4707 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4708
4709 * s-ststop.ads, s-ststop.adb: New file.
4710
4711 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4712 Minor reformatting.
4713
4714 2008-04-08 Pascal Obry <obry@adacore.com>
4715
4716 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4717 (Stop_Bits_Number): New type.
4718 (Parity_Check): Likewise.
4719 (Set): Add parameter to set the number of stop bits and
4720 the parity. Parameter timeout is now a duration instead
4721 of a plain integer.
4722
4723 * g-sercom-linux.adb:
4724 Implement the stop bits and parity support for GNU/Linux.
4725 Fix handling of timeout, it must be given in tenth of seconds.
4726
4727 * g-sercom-mingw.adb:
4728 Implement the stop bits and parity support for Windows.
4729 Use new s-win32.ads unit instead of declaring Win32 services
4730 directly into this body.
4731 Update handling of timeout as now a duration.
4732
4733 * s-win32.ads, s-winext.ads: New files.
4734
4735 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4736 Arnaud Charlet <charlet@adacore.com>
4737
4738 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4739
4740 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4741 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4742
4743 * s-osinte-lynxos-3.ads,
4744 (Alternate_Stack): Remove when not needed. Simplify declaration
4745 otherwise.
4746 (Alternate_Stack_Size): New constant.
4747
4748 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4749 'Unrestricted_Access.
4750
4751 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4752 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4753 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4754 s-osinte-solaris.ads, s-osinte-vms.ads
4755 (SA_ONSTACK): New constant.
4756 (stack_t): New record type.
4757 (sigaltstack): New imported function.
4758 (Alternate_Stack): New imported variable.
4759 (Alternate_Stack_Size): New constant.
4760
4761 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4762
4763 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4764 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4765 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4766 (Task_Address_Size): New constant size of System.Address
4767 (Alternate_Stack_Size): New constant.
4768
4769 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4770 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4771 Establish the alternate stack if the platform makes use of n alternate
4772 signal stack for stack overflows.
4773 (Create_Task): Take into account the alternate stack in the stack size.
4774 (Initialize): Save the address of the alternate stack into the ATCB for
4775 the environment task.
4776 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4777
4778 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4779
4780 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4781
4782 * s-intman-posix.adb:
4783 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4784 alternate signal stack for stack overflows.
4785
4786 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4787 x86-64, adjust the saved value of the stack pointer if the signal was
4788 raised by a stack checking probe.
4789 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4790 stack and only for SIGSEGV.
4791 (Linux section): Likewise on x86 and x86-64.
4792 [VxWorks section]
4793 (__gnat_map_signal): Now static.
4794 (__gnat_error_handler): Not static any more.
4795 (__gnat_adjust_context_for_raise): New function. Signal context
4796 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4797 propagation circuitry.
4798 (__gnat_error_handler): Second argument of a sigaction handler is a
4799 pointer, not an int, and is unused.
4800 Adjust signal context before mapping to exception.
4801 Install signal handlers for LynxOS case.
4802
4803 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4804 (Task_Id): Set size to Task_Address_Size
4805 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4806 (To_Address): Unchecked convert to Task_Address vice System.Address
4807
4808 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4809 address into the ATCB if the platform makes use of an alternate signal
4810 stack for stack overflows.
4811 (Free_Task): Add call to Finalize_Attributes_Link.
4812 Add argument Relative_Deadline to pass the value specified for
4813 the task. This is not yet used for any target.
4814
4815 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4816 the value specified for the task.
4817
4818 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4819
4820 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4821 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4822 s-vxwext-rtp.adb): New files.
4823
4824 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4825 Minor updates to accomodate changes above.
4826
4827 2008-04-08 Pascal Obry <obry@adacore.com>
4828
4829 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4830 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4831 Use new s-win32.ads unit instead of declaration
4832 from s-osinte-mingw.ads.
4833
4834 * s-osinte-mingw.ads:
4835 Move all non tasking based interface to s-win32.ads.
4836
4837 * s-osprim-mingw.adb:
4838 Remove duplicated declarations and use s-win32.ads
4839 unit instead.
4840
4841 2008-04-08 Vincent Celier <celier@adacore.com>
4842 Arnaud Charlet <charlet@adacore.com>
4843
4844 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4845 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4846 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4847 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4848 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4849
4850 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4851 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4852 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4853 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4854 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4855 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4856 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4857 mlib-tgt-specific-mingw.adb: New names.
4858
4859 * Makefile.in:
4860 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4861 Get rid of gnatbl.
4862 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4863 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4864 Minor updates for VMS
4865
4866 * gnatbl.c: Removed.
4867
4868 2008-04-08 Thomas Quinot <quinot@adacore.com>
4869
4870 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4871 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4872 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4873 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4874 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4875 ASCII.NUL throughout.
4876
4877 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4878 Matthew Heaney <heaney@adacore.com>
4879
4880 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4881 renaming.
4882
4883 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4884 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4885 to convention for non-RM specs.
4886 Add descriptive header, and documented each operation
4887 document each operation
4888
4889 2008-04-08 Robert Dewar <dewar@adacore.com>
4890 Bob Duff <duff@adacore.com>
4891 Gary Dismukes <dismukes@adacore.com>
4892 Ed Schonberg <schonberg@adacore.com>
4893
4894 * alloc.ads: Add entries for Obsolescent_Warnings table
4895
4896 * einfo.ads, einfo.adb: Minor reformatting.
4897 (Is_Discriminal): New subprogram.
4898 (Is_Prival): New subprogram.
4899 (Is_Protected_Component): New subprogram.
4900 (Is_Protected_Private): Removed.
4901 (Object_Ref, Set_Object_Ref): Removed.
4902 (Prival, Set_Prival): Change assertion.
4903 (Privals_Chain, Set_Privals_Chain): Removed.
4904 (Prival_Link, Set_Prival_Link): New subprogram.
4905 (Protected_Operation, Set_Protected_Operation): Removed.
4906 (Protection_Object, Set_Protection_Object): New subprogram.
4907 (Write_Field17_Name): Remove case for Object_Ref.
4908 (Write_Field20_Name): Add case for Prival_Link.
4909 (Write_Field22_Name): Remove case for Protected_Operation,
4910 Privals_Chain.
4911 Add case for Protection_Object.
4912 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4913 so clients
4914 (Overlays_Constant): New flag
4915 (Is_Constant_Object): New predicate
4916 (Is_Standard_Character_Type): New predicate
4917 (Optimize_Alignment_Space): New flag
4918 (Optimize_Alignment_Time): New flag
4919 (Has_Postconditions): New flag
4920 (Obsolescent_Warrning): Field removed
4921 (Spec_PPC_List): New field
4922 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4923 subprograms to get and set the relative deadline associated to a task.
4924
4925 * exp_attr.adb (May_Be_External_Call): Account for the case where the
4926 Access attribute is part of a named parameter association.
4927 (Expand_Access_To_Protected_Op): Test for the attribute occurring
4928 within an init proc and use that directly as the scope rather than
4929 traversing up to the protected operation's enclosing scope. Only apply
4930 assertion on Is_Open_Scopes in the case the scope traversal is done.
4931 For the init proc case use the address of the first formal (_init) as
4932 the protected object reference.
4933 Implement Invalid_Value attribute
4934 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4935 contents of the dispatch table there is no need to duplicate the
4936 itypes associated with record types (i.e. the implicit full view
4937 of private types).
4938 Implement Enum_Val attribute
4939 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4940 within _Postconditions procedure
4941 (Expand_N_Attribute_Reference, case Result): Implement new attribute
4942
4943 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4944 a return statement calls a function that is not available in
4945 configurable runtime.
4946 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4947 (Expand_Non_Function_Return): Generate call to _Postconditions proc
4948 (Expand_Simple_Function_Return): Ditto
4949
4950 * frontend.adb: Add call to Sem_Aux.Initialize
4951
4952 * sem_aux.ads, sem_aux.adb: New file.
4953
4954 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4955 Add new Pragma_Relative_Deadline.
4956 Add support for pragmas Check and Check_Policy
4957
4958 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4959 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4960 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4961 missing check because they are not allowed in CPP tagged types.
4962 Add Sure parameter to Note_Possible_Modification calls
4963 Add implementation of Invalid_Value attribute
4964 Implement new attribute Has_Tagged_Values
4965 Implement Enum_Val attribute
4966 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4967 generated attributes.
4968 (Analyze_Attribute, case Result): If prefix of the attribute is
4969 overloaded, it always resolves to the enclosing function.
4970 (Analyze_Attribute, case Result): Properly deal with analysis when
4971 Postconditions are not active.
4972 (Resolve_Attribute, case Result): Properly deal with appearence during
4973 preanalysis in spec.
4974 Add processing for attribute Result
4975
4976 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4977 for operators.
4978 (Analyze_Subprogram_Body): Install private_with_clauses when the body
4979 acts as a spec.
4980 (Check_Inline_Pragma): recognize an inline pragma that appears within
4981 the subprogram body to which it applies.
4982 (Analyze_Function_Return): Check that type of the expression of a return
4983 statement in a function with a class-wide result is not declared at a
4984 deeper level than the function.
4985 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4986 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4987 user- defined operators.
4988 (Install_Formals): Moved to spec to allow use from Sem_Prag for
4989 analysis of precondition/postcondition pragmas.
4990 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4991 Last_Formal, along with lots of comments on what this is about
4992 (Analyze_Subprogram_Body): Fix case where we move entities from the
4993 spec to the body when there are no body entities (now possible with
4994 precondition and postcondition pragmas).
4995 (Process_PPCs): New procedure
4996 (Analyze_Subprogram_Body): Add call to Process_PPCs
4997
4998 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4999 clause.
5000 (Pop_Scope): Restore Check_Policy_List on scope exit
5001 (Push_Scope): Save Check_Policy_List on scope entry
5002 Change name In_Default_Expression => In_Spec_Expression
5003 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5004 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5005 (Analyze_Object_Renaming): Allow 'Reference as object
5006 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
5007 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
5008 of restriction identifier.
5009 Add Sure parameter to Note_Possible_Modication calls
5010
5011 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
5012 Don't check for primitive operations when calling Rep_Item_Too_Late.
5013 (Process_Import_Or_Interface): Do not place flag on formal
5014 subprograms.
5015 (Analyze_Pragma, case Export): If the entity is a deferred constant,
5016 propagate information to full view, which is the one elaborated by the
5017 back-end.
5018 (Make_Inline): the pragma is effective if it applies to an internally
5019 generated subprogram declaration for a body that carries the pragma.
5020 (Analyze_Pragma, case Optimize_Alignment): Set new flag
5021 Optimize_Alignment_Local.
5022 (Analyze_PPC_In_Decl_Part): New procedure
5023 (Get_Pragma_Arg): Moved to outer level
5024 (Check_Precondition_Postcondition): Change to allow new visibility
5025 rules for package spec
5026 (Analyze_Pragma, case Check_Policy): Change placement rules to be
5027 same as pragma Suppress/Unsuppress.
5028 Change name In_Default_Expression => In_Spec_Expression
5029 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5030 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5031 (Check_Precondition_Postcondition): Do proper visibility preanalysis
5032 for the case of these pragmas appearing in the spec.
5033 (Check_Enabled): New function
5034 (Initialize): New procedure
5035 (Tree_Read): New procedure
5036 (Tree_Write): New procedure
5037 (Check_Precondition_Postcondition): New procedure
5038 Implement pragmas Check and Check_Policy
5039 Merge Assert processing with Check
5040
5041 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
5042 New warning flag -gnatw.e
5043
5044 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
5045 returning whether a task (or main procedure) has a pragma
5046 Relative_Deadline.
5047 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
5048 (or main procedure) has a pragma Relative_Deadline.
5049 Add Next_Pragma field to N_Pragma node
5050 (PPC_Enabled): New flag
5051 (Next_Pragma): Now used for Pre/Postcondition processing
5052
5053 * snames.h, snames.ads, snames.adb: New standard name
5054 Inherit_Source_Path
5055 Add entry for 'Invalid_Value attribute
5056 Add entry for new attribute Has_Tagged_Values
5057 Add entry for Enum_Val attribute
5058 Add new standard names Aggregate, Configuration and Library.
5059 Add _Postconditions
5060 Add _Result
5061 Add Pragma_Precondition
5062 Add Pragma_Postcondition
5063 Add Attribute_Result
5064 New standard name Archive_Builder_Append_Option
5065 (Preset_Names): Add _relative_deadline and relative_deadline definitions
5066 There was also a missing non_preemptive_within_priorities.
5067 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
5068 Relative_Deadline.
5069 Add support for pragmas Check and Check_Policy
5070
5071 * tree_gen.adb: Call Sem_Aux.Tree_Write
5072
5073 * tree_in.adb: Call Sem_Aux.Tree_Read
5074
5075 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
5076 sequence
5077
5078 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
5079 sequence
5080
5081 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
5082 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
5083 Relative_Deadline.
5084 (Expand_Pragma_Check): New procedure
5085
5086 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
5087 buffer.
5088
5089 * sinfo.adb (PPC_Enabled): New flag
5090
5091 2008-04-08 Robert Dewar <dewar@adacore.com>
5092 Gary Dismukes <dismukes@adacore.com>
5093 Javier Miranda <miranda@adacore.com>
5094 Ed Schonberg <schonberg@adacore.com>
5095
5096 * fe.h: Remove global Optimize_Alignment flag, no longer used
5097
5098 * layout.adb: Test Optimize_Alignment flags rather than global switch
5099
5100 * lib.ads, lib.adb: New OA_Setting field in library record
5101
5102 * lib-load.adb: New OA_Setting field in library record
5103
5104 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
5105 units mentioned in limited_with_ clauses in the ali file, with an
5106 'Y' marker.
5107 New Ox fields in U line
5108
5109 * opt.adb: New flag Optimize_Alignment_Local
5110 (Check_Policy_List[_Config]): New flags
5111
5112 * opt.ads (Invalid_Value_Used): New flag
5113 New switch Optimize_Alignment_Local
5114 (Warn_On_Parameter_Order): New flag
5115 (Check_Policy_List[_Config]): New flags
5116
5117 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
5118 limited_with clauses.
5119 New data structures for Optimize_Alignment
5120
5121 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
5122 New procedure
5123 (Check_Consistent_Optimize_Alignment): Rework for new structure
5124 (Check_Consistent_Restrictions): Fix incorrect error message
5125
5126 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
5127 created class-wide type (to the Parent field of the specific type).
5128 (Install_Siblings): Handle properly private_with_clauses on subprogram
5129 bodies and on generic units.
5130 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
5131 illegal limited_with_clause that names a non-existent package.
5132 (Check_Body_Required): Determine whether a unit named a limited_with
5133 clause needs a body.
5134 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
5135 Capture Optimize_Alignment settings to set new OA_Setting field in
5136 library record.
5137 (Build_Limited_Views): Include task and protected type declarations.
5138
5139 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
5140 case of a possible constant redeclaration where the current object is
5141 an entry index constant.
5142 (Analyze_Object_Declaration): Generate an error in case of CPP
5143 class-wide object initialization.
5144 (Analyze_Object_Declaration): Add extra information on warnings for
5145 declaration of unconstrained objects.
5146 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
5147 conflicts with the setting of Stored_Constraint in the case where the
5148 access type entity has already been created as an E_Incomplete_Type due
5149 to a limited with clause.
5150 Use new Is_Standard_Character_Type predicate
5151 (Analyze_Object_Declaration): Apply access_constant check only after
5152 expression has been resolved, given that it may be overloaded with
5153 several access types.
5154 (Constant_Redeclaration): Additional legality checks for deferred
5155 constant declarations tha involve anonymous access types and/or null
5156 exclusion indicators.
5157 (Analyze_Type_Declaration): Set Optimize_Alignment flags
5158 (Analyze_Subtype_Declaration): Ditto
5159 (Analyze_Object_Declaration): Ditto
5160 (Analyze_Object_Declaration): Don't count tasks in generics
5161 Change name In_Default_Expression => In_Spec_Expression
5162 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5163 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5164 (Process_Discriminants): Additional check for illegal use of default
5165 expressions in access discriminant specifications in a type that is not
5166 explicitly limited.
5167 (Check_Abstract_Overriding): If an inherited function dispaches on an
5168 access result, it must be overridden, even if the type is a null
5169 extension.
5170 (Derive_Subprogram): The formals of the derived subprogram have the
5171 names and defaults of the parent subprogram, even if the type is
5172 obtained from the actual subprogram.
5173 (Derive_Subprogram): In the presence of interfaces, a formal of an
5174 inherited operation has the derived type not only if it descends from
5175 the type of the formal of the parent operation, but also if it
5176 implements it. This is relevant for the renamings created for the
5177 primitive operations of the actual for a formal derived type.
5178 (Is_Progenitor): New predicate, to determine whether the type of a
5179 formal in the parent operation must be replaced by the derived type.
5180
5181 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5182 predicate recursive to handle components that have a user-defined
5183 Initialize procedure. Handle controlled derived types whose ancestor
5184 has a user-defined Initialize procedured.
5185 (Note_Possible_Modification): Add Sure parameter, generate warning if
5186 sure modification of constant
5187 Use new Is_Standard_Character_Type predicate
5188 (Find_Parameter_Type): when determining whether a protected operation
5189 implements an interface operation, retrieve the type of the formal from
5190 the entity when the formal is an access parameter or an
5191 anonymous-access-to-subprogram.
5192 Move Copy_Parameter_List to sem_util, for use when building stubbed
5193 subprogram bodies.
5194 (Has_Access_Values): Tagged types now return False
5195 (Within_HSS_Or_If): New procedure
5196 (Set_Optimize_Alignment_Flags): New procedure
5197 Change name In_Default_Expression => In_Spec_Expression
5198 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5199 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5200
5201 2008-04-08 Tristan Gingold <gingold@adacore.com>
5202
5203 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5204
5205 2008-04-08 Tristan Gingold <gingold@adacore.com>
5206
5207 PR ada/10768
5208
5209 * cuintp.c: Fix 16 bits issue for AVR.
5210 On AVR, integer is 16 bits, so it can't be used to do math with
5211 Base (=32768).
5212 So use long_integer instead.
5213
5214 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5215
5216 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5217 System.OS_Primitives.
5218 Change type of various constants, parameters and local variables from
5219 Time to representation type OS_Time.
5220 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5221 Remove the declaration of constant Mili_F from several routines. New
5222 body for internal package Conversions_Operations.
5223 (Time_Of): Add default parameters for several formals.
5224
5225 * a-caldel.adb: Minor reformatting
5226
5227 * a-calend.ads, a-calend.adb: New body for internal package
5228 Conversions_Operations.
5229 (Time_Of): Add default parameters for several formals.
5230
5231 * Makefile.rtl: Add a-ststop
5232 Add Ada.Calendar.Conversions to the list of runtime files.
5233 Add g-timsta
5234
5235 * a-calcon.adb, a-calcon.ads: New files.
5236
5237 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5238 Tristan Gingold <gingold@adacore.com>
5239
5240 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5241 (Install_Restricted_Handlers): New procedure
5242 which is a simplified version of Install_Handlers that does not store
5243 previously installed.
5244
5245 * s-interr-vxworks.adb: Fix ACATS cxc3001
5246 On VxWorks interrupts can't be detached.
5247 (Install_Restricted_Handlers): New procedure.
5248
5249 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5250 procedure.
5251
5252 2008-04-08 Olivier Hainque <hainque@adacore.com>
5253
5254 * s-intman-vxworks.ads, s-intman-vxworks.adb
5255 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5256 required services already implemented elsewhere.
5257 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5258 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5259 argument passed to the handler, which we need for ZCX propagation
5260 purposes.
5261
5262 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5263
5264 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5265
5266 * g-timsta.adb, g-timsta.ads: New files.
5267
5268 2008-04-08 Robert Dewar <dewar@adacore.com>
5269
5270 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5271 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5272 (Raise_Exception_Always): Fix documentation accordingly
5273
5274 2008-04-08 Robert Dewar <dewar@adacore.com>
5275
5276 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5277 Stream_Convert)
5278
5279 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5280 FOnly
5281
5282 2008-04-08 Javier Miranda <miranda@adacore.com>
5283 Robert Dewar <dewar@adacore.com>
5284 Ed Schonberg <schonberg@adacore.com>
5285
5286 * a-tags.adb (Register_Interface_Offset): New subprogram.
5287 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5288 (To_Predef_Prims_Table_Ptr): Removed.
5289 (Acc_Size): Removed.
5290 (To_Acc_Size): Removed.
5291 (Parent_Size): Modified to the call the subprogram returning the size of
5292 the parent by means of the new TSD component Size_Func.
5293
5294 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5295 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5296 code referencing the Offset_To_Top component of the dispatch table's
5297 prologue.
5298 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5299 use of 'address to initialize dispatch table slots.
5300 (Size_Func): New component of the TSD. Used by the run-time to call the
5301 size primitive of the tagged type.
5302
5303 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5304 Offset_To_Top component of a dispatch table.
5305 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5306 deferred constant declaration. do not add a null expression, to prevent
5307 spurious errors when full declaration is analyzed.
5308 (Apply_Discriminant_Check): If both discriminant constraints share a
5309 node which is not static but has no side effects, do not generate a
5310 check for that discriminant.
5311 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5312 subexpr, since the prefix of an attribute is a name.
5313
5314 * checks.ads: Fix nit in comment.
5315
5316 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5317 and body of predefined primitives in case of CPP tagged type
5318 derivations.
5319 (Freeze_Type): Deal properly with no storage pool case
5320 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5321 primitive Deep_Adjust if a nonlimited interface is derived from a
5322 limited interface.
5323 (Build_Dcheck_Functions): Create discriminant-checking functions only
5324 for variants that have some component(s).
5325 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5326 properly the case where the slice bounds extend to the last value of the
5327 underlying representation.
5328 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5329 (Is_Variable_Size_Record): An array component has a static size if
5330 index bounds are enumeration literals.
5331
5332 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5333 an external tag has been specified for the type.
5334 (Building_Static_DT): Add missing support for private types.
5335 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5336 to the entity associated with the parent of Typ. This is done to
5337 avoid wrong access when the parent is a private type.
5338 (Expand_Interface_Conversion): Improve error message when the
5339 configurable runtime has no support for dynamic interface conversion.
5340 (Expand_Interface_Thunk): Add missing support to interface types in
5341 configurable runtime.
5342 (Expand_Dispatching_Call): remove obsolete code.
5343 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5344 ensure that all subtypes and aggregates associated with dispatch
5345 tables have the attribute Is_Dispatch_Table_Entity set to true.
5346 (Register_Primitive): Rename one variable to improve code reading.
5347 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5348 of the pointer to the 'size primitive in the TSD.
5349
5350 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5351 (RE_Offset_To_Top_Ptr): New entity.
5352 (RE_Register_Interface_Offset): New entity.
5353 (RE_Set_Dynamic_Offset_To_Top): New entity.
5354 (RE_Set_Offset_To_Top): Removed entity.
5355 (RE_Prim_Ptr): New entity
5356 (RE_Size_Func): New entity
5357 (RE_Size_Ptr): New entity
5358 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5359 (Ada_Dispatching_Child): Define this new subrange.
5360 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5361 RE_Time_Span, and RE_Time_Span_Zero).
5362 (RE_Unit_Table): Add new required run-time calls
5363
5364 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5365 children.
5366
5367 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5368 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5369 initializes the Offset_To_Top component of a dispatch table.
5370 (Build_Predef_Prims): Removed.
5371 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5372 its actual code.
5373 (Build_Set_Size_Function): New subprogram.
5374
5375 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5376 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5377
5378 2008-04-08 Robert Dewar <dewar@adacore.com>
5379
5380 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5381 computing Fore when Exp > 0
5382
5383 2008-04-08 Robert Dewar <dewar@adacore.com>
5384
5385 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5386
5387 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5388 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5389
5390 * fmap.adb: Remove Big_String declarations (now in Types)
5391 (No_Mapping_File): New Boolean global variable
5392 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5393 False.
5394 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5395 tables were empty before adding entries, open the mapping file
5396 with Truncate = True, instead of delete/re-create.
5397
5398 * fname-sf.adb: Remove Big_String declarations (now in Types)
5399
5400 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5401 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5402 big pointer types
5403
5404 * table.ads: Add for Table_Ptr'Storage_Size use 0
5405
5406 * types.ads: Add Big_String declarations
5407 Add Size_Clause of zero for big pointer types
5408
5409 2008-04-08 Vincent Celier <celier@adacore.com>
5410
5411 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5412 (Usage): Add line for switch --subdirs=
5413 Add new switch -eL, to follow symbolic links when processing project
5414 files.
5415
5416 * gnatcmd.adb: Process switches -eL and --subdirs=
5417 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5418 Program_Name to get proper tool names when AAMP_On_Target is set.
5419 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5420 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5421 Osint.Program_Name).
5422
5423 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5424 (Usage): Add lines for switches -eL and --subdirs=
5425
5426 * makeusg.adb: Add line for switch --subdirs=
5427
5428 * prj.ads:
5429 (Source_Data): New Boolean component Compiled, defaulted to True
5430 (Empty_File_Name: New global variable in private part, initialized in
5431 procedure Initialize.
5432 (Subdirs_Option): New constant string
5433 (Subdirs): New String_Ptr global variable
5434 (Language_Config): New component Include_Compatible_Languages
5435 (Project_Qualifier): New type for project qualifiers
5436 (Project_Data): New component Qualifier
5437 (Project_Configuration): New component Archive_Builder_Append_Option
5438
5439 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5440 another imported project indicate the name of this imported project.
5441 (Check_File): When a unit is in two project files, indicate the project
5442 names and the paths of the source files for each project.
5443 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5444 set object, dependency and switches file names if Compiled is True.
5445 (Process_Compiler): Allow the empty string for value of attribute Driver
5446 (Get_Directories): When Subdirs is not null and Object_Dir is not
5447 specified, locate and create if necessary the actual object dir.
5448 (Locate_Directory): When Subdirs is not empty and Create is not the
5449 empty string, locate and create if necessary the actual directory
5450 as a subdirectory of directory Name.
5451 (Check_Library_Attributes.Check_Library): Allow a project where the only
5452 "sources" are header files of file based languages to be imported by
5453 library projects, in multi-language mode (gprbuild).
5454 (Check_Library_Attributes.Check_Library): In multi-language mode
5455 (gprbuild), allow a library project to import a project with no
5456 sources, even when this is not declared explicitly.
5457 (Check_If_Externally_Built): A virtual project extending an externally
5458 built project is also externally built.
5459 (Check_Library_Attributes): For a virtual project extending a library
5460 project, inherit the library directory.
5461 (Process_Project_Level_Array_Attributes): Process new attribute
5462 Inherit_Source_Path.
5463 For projects with specified qualifiers "standard", "library" or
5464 "abstract", check that the project conforms to the qualifier.
5465 (Process_Project_Level_Simple_Attributes): Process new attribute
5466 Archive_Builder_Append_Option.
5467
5468 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5469 (Normalize_Compiler_Switches): Only keep compiler switches that are
5470 passed to gnat1 by the gcc driver and that are stored in the ALI file
5471 by gnat1.
5472 Do not take into account switc -save-temps
5473
5474 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5475 gprmake is called with -eL.
5476 (Scan_Arg): Recognize switch -eL
5477 (Usage): Add line for switch -eL
5478
5479 * prj.adb (Initialize): Initialize Empty_File_Name
5480 (Project_Empty): New component Qualifier
5481
5482 * prj-attr.ads, prj-attr.adb: New project level attribute
5483 Inherit_Source_Path.
5484 New project level attribute Archive_Builder_Append_Option
5485
5486 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5487
5488 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5489 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5490 upward compatibility.
5491
5492 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5493 each Trying ..." on different lines.
5494 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5495 is "configuration" when not in configuration. Fail when in configuration
5496 when a specified qualifier is other than "configuration".
5497
5498 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5499 full associative array together.
5500 (Recursive_Process): Put the project qualifier in the project data
5501
5502 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5503 (Set_Project_Qualifier_Of): New procedure
5504
5505 2008-04-08 Robert Dewar <dewar@adacore.com>
5506
5507 * errout.ads: Update comments for new handling of info: messages
5508
5509 * erroutc.adb (Matches): New procedure
5510 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5511 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5512 info messages as well as style messages.
5513
5514 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5515
5516 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5517 subprograms.
5518 (Check_A_Call): Special "info: " warnings now have ? in the text
5519 (Elab_Warning): Use info message in static case
5520
5521 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5522
5523 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5524 whether an array aggregate with static bounds and scalar components
5525 should be expanded into a static constant.
5526
5527 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5528 Ed Schonberg <schonberg@adacore.com>
5529 Robert Dewar <dewar@adacore.com>
5530
5531 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5532 Has_Stream_Attribute_ Definition when checking for available stream
5533 attributes on parameters of a limited type in Ada 2005. Necessary for
5534 proper recognition of visible stream attribute clauses.
5535 (Has_Stream_Attribute_Definition): If the type is derived from a
5536 private type, then use the derived type's underlying type for checking
5537 whether it has stream attributes.
5538 (Validate_Object_Declaration): The check for a user-defined Initialize
5539 procedure applies also to types with controlled components or a
5540 controlled ancestor.
5541 Reject an object declaration in a preelaborated unit if the type is a
5542 controlled type with an overriding Initialize procedure.
5543 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5544 checking when the parent of a dereference is a selected component and
5545 the name has not been analyzed.
5546
5547 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5548 prefixes that are invalid explicit dereferences of remote
5549 access-to-class-wide values, first checking whether the selected
5550 component is a prefixed form of call to a tagged operation.
5551 (Analyze_Call): Remove code that issues an error for limited function
5552 calls in illegal contexts, as we now support all of the contexts that
5553 were forbidden here.
5554 Allow a function call that returns a task.and appears as the
5555 prefix of a selected component.
5556 (Analyze_Reference): Give error message if we try to make a 'Reference
5557 for an object that is atomic/aliased without its type having the
5558 corresponding attribute.
5559 (Analyze_Call): Remove condition checking for attributes to allow
5560 calls to functions with inherently limited results as prefixes of
5561 attributes. Remove related comment about Class attributes.
5562 (Analyze_Selected_Component): If the prefix is a remote type, check
5563 whether this is a prefixed call before reporting an error.
5564 (Complete_Object_Operation): If the controlling formal is an access to
5565 variable reject an actual that is a constant or an access to one.
5566 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5567 primitive operations from base type.
5568
5569 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5570 build-in-place
5571 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5572 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5573 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5574 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5575 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5576 (Analyze_Call): Remove code that issues an error for limited function
5577 calls in illegal contexts, as we now support all of the contexts that
5578 were forbidden here.
5579 New calling sequence for Get_Simple_Init_Val
5580 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5581 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5582
5583 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5584 Ed Schonberg <schonberg@adacore.com>
5585 Robert Dewar <dewar@adacore.com>
5586
5587 * exp_ch2.adb: Minor reformatting.
5588 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5589 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5590 (Expand_Protected_Component): New routine.
5591 (Expand_Protected_Private): Removed.
5592 Add Sure parameter to Note_Possible_Modification calls
5593
5594 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5595 generated subprogram declaration must inherit the overriding indicator
5596 from the instantiation node.
5597 (Validate_Access_Type_Instance): If the designated type of the actual is
5598 a limited view, use the available view in all cases, not only if the
5599 type is an incomplete type.
5600 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5601 and the actual subtype does not exclude null.
5602 (Process_Default): Handle properly abstract formal subprograms.
5603 (Check_Formal_Package_Instance): Handle properly defaulted formal
5604 subprograms in a partially parameterized formal package.
5605 Add Sure parameter to Note_Possible_Modification calls
5606 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5607 actual cannot be limited.
5608 (Collect_Previous_Instances): Generate instance bodies for subprograms
5609 as well.
5610
5611 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5612 try to set RM_Size.
5613 Add Sure parameter to Note_Possible_Modification calls
5614 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5615 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5616 constant overlaid by variable and issue warning.
5617 Use new Is_Standard_Character_Type predicate
5618 (Analyze_Record_Representation_Clause): Check that the specified
5619 Last_Bit is not less than First_Bit - 1.
5620 (Analyze_Attribute_Definition_Clause, case Address): Check for
5621 self-referential address clause
5622
5623 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5624 detection mechanism when the lhs is a prival.
5625 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5626 assignment of a pointer to protected data, to an object declared
5627 outside of the protected object.
5628 (Analyze_Loop_Statement): Check for unreachable code after loop
5629 Add Sure parameter to Note_Possible_Modication calls
5630 Protect analysis from previous syntax error such as a scope mismatch
5631 or a missing begin.
5632 (Analyze_Assignment_Statement): The assignment is illegal if the
5633 left-hand is an interface.
5634
5635 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5636 violation of restriction No_Implicit_Conditionals
5637 Add Sure parameter to Note_Possible_Modication calls
5638 Use new Is_Standard_Character_Type predicate
5639 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5640 call as operator. Fixes problems (e.g. validity checking) which
5641 come from the result looking as though it does not come from source).
5642 (Resolve_Call): Check case of name in named parameter if style checks
5643 are enabled.
5644 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5645 from the checking that such calls should not occur from an entry body.
5646 (Resolve_Call): If the return type of an Inline_Always function
5647 requires the secondary stack, create a transient scope for the call
5648 if the body of the function is not available for inlining.
5649 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5650 that are actuals for in-out formals.
5651 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5652 primitive operations from base type.
5653 (Analyze_Selected_Component): If the context is a call to a protected
5654 operation the parent may be an indexed component prior to expansion.
5655 (Resolve_Actuals): If an actual is of a protected subtype, use its
5656 base type to determine whether a conversion to the corresponding record
5657 is needed.
5658 (Resolve_Short_Circuit): Handle pragma Check
5659
5660 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5661 Use new Is_Standard_Character_Type predicate
5662 (Eval_Relational_Op): Catch more cases of string comparison
5663
5664 2008-04-08 Robert Dewar <dewar@adacore.com>
5665 Gary Dismukes <dismukes@adacore.com>
5666
5667 * s-rident.ads: Add No_Default_Initialization restriction
5668
5669 * exp_tss.adb:
5670 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5671 (Set_TSS): Handle No_Default_Initialization case
5672
5673 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5674 No_Default_Initialization
5675 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5676 parameters when Normalize_Scalars is active.
5677 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5678 Fix casing error in formal parameter name in call
5679 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5680 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5681 dispatching call on VM targets.
5682
5683 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5684 Thomas Quinot <quinot@adacore.com>
5685
5686 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5687 selected component from an access type's Associated_Final_Chain to
5688 check for the presence of that field, rather than assuming it exists
5689 for all named access types.
5690 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5691 procedure to call at the end of the generated cleanup procedure.
5692 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5693 and an At_End_Proc already exists in the handled sequence of statements
5694 for which cleanup actions are being expanded, the original cleanup
5695 action must be preserved.
5696
5697 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5698 Ed Schonberg <schonberg@adacore.com>
5699 Robert Dewar <dewar@adacore.com>
5700 Gary Dismukes <dismukes@adacore.com>
5701
5702 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5703 Build_Unprotected_Subprogram_Body): Generate debug info for
5704 declarations related to the handling of private data in task and
5705 protected types.
5706 (Debug_Private_Data_Declarations): New subprogram.
5707 (Install_Private_Data_Declarations): Remove all debug info flagging.
5708 This is now done by Debug_Private_Data_Declarations at the correct
5709 stage of expansion.
5710 (Build_Simple_Entry_Call): If the task name is a function call, expand
5711 the prefix into an object declaration, and make the surrounding block a
5712 task master.
5713 (Build_Master_Entity): An internal block is a master if it wraps a call.
5714 Code reformatting, update comments. Code clean up.
5715 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5716 (Replicate_Entry_Formals): If the formal is an access parameter or
5717 anonymous access to subprogram, copy the original tree to create new
5718 entities for the formals of the subprogram.
5719 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5720 for tasks to store the value passed using pragma Relative_Deadline.
5721 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5722 run-time call to create a task.
5723 (Build_Wrapper_Spec): If the controlling argument of the interface
5724 operation is an access parameter with a non-null indicator, use the
5725 non-null indicator on the wrapper.
5726
5727 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5728 present, which it may not be in the case where the type entity is an
5729 incomplete view brought in by a limited with.
5730 (Analyze_Task_Type): Only retrieve the full view when present, which it
5731 may not be in the case where the type entity is an incomplete view brought
5732 in by a limited with.
5733 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5734 private components of a protected type, to prevent the generation of freeze
5735 nodes for which there is no proper scope of elaboration.
5736
5737 * exp_util.ads, exp_util.adb
5738 (Remove_Side_Effects): If the expression is a function call that returns a
5739 task, expand into a declaration to invoke the build_in_place machinery.
5740 (Find_Protection_Object): New routine.
5741 (Remove_Side_Effects): Also make a copy of the value
5742 for attributes whose result is of an elementary type.
5743 (Silly_Boolean_Array_Not_Test): New procedure
5744 (Silly_Boolean_Array_Xor_Test): New procedure
5745 (Is_Volatile_Reference): New function
5746 (Remove_Side_Effects): Use Is_Volatile_Reference
5747 (Possible_Bit_Aligned_Component): Handle slice case properly
5748
5749 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5750 case test to Exp_Util
5751 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5752
5753 2008-04-08 Thomas Quinot <quinot@adacore.com>
5754
5755 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5756 in call
5757 (Add_RACW_Features): When processing an RACW in another unit than the
5758 main unit, set Body_Decls to No_List to indicate that the bodies of
5759 the type's TSS must not be generated.
5760 (GARLIC_Support.Add_RACW_Read_Attribute,
5761 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5762 Body_Decls is No_List.
5763 (PolyORB_Support.Add_RACW_Read_Attribute,
5764 PolyORB_Support.Add_RACW_Write_Attribute,
5765 PolyORB_Support.Add_RACW_From_Any,
5766 PolyORB_Support.Add_RACW_To_Any,
5767 PolyORB_Support.Add_RACW_TypeCode): Same.
5768 (Transmit_As_Unconstrained): New function.
5769 (Build_Ordered_Parameters_List): Use the above to order parameters.
5770 (GARLIC_Support.Build_General_Calling_Stubs):
5771 Use the above to determine which parameters to unmarshall using 'Input
5772 at the point where their temporary is declared (as opposed to later on
5773 with a 'Read call).
5774 (PolyORB_Support.Build_General_Calling_Stubs):
5775 Use the above to determine which parameters to unmarshall using From_Any
5776 at the point where their temporary is declared (as opposed to later on
5777 with an assignment).
5778
5779 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5780
5781 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5782 an Input function for an access type, do not perform default
5783 initialization on the local variable that receives the value, to
5784 prevent spurious warnings when the type is null-excluding.
5785
5786 2008-04-08 Robert Dewar <dewar@adacore.com>
5787 Ed Schonberg <schonberg@adacore.com>
5788
5789 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5790 units.
5791 (Size_Known): Generic formal scalar types have known at compile
5792 time size, so remove check.
5793 Fix casing error in formal parameter name in call
5794 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5795 recheck its overriding indication.
5796
5797 2008-04-08 Vincent Celier <celier@adacore.com>
5798
5799 * gnat1drv.adb: Send all messages indicating an error to standard error
5800
5801 2008-04-08 Robert Dewar <dewar@adacore.com>
5802
5803 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5804 (List_Applicable_Restrictions): Do not list existing restrictions
5805
5806 2008-04-08 Thomas Quinot <quinot@adacore.com>
5807
5808 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5809 add a pointer to generic sockets literature
5810 do not mention that the given example is "typical" usage.
5811 Remove obsolete comment about multicast not being supported on Windows.
5812 (Connect_Socket): Make Server mode IN rather than IN OUT
5813 since this formal is never modified.
5814
5815 2008-04-08 Robert Dewar <dewar@adacore.com>
5816
5817 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5818 the declaration for some different entity.
5819 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5820 list is precent (following the parent subtype indication), display
5821 appropriate "and" keyword.
5822
5823 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5824 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5825 Add notes on use of Parent field of an Itype
5826
5827 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5828 Robert Dewar <dewar@adacore.com>
5829 Gary Dismukes <dismukes@adacore.com>
5830
5831 * lib-xref.adb (Is_On_LHS): Remove dead code
5832 (Output_Overriden_Op): If the overridden operation is itself inherited,
5833 list the ancestor operation, which is the one whose body or absstract
5834 specification is actually being overridden. For source navigation
5835 purposes.
5836
5837 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5838 operation is primitive for the type.
5839 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5840 an inherited private subprogram, set properly the Overridden_Operation
5841 attribute, for better cross-reference information.
5842 (Analyze_Package_Specification): Do late analysis of spec PPCs
5843 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5844 properly the full view and underlying full views of a private type in a
5845 child unit, whose full view is derived from a private type in a parent
5846 unit, and whose own full view becomes visible in the child body.
5847
5848 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5849 primitive operation after the type has been frozen, add an explicit
5850 reference to the type and the operation, because other primitive
5851 references have been emitted already.
5852 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5853 dispatching call on VM targets.
5854
5855 2008-04-08 Vincent Celier <celier@adacore.com>
5856 Thomas Quinot <quinot@adacore.com>
5857
5858 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5859 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5860 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5861 (Insert_Project_Sources): Take into account index in multi-unit source
5862 files.
5863 After building a library project, delete all temporary files.
5864 (Initialize): Reset current output after parsing project file.
5865 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5866 of library projects that are externally built.
5867 Put file name in error and inform messages if -df is used
5868 (Display): If invoked with -d7, do not display path names, but only
5869 file names.
5870
5871 * makeutl.ads (Path_Or_File_Name): New function
5872 (Path_Or_File_Name): New function
5873
5874 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5875
5876 * Make-lang.in: Disable warnings during first stage of bootstrap
5877 Get rid of gnatbl.
5878 Update dependencies.
5879
5880 2008-04-08 Vincent Celier <celier@adacore.com>
5881
5882 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5883 case to decide if ALI object file is included in library.
5884 (Build_Library): Never attempt to build a library if the project is
5885 externally built.
5886
5887 2008-04-08 Thomas Quinot <quinot@adacore.com>
5888
5889 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5890 (No_List) is defined to return Empty.
5891
5892 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5893
5894 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5895 documentation.
5896 Update comments.
5897 (Read_Default_Search_Dirs): Do not consider spaces as path separators
5898 because spaces may be part of legal paths.
5899
5900 2008-04-08 Robert Dewar <dewar@adacore.com>
5901
5902 * par-ch11.adb (P_Exception_Handler): Check indentation level for
5903 handler
5904
5905 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5906
5907 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5908 in a type declaration, if this is not an interface declaration or
5909 private type extension.
5910
5911 2008-04-08 Vincent Celier <celier@adacore.com>
5912
5913 * prj-util.adb (Executable_Of): New String parameter Language. When
5914 Ada_Main is False and Language is not empty, attempt to remove the body
5915 suffix or the spec suffix of the language to get the base of the
5916 executable file name.
5917 (Put): New Boolean parameter Lower_Case, defauilted to False. When
5918 Lower_Case is True, put the value in lower case in the name list.
5919 (Executable_Of): If there is no executable suffix in the configuration,
5920 then do not modify Executable_Extension_On_Target.
5921
5922 * prj-util.ads (Executable_Of): New String parameter Language,
5923 defaulted to the empty string.
5924 (Put): New Boolean parameter Lower_Case, defauilted to False
5925
5926 2008-04-08 Robert Dewar <dewar@adacore.com>
5927
5928 * scng.adb (Scan_Identifier): Handle case of identifier starting with
5929 wide character using UTF-8 encoding.
5930
5931 2008-04-08 Javier Miranda <miranda@adacore.com>
5932
5933 * sem.adb (Analyze): Consider case in which we analyze an empty node
5934 that was generated by a call to a runtime function that is not
5935 available under the configurable runtime.
5936
5937 * sem.ads (Inside_Freezing_Actions): New flag.
5938 (Save_Check_Policy_List): New field in scope stack entry
5939
5940 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5941 Robert Dewar <dewar@adacore.com>
5942
5943 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5944 the ancestor part of an extension aggregate for a limited type.
5945 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5946 enumeration index bounds.
5947 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5948 when array is too short.
5949 (Check_Expr_OK_In_Limited_Aggregate): Move function
5950 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5951 change name).
5952 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5953 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5954 component associations.
5955 (Check_Non_Limited_Type): Moved to outer level and renamed.
5956 (Resolve_Record_Aggregate): In an extension aggregate, an association
5957 with a box initialization can only designate a component of the
5958 extension, not a component inherited from the given ancestor
5959
5960 * sem_case.adb: Use new Is_Standard_Character_Type predicate
5961
5962 2008-04-08 Robert Dewar <dewar@adacore.com>
5963
5964 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5965 negative scale
5966 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5967 Properly handle case where Aft > Scale and input number is less than
5968 one.
5969
5970 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5971
5972 * s-stoele.ads, s-soflin.ads: Move the location of
5973 Dummy_Communication_Block from System.Storage_Elements to
5974 System.Soft_Links.
5975
5976 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5977 emulate Communication_Block in certain scenarios.
5978
5979 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5980
5981 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5982 subprogram.
5983 Add new subtype S_WWC, unchecked conversion routines From_WWC and
5984 To_WWC.
5985 (I_WWC, O_WWC): New routines for input and output of
5986 Wide_Wide_Character.
5987
5988 2008-04-08 Robert Dewar <dewar@adacore.com>
5989
5990 * stringt.adb (Write_String_Table_Entry): Handle wide characters
5991 properly
5992
5993 2008-04-08 Robert Dewar <dewar@adacore.com>
5994
5995 * styleg.adb (Check_Comment): Allow special char after -- in
5996 non-end-of-line case
5997
5998 2008-04-08 Robert Dewar <dewar@adacore.com>
5999
6000 * stylesw.adb: Implement -gnaty + - y options
6001 (Set_GNAT_Style_Check_Options): Includ I in style check string
6002
6003 * stylesw.ads: Add comments for new style switch options
6004
6005 2008-04-08 Sergey Rybin <rybin@adacore.com>
6006
6007 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
6008 to the set of the GNAT components needed by ASIS.
6009
6010 2008-04-08 Bob Duff <duff@adacore.com>
6011
6012 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
6013
6014 2008-04-08 Tristan Gingold <gingold@adacore.com>
6015
6016 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
6017 Improve error message generation.
6018
6019 2008-04-08 Vincent Celier <celier@adacore.com>
6020
6021 * a-direct.adb (Start_Search): Check for Name_Error before checking for
6022 Use_Error, as specified in the RM. Check if directory is open and raise
6023 Use_Error if it is not.
6024
6025 2008-04-08 Vincent Celier <celier@adacore.com>
6026 Robert Dewar <dewar@adacore.com>
6027
6028 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
6029 AAMP_On_Target is set.
6030
6031 * vms_data.ads: Add NOxxx to style check switch list
6032 Add entry COMPONENTS for -gnatVe
6033 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
6034 (/SUBDIRS=).
6035 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
6036 Add qualifiers for gnatmetric coupling options
6037 Add note that -gnata enables all checks
6038 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
6039 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
6040 New warning flag -gnatw.e
6041
6042 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
6043 Add entry for -gnatyN (forgotten before)
6044 Line for new warning switch -gnatw.p
6045 New warning flag -gnatw.e
6046
6047 * gnat_ugn.texi: Add documentation fpr project file switch -aP
6048 Document -gnaty - + y
6049 Replace occurences of "package specification" with "package spec"
6050 Define preprocessing symbols in documentation of gnatprep
6051 Clarify reason for distinguishing overflow checking
6052 Add documentation for project-aware tool switches -eL and --subdirs=
6053 Complete list of configuration pragmas
6054 Specify that, even when gnatmake switch -x is used, mains on the command
6055 line need to be sources of project files.
6056 Editing of gnatcheck/gnatmetric doc.
6057 Add documentation for -gnatw.p/-gnatw.P
6058 Add missing documentation for -fno-inline-functions.
6059 Add documentation for -gnatw.e
6060
6061 * gnat_rm.texi: Add documentation for No_Default_Initialization
6062 Replace occurences of "package specification" with "package spec"
6063 Document use of * in Warnings Off string
6064 Update documentation of alignment/component clauses.
6065 Add documentation for Invalid_Value
6066 Document new consistency rule for Optimize_Alignment
6067 Add documentation for Precondition and Postcondition pragmas
6068 Add documentation for Check and Check_Policy pragmas
6069 Document new Enum_Val attribute
6070 Remove requirement for static string in pragma Assert
6071 Add documentation on GNAT.Time_Stamp
6072
6073 * ug_words: add entry for -gnatVe
6074 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
6075 Add entry for -gnatw.e
6076
6077 * debug.adb: Add missing documentation for d.a flag
6078 Document new -gnatd.a switch.
6079 Add documentation for new gnatmake debug switch -df
6080
6081 2008-04-08 Thomas Quinot <quinot@adacore.com>
6082
6083 * gen-soccon.c: Bump year in copyright notices.
6084
6085 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
6086
6087 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
6088
6089 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
6090 Minor reformatting.
6091
6092 2008-04-08 Robert Dewar <dewar@adacore.com>
6093 Bob Duff <duff@adacore.com>
6094
6095 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
6096 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
6097
6098 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
6099
6100 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
6101
6102 * g-trasym.ads: Minor comment improvements
6103
6104 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
6105
6106 * a-sequio.ads, a-direio.ads: improve message for tagged type
6107
6108 * a-strunb.ads: Minor reformatting
6109
6110 * a-tifiio.adb: Minor reformatting
6111
6112 * atree.adb (Fix_Parents): Use clearer names for formals
6113 Cleanup and simplify code
6114 Use named notation in calls
6115
6116 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
6117 confusing calls
6118
6119 * uintp.adb: Used named notation for some confusing calls
6120
6121 * bindusg.adb: Minor change in one line of output
6122
6123 * cstand.adb: Minor reformatting of src representation of Standard
6124
6125 * a-assert.ads: Add comment.
6126
6127 * g-decstr.adb: Fix bad indentation
6128
6129 * expander.ads, expander.adb: Code clean up.
6130
6131 * sem_dist.ads: Minor comment improvement
6132
6133 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
6134 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
6135
6136 * i-cstrin.adb: Fix casing error in formal parameter name in call
6137
6138 2008-04-08 Ed Schonberg <schonberg@adacore.com>
6139
6140 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
6141 mentioned in limited_with_clauses to do create semantic dependencies
6142 even though they appear in the ali file.
6143
6144 2008-04-08 Emmanuel Briot <briot@adacore.com>
6145
6146 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
6147 statement.
6148 (Get_Configuration): New subprogram.
6149
6150 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
6151 These optional parameters help preserve the casing of the project's name
6152 when pretty-printing.
6153
6154 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
6155 Arnaud Charlet <charlet@adacore.com>
6156
6157 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
6158 then use __gnat_set_exit_status to report the returned status code.
6159
6160 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
6161 messages on .NET, since some constructs of the language are not
6162 properly supported.
6163
6164 * gnatlink.adb (Gnatlink): In case the command line is too long for the
6165 .NET linker, gnatlink now concatenate all .il files and pass this to
6166 ilasm.
6167
6168 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6169 Xavier Grave <grave@ipno.in2p3.fr>
6170
6171 * Makefile.in: Add make ifeq define for mips/mipsel support.
6172 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6173 system-linux-mips.ads: New files.
6174
6175 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6176
6177 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6178 detect systems using GNU libc.
6179 * gsocket.h: ditto.
6180 * socket.c: ditto.
6181 * adaint.c: ditto.
6182 * link.c: ditto.
6183
6184 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6185
6186 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6187 constant constant for sysconf call.
6188 (bit_field): New packed boolean type used by cpu_set_t.
6189 (cpu_set_t): New type corresponding to the C type with
6190 the same name. Note that on the Ada side we use a bit
6191 field array for the affinity mask. There is not need
6192 for the C macro for setting individual bit.
6193 (pthread_setaffinity_np): New imported routine.
6194 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6195 on GNU/kFreeBSD.
6196
6197 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6198
6199 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6200
6201 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6202
6203 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6204 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6205 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6206 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6207 Return by Depressed Stack Pointer.
6208
6209 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6210
6211 * decl.c (is_variable_size): Do not unconditionally return false
6212 on non-strict alignment platforms.
6213
6214 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6215
6216 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6217 used to process all the variants of the specified type.
6218 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6219 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6220 (rest_of_type_decl_compilation): Likewise.
6221 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6222
6223 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6224
6225 * gigi.h (insert_block): Kill.
6226 * utils.c (insert_block): Kill.
6227
6228 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6229
6230 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6231 type has self-referential size, get the size from the initializing
6232 expression directly if it is also a constant whose nominal type
6233 has self-referential size.
6234
6235 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6236
6237 PR ada/33688
6238 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6239
6240 PR ada/33857
6241 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6242 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6243
6244 2008-04-01 Andreas Jaeger <aj@suse.de>
6245
6246 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6247 IP_PKTINFO.
6248
6249 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6250
6251 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6252 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6253 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6254 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6255 gnatlink.adb, gnatmem.adb, gprep.adb,
6256 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6257 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6258 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6259 lib-xref.ads, lib.adb, link.c, live.ads,
6260 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6261 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6262 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6263 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6264 namet.adb, namet.h, nlists.adb, nlists.ads,
6265 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6266 osint-c.ads, osint.adb, osint.ads, output.ads,
6267 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6268 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6269 par-endh.adb, par-labl.adb, par-prag.adb,
6270 par-sync.adb, par-tchk.adb, par-util.adb,
6271 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6272 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6273 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6274 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6275
6276 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6277
6278 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6279 size if it has overflowed.
6280
6281 2008-03-31 Olivier Hainque <hainque@adacore.com>
6282 Eric Botcazou <ebotcazou@adacore.com>
6283
6284 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6285 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6286
6287 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6288
6289 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6290 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6291 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6292 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6293 exp_tss.ads, exp_util.adb, exp_util.ads,
6294 exp_vfpt.adb, freeze.adb, freeze.ads,
6295 frontend.adb, g-alleve.adb, g-altcon.adb,
6296 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6297 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6298 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6299 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6300 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6301 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6302 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6303 g-except.ads, g-expect.ads, g-heasor.adb,
6304 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6305 g-locfil.ads, g-md5.adb, g-md5.ads,
6306 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6307 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6308 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6309 g-soccon-aix.ads, g-soccon-darwin.ads,
6310 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6311 g-soccon-hpux.ads, g-soccon-irix.ads,
6312 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6313 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6314 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6315 g-soccon-solaris.ads, g-soccon-tru64.ads,
6316 g-soccon-vms.ads, g-soccon-vxworks.ads,
6317 g-soccon.ads, g-socket.adb, g-socket.ads,
6318 g-socthi-mingw.adb, g-socthi-vms.adb,
6319 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6320 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6321 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6322 typos.
6323
6324 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6325
6326 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6327 if the procedure is imported.
6328
6329 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6330
6331 * adaint.c: Fix warnings.
6332
6333 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6334
6335 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6336
6337 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6338
6339 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6340 Fix problem of status check for null file
6341
6342 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6343
6344 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6345 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6346 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6347 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6348 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6349 comments.
6350
6351 2008-03-26 Thomas Quinot <quinot@adacore.com>
6352
6353 PR ada/33688
6354 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6355 Get_Socket_Option): Add support for Receive_Packet_Info.
6356
6357 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6358 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6359 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6360 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6361 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6362 new constants SO_REUSEPORT and IP_PKTINFO
6363
6364 2008-03-26 Robert Dewar <dewar@adacore.com>
6365
6366 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6367 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6368 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6369 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6370 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6371 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6372 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6373 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6374 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6375 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6376 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6377 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6378 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6379 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6380 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6381 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6382 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6383 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6384 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6385 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6386 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6387 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6388 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6389 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6390 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6391 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6392 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6393 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6394 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6395 s-tasloc.adb: Minor reformatting.
6396 Update comments.
6397 Remove "used for" sections from comments.
6398
6399 2008-03-26 Robert Dewar <dewar@adacore.com>
6400
6401 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6402 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6403 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6404 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6405 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6406 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6407 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6408 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6409 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6410 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6411 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6412 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6413 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6414 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6415 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6416 double spaced if it fits on one line and otherwise single spaced.
6417
6418 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6419
6420 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6421 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6422 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6423 or task info if the thread could not be created.
6424
6425 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6426
6427 * gnatvsn.ads (Library_Version): Bump to 4.4.
6428 (Current_Year): Bump to 2008.
6429
6430 2008-03-26 Robert Dewar <dewar@adacore.com>
6431
6432 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6433
6434 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6435
6436 * debug.adb: Add debug flags d.r and d.v
6437 Add debug flag .T (Optimize_Alignment (Time))
6438 Add debug flag .S (Optimize_Alignment (Space))
6439
6440 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6441 depending on setting of relevant debug flags.
6442 Replace use of Warnings_Off by Has_Warnings_Off
6443 (Freeze_Entity): In circuit for warning on suspicious convention
6444 actuals, do not give warning if subprogram has same entity as formal
6445 type, or if subprogram does not come from source.
6446 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6447 if Optimize_Alignment set to Space.
6448
6449 * frontend.adb: Add call to Sem_Warn.Initialize
6450 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6451 Reset Optimize_Alignment mode from debug switches .S and .T
6452
6453 * layout.adb (Layout_Composite_Object): Rewritten for
6454 Optimize_Aligment pragma.
6455
6456 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6457 mode.
6458
6459 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6460
6461 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6462 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6463 this change. Add entry for pragma Optimize_Alignment
6464
6465 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6466 (Pragma_Identifier (..
6467 instead, adjustments throughout to accomodate this change.
6468 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6469 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6470 Add implementation of pragma Optimize_Alignment
6471
6472 2008-03-26 Vincent Celier <celier@adacore.com>
6473
6474 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6475 Improve memory usage to avoid use of stack.
6476
6477 2008-03-26 Robert Dewar <dewar@adacore.com>
6478
6479 * a-teioed.ads: Correct value of Default_Fill
6480
6481 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6482
6483 2008-03-26 Robert Dewar <dewar@adacore.com>
6484
6485 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6486 with Current_Output (introduce Self).
6487
6488 2008-03-26 Robert Dewar <dewar@adacore.com>
6489
6490 * checks.adb (Ensure_Valid): Capture valid status if possible
6491 (eliminate checks)
6492
6493 2008-03-26 Robert Dewar <dewar@adacore.com>
6494
6495 * stand.ads: Deal with reordering of package standard declarations
6496
6497 * cstand.adb: Put package Standard declarations in proper order
6498
6499 2008-03-26 Robert Dewar <dewar@adacore.com>
6500
6501 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6502 (Pragma_Identifier (.. instead.
6503 (OK_To_Reorder_Components): New flag
6504 (Has_Entries): Code cleanup.
6505 (Warnings_Off_Used): New flag
6506 (Warnings_Off_Used_Unmodified): New flag
6507 (Warnings_Off_Used_Unreferenced): New flag
6508 (Has_Warnings_Off): New function
6509 (Has_Unmodified): New function
6510 (Has_Unreferenced): New function
6511 (Is_Trivial_Subprogram): New flag
6512 (Is_Static_Dispatch_Table_Entity): New attribute.
6513 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6514 (more consistent with other similar names)
6515 (Access_Subprogram_Type): New classification function
6516
6517 2008-03-26 Robert Dewar <dewar@adacore.com>
6518
6519 * errout.ads: Document new !! insertion sequence
6520
6521 * errout.adb (N_Pragma): Chars field removed, use Chars
6522 (Pragma_Identifier (.. instead.
6523 Replace use of Warnings_Off by Has_Warnings_Off
6524 (Error_Msg_Internal): Don't delete warning ending in !!
6525
6526 2008-03-26 Robert Dewar <dewar@adacore.com>
6527
6528 * par.adb (Check_No_Right_Paren): Removed no longer used
6529
6530 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6531 (Pragma_Identifier (.. instead.
6532
6533 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6534
6535 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6536 par-ch4.adb: Minor improvements in error recovery and messages.
6537
6538 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6539 non-serious
6540
6541 * par-ch9.adb: Minor improvements in error recovery and messages
6542 (P_Protected): Better error recovery for "protected type x;"
6543
6544 * par-util.adb: Minor improvements in error recovery and messages
6545 (Check_No_Right_Paren): Removed no longer used
6546
6547 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6548
6549 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6550 that the prefix of an attribute is the type of the aggregate being
6551 expanded.
6552
6553 2008-03-26 Javier Miranda <miranda@adacore.com>
6554 Robert Dewar <dewar@adacore.com>
6555
6556 * exp_attr.adb (N_Pragma): Chars field removed.
6557 (Expand_N_Attribute_Reference): If the designated type associated with
6558 attribute 'Unrestricted_Access is a subprogram entity then replace it
6559 by an E_Subprogram_Type itype.
6560 Implement attribute Old
6561
6562 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6563
6564 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6565 Replace call to
6566 New_Internal_Entity by call to Create_Itype to centralize calls
6567 building itypes, ad propagate the convention of the designated
6568 subprogram. In addition, disable the machinery cleaning constant
6569 indications from all entities in current scope when 'Unrestricted_Access
6570 corresponds with a node initializing a dispatch table slot.
6571 (Analyze_Attribute): Parameterless attributes returning a string or a
6572 type will not be called with improper arguments, so we can remove junk
6573 code that was dealing with this case.
6574 Implement attribute Old
6575
6576 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6577 Add entry for pragma Optimize_Alignment
6578 New standard names Sync and Synchronize
6579
6580 2008-03-26 Robert Dewar <dewar@adacore.com>
6581 Arnaud Charlet <charlet@adacore.com>
6582
6583 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6584 stmt.
6585 (No_Exception_Propagation_Active): New function.
6586 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6587 Update comments, and review all uses of No_Exception_Propagation, which
6588 are now correct and in sync with what gigi expects.
6589
6590 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6591 function.
6592 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6593 Update comments, and review all uses of No_Exception_Propagation, which
6594 are now correct and in sync with what gigi expects.
6595
6596 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6597
6598 * sem_ch3.adb (Access_Definition): If the access type is the return
6599 result of a protected function, create an itype reference for it
6600 because usage will be in an inner scope from the point of declaration.
6601 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6602 OK_To_Reorder_Components.
6603 (Make_Index): If an overloaded range includes a universal integer
6604 interpretation, resolve to Standard.Integer.
6605 (Analyze_Subtype_Indication): Copy Convention to subtype
6606 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6607 limited an synchronized progenitors in type declaration and private
6608 extension declarations.
6609
6610 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6611 protected subprogram body, determine proper scope from subprogram
6612 declaration.
6613
6614 2008-03-26 Robert Dewar <dewar@adacore.com>
6615
6616 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6617 No_Run_Time_Mode
6618
6619 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6620
6621 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6622 of a heap allocator for a limited unconstrained function return when
6623 resstriction No_Allocators is active.
6624 (Analyze_Allocator): The restriction No_Allocators is now only checked
6625 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6626
6627 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6628 of a heap allocator for a limited unconstrained function return when
6629 resstriction No_Allocators is active.
6630 (Analyze_Allocator): The restriction No_Allocators is now only checked
6631 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6632 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6633 operands are fixed-point types, the universal_fixed predefined operation
6634 is used, regardless of whether the operand type (s) have a primitive
6635 operation of the same name.
6636
6637 2008-03-26 Javier Miranda <miranda@adacore.com>
6638
6639 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6640 Is_Static_Dispatch_Table
6641 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6642 to Exchange_Declarations to exchange the private and full-view. Bug
6643 found working in this issue.
6644 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6645 to the subprogram pointer type.
6646 (Make_Secondary_DT): Replace generation of Prim'Address by
6647 Address (Prim'Unrestricted_Access)
6648 (Make_DT): Replace generation of Prim'Address by
6649 Address (Prim'Unrestricted_Access)
6650 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6651 simple call form for single entry.
6652 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6653 tables of predefined primitives).
6654 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6655 predefined primitives.
6656 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6657 access to dispatch tables containing predefined primitives.
6658
6659 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6660 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6661 this change.
6662 (Register_Predefined_DT_Entry): Updated to handle the new contents
6663 of attribute Access_Disp_Table (pointers to dispatch tables containing
6664 predefined primitives).
6665
6666 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6667 subprogram.
6668 (Find_Interface_ADT): Updated to skip the new contents of attribute
6669 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6670 primitives).
6671
6672 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6673 concurrent types.
6674 (Set_Convention): Use new function Is_Access_Subprogram_Type
6675 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6676 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6677 primitives).
6678
6679 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6680 expanded code avoiding calls to Build_Predef_Prims.
6681 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6682 call to Build_Get_Predefined_Prim_Op_Address.
6683
6684 2008-03-26 Javier Miranda <miranda@adacore.com>
6685
6686 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6687 subprogram Corresponding_Runtime_Package to know the runtime package
6688 that will provide support to a given protected type.
6689
6690 * exp_ch9.adb (Add_Private_Declarations,
6691 Build_Protected_Subprogram_Call,
6692 Build_Protected_Entry, Build_Simple_Entry_Call,
6693 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6694 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6695 cleanup using the new centralized subprogram Corresponding_Runtime
6696 Package to know the runtime package that provides support to
6697 a given protected type.
6698
6699 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6700
6701 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6702 assignment is within the initialization procedure for a packed array,
6703 and Initialize_Scalars is enabled, compile right-hand side with checks
6704 off, because the value is purposely out of range.
6705
6706 2008-03-26 Vincent Celier <celier@adacore.com>
6707
6708 * gnatcmd.adb: Add processing for GNAT SYNC
6709
6710 * vms_conv.ads: (Command_Type): Add command Sync
6711
6712 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6713
6714 * vms_data.ads: Add entries for -gnatw.w
6715 Add qualifier for gnatstub --header-file option
6716 Add switches for GNAT SYNC
6717
6718 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6719 (Add_Package_Name): New procedure
6720 (Package_Name_List): New function
6721 (Initialize): Add known package names to the list
6722 (Register_New_Package): Add the new package name to the list
6723
6724 2008-03-26 Robert Dewar <dewar@adacore.com>
6725
6726 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6727 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6728 Raise_Exception by "raise with" construct.
6729
6730 2008-03-26 Pascal Obry <obry@adacore.com>
6731
6732 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6733 supported platforms.
6734
6735 * Makefile.rtl: Add g-sercom.o.
6736
6737 * impunit.adb: Add g-sercom.adb.
6738
6739 * s-crtl.ads (open): New routine.
6740 (close): Likewise.
6741 (write): Likewise.
6742
6743 * s-osinte-mingw.ads (BYTE): New type.
6744 (CHAR): Likewise.
6745 (OVERLAPPED): Likewise.
6746 (GENERIC_READ): New constant.
6747 (GENERIC_WRITE): Likewise.
6748 (OPEN_EXISTING): Likewise.
6749 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6750 type instead.
6751 (CreateFile): New routine.
6752 (WriteFile): Likewise.
6753 (ReadFile): Likewise.
6754 (CloseHandle): Move next to the other file oriented routines.
6755
6756 * g-sercom.ads: New unit.
6757
6758 * g-sercom.adb: Default implementation, calls to this unit will raise
6759 a program error exception.
6760
6761 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6762 GNU/Linux implementations.
6763
6764 2008-03-26 Robert Dewar <dewar@adacore.com>
6765
6766 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6767
6768 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6769 unchecked conversion for different conventions only for subprogram
6770 pointers or on VMS.
6771
6772 2008-03-26 Vincent Celier <celier@adacore.com>
6773
6774 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6775 to check if the specified object file is correct.
6776
6777 2008-03-26 Thomas Quinot <quinot@adacore.com>
6778
6779 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6780 Comes_From_Source to exclude primitives from being checked. We want to
6781 exclude predefined primitives only, so use the appropriate specific
6782 predicate. Also, flag a formal parameter of an anonymous
6783 access-to-subprogram type as illegal for a primitive operation of a
6784 remote access to class-wide type.
6785
6786 2008-03-26 Vincent Celier <celier@adacore.com>
6787
6788 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6789 known, check if it may be a missspelling of a known package name. In
6790 not verbose, not mode, issue warnings only if the package name is a
6791 possible misspelling.
6792 In verbose mode, always issue a warning for a not known package name,
6793 plus a warning if the name is a misspelling of a known package name.
6794
6795 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6796 limited withs or limited withs are parse during one call.
6797 (Parse_Single_Project): Post parse context clause in two passes: non
6798 limited withs before current project and limited withs after current
6799 project.
6800
6801 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6802 project with the name With_Name, even if it is only extended indirectly.
6803 (Recursive_Process): Process projects in order: first single withs, then
6804 current project, then limited withs.
6805
6806 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6807 project with the name With_Name, even if it is only extended indirectly.
6808
6809 2008-03-26 Robert Dewar <dewar@adacore.com>
6810
6811 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6812
6813 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6814
6815 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6816 a generic subprogram that is imported, do not attempt to compile
6817 non-existent body.
6818
6819 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6820 imported, do not generate a raise_program_error for the non-existent
6821 body.
6822 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6823 perform minimal name resolution on the generic to avoid spurious
6824 warnings.
6825 (Find_Actual_Type): the designated type of the actual in a child unit
6826 may be declared in a parent unit without being an actual.
6827
6828 2008-03-26 Robert Dewar <dewar@adacore.com>
6829
6830 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6831 * sinfo.ads, sinfo.adb (From_At_End): New flag
6832
6833 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6834
6835 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6836 operations that have an interface parameter.
6837 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6838 Don't treat No_Return call as raise.
6839
6840 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6841 non-primitive interface primitives to access parameters, not to all
6842 parameters of an access type.
6843
6844 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6845
6846 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6847 declarations of a parent unit are made visible when compiling a child
6848 instance, the parent is not a hidden open scope, even though it may
6849 contain other pending instance.
6850
6851 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6852 hidden open scope for some child instance, it does affect the
6853 visibility status of other stach entries.
6854 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6855 renamed as an object of a specific type.
6856
6857 2008-03-26 Robert Dewar <dewar@adacore.com>
6858
6859 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6860 recursion and raise SE directly.
6861 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6862 set for formal type for IN mode parameter.
6863
6864 2008-03-26 Robert Dewar <dewar@adacore.com>
6865
6866 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6867 (Initialize): New procedure
6868 (Output_Warnings_Off_Warnings): New procedure
6869 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6870 (Output_Non_Modifed_In_Out_Warnings): Ditto
6871 (Warn_On_Unreferenced_Entity): Ditto
6872
6873 2008-03-26 Vincent Celier <celier@adacore.com>
6874
6875 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6876 readable.
6877
6878 2008-03-26 Matthew Heaney <heaney@adacore.com>
6879
6880 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6881 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6882 Marked with clauses as private, and controlled operations as overriding
6883
6884 2008-03-26 Robert Dewar <dewar@adacore.com>
6885
6886 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6887
6888 2008-03-26 Robert Dewar <dewar@adacore.com>
6889
6890 * back_end.adb, back_end.ads: Minor reformatting
6891
6892 * bindgen.adb: Minor clarification of comments
6893
6894 * fname.ads: Minor comment fixes
6895
6896 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6897 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6898
6899 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6900 xsnames.adb: Remove warnings off pragma no longer needed
6901
6902 * a-catizo.ads, a-calari.ads, a-calfor.adb,
6903 a-calfor.ads: Fix header.
6904
6905 2008-03-26 Tristan Gingold <gingold@adacore.com>
6906
6907 * init.c: Do not adjust pc for HPARITH on alpha/vms.
6908
6909 2008-03-26 Robert Dewar <dewar@adacore.com>
6910
6911 * lib-xref.adb: (OK_To_Set_Reference): New function
6912 (Generate_Reference): Don't set referenced from occurrence in Warnings,
6913 Unmodified, or Unreferenced pragma
6914
6915 2008-03-26 Robert Dewar <dewar@adacore.com>
6916
6917 * alloc.ads: Add entries for Warnings_Off_Pragmas table
6918
6919 2008-03-26 GNAT Script <nobody@adacore.com>
6920
6921 * Make-lang.in: Makefile automatically updated
6922
6923 2008-03-26 Robert Dewar <dewar@adacore.com>
6924
6925 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6926 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6927 removed, use Chars (Pragma_Identifier (.. instead, adjustments
6928 throughout to accomodate this change.
6929
6930 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6931
6932 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6933 Einfo.Set_Needs_Debug_Info)
6934
6935 2008-03-26 Robert Dewar <dewar@adacore.com>
6936
6937 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6938 Add description for the new gnatstub option '--header-file'
6939 clarification of -gnatwz/-gnatwZ
6940 Add a "Irix-Specific Considerations" section to document the need to
6941 set LD_LIBRARY_PATH when using the default shared runtime library.
6942 Added documentation for both gcov and gprof.
6943
6944 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6945 messages that are not suppressed when clients are compiled.
6946 Add documentation of s-pooglo s-pooloc
6947 Document the new GNAT.Serial_Communications API.
6948 Add documentation for 'Old attribute
6949 Add description of pragma Optimize_Alignment
6950
6951 * ug_words: Add entries for -gnatw.w -gnatw.W
6952
6953 * usage.adb: Add line for -gnatw.w (warn on warnings off)
6954
6955 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
6956
6957 Revert
6958 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6959 PR ada/35186
6960 * decl.c (maybe_pad_type): Avoid padding an integral type when
6961 bumping its alignment is sufficient.
6962
6963 2008-03-25 Arnaud Charlet <charlet@adacore.com>
6964
6965 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6966 Fix wrong formatting (lines too long)
6967
6968 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6969
6970 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6971 a-calend-vms.adb, a-calend.adb, a-calend.ads,
6972 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6973 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6974 a-cohama.ads, a-comlin.ads, a-coorse.adb,
6975 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6976 a-except-2005.ads, a-except.adb, a-except.ads,
6977 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6978 a-exextr.adb, a-filico.ads, a-finali.ads,
6979 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6980 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6981 a-sequio.ads, a-strbou.ads, a-strfix.adb,
6982 checks.adb, exp_ch3.adb, exp_ch4.adb,
6983 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6984 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6985 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6986 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6987 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6988
6989 2008-03-24 Robert Dewar <dewar@adacore.com>
6990
6991 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6992 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6993 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6994 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6995 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6996 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6997 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6998 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6999 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
7000 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
7001 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
7002 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
7003 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
7004 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
7005 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
7006 double spaced if it fits on one line and otherwise single spaced.
7007
7008 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7009
7010 PR documentation/15479
7011 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
7012 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
7013 (doc/gnat_ugn.info): Renamed from ...
7014 (doc/gnat_ugn_unw.info): ... this.
7015 (doc/gnat_ugn.dvi): Renamed from ...
7016 (doc/gnat_ugn_unw.dvi): ... this.
7017 (doc/gnat_ugn.pdf): Renamed from ...
7018 (doc/gnat_ugn_unw.pdf): ... this.
7019 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
7020 Adjusted.
7021 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
7022 unconditionally to gnat_ugn.info. Fix cross references to the
7023 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
7024 and GNU make manuals to be proper texinfo links.
7025 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
7026
7027 2008-03-21 Olivier Hainque <hainque@adacore.com>
7028
7029 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
7030 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
7031
7032 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
7033
7034 * trans.c (addressable_p): Add notes on addressability issues.
7035
7036 2008-03-21 Olivier Hainque <hainque@adacore.com>
7037 Ed Schonberg <schonberg@adacore.com>
7038
7039 * trans.c (addressable_p): Accept COND_EXPR when both arms
7040 are addressable.
7041 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
7042 (call_to_gnu): Do not use name reference in the error message
7043 for a misaligned by_reference_parameter. The actual may be a
7044 general expression.
7045
7046 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7047
7048 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7049
7050 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7051
7052 * gnat_rm.texi (Implementation Defined Characteristics)
7053 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
7054 appropriate.
7055 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
7056 (Switches for gnatchop, Installing a library): Likewise.
7057
7058 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
7059
7060 * trans.c (emit_range_check): Do not emit the check if the base type
7061 of the expression is the type against which its range must be checked.
7062
7063 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7064
7065 * decl.c (maybe_pad_type): Use value_factor_p.
7066
7067 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7068
7069 * lang.opt (nostdlib): Move around.
7070 * misc.c (gnat_handle_option): Fix formatting.
7071 (gnat_dwarf_name): Move around.
7072 * trans.c (Case_Statement_to_gnu): Fix formatting.
7073 (gnat_to_gnu): Likewise.
7074 * utils.c (aggregate_type_contains_array_p): Likewise.
7075 (create_subprog_decl): Likewise.
7076
7077 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7078
7079 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
7080 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
7081
7082 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7083
7084 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
7085 BIGGEST_ALIGNMENT when capping the alignment of records with
7086 strict alignment and size clause.
7087
7088 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7089
7090 * lang-specs.h: Pass -gnatwa if -Wall is passed.
7091 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
7092 and -Wuninitialized.
7093 (gnat_post_options): Clear warn_unused_parameter.
7094
7095 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7096
7097 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
7098 aligned bit-fields, bumping the alignment of the record type if deemed
7099 profitable.
7100 (value_factor_p): Return false instead of 0.
7101
7102 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7103
7104 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
7105 for scalar types with small alignment.
7106
7107 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
7108
7109 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
7110 from that of the front-end's end label.
7111 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
7112 from that of the loop label.
7113
7114 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7115
7116 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
7117 comment for the packed array type case.
7118 * utils.c (build_template): Use a loop to strip padding or
7119 containing records for justified modular types.
7120
7121 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7122
7123 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
7124 large alignments specified for types.
7125 (validate_alignment): Minor cleanup.
7126
7127 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
7128
7129 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
7130 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
7131 the component for packing, if possible, as well as if a component
7132 size clause is specified.
7133 <E_Record_Subtype>: For an array type used to implement a packed
7134 array, get the component type from the original array type.
7135 Try to get a smaller form of the component for packing, if possible,
7136 as well as if a component size clause is specified.
7137 (round_up_to_align): New function.
7138 (make_packable_type): Add in_record parameter.
7139 For a padding record, preserve the size. If not in_record and the
7140 size is too large for an integral mode, attempt to shrink the size
7141 by lowering the alignment.
7142 Ditch the padding bits of the last component.
7143 Compute sizes and mode manually, and propagate the RM size.
7144 Return a BLKmode record type if its size has shrunk.
7145 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
7146 Use Original_Array_Type to retrieve the type in case of an error.
7147 Adjust call to make_packable_type.
7148 (gnat_to_gnu_field): Likewise.
7149 (concat_id_with_name): Minor tweak.
7150 * trans.c (larger_record_type_p): New predicate.
7151 (call_to_gnu): Compute the nominal type of the object only if the
7152 parameter is by-reference. Do the conversion actual type -> nominal
7153 type if the nominal type is a larger record.
7154 (gnat_to_gnu): Do not require integral modes on the source type to
7155 avoid the conversion for types with identical names.
7156 (addressable_p): Add gnu_type parameter. If it is specified, do not
7157 return true if the expression is not addressable in gnu_type.
7158 Adjust recursive calls.
7159 * utils.c (finish_record_type): Remove dead code.
7160
7161 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
7162
7163 PR ada/35186
7164 * decl.c (maybe_pad_type): Avoid padding an integral type when
7165 bumping its alignment is sufficient.
7166
7167 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7168
7169 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
7170 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7171 statement.
7172 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7173 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7174 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7175 code output strings.
7176 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7177 system-vms_64.ads: Fix typos in ada source code comments.
7178 * sinfo-cn.adb: Remove incomplete sentence.
7179
7180 PR documentation/15479
7181 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7182
7183 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7184
7185 PR ada/22255
7186 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7187
7188 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7189
7190 PR ada/34799
7191 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7192 that underlying type is present.
7193
7194 2008-02-26 Tom Tromey <tromey@redhat.com>
7195
7196 * misc.c (internal_error_function): Remove test of
7197 USE_MAPPED_LOCATION.
7198 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7199 (Sloc_to_locus): Remove old location code.
7200
7201 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7202
7203 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7204 `i.e.' by adding comma or `@:' as appropriate.
7205 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7206 plain characters `C', use `@samp{C}'.
7207 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7208 (Krunching Method): Likewise.
7209
7210 * gnat_ugn.texi (Conventions): List environment variables and
7211 metasyntactic variables.
7212 (Compiling Programs): Fix notation of metasyntactic variables.
7213 Add @file where appropriate. Use @file for file extensions,
7214 @samp for strings.
7215 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7216 instead of @file, @env instead of @code.
7217
7218 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7219
7220 PR documentation/15479
7221 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7222 and `...' with `@dots{}' or `@enddots{}'.
7223
7224 PR documentation/15479
7225 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7226 use @command instead of @code, @option instead of @samp or @code,
7227 @code instead of @var, @samp instead of @file.
7228
7229 PR documentation/15479
7230 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7231 in Makefile rules, by using `&&' rather than `;'.
7232
7233 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7234
7235 PR documentation/15479
7236 * gnat_ugn.texi: In non-code, avoid space before colon.
7237 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7238 (Examples of gnatxref Usage): Use @command{vi} instead of
7239 @file{vi}.
7240 (Character Set Control): Do not use @code for UTF-8.
7241 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7242 use @code for IEEE.
7243 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7244 sample.
7245 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7246
7247 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7248
7249 PR ada/35143
7250 * env.c: Add __rtems__ to if defined.
7251 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7252 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7253 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7254 pragma Convention as required.
7255 * gsocket.h: Make compile in and out of RTS.
7256 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7257 Use g-soccon-rtems.ads.
7258 * g-soccon-rtems.ads, system-rtems.ads: New files.
7259
7260 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7261
7262 PR other/35107
7263 * Make-lang.in (gnat1): Add $(GMPLIBS).
7264
7265 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7266
7267 * decl.c (components_to_record): Improve comment.
7268
7269 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7270
7271 * decl.c (components_to_record): Do not reuse the empty union type
7272 if there is a representation clause on the record.
7273 * trans.c (addressable_p): Return true for INTEGER_CST.
7274
7275 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7276
7277 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7278 in pointer arithmetics.
7279 * utils2.c (build_allocator): Likewise.
7280
7281 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7282
7283 * utils.c (build_function_stub): Properly build the call expression.
7284
7285 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7286
7287 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7288 before converting the expression to the type of the object.
7289 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7290 Stabilize constructors for special wrapping types.
7291
7292 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7293
7294 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7295 when necessary. Merge some conditional statements. Update comments.
7296 Rename unchecked_convert_p local variable to suppress_type_conversion.
7297 Do not suppress conversions in the In case.
7298 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7299 into account on non strict-alignment platforms.
7300
7301 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7302
7303 * utils.c (aggregate_type_contains_array_p): New predicate.
7304 (create_field_decl): In a packed record, force byte alignment
7305 for fields without specified position that contain an array.
7306
7307 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7308
7309 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7310
7311 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7312
7313 PR ada/34466
7314 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7315 sysconf call.
7316 (bit_field): New packed boolean type used by cpu_set_t.
7317 (cpu_set_t): New type corresponding to the C type with
7318 the same name. Note that on the Ada side we use a bit
7319 field array for the affinity mask. There is not need
7320 for the C macro for setting individual bit.
7321 (pthread_setaffinity_np): New imported routine.
7322
7323 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7324
7325 PR ada/34647
7326 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7327 on OpenBSD as is done on other BSD systems.
7328
7329 PR ada/34645
7330 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7331 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7332 I/O.
7333
7334 PR ada/34644
7335 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7336 clearenv().
7337
7338 PR ada/34646
7339 * init.c (__gnat_error_handler, __gnat_install_handler,
7340 __gnat_init_float): Define for OpenBSD.
7341
7342 * initialize.c (__gnat_initialize): Define for OpenBSD.
7343
7344 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7345
7346 PR ada/34553
7347 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7348 instead of mktemp() or tmpnam() on NetBSD.
7349
7350 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7351
7352 * trans.c (call_to_gnu): Make the temporary for non-addressable
7353 In parameters passed by reference.
7354 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7355
7356 2007-12-19 Robert Dewar <dewar@adacore.com>
7357
7358 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7359 Add pragma Warnings (Off) for unassigned IN OUT arguments
7360
7361 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7362 (Check_References): Extensive changes to tune up warnings
7363 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7364 (Has_Pragma_Unmodifed_Check_Spec): New function
7365 (Check_References): Implement pragma Unmodified
7366 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7367
7368 * par-prag.adb: Dummy entry for pragma Unmodified
7369
7370 * sem_prag.adb: Implement pragma Unmodified
7371
7372 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7373 (Proc_Next_Component_Or_Discriminant): Fix typo.
7374 Update comments.
7375
7376 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7377 Unmodified.
7378 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7379 because the former already takes care of discarding the result.
7380 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7381 Add comment.
7382
7383 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7384
7385 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7386
7387 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7388 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7389 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7390 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7391 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7392 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7393 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7394 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7395 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7396 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7397 (Dynamic_Trampolines_Used): Delete.
7398
7399 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7400 Turn on stack probing mechanism on LynxOS.
7401
7402 2007-12-19 Bob Duff <duff@adacore.com>
7403
7404 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7405 the resulting tail recursion by hand. This prevents running out of
7406 memory on deeply nested concatenations, since Field2 is where the left
7407 operand of concatenations is stored.
7408 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7409 clarify that it can only return OK or Abandon.
7410
7411 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7412 operand by iteration, in order to avoid running out of memory on
7413 deeply-nested concatenations. Use the Parent pointer to get back up the
7414 tree.
7415 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7416 Resolve_Op_Concat_Rest): New procedures split out of
7417 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7418 clearer.
7419
7420 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7421 Traverse_Func, because the former already takes care of discarding the
7422 result.
7423
7424 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7425 because the former already takes care of discarding the result.
7426 (Remove_Warning_Messages): Use appropriate subtype for Status and
7427 Discard
7428
7429 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7430
7431 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7432 discriminants forces expansion of the aggregate into assignments.
7433 (Init_Record_Controller): If the type of the aggregate is untagged and
7434 is not inherently limited, the record controller is not limited either.
7435
7436 2007-12-19 Robert Dewar <dewar@adacore.com>
7437
7438 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7439 handling compile time known size of record or array (case of front end
7440 layout active, e.g. in GNAAMP).
7441
7442 2007-12-19 Javier Miranda <miranda@adacore.com>
7443
7444 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7445 that forces the construction of static dispatch tables in case of
7446 record subtypes.
7447
7448 2007-12-19 Robert Dewar <dewar@adacore.com>
7449
7450 * exp_ch9.adb (Null_Statements): Moved to library level
7451 (Trivial_Accept_OK): New function
7452 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7453 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7454
7455 2007-12-19 Robert Dewar <dewar@adacore.com>
7456
7457 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7458 in complex case where array is Volatile.
7459
7460 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7461
7462 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7463 properly the Ada2005 rules concerning when the current instance of a
7464 record type is aliased.
7465
7466 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7467
7468 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7469 mangled declaration
7470 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7471 declarations.
7472 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7473
7474 2007-12-19 Vincent Celier <celier@adacore.com>
7475
7476 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7477 package is not known
7478
7479 * prj-attr.ads (Unknown_Package): New constant
7480 Do not crash when an unknown package is in several projects
7481
7482 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7483 ignored
7484
7485 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7486 existing package Language_Processing.
7487
7488 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7489 Gary Dismukes <dismukes@adacore.com>
7490 Samuel Tardieu <sam@rfc1149.net>
7491
7492 PR ada/15803, ada/15805
7493 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7494 illegal access subtypes when there is a constrained partial view.
7495 (Check_For_Premature_Usage): New procedure inside
7496 Access_Subprogram_Declaration for checking that an access-to-subprogram
7497 type doesn't reference its own name within any formal parameters or
7498 result type (including within nested anonymous access types).
7499 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7500 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7501 context is an access_to_variable, the expression cannot be an
7502 access_to_constant.
7503
7504 2007-12-19 Bob Duff <duff@adacore.com>
7505
7506 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7507 (Analyze_Concatenation): Use iteration instead of recursion in order
7508 to avoid running out of stack space for deeply nested concatenations.
7509
7510 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7511 Gary Dismukes <dismukes@adacore.com>
7512
7513 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7514 whose renamed entity is a subprogram that requires overriding.
7515 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7516 issuing an error for premature usage and issue a message that says
7517 'type' rather than 'object'.
7518
7519 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7520
7521 PR ada/34149
7522 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7523 presence of a statically tagged operand (Present (Static_Tag)) with
7524 test for Indeterm_Ancestor_Call when determining whether to propagate
7525 the static tag to tag-indeterminate operands (which forces dispatching
7526 on such calls).
7527 (Check_Controlling_Formals): Ada2005, access parameters can have
7528 defaults.
7529 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7530 not insert subprogram in list of primitive operations if already there.
7531
7532 2007-12-19 Tristan Gingold <gingold@adacore.com>
7533
7534 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7535 global variable.
7536
7537 2007-12-19 Thomas Quinot <quinot@adacore.com>
7538
7539 Part of PR ada/33688
7540 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7541 datagram info on Linux.
7542
7543 2007-12-19 Vincent Celier <celier@adacore.com>
7544
7545 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7546 that the source path name is always found in the dependencies.
7547
7548 2007-12-19 Robert Dewar <dewar@adacore.com>
7549
7550 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7551 Fix name of Wide_Wide_Latin_1/9 file names
7552 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7553 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7554 Add missing documentation for Ada.Command_Line.Response_File
7555 Update list of warning letters for Warnings pragma
7556 Add documentation for pragma Unmodified
7557
7558 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7559
7560 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7561
7562 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7563
7564 * s-vxwork-alpha.ads: Removed, no longer used.
7565
7566 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7567
7568 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7569
7570 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7571
7572 PR ada/34360
7573 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7574 mlib-tgt-specific.adb.
7575
7576 2007-12-13 Bob Duff <duff@adacore.com>
7577
7578 * trans.c (Attribute_to_gnu): Check for violations of the
7579 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7580 the front end, but is moved here so we can make it more accurate.
7581
7582 2007-12-13 Pascal Obry <obry@adacore.com>
7583
7584 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7585 version is provided for older GNU/Linux distribution not
7586 supporting thread affinity sets.
7587
7588 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7589 call.
7590 (bit_field): New packed boolean type used by cpu_set_t.
7591 (cpu_set_t): New type corresponding to the C type with
7592 the same name. Note that on the Ada side we use a bit
7593 field array for the affinity mask. There is not need
7594 for the C macro for setting individual bit.
7595 (pthread_setaffinity_np): New imported routine.
7596
7597 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7598 no null.
7599 (Create_Task): Set the processor affinity mask if information
7600 is present.
7601
7602 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7603
7604 2007-12-13 Robert Dewar <dewar@adacore.com>
7605
7606 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7607 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7608 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7609 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7610 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7611 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7612 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7613 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7614 for subprogram pointers.
7615
7616 * g-ctrl_c.adb: New file.
7617
7618 * g-ctrl_c.ads (Install_Handler): New body.
7619
7620 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7621 instead of obsolete function Is_Always_Inlined.
7622 (Freeze_Entity): check for tagged type in imported C subprogram
7623 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7624 (Freeze_Entity): check for convention Ada subprogram pointer in
7625 imported C subprogram.
7626 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7627 bound would be chopped off and go from negative to zero, force
7628 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7629 bound) so that the size computation for the base type will take
7630 negative values into account.
7631
7632 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7633 Bob Duff <duff@adacore.com>
7634 Tristan Gingold <gingold@adacore.com>
7635
7636 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7637 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7638 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7639 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7640 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7641 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7642 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7643 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7644 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7645 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7646 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7647 (Always_Compatible_Rep): New flag to control trampolines globally.
7648 (Dynamic_Trampolines_Used): New flag for implementing the
7649 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7650 and not yet set correctly for some targets).
7651
7652 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7653 Simply indirectly call s-stchop when a task is created.
7654
7655 * ali.ads:
7656 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7657 appears as an argument (entries A) in an ALI file.
7658
7659 * fe.h (Stack_Check_Limits): Declare new target parameter.
7660 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7661
7662 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7663 This variable is declared in C to be sure not subject to elaboration
7664 code.
7665 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7666 Storage_Error.
7667
7668 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7669 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7670
7671 * s-stchop.ads: Add comments.
7672
7673 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7674 limit method of stack checking.
7675
7676 * s-stchop-limit.ads: New file.
7677
7678 2007-12-13 Robert Dewar <dewar@adacore.com>
7679
7680 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7681 a-cihama.adb, g-awk.adb,
7682 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7683 warnings
7684
7685 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7686
7687 * sem.adb: Update handling of assigned value/unreferenced warnings
7688
7689 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7690
7691 * lib-xref.ads: Improve documentation for k xref type
7692
7693 * lib-xref.adb:
7694 Update handling of assigned value/unreferenced warnings
7695 (Generate_Reference): Warning for reference to entity for which a
7696 pragma Unreferenced has been given should be unconditional.
7697 If the entity is a discriminal, mark the original
7698 discriminant as referenced.
7699
7700 * sem_warn.ads, sem_warn.adb
7701 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7702 no entities referenced in package
7703 (Check_One_Unit): Don't give message about no entities referenced in
7704 a package if a pragma Unreferenced has appeared.
7705 Handle new warning flag -gnatw.a/-gnatw.A
7706 Update handling of assigned value/unreferenced warnings
7707
7708 * atree.h: Add flags up to Flag247
7709 (Flag231): New macro.
7710
7711 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7712
7713 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7714
7715 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7716 RTX systems.
7717
7718 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7719 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7720 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7721 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7722
7723 * mingw32.h:
7724 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7725
7726 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7727 since we only have problems with Windows 95/98, which are not
7728 supported by RTX.
7729 (__gnat_ttyname): Return the empty string on Nucleus, just as
7730 done on vxworks.
7731
7732 2007-12-13 Robert Dewar <dewar@adacore.com>
7733
7734 * a-textio.adb, a-textio.ads:
7735 Extensive changes to private part for wide character encoding
7736
7737 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7738 (Look_Ahead): Fix mishandling of encoded sequences
7739 Move declaration of Wch_Con to private part (should not be visible)
7740
7741 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7742 UTF-8. Probably this is never used, but if it is, brackets is
7743 clearly correct.
7744
7745 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7746 setting wide character encoding for no main program case and when
7747 encoding is specified using -W?
7748 Initialize stack limit of environment task if stack limit method of
7749 stack checking is enabled.
7750 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7751 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7752 (Get_Main_Unit_Name): New function.
7753 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7754 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7755
7756 * bindusg.adb: Add line for -Wx switch
7757
7758 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7759 Add comments
7760 Add new useful constant WC_Longest_Sequences
7761
7762 * switch-b.adb: Clean up handling of -Wx switch
7763 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7764
7765 * switch-c.adb: -gnatg activates warning on assertion errors
7766 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7767
7768 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7769
7770 2007-12-13 Robert Dewar <dewar@adacore.com>
7771 Ed Schonberg <schonberg@adacore.com>
7772
7773 * a-ngcoty.adb: New pragma Fast_Math
7774
7775 * opt.adb: New pragma Fast_Math
7776
7777 * par-prag.adb:
7778 Add Implemented_By_Entry to the list of pragmas which do not require any
7779 special processing.
7780 (Favor_Top_Level): New pragma.
7781 New pragma Fast_Math
7782
7783 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7784 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7785 Expand_Allocator_Expression): Take into account VM_Target
7786 (Expand_Attribute, case 'Identity): Handle properly the case where
7787 the prefix is a task interface.
7788 New pragma Fast_Math
7789
7790 * par.adb (Next_Token_Is): New function
7791 (P_Pragma): Add Skipping parameter
7792 (U_Left_Paren): New procedure
7793 (U_Right_Paren): New procedure
7794 New pragma Fast_Math
7795
7796 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7797 subunit
7798 New pragma Fast_Math
7799
7800 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7801 Implemented_By_Entry.
7802 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7803 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7804 items, since it can apply to more than one overloadable entity. Set
7805 new flag Has_Pragma_Inline_Always for Inline_Always case.
7806 (Analyze_Pragma, case Complex_Representation): Improve error message.
7807 (Analyze_Pragma, case Assert): When assertions are disabled build the
7808 rewritten code with Sloc of expression rather than pragma, so new
7809 warning about failing is not deleted.
7810 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7811 protected types and update error message to reflect that. Test whether
7812 the protected type is allowed for the pragma (an error is issued if the
7813 type has any entries, or components that do not have preelaborable
7814 initialization).
7815 New pragma Fast_Math
7816 (Analyze_Pragma, case No_Return): Handle generic instance
7817
7818 * snames.h, snames.ads, snames.adb:
7819 Add new predefined name for interface primitive _Disp_Requeue.
7820 New pragma Fast_Math
7821
7822 * a-tags.ads, a-tags.adb: New calling sequence for
7823 String_To_Wide_[Wide_]String
7824 (Secondary_Tag): New subprogram.
7825
7826 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7827 from Exp_Attr
7828 New calling sequence for String_To_Wide_[Wide_]String
7829 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7830 the use of the secondary stack for image routines.
7831
7832 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7833 calling sequence for String_To_Wide_[Wide_]String
7834
7835 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7836 Ada 95 mode
7837 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7838 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7839
7840 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7841 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7842 to improve error recovery
7843
7844 * par-util.adb (Next_Token_Is): New function
7845 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7846
7847 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7848 semicolon if missing
7849 (P_Pragma): Implement new Skipping parameter
7850 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7851 Fix location of flag for unrecognized pragma message
7852
7853 * par-tchk.adb (U_Left_Paren): New procedure
7854 (U_Right_Paren): New procedure
7855
7856 2007-12-13 Geert Bosch <bosch@adacore.com>
7857
7858 * a-tifiio.adb:
7859 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7860 the second or later Scaled_Divide would omit leading zeroes,
7861 resulting in too few digits produced and a Layout_Error as result.
7862 (Put): Initialize Pos.
7863
7864 2007-12-13 Robert Dewar <dewar@adacore.com>
7865
7866 atree.ads, atree.adb (Flag231..Flag247): New functions
7867 (Set_Flag231..Set_Flag247): New procedures
7868 (Basic_Set_Convention): Rename Set_Convention to be
7869 Basic_Set_Convention
7870 (Nkind_In): New functions
7871 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7872
7873 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7874 instead
7875 of obsolete function Is_Always_Inlined
7876 (Register_Predefined_DT_Entry): Initialize slots of the second
7877 secondary dispatch table.
7878 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7879 (Expand_N_Function_Call): Remove special provision for stack checking.
7880
7881 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7882 Include _Disp_Requeue in the list of predefined operations.
7883 (Find_Interface_ADT): Modified to fulfill the new specification.
7884 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7885
7886 * par-ch4.adb, nlists.ads, nlists.adb:
7887 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7888
7889 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7890 Fix location of flag for unrecognized pragma message
7891
7892 * sem_ch7.adb: Use Nkind_In
7893
7894 2007-12-13 Vincent Celier <celier@adacore.com>
7895
7896 * opt.ads:
7897 Indicate what flags are used by the Project Manager, gprbuild and
7898 gprclean.
7899 (Opt.Follow_Links_For_Dirs): New flag
7900 (Warn_On_Assertion_Failure): New flag
7901 (Wide_Character_Encoding_Method_Specified): New flag
7902 (Suppress_All_Inlining): New switch set by -fno-inline
7903 (Real_VMS_Target): New flag
7904 New pragma Fast_Math
7905
7906 2007-12-13 Robert Dewar <dewar@adacore.com>
7907
7908 * back_end.adb: Recognize -fno-inline
7909
7910 2007-12-13 Robert Dewar <dewar@adacore.com>
7911
7912 * checks.adb: Fix optimization problem with short-circuited form
7913
7914 2007-12-13 Bob Duff <duff@adacore.com>
7915
7916 * clean.adb (Usage): Add line for -aP
7917 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7918 with a parameter "procedure Usage", instead of passing a pointer to a
7919 procedure. This is to eliminate trampolines (since the Usage procedure
7920 is often nested in a main procedure, and it would be inconvenient to
7921 unnest it).
7922
7923 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7924 to be generic, with a parameter "procedure Callback (...)", instead of
7925 passing a pointer to a procedure. This is to eliminate trampolines
7926 (since the Callback procedure is usually nested).
7927
7928 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7929 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7930 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7931
7932 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7933 Use the generic Heap_Sort_G instead of Heap_Sort_A.
7934
7935 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7936
7937 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7938 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7939 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7940 (Renamed_In_Spec): New flag
7941 (Has_Pragma_Inline_Always): New flag
7942 Add missing doc for pragma Obsolescent_Warning
7943 Add missing doc for 17 additional unused flags (230-247)
7944 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7945 Alphabetize with clauses.
7946 Separate Is_Thunk and Has_Thunks flags
7947 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7948 (Related_Interface): Renamed to Related_Type.
7949 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7950 (Set_Is_Flag): Restrict the assertion.
7951
7952 2007-12-13 Vincent Celier <celier@adacore.com>
7953
7954 * errout.adb (Output_Source_Line): Do not keep a trailing space after
7955 the source line number if the source line is empty.
7956
7957 2007-12-13 Geert Bosch <bosch@adacore.com>
7958
7959 * eval_fat.adb (Decompose_Int): Handle argument of zero.
7960 (Compose): Remove special casing of zero.
7961 (Exponent): Likewise.
7962 (Fraction): Likewise.
7963 (Machine): Likewise.
7964 (Decompose): Update comment.
7965
7966 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7967
7968 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7969 limited ancestor part, initialize controllers of enclosing record
7970 before expanding ancestor aggregate.
7971 (Gen_Assign): If a component of the aggregate is box-initialized, add
7972 code to call Initialize if the component is controlled, and explicit
7973 assignment of null if the component is an access type.
7974
7975 Handle properly aggregates for limited types that appear in object
7976 declarations when the aggregate contains controlled values such as
7977 protected types.
7978 When expanding limited aggregates into individual components, do not
7979 call Adjust on controlled components that are limited.
7980
7981 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7982
7983 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7984
7985 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7986
7987 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7988 predefined primitive _Disp_Requeue.
7989 (Make_Predefined_Primitive_Specs): Create the spec for predefined
7990 primitive _Disp_Requeue.
7991 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7992 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7993 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7994 an interface type. In case of limited interfaces we now declare all the
7995 predefined primitives associated with synchronized interfaces as
7996 abstract.
7997 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7998 declarations.
7999 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
8000 tagged type is an interface type and there is no user-defined equality
8001 function.
8002 Add also bodies of predefined primitives associated with synchronized
8003 interfaces.
8004 (Freeze_Record_Type): Do not build bodies of predefined primitives of
8005 interface types because they are now defined abstract.
8006 Add missing documentation.
8007 (Expand_Record_Controller): Update occurrence of Related_Interface
8008 to Related_Type.
8009 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
8010 (Expand_N_Object_Declaration): Take into account VM_Target when handling
8011 class wide interface object declaration.
8012 (Expand_Previous_Access_Type): Do not create a duplicate master entity
8013 if the access type already has one.
8014 (Expand_N_Object_Declaration): Defend against attempt to validity check
8015 generic types. Noticed for -gnatVcf specified with previous errors.
8016
8017 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8018
8019 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
8020 Expand_Allocator_Expression): Take into account VM_Target
8021
8022 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
8023 secondary stack when VM_Target /= No_VM
8024
8025 2007-12-13 Javier Miranda <miranda@adacore.com>
8026 Ed Schonberg <schonberg@adacore.com>
8027
8028 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
8029 Is_Complation_Unit by Is_Library_Level_Entity in the code
8030 that decides if the static dispatch tables need to be built.
8031 (Wrap_Transient_Declaration): Do not generate a finalization call if
8032 this is a renaming declaration and the renamed object is a component
8033 of a controlled type.
8034
8035 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8036
8037 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
8038 In the case where the renamed subprogram is a dereference, call
8039 Force_Evaluation on the prefix.
8040
8041 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8042 Ed Schonberg <schonberg@adacore.com>
8043
8044 * exp_ch9.adb (Expand_N_Asynchronous_Select,
8045 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
8046 comment reformatting.
8047 (Set_Privals): Inherit aliased flag from formal. From code reading.
8048 (Build_Simple_Entry_Call): Out parameters of an access type are passed
8049 by copy and initialized from the actual. This includes entry parameters.
8050 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
8051 and Ada 2005 models of requeue.
8052 (Null_Statements): Still connsider do-end block null if it contains
8053 Unreferenced and Warnings pragmas.
8054 (Expand_N_Accept_Statement): Do not optimize away null do end if
8055 dispatching policy is other than defaulted.
8056 (Expand_N_Timed_Entry_Call): When the triggering statement is a
8057 dispatching call, manually analyze the delay statement.
8058 (Find_Parameter_Type): Move subprogram to Sem_Util.
8059
8060 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8061 Javier Miranda <miranda@adacore.com>
8062
8063 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
8064 _Disp_Requeue occupies dispatch table slot number 15. Move
8065 _Disp_Timed_Select to slot 16.
8066 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
8067 generate the spec and body of _Disp_Reqeueue.
8068 (Make_DT): Build and initialize the second dispatch table.
8069 Handle initialization of RC_Offset when the parent
8070 is a private type with variable size components.
8071 (Make_Secondary_DT): Complete documentation. Add support to
8072 initialize the second dispatch table.
8073 (Make_Tags): Generate the tag of the second dispatch table.
8074 (Register_Primitive): Add support to register primitives in the
8075 second dispatch table.
8076
8077 2007-12-13 Pascal Obry <obry@adacore.com>
8078
8079 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
8080 Windows. This signal is used by gnatmake to kill child processes for
8081 example.
8082
8083 2007-12-13 Javier Miranda <miranda@adacore.com>
8084
8085 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8086 support for generic dispatching constructor calls in which we need to
8087 locate the tag of a secondary dispatch table associated with an
8088 interface type to properly dispatch the call.
8089 (Expand_N_Attribute_Reference [case Address],
8090 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
8091 handling of VM targets.
8092
8093 2007-12-13 Robert Dewar <dewar@adacore.com>
8094 Ed Schonberg <schonberg@adacore.com>
8095
8096 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
8097 assert fail
8098
8099 * ug_words: Add entries for -gnatw.a -gnatw.A
8100
8101 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
8102 literal is a subtype with non-static constraints, use the base type of
8103 the context as the base of the string subtype, to prevent type
8104 mismatches in gigi.
8105 (Resolve_Actuals): If the actual is an entity name, generate a
8106 reference before the actual is resolved and expanded, to prevent
8107 spurious warnings on formals of enclosing protected operations.
8108 (Analyze_Overloaded_Selected_Component): If type of prefix if
8109 class-wide, use visible components of base type.
8110 (Resolve_Selected_Component): Ditto.
8111 (Resolve_Short_Circuit): Detect case of pragma Assert argument
8112 evaluating to False, and issue warning message.
8113
8114 * usage.adb: Add lines for -gnatw.a and -gnatw.A
8115
8116 2007-12-13 Emmanuel Briot <briot@adacore.com>
8117
8118 * g-calend.ads (No_Time): New constant, to represent an uninitialized
8119 time value
8120
8121 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
8122 formats.
8123 (Month_Name_To_Number): New subprogram
8124
8125 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
8126 letter to upper-case.
8127
8128 2007-12-13 Robert Dewar <dewar@adacore.com>
8129 Ed Schonberg <schonberg@adacore.com>
8130
8131 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
8132
8133 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
8134 context is a limited view, use non-limited view when available. If the
8135 non-limited view is an unconstrained array, this enforces consistency
8136 requirements in 3.10.2 (27).
8137 (Layout_Type): For an access type whose designated type is a limited
8138 view, examine its declaration to determine if it is an unconstrained
8139 array, and size the access type accordingly.
8140 (Layout_Type): Do not force 32-bits for convention c subprogram
8141 pointers in -gnatdm mode, only if real vms target.
8142
8143 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
8144 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8145 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
8146 violations of the No_Implicit_Dynamic_Code restriction.
8147 (Resolve_Attribute, case 'Access): If designated type of context is a
8148 limited view, use non-limited view when available. If the non-limited
8149 view is an unconstrained array, this enforces consistency requirements
8150 in 3.10.2 (27).
8151 (Layout_Type): For an access type whose designated type is a limited
8152 view, examine its declaration to determine if it is an unconstrained
8153 array, and size the access type accordingly.
8154
8155 2007-12-13 Vincent Celier <celier@adacore.com>
8156
8157 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
8158 object directory of main project does not exist.
8159 On VMS, correctly set then environment variable for the source
8160 directories.
8161
8162 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8163
8164 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
8165 set to True this procedure will create the value of type REG_EXPAND_SZ.
8166 It was only possible to create REG_SZ values before.
8167
8168 2007-12-13 Robert Dewar <dewar@adacore.com>
8169
8170 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8171 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8172 namet-sp.adb, namet-sp.ads: New files.
8173
8174 * g-speche.adb: Use generic routine in g-spchge
8175
8176 * s-wchcnv.ads, s-wchcnv.adb:
8177 Minor code cleanup (make formal type consistent with spec)
8178
8179 * namet.adb: Update comments.
8180
8181 * par-endh.adb (Evaluate_End_Entry): Use new
8182 Namet.Sp.Is_Bad_Spelling_Of function
8183
8184 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8185
8186 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8187 ancestor is an access type initialized with a box, set its type
8188 explicitly, for use in subsequent expansion.
8189 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8190 function
8191
8192 2007-12-13 Robert Dewar <dewar@adacore.com>
8193
8194 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8195 access Vstring)
8196
8197 2007-12-13 Robert Dewar <dewar@adacore.com>
8198
8199 * inline.adb (Back_End_Cannot_Inline): Use new flag
8200 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8201
8202 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8203 Has_Pragma_Inline_Always instead.
8204 of obsolete function Is_Always_Inlined
8205 (Build_Body_To_Inline): Same change
8206 (Cannot_Inline): Same change
8207 Do not give warning on exception raise in No_Return function
8208
8209 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8210 component has two inconsistent component clauses in the same record
8211 representation clause, favor the message that complains about
8212 duplication rather than inconsistency.
8213 Update comments.
8214 (Record_Representation_Clause): Do not warn on missing component
8215 clauses for inherited components of a type extension.
8216 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8217 an overloadable item if it is a pragma that can apply to multiple
8218 overloadable entities (e.g. Inline) because a pragma cannot be on
8219 more than one chain at a time.
8220 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8221 conversion where one of the operands is Ada.Calendar.Time.
8222 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8223 For now, ignore Component_Size clause on VM targets, as done for
8224 pragma Pack.
8225
8226 2007-12-13 Emmanuel Briot <briot@adacore.com>
8227 Vincent Celier <celier@adacore.com>
8228
8229 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8230 string
8231 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8232 prj.ads
8233 (Hash): Move instantiation of System.HTable.Hash from spec to body
8234 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8235 systems, since we do not need to recompute the Name_Id for the canonical
8236 file name.
8237 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8238 as a parameter. This parameter is in fact always "ada" in all calls, and
8239 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8240 while loading a project with 40000 files
8241
8242 * prj-attr.adb: Fix name of attribute Dependency_Driver
8243 Change the kind of indexing for attribute Root
8244
8245 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8246 variables already declared, in case constructions.
8247
8248 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8249 Current_Object_Path_File to No_Path.
8250
8251 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8252 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8253
8254 * prj-makr.adb: new parameter Current_Dir
8255
8256 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8257 Ada sources when language is not Ada.
8258 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8259 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8260 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8261 (Locate_Directory): Always resolve links when computing Canonical_Path
8262 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8263 in Source_Files before checking for the presence of a directory
8264 separator.
8265 Optimize calls to Name_Find when on case sensitive systems.
8266 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8267 as a parameter.
8268 (Prj.Nmsc.Check): new parameter Current_Dir
8269 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8270 cannot be empty and the spec suffix cannot be the same as the body or
8271 separate suffix.
8272 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8273 subunit), always consider the longest suffix.
8274 (Check_Configuration): Do not issue an error if there is no compiler
8275 for a language. Just issue a warning and ignore the sources for the
8276 language.
8277 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8278 not empty.
8279 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8280 (Unit_Exceptions): New hash table
8281 (Check_Naming_Schemes): Check if a file that could be a unit because of
8282 the naming scheme is not in fact a source because there is an exception
8283 for the unit.
8284 (Look_For_Sources): Put the unit exceptions in hash table
8285 Unit_Exceptions
8286 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8287 Other_Part to avoid exception when code is compiled with validity
8288 checking.
8289 (Get_Sources_From_File): Check that there is no directory information
8290 in the file names.
8291 (Look_For_Sources): Check that there is no directory information in the
8292 list of file names in Source_Files.
8293 (Look_For_Sources): In multi-language mode, do not allow exception file
8294 names that are excluded.
8295 (Excluded_Sources_Htable): New hash table
8296 (Search_Directories.Check_File): New procedure to simplify
8297 Search_Directories.
8298 (Search_Directories): Do not consider excluded sources
8299 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8300 Search_Directories.
8301 (Get_Exceptions): Set component Lang_Kind of Source_Data
8302 (Get_Unit_Exceptions): Ditto
8303 (Search_Directories): Ditto
8304
8305 * prj-pars.adb: new parameter Current_Dir
8306
8307 * prj-part.ads, prj-part.adb:
8308 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8309 (Opt.Follow_Links_For_Dirs): New flag
8310 (Project_Path_Name_Of): Cache information returned by this routine as
8311 Locate_Regular_File is a costly routine. The code to output a log
8312 information and the effective call to Locate_Regular_File is now
8313 factorized into a routine (code clean-up).
8314 (Parse, Parse_Single_Project): new parameter Current_Dir
8315 When main project file cannot be found, indicate in the error
8316 message the project path that was used to do the search.
8317
8318 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8319 (Prj.Proc.Process*): new parameter Current_Dir
8320
8321 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8322
8323 2007-12-13 Bob Duff <duff@adacore.com>
8324
8325 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8326 procedure to be called from the back end to check the
8327 No_Implicit_Dynamic_Code restriction.
8328
8329 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8330
8331 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8332 Fixes another case where RTE_Available_Call was ignored instead of being
8333 taken into account.
8334 (Load_Fail): Ditto.
8335
8336 * rtsfind.ads: Add new entries.
8337
8338 2007-12-13 Robert Dewar <dewar@adacore.com>
8339
8340 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8341 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8342
8343 * scn.adb: Implement BOM recognition
8344
8345 2007-12-13 Thomas Quinot <quinot@adacore.com>
8346 Ed Schonberg <schonberg@adacore.com>
8347
8348 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8349 subprogram body that acts as its own spec may not have a non-private
8350 WITH clause on a private sibling.
8351 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8352 child unit is a renaming, create an implicit with_clause on that
8353 parent, and not on the unit it renames, to prevent visibility errors
8354 in the current unit.
8355
8356 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8357
8358 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8359 renaming declaration, use the Slocs of the formal parameters from the
8360 declaration of the formal subprogram when creating the formal parameter
8361 entities in the renaming declaration.
8362 (Analyze_Formal_Type_Declaration): Change the placement of the error
8363 message concerning illegal known discriminants. It is now posted on the
8364 type rather than on the first discriminant. This change ensures early
8365 error report.
8366 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8367 the package body that contains the instance, do not generate an
8368 out-of-place freeze node for the enclosing package.
8369 (Collect_Previous_Instantiations): Ignore internal instantiations
8370 generated for formal packages.
8371 (Validate_Derived_Type_Instance): Add a check that when a formal
8372 derived type is Known_To_Have_Preelab_Init then the actual type must
8373 have preelaborable initialization, and issue an error when this
8374 condition is violated.
8375
8376 2007-12-13 Robert Dewar <dewar@adacore.com>
8377
8378 * s-imenne.adb, s-imenne.ads: New files.
8379
8380 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8381 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8382 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8383 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8384 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8385 stack usage.
8386
8387 2007-12-13 Javier Miranda <miranda@adacore.com>
8388 Ed Schonberg <schonberg@adacore.com>
8389
8390 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8391 generation of spurious error if parent is an interface type; caused
8392 because predefined primitive bodies will be generated later by
8393 Freeze_Record_Type.
8394 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8395 flag.
8396 (Derive_Subprograms): Handle derivations of predefined primitives
8397 after all the user-defined primitives to ensure that they are
8398 found in proper order in instantiations.
8399 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8400 of Related_Interface to Related_Type.
8401 (Record_Type_Declaration): Minor reordering of calls to decorate the
8402 Tag component because the entity must have set its Ekind attribute
8403 before setting its Is_Tag attribute.
8404 (Analyze_Subtype_Declaration): In the case of subtypes with
8405 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8406
8407 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8408 Ed Schonberg <schonberg@adacore.com>
8409
8410 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8411 statement to the list of contexts where a selected component with a
8412 concurrent tagged type prefix should yield a primitive operation.
8413 (Find_Primitive_Operation): Handle case of class-wide types.
8414 (Analyze_Overloaded_Selected_Component): If type of prefix is
8415 class-wide, use visible components of base type.
8416 (Resolve_Selected_Component): Ditto.
8417 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8418 formal of a generic subprogram. find candidate interpretations by
8419 scanning the list of generic formal declarations.:
8420 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8421 type from a limited_with_clause, and the full view is available, use it
8422 for subsequent semantic checks.
8423 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8424 (Find_Primitive_Operation): New function.
8425 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8426 only once if several interpretations of the prefix yield an access type.
8427 (Try_Object_Operation): Code and comment cleanup.
8428 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8429 code reformatting. When the type of the prefix is tagged concurrent, a
8430 correct interpretation might be available in the primitive and
8431 class-wide operations of the type.
8432
8433 2007-12-13 Robert Dewar <dewar@adacore.com>
8434 Ed Schonberg <schonberg@adacore.com>
8435
8436 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8437 renaming entry as subprogram using rename-as-body if subprogram spec
8438 frozen.
8439 (Use_One_Type): The clause is legal on an access type whose designated
8440 type has a limited view.
8441 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8442 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8443 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8444 operation denoted by a selected component.
8445 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8446 it can be an expression, possibly overloaded, that returns a task or
8447 an access to one.
8448
8449 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8450 Gary Dismukes <dismukes@adacore.com>
8451
8452 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8453 requeue statement is dispatching. Do not emit an error when the name is
8454 not an entry and the context is a dispatching select. Add code to
8455 perform subtype conformance between the formals of the current entry
8456 and those of the target interface primitive.
8457 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8458 Timed_Entry_Call): Analyze the triggering statement as the first step of
8459 the processing. If this is a dispatching select, postpone the analysis
8460 of all select statements until the Expander transforms the select. This
8461 approach avoids generating duplicate identifiers after the Expander has
8462 replicated some of the select statements. In case the Expander is
8463 disabled, perform regular analysis.
8464 (Check_Triggering_Statement): New routine.
8465 (Analyze_Requeue): Exclude any interpretations that are not entries when
8466 checking overloaded names in a requeue. Also test type conformance for
8467 matching interpretations rather than requiring subtype conformance at
8468 that point to conform with the RM's resolution rule for requeues.
8469
8470 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8471
8472 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8473 inherited operation is a defaulted tag-indeterminate call, and there is
8474 a statically tagged actual, use the static tag as a controlling actual
8475 for the defaulted actual.
8476
8477 2007-12-13 Geert Bosch <bosch@adacore.com>
8478
8479 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8480 context, so do not call Check_Non_Static_Context.
8481
8482 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8483
8484 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8485 whether formal E is an entity which may have parameters.
8486
8487 2007-12-13 Bob Duff <duff@adacore.com>
8488 Javier Miranda <miranda@adacore.com>
8489 Robert Dewar <dewar@adacore.com>
8490
8491 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8492 (Set_Convention): New procedure to set the Convention flag, and in
8493 addition make sure the Favor_Top_Level flag is kept in sync (all
8494 foreign-language conventions require Favor_Top_Level = True).
8495 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8496 to Related_Type.
8497 (Collect_Interfaces_Info): Minor update to handle the two secondary
8498 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8499 (Generate_Parent_Ref): Add parameter to specify entity to check
8500 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8501 initialize a component of a type with preelaborable initialization.
8502 This includes the case of a discriminal used in such a context.
8503 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8504 latest Ada 2005 rules about renaming and 'Access of
8505 discriminant-dependent components.
8506 (Check_Nested_Access): Add handling when there are no enclosing
8507 subprograms (e.g. case of a package body).
8508 (Find_Parameter_Type): Factor routine from several other compiler files.
8509 Remove routine from Find_Overridden_Synchronized_Primitive.
8510
8511 2007-12-13 Thomas Quinot <quinot@adacore.com>
8512
8513 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8514 an invalid access to an uninitialized slot in the
8515 Source_File_Index_Table.
8516
8517 2007-12-13 Thomas Quinot <quinot@adacore.com>
8518
8519 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8520
8521 2007-12-13 Bob Duff <duff@adacore.com>
8522
8523 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8524 access-to-subprogram types in this package.
8525
8526 2007-12-13 Olivier Hainque <hainque@adacore.com>
8527
8528 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8529 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8530 Stack_Overlay_Address and document that we are using an internal
8531 abstraction.
8532 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8533 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8534 consistently throughout the various implementation pieces.
8535
8536 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8537 overlay we are using to fill the stack area with patterns.
8538 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8539 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8540 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8541
8542 2007-12-13 Robert Dewar <dewar@adacore.com>
8543
8544 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8545
8546 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8547
8548 * s-tassta.adb:
8549 (Create_Task): Take into account tasks created by foreign threads.
8550 Code clean up: use constants instead of hard coded values.
8551
8552 2007-12-13 Robert Dewar <dewar@adacore.com>
8553
8554 * styleg.adb (Check_Comment): More liberal rules for comment placement
8555
8556 2007-12-13 Olivier Hainque <hainque@adacore.com>
8557
8558 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8559 of Procedure Value instead of Frame Pointer as the invocation
8560 identifier associated with the instruction pointer in each traceback
8561 entry.
8562
8563 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8564 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8565 Pointer as the invocation identifier passed to tbk$symbolize.
8566
8567 * s-traent-vms.ads, s-traent-vms.adb
8568 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8569 Procedure Value instead of Frame Pointer as the invocation identifier
8570 passed to tbk$symbolize.
8571
8572 2007-12-13 Robert Dewar <dewar@adacore.com>
8573
8574 * tbuild.ads, tbuild.adb:
8575 Fix location of flag for unrecognized pragma message
8576
8577 2007-12-13 Robert Dewar <dewar@adacore.com>
8578
8579 * treepr.ads, treepr.adb: (pl): implement use of positive value
8580 shorthands
8581
8582 2007-12-13 Robert Dewar <dewar@adacore.com>
8583
8584 * xeinfo.adb: Remove warnings
8585 * xnmake.adb: Remove warnings
8586 * xsinfo.adb: Remove warnings
8587 * xtreeprs.adb: Remove warnings
8588 * xsnames.adb: Remove warnings
8589
8590 * a-ngcoar.adb: Fix typo.
8591 * s-interr.adb: Minor reformatting
8592 * env.c: Minor reformatting.
8593 * g-bytswa.adb: Minor reformatting.
8594 * g-rannum.ads: Minor documentation improvements
8595 * s-tasinf-mingw.adb: Minor header fix
8596 * a-clrefi.adb: Minor reformatting
8597 * g-sttsne.ads: Minor documentation improvement
8598 * g-sttsne-locking.ads: Minor documentation improvement
8599 * g-soliop-solaris.ads: Minor documentation improvement
8600 * g-soliop-mingw.ads: Minor documentation improvement
8601 * g-soliop.ads: Minor documentation improvement
8602 * exp_aggr.ads: Minor reformatting
8603 * debug.adb: Add documentation for the gprbuild debug flags
8604 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8605 * exp_pakd.adb: Minor reformatting
8606
8607 * g-altive.ads, g-alleve.adb: Remove assertions.
8608 Add comment about minor differences between targets regarding
8609 floating-point operations.
8610
8611 * g-thread.adb: Remove pragma unreferenced.
8612 * lib.ads: Minor reformatting
8613 * par-ch9.adb: Minor reformatting of error messages
8614 * sem_case.adb: Minor reformatting
8615 * s-fileio.adb: Minor reformattinng
8616 * s-vmexta.ads: Minor typo
8617 * vxaddr2line.adb:
8618 Take into account 'Success' value as per new GNAT warning.
8619
8620 2007-12-13 Vincent Celier <celier@adacore.com>
8621
8622 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8623 even on Windows
8624
8625 2007-12-13 Robert Dewar <dewar@adacore.com>
8626 Bob Duff <duff@adacore.com>
8627
8628 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8629 Document that suffixes may be terminations of each others
8630 Add doc for -gnatw.a and -gnatw.A
8631 Document gnatbind -Wx switch
8632 Document BOM recognition
8633 Document pragma Implemented_By_Entry.
8634 Document new units.
8635
8636 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8637 Add doc for pragma Unreferenced suppressing no entities referenced msg
8638 Add documentation of GNAT.Directory_Operations.Iteration
8639 Add documentation of GNAT.Random_Numbers
8640 Add documentation for pragma Shared.
8641 Correct documentation for Bit_Order
8642 Add documentation for the Pool_Address attribute.
8643 Fix and improve documentation of pragma machine_attribute.
8644 New pragma Fast_Math
8645 Document BOM recognition
8646
8647 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8648 Add /Wide_Character_Encoding for binder
8649 Add qualifier for the new gnatpp option --no-separate-loop-then
8650
8651 2007-12-13 Matthew Heaney <heaney@adacore.com>
8652
8653 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8654 which generic formal operations are called for each operation.
8655
8656 2007-12-13 Olivier Hainque <hainque@adacore.com>
8657
8658 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8659 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8660
8661 2007-12-13 Emmanuel Briot <briot@adacore.com>
8662
8663 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8664 Reference_Dir unless we actually need it.
8665
8666 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8667 Tristan Gingold <gingold@adacore.com>
8668
8669 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8670
8671 * s-osprim-vms.adb,
8672 a-calend-vms.adb: Remove pragma warning off and add pragma
8673 unreferenced.
8674
8675 2007-12-13 Robert Dewar <dewar@adacore.com>
8676
8677 * impunit.adb: Add entries for missing units
8678
8679 * Makefile.rtl: Add new run-time units.
8680
8681 * Make-lang.in: Update dependencies.
8682
8683 2007-12-13 Bob Duff <duff@adacore.com>
8684
8685 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8686 types, set Can_Use_Internal_Rep appropriately, based on
8687 Always_Compatible_Rep_On_Target.
8688
8689 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8690 Arnaud Charlet <charlet@adacore.com>
8691
8692 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8693 it to the front end and setting the aamp_target environment variable
8694 to the switch's argument to ensure that gnaampbind and gnaamplink will
8695 take the specified library into account.
8696 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8697 target, since the CIL compiler supports an "object" file (.il files).
8698
8699 2007-12-13 Vincent Celier <celier@adacore.com>
8700
8701 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8702 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8703
8704 2007-12-13 Geert Bosch <bosch@adacore.com>
8705
8706 * s-parame-vxworks.adb:
8707 Update comments to reflect usage of this package by Nucleus.
8708
8709 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8710
8711 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8712 spec would break code.
8713
8714 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8715
8716 * system-vxworks-alpha.ads: Removed.
8717
8718 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8719
8720 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8721
8722 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8723
8724 PR ada/34366
8725 * sem_ch3.adb (Designates_T): New function.
8726 (Mentions_T): Factor reusable part of the logic into Designates_T.
8727 Consider non-access parameters and access and non-access result.
8728 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8729 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8730
8731 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8732
8733 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8734
8735 PR ada/34361
8736 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8737 the new implementation of target-specific calls.
8738
8739 2007-12-07 Olivier Hainque <hainque@adacore.com>
8740
8741 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8742 the designated full view, only follow a second level Full_View link
8743 for Non_Limited_Views of from_limited_with references.
8744
8745 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8746
8747 PR ada/15805
8748 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8749 to be initialized with an access to constant object.
8750
8751 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8752 when an access to constant is used to initialize an access
8753 value.
8754
8755 PR ada/21346
8756 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8757
8758 2007-12-07 Olivier Hainque <hainque@adacore.com>
8759
8760 PR ada/34173
8761 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8762 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8763 this is from an alignment clause on the GNAT entity.
8764 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8765 to distinguish the case where we set it from the type's alignment.
8766 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8767 whether this alignment was set from an explicit alignment clause.
8768
8769 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8770
8771 * decl.c (make_packable_type): Revert last change.
8772 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8773 * utils.c (finish_record_type): Retrieve the real name of the type.
8774
8775 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8776
8777 * trans.c (lvalue_required_p): Take base node directly instead
8778 of its parent. Rename second parameter to 'gnu_type'.
8779 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8780 <N_Slice>: Likewise.
8781 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8782 Adjust calls to lvalue_required_p.
8783
8784 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
8785
8786 PR ada/21489
8787 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8788 parameters of an entry call.
8789
8790 2007-12-03 Robert Dewar <dewar@adacore.com>
8791 Samuel Tardieu <sam@rfc1149.net>
8792
8793 PR ada/34287
8794 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8795 of variables declared in a library-level package.
8796
8797 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
8798
8799 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8800 of Empty_String'Unchecked_Access.
8801
8802 * Makefile.in: Add support for sh4-linux.
8803
8804 * system-linux-sh4.ads: New file.
8805
8806 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
8807
8808 PR ada/33722
8809 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8810 and its argument must not be free()ed.
8811
8812 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8813
8814 * decl.c (make_packable_type): Retrieve the real name of the type.
8815 (maybe_pad_type): Simplify similar code.
8816
8817 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
8818
8819 PR ada/15804
8820 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8821 than an identifier is used after "case" in a variant_part.
8822
8823 PR ada/17318
8824 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8825 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8826 attribute name or not depending on the new map.
8827
8828 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8829 returning a string or a type will not be called with improper
8830 arguments.
8831
8832 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8833
8834 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8835
8836 PR ada/32792
8837 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8838 Signal an error when attribute argument is a fixed-point value of
8839 an unknown type.
8840
8841 PR ada/22559
8842 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8843 a derived ordinary fixed point type.
8844
8845 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8846 RM_Size when a Small clause is found.
8847
8848 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8849
8850 PR 34081/C++
8851 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8852 Pass 'false' for the new allocate_struct_function parameter.
8853 * utils.c (build_function_stub): Likewise.
8854
8855 2007-11-25 Richard Guenther <rguenther@suse.de>
8856
8857 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8858 (gnat_poplevel): Likewise.
8859
8860 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8861
8862 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8863 strict alignment, no alignment clause and a known static size, cap
8864 the type alignment to the greatest power of 2 factor of the size.
8865 (gnat_to_gnu_field): If the field has a component clause, is aliased
8866 or of a type with strict alignment, require that its size be equal to
8867 that of the type.
8868 (validate_size): Use the type size as the minimum size for a type with
8869 strict alignment.
8870
8871 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
8872
8873 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8874 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8875 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8876 Use 'Access instead of 'Unchecked_Access in second and third
8877 arguments of pthread_sigmask.
8878
8879 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8880
8881 * decl.c (ceil_alignment): New function.
8882 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8883 (make_packable_type): Likewise.
8884
8885 2007-11-22 Olivier Hainque <hainque@adacore.com>
8886
8887 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8888 to fit in 80 columns.
8889
8890 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
8891
8892 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8893 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8894
8895 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
8896
8897 PR ada/34098
8898 * misc.c (gnat_adjust_rli): Delete.
8899 (gnat_init): Do not initialize the translation code here.
8900 Do not call set_lang_adjust_rli.
8901 * trans.c (init_code_table): Make static.
8902 (gnat_init_stmt_group): Delete.
8903 (gigi): Initialize the translation code entirely here.
8904 Emit debug info for the common types here instead of...
8905 * utils.c (gnat_init_decl_processing): ...here.
8906 * gigi.h (init_code_table): Delete.
8907 (gnat_init_stmt_group): Likewise.
8908
8909 2007-11-16 Olivier Hainque <hainque@adacore.com>
8910
8911 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8912 retrieving an allocator return value from a super-aligned address from
8913 here to ...
8914 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8915 expect a super-aligned address for a fat or thin pointer.
8916
8917 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
8918
8919 * trans.c (call_to_gnu): Always set the source location on the call
8920 expression. If the function returns-by-target, also set it on the
8921 address expression.
8922
8923 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
8924
8925 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8926 sections of non-supported Interix target.
8927
8928 * s-osinte-interix.ads: Removed.
8929
8930 * i-cstrin.ads (chars_ptr): Make it a C convention type.
8931
8932 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
8933
8934 * a-tasatt.adb: Add a comment at the beginning of the package
8935 explaining why in general 'Unchecked_Access must be used instead
8936 of 'Access.
8937
8938 * sem_prag.adb (Process_Convention): Move the test for the
8939 entity on which the Convention pragma applies down to also
8940 forbid pragma Convention on enumeration literals reached
8941 through renamings.
8942
8943 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
8944
8945 * a-tasatt.adb: Revert previous change for this file as it will
8946 generate an error when this package is instantiated from a
8947 local context.
8948
8949 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
8950
8951 * a-tasatt.adb: Type Wrapper should be declared in comment instead
8952 of already declared type Node_Access.
8953 Use 'Access instead of 'Unchecked_Access when applicable. Local
8954 lifetime is the one of the package.
8955 (Set_Value): W is allocated on the heap.
8956
8957 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8958 applicable.
8959 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8960 access type.
8961 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8962 access type.
8963
8964 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8965 applicable.
8966 (elaboration code): Timer_Queue lifetime is the one of the
8967 package.
8968
8969 * tracebak.c (i386 alternative): Remove useless comparaison
8970 which is always false; LOWEST_ADDRESS is 0 and is never greater
8971 than an unsigned integer.
8972
8973 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8974 embedded check for "Ada_Version >= Ada_05".
8975
8976 2007-11-07 Olivier Hainque <hainque@adacore.com>
8977
8978 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8979 craft and expand comment.
8980
8981 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
8982
8983 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8984
8985 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
8986
8987 * misc.c (gnat_handle_option): Replace call to abort with
8988 call to gcc_unreachable.
8989 (gnat_init): Likewise.
8990 (gnat_expand_expr): Likewise.
8991 (fp_prec_to_size): Likewise.
8992 (fp_size_to_prec): Likewise.
8993
8994 2007-10-23 Richard Guenther <rguenther@suse.de>
8995
8996 PR bootstrap/33608
8997 * tracebak.c: #undef abort after including system.h.
8998
8999 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
9000
9001 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
9002 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
9003 for win32 targets.
9004 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
9005
9006 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
9007
9008 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
9009 Set the protection status of the guard page based on the value of On.
9010
9011 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
9012
9013 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9014 (Exit_Task): Pass False to Hide_Yellow_Zone.
9015
9016 2007-10-15 Robert Dewar <dewar@adacore.com>
9017
9018 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9019 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9020 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
9021 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
9022 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
9023 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
9024 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
9025 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
9026 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
9027 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9028 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
9029 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
9030 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
9031 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
9032 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
9033 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
9034 Minor reformatting.
9035 Add Unreferenced and Warnings (Off) pragmas for cases of
9036 variables modified calls where they are IN OUT or OUT parameters and
9037 the resulting values are not subsequently referenced. In a few cases,
9038 we also remove redundant code found by the new warnings.
9039
9040 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
9041 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
9042 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
9043 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
9044 warning controlled by -gnatw.o that warns on cases of out parameter
9045 values being ignored.
9046
9047 2007-10-15 Geert Bosch <bosch@adacore.com>
9048
9049 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
9050
9051 * expect.c: Initial port to arm-mentor-nucleus.
9052 Use kill for __gnat_kill() on VMS.
9053
9054 2007-10-15 Emmanuel Briot <briot@adacore.com>
9055
9056 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
9057 value.
9058 (Xref_Record): Change type for Line, since in the case of a reference to
9059 a predefined entity (as happens for array index types), the line is set
9060 to 0.
9061 Add support for parsing multiple array index types info, or
9062 multiple inherited interfaces info. This information cannot be stored
9063 in Xref_Entity_Record, which only supports a single instance of Tref_*,
9064 and is therefore stored in the list of references instead. It has a
9065 special treatement later on in tools that use this information.
9066
9067 2007-10-15 Tristan Gingold <gingold@adacore.com>
9068
9069 * debug.adb: Document use of -gnatd.a and -gnatd.I
9070
9071 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
9072
9073 2007-10-15 Javier Miranda <miranda@adacore.com>
9074
9075 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
9076 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
9077 care of access to class-wide interface types plus removal of bizarre
9078 conversion of tagged object to access type (reported by Gary
9079 Dismukes). After this patch there is no need to perform any
9080 additional management on these nodes in Expand_Interface_Actuals.
9081
9082 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
9083 that handles use of 'Access and 'Unchecked_Access applied to
9084 actuals covering interface types. Such code is now
9085 centralized in Expand_N_Attribute_Reference.
9086
9087 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9088
9089 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
9090 of tagged types whose ultimate ancestor is a CPP type.
9091 (Freeze_Array_Type): For a packed array type, generate an initialization
9092 procedure if the type is public, to handle properly a client that
9093 specifies Normalize_Scalars.
9094
9095 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9096
9097 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
9098 inside a generic body, retrieve the full view of the entry family
9099 discrete subtype if available.
9100
9101 2007-10-15 Thomas Quinot <quinot@adacore.com>
9102
9103 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
9104 attempt to generate stubs for hidden primitive operations.
9105
9106 2007-10-15 Vincent Celier <celier@adacore.com>
9107
9108 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
9109 returning None, used when there is no platform specific body for
9110 MLib.Tgt.Specific.
9111
9112 2007-10-15 Bob Duff <duff@adacore.com>
9113
9114 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
9115 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
9116 the generic Heap_Sort_G, in order to avoid trampolines.
9117
9118 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
9119 Jose Ruiz <ruiz@adacore.com>
9120
9121 * vx_stack_info.c: New file.
9122
9123 * i-forbla-unimplemented.ads: New file.
9124
9125 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
9126 for unsupported configurations; use it on VMS targets instead of the
9127 real one.
9128 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
9129 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
9130 used by VxWorks targets to have access to task-specific data and be
9131 able to extract the stack boundaries for stack checking.
9132 Use system-vms-ia64.ads on ivms.
9133
9134 * Make-lang.in: Update dependencies.
9135
9136 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
9137 (vx_stack_info.c).
9138
9139 2007-10-15 Vincent Celier <celier@adacore.com>
9140
9141 * snames.adb, snames.ads: Add new standard name runtime_library_dir
9142
9143 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
9144
9145 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
9146
9147 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
9148 the source is unknown.
9149
9150 * prj-ext.adb: Spelling error fix
9151
9152 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
9153 95 reserved word in its name.
9154 (Process_Project_Level_Array_Attributes): Process new attribute
9155 Runtime_Library_Dir.
9156
9157 * prj-part.adb (Parse_Single_Project): Do not check the name of the
9158 config project against the user project names.
9159
9160 * prj-proc.adb (Expression): In multi-language mode, indexes that do
9161 not include a dot are always case insensitive.
9162 (Process_Declarative_Items): Ditto
9163 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
9164 detected.
9165
9166 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
9167 True, compare both indexes in lower case.
9168
9169 2007-10-15 Robert Dewar <dewar@adacore.com>
9170
9171 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9172
9173 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9174
9175 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9176 association for an access component, add an association with null as
9177 the expression. Remove testing for array subtypes and the setting in
9178 that case of Ctyp to the array component type, which prevented proper
9179 inclusion of an association for null-initialized arrays. Collapse
9180 condition that tests for array subtypes into just a test of
9181 Is_Partially_Initialized_Type (which already covers arrays anyway).
9182
9183 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9184
9185 * sem_ch12.adb: Minor code reformatting.
9186 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9187 find the parent package which may have been hidden by local
9188 declarations.
9189
9190 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9191
9192 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9193 flag of derived concurrent types, taking into account the flag setting
9194 on the parent subtype and any new set of discriminants.
9195
9196 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9197
9198 * sem_ch4.adb: Minor code and comment reformatting.
9199 (Analyze_Allocator): When the designated type of an unconstrained
9200 allocator is a record with unknown discriminants or an array with
9201 unknown range bounds, emit a detailed error message depending on the
9202 compilation mode and whether the designated type is limited.
9203
9204 2007-10-15 Tristan Gingold <gingold@adacore.com>
9205
9206 * system-vms-ia64.ads: New file.
9207
9208 * system-vms_64.ads: Minor comment fix.
9209
9210 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9211
9212 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9213 body generated for a function with a controlling result that is a null
9214 extension, discard the generated body in favor of the current explicit
9215 one.
9216
9217 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9218
9219 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9220 examining its original form, to handle properly operator calls that
9221 have been rewritten.
9222
9223 2007-10-15 Olivier Hainque <hainque@adacore.com>
9224
9225 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9226 instead of a procedure value in each traceback entry.
9227
9228 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9229 instead of procedure value to TBK$SYMBOLIZE.
9230
9231 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9232 field.
9233 (TB_Entry_For): Account for the PV/FP renaming.
9234
9235 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9236 add comment.
9237 (Null_TB_Entry): Account for change of component name.
9238 (PV_For): Rename as FP_For.
9239
9240 2007-10-15 Tristan Gingold <gingold@adacore.com>
9241
9242 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9243 This optimize assignment to over-aligned record.
9244
9245 2007-10-15 Emmanuel Briot <briot@adacore.com>
9246
9247 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9248 interfaces.
9249
9250 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9251 type, for dispatching calls.
9252
9253 2007-10-15 Vincent Celier <celier@adacore.com>
9254 Robert Dewar <dewar@adacore.com>
9255
9256 * gnat_ugn.texi: Add documentation for switches --version and --help
9257 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9258 gnatxref, gnatfind, gnatls, and gnatclean.
9259 Document -gnatw.o.
9260 Mention attribute Excluded_Source_Dirs
9261 Replace obsolescent attribute Locally_Removed_Files with attribute
9262 Excluded_Source_Files.
9263 Improve documentation of -u (gnatbind)
9264 Document how to do reliable stack checking for the environmental task
9265 on iVMS.
9266
9267 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9268 Document attribute Excluded_Source_Files and indicate that attribute
9269 Locally_Removed_Files is obsolescent.
9270
9271 2007-10-15 Thomas Quinot <quinot@adacore.com>
9272
9273 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9274
9275 * gen-soccon.c:
9276 Update documentation to note that OpenVMS 8.3 or later must be used
9277 to generate g-soccon-vms.ads.
9278
9279 * atree.adb: Add ??? comment
9280
9281 * exp_util.adb: Minor reformatting.
9282 Add ??? comment in Kill_Dead_Code.
9283
9284 2007-10-15 Robert Dewar <dewar@adacore.com>
9285
9286 * errout.ads: Comment clarification
9287
9288 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9289 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9290
9291 * lib.ads: Comment update
9292
9293 * init.c: Minor reformatting.
9294
9295 * sem_attr.adb: Minor formatting
9296
9297 * osint-b.ads: Minor reformatting
9298
9299 * sem_ch9.adb: Implement -gnatd.I switch
9300
9301 * g-comlin.adb: (Start): Fix handling of empty command line.
9302
9303 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9304 even when -rules follows the -cargs section.
9305
9306 2007-10-08 Ollie Wild <aaw@google.com>
9307
9308 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9309 gnat_return_tree.
9310 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9311 gnat_return_tree.
9312 (gnat_eh_runtime_type): Removed.
9313 (gnat_return_tree): New function.
9314
9315 2007-10-08 Ben Elliston <bje@au.ibm.com>
9316
9317 PR ada/33454
9318 Revert:
9319 2007-08-31 Ben Elliston <bje@au.ibm.com>
9320
9321 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9322 when compiling for powerpc64-*-linux.
9323 * system-linux-ppc64.ads: New file.
9324
9325 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9326
9327 Mapped location support
9328 * back_end.adb (Call_Back_End): Pass information about source
9329 files instead of units to gigi.
9330 * gigi.h (struct File_Info_Type): New.
9331 (gigi): Rename and change type of number_units parameter, change
9332 type of file_info_ptr parameter.
9333 * trans.c (number_files): New global variable.
9334 (gigi): Rename and change type of number_units parameter, change
9335 type of file_info_ptr parameter.
9336 If mapped location support is enabled, create the isomorphic mapping
9337 between source files and line maps.
9338 (Sloc_to_locus): If mapped location support is enabled, translate
9339 source location into mapped location.
9340 (annotate_with_node): Rename into set_expr_location_from_node.
9341 Call set_expr_location instead of annotate_with_locus.
9342 (Pragma_to_gnu): Adjust for above change.
9343 (Loop_Statement_to_gnu): Likewise.
9344 (call_to_gnu): Likewise.
9345 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9346 (gnat_to_gnu): Likewise.
9347 (add_stmt_with_node): Likewise.
9348 (add_cleanup): Likewise.
9349 * utils.c (gnat_init_decl_processing): Do not set input_line.
9350
9351 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9352
9353 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9354 (Applicable_Use): Emit a warning when a package tries to use itself.
9355 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9356 is already in use or the package where it is declared is in use or is
9357 declared in the current package.
9358 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9359
9360 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9361 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9362 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9363
9364 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9365
9366 * a-calend-vms.adb, a-calend.adb:
9367 Add a section on leap seconds control along with two entities used to
9368 enable and disable leap seconds support. The array Leap_Second_Times is
9369 now constant and contains hard time values pre-generated. Remove
9370 all elaboration code used to populate the table of leap seconds.
9371
9372 * bindgen.adb:
9373 Add entity Leap_Seconds_Support to the list of global run-time variables
9374 along with a comment on its usage and values.
9375 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9376 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9377 or one (enabled) depending on the presence of binder switch "-y".
9378 (Gen_Adainit_C): Add code to generate the declaration of external int
9379 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9380 (enabled) depending on the presence of binder switch "-y".
9381
9382 * init.c: Add __gl_leap_seconds_support to the list of global values
9383 computed by the binder.
9384
9385 2007-09-26 Jerome Guitton <guitton@adacore.com>
9386
9387 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9388 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9389 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9390 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9391
9392 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9393
9394 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9395 function which can be called by the debugger to interrupt the tasks of
9396 an Ada application asynchronously, as needed on VxWorks.
9397 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9398
9399 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9400 renamed from Stop_All_Tasks. Update comments.
9401 (Stop_All_tasks): New function declaration.
9402
9403 2007-09-26 Olivier Hainque <hainque@adacore.com>
9404
9405 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9406 #include <utime.h> and #define GCC_RESOURCE_H before
9407 #include <sys/wait.h>.
9408 Add more protections in __gnat_translate_vms.
9409
9410 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9411 #include <sys/wait.h>.
9412
9413 2007-09-26 Thomas Quinot <quinot@adacore.com>
9414 Sergey Rybin <rybin@adacore.com>
9415
9416 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9417
9418 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9419 where it belongs.
9420
9421 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9422
9423 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9424 where it belongs.
9425
9426 * sem_dist.ads: Minor comment fix
9427
9428 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9429
9430 2007-09-26 Javier Miranda <miranda@adacore.com>
9431 Eric Botcazou <ebotcazou@adacore.com>
9432
9433 * a-tags.adb:
9434 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9435 indirection added to the HT_Link component of the TSD. This is required
9436 to statically allocate the TSD.
9437
9438 * a-tags.ads:
9439 Minor reordering of the declarations in the private part. Required to
9440 add a level of indirection to the contents of the TSD component HT_Link.
9441 This is required to statically allocate the TSD.
9442
9443 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9444 Is_Statically_Allocated set from constant objects.
9445 Do not make exported constants created by the compiler volatile.
9446 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9447 as read-only.
9448
9449 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9450 before returning them.
9451
9452 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9453 public part of the package.
9454 (Make_DT): Move HT_Link component out of the TSD record. For this
9455 purpose Make_DT now declares a separate object that stores the
9456 HT_Link value, and initializes the TSD component with the address
9457 of this new object. The addition of this level of indirection is
9458 required to statically allocate the TSD because the TSD cannot
9459 have variable components.
9460 (Expand_Interface_Conversion): Improve the expanded code.
9461 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9462
9463 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9464 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9465 if we are building static dispatch tables then we must not generate
9466 extra code to register the primitive because the dispatch table will
9467 be built at the end of the library package; otherwise we notify that
9468 we cannot build the static dispatch table.
9469
9470 2007-09-26 Robert Dewar <dewar@adacore.com>
9471
9472 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9473 overlays.
9474
9475 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9476 (Analyze_Record_Representation_Clause): Suppress junk warning for
9477 missing component clause.
9478 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9479 tests for controlled type overlay to composites with controlled
9480 components.
9481 (Analyze_Record_Representation_Clause): Add reference for component name
9482
9483 2007-09-26 Javier Miranda <miranda@adacore.com>
9484 Gary Dismukes <dismukes@adacore.com>
9485
9486 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9487 for thunks associated with interface types.
9488
9489 * einfo.ads: Improve documentatation of Is_Internal
9490 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9491 associated with interface types.
9492 Extensive comment fixes regarding flags that appear in all entities. The
9493 documentation is now consistent for all such flags (there were a number
9494 of errors in the documentation in this regard).
9495
9496 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9497
9498 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9499 of these procedures are passed a function call that already has
9500 build-in-place actuals (testing new flag
9501 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9502 the case where processing continues.
9503 (Expand_Call): If the call is generated from a thunk body then we
9504 propagate the extra actuals associated with the accessibility
9505 level of the access type actuals.
9506
9507 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9508 of each extra formal of a protected operation to reference the
9509 corresponding extra formal of the subprogram denoted by the
9510 operation's Protected_Body_Subprogram.
9511
9512 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9513 N_Function_Call nodes.
9514
9515 2007-09-26 Robert Dewar <dewar@adacore.com>
9516
9517 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9518
9519 * debug.adb: Add d.s flag.
9520
9521 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9522
9523 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9524 debug variable so that it won't be initialized when pragma
9525 Initialize_Scalars is in effect.
9526
9527 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9528
9529 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9530 initialization of a full view. This is moved to
9531 Analyze_Package_Specification.
9532
9533 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9534 preelaborable initialization of a full view in entity loop.
9535 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9536 its child units are use-visible only if they are visible child units.
9537
9538 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9539 whether an expression can be used within a type declaration that
9540 requires preelaborable init.
9541 (Check_Components): Replace inline code that does partial checking for
9542 preelaborable default expressions with call to
9543 Is_Preelaborable_Expression.
9544 (Has_Preelaborable_Initialization): In the case of a generic actual
9545 subtype, (that is, Is_Generic_Actual is True), return the result of
9546 applying Has_Preelaborable_Initialization to the generic actual's base
9547 type.
9548
9549 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9550
9551 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9552 call to Jan_1_Day _Of_Week to optimize its performance.
9553 (Is_Leap): Move the routine to the scope of Week_In_Year.
9554 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9555 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9556 avoids calling Time_Of and Split, thus making it more efficent.
9557 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9558
9559 * g-calend.ads (Week_In_Year): Change comment to reflect new
9560 implementation.
9561
9562 2007-09-26 Emmanuel Briot <briot@adacore.com>
9563
9564 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9565 Command_Line): New types
9566 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9567 support for defining how switches can be grouped on a command line (as
9568 is the case for -gnatw... for GNAT), and how simple switches can be
9569 used as aliases for more complex switches (-gnatwa is same as
9570 -gnatwbcef...)
9571 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9572 (Start, Current_*): New subprograms
9573 Added support for parsing an array of strings in addition to the real
9574 command line.
9575 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9576 be moved from the body to the private part of the spec.
9577 (*): All subprograms now have an extra parameter with default value to
9578 specify which parser should be used. For backward compatibility, it
9579 defaults to parsing the command line of the application. They were also
9580 modified to properly handle cases where each of the argument does not
9581 start at index 1 (which is always true for Ada.Command_Line, but not
9582 when processing any Argument_List).
9583 (Free): New subprogram
9584 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9585 Argument): New subprograms
9586 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9587 special characters like ':', '=',... are now handled in a single place,
9588 which makes the code more extensible eventually.
9589 (Getopt, Full_Switch): When the switch was returned as part of the
9590 special character '*', make sure it is prepended by the switch character
9591 ('-' in general), so that the application knows whether "foo" or "-foo"
9592 was specified on the command line.
9593
9594 2007-09-26 Florian Villoing <villoing@adacore.com>
9595
9596 * g-dirope.adb (Remove_Dir): In case we are removing directories
9597 recursively, make sure that if an exception is raised during the
9598 processing, the current working directory is reset to its initial
9599 value before propagating the exception.
9600
9601 2007-09-26 Vincent Celier <celier@adacore.com>
9602
9603 * gnatbind.adb: If there are several ALI files specified and there is
9604 a main program to bind, the first ALI is expected to contain the main
9605 subprogram and the names of the binder generated files will be derived
9606 from the first ALI file name.
9607 (Gnatbind): Fix insertion character in invocation of Error_Msg
9608
9609 2007-09-26 Vincent Celier <celier@adacore.com>
9610
9611 * gnatcmd.adb (Check_Files): Do not include sources that have been
9612 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9613
9614 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9615
9616 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9617 information about each of its index types, following the type
9618 reference for its component type.
9619
9620 2007-09-26 Vincent Celier <celier@adacore.com>
9621
9622 * make.adb: (Kill): New procedure (__gnat_kill imported)
9623 (Running_Compile, Outstanding_Compiles): Global variables that
9624 were previously local to procedure Compile_Sources.
9625 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9626 compilation processes.
9627
9628 (Gnatmake): If project files are used, create the mapping of all the
9629 sources, so that the correct paths will be found.
9630
9631 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9632
9633 2007-09-26 Vincent Celier <celier@adacore.com>
9634
9635 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9636
9637 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9638 Replace components Compiler_Min_Options and Binder_Min_Options with
9639 Compiler_Required_Switches and Binder_Required_Switches in record
9640 Language_Config.
9641 Remove components Default_Language and Config in Project_Tree_Data,
9642 no longer used.
9643
9644 * prj-attr.adb: New attributes Required_Switches (<language>) in
9645 packages Compiler and Binder.
9646
9647 * prj-nmsc.adb: Major rewrite of the processing of configuration
9648 attributes for gprbuild. No impact on GNAT tools.
9649
9650 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9651 process configuration attributes: this is done in Prj.Nmsc.Check.
9652 (Recursive_Process): Make a full copy of packages inherited from project
9653 being extended, instead of a shallow copy.
9654 (Process_Project_Tree_Phase_1): New procedure
9655 (Process_Project_Tree_Phase_1): New procedure
9656 (Process): Implementation now uses the two new procedures
9657
9658 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9659 from the project config, not the tree config that no longer exists.
9660
9661 2007-09-26 Vincent Celier <celier@adacore.com>
9662
9663 * Make-lang.in: Update dependencies..
9664
9665 2007-09-26 Vincent Celier <celier@adacore.com>
9666
9667 * osint.adb, osint.ads: Minor reformatting
9668
9669 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9670
9671 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9672
9673 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9674 message to cite use of <> in aggregate component associations rather
9675 than wrongly indicating use of limited aggregates.
9676
9677 2007-09-26 Robert Dewar <dewar@adacore.com>
9678
9679 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9680 Address_Taken.
9681
9682 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9683
9684 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9685 ancestor of the derived type, the operations are inherited from the
9686 primary dispatch table of the parent.
9687 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9688 when the context is an explicit type conversion.
9689
9690 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9691
9692 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9693 rule for qualified expressions properly, to detect improper conversions
9694 and resolve some cases of overloading.
9695
9696 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9697
9698 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9699 proper kind of reference to the primitive operation, for better source
9700 navigation.
9701 (Valid_Conversion): A tagged conversion is legal if both operands are
9702 tagged.
9703
9704 2007-09-26 Robert Dewar <dewar@adacore.com>
9705
9706 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9707 packages.
9708
9709 2007-09-26 Vincent Celier <celier@adacore.com>
9710
9711 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9712
9713 2007-09-26 Robert Dewar <dewar@adacore.com>
9714
9715 * s-wchstw.adb: provide messages for run time unit exceptions
9716
9717 * a-witeio.adb: Minor reformatting
9718
9719 * exp_ch13.adb: Minor reformatting
9720
9721 2007-09-26 Sergey Rybin <rybin@adacore.com>
9722
9723 * vms_data.ads: Revise gnatmetric qualifiers.
9724 Add qualified for the new gnatbind option '-y'
9725
9726 * gnat_ugn.texi: Revise the gnatmetric section.
9727 Add entry for new gnatbind option '-y'.
9728
9729 * gnat_rm.texi: Minor spelling correction.
9730 Document restriction on overlaying controlled types
9731
9732 2007-09-26 Vincent Celier <celier@adacore.com>
9733
9734 * makegpr.adb (Link_Executables): Do not fail when the root project has
9735 no sources, but is an extending project.
9736
9737 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9738
9739 * trans.c: Fix misplaced #define.
9740
9741 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9742
9743 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9744 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9745
9746 2007-09-21 Olivier Hainque <hainque@adacore.com>
9747
9748 * utils.c (type_for_nonaliased_component_p): Return false for
9749 all AGGREGATE_TYPEs.
9750
9751 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9752
9753 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9754 object covered by 13.3(19) volatile.
9755
9756 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9757
9758 PR ada/26797
9759 PR ada/32407
9760 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9761 in the special VIEW_CONVERT_EXPR case.
9762
9763 2007-09-12 Robert Dewar <dewar@adacore.com>
9764
9765 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9766
9767 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9768 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9769 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9770 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9771 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9772 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9773 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9774 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9775 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9776 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9777 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9778 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9779 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9780 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9781 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9782 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9783 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9784 pragma Compiler_Unit and adds it to relevant library units.
9785
9786 2007-09-12 Ed Schonberg <schonberg@adacore.com>
9787
9788 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9789 a box need not correspond to any component.
9790
9791 2007-09-12 Robert Dewar <dewar@adacore.com>
9792
9793 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9794 the tasking version of the Ada run time when foreign threads are
9795 present and there are no explicit Ada tasks or tasking constructs.
9796
9797 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9798
9799 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9800
9801 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9802 the usage of switch -y.
9803
9804 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9805 when switch -y is present.
9806
9807 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9808 leap seconds in Ada.Calendar and its children.
9809
9810 2007-09-12 Jose Ruiz <ruiz@adacore.com>
9811
9812 * a-extiti.ads (Timer): The discriminant is a "not null access
9813 constant" in the Reference Manual.
9814 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9815
9816 2007-09-12 Robert Dewar <dewar@adacore.com>
9817
9818 * a-swuwha.adb: Remove junk RM header
9819
9820 2007-09-12 Vincent Celier <celier@adacore.com>
9821
9822 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9823 indicator
9824
9825 * g-bytswa.ads: Minor reformatting
9826
9827 2007-09-12 Thomas Quinot <quinot@adacore.com>
9828
9829 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9830 Add new constant Thread_Blocking_IO, always True by default, set False
9831 on a per-runtime basis.
9832 (Need_Netdb_Buffer): New constant.
9833
9834 2007-09-12 Arnaud Charlet <charlet@adacore.com>
9835
9836 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9837 Added renames for corresponding functions in System.Partition_Interface.
9838
9839 2007-09-12 Doug Rupp <rupp@adacore.com>
9840
9841 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9842 longer needed.
9843
9844 * s-crtl-vms64.ads: Removed.
9845
9846 2007-09-12 Olivier Hainque <hainque@adacore.com>
9847
9848 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9849 with discriminant constraints, generalize the code for BIT_FIELDs
9850 to PACKED fields of constant size and propagate DECL_PACKED.
9851
9852 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9853
9854 * decl.c (array_type_has_nonaliased_component): New predicate.
9855 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9856 set the TYPE_NONALIASED_COMPONENT flag on the type.
9857 <E_Array_Subtype>: Likewise.
9858 * gigi.h (type_for_nonaliased_component_p): Declare.
9859 * utils.c (type_for_nonaliased_component_p): New predicate.
9860 (create_field_decl): Invoke the above predicate to set the
9861 DECL_NONADDRESSABLE_P flag on the field.
9862
9863 2007-09-11 Javier Miranda <miranda@adacore.com>
9864
9865 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9866 in library level record type entities if we are generating statically
9867 allocated dispatch tables.
9868
9869 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9870 importing/exporting the _tag declaration by new code
9871 importing/exporting the dispatch table wrapper. This change allows us
9872 to statically allocate of the TSD.
9873 (Make_DT.Export_DT): New procedure.
9874 (Build_Static_DT): New function.
9875 (Has_DT): New function.
9876
9877 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9878 True_Constant and Current_Value. Required to statically
9879 allocate the dispatch tables.
9880 (Check_Allocator): Make function iterative instead of recursive.
9881 Also return inner allocator node, when present, so that we do not have
9882 to look for that node again in the caller.
9883
9884 2007-09-11 Jan Hubicka <jh@suse.cz>
9885
9886 * misc.c (gnat_expand_body): Kill.
9887 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9888
9889 2007-09-10 Robert Dewar <dewar@adacore.com>
9890
9891 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9892 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9893 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9894 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9895 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9896 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9897 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9898 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9899 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9900 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9901 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9902 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9903 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9904 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9905 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9906 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9907 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9908 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9909 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9910 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9911 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9912 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9913 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9914 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9915 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9916 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9917 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9918 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9919 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9920 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9921 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9922 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9923 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9924 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9925 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9926 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9927 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9928 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9929 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9930 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9931 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9932 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9933 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9934 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9935 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9936 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9937 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9938 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9939 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9940 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9941 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9942 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9943 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9944 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9945 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9946 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9947 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9948 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9949 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9950 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9951 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9952 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9953 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9954 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9955 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9956 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9957 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9958 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9959 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9960 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9961 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9962 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9963 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9964 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9965 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9966 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9967 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9968 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9969 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9970 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9971 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9972 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9973 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9974
9975 2007-09-10 Emmanuel Briot <briot@adacore.com>
9976
9977 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9978 classes ("[]").
9979
9980 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
9981
9982 * adaint.c (__gnat_translate_vms): new function.
9983
9984 2007-09-10 Gary Dismukes <dismukes@adacore.com>
9985 Thomas Quinot <quinot@adacore.com>
9986
9987 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9988 create an abstract subprogram in the case of 'Input. For 'Output we now
9989 create a real spec/body when the type is abstract, since it can
9990 potentially be called.
9991 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9992 body for 'Output when the type is abstract (only the creation of the
9993 body for 'Input is excluded when the type is abstract).
9994 (Stream_Operation_OK): Add an additional condition in the return
9995 statement, so that False will be returned for TTS_Stream_Input if the
9996 associated tagged type is an abstract extension. Add comments for
9997 return statement.
9998 (Expand_N_Object_Declaration): For the case of a shared passive
9999 variable, insert init proc call only after the shared variable
10000 procedures have been processed, because the IP call needs to undergo
10001 shared passive variable reference expansion, which requires these
10002 procedures to be available (and elaborated).
10003
10004 2007-09-10 Vincent Celier <celier@adacore.com>
10005
10006 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
10007 parameter Runtime_Project.
10008
10009 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10010
10011 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
10012 given a box association, the type of the component is discriminated,
10013 and the value of the discriminant is the discriminant of the enclosing
10014 type, retrieve its value from the aggregate itself, where it must have
10015 been supplied.
10016
10017 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
10018 to remove other spurious ambiguities on arithmetic operations involving
10019 literals and addresses, on systems where Address is a visible integer
10020 type, when the operator is called in functional notation.
10021 (Try_Primitive_Operation): Within an instance, a call in prefixed form
10022 is legal when the types match, even if the operation is currently
10023 hidden.
10024
10025 2007-09-10 Ed Schonberg <schonberg@adacore.com>
10026
10027 * sem_ch12.adb (Build_Local_Package): A formal package with no
10028 associations is legal if all formals have defaults. It is not
10029 equivalent to a formal declared with a box.
10030
10031 2007-09-10 Sergey Rybin <rybin@adacore.com>
10032
10033 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
10034
10035 2007-09-10 Sergey Rybin <rybin@adacore.com>
10036
10037 * gnat_ugn.texi: Add description of the new '-lratio' option
10038 Update 7.3.1 section about availability of the feature.
10039
10040 2007-09-10 Thomas Quinot <quinot@adacore.com>
10041
10042 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
10043 inserted node.
10044
10045 2007-09-10 Olivier Hainque <hainque@adacore.com>
10046
10047 * Makefile.in: (mips-irix section): Activate build of libgmem.
10048
10049 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10050
10051 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
10052 x87 registers.
10053
10054 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
10055
10056 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
10057 a debug renaming declaration specially.
10058
10059 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10060
10061 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
10062 which a constant renaming is treated as a normal object declaration.
10063 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
10064 the N_Indexed_Component case.
10065 <N_Indexed_Component>: Fall through to above case.
10066 <N_Object_Renaming_Declaration>: Return true for all composite types.
10067
10068 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
10069
10070 * decl.c (make_packable_type): If the new type has been given BLKmode,
10071 try again to get an integral mode for it.
10072
10073 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
10074
10075 Re-apply accidentally reverted change:
10076
10077 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10078
10079 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
10080 get_action_description_for): Replace _Unwind_Word with _uleb128_t
10081 and _Unwind_SWord with _sleb128_t.
10082
10083 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
10084
10085 * trans.c (convert_with_check): Update call to real_2expN.
10086
10087 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
10088
10089 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
10090 * utils.c (end_subprog_body): Likewise.
10091
10092 2007-09-03 Nick Clifton <nickc@redhat.com>
10093
10094 * Make-lang.in: Change copyright header to refer to version 3 of
10095 the GNU General Public License and to point readers at the
10096 COPYING3 file and the FSF's license web page.
10097 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
10098 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
10099 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
10100 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
10101 Likewise.
10102
10103 2007-08-31 Vincent Celier <celier@adacore.com>
10104
10105 PR ada/4720
10106
10107 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
10108 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
10109 (Check_Version_And_Help): New procedure in package Switch to process
10110 switches --version and --help.
10111 Use Check_Version_And_Help in GNAT tools
10112
10113 * make.adb: Ditto.
10114 (Compile_Sources): Make sure that sources that are "excluded" are not
10115 compiled.
10116 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
10117 project file is used.
10118 (Version_Switch): Remove, moved to Switch
10119 (Help_Switch): Remove, moved to Switch
10120 (Display_Version): Remove, moved to Switch
10121
10122 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
10123 package Switch to process switches --version and --help.
10124 (Display_Version): New procedure
10125
10126 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
10127
10128 2007-08-31 Javier Miranda <miranda@adacore.com>
10129
10130 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
10131 internal tags.
10132
10133 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10134
10135 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
10136 (Mark_Non_Null): If the node for which we just generated an access check
10137 is a reference to an *in* parameter and the reference appears in the
10138 declarative part of a subprogram body, mark the node as known non null.
10139
10140 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10141
10142 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
10143 structure of E_Exception to reflect the new flag.
10144 (Is_Raised, Set_Is_Raised): New inlined routines.
10145 Update the usage of available flag to reflect the addition of Is_Raised.
10146 (Is_Raised, Set_Is_Raised): Bodies of new routines.
10147 (Write_Entity_Flags): Write the status of flag Is_Raised.
10148 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
10149 spurious ambiguities when integer literals appear in the context of an
10150 address type that is a visible integer type.
10151
10152 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
10153 exceptions never being raised.
10154 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
10155 explicitly raised.
10156
10157 2007-08-31 Javier Miranda <miranda@adacore.com>
10158
10159 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
10160 statement when compiling under restriction No_Exceptions_Proparation.
10161
10162 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10163
10164 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
10165 initialization aggregate for the type, generate itype references for
10166 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
10167
10168 2007-08-31 Gary Dismukes <dismukes@adacore.com>
10169
10170 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10171 library-level package renaming, pass the declaration associated with
10172 the renaming's special debug variable to Qualify_Entity_Names to ensure
10173 that its encoded name is properly qualified.
10174
10175 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10176 occurring in the list of entities to qualify, and do not attempt to
10177 traverse an entity list in that case. Variables associated with
10178 ` library-level package renamings can now occur in the table.
10179
10180 * exp_dbug.ads: Revise documentation of the encoding for renaming
10181 declarations.
10182
10183 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10184
10185 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10186 access type points to an unconstrained array.
10187
10188 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10189
10190 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10191 conversion.
10192
10193 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10194 simple redundant qualifications. The check is performed whenever the
10195 expression is a non-overloaded identifier.
10196 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10197 to include loop parameters.
10198 (Valid_Conversion): Avoid generation of spurious error message.
10199
10200 2007-08-31 Bob Duff <duff@adacore.com>
10201
10202 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10203 concatenations of string literals into a single literal, in order to
10204 avoid very deep recursion in the front end, which was causing stack
10205 overflow.
10206
10207 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10208 string, and the right operand is a string literal (the case of "" &
10209 "..."), optimize by avoiding copying the right operand -- just use the
10210 value of the right operand directly.
10211
10212 * stringt.adb (Store_String_Chars): Optimize by growing the
10213 String_Chars table all at once, rather than appending characters one by
10214 one.
10215 (Write_String_Table_Entry): If the string to be printed is very long,
10216 just print the first few characters, followed by the length. Otherwise,
10217 doing "pn(n)" in the debugger can take an extremely long time.
10218
10219 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10220 Store_String_Char with Store_String_Chars.
10221
10222 2007-08-31 Vincent Celier <celier@adacore.com>
10223
10224 * prj-attr.adb: Add new attribute Excluded_Source_Files
10225
10226 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10227 Locally_Removed_Files.
10228
10229 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10230
10231 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10232
10233 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10234 clauses of subunits, ignore limited_with_clauses that are illegal and
10235 have not been fully analyzed.
10236
10237 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10238
10239 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10240 flag, for effiency. It is called when analyzing arithmetic operators
10241 and also for actuals in calls that are universal_integers. The flag is
10242 set for the predefined type address, and for any type or subtype
10243 derived from it.
10244
10245 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10246 Universal_Integer, when the formal is a descendent of address and the
10247 call appears in user code.
10248 (Analyze_Selected_Component): if the prefix is a private extension, the
10249 tag component is visible.
10250
10251 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10252 entity flag.
10253
10254 2007-08-31 Robert Dewar <dewar@adacore.com>
10255
10256 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10257 sensitive file name systems to avoid unexpected mismatch in Vista.
10258
10259 2007-08-31 Vincent Celier <celier@adacore.com>
10260
10261 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10262
10263 2007-08-31 Vincent Celier <celier@adacore.com>
10264
10265 * symbols-vms.adb (Initialize): Read symbol files with continuation
10266 lines
10267 (Finalize): If symbol is long, split the line
10268
10269 2007-08-31 Vincent Celier <celier@adacore.com>
10270
10271 * fmap.ads: Minor comment updates
10272
10273 2007-08-31 GNAT Script <nobody@adacore.com>
10274
10275 * Make-lang.in: Makefile automatically updated
10276
10277 2007-08-31 Bob Duff <duff@adacore.com>
10278
10279 * sinfo.ads: Minor comment fix.
10280
10281 2007-08-31 Thomas Quinot <quinot@adacore.com>
10282
10283 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10284 with implementation.
10285 Documentation cleanup only.
10286
10287 2007-08-31 Sergey Rybin <rybin@adacore.com>
10288
10289 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10290 gnatpp '--separate-stmt-name' option.
10291 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10292 option.
10293
10294 * gnat_ugn.texi: Add description for the new gnatpp
10295 '--separate-stmt-name' and '--use-on-new-line' options.
10296
10297 2007-08-31 Ben Elliston <bje@au.ibm.com>
10298
10299 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10300 when compiling for powerpc64-*-linux.
10301 * system-linux-ppc64.ads: New file.
10302
10303 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10304
10305 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10306 NetBSD.
10307
10308 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10309
10310 * misc.c (gnat_type_max_size): Constify.
10311
10312 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10313
10314 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10315 associated with Standard_Debug_Renaming_Type, to be used as the type of
10316 the special variables whose names provide debugger encodings for
10317 renaming declarations.
10318
10319 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10320 (Set_Debug_Renaming_Link): Change to set Node25.
10321 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10322 (Write_Field25_Name): Add case for E_Variable to output
10323 "Debug_Renaming_Link".
10324 (Write_Field23_Name): Correct the output string for "Limited_View".
10325
10326 * exp_dbug.adb: Add with and use of Tbuild.
10327 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10328 and literal with creation of a variable of type
10329 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10330 and the entity of the renaming declaration.
10331 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10332 part of the name of a variable that has a Debug_Renaming_Link.
10333
10334 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10335 special type to be associated with variables that provide debugger
10336 encodings for renaming declarations.
10337
10338 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10339 Ed Schonberg <schonberg@adacore.com>
10340 Javier Miranda <miranda@adacore.com>
10341
10342 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10343 ancestor part given by an aggregate to test for an unchecked conversion,
10344 since this can occur in some cases when the ancestor part is a function
10345 call, and we don't want to fall into the recursive call to this
10346 procedure in that case.
10347
10348 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10349 stream attributes on limited types to account for user-specified
10350 attributes as well as whether Input (resp. Output) becomes available
10351 due to Read (resp. Write) being available for the type. Change Boolean
10352 variable to the more accurate name
10353 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10354 double-"not" predicate at beginning of return statement to more
10355 understandable form.
10356
10357 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10358 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10359 in a block statement and use that as the first statement of the
10360 expanded return rather than incorrectly using the handled sequence as
10361 the first statement.
10362
10363 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10364 operation, generate an explicit freeze node for it rather than
10365 generating extra formals, to ensure that gigi has the proper order of
10366 elaboration for anonymous subtypes in the signature of the subprograms.
10367 (Build_In_Place_Formal): Move assertion to beginning of loop.
10368 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10369 applied to a function call (occurs for some cases of 'Input).
10370 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10371 applied to a function call (occurs for some cases of 'Input).
10372
10373 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10374 2005, generate an extended return statement enclosing the result object
10375 and 'Read call.
10376
10377 * freeze.adb (Freeze_Record_Type): Extend the current management of
10378 components that are access type with an allocator as default value: add
10379 missing support to the use of qualified expressions of the
10380 allocator (which also cause freezing of the designated type!)
10381 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10382 dispatching operation, since extra formals may be needed by calls to
10383 build-in-place functions (such as stream 'Input).
10384
10385 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10386 formals for 'Constrained and accessibility level in the case of a
10387 predefined dispatching operation.
10388
10389 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10390 point, no need to find the parent node.
10391
10392 2007-08-16 Javier Miranda <miranda@adacore.com>
10393
10394 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10395 and entry barriers.
10396
10397 2007-08-16 Javier Miranda <miranda@adacore.com>
10398
10399 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10400 is not really required and can introduce regression with the debugger.
10401 The original problem is fixed with the patch written for checks.adb.
10402
10403 2007-08-16 Thomas Quinot <quinot@adacore.com>
10404
10405 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10406 Range_Check on Allocated_Table.
10407
10408 2007-08-16 Vincent Celier <celier@adacore.com>
10409
10410 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10411 Including_Non_Switch set to False.
10412 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10413 Including_Non_Switch set to False.
10414
10415 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10416 parameter Including_Non_Switch, defaulted to True. When
10417 Including_Non_Switch is False, options that are not switches and
10418 appear as relative path are not converted to absolute paths.
10419
10420 2007-08-16 Nicolas Roche <roche@adacore.com>
10421
10422 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10423 makefiles
10424
10425 * Make-lang.in: Update dependencies
10426
10427 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10428
10429 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10430 currently inspected is a selected component, retrieve the entity of
10431 its selector.
10432 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10433 from the immediate ancestor of Main_Unit_Entity.
10434 (Install_Limited_Withed_Unit): Do not install the limited view of
10435 package P if P is reachable through an ancestor chain from package C
10436 and C also has a with clause for P in its body.
10437 (Has_Limited_With_Clause): New routine.
10438 (Has_With_Clause): New routine.
10439
10440 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10441
10442 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10443 generic for an enclosing instance is a global reference, even though
10444 its scope is the enclosing instance.
10445
10446 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10447 Javier Miranda <miranda@adacore.com>
10448
10449 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10450 initialize a limited object.
10451 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10452 13/2 and 14/2.
10453 Make sure Has_Complex_Representation is inherited by derived type.
10454
10455 2007-08-16 Robert Dewar <dewar@adacore.com>
10456
10457 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10458 exception case
10459
10460 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10461
10462 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10463 implements an operation inherited from a progenitor interface, verify
10464 that they are subtype-conformant.
10465
10466 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10467 Bob Duff <duff@adacore.com>
10468 Nicolas Setton <setton@adacore.com>
10469
10470 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10471 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10472 the statement which is being resolved comes from a predefined library
10473 unit, all non-predefined library interpretations are skipped.
10474 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10475 but the "&" is user defined, give an error, because the folding would
10476 be wrong.
10477
10478 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10479 the parser has folded a long sequence of concatenations of string
10480 literals.
10481
10482 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10483 and "JMP_BUF" variables as artificial.
10484 (N_String_Literal): Do not use alloca for very long string literals. Use
10485 xmalloc/free instead. Otherwise the stack might overflow.
10486
10487 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10488 compiler.
10489
10490 2007-08-16 Vincent Celier <celier@adacore.com>
10491
10492 * vms_conv.adb (Process_Argument): Ensure that project related options
10493 are not put in the -cargs section when using GNAT COMPILE.
10494
10495 2007-08-16 Robert Dewar <dewar@adacore.com>
10496
10497 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10498
10499 2007-08-16 Thomas Quinot <quinot@adacore.com>
10500
10501 * a-tags.adb: Minor reformatting.
10502
10503 2007-08-16 Bob Duff <duff@adacore.com>
10504
10505 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10506
10507 2007-08-14 Thomas Quinot <quinot@adacore.com>
10508
10509 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10510 s-osinte-interix.ads, system-interix.ads: Removed.
10511
10512 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10513
10514 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10515 calls to Check_Within_Time_Bounds.
10516 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10517 (Difference): Account for possible rounding of the resulting difference
10518
10519 2007-08-14 Robert Dewar <dewar@adacore.com>
10520
10521 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10522 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10523 s-osinte-solaris.adb, s-osinte-solaris.ads,
10524 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10525
10526 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10527 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10528
10529 2007-08-14 Robert Dewar <dewar@adacore.com>
10530 Ed Schonberg <schonberg@adacore.com>
10531
10532 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10533 Suppress unmodified in-out parameter warning in some cases
10534 This patch is a also fairly significant change to the way suppressible
10535 checks are handled.
10536
10537 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10538 needed for access to concurrent record types generated by the expander.
10539 (Generate_Range_Check): When generating a temporary to capture the
10540 value of a conversion that requires a range check, set the type of the
10541 temporary before rewriting the node, so that the type is always
10542 properly placed for back-end use.
10543 (Apply_Float_Conversion_Check): Handle case where the conversion is
10544 truncating.
10545 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10546 for a protected type in order to examine its discriminants.
10547
10548 2007-08-14 Robert Dewar <dewar@adacore.com>
10549 Gary Dismukes <dismukes@adacore.com>
10550 Ed Schonberg <schonberg@adacore.com>
10551 Thomas Quinot <quinot@adacore.com>
10552
10553 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10554 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10555 tests optimized out.
10556
10557 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10558 (Get_Allocator_Final_List): For the case of an anonymous access type
10559 that has a specified Associated_Final_Chain, do not go up to the
10560 enclosing scope.
10561 (Expand_N_Type_Conversion): Test for the case of renamings of access
10562 parameters when deciding whether to apply a run-time accessibility
10563 check.
10564 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10565 aggregate code before allocator, and ahead of declaration for
10566 temporary, to prevent access before elaboration when the allocator is
10567 an actual for an access parameter.
10568 (Expand_N_Type_Conversion): On an access type conversion involving an
10569 access parameter, do not apply an accessibility check when the
10570 operand's original node was an attribute other than 'Access. We now
10571 create access conversions for the expansion of 'Unchecked_Access and
10572 'Unrestricted_Access in certain cases and clearly accessibility should
10573 not be checked for those.
10574
10575 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10576 includes a type conversion of a packed component that has been expanded,
10577 recover the original expression for the object, and use this expression
10578 in the post-call assignment statement, so that the assignment is made
10579 to the object and not to a back-end temporary.
10580 (Freeze_Subprogram): In case of primitives of tagged types not defined
10581 at the library level force generation of code to register the primitive
10582 in the dispatch table. In addition some code reorganization has been
10583 done to leave the implementation clear.
10584 (Expand_Call): When expanding an inherited implicit conversion,
10585 preserve the type of the inherited function after the intrinsic
10586 operation has been expanded.
10587
10588 * exp_ch2.ads, exp_ch2.adb
10589 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10590 of an entry formal appearing in an assignment statement does not assign
10591 to the formal.
10592 (Expand_Current_Value): Instead of calling a routine to determine
10593 whether the prefix of an attribute reference should be optimized or
10594 not, prevent the optimization of such prefixes all together.
10595
10596 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10597 component whose prefix is known to be of an access type is an implicit
10598 dereference and does not assign to the prefix.
10599
10600 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10601 Robert Dewar <dewar@adacore.com>
10602
10603 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10604 itype is visited, make an entry into table to link associated node and
10605 new itype.
10606 Add comments and correct harmless error in Build_NCT_Hash_Tables
10607 (Array_Aggr_Subtype): Associate each itype created for an index type to
10608 the corresponding range construct, and not to the aggregate itself. to
10609 maintain a one-to-one correspondence between itype and its associated
10610 node, to prevent errors when complex expression is copied.
10611 Fix mishandling of multiple levels of parens
10612
10613 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10614 treatment of limited views uniform for all visible declarations in a
10615 limited_withed package.
10616 (New_Copy_Tree): If hash table is being used and itype is visited,
10617 make an entry into table to link associated node and new itype.
10618 (Resolve_Record_Aggregate): Do not add an others box association for a
10619 discriminated record component that has only discriminants, when there
10620 is a box association for the component itself.
10621
10622 * par-ch4.adb: Fix mishandling of multiple levels of parens
10623
10624 2007-08-14 Robert Dewar <dewar@adacore.com>
10625
10626 * comperr.adb: Fix problem with suppressing warning messages from gigi
10627
10628 * erroutc.ads, erroutc.adb, errout.ads,
10629 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10630 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10631 possible trailing spaces.
10632 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10633 Fix problem with suppressing warning messages from back end
10634 Improve handling of deleted warnings
10635
10636 * gnat1drv.adb:
10637 Fix problem with suppressing warning messages from back end
10638 Handle setting of Static_Dispatch_Tables flag.
10639
10640 * prepcomp.adb:
10641 Fix problem with suppressing warning messages from back end
10642
10643 * exp_intr.adb: Improve handling of deleted warnings
10644
10645 2007-08-14 Robert Dewar <dewar@adacore.com>
10646
10647 * debug.adb: Improve -gnatdI to cover all cases of serialization
10648 Add documentation of dZ, d.t
10649
10650 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10651 serialization.
10652 (Sprint_Node_Actual): Generate new output associated with implicit
10653 importation and implicit exportation of object declarations.
10654
10655 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10656 Robert Dewar <dewar@adacore.com>
10657 Javier Miranda <miranda@adacore.com>
10658 Gary Dismukes <dismukes@adacore.com>
10659
10660 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10661 to make treatment of limited views uniform for all visible declarations
10662 in a limited_withed package.
10663 Improve warnings for in out parameters
10664 (Set_Related_Interaface/Related_Interface): Allow the use of this
10665 attribute with constants.
10666 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10667 Warn on duplicate pragma Preelaborable_Initialialization
10668
10669 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10670 generation of a freezing node to ensure proper management of null
10671 excluding access types in the backend.
10672 (Create_Extra_Formals): Test base type of the formal when checking for
10673 the need to add an extra accessibility-level formal. Pass the entity E
10674 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10675 originally being done in a couple of cases), to ensure that the
10676 Extra_Formals list gets set on the entity E when the first entity is
10677 added.
10678 (Conforming_Types): Add missing calls to Base_Type to the code that
10679 handles anonymous access types. This is required to handle the
10680 general case because Process_Formals builds internal subtype entities
10681 to handle null-excluding access types.
10682 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10683 functions that need it, even when not marked Requires_Overriding.
10684 Improve warnings for in out parameters
10685 (Analyze_Function_Return): Warn for disallowed null return
10686 Warn on return from procedure with unset out parameter
10687 Ensure consistent use of # in error messages
10688 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10689 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10690 the implicit conversion of the expression done for anonymous access
10691 types. This is required to generate the code of the null excluding
10692 check (if required).
10693
10694 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10695 A formal parameter is never publicly referenceable outside of its body.
10696 (Check_References): For an unreferenced formal parameter in an accept
10697 statement, use the same warning circuitry as for subprogram formal
10698 parameters.
10699 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10700 Output_Unreferenced_Messages, containing the part of that routine that
10701 is now reused for entry formals as described above.
10702 (Goto_Spec_Entity): New function
10703 (Check_References): Do not give IN OUT warning for dispatching operation
10704 Improve warnings for in out parameters
10705 (Test_Ref): Check that the entity is not undefinite before calling
10706 Scope_Within, in order to avoid infinite loops.
10707 Warn on return from procedure with unset out parameter
10708 Improved warnings for unused variables
10709
10710 2007-08-14 Robert Dewar <dewar@adacore.com>
10711 Javier Miranda <miranda@adacore.com>
10712 Gary Dismukes <dismukes@adacore.com>
10713
10714 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10715 (Expand_N_Attribute_Reference): Further unify the handling of the
10716 three forms of access attributes, using common code now for all three
10717 cases. Add a test for the case of applying an access attribute to
10718 an explicit dereference when the context is an access-to-interface
10719 type. In that case we need to apply the conversion to the prefix
10720 of the explicit dereference rather than the prefix of the attribute.
10721 (Attribute_Version, UET_Address): Set entity as internal to ensure
10722 proper dg output of implicit importation.
10723 (Expand_Access_To_Type): Removed.
10724 (Expand_N_Attribute_Reference): Merge the code from the three cases
10725 of access attributes, since the processing is largely identical for
10726 these cases. The substantive fix here is to process the case of a
10727 type name prefix (current instance case) before handling the case
10728 of interface prefixes.
10729
10730 2007-08-14 Thomas Quinot <quinot@adacore.com>
10731 Ed Schonberg <schonberg@adacore.com>
10732 Javier Miranda <miranda@adacore.com>
10733 Robert Dewar <dewar@adacore.com>
10734
10735 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10736 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10737 type that is an anonymous access to controlled object, establish
10738 an associated finalization chain to avoid corrupting the global
10739 finalization list when a dynamically allocated object designated
10740 by such a component is deallocated.
10741 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10742 functions that need it, even when not marked Requires_Overriding.
10743 (Initialize_Tag): Replace call to has_discriminants by call to
10744 Is_Variable_Size_Record in the circuitry that handles the
10745 initialization of secondary tags.
10746 (Is_Variable_Size_Record): New implementation.
10747 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10748 Suppress_Initialization pragma for a derived type.
10749 (Is_Variable_Size_Record): New subprogram.
10750 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10751 initial version of this routine and also fixes problems causing
10752 incomplete initialization of the table of interfaces.
10753 (Build_Init_Procedure): Improve the generation of code to initialize the
10754 the tag components of secondary dispatch tables.
10755 (Init_Secondary_Tags): New implementation that simplifies the previous
10756 version of this routine.
10757 (Make_DT): Add parameter to indicate when type has been frozen by an
10758 object declaration, for diagnostic purposes.
10759 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10760 diagnose attemps to freeze a subprogram when some untagged type of its
10761 profile is a private type whose full view has not been analyzed yet.
10762 (Freeze_Array_Type): Generate init proc for packed array if either
10763 Initialize or Normalize_Scalars is set.
10764 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10765 constructing the new profile, copy the null_exclusion indicator for each
10766 parameter, to ensure full conformance of the new body with the spec.
10767
10768 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10769 Create wrappers for constructor functions that need it, even when not
10770 marked Requires_Overriding.
10771 (Covers): Handle properly designated types of anonymous access types,
10772 whose non-limited views are themselves incomplete types.
10773 (Add_Entry): Use an entity to store the abstract operation which hides
10774 an interpretation.
10775 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10776 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10777 initialization aggregate.
10778 (Function_Interp_May_Be_Hidden): Rename to
10779 Function_Interp_Has_Abstract_Op.
10780 (Has_Compatible_Type): Remove machinery that skips interpretations if
10781 they are labeled as potentially hidden by an abstract operator.
10782 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10783 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10784 (Write_Overloads): Output the abstract operator if present.
10785 (Add_Entry): Before inserting a new entry into the interpretation table
10786 for a node, determine whether the entry will be disabled by an abstract
10787 operator.
10788 (Binary_Op_Interp_May_Be_Hidden): New routine.
10789 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10790 aggregate.
10791 (Function_Interp_May_Be_Hidden): New routine.
10792 (Has_Compatible_Type): Do not consider interpretations hidden by
10793 abstract operators when trying to determine whether two types are
10794 compatible.
10795 (Has_Hidden_Interp): New routine.
10796 (Set_May_Be_Hidden_Interp): New routine.
10797 (Write_Overloads): Write the status of flag May_Be_Hidden.
10798
10799 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10800 Javier Miranda <miranda@adacore.com>
10801
10802 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10803 types declared in the declarative part of a nested package body or in
10804 the proper body of a stub.
10805 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10806 of the same dispatch table slot to renamed primitives.
10807 (Make_Select_Specific_Data_Table): Handle private types.
10808 (Tagged_Kind): Handle private types.
10809 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10810 output of implicit importation and exportation.
10811 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10812 first formal of the thunk is always associated with the controlling
10813 type. In addition perform the following code cleanup: remove formal
10814 Thunk_Alias which is no longer required, cleanup evaluation of the
10815 the controlling type, and update the documentation.
10816 Replace occurrence of Default_Prim_Op_Count by
10817 Max_Predef_Prims. Addition of compile-time check to verify
10818 that the value of Max_Predef_Prims is correct.
10819 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10820 (Make_DT): Add parameter to indicate when type has been frozen by an
10821 object declaration, for diagnostic purposes.
10822 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10823 construction of statically allocated dispatch tables.
10824 (Make_DT): In case of library-level tagged types export the declaration
10825 of the primary tag. Remove generation of tags (now done by Make_Tags).
10826 Additional modifications to handle non-static generation of dispatch
10827 tables. Take care of building tables for asynchronous interface types
10828 (Make_Tags): New subprogram that generates the entities associated with
10829 the primary and secondary tags of Typ and fills the contents of Access_
10830 Disp_Table. In case of library-level tagged types imports the forward
10831 declaration of the primary tag that will be declared later by Make_DT.
10832 (Expand_Interface_Conversion): In case of access types to interfaces
10833 replace an itype declaration by an explicit type declaration to avoid
10834 problems associated with the scope of such itype in transient blocks.
10835
10836 2007-08-14 Robert Dewar <dewar@adacore.com>
10837 Ed Schonberg <schonberg@adacore.com>
10838 Javier Miranda <miranda@adacore.com>
10839
10840 * exp_util.ads, exp_util.adb:
10841 This patch replaces a number of occurrences of explicit tests for N_Null
10842 with calls to Known_Null. This improves tracking of null values, since
10843 Known_Null also catches null constants, and variables currently known to
10844 be null, so we get better tracking.
10845 (Ensure_Defined): create an itype reference only in the scope of the
10846 itype.
10847 (Side_Effect_Free): A selected component of an access type that
10848 denotes a component with a rep clause must be treated as not
10849 side-effect free, because if it is part of a linked structure its
10850 value may be affected by a renaming.
10851 (Expand_Subtype_From_Expr): For limited objects initialized with build
10852 in place function calls, do nothing; otherwise we prematurely introduce
10853 an N_Reference node in the expression initializing the object, which
10854 breaks the circuitry that detects and adds the additional arguments to
10855 the called function. Bug found working in the new patch for statically
10856 allocated dispatch tables.
10857 (Is_Library_Level_Tagged_Type): New subprogram.
10858 (Remove_Side_Effects): If the expression of an elementary type is an
10859 operator treat as a function call.
10860 (Make_Literal_Range): If the index type of the array is not integer, use
10861 attributes properly to compute the constraint on the resulting aggregate
10862 which is a string.
10863
10864 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10865 class-wide type whose base type is an incomplete private type, leave
10866 class-wide type unfrozen so that freeze nodes can be generated
10867 properly at a later point.
10868 (Freeze_Entity, array case): Handle case of pragma Pack and component
10869 size attributre clause for same array.
10870
10871 2007-08-14 Vincent Celier <celier@adacore.com>
10872
10873 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10874 gprbuild.
10875 Allow all valid declarations in configuration project files
10876 (Reset): Initialize all tables and hash tables in the project tree data
10877 Major update of the Project Manager and of the project aware tools,
10878 including gprmake, so that the same sources in the GNAT repository
10879 can be used by gprbuild.
10880 (Slash_Id): Change type to be Path_Name_Type
10881 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10882
10883 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10884 gprbuild.
10885 Update Project Manager to new attribute names for ghprbuild
10886 Allow all valid declarations in configuration project files
10887 Major update of the Project Manager and of the project aware tools,
10888 including gprmake, so that the same sources in the GNAT repository
10889 can be used by gprbuild.
10890
10891 * prj-com.ads:
10892 Major update of the Project Manager and of the project aware tools,
10893 including gprmake, so that the same sources in the GNAT repository
10894 can be used by gprbuild.
10895
10896 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10897 insensitive flag for attributes with optional index.
10898 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10899 array attribute, put the index in lower case.
10900 Update Project Manager to new attribute names for ghprbuild
10901 Allow all valid declarations in configuration project files
10902 Major update of the Project Manager and of the project aware tools,
10903 including gprmake, so that the same sources in the GNAT repository
10904 can be used by gprbuild.
10905
10906 * prj-env.ads, prj-env.adb:
10907 Major update of the Project Manager and of the project aware tools,
10908 including gprmake, so that the same sources in the GNAT repository
10909 can be used by gprbuild.
10910 (Get_Reference): Change type of parameter Path to Path_Name_Type
10911
10912 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10913 removing '-' from the path to start with the first character of the
10914 next directory.
10915 Major update of the Project Manager and of the project aware tools,
10916 including gprmake, so that the same sources in the GNAT repository
10917 can be used by gprbuild.
10918 Major update of the Project Manager and of the project aware tools,
10919 including gprmake, so that the same sources in the GNAT repository
10920 can be used by gprbuild.
10921
10922 * prj-nmsc.ads, prj-nmsc.adb:
10923 Update Project Manager to new attribute names for ghprbuild
10924 Allow all valid declarations in configuration project files
10925 (Search_Directories): Detect subunits that are specified with an
10926 attribute Body in package Naming. Do not replace a source/unit in the
10927 same project when the order of the source dirs are known. Detect
10928 duplicate sources/units in the same project when the order of the
10929 source dirs are not known.
10930 (Check_Ada_Name): Allow all identifiers that are not reserved words
10931 in Ada 95.
10932 Major update of the Project Manager and of the project aware tools,
10933 including gprmake, so that the same sources in the GNAT repository
10934 can be used by gprbuild.
10935 (Look_For_Sources): If the list of sources is empty, set the object
10936 directory of non extending project to nil.
10937 Change type of path name variables to be Path_Name_Type
10938 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10939 otherwise creating missing directories will fail.
10940
10941 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10942 prj-part.ads, prj-part.adb:
10943 Major update of the Project Manager and of the project aware tools,
10944 including gprmake, so that the same sources in the GNAT repository
10945 can be used by gprbuild.
10946
10947 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10948 insensitive flag for attributes with optional index.
10949 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10950 array attribute, put the index in lower case.
10951 (Parse_Variable_Reference): Allow the current project name to be used in
10952 the prefix of an attribute reference.
10953
10954 * prj-util.ads, prj-util.adb
10955 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10956 defaulted to False. When True, always check against indexes in lower
10957 case.
10958
10959 * snames.ads, snames.h, snames.adb:
10960 Update Project Manager to new attribute names for gprbuild
10961 Allow all valid declarations in configuration project files
10962
10963 2007-08-14 Robert Dewar <dewar@adacore.com>
10964 Ed Schonberg <schonberg@adacore.com>
10965
10966 * opt.ads: Warning for non-local exception propagation now off by
10967 default
10968 New switch -gnatI to disable representation clauses
10969 Implement new pragma Implicit_Packing
10970
10971 * usage.adb:
10972 Warning for non-local exception propagation now off by default
10973 Add warning for unchecked conversion of pointers wi different
10974 conventions.
10975 New switch -gnatI to disable representation clauses
10976
10977 * usage.adb: new switch -gnatyS
10978
10979 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10980 note that aggregates of anonymous array types are not flagged.
10981 -gnatwc now includes membership tests optimized away
10982 -gnatw.x warnings are now off by default
10983 Added conditional compilation Appendix
10984 Add documentation of -gnatI
10985 Add documentation for new -gnatyS style check
10986 Update documentation about SAL and auto-init on Windows.
10987
10988 * gnat_rm.texi:
10989 Add documentation for pragma Check_Name and 'Enabled attribute
10990 Document that Eliminate on dispatching operation is ignored
10991 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10992 Document pragma Main
10993 Document pragma Implicit_Packing
10994
10995 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10996 different conventions
10997 New switch -gnatI to disable representation clauses
10998
10999 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
11000 recognized, report the invalid characters including "-gnat" instead of
11001 just the first character in the switch.
11002 New switch -gnatI to disable representation clauses
11003 Set Warn_On_Object_Renames_Function true for -gnatg
11004
11005 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
11006 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
11007 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
11008 to switch -aP (add directory to project search dir).
11009
11010 * par-prag.adb: Implement new pragma Implicit_Packing
11011
11012 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
11013 type as having a non-standard representation, to force expansion on
11014 conversion to related types.
11015 (Analyze_Pragma): Warn on misspelled pragma
11016 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
11017 Ensure consistent use of # in error messages
11018 Implement pragma Implicit_Packing
11019
11020 2007-08-14 Olivier Hainque <hainque@adacore.com>
11021 Eric Botcazou <ebotcazou@adacore.com>
11022
11023 * targtyps.c (get_target_maximum_default_alignment): New function.
11024 Maximum alignment
11025 that the compiler might choose by default for a type or object.
11026 (get_target_default_allocator_alignment): New function. Alignment known
11027 to be honored by the target default allocator.
11028 (get_target_maximum_allowed_alignment): New function. Maximum alignment
11029 we might accept for any type or object on the target.
11030 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
11031
11032 * gigi.h (get_target_maximum_default_alignment): Declare new function.
11033 (get_target_default_allocator_alignment): Likewise.
11034 (get_target_maximum_allowed_alignment): Likewise.
11035
11036 PR ada/19037
11037 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
11038 result of a function call, first try to use a stabilized reference for
11039 a constant renaming too.
11040 (validate_alignment): Use target_maximum_allowed_alignment instead of
11041 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
11042 (gnat_to_gnu_entity): Use common nodes directly.
11043 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
11044 alignment and size for the object.
11045 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
11046 and N_Procedure_Call_Statement.
11047 (takes_address): Rename to lvalue_required_p, add third parameter
11048 'aliased' and adjust recursive calls.
11049 <N_Indexed_Component>: Update 'aliased' from the array type.
11050 <N_Selected_Component>: New case.
11051 <N_Object_Renaming_Declaration>: New Likewise.
11052 (Identifier_to_gnu): Adjust for above changes.
11053 (maybe_stabilize_reference) <CONST_DECL>: New case.
11054
11055 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
11056 between type variants.
11057 (build_simple_component_ref): Likewise.
11058 (build_call_alloc_dealloc): Use target_default_allocator_alignment
11059 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
11060 aligning type circuitry for allocations from the default storage pool.
11061 (build_allocator): Likewise.
11062 (build_simple_component_ref): Manually fold the reference for a
11063 constructor if the record type contains a template.
11064
11065 * utils.c (value_zerop): Delete.
11066 (gnat_init_decl_processing): Emit debug info for common types.
11067 (rest_of_record_type_compilation): If a union contains a field
11068 with a non-constant qualifier, treat it as variable-sized.
11069 (finish_record_type): Give the stub TYPE_DECL a name.
11070 (rest_of_record_type_compilation): Likewise.
11071 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
11072 types are equivalent array types.
11073 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
11074 even if the type is not passed by reference.
11075 (static_ctors, static_dtors): Delete.
11076 (end_subprog_body): Do not record constructors and destructors.
11077 (build_global_cdtor): Delete.
11078 (gnat_write_global_declarations): Do not call build_global_cdtor.
11079
11080 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
11081 -fRTS=rtp is specified.
11082 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
11083 specified.
11084
11085 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
11086 of the personality function with SJLJ exceptions.
11087
11088 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
11089 the name of the personality function with SJLJ exceptions.
11090
11091 2007-08-14 Robert Dewar <dewar@adacore.com>
11092 Ed Schonberg <schonberg@adacore.com>
11093
11094 * par.ads, par.adb: Improve handling of extra right parens.
11095 (Par): Remove flag From_Limited_With_Clause.
11096
11097 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
11098 Improve handling of extra right parens.
11099
11100 2007-08-14 Robert Dewar <dewar@adacore.com>
11101
11102 * par-tchk.adb (TF_Semicolon): Improve error recovery
11103
11104 2007-08-14 Robert Dewar <dewar@adacore.com>
11105 Ed Schonberg <schonberg@adacore.com>
11106
11107 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
11108 enumeration type, mark all literals as referenced.
11109 (Eval_Attribute, case 'Image): If the argument is an enumeration
11110 literal and names are available, constant-fold but mark nevertheless as
11111 non-static.
11112 Clean up function names.
11113 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
11114 comment.
11115 (Requires_Simple_Name_Prefix): Removed.
11116
11117 2007-08-14 Robert Dewar <dewar@adacore.com>
11118 Ed Schonberg <schonberg@adacore.com>
11119
11120 * sem_ch11.adb: Improved warnings for unused variables
11121
11122 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
11123 is a synchronized interface, the derived type is limited.
11124 (Analyze_Object_Declaration): Mark the potential coextensions in the
11125 definition and expression of an object declaration node.
11126 (Build_Derived_Type): For the completion of a private type declaration
11127 with a derived type declaration, chain the parent type's representation
11128 items to the last representation item of the derived type (not the
11129 first one) if they are not present already.
11130 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
11131 object declaration of forward references to tags.
11132 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
11133 subprogram types can appear as access discriminants of synchronized
11134 types.
11135 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
11136 given in prefixed form as a selected component.
11137 (Process_Discriminants): If not all discriminants have defaults, place
11138 error message on a default that is present.
11139 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
11140 extend a synchronized tagged type.
11141 Improved warnings for unused variables
11142 (Is_Visible_Component): Fix a visibility hole on a component inherited
11143 by a private extension when parent is itself declared as a private
11144 extension, and the derivation is in a child unit.
11145 (Find_Hidden_Interface): Move spec from the package body.
11146
11147 2007-08-14 Robert Dewar <dewar@adacore.com>
11148 Ed Schonberg <schonberg@adacore.com>
11149
11150 * sem_ch5.adb: Improve warnings on redundant assignments
11151
11152 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
11153 parameter
11154 (Is_Synchronized_Tagged_Type): New subprogram that returns true
11155 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
11156 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
11157 is set to False. Improves handling of Known_[Not_]Null.
11158 (Wrong_Type): Special case address arithmetic attempt
11159 (Collect_Abstract_Interfaces): Add new formal to allow collecting
11160 abstract interfaces just using the partial view of private types.
11161 (Has_Abstract_Interfaces): Add new formal to allow checking types
11162 covering interfaces using the partial view of private types.
11163 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
11164 component still needs to be defined in this case, but is never
11165 initialized as VMs are using other dispatching mechanisms.
11166 (Abstract_Interface_List): For a protected type, use base type to get
11167 proper declaration.
11168 Improve warnings on redundant assignments
11169 (Is_Variable): Handle properly an implicit dereference of a prefixed
11170 function call.
11171 (Build_Actual_Subtype): If this is an actual subtype for an
11172 unconstrained formal parameter, use the sloc of the body for the new
11173 declaration, to prevent anomalises in the debugger.
11174
11175 2007-08-14 Robert Dewar <dewar@adacore.com>
11176
11177 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11178 dispatching operation
11179
11180 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11181 Gary Dismukes <dismukes@adacore.com>
11182
11183 * exp_aggr.ads,
11184 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11185 expanded aggregate code before allocator, and ahead of declaration for
11186 temporary, to prevent access before elaboration when the allocator is
11187 an actual for an access parameter.
11188 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11189 the TSD and the table of interfaces.
11190 (Convert_To_Assignments): Augment the test for delaying aggregate
11191 expansion for limited return statements to include the case of extended
11192 returns, to prevent creation of an unwanted transient scope.
11193 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11194 (Expand_Array_Aggregate): Handle aggregates associated with
11195 statically allocated dispatch tables.
11196 (Expand_Record_Aggregate): Handle aggregates associated with
11197 statically allocated dispatch tables.
11198 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11199 of anonymous access type.
11200
11201 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11202
11203 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11204 is a variable that renames a slice, use the variable itself in the
11205 expannsion when the renamed expression itself may be modified between
11206 the declaration of the renaming and the array assignment.
11207
11208 2007-08-14 Jerome Guitton <guitton@adacore.com>
11209
11210 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11211 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11212 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11213 New functions; dummy implementations.
11214
11215 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11216 functions, used to implement the multi-tasks mode routines on VxWorks.
11217
11218 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11219 New functions, thin
11220 binding to the VxWorks routines which have changed between VxWorks 5
11221 and 6.
11222 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11223 which are not callable from a RTP.
11224
11225 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11226 implemented for the multi-tasks mode on VxWorks 5 and 6.
11227
11228 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11229
11230 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11231 functions.
11232
11233 2007-08-14 Vincent Celier <celier@adacore.com>
11234
11235 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11236 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11237 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11238 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11239 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11240 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11241 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11242 procedure.
11243 (Major_Id_Name): New function.
11244 mlib-tgt.ads/mlib.tgt.adb:
11245 (Library_Major_Minor_Id_Supported): New function, default returns True
11246 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11247 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11248 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11249 Implementation of Library_Major_Minor_Id_Supported returns False
11250 clean.adb:
11251 (Clean_Library_Directory): If major/minor ids are supported, clean all
11252 library files.
11253 Major update of the Project Manager and of the project aware tools,
11254 including gprmake, so that the same sources in the GNAT repository
11255 can be used by gprbuild.
11256
11257 2007-08-14 Olivier Hainque <hainque@adacore.com>
11258
11259 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11260 (GCC_ZCX_Support): Switch to True.
11261
11262 * s-intman-solaris.adb (Notify_Exception): Call
11263 Adjust_Context_For_Raise before raising, as expected for signal
11264 handlers in general.
11265
11266 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11267 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11268 to other implementation bodies.
11269
11270 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11271 be visible by multiple implementation bodies.
11272
11273 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11274 only for conditions coming from hardware.
11275 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11276 adjustments to signal context prior to exception raise from signal
11277 handler.
11278 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11279 mode.
11280 Solaris section: (__gnat_adjust_context_for_raise): New function.
11281 Implementation of the machine context adjustments to perform prior to
11282 raise from a signal handler. Version for both sparc and x86.
11283 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11284 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11285 prior to raising as expected for any handler, before possible nested
11286 faults to make sure all the contexts in a chain have been adjusted by
11287 the time we propagate.
11288
11289 2007-08-14 Pascal Obry <obry@adacore.com>
11290
11291 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11292 (SYSTEM_INFO): New record.
11293 (SetThreadIdealProcessor): New imported routine needed for supporting
11294 task_info pragma on Windows.
11295
11296 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11297 info can be applied to the current host.
11298 (Create_Task): Set the ideal processor if information is present.
11299
11300 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11301 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11302
11303 2007-08-14 Olivier Hainque <hainque@adacore.com>
11304
11305 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11306 stack size and initial stack pointer value for a given task.
11307 (Enter_Task): Get the stack attributes of the task we are entering and
11308 let the stack checking engine know about them.
11309
11310 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11311 Let the stack-checking engine know about the initial sp value and stack
11312 size associated with the current task.
11313 (Set_Stack_Info): If a stack base has been notified for the current
11314 task, honor it. Fallback to the previous less accurate method otherwise.
11315
11316 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11317
11318 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11319
11320 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11321 treatment of limited views uniform for all visible declarations in a
11322 limited_withed package.
11323 Set flag indicating that a subprogram body for a child unit has a
11324 generated spec.
11325 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11326 separate declaration, remove the unit name from visibility after
11327 compilation, so that environment is clean for subsequent compilations.
11328 (Install_Limited_Context_Clauses): Do not install a
11329 limited_private_with_clause unless the current unit is a body or a
11330 private child unit.
11331 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11332 in the same fashion.
11333 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11334 it applies to the declaration of the current package body.
11335 (Remove_Private_With_Clauses): If there is a regular with_clause for
11336 the unit, delete Private_With_Clause from context, to prevent improper
11337 hiding when processing subsequent nested packages and instantiations.
11338
11339 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11340
11341 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11342 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11343 representing absolute path names.
11344 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11345
11346 * cstreams.c (__gnat_full_name for VxWorks): Use
11347 __gnat_is_absolute_path to detect whether we need to add the current
11348 directory to normalize the path.
11349
11350 2007-08-14 Javier Miranda <miranda@adacore.com>
11351
11352 * a-tags.ads,
11353 a-tags.adb (Displace): Associate a message with the raised CE
11354 exception.
11355 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11356 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11357 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11358 spec.
11359 (Default_Prim_Op_Count): Removed.
11360 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11361 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11362 Remove pragma Inline_Always.
11363
11364 * rtsfind.ads (Default_Prim_Op_Count): Removed
11365 (Max_Predef_Prims): New entity
11366 (RE_Expanded_Name): Removed
11367 (RE_HT_Link): Removed
11368 (RE_Iface_Tag): Remmoved
11369 (RE_Ifaces_Table): Removed
11370 (RE_Interfaces_Array): Removed
11371 (RE_Interface_Data_Element): Removed
11372 (RE_Nb_Ifaces): Removed
11373 (RE_RC_Offset): Removed
11374 (RE_Static_Offset_To_Top): Removed
11375
11376 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11377 formal.
11378 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11379 Prim_Op_Count by Max_Predef_Prims.
11380
11381 2007-08-14 Thomas Quinot <quinot@adacore.com>
11382 Vincent Celier <celier@adacore.com>
11383
11384 * binde.adb (Elab_All_Links): Remove unnecessary call to
11385 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11386 won't be an associated Afile).
11387 (Elab_All_Links): Fail if a referenced unit cannot be found
11388
11389 * bindgen.adb:
11390 Fix comments in bindgen regarding consistency checks done in Bcheck:
11391 the checks are made across units within a partition, not across several
11392 partitions.
11393 Fix generation of C binder file for VxWorks.
11394
11395 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11396 Generic_May_Lack_ALI, more descriptive of the current use of the
11397 predicate, and update documentation.
11398
11399 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11400 reorganization and documentation update for the case of predefined
11401 library generics (for which we do not reference an Afile).
11402
11403 2007-08-14 Robert Dewar <dewar@adacore.com>
11404
11405 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11406 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11407 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11408 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11409 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11410 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11411 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11412 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11413 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11414 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11415 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11416 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11417 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11418 g-altcon.adb: Minor reformatting
11419
11420 ada-tree.h: Delete empty line.
11421
11422 ali.ads: Minor reformatting
11423 Clarification of comments.
11424 Minor spelling correction
11425
11426 * exp_dbug.adb: Add Warnings Off to suppress new warning
11427
11428 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11429 formal
11430
11431 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11432 value
11433
11434 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11435
11436 * a-textio.ads: Reorder the standard input/output/error declarations
11437 for consistency.
11438
11439 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11440
11441 * par-ch2.adb: Recognize RM specially in errout
11442 Change 'R'M to RM in all error messages
11443
11444 * scng.adb: Recognize RM specially in errout
11445
11446 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11447 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11448
11449 * s-direio.adb: Add missing routine header box.
11450
11451 * sem_attr.ads: Add ??? comments
11452
11453 * sem_eval.adb: Recognize RM specially in errout
11454 Change 'R'M to RM in all error messages
11455
11456 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11457
11458 * s-tasinf.ads: Fix minor comment typo.
11459
11460 * a-cihama.adb: Minor comment addition
11461
11462 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11463 formal
11464
11465 * s-tasinf-tru64.ads: Fix minor comment typo.
11466
11467 * itypes.ads: Comment update.
11468
11469 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11470 anymore.
11471
11472 * argv.c: Added protection against null gnat_argv and gnat_envp.
11473
11474 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11475 warning message when Tolerate_Consistency_Errors is True.
11476
11477 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11478 Any_Id, as this subprogram is only applicable to *type* entities (it
11479 sets RM_Size). Instead initialize just Esize and Alignment.
11480
11481 2007-08-14 Bob Duff <duff@adacore.com>
11482
11483 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11484 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11485 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11486 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11487 a-coorse.ads (Next): Applied pragma Inline.
11488 Make all Containers packages Remote_Types (unless they are already
11489 Pure).
11490 (Previous): applied pragma Inline
11491 (Elements_Type): is now a record instead of an array
11492
11493 2007-08-14 Thomas Quinot <quinot@adacore.com>
11494
11495 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11496 of Set_Item.
11497 (Set_Item): When the new item is an element of the currently allocated
11498 table passed by reference, save a copy on the stack if we're going
11499 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11500 variable to determine whether to call Set_Last.
11501
11502 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11503 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11504 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11505 some occurrences of the pattern
11506 T.Increment_Last;
11507 T.Table (T.Last) := Value;
11508 with a cleaner call to
11509 T.Append (Value);
11510
11511 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11512 Gary Dismukes <dismukes@adacore.com>
11513 Thomas Quinot <quinot@adacore.com>
11514
11515 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11516 derived type with interface progenitors use the analyzed formal as the
11517 parent of the actual, to create renamings for all the inherited
11518 operations in Derive_Subprograms.
11519 (Collect_Previous_Instances): new procedure within of
11520 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11521 unit being loaded, to ensure that the generation of global symbols is
11522 consistent in different compilation modes.
11523 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11524 takes progenitor types into account.
11525 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11526 traversing over the primitives of the formal and actual types to locate
11527 any abstract subprograms of the actual type that correspond to a
11528 nonabstract subprogram of the formal type's ancestor type(s), and issue
11529 an error if such is found.
11530 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11531 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11532 Remove bogus guard around calls to Inherit_Context.
11533 (Reset_Entity): If the entity is the selector of a selected component
11534 that denotes a named number, propagate constant-folding to the generic
11535 template only if the named number is global to the generic unit.
11536 (Set_Instance_Env): Only reset the compilation switches when compiling
11537 a predefined or internal unit.
11538
11539 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11540
11541 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11542 parameter to determine whether operation applies to the prefix.
11543 (Complete_Object_Operation): If actual has an access type and
11544 controlling formal is not an in_parameter, reject the actual if it is
11545 an access_to_constant type.
11546 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11547 type, the candidate operations are found in the scope of declaration of
11548 the type, because the type has no primitive subprograms.
11549 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11550 a private extension, only examine visible components before trying to
11551 analyze as a prefixed call.
11552 Change Entity_List to Type_To_Use, for better readability.
11553 (Has_Fixed_Op): Use base type when checking whether the type of an
11554 operator has a user-defined multiplication/division
11555 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11556 user-defined operators are available for fixed-point types.
11557
11558 2007-08-14 Thomas Quinot <quinot@adacore.com>
11559 Ed Schonberg <schonberg@adacore.com>
11560
11561 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11562 formal At_Any_Place indicating, when True, that we want to test for
11563 availability of the stream attribute at any place (as opposed to the
11564 current visibility context only).
11565 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11566 purpose of enforcing E.2.2(8) only if it is not available at any place.
11567 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11568 when checking the legality of an extension aggregate in a preelaborable
11569 package. Treat the literal null as a valid default expression in a
11570 component declaration for a type with preelaborable initialization.
11571 A limited interface is a legal progenitor for the designated type of a
11572 remote access to class-wide type.
11573
11574 2007-08-14 Thomas Quinot <quinot@adacore.com>
11575 Ed Schonberg <schonberg@adacore.com>
11576
11577 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11578 reference): Use correct entity as denoted entity for the selector of
11579 the rewritten node.
11580 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11581 setting the Referenced_As_LHS flag for entities that are implicitly
11582 dereferenced.
11583 (Find_Type): If the type is an internally generated incomplete type,
11584 mark the full view as referenced, to prevent spurious warnings.
11585 (Find_Selected_Component, Has_Components): Handle properly non-limited
11586 views that are themselves incomplete types.
11587 Handle interfaces visible through limited-with clauses.
11588 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11589 subprogram generic actual for which we have generated a renaming.
11590 Warn when the renaming introduces a homonym of
11591 the renamed entity, and the renamed entity is directly visible.
11592
11593 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11594 Hristian Kirtchev <kirtchev@adacore.com>
11595
11596 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11597 appear in the subtree to the current allocator if it is not a static
11598 coextension.
11599 (Resolve_Allocator): Perform cleanup if resolution has determined that
11600 the allocator is not a coextension.
11601 (Resolve): Skip an interpretation hidden by an abstract operator only
11602 when the type of the interpretation matches that of the context.
11603 (Resolve): When looping through all possible interpretations of a node,
11604 do not consider those that are hidden by abstract operators.
11605 (Resolve_Actuals): When verifying that an access to class-wide object
11606 is an actual for a controlling formal, ignore anonymous access to
11607 subprograms whose return type is an access to class_wide type.
11608 (Resolve_Slice): If the prefix of the slice is a selected component
11609 whose type depends on discriminants, build its actual subtype before
11610 applying range checks on the bounds of the slice.
11611 (Valid_Conversion): In an instance or inlined body, compare root types,
11612 to prevent anomalies between private and public views.
11613 (Resolve): Improve error message for ambiguous fixed multiplication
11614 expressions that involve universal_fixed multiplying operations.
11615
11616 2007-08-14 Javier Miranda <miranda@adacore.com>
11617 Hristian Kirtchev <kirtchev@adacore.com>
11618
11619 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11620 location to allow the correct generation of errors in case of
11621 restrictions applied to the expanded code.
11622 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11623 function if the condition does not reference them.
11624 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11625 valid value.
11626
11627 2007-08-14 Thomas Quinot <quinot@adacore.com>
11628 Pablo Oliveira <oliveira@adacore.com>
11629
11630 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11631 typecode parameters for a union (in a variant record), remove
11632 extraneous layer of Any wrapping for member label.
11633 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11634 elabration statements, register the package with the name server
11635 at the beginning, not at the end, of the elaboration statements so
11636 that they can create remote access to subprogram values that designate
11637 remote subprograms from the package.
11638
11639 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11640
11641 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11642 values to compute the number of seconds since the Unix Epoc in order to
11643 account for Daylight Savings Time. Perform special processing for dates
11644 that are earlier than the Unix Epoc to obtain a negative number.
11645
11646 2007-08-14 Emmanuel Briot <briot@adacore.com>
11647
11648 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11649 switches.
11650
11651 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11652
11653 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11654 binder-generated file is not in Ada.
11655 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11656 recorded in the ALI file.
11657 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11658
11659 2007-08-14 Vincent Celier <celier@adacore.com>
11660
11661 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11662 (Output_Source): Do nothing if parameter is No_Sdep_Id
11663
11664 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11665 shared library it imports has a later time stamp.
11666 (Check): Resolve the symbolic links in the path name of the object
11667 directory.
11668 Check that the ALI file is in the correct object directory
11669 Check if a file name does not correspond to the mapping of units
11670 to file names.
11671 (Display_Version): New procedure
11672 (Initialize): Process switches --version and --help
11673 Use type Path_Name_Type for path name
11674
11675 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11676
11677 * impunit.adb: Re-organize System.Random_Numbers and
11678 GNAT.Random_Numbers and add to builds.
11679
11680 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11681
11682 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11683
11684 * a-assert.ads, a-assert.adb: New files.
11685
11686 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11687
11688 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11689 if AAMP_On_Target is True, then the size of the type encompasses two
11690 addresses (a static link and a subprogram address), except in the case
11691 of library-level access types.
11692
11693 2007-08-14 Vincent Celier <celier@adacore.com>
11694
11695 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11696 writing the line.
11697 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11698 possible trailing spaces.
11699 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11700
11701 2007-08-14 Javier Miranda <miranda@adacore.com>
11702
11703 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11704 null-excluding access types.
11705
11706 2007-08-14 Javier Miranda <miranda@adacore.com>
11707
11708 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11709 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11710 of private types add missing check on matching interfaces in the
11711 partial and full declarations.
11712 (Analyze_Protected_Type): Code cleanup.
11713 (Analyze_Task_Type): Code cleanup.
11714
11715 2007-08-14 Javier Miranda <miranda@adacore.com>
11716
11717 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11718 generated interface thunk.
11719
11720 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11721
11722 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11723 obsolescent warning on application of 'Class to an incomplete type.
11724
11725 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11726 prevent obsolescent warning on application of 'Class to an incomplete
11727 type.
11728
11729 2007-08-14 Pascal Obry <obry@adacore.com>
11730
11731 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11732 file stream.
11733
11734 2007-08-14 Cyrille Comar <comar@adacore.com>
11735
11736 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11737 since it is potentially used in cases implying double finalization of
11738 the same object.
11739
11740 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11741
11742 * s-tasini.adb (Get_Stack_Info): Move this function to
11743 System.Soft_Links.Tasking because it is common to the full and the
11744 restricted run times.
11745 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11746 in SSL.Tasking.Init_Tasking_Soft_Links.
11747
11748 * s-solita.adb (Get_Stack_Info): Function moved from
11749 System.Tasking.Initialization because it is common to the full and the
11750 restricted run times.
11751 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11752
11753 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11754
11755 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11756 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11757 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11758 parameter.
11759
11760 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11761 guard to 12K.
11762
11763 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11764
11765 * s-veboop.adb (SU): New named number initialized to
11766 System.Storage_Unit.
11767 (True_Val): The initialization expression is revised to use SU (=
11768 Storage_Unit) rather than assuming 8 for the component size of an
11769 unpacked Boolean array.
11770
11771 2007-08-14 Tristan Gingold <gingold@adacore.com>
11772
11773 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11774
11775 * tb-ivms.c: New file.
11776
11777 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11778
11779 2007-08-14 Geert Bosch <bosch@adacore.com>
11780
11781 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11782 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11783 Add required linker pragmas for automatically linking with the gnalasup
11784 linear algebra support library, and the systems math library.
11785 Rename cdot to cdotu and zdot to zdotu.
11786 Update header comment to describe purpose of package.
11787
11788 2007-08-14 Thomas Quinot <quinot@adacore.com>
11789
11790 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11791 an explicitly specified Associated_Final_Chain, use that list.
11792 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11793 types.
11794 (Expand_N_Package_Declaration): Build dispatch tables of library level
11795 tagged types. Minor code cleanup.
11796
11797 2007-08-14 Vincent Celier <celier@adacore.com>
11798
11799 * gnatchop.adb (Terminate_Program): Remove exception and use
11800 Types.Terminate_Program instead.
11801
11802 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11803 (Find_Program_Name): Added protection against empty name.
11804 (OS_Exit_Through_Exception): New procedure
11805
11806 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11807 (OS_Exit_Default): New procedure that contains the previous
11808 implementation of procedure OS_Exit.
11809 (Final_Value): Remove obsolete Interix stuff.
11810
11811 2007-08-14 Thomas Quinot <quinot@adacore.com>
11812
11813 * g-socket.ads: Reorganize example code so that it also works on
11814 Windows XP.
11815
11816 2007-08-14 Tristan Gingold <gingold@adacore.com>
11817
11818 * g-trasym.ads: AIX now supports symbolic backtraces.
11819
11820 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11821
11822 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11823 units being loaded to detect circularities. A circularity may be
11824 present even if the current chain of pending units to load starts from
11825 a limited_with_clause.
11826
11827 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11828 rather than a boolean flag, in order to detect circularities in
11829 with_clauses.
11830
11831 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11832 than propagating the From_Limited_With flag, in order to handle
11833 properly circularities involving with_clauses.
11834
11835 2007-08-14 Nicolas Setton <setton@adacore.com>
11836
11837 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11838 warnings.
11839
11840 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11841
11842 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11843 to build for libgnala.
11844 libgnat: Add rules to build libgnala.a
11845 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11846 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11847 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11848 kernel run-time lib for VxWorks 6, which would provide a different
11849 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11850 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11851 running ZCX by default.
11852 Add g-sttsne-locking to LynxOS version.
11853 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11854 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11855
11856 * system-darwin-x86.ads: New file.
11857
11858 * Make-lang.in: Delete files before copying onto them, so if they are
11859 read-only, the copy won't fail.
11860 Update dependencies
11861
11862 2007-08-14 Pascal Obry <obry@adacore.com>
11863
11864 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11865 naming scheme.
11866
11867 2007-08-14 Vincent Celier <celier@adacore.com>
11868
11869 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11870 (Gcc): Initialize Gcc_Name at the first call
11871
11872 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11873
11874 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11875 with_clauses of the enclosing unit when analyzing the package
11876 specification of a nested instance.
11877
11878 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11879
11880 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11881 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11882 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11883 layout of N_Allocator.
11884
11885 2007-08-14 Thomas Quinot <quinot@adacore.com>
11886
11887 * rtsfind.adb (Check_RPC): Add PCS version check.
11888
11889 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11890 (Gnat_Free_Software): New function.
11891
11892 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11893 the PCS_Version value from s-parint, used to check that it is consistent
11894 with what exp_dist expects.
11895
11896 * s-parint.ads (PCS_Version): New entity for checking consistency
11897 between exp_dist and PCS.
11898
11899 * gen-soccon.c: (SO_REUSEPORT): New constant.
11900
11901 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11902
11903 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11904 variable Sub_Second to Duration in order to accomodate a larger range
11905 of arithmetic operations.
11906
11907 2007-08-14 Bob Duff <duff@adacore.com>
11908
11909 * g-sttsne-locking.ads: Move comments from spec to body.
11910 * g-sttsne-locking.adb: Move comments from spec to body.
11911 * g-sttsne-vxworks.ads: Removed.
11912 * g-sttsne-vxworks.adb: Removed.
11913
11914 2007-08-11 Ian Lance Taylor <iant@google.com>
11915
11916 * misc.c (gnat_get_alias_set): Change return type to
11917 alias_set_type.
11918
11919 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11920
11921 * decl.c, utils2.c: Fix whitespace in last change.
11922
11923 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11924
11925 * decl.c (compare_field_bitpos): Constify.
11926 * utils2.c (compare_elmt_bitpos): Likewise.
11927
11928 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
11929
11930 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11931 anonymous access type.
11932 (pthread_sigmask): Now take an access sigset_t.
11933
11934 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11935
11936 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11937
11938 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
11939
11940 PR tree-optimization/25737
11941 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11942
11943 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
11944
11945 * trans.c (Attribute_to_gnu): When subtracting an
11946 offset from a pointer, use POINTER_PLUS_EXPR with
11947 NEGATE_EXPR instead of MINUS_EXPR.
11948 (gnat_to_gnu): Likewise.
11949 * utils.c (convert): When converting between
11950 thin pointers, use POINTER_PLUS_EXPR and sizetype
11951 for the offset.
11952 * utils2.c (known_alignment): POINTER_PLUS_EXPR
11953 have the same semantics as PLUS_EXPR for alignment.
11954 (build_binary_op): Add support for the semantics of
11955 POINTER_PLUS_EXPR's operands.
11956 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11957
11958 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
11959
11960 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11961 of get_signed_or_unsigned_type.
11962 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11963
11964 2007-06-11 Bob Duff <duff@adacore.com>
11965 Thomas Quinot <quinot@adacore.com>
11966
11967 * g-stsifd-sockets.adb (Create): Work around strange behavior of
11968 'bind' on windows that causes 'connect' to fail intermittently, by
11969 retrying the 'bind'.
11970 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11971
11972 2007-06-10 Duncan Sands <baldrick@free.fr>
11973
11974 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11975 than to void, for the fields when making a new fat pointer type.
11976 (gnat_substitute_in_type): Now substitute_in_type.
11977 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
11978 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11979 * utils.c (update_pointer_to): Update fat pointers by updating the
11980 dummy node pointers used for the fields.
11981
11982 2007-06-06 Thomas Quinot <quinot@adacore.com>
11983 Bob Duff <duff@adacore.com>
11984
11985 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11986 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11987 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
11988 constant Thread_Blocking_IO, always True by default, set False
11989 on a per-runtime basis.
11990 (Need_Netdb_Buffer): New constant.
11991
11992 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11993 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11994 files.
11995
11996 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11997 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11998 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11999 child package Task_Safe_NetDB
12000 (Host_Error_Messages): Add stub body.
12001 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12002
12003 * g-soccon-mingw.ads: Add Windows-specific constants.
12004 (Need_Netdb_Buffer): New constant.
12005 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
12006 wrapper and import inet_addr(3) from the standard sockets library
12007 directly instead.
12008 (In_Addr): Add alignment clause.
12009 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12010
12011 2007-06-06 Robert Dewar <dewar@adacore.com>
12012
12013 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12014 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
12015 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
12016 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
12017 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
12018 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
12019 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
12020 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
12021 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
12022 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
12023 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
12024 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
12025 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
12026 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12027 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12028 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
12029 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
12030 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
12031 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
12032 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
12033 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
12034 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
12035 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
12036 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
12037 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
12038 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
12039 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
12040 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
12041 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
12042 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
12043 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
12044 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
12045 Unchecked_* by Ada.Unchecked_*
12046
12047 2007-06-06 Robert Dewar <dewar@adacore.com>
12048
12049 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
12050 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
12051 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
12052 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
12053 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12054 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
12055
12056 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
12057 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
12058 s-tasloc.adb, s-tasloc.ads: New files.
12059
12060 2007-06-06 Bob Duff <duff@adacore.com>
12061
12062 * g-expect-vms.adb:
12063 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
12064 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
12065 (Send_Signal, Close): Raise Invalid_Process if the process id is
12066 invalid.
12067 (Pattern_Matcher_Access): Is now a general access type to be able to
12068 use aliased string.
12069
12070 2007-06-06 Thomas Quinot <quinot@adacore.com>
12071 Arnaud Charlet <charlet@adacore.com>
12072
12073 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
12074 (SIGEMT is now used instead of SIGTERM on AIX).
12075
12076 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
12077 (Time_Slice_Supported): Set to True.
12078 Use SIGEMT instead of SIGTERM as SIGADAABORT.
12079
12080 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12081
12082 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
12083 (Time, Time)): Use To_Relative_Time rather than manual calculation to
12084 express the bounds of Duration as Time. Raise Time_Error when the
12085 result is greater or equal to the higher bound of Duration (on the
12086 margin case).
12087 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
12088 Ada_High_And_Leaps.
12089 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
12090 Ada_High_And_Leaps.
12091 ("-" (Time, Time)): Reorder code.
12092 (All_Leap_Seconds): Removed.
12093 (Arithmetic_Operations.Add): Remove sign related kludge.
12094 (Arithmetic_Operations.Difference): Control the leaps seconds processing
12095 with flag Leap_Support.
12096 (Arithmetic_Operations.Subtract): Remove sign related kludge.
12097 (Check_Within_Time_Bounds): New procedure.
12098 (Clock): Control the leap seconds processing with flag Leap_Support.
12099 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
12100 (Formatting_Operations.Split): Control the leap seconds processing with
12101 flag Leap_Support.
12102 (Formatting_Operations.Time_Of): Control the leaps seconds processing
12103 with flag Leap_Support. Adjust the year, month and day (if applicable)
12104 when the value of day seconds designates a new day.
12105 (Split): Use parameter associations for better readability. Integrate
12106 flag Is_Ada_05.
12107 (Time_Of): Use parameter associations for better readability. Integrate
12108 flag Is_Ada_05.
12109
12110 * a-calfor.adb (Split): Use parameter associations for better
12111 readability. Integrate flag Is_Ada_05.
12112 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
12113 better readability. Integrate flag Is_Ada_05.
12114
12115 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12116
12117 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
12118 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
12119 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
12120 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
12121 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
12122 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
12123 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
12124 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
12125 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
12126 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
12127 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
12128 time when entering this routine to detect a backward clock setting
12129 (manual setting or DST adjustment), to avoid waiting for a longer delay
12130 than needed.
12131 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
12132 Remove handling of deferred priority change, and replace by setting the
12133 task priority directly, as required by AI-188.
12134 Update comments.
12135 (Max_Task_Image_Length): New constant.
12136 Replace Warnings (Off) by Unreferenced pragma, cleaner.
12137 (Dynamic_Priority_Support): Removed, no longer needed.
12138 (Poll_Base_Priority_Change): Ditto.
12139 (Set_Ceiling): Add this procedure to change the ceiling priority
12140 associated to a lock. This is a dummy implementation because dynamic
12141 priority ceilings are not supported by the underlying system.
12142
12143 * a-dynpri.adb (Set_Priority): Take into account case where Target is
12144 accepting a RV with its priority boosted.
12145 Remove handling of deferred priority change, and replace by setting the
12146 task priority directly, as required by AI-188.
12147
12148 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
12149 Succeeded = True.
12150 Remove handling of deferred priority change, and replace by setting the
12151 task priority directly, as required by AI-188.
12152 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
12153 of Self_Id earlier.
12154
12155 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
12156 (Poll_Base_Priority_Change): Removed.
12157 Code clean up: use SSL.Current_Target_Exception.
12158
12159 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
12160 to run as this is a potentially dispatching point.
12161 (Call_Synchronous): Use Local_Defer_Abort.
12162 (Callable): Relax assertion.
12163 (Selective_Wait): Relax assertion in case abort is not allowed.
12164 Remove handling of deferred priority change, and replace by setting the
12165 task priority directly, as required by AI-188.
12166
12167 * s-tasuti.adb (Make_Passive): Adjust assertions.
12168 Remove handling of deferred priority change, and replace by setting the
12169 task priority directly, as required by AI-188.
12170
12171 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12172
12173 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12174 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12175 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12176 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12177 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12178 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12179 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12180 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12181 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12182 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12183 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12184 This patch changes the largest non-binary modulus from 2**31-1 to
12185 2**32-1.
12186 (Compiler_System_Version): Removed, no longer used.
12187 Clean up system files by removing flags only used on a single target.
12188 Also remove obsolete flags, only used during bootstrap from system.ads
12189 (Address): Add a pragma Preelaborable_Initialization.
12190
12191 * system-aix.ads: Ditto.
12192 (GCC_ZCX_Support): Set to true.
12193 Update priority range on AIX and map Ada priorities to target
12194 priorities appropriately for different scheduling policies.
12195
12196 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12197
12198 2007-06-06 Vincent Celier <celier@adacore.com>
12199
12200 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12201 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12202
12203 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12204 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12205 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12206 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12207 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12208 MLib.Tgt, containing the default versions of the exported subprograms.
12209 For each platform, create a specific version of the body of new child
12210 package MLib.Tgt.Specific that contains only the body of subprograms
12211 that are different from the default.
12212 (Archive_Builder_Append_Options): New function.
12213
12214 2007-06-06 Matthew Gingell <gingell@adacore.com>
12215
12216 * s-osinte-aix.adb: Map Ada priorities to target priorities
12217 appropriately for different scheduling policies.
12218
12219 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12220
12221 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12222 its C counterpart.
12223 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12224 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12225
12226 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12227
12228 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12229 Noop on VMS, added for interface commonality.
12230
12231 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12232 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12233 Olivier Hainque <hainque@adacore.com>
12234
12235 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12236 renamed expression of a full renaming at toplevel.
12237 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12238 the values the constant is initialized to if it is an N_Allocator.
12239 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12240 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12241 (make_aligning_type): Accept an extra ROOM argument for storage to be
12242 made available before the aligned field, and an extra BASE_ALIGN
12243 argument for callers to pass the alignment guaranteed to be honored for
12244 the whole aligning object. Avoid call to finish_record_type, which only
12245 interferes with the sizes we want to set.
12246 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12247 make_aligning_type for super-aligned objects on stack.
12248 (components_to_record): Pass the adjusted size of the type when creating
12249 fields in the qualified union for the variant part.
12250 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12251 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12252 packed array type.
12253 (maybe_pad_type): Set TYPE_USER_ALIGN.
12254 (make_aligning_type): Likewise.
12255 ALIGN argument is unsigned int.
12256 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12257 (gnat_to_gnu_param): Likewise, for parameters.
12258 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12259 if it is constant and stems from a function call.
12260 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12261 of the record is specified. Adjust accordingly.
12262 (adjust_packed): New static function.
12263 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12264 (components_to_record): Likewise.
12265 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12266 side-effects if the object is deemed constant.
12267 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12268 type instead of merely finalizing it. Tidy.
12269 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12270 <E_Access_Type>: Likewise.
12271 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12272 (defer_debug_level): Delete.
12273 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12274 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12275 type.
12276 <E_Record_Type>: Do not explicitly defer finalizing the type.
12277 Adjust for write_record_type_debug_info renaming.
12278 <E_Subprogram_Type>: Likewise.
12279 Finalize deferred types right after deferred incomplete types are
12280 expanded.
12281 (rest_of_type_decl_compilation): New global function.
12282 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12283 (components_to_record): Propagate the packedness to the fields of the
12284 qualified union type if there is a variant part.
12285 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12286 instead of inline code to adjust the XUT field offsets.
12287 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12288 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12289 and write the debug info if the type derives from a discriminated one.
12290 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12291 <E_Array_Subtype>: Likewise.
12292 <E_String_Literal_Subtype>: Likewise.
12293 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12294 an alignment clause.
12295 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12296 before giving warning.
12297 (prepend_one_attribute_to): New function, helper to prepend an attribute
12298 to an attribute list.
12299 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12300 (prepend_attributes): Likewise.
12301 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12302 <E_Array_Type>: Declare the padding type for the element type, if any.
12303 <E_Array_Subtype>: Likewise.
12304 (defer_limited_with): New variable.
12305 (Gigi_Equivalent_Type): New function.
12306 (gnat_to_gnu_entity): Use it at start and use result throughout.
12307 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12308 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12309 indirection, precompute if unconstrained array to simplify logic, and
12310 use defer_limited_with to defer elaboration of some types from limited
12311 with.
12312 (finalize_from_with_types): New function.
12313
12314 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12315 Eric Botcazou <ebotcazou@adacore.com>
12316 Tristan Gingold <gingold@adacore.com>
12317 Olivier Hainque <hainque@adacore.com>
12318
12319 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12320 adding guard that the entity is an E_Constant before testing presence
12321 of Full_view (and remove unnecessary test that entity is not a type).
12322 For a CONST_DECL used by reference, manually retrieve
12323 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12324 (struct language_function): Move from utils.c to here.
12325 (struct parm_attr): New structure.
12326 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12327 (f_parm_attr_cache): New macro.
12328 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12329 expressions for the 'First, 'Last and 'Length attributes of the
12330 unconstrained array IN parameters.
12331 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12332 Allocate the information structure for the function earlier, as well
12333 as the language-specific part.
12334 If the parameter attributes cache has been populated, evaluate the
12335 cached expressions on entry.
12336 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12337 N_Procedure_Call_Statement and N_Indexed_Component.
12338 (Pragma_to_gnu): Translate inspection_point to an asm statement
12339 containaing a comment and a reference to the object (either its address
12340 for BLKmode or its value).
12341 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12342 to go to DECL_INITIAL. Together with the size constraint relaxation
12343 in create_var_decl, enlarges the set of situations in which an
12344 identifier may be used as an initializer without implying elaboration
12345 code.
12346 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12347 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12348 node.
12349 (maybe_stabilize_reference): Remove lvalues_only parameter.
12350 (gnat_stabilize_reference): Adjust for above change.
12351 (gnat_to_gnu): Do not set location information on the result
12352 if it is a reference.
12353 (add_cleanup): Add gnat_node parameter and set the location of the
12354 cleanup to it.
12355 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12356 (Exception_Handler_to_gnu_zcx): Likewise.
12357 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12358 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12359 the former right after the latter.
12360 (start_stmt_group): Make global.
12361 (end_stmt_group): Likewise.
12362 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12363 vars.
12364 (gnu_program_error_label_stack): Likewise.
12365 (gigi): Initialize them.
12366 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12367 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12368 New cases.
12369 (push_exception_label_stack): New function.
12370 (takes_address): New function.
12371
12372 * utils.c (struct language_function): Move to trans.c from here.
12373 (unchecked_convert): Do not wrap up integer constants in
12374 VIEW_CONVERT_EXPRs.
12375 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12376 the latter for aggregate types, unexpected by later passes, and relax an
12377 arbitrary size constraint on the former.
12378 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12379 to compare the sizes.
12380 (convert_vms_descriptor): When converting to a fat pointer type, be
12381 prepared for a S descriptor at runtime in spite of a SB specification.
12382 (shift_unc_components_for_thin_pointers): New function.
12383 (write_record_type_debug_info): For variable-sized fields, cap the
12384 alignment of the pointer to the computed alignment.
12385 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12386 If REP_LEVEL is 2, do not compute the sizes.
12387 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12388 (build_unc_object_type): Likewise.
12389 (declare_debug_type): New function.
12390
12391 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12392
12393 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12394 no statement is expandable anymore.
12395 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12396 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12397 when the user requested it explicitely.
12398 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12399 to 0 for Ada.
12400 (get_alias_set): Return alias set 0 for a type if
12401 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12402
12403 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12404 (DECL_FUNCTION_STUB): New accessor macro.
12405 (SET_DECL_FUNCTION_STUB): New setter macro.
12406
12407 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12408
12409 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12410 declarations.
12411
12412 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12413
12414 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12415 Rename to Abort_Task_Interrupt to be able to keep the same interface
12416 as the rest of the targets.
12417
12418 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12419 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12420
12421 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12422 New files.
12423
12424 2007-06-06 Robert Dewar <dewar@adacore.com>
12425
12426 * a-chahan.ads: Remove obsolescent pragmas
12427
12428 * a-chlat1.ads: Minor reformatting
12429
12430 2007-06-06 Robert Dewar <dewar@adacore.com>
12431
12432 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12433 for Errout
12434
12435 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12436 implementation
12437
12438 * errout.ads (Finalize): Changed interface
12439 (Output_Messages): New procedure
12440 (Compilation_Errors): New Interface
12441
12442 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12443 Finalize/Output_Messages interface for Errout
12444 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12445 Errout.
12446
12447 2007-06-06 Thomas Quinot <quinot@adacore.com>
12448 Olivier Hainque <hainque@adacore.com>
12449 Robert Dewar <dewar@adacore.com>
12450
12451 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12452 check.
12453 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12454 propagation starts, to let debuggers know about the event in a reliable
12455 fashion.
12456 (Local_Raise): Moved to System.Exceptions
12457 More convenient to have this as a separate unit
12458
12459 * s-except.adb, s-except.ads: New files.
12460
12461 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12462 Debug_Unhandled_Exception in System.Exceptions where it belongs
12463 together with a couple of other debug helpers.
12464 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12465 the former Unhandled_Exception.
12466
12467 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12468 (Warn_No_Exception_Propagation): New procedure
12469 (Warn_If_No_Propagation): Rewritten for new warning generation
12470 (Expand_Exception_Handlers): New warning generation
12471 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12472 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12473 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12474 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12475 even if restriction is set (makes life easier in Check_Returns)
12476 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12477 checking exception identities.
12478 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12479 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12480 block for handler (used by Check_Returns)
12481 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12482 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12483 remove all exception handlers when optimizing local raise statements.
12484 (Find_Local_Handler): Use Get_Renamed_Entity
12485 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12486 marked analyzed after expanding exception handlers, do not generate
12487 redundant cleanup actions, because they have been constructed already.
12488
12489 2007-06-06 Thomas Quinot <quinot@adacore.com>
12490
12491 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12492 presence of this categorization pragma is mandated by the language.
12493 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12494 for this type.
12495
12496 2007-06-06 Vincent Celier <celier@adacore.com>
12497 Robert Dewar <dewar@adacore.com>
12498
12499 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12500 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12501 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12502 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12503 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12504 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12505 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12506 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12507 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12508 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12509 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12510 ali.ads, ali.adb:
12511 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12512 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12513 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12514 Use variables of types File_Name_Type and Unit_Name_Type in error
12515 messages.
12516 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12517 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12518 here.
12519 Define flags Flag217-Flag230 with associated subprograms
12520 (Flag_Word5): New record type.
12521 (Flag_Word5_Ptr): New access type.
12522 (To_Flag_Word5): New unchecked conversion.
12523 (To_Flag_Word5_Ptr): Likewise.
12524 (Flag216): New function.
12525 (Set_Flag216): New procedure.
12526
12527 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12528
12529 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12530 instead of 'Size.
12531
12532 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12533
12534 2007-06-06 Javier Miranda <miranda@adacore.com>
12535
12536 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12537 the package.
12538 (Object_Specific_Data_Array): This is now internal to the package.
12539 (Object_Specific_Data): This is now internal to the package.
12540 (Select_Specific_Data_Element): This is now internal to the package.
12541 (Select_Specific_Data_Array): This is now internal to the package.
12542 (Select_Specific_Data): This is now internal to the package.
12543 (Offset_To_Top_Function_Ptr): This is now public.
12544 (To_Offset_To_Top_Function_Ptr): Removed.
12545 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12546 local to subprogram Offset_To_Top.
12547 (Predefined_DT): Removed.
12548 (Typeinfo_Ptr): Removed.
12549 (OSD): This function is now internal to this package.
12550 (SSD): This function is now internal to this package.
12551 (DT): New function that displaces the pointer to the table of primitives
12552 to get access to the enclosing wrapper record.
12553 (IW_Membership): Code cleanup.
12554 (Offset_To_Top): Code cleanup.
12555 (Predefined_DT): Removed.
12556 (Register_Interface_Tag): Removed.
12557 (Set_Interface_Table): Removed.
12558 (Set_Offset_Index): Removed.
12559 (Set_Offset_To_Top): Code cleanup.
12560 (Set_OSD): Removed.
12561 (Set_Signature): Removed.
12562 (Set_SSD): Removed.
12563 (Set_Tagged_Kind): Removed.
12564 (Typeinfo_Ptr): Removed.
12565 (TSD): Removed.
12566 (Displace): Add missing check on null actual.
12567
12568 * exp_disp.ads, exp_disp.adb
12569 (Select_Expansion_Utilities): Removed.
12570 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12571 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12572 the interface requires a new parameter.
12573 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12574 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12575 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12576 Done to remove package Select_Expansion_Utilities.
12577 (Make_DT): New implementation for statically allocated dispatch tables.
12578 (Make_Secondary_DT): Moved to the scope of Make_DT.
12579 (Register_Primitive): Code cleanup plus incoporate the use of the new
12580 function DT_Address_Attribute.
12581 (Expand_Interface_Thunk): The profile of this subprogram has been
12582 changed to return the Thunk_Id and the corresponding code.
12583 (Fill_DT_Entry): Removed. Its functionality is now provided by
12584 subprogram Register_Primitive.
12585 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12586 subprogram Register_Primitive.
12587 (Register_Primitive): New subprogram that incorporates the previous
12588 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12589 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12590 was only required to call Make_DT_Access_Action, which is now removed.
12591 (Ada_Actions): Removed
12592 (Action_Is_Proc): Removed
12593 (Action_Nb_Arg): Removed
12594 Replace all the calls to Make_DT_Access_Action by direct calls to
12595 Make_Procedure_Call_Statement or Make_Function_Call.
12596 (Set_DTC_Entity_Value): New subprogram.
12597 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12598 (Expand_Interface_Thunk): Add missing support for primitives that are
12599 functions with a controlling result (case in which there is no need
12600 to generate the thunk).
12601
12602 * exp_atag.ads, exp_atag.adb
12603 (Build_DT): New subprogram that displaces the pointer to reference the
12604 base of the wrapper record.
12605 (Build_Typeinfo_Offset): Removed.
12606 (RTE_Tag_Node): Removed.
12607 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12608 (Build_Get_RC_Offset): Removed.
12609 (Build_Inherit_Predefined_Prims): Removed.
12610 (Build_Inherit_TSD: Removed.
12611 (Build_New_TSD): Removed.
12612 (Build_Set_External_Tag): Removed.
12613 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12614 (Build_Set_Prim_Op_Address): Add documentation.
12615 (Build_Set_TSD): Removed.
12616
12617 * rtsfind.ads, rtsfind.adb
12618 (Load_Fail): If load fails and we are not in configurable run-time
12619 mode, then raise Unrecoverable_Error.
12620 (Text_IO_Kludge): Generate an error message if a run-time library is
12621 not available in a given run-time (ie. zfp run-time).
12622 (RTE_Record_Component): Add code to check that the component we search
12623 for is not found in two records in the given run-time package.
12624 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12625 (RE_DT_Predef_Prims_Offset): New entity
12626 (RE_Static_Offset_To_Top): New entity
12627 (RE_HT_Link): New entity.
12628 (System_Address_Image): Addition of this run-time package.
12629 (RE_Address_Image): New entity.
12630 (RE_Abstract_Interface): Removed.
12631 (RE_Default_Prim_Op_Count): Removed.
12632 (RE_DT_Entry_Size): Removed.
12633 (RE_DT_Min_Prologue_Size): Removed.
12634 (RE_DT_Prologue_Size): Removed.
12635 (RE_Ifaces_Table_Ptr): Removed.
12636 (RE_Interface_Data_Ptr): Removed.
12637 (RE_Type_Specific_Data): Removed.
12638 (RE_Primary_DT): Removed.
12639 (RE_Register_Interface_Tag): Removed.
12640 (RE_Set_Offset_Index): Removed.
12641 (RE_Set_OSD): Removed.
12642 (RE_Set_SSD): Removed.
12643 (RE_Set_Signature): Removed.
12644 (RE_Set_Tagged_Kind): Removed.
12645 (RE_Address_Array): New entity.
12646 (RE_DT): New entity.
12647 (RE_Iface_Tag): New entity.
12648 (RE_Interfaces_Table): New entity.
12649 (RE_No_Dispatch_Table): New entity.
12650 (RE_NDT_Prims_Ptr): New entity.
12651 (RE_NDT_TSD): New entity.
12652 (RE_Num_Prims): New entity.
12653 (RE_Offset_To_Top_Function_Ptr): New entity.
12654 (RE_OSD_Table): New entity.
12655 (RE_OSD_Num_Prims): New entity.
12656 (RE_Predef_Prims): New entity
12657 (RE_Predef_Prims_Table_Ptr): New entity.
12658 (RE_Primary_DT): New entity.
12659 (RE_Signature): New entity.
12660 (RE_SSD): New entity.
12661 (RE_TSD): New entity.
12662 (RE_Type_Specific_Data): New entity.
12663 (RE_Tag_Kind): New entity.
12664
12665 2007-06-06 Thomas Quinot <quinot@adacore.com>
12666
12667 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12668 C imported variable.
12669 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12670 on entry.
12671
12672 2007-06-06 Robert Dewar <dewar@adacore.com>
12673
12674 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12675 character
12676
12677 2007-06-06 Vincent Celier <celier@adacore.com>
12678
12679 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12680 is room for at least one digit and the minus sign.
12681 (Put.Put_Character): Never put a character outside of the range of
12682 string To.
12683
12684 2007-06-06 Olivier Hainque <hainque@adacore.com>
12685 Eric Botcazou <ebotcazou@adacore.com>
12686
12687 * utils2.c (build_allocator): Provide the extra arguments to
12688 make_aligning_type for super-aligned objects allocated from the default
12689 pool. Leave enough room for a pointer before the aligning field, and
12690 store the system's allocator return value there.
12691 (build_call_alloc_dealloc): When releasing a super-aligned object,
12692 retrieve the system's allocator return value from where build_allocator
12693 has stored it, just ahead of the adjusted address we are passed.
12694 (build_call_raise): Handle properly the generation of line numbers when
12695 the node is marked No_Location.
12696 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12697 by using DECL_UID on ties.
12698 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12699 main variant.
12700 (build_call_raise): Handle converting exception into goto; support new
12701 argument KIND.
12702 (build_component_ref): Add new arg to build_call_raise.
12703
12704 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12705
12706 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12707 "." in the case of nnn.xxx when nnn terminates with an underscore.
12708 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12709
12710 2007-06-06 Robert Dewar <dewar@adacore.com>
12711
12712 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12713
12714 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12715 Vincent Celier <celier@adacore.com>
12716 Robert Dewar <dewar@adacore.com>
12717
12718 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12719 needed.
12720 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12721 ((destructor)) for adafinal, even when switch -a is used.
12722 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12723 used.
12724 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12725 Output_Linker_Option_List is set. Suppress this formatting when
12726 Zero_Formatting is set.
12727 Add case for CLI_Target.
12728 (System_Restrictions_Used): New flag, used to avoid generating with of
12729 System_Restrictions and initialization of the data unless there is
12730 some use of System.Restrictions in the partition.
12731 (Check_System_Restrictions_Used): New procedure
12732
12733 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12734 since we only with this unit in the binder file if it is used elsewhere
12735 in the partition.
12736
12737 2007-06-06 Vincent Celier <celier@adacore.com>
12738
12739 * bindusg.adb: Add line for @<response file>
12740 Add lines for new switches -R and -Z
12741
12742 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12743 hierarchy in the list of files of the closure when -R is used
12744 (Gnatbind): Accept arguments starting with '@' to indicate response
12745 files and take the arguments from the response files.
12746 If List_Closure is set, display the referenced files
12747
12748 2007-06-06 Javier Miranda <miranda@adacore.com>
12749 Robert Dewar <dewar@adacore.com>
12750 Ed Schonberg <schonberg@adacore.com>
12751
12752 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12753 which the address-clause is applied to in-mode actuals (allowed by
12754 13.1(22)).
12755 (Apply_Discriminant_Check): Do not generate a check if the type is
12756 constrained by a current instance.
12757 (Activate_Division_Check): New procedure
12758 (Activate_Overflow_Check): New procedure
12759 (Activate_Range_Check): New procedure
12760 Call these new Activate procedures instead of setting flags directly
12761 (Apply_Array_Size_Check): Removed, no longer needed.
12762 Code clean up: remove obsolete code related to GCC 2.
12763 (Get_E_Length): Protect against bomb in case scope is standard
12764 (Selected_Range_Checks): If the node to be checked is a conversion to
12765 an unconstrained array type, and the expression is a slice, use the
12766 bounds of the slice to construct the required constraint checks.
12767 Improve NOT NULL error messages
12768 (Apply_Constraint_Check): If the context is a null-excluding access
12769 type, diagnose properly the literal null.
12770
12771 2007-06-06 Pascal Obry <obry@adacore.com>
12772
12773 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12774 and the corresponding .deps file.
12775 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12776 src directory. Minor code-clean-up. Use untouched casing for files
12777 read into the library src dir.
12778 (Clean_Library_Directory): Idem.
12779 (Parse_Cmd_Line): Accept new switch -aP
12780
12781 2007-06-06 Javier Miranda <miranda@adacore.com>
12782 Ed Schonberg <schonberg@adacore.com>
12783 Robert Dewar <dewar@adacore.com>
12784 Eric Botcazou <ebotcazou@adacore.com>
12785 Arnaud Charlet <charlet@adacore.com>
12786
12787 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12788 applicable to types that have the With_Type flag set. Returns the
12789 non-limited view of the type, if available, otherwise the type itself.
12790 For class-wide types, there is no direct link in the tree, so we have
12791 to retrieve the class-wide type of the non-limited view of the Etype.
12792 New attributes Static_Initialization and Static_Elaboration_Desired.
12793 Remove the pragma Thread_Body, and the associated flag
12794 Is_Thread_Body in entities, and all related code.
12795 (Suppress_Value_Tracking_On_Call): New flag
12796 E_Exception has Esize and Alignment fields
12797 (Universal_Aliasing): New function.
12798 (Set_Universal_Aliasing): New procedure.
12799 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12800 (Check_Nested_Access): New procedure.
12801 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12802 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12803 (Related_Interface): New attribute. Present in dispatch table pointer
12804 components of records. Set to point to the entity of the corresponding
12805 interface type.
12806 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12807 (Original_Access_Type): Remove, not needed.
12808 (Root_Type): Handle properly subtypes of class-wide-types.
12809 Update comments.
12810
12811 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12812 class-wide types visible through limited-with clauses.
12813 (Try_Primitive_Operation): When examining all primitive operations of a
12814 tagged type, do not consider subprograms labeled as hidden unless they
12815 belong to a private generic type with a tagged parent.
12816 (Try_Object_Operation): Extensive rewriting, to handle properly various
12817 overloading cases, when several ancestors may have class-wide operations
12818 that are possible candidates, and when the overloaded functions return
12819 array types and have defaulted parameters so that the call may be
12820 interpreted as an indexing.
12821 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12822 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12823 successive actuals before analyzing the call itself.
12824 (Try_Primitive_Operation): A primitive operation is compatible with the
12825 prefix if the prefix has a synchronized type and the type of the formal
12826 is its corresponding record, as can be the case when the primitive
12827 operation is declared outside of the body of the type.
12828 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12829 perform homonym traversal, looking for class-wide operation matches
12830 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12831 access parameters are now restricted to anonymous access types.
12832 (Mark_Allocator): An allocator with a discriminant association parent is
12833 a coextension.
12834 (Try_One_Prefix_Interpretation): If the type of the object is
12835 incomplete, as can be happen when it is a limited view obtained through
12836 a limited_with_clause, the selected component is not part of a prefixed
12837 call.
12838 (Complete_Object_Operation): Diagnose properly an object that is not
12839 aliased when the corresponding controlling formal is an access
12840 parameter.
12841 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12842 ambiguous calls in prefixed notation, where two primitives differ only
12843 in that the controlling argument of one is an access parameter.
12844
12845 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12846 whether a function that returns an unconstrained type can be inlined.
12847 (Process_Formals): Diagnose properly the illegal use of an incomplete
12848 type in the profile of an access_to_subprogram declaration.
12849 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12850 operations are attached to the corresponding record.
12851 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12852 When processing a primitive of a concurrent type which implements an
12853 interface change the type of all controlling formals to that of the
12854 corresponding record type.
12855 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12856 to determine the tagged type to which a primitive belongs.
12857 (Check_Conventions): Capture condition to ignore a primitive operation
12858 (which is shared between the loop in Check_Conventions and the one in
12859 Check_Convention) in a new local function Skip_Check.
12860 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12861 confusion with Check_Conventions' own Prim_Op local variable.
12862 (Create_Extra_Formals): Test for a tagged result type rather than a
12863 controlling result when determining whether to add a BIP_Alloc_Form
12864 formal and a BIP_Final_List formal to the function.
12865 (Check_Conformance); For parameters that are anonymous access types,
12866 subtype conformance requires that the not null and the constant
12867 indicators must match
12868 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12869 to retrieve the appropriate type when processing a concurrent type
12870 declared within a generic. Minor comment reformatting. Change invocation
12871 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12872 mitive.
12873 (Analyze_Subprogram_Body): If the return type of a function is an
12874 anonymous access to the limited view of a class-wide type, and the
12875 non-limited view of the type is available, update the type of the
12876 function so that code can be generated.
12877 (Process_Formals): In case of access-subtype itype whose designated
12878 type is also an itype (situation that happens now with access to
12879 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12880 attribute to avoid backend problems.
12881 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12882 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12883 anonymous types' designated types are same before testing
12884 Subtypes_Statically_Match.
12885 (Create_Extra_Formals): Test for a named access parameter that is a
12886 controlling formal as an additional condition for adding an
12887 accessibility level formal. This can occur in the subp type created for
12888 dispatching calls in Expand_Dispatching_Call, and allows calling
12889 Create_Extra_Formals from that procedure rather than special-casing the
12890 extra formals there.
12891 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12892 when the function has a controlling result.
12893 (Check_Returns): Add much more knowledge of the optimization of local
12894 raise statements to gotos, to retain proper warnings in this case.
12895 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12896 nodes when looking for last statement.
12897
12898 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12899 class-wide types visible through limited with clauses.
12900 (Add_One_Interp): If the operands are anonymous access types, the
12901 predefined operator on universal_access is immediately visibles
12902 (Find_Unique_Type): Handle anonymous access to subprogram types just as
12903 other anonymous access types.
12904 (Disambiguate): Take into account CIL convention.
12905 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12906
12907 2007-06-06 Robert Dewar <dewar@adacore.com>
12908
12909 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12910 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12911 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12912 Fix lower bound of tables.
12913 Add rep clauses.
12914
12915 * nlists.adb: Ditto.
12916 (Prev_Node, Next_Node): Change index type to Int so that it properly
12917 covers the range First_Node_Id - 1 up.
12918
12919 2007-06-06 Javier Miranda <miranda@adacore.com>
12920 Ed Schonberg <schonberg@adacore.com>
12921 Bob Duff <duff@adacore.com>
12922 Hristian Kirtchev <kirtchev@adacore.com>
12923
12924 * exp_aggr.ads, exp_aggr.adb:
12925 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12926 in extension aggregates.
12927 (Flatten): Other conditions being met, an aggregate is static if the
12928 low bound given by component associations is different from the low
12929 bound of the base index type.
12930 (Packed_Array_Aggregate_Handled): If the component type is itself a
12931 packed array or record, the front-end must expand into assignments.
12932 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12933 Init_Pr, instead of Ancestor_Is_Expression.
12934 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12935 coextension chain root, either generate a list controller or use the
12936 already existing one.
12937 (Static_Array_Aggregate): New procedure to construct a positional
12938 aggregate that can be handled by the backend, when all bounds and
12939 components are compile-time known constants.
12940 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12941 types covering interface types into assignments.
12942 (Replace_Type): move to Build_Record_Aggr_Code.
12943 (Expand_Record_Aggr_Code): if the target of the aggregate is an
12944 interface type, convert to the definite type of the aggregate itself,
12945 so that needed components are visible.
12946 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12947 components and the context is an extended return statement do not
12948 create a transient block for it, to prevent premature finalization
12949 before the return is executed.
12950 (Gen_Assign): Do not generate a call to deep adjust routine if the
12951 component type is itself an array of controlled (sub)-components
12952 initialized with an inner aggregate.
12953 (Component_Check): New name for Static_Check. This name is now more
12954 appropriate, and documentation is added which was missing.
12955 (Component_Check): Add test for bit aligned component value
12956 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12957 Tagged_Comps, name is more appropriate given added function below.
12958 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12959
12960 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12961 Javier Miranda <miranda@adacore.com>
12962 Robert Dewar <dewar@adacore.com>
12963
12964 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12965 Terminated: Add unchecked type conversion from System.Address to
12966 System.Tasking.Task_Id when calling the predefined primitive
12967 _disp_get_task_id.
12968 Disable new Ada 05 accessibility check for JVM.NET targets, which
12969 cannot be implemented in a practical way.
12970 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12971 the sources always references the tag of the actual object. Therefore,
12972 if 'Tag is applied in the sources to class-wide interface objects we
12973 generate code that displaces "this" to reference the base of the object.
12974 (Expand_N_Attribute_Reference, case Size): Return specified size if
12975 known to front end.
12976 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12977 has code that displaces the pointer of the object to manage interface
12978 types. However this code must not be executed when the prefix is a
12979 subprogram. This bug caused the wrong expansion of the internally
12980 generated assignment that fills the dispatch table when the primitive
12981 is a function returning a class-wide interface type.
12982 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12983 Set_Attribute_Name for Name_Unaligned_Valid.
12984
12985 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12986 Gary Dismukes <dismukes@adacore.com>
12987
12988 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12989 If the initialization is the equivalent aggregate of the initialization
12990 procedure of the type, do not remove it.
12991 (Expand_N_Attribute_Definition_Clause): Exclude access variables
12992 initialized to null from having their expression reset to empty and
12993 note this exception in the comment.
12994
12995 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12996 Robert Dewar <dewar@adacore.com>
12997 Ed Schonberg <schonberg@adacore.com>
12998 Gary Dismukes <dismukes@adacore.com>
12999
13000 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
13001 Add "with" and "use" clauses for Sem_Attr.
13002 (Expand_Current_Value): Do not replace occurences of attribute
13003 references where the prefix must be a simple name.
13004
13005 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
13006 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
13007 Attribute_Requires_Simple_Name_Prefix.
13008 (Name_Modifies_Prefix): Body of new function.
13009 (Requires_Simple_Name_Prefix): Body of new function.
13010 (Resolve_Attribute, case Access): Improve error message for case of
13011 mismatched conventions.
13012 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
13013 incomplete type.
13014 (Analyze_Attribute, case 'Access): If the type of the prefix is a
13015 constrained subtype for a nominal unconstrained type, use its base type
13016 to check for conformance with the context.
13017 (Resolve_Attribute): Remove test of the access type being associated
13018 with a return statement from condition for performing accessibility
13019 checks on access attributes, since this case is now captured by
13020 Is_Local_Anonymous_Access.
13021 (Analyze_Access_Attribute): Set Address_Taken on entity
13022 (Analyze_Attribute, case Address): Set Address_Taken on entity
13023 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
13024 validating an access attribute whose prefix is a current instance.
13025 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
13026 applied to dispatching operations, if freezing is required then we set
13027 the attribute Has_Delayed_Freeze in the prefix's entity.
13028 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
13029 current scope if access of local subprogram taken
13030 (Analyze_Access_Attribute): Check legality of self-reference even if the
13031 expression comes from source, as when a single component association in
13032 an aggregate has a box association.
13033 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
13034 the prefix if it is a protected operation and the attribute is
13035 Unrestricted_Access.
13036 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
13037 reference to the base type of the context, to force a constraint check
13038 when the context is an access subtype with an explicit constraint.
13039 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
13040 node is rewritten as an interface conversion. leave unanalyzed after
13041 resolution, to ensure that type checking against the context will take
13042 place.
13043
13044 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13045 Javier Miranda <miranda@adacore.com>
13046 Robert Dewar <dewar@adacore.com>
13047
13048 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
13049 wrapper when the full view of the controlling type of an inherited
13050 function that dispatches on result implements interfaces.
13051 (Expand_N_Object_Declaration): In cases where the type of the
13052 declaration is anonymous access, create finalization list for it.
13053 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
13054 if the object has no explicit initialization, to match description of
13055 functionality of pragam Persistent_BSS.
13056 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
13057 new function to build static aggregates, to replace initialization call
13058 when static initialization is desired.
13059 (Freeze_Type): Generate a list controller for an access type whenever
13060 its designated type has controlled anonymous access discriminants.
13061 (Build_Equivalent_Aggregate): New procedure to compute a static
13062 aggregate to be used as default initialization for composite types,
13063 instead of a generating a call to the initialization procedure for the
13064 type.
13065 (Build_Initialization_Call): When available, replace a call to the
13066 initialization procedure with a copy of the equivalent static aggregate
13067 for the type.
13068 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
13069 declarations for objects of a class-wide interface type, rather than
13070 just identifiers, to prevent visibility problems.
13071 (Expand_N_Object_Declaration): When expanding the declaration for an
13072 object of a class-wide interface type, preserve the homonym chain of
13073 the original entity before exchanging it with that of the generated
13074 renaming declaration.
13075 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
13076 active, because there is no way to handle the exception.
13077 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
13078 to do a minimum decoration of the Access_Disp_Table list.
13079 (Expand_Record_Controller): Avoid the addition of the controller between
13080 the component containing the tag of a secondary dispatch table and its
13081 adjacent component that stores the offset to the base of the object.
13082 This latter component is only generated when the parent type has
13083 discriminants ---documented in Add_Interface_Tag_Components).
13084 (Apply_Array_Size_Check): Removed, no longer needed.
13085 (Expand_N_Full_Type_Declaration): If the type has anonymous access
13086 components, create a Master_Entity for it only if it contains tasks.
13087 (Build_Init_Procedure): Suppress the tag assignment compiling under
13088 no run-time mode.
13089 (Freeze_Record_Type): Remove code associated with creation of dispatch
13090 table.
13091 (Init_Secondary_Tags): Update type of actuals when generating calls to
13092 Ada.Tags.Set_Offset_To_Top
13093 (Stream_Operation_OK): Disable use of streams compiling under no
13094 run-time mode
13095 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
13096 if Has_Init_Expression set.
13097 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
13098 Register_Primitive, which provides the same functionality.
13099 (Requires_Init_Proc): Return false in case of interface types.
13100 (Add_Secondary_Tables): Use the new attribute Related_Interface to
13101 cleanup the code.
13102 (Predefined_Primitive_Freeze): Do not assume that an internal entity
13103 is always associated with a predefined primitive because the internal
13104 entities associated with interface types are not predefined primitives.
13105 Therefore, the call to Is_Internal is replaced by a call to the
13106 function Is_Predefined_Dispatching_Operation.
13107 (Make_Eq_If): When generating the list of comparisons for the
13108 components of a given variant, omit the controller component that is
13109 present if the variant has controlled components.
13110
13111 2007-06-06 Javier Miranda <miranda@adacore.com>
13112 Hristian Kirtchev <kirtchev@adacore.com>
13113 Bob Duff <duff@adacore.com>
13114
13115 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
13116 handle the creation of finalization lists and calls for nested
13117 coextensions when the root of the chains is part of a return statement.
13118 (Inside_A_Return_Statement): New function inside Complete_Coextension_
13119 Finalization.
13120 (Expand_Record_Equality): Skip components that are interface types.
13121 (Displace_Allocator_Pointer): Add missing support for interface subtypes
13122 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
13123 with Rewrite_Coextension. Change the condition for detecting coextension
13124 root nodes.
13125 (Is_Local_Access_Discriminant): Removed.
13126 (Rewrite_Coextension): New routine which rewrites a static coextension
13127 as a temporary and uses its unrestricted access in the construction of
13128 the outer object.
13129 (Complete_Coextension_Finalization): New routine. Generate finalization
13130 attachment calls to all delayed coextensions.
13131 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
13132 the allocator is not a coextension itself and has delayed coextensions.
13133 If the current allocator is controlled, but also a coextension, delay
13134 the generation of the finalization attachment call.
13135 Rename local variable "Node" to "Nod" in order to avoid confusion with
13136 "Elists.Node".
13137 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
13138 limited types that are not inherently limited. Such an allocator is
13139 illegal, but is generated by the expander for a return statement, to
13140 copy the result onto the secondary stack. This is the only case where a
13141 limited object can be copied. Generate code to displace the pointer
13142 to the object if the qualified expression is a class-wide interface
13143 object. Such displacement was missing and hence the copy of the object
13144 was wrong.
13145 (Apply_Accessibility_Check): Handle allocated objects initialized in
13146 place.
13147 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
13148 and Expand_Allocator_Expression. Allocating class-wide interface objects
13149 this routine displaces the pointer to the allocated object to reference
13150 the component referencing the corresponding secondary dispatch table.
13151 Expand_Allocator_Expression): Add missing support to allocate class-wide
13152 interface objects initialized with a qualified expression.
13153 (Get_Allocator_Final_List): Test for an anonymous access type that is a
13154 function result type, and use the finalization list associated with the
13155 function scope in that case (such an anonymous type should not be
13156 treated like an access parameter's type).
13157
13158 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13159 Gary Dismukes <dismukes@adacore.com>
13160 Javier Miranda <miranda@adacore.com>
13161
13162 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
13163 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
13164 required exception handler.
13165 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
13166 properly the case of a function whose return type is a limited
13167 class-wide interface type. Modify the code of the accessibility
13168 check to handle class-wide interface objects. In this case we need to
13169 displace "this" to reference the primary dispatch table to get access
13170 to the TSD of the object (to evaluate its accessibility level).
13171 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13172 rather than a controlling result as one of the conditions for
13173 generating tests of the implicit BIP_Alloc_Form formal. The
13174 initialization assignment is also handled according to whether the
13175 result is tagged instead of controlling.
13176 In the case where the init assignment is inserted in the "then" part of
13177 the allocation conditional, rewrite the target to be a dereference of
13178 the implicit BIP_Object_Access formal.
13179 If the returned value is unconstrained and created on the secondary
13180 stack, mark the enclosing block and function so that the secondary
13181 stack is not reclaimed on return.
13182 Treat returns from functions with controlling results similarly to
13183 returns from functions with unconstrained result subtypes.
13184 If the object returned is unconstrained, and an allocator must be
13185 created for it, analyze the allocator once the block for the extended
13186 return is installed, to ensure that finalizable components
13187 of the expression use the proper finalization list. Guard the call to
13188 Move_Final_List with a check that there is something to finalize.
13189 (Make_Tag_Ctrl_Assignment): Use "old" handling
13190 of controlled type assignment for virtual machines, since new code uses
13191 unsupported features (such as direct access to bytes in memory).
13192
13193 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13194 Ed Schonberg <schonberg@adacore.com>
13195
13196 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13197 accessibility actual, check for the case of an aliased object that has
13198 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13199 we fall into processing for the attribute rather than the name of the
13200 object.
13201 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13202 formal has its address taken in the body, create a temporary to capture
13203 value. If the return type is a limited interface, do not treat the
13204 return value as Controlled.
13205 (Is_In_Place_Function): If the return type is a limited interface,
13206 treat as returning in place. The actual returned object may not always
13207 be limited, but the caller has to assume that it is returned in place.
13208 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13209 context of an allocator, use the correct finalization chain (that is,
13210 the chain belonging to the access type, rather than the chain belonging
13211 to the current scope).
13212 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13213 result type rather than a controlling result as a precondition for
13214 adding an allocation form actual to a build-in-place call.
13215 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13216 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13217 primitive in the dispatch tables. This work is now done by Make_DT when
13218 the type is frozen.
13219 (Register_Predefined_DT_Entry): Removed.
13220 (Add_Return): If end label is not present, use sloc of last statement
13221 for generated return statement in procedure, for better gdb behavior
13222 on expanded code.
13223 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13224 object address nodes to ensure proper processing by routines like
13225 Insert_After*.
13226 (Expand_Call): Fix generation of validity check for parameter
13227 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13228 the allocation form parameter if the result subtype is constrained,
13229 except when the function has a controlling result.
13230 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13231 rather than Is_Controlled and Has_Controlled_Component, since we want to
13232 include class-wide result types in this treatment. Also test for a
13233 controlling result, since that also requires passing a finalization
13234 list.
13235 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13236 even when the result subtype is constrained, to handle calls involving
13237 controlling results.
13238 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13239 is now called even when the result subtype is constrained, to handle
13240 calls involving controlling results.
13241 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13242 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13243 now performs the test).
13244 (Make_Build_In_Place_Call_In_Object_Declaration):
13245 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13246 constrained, to handle calls involving controlling results.
13247 (Add_Return): Accomodate rewritten pattern from local raise to goto
13248 transformation, so that we still recognize an transfer statement
13249 and do the right thing here in that case.
13250 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13251 and end of subprogram code.
13252 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13253 support for primitives that are functions (without formals) with a
13254 controlling result.
13255 (Inherited_From_Formal): If the actual subtype has not generic parent
13256 type, it is not an actual for a formal derived type, and there is no
13257 operation to inherit from the formal.
13258
13259 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13260 Thomas Quinot <quinot@adacore.com>
13261
13262 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13263 inserted cleanup code appropriately for GDB use.
13264 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13265 exception handler for Deep_Adjust or Deep_Finalize.
13266 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13267 Raise_From_Controlled_Operation is available, use a call to that
13268 subprogram instead of a plain "raise Program_Error" node to raise
13269 Program_Error if an exception is propagated from an Adjust or Finalize
13270 operation.
13271 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13272 appears in the optional statement list of a triggering alternative, the
13273 scope actions can be inserted directly there, and not in the list that
13274 includes the asynchronous select itself.
13275
13276 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13277 Robert Dewar <dewar@adacore.com>
13278 Hristian Kirtchev <kirtchev@adacore.com>
13279
13280 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13281 generated exception handler appropriately when debugging generated code.
13282 Deal properly with No_Exception_Propagation restriction mode.
13283 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13284 System.Address to System.Tasking.Task_Id when processing the result of
13285 the predefined primitive _disp_get_task_id.
13286 (Expand_N_Asynchronous_Select): Clarify comment.
13287 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13288 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13289 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13290 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13291 privals and for generated call to Complete_Entry_Body, for better gdb
13292 behavior.
13293 (Copy_Result_Type): Utility to construct a parameter and result profile
13294 for protected functions whose return type is an anonymous access to
13295 subprogram.
13296 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13297 call the above.
13298 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13299 point when the local-raise-to-goto transformation has taken place.
13300
13301 2007-06-06 Javier Miranda <miranda@adacore.com>
13302 Nicolas Setton <setton@adacore.com>
13303
13304 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13305 functionality when the backend is generating code.
13306 Otherwise any serious error
13307 reported by the backend calling the frontend routine Error_Msg
13308 changes the Compilation_Mode to Check_Semantics, disables the
13309 functionality of this routine and causes the generation of
13310 spureous additional errors.
13311
13312 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13313 debugging information now generated by the compiler for fat-pointer
13314 types.
13315 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13316 DWARF2/3.
13317 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13318
13319 2007-06-06 Thomas Quinot <quinot@adacore.com>
13320
13321 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13322 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13323 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13324 For a remote call to a function with a classwide return type, apply an
13325 E.4(18) check to the returned value.
13326 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13327 stream attributes of the designated type of an RACW, as they are not
13328 dispatching primitive operations.
13329
13330 2007-06-06 Geert Bosch <bosch@adacore.com>
13331
13332 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13333 negative literal
13334 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13335 positive
13336 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13337 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13338 positive
13339 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13340
13341 2007-06-06 Javier Miranda <miranda@adacore.com>
13342
13343 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13344 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13345
13346 2007-06-06 Javier Miranda <miranda@adacore.com>
13347
13348 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13349 deallocation of class-wide interface objects.
13350 (Expand_Dispatching_Constructor_Call): Take into account that if the
13351 result of the dispatching constructor is an interface type, the
13352 function returns a class-wide interface type; otherwise the returned
13353 object would be actual. The frontend previously accepted returning
13354 interface types because Expand_Interface_Actuals silently performed
13355 the management of the returned type "as if" it were a class-wide
13356 interface type.
13357 (Expand_Dispatching_Constructor_Call): Replace call to
13358 Make_DT_Access_Action by direct call to Make_Function_Call.
13359
13360 2007-06-06 Robert Dewar <dewar@adacore.com>
13361 Ed Schonberg <schonberg@adacore.com>
13362
13363 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13364 compute masking constant, since we now set Esize properly to the
13365 underlying size.
13366 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13367 to match the alignment.
13368 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13369 packed arrays of 8 bits or less.
13370
13371 * freeze.adb (Freeze_Entity): When freezing the formals of a
13372 subprogram, freeze the designated type of a parameter of an access type
13373 only if it is an access parameter.
13374 Increase size of C convention enumeration object
13375 (Freeze_Entity, array type case): Make sure Esize value is properly
13376 adjusted for the alignment if it is known.
13377 (Freeze_Entity, array type case): When checking bit packed arrays for
13378 the size being incorrect, check RM_Size, not Esize.
13379 (Freeze_Record_Type): Check for bad discriminated record convention
13380 (In_Exp_Body): Return true if the body is generated for a subprogram
13381 renaming, either an attribute renaming or a renaming as body.
13382 (Check_Itype): If the designated type of an anonymous access component
13383 is a non-protected subprogram type, indicate that it is frozen, to
13384 prevent out-of-scope freeze node at some subsequent call.
13385 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13386 only if the subprogram is neither imported nor exported, as well as the
13387 NCA descriptor class if the subprogram is exported.
13388
13389 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13390 Arnaud Charlet <charlet@adacore.com>
13391 Robert Dewar <dewar@adacore.com>
13392 Gary Dismukes <dismukes@adacore.com>
13393
13394 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13395 default initialization on an imported object, when there is no
13396 initialization call generated for it.
13397 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13398 restriction
13399
13400 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13401 Static_Elaboration_Desired.
13402 Remove pragma Thread_Body.
13403 Implement a new pragma No_Body
13404 Removes the Explicit_Overriding pragma
13405 Remove Optional_Overriding pragma
13406 (Prag): Deal with Universal_Aliasing.
13407 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13408 Pragma_CIL_Constructor): New names.
13409
13410 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13411 uses the equivalent aggregate of a type must be treated as an implicit
13412 initialization.
13413 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13414 has none of the other categories.
13415 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13416 to apply Import to an object renaming declaration.
13417
13418 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13419 from a C++ class should be declared as limited and that it will be
13420 considererd limited.
13421 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13422 should be declared as limited and that it will be considererd limited.
13423 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13424 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13425 (Analyze_Pragma): Deal with Universal_Aliasing.
13426 (Sig_Flags): Likewise.
13427 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13428 (Overflow_Checks_Unsuppressed): New flag.
13429 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13430 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13431 case of JVM or .NET targets, and compiling user code.
13432 Add debugging convenience routine rv
13433
13434 2007-06-06 Robert Dewar <dewar@adacore.com>
13435
13436 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13437 are interface type.
13438 (Build_Elementary_Input_Call): For floating-point use right type in the
13439 absence of strange size or stream size clauses.
13440 (Build_Elementary_Write_Call): Same fix
13441 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13442 set to value that does not match base type size.
13443
13444 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13445
13446 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13447 object of a limited type can be initialized with a call to a function
13448 that returns in place. If the limited type has unknown discriminants,
13449 and the underlying type is a constrained composite type, build an actual
13450 subtype from the function call, as is done for private types.
13451 (Side_Effect_Free): An expression that is the renaming of an object or
13452 whose prefix is the renaming of a object, is not side-effect free
13453 because it may be assigned through the renaming and its value must be
13454 captured in a temporary.
13455 (Has_Controlled_Coextensions): New routine.
13456 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13457 as is done for other limited types.
13458 (Non_Limited_Designated_Type): new predicate.
13459 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13460 objects.
13461 Remove all handling of with_type clauses.
13462
13463 * par-ch10.adb: Remove all handling of with_type clauses.
13464
13465 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13466 checksum if the main source could not be parsed.
13467 (Loat_Unit): When processing a child unit, determine properly whether
13468 the parent unit is a renaming when the parent is itself a child unit.
13469 Remove handling of with_type clauses.
13470
13471 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13472 (Set_Is_Static_Coextension): New procedure.
13473 (Has_Local_Raise): New function
13474 (Set_Has_Local_Raise): New procedure
13475 (Renaming_Exception): New field
13476 (Has_Init_Expression): New flag
13477 (Delay_Finalize_Attach): Remove because flag is obsolete.
13478 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13479 Remove all handling of with_type clauses.
13480 (Exception_Junk): Can now be set in N_Block_Statement
13481
13482 2007-06-06 Vincent Celier <celier@adacore.com>
13483 Robert Dewar <dewar@adacore.com>
13484
13485 * frontend.adb (Frontend): Return immediately if the main source could
13486 not be parsed, because of preprocessing errors.
13487
13488 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13489 (Gnat1drv): Exit with errors if the main source could not be parsed,
13490 because of preprocessing errors.
13491 (Check_Rep_Info): New procedure
13492
13493 2007-06-06 Robert Dewar <dewar@adacore.com>
13494
13495 * g-hesorg.ads, g-heasor.ads,
13496 g-busorg.ads, g-bubsor.ads: Update documentation
13497 GNAT.Heap/Bubble_Sort_G is now pure
13498
13499 2007-06-06 Robert Dewar <dewar@adacore.com>
13500
13501 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13502
13503 2007-06-06 Robert Dewar <dewar@adacore.com>
13504 Ed Schonberg <schonberg@adacore.com>
13505
13506 * g-comlin.ads, g-comlin.adb:
13507 Add new warning for renaming of function return objects
13508
13509 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13510 (Tree_Read): Use size of object instead of type'object_size, since the
13511 latter is incorrect for packed array types.
13512 (Tree_Write): Same fix
13513
13514 * opt.ads: Add new warning for renaming of function return objects
13515 (Generating_Code): New boolean variable used to indicate that the
13516 frontend as finished its work and has called the backend to process
13517 the tree and generate the object file.
13518 (GCC_Version): Is now private
13519 (Static_Dispatch_Tables): New constant declaration.
13520 (Overflow_Checks_Unsuppressed): New flag.
13521 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13522 (List_Closure): New flag for gnatbind (-R)
13523 Zero_Formatting: New flag for gnatbind (-Z)
13524 (Special_Exception_Package_Used): New flag.
13525 (Warn_On_Unrepped_Components): New flag.
13526
13527 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13528 unit is a compilation unit, rather than relying on its scope, so that
13529 Standard can be renamed.
13530 (Analyze_Object_Renaming): Add new warning for renaming of function
13531 return objects.
13532 Also reject attempt to rename function return object in Ada 83 mode.
13533 (Attribute_Renaming): In case of tagged types, add the body of the
13534 generated function to the freezing actions of the type.
13535 (Find_Type): A protected type is visible right after the reserved word
13536 "is" is encountered in its type declaration. Set the entity and type
13537 rather than emitting an error message.
13538 (New_Scope): Properly propagate Discard_Names to inner scopes
13539 (Check_Nested_Access): New procedure.
13540 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13541 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13542
13543 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13544 Add new warning for renaming of function return objects
13545 (Check_References): Suppress warnings for objects whose type or
13546 base type has Warnings suppressed.
13547 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13548 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13549
13550 2007-06-06 Vincent Celier <celier@adacore.com>
13551 Emmanuel Briot <briot@adacore.com>
13552 Olivier Hainque <hainque@adacore.com>
13553
13554 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13555 absolute value of Header.Block_Size when displaying the freed physical
13556 memory in traces.
13557 (Allocate): Compute Storage_Address using Integer_Address, not
13558 Storage_Offset, because the range of Storage_Offset may not be large
13559 enough.
13560 (Configure): New parameter Low_Level_Traces
13561 (Allocate, Deallocation, Free_Physically): Added low-level traces
13562 (Configure): new parameter Errors_To_Stdout.
13563 (Output_File): new subprogram
13564 (Deallocate, Dereference): Send error messages to the proper stream
13565 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13566 documented. Previous code would send it to the current output file
13567 defined in GNAT.IO, which might not be stdout
13568 (Is_Valid): Adjust comment to mention that a positive reply means that
13569 Header_Of may be used to retrieve the allocation header associated with
13570 the subprogram Storage address argument. Return False early if this
13571 address argument is misaligned.
13572
13573 2007-06-06 Vincent Celier <celier@adacore.com>
13574
13575 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13576 switch -P
13577 (ASIS_Main): New global variable
13578 (Get_Closure): New procedure
13579 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13580 check, metric or pretty. Call Get_Closure in this case.
13581 (Check_Files): For GNAT LIST, check all sources of all projects when
13582 All_Projects is True.
13583 (GNATCmd): Accept -U for GNAT LIST
13584
13585 2007-06-06 Vincent Celier <celier@adacore.com>
13586
13587 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13588 has been specified
13589 Correct error message when invocation of the linker fails
13590 Add explicit size clause for the C imported variables
13591 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13592 we expect char size.
13593 Read target parameters earlier, since this is needed to set
13594 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13595 targets.
13596
13597 2007-06-06 Vincent Celier <celier@adacore.com>
13598
13599 * gnatls.adb:
13600 Add 3 spaces before the default project directory when displaying
13601 the project search path.
13602 Add new command line switch '-l' to display license information.
13603
13604 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13605
13606 * gmem.c: Add support for timestamps on memory operations.
13607
13608 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13609 operations (not used currently, just foundation for future
13610 enhancements). Add possibility to perform full dump of gmem.out file.
13611 (Print_Back_Traces): Declare accesses to root arrays constants since
13612 they aren't modified.
13613 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13614
13615 2007-06-06 Vincent Celier <celier@adacore.com>
13616
13617 * gnatsym.adb: Update Copyright notice
13618 (Parse_Cmd_Line): Accept new switch -D
13619 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13620 file.
13621
13622 * prj.ads (Policy): New policy Direct
13623 (Yes_No_Unknown): New enumeration type
13624 (Project_Data): New component Libgnarl_Needed
13625
13626 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13627 use the untouched pathname casing.
13628 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13629 proper casing on non case-sensitive platforms like Windows.
13630 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13631 on all platforms, as it is not possible to know which one is allowed
13632 before processing the project files.
13633 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13634 specified when symbol policy is Direct. Check that when there is a
13635 symbol file defined (either by default or with attribute
13636 Library_Symbol_File) it is not the same as the reference symbol file.
13637 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13638 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13639 extending projects.
13640 (Record_Ada_Source): Record a source that has been locally removed in an
13641 imported project.
13642
13643 * symbols.ads (Policy): New policy Direct
13644
13645 * symbols-vms.adb (Initialize): Take new policy Direct in case
13646 statement
13647
13648 2007-06-06 Vincent Celier <celier@adacore.com>
13649
13650 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13651 Correct obvious bug (return Dir; instead of return Directory;).
13652 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13653
13654 2007-06-06 Thomas Quinot <quinot@adacore.com>
13655
13656 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13657 they have UNIX line endings (LF only) even on Windows, and thus pass
13658 all GNAT style checks.
13659
13660 2007-06-06 Emmanuel Briot <briot@adacore.com>
13661
13662 * g-regpat.adb (Quote): Fix improper quoting of '.'
13663
13664 2007-06-06 Thomas Quinot <quinot@adacore.com>
13665
13666 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13667 default, set False on a per-runtime basis.
13668 (Need_Netdb_Buffer): New constant.
13669
13670 * g-socket.ads, g-socket.adb: Import new package
13671 GNAT.Sockets.Thin.Task_Safe_NetDB.
13672 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13673 binding to obtain proper message.
13674 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13675 Replace various occurrences of Arry (Arry'First)'Address with the
13676 equivalent Arry'Address (GNAT always follows implementation advice from
13677 13.3(14)).
13678 (Get_Host_By_Address, Get_Host_By_Name,
13679 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13680 instead, rely on platform-specific task safe netdb operations provided
13681 by g-socthi.
13682
13683 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13684 parameter Process_Blocking_IO.
13685 (Host_Error_Messages): Add stub body.
13686 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13687 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13688 Safe_Getservbyport): Move functions into new child package
13689 Task_Safe_NetDB.
13690 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13691 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13692 (In_Addr): Add alignment clause.
13693
13694 2007-06-06 Robert Dewar <dewar@adacore.com>
13695
13696 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13697 Add note about symbolic traceback
13698
13699 2007-06-06 Pascal Obry <obry@adacore.com>
13700
13701 * hostparm.ads (Normalized_CWD): Use the host directory separator
13702 instead of the hardcoded forward slash which is not the proper
13703 character on Windows for example.
13704 (Java_VM): Removed.
13705
13706 2007-06-06 Vincent Celier <celier@adacore.com>
13707 Arnaud Charlet <charlet@adacore.com>
13708
13709 * a-clrefi.adb, a-clrefi.ads: New files
13710
13711 * impunit.adb: Add s-os_lib in the list of user visible units.
13712 (Non_Imp_File_Names_95): Add a-clrefi to this list
13713 Remove obsolete run-time entries.
13714 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13715 "a-exetim" -- Ada.Execution_Time
13716 "a-extiti" -- Ada.Execution_Time.Timers
13717
13718 * mlib-prj.ads, mlib-prj.adb
13719 (Build_Library): Use untouched object dir and library dir. At the
13720 same time makes sure that the checks are done using the canonical
13721 form. Removes hard-coded directory separator and use the proper host
13722 one instead.
13723 (Process_Project): Do not look in object directory to check if libgnarl
13724 is needed for a library, if there is no object directory.
13725 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13726 linking.
13727 (Build_Library): When invoking gnatbind, use a response file if the
13728 total size of the arguments is too large.
13729
13730 * Makefile.rtl: (g-sttsne): New object file.
13731 Add entry for a-clrefi, s-utf_32, System.Exceptions
13732
13733 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13734 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13735 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13736 Change g-string to s-string, g-os_lib to s-os_lib
13737 Change all g-utf_32 references to s-utf_32
13738
13739 2007-06-06 Tristan Gingold <gingold@adacore.com>
13740 Olivier Hainque <hainque@adacore.com>
13741
13742 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13743 LIB$STOP is called to raise an exception and the IP of the exception
13744 is the instruction right after the call.
13745 (__gnat_adjust_context_for_raise, AIX): Implement.
13746 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13747 adjust_context_for_raise before Raise_From_Signal_Hanler.
13748 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13749 siginfo is passed to the handler, necessary to let the zcx propagation
13750 engine unwind past it.
13751
13752 2007-06-06 Olivier Hainque <hainque@adacore.com>
13753
13754 * initialize.c (__gnat_initialize for vxworks): Update documentation
13755 on the ZCX support, using different sets of crtstuff objects than with
13756 GCC 3.4.
13757
13758 2007-06-06 Robert Dewar <dewar@adacore.com>
13759
13760 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13761 spec from body
13762 (Layout_Type): Fix recomputation of size from alignment.
13763
13764 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13765 Javier Miranda <miranda@adacore.com>
13766
13767 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13768 association in an instance.
13769 (Copy_Generic_Node): If the node is a string literal, no need to copy
13770 its descendants.
13771 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13772 grandparent of the entity.
13773 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13774 to simplify handling of formal interfaces that derive from other formal
13775 interfaces.
13776 (Instantiate_Subprogram_Body): The defining unit name of the body of
13777 the instance should be a defining identifier.
13778 (Install_Formal_Packages): make global to the package, for use in
13779 instantiations of child units.
13780 (Analyze_Package_Instantiation): Do not attempt to set information on an
13781 enclosing master of an entry when expansion is disabled.
13782 (Instantiate_Type): If the actual is a tagged synchronized type and the
13783 generic ancestor is an interface, create a generic actual for the
13784 corresponding record.
13785 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13786 declaration, to ensure that the interface list is processed correctly.
13787 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13788 its entities from visibiility as well.
13789 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13790 given with a named association, analyze the expression only, not the
13791 discriminant association itself.
13792 (Reset_Entity): If the analysis of a selected component is transformed
13793 into an expanded name in the prefix of a call with parameters, do not
13794 transform the original node into an expanded name, to prevent visibility
13795 errors in the case of nested generics.
13796 (Check_Private_View): For an array type, check whether the index types
13797 may need exchanging.
13798
13799 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13800 Vincent Celier <celier@adacore.com>
13801
13802 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13803 since both are separated.
13804 Add support for imported CIL packages.
13805 Add further special handling of "value_type" for CIL.
13806 Add special handling of pragma Import for CIL.
13807
13808 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13809 standard output instead of standard error, except errors.
13810 (Absolute_Path): Use untouched casing for the parent directory.
13811 (Add_Library_Search_Dir): Use the untouched directory name.
13812 (Add_Source_Search_Dir): Idem.
13813 (Change_To_Object_Directory): Update output to use proper casing.
13814 (Create_Binder_Mapping_File): Use the untouched filename to set
13815 ALI_Name.
13816 (Gnatmake): Use untouched library and executable directory names.
13817 (Insert_Project_Sources): Use untouched filename for spec and body.
13818 (Is_In_Object_Directory): Use untouched object directory.
13819 (Mark_Directory): Idem.
13820 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13821 contains the non-canonical filename in all cases.
13822 (Change_To_Object_Directory): In verbose mode, display the name of the
13823 object directory we're changing to.
13824 (Compile_Sources): Make sure, when a project file is used, to compile
13825 the body of the unit, when there is one, even when only the spec is
13826 recorded in an ALI file.
13827 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13828 spec to the body.
13829 (Report_Compilation_Failed): New procedure
13830 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13831 procedures moved from the spec to the body.
13832 (Extract_Failure): Removed, not used
13833 Replace explicit raises of exception Bind_Failed and Link_Failed with
13834 calls to Make_Failed with the proper message.
13835 Replace explicit raises of exception Compilation_Failed with calls to
13836 procedure Report_Compilation_Failed.
13837 (Initialize): Create mapping files unconditionally when using project
13838 files.
13839
13840 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13841 Pragma_CIL_Constructor): New names.
13842
13843 * targparm.ads, targparm.adb
13844 (Compiler_System_Version): Removed, no longer used.
13845 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13846 handling of two new system flags: JVM and CLI.
13847
13848 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13849 Arnaud Charlet <charlet@adacore.com>
13850
13851 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13852 time, use the default s-interr body that provides interrupt support
13853 based on signals.
13854 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13855 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13856 g-soccon.ads, and s-taprop.adb for the marte run time.
13857 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13858 timers are supported on marte.
13859 (EH_MECHANISM for marte): Do not use ZCX.
13860 (THREADSLIB for marte): Use -lmarte.
13861 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13862 Add mlib-tgt-specific.o to gnatmake objects
13863 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13864 longer of MLib.Tgt.
13865 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13866 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13867
13868 2007-06-06 Pascal Obry <obry@adacore.com>
13869
13870 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13871
13872 2007-06-06 Vincent Celier <celier@adacore.com>
13873
13874 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13875 separator, use instead the proper host directory separator.
13876 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13877 ALI copy dir is writable, before doing the copy.
13878
13879 * mlib-utl.ads, mlib-utl.adb:
13880 (Gcc): If length of command line is too long, put the list of object
13881 files in a response file, if this is supported by the platform.
13882 (Ar): If invocation of the archive builder is allowed to be done in
13883 chunks and building it in one shot would go above an OS dependent
13884 limit on the number of characters on the command line, build the archive
13885 in chunks.
13886
13887 2007-06-06 Vincent Celier <celier@adacore.com>
13888
13889 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13890 of specified object file is not equal to base name of source.
13891
13892 2007-06-06 Javier Miranda <miranda@adacore.com>
13893 Hristian Kirtchev <kirtchev@adacore.com>
13894 Ed Schonberg <schonberg@adacore.com>
13895
13896 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13897 the full type declaration.
13898 (Analyze_Component_Declaration): Add local variable E to capture the
13899 initialization expression of the declaration. Replace the occurences of
13900 Expression (N) with E.
13901 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13902 limited interface object with a function call.
13903 (Array_Type_Declaration): If the declaration lacks subtype marks for
13904 indices, create a simple index list to prevent cascaded errors.
13905 (Is_Null_Extension): Ignore internal components created for secondary
13906 tags when checking whether a record extension is a null extension.
13907 (Check_Abstract_Interfaces): Add missing support for interface subtypes
13908 and generic formals.
13909 (Derived_Type_Declaration): Add missing support for interface subtypes
13910 and generic formals.
13911 (Analyze_Object_Declaration): If an initialization expression is
13912 present, traverse its subtree and mark all allocators as static
13913 coextensions.
13914 (Add_Interface_Tag_Component): When looking for components that may be
13915 secondary tags, ignore pragmas that can appear within a record
13916 declaration.
13917 (Check_Abstract_Overriding): an inherited function that dispatches on
13918 result does not need to be overriden if the controlling type is a null
13919 extension.
13920 (Mentions_T): Handle properly a 'class attribute in an anonymous access
13921 component declaration, when the prefix is an expanded name.
13922 (Inherit_Component): If the derivation is for a private extension,
13923 inherited components remain visible and their ekind should not be set
13924 to Void.
13925 (Find_Type_Of_Object): In the case of an access definition, always set
13926 Is_Local_Anonymous_Access. We were previously not marking the anonymous
13927 access type of a return object as a local anonymous type.
13928 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13929 range with character literal bounds.
13930 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13931 (Access_Subprogram_Declaration): Indicate that the type declaration
13932 depends on an incomplete type only if the incomplete type is declared
13933 in an open scope.
13934 (Analyze_Subtype_Declaration): Handle properly subtypes of
13935 synchronized types that are tagged, and that may appear as generic
13936 actuals.
13937 (Access_Subprogram_Declaration): An anonymous access to subprogram can
13938 appear as an access discriminant in a private type declaration.
13939 (Add_Interface_Tag_Components): Complete decoration of the component
13940 containing the tag of a secondary dispatch table and the component
13941 containing the offset to the base of the object (this latter component
13942 is only generated when the parent type has discriminants --as documented
13943 in this routine).
13944 (Inherit_Components): Use the new decoration of the tag components to
13945 improve the condition that avoids inheriting the components associated
13946 with secondary tags of the parent.
13947 (Build_Discriminanted_Subtype): Indicate to the backend that the
13948 size of record types associated with dispatch tables is known at
13949 compile time.
13950 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13951 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13952 to include task, protected, and synchronized interfaces as limited
13953 interfaces.
13954 (Process_Discriminants): Remove the setting of
13955 Is_Local_Anonymous_Access on the type of (anonymous) access
13956 discriminants of nonlimited types.
13957 (Analyze_Interface_Type_Declaration): Complete the decoration of the
13958 class-wide entity it is is already present. This situation occurs if
13959 the limited-view has been previously built.
13960 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13961 field.
13962 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13963 Related_Interface.
13964
13965 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13966
13967 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13968 of the type that specify the position of interface tags when the type
13969 inherits discriminated array components from the parent type.
13970 If a component is initialized with a box, check for the presence of a
13971 default expression in its declaration before using its default
13972 initialization procedure.
13973 (Resolve_Record_Aggregate): If a component is box-initialized, and the
13974 component type has a discriminants, create a partial aggregate for it
13975 by copying the discriminants of the component subtype.
13976 Reject attempt to initialize a discriminant with a box.
13977 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13978 associated with dispatch tables is known at compile time.
13979 (Get_Value): If an association in a record aggregate has a box
13980 association, and the corresponding record component has a default
13981 expression, always copy the default expression, even when the
13982 association has a single choice, in order to create a proper
13983 association for the expanded aggregate.
13984
13985 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13986 Robert Dewar <dewar@adacore.com>
13987
13988 * par-ch12.adb (P_Generic_Associations): The source position of an
13989 Others association is that of the others keyword, not that of the token
13990 that follows the box.
13991 (P_Formal_Type_Definition): Handle formal access types that carry a
13992 not null indicator.
13993
13994 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13995 multiple identifier are present, save Scan_State before scanning the
13996 colon, to ensure that separate trees are constructed for each
13997 declaration.
13998 (P_Identifier_Declarations): For object declaration, set new flag
13999 Has_Init_Expression if initialization expression present.
14000 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
14001 Improve NOT NULL error messages
14002
14003 2007-06-06 Robert Dewar <dewar@adacore.com>
14004
14005 * par-ch4.adb: (P_Name): Recover from literal used as name
14006
14007 2007-06-06 Vincent Celier <celier@adacore.com>
14008
14009 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
14010 defaulted to False.
14011 In the "not" case, recursive call with Complemented set to True.
14012 Do not allow "or" or "and" operators when Complemented is True.
14013
14014 2007-06-06 Vincent Celier <celier@adacore.com>
14015
14016 * prj.adb (Project_Empty): Gives default value for new component
14017 Libgnarl_Needed
14018
14019 * prj-attr.ads: Minor reformatting
14020
14021 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
14022 directory using the untouched casing.
14023 (For_All_Source_Dirs): Idem.
14024
14025 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
14026 directories specified with switches -aP.
14027 (Add_Search_Project_Directory): New procedure
14028 (Initialize_Project_Path): Put the directories in table
14029 Search_Directories in the project search path.
14030 (Initialize_Project_Path): For VMS, transform into canonical form the
14031 project path.
14032
14033 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14034
14035 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
14036 true if configurable run-time or No_Run_Time is set.
14037 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
14038 processing an unit which is not the one being compiled.
14039
14040 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14041
14042 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
14043 Replace UC by Ada.UC
14044
14045 * s-bitops.adb: Get rid of System.Pure_Exceptions.
14046 Replace UC by Ada.UC
14047
14048 2007-06-06 Robert Dewar <dewar@adacore.com>
14049
14050 * scng.adb: (Check_End_Of_Line): Deal with very long lines
14051
14052 2007-06-06 Robert Dewar <dewar@adacore.com>
14053
14054 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
14055 Remove no longer used nodes.
14056
14057 2007-06-06 Javier Miranda <miranda@adacore.com>
14058 Ed Schonberg <schonberg@adacore.com>
14059 Robert Dewar <dewar@adacore.com>
14060
14061 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
14062 on obsolescent withed unit in case of limited-withed units.
14063 (Analyze_Compilation_Unit): Add guard to code that removed an
14064 instantiation from visibility, to prevent compiler aborts when
14065 instantiation is abandoned early on.
14066 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
14067 current unit being analyzed, and Distinguish local incomplete types
14068 from limited views of types declared elsewhere.
14069 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
14070 to state that the class-wide entity is shared by the limited-view
14071 and the full-view.
14072 (Analyze_With_Clause): Improve placement of flag for case of
14073 unimplemented unit.
14074 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
14075 manner similar to GNAT.Current_Exception. This is a violation of
14076 restriction (No_Exception_Propagation), and also inhibits the
14077 optimization of local raise to goto.
14078 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
14079 and if so set Most_Recent_Exception_Used flag in Opt, and also check
14080 for violation of restriction No_Exception_Propagation.
14081
14082 2007-06-06 Javier Miranda <miranda@adacore.com>
14083 Hristian Kirtchev <kirtchev@adacore.com>
14084 Gary Dismukes <dismukes@adacore.com>
14085
14086 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
14087 use of entity Exception_Occurrence if it is not available in the
14088 target run-time.
14089
14090 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
14091 concurrent types are declared within an Ada 2005 generic, build their
14092 corresponding record types since they are needed for overriding-related
14093 semantic checks.
14094 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
14095 protected type does not implement a task interface or a nonlimited
14096 interface.
14097 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
14098 type does not implement a protected interface or a nonlimited interface.
14099 (Single_Task_Declaration, Single_Protected_Declaration): use original
14100 entity for variable declaration, to ensure that debugging information
14101 is correcty generated.
14102 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
14103 routines if the expander is not active.
14104 (Analyze_Task_Body): Mark all handlers to stop optimization of local
14105 raise, since special things happen for task exception handlers.
14106
14107 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
14108 concurrent types declared within a generic.
14109 (Check_Dispatching_Operation): Do not emit warning about late interface
14110 operations in the context of an instance.
14111 (Check_Dispatching_Call): Remove restriction against calling a
14112 dispatching operation with a limited controlling result.
14113 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
14114 Register_Interface_DT_Entry by calls to Register_Primitive.
14115 (Check_Dispatching_Formals): Handle properly a function with a
14116 controlling access result.
14117
14118 2007-06-06 Robert Dewar <dewar@adacore.com>
14119 Arnaud Charlet <charlet@adacore.com>
14120
14121 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
14122 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
14123 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
14124 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
14125 message when using a VM, since this attribute is not supported.
14126 (Analyze_Record_Representation_Clause): Give unrepped component warnings
14127
14128 * usage.adb: Add new warning for renaming of function return objects
14129 Indicate that -gnatwp and -gnatwP concern front-end inlining
14130 Add line for -gnatyg
14131 Add usage information for -gnatw.c/C
14132
14133 2007-06-06 Robert Dewar <dewar@adacore.com>
14134 Ed Schonberg <schonberg@adacore.com>
14135
14136 * sem_ch5.adb
14137 (Find_Var): Do not consider function call in test for infinite loop
14138 warning if warnings set off for function entity.
14139 (One_Bound): Do not create a temporary for a loop bound if it is a
14140 character literal.
14141 (Analyze_Assignment): Traverse the right hand side of an assignment and
14142 mark all allocators as static coextensions.
14143 (Analyze_Assignment): Exempt assignments involving a dispatching call
14144 to a function with a controlling access result from the check requiring
14145 the target to be class-wide.
14146
14147 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14148 Ed Schonberg <schonberg@adacore.com>
14149 Robert Dewar <dewar@adacore.com>
14150 Javier Miranda <miranda@adacore.com>
14151
14152 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
14153 chain of coextensions when an allocator serves as the root of such a
14154 chain.
14155 (Propagate_Coextensions): Remove the test for the root being an
14156 allocator.
14157 (Resolve_Allocator): Add condition to ensure that all future decoration
14158 occurs on an allocator node. Add processing and cleanup for static
14159 coextensions.
14160 (Valid_Conversion): If the operand type is the limited view of a
14161 class-wide type, use the non-limited view is available to determine
14162 legality of operation.
14163 (Ambiguous_Character): move to spec, for use elsewhere.
14164 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
14165 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
14166 character literals.
14167 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
14168 Do_Division_Check flag explicitly.
14169 (Resolve_Actuals): If the actual is of a synchronized type, and the
14170 formal is of the corresponding record type, this is a call to a
14171 primitive operation of the type, that is declared outside of the type;
14172 the actual must be unchecked-converted to the type of the actual
14173 (Resolve_Call): Kill all current values for any subprogram call if
14174 flag Suppress_Value_Tracking_On_Call is set.
14175 (Resolve_Type_Conversion): Generate error message the the operand
14176 or target of interface conversions come from a limited view.
14177 (Check_Infinite_Recursion): Ignore generated calls
14178 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14179 that an expression that constrains an access discriminant in an
14180 allocator does not denote an object with a deeper level than the
14181 allocator's access type.
14182 (Resolve_Allocator): In the case of an allocator initialized by an
14183 aggregate of a discriminated type, check that associations for any
14184 access discriminants satisfy accessibility requirements by calling
14185 Check_Allocator_Discrim_Accessibility.
14186 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14187 subprogram types in the same fashion as other anonymous access types.
14188 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14189 message that is not a continuation message.
14190 (Resolve_Type_Conversion): Add missing support for conversion to
14191 interface type.
14192 (Resolve_Actuals): Introduce a transient scope around the call if an
14193 actual is a call to a function returning a limited type, because the
14194 resulting value must be finalized after the call.
14195 (Resolve_Actuals): If the call was given in prefix notations, check
14196 whether an implicit 'Access reference or implicit dereference must be
14197 added to make the actual conform to the controlling formal.
14198
14199 2007-06-06 Robert Dewar <dewar@adacore.com>
14200 Javier Miranda <miranda@adacore.com>
14201
14202 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14203 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14204 overriding of an inherited private subprogram now there is no need to
14205 inherit its dispatching slot and reduce the size of the dispatch table.
14206 Set_All_DT_Position now ensures that the same slot is now assigned to
14207 both entities. This is required to statically build the dispatch table.
14208 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14209 of calling Set_All_DT_Position to re-evaluate the position of the
14210 entries in the dispatch table. Such reevaluation is not desired if
14211 the tagged type is already frozen.
14212
14213 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14214 Gary Dismukes <dismukes@adacore.com>
14215 Robert Dewar <dewar@adacore.com>
14216 Javier Miranda <miranda@adacore.com>
14217
14218 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14219 reference acts as an lvalue when the attribute name modifies the prefix
14220 (Is_Coextension_Root): New routine.
14221 (Mark_Static_Coextensions): New routine.
14222 (Type_Access_Level): Revise code for checking the level of the
14223 anonymous access type of a return object.
14224 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14225 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14226 retrieval of the corresponding controlling record type.
14227 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14228 concurrent types declared within a generic as well as class wide types.
14229 Emit a mode incompatibility error whenever a protected entry or routine
14230 override an interface routine whose first parameter is not of mode
14231 "out", "in out" or access to variable.
14232 (Overrides_Synchronized_Primitive): Rename to
14233 Find_Overridden_Synchronized_Primitive.
14234 (Collect_Interface_Components): New subprogram that collects all the
14235 components of a tagged record containing tags of secondary dispatch
14236 tables.
14237 (Add_Global_Declaration): New procedure
14238 (Abstract_Interface_List): Handle properly the case of a subtype of a
14239 private extension.
14240 (Type_Access_Level): In the case of a type whose parent scope is a
14241 return statement, call Type_Access_Level recursively on the enclosing
14242 function's result type to determine the level of the return object's
14243 type.
14244 (Build_Elaboration_Entity): Build name of elaboration entity from the
14245 scope chain of the entity, rather than the unit name of the file name.
14246 (Check_Nested_Access): New procedure.
14247 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14248 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14249 (Get_Renamed_Entity): Utility routine for performing common operation
14250 of chasing the Renamed_Entity field of an entity.
14251
14252 2007-06-06 Robert Dewar <dewar@adacore.com>
14253
14254 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14255 elaboration model
14256 (Check_A_Call): Add check for entry call which was causing blowup
14257
14258 2007-06-06 Olivier Hainque <hainque@adacore.com>
14259
14260 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14261 special code on ia64-vms to handle major incompatibilities between the
14262 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14263 this routine with a very different set of arguments and expectations on
14264 the return value.
14265
14266 2007-06-06 Thomas Quinot <quinot@adacore.com>
14267
14268 * socket.c (__gnat_close_signalling_fd): New function.
14269 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14270 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14271 New supporting functions for task safe Netdb operations.
14272
14273 2007-06-06 Thomas Quinot <quinot@adacore.com>
14274 Olivier Hainque <hainque@adacore.com>
14275
14276 * a-except-2005.ads, a-except-2005.adb
14277 (Raise_From_Controlled_Operation): New procedure in
14278 (private part of) Ada.Exceptions (standard runtime version). Used to
14279 provide informational exception message when Program_Error is raised as
14280 a result of an Adjust or Finalize operation propagating an exception.
14281 (Rmsg_28): Fix description for E.4(18) check.
14282 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14283 propagation starts, to let debuggers know about the event in a reliable
14284 fashion.
14285 Take the address of E and dereference to make sure it is homed on stack
14286 and prevent the stores from being deleted, necessary for proper
14287 debugger behavior on "break exception" hits.
14288 (Local_Raise): Moved to System.Exceptions
14289
14290 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14291 exception message from the current occurrence and raise Program_Error
14292 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14293
14294 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14295 Arnaud Charlet <charlet@adacore.com>
14296
14297 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14298 lock, if needed.
14299
14300 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14301 priority associated to a lock.
14302
14303 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14304 assertion to take into account case of no abort restriction.
14305 (Initialize_Protection_Entries): Add initialization for the field
14306 New_Ceiling associated to the protected object.
14307 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14308 needed.
14309
14310 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14311 since this function needs to be set consistently with Update_Exception.
14312
14313 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14314 since this function needs to be set consistently with Update_Exception.
14315
14316 * s-taskin.ads: Update comments on
14317 Interrupt_Server_Blocked_On_Event_Flag.
14318 (Unbind_Handler): Fix handling of server_task wakeup
14319 (Server_Task): Set self's state so that Unbind_Handler can take
14320 appropriate actions.
14321 (Common_ATCB): Now use a constant from System.Parameters to determine
14322 the max size of the Task_Image field.
14323
14324 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14325 Initialize_Analyzer function.
14326 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14327 take into account case of no abort restriction.
14328 ([Vulnerable_]Complete_Master): Modify assertion.
14329
14330 * s-tataat.adb (Finalize): Use the nestable versions of
14331 Defer/Undefer_Abort.
14332
14333 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14334
14335 * s-tpobop.ads: Update comments.
14336
14337 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14338 of locking the object manually, to avoid inconsistencies between
14339 Lock/Unlock_Entry assertions.
14340
14341 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14342 terminating
14343 application and System.Parameters.No_Abort is True.
14344 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14345 (Unbind_Handler): Fix handling of server_task wakeup
14346 (Server_Task): Set self's state so that Unbind_Handler can take
14347 appropriate actions.
14348
14349 2007-06-06 Thomas Quinot <quinot@adacore.com>
14350
14351 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14352 declarations instead of an explicit null body, for conciseness.
14353
14354 2007-06-06 Robert Dewar <dewar@adacore.com>
14355
14356 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14357 illegal aggregate and the type is still Any_Composite.
14358 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14359
14360 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14361
14362 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14363 to prevent subsequent expansion.
14364
14365 2007-06-06 Robert Dewar <dewar@adacore.com>
14366
14367 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14368
14369 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14370 Robert Dewar <dewar@adacore.com>
14371
14372 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14373 exceptions.
14374 (Write_Itype): Handle case of string literal subtype, which
14375 comes up in this context.
14376 (Update_Itype): when debugging expanded code, update sloc of itypes
14377 associated with defining_identifiers and ranges, for gdb use.
14378 (Sprint_Node_Actual): Add static keyword to object or exception
14379 declaration output if Is_Statically_Allocated is True.
14380 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14381 or task body, so that the tree carries the proper Sloc information for
14382 debugging use.
14383 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14384
14385 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14386
14387 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14388 compile time, to avoid dynamic memory allocation
14389 (Elaboration code): Only use dynamic memory allocation when needed.
14390
14391 2007-06-06 Quentin Ochem <ochem@adacore.com>
14392
14393 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14394 "Overflow_Guard".
14395 (Stack_Analyzer): Added field "Overflow_Guard"
14396 (Task_Result): Added field "Overflow_Guard".
14397 (Index_Str): New constant.
14398 (Task_Name_Str): New constant.
14399 (Actual_Size_Str): New constant.
14400 (Pattern_Array_Element_Size): New constant.
14401 (Get_Usage_Range): New subprogram.
14402 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14403 Now align the output.
14404 Added comments.
14405 (Initialize): Added value for Overflow_Guard.
14406 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14407 Update the value of the overflow guard according to the actual
14408 beginning of the pattern array.
14409 (Initialize_Analyzer): Added parameter Overflow_Guard.
14410 Take this parameter into accound when computing the max size.
14411 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14412 (Report_Result): Removed extra useless procedure.
14413 Updated call to Output_Result.
14414 Moved full computation of the Task_Result here.
14415
14416 2007-06-06 Thomas Quinot <quinot@adacore.com>
14417
14418 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14419 Thread_Blocking_IO, always True by default, set False on a per-runtime
14420 basis.
14421 Add Windows-specific constants
14422 Add new constant Need_Netdb_Buffer.
14423 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14424 not, whether to use getXXXbyYYY_r.
14425
14426 * gsocket.h: Add new constant Need_Netdb_Buffer.
14427 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14428 not, whether to use getXXXbyYYY_r.
14429
14430 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14431
14432 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14433 than their first call.
14434 Add type Dummy_Communication_Block used in the generation of the pre-
14435 defined dispatching primitive _disp_asynchronous_select.
14436 (Storage_Element): Put Pragma Universal_Aliasing on it.
14437
14438 2007-06-06 Vincent Celier <celier@adacore.com>
14439
14440 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14441 function.
14442
14443 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14444 letter if it is not followed by a '/' or a '\'.
14445 (Windows): New Boolean function
14446
14447 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14448 Ada 2005.
14449 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14450 drive letter.
14451 (Containing_Directory): Raise Use_Error when the directory is a root
14452 directory.
14453 (Extension): When returning the result, use a conversion to Result_Type,
14454 not a qualification.
14455
14456 2007-06-06 Robert Dewar <dewar@adacore.com>
14457
14458 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14459 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14460
14461 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14462 Warn_On_Non_Local_Exception to False, to turn off warnings for
14463 No_Exception_Propagation in ZFP runtime.
14464 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14465 back-ends.
14466 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14467
14468 2007-06-06 Vincent Celier <celier@adacore.com>
14469
14470 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14471 switches -R and -Z
14472
14473 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14474 (Scan_Make_Switches): Recognize new switch -aP
14475
14476 2007-06-06 Matthew Gingell <gingell@adacore.com>
14477 Jose Ruiz <ruiz@adacore.com>
14478
14479 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14480 VxWorks task descriptor in the Ada run time, call a C subprogram
14481 (__gnat_get_stack_info) that extracts the required information.
14482
14483 * sysdep.c: Back out temporary lynxos workaround.
14484 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14485 time the stack information associated to the currently executing task.
14486 Only VxWorks systems require this function.
14487
14488 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14489
14490 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14491 add the stack bias if the offset is computed from a frame address.
14492 (__gnat_backtrace): Adjust for above change.
14493
14494 2007-06-06 Thomas Quinot <quinot@adacore.com>
14495
14496 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14497 PE_Non_Transportable_Actual.
14498 (By_Descriptor_Last): New constant.
14499 (By_Copy_Return): Likewise.
14500
14501 2007-06-06 Vincent Celier <celier@adacore.com>
14502
14503 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14504 is.
14505
14506 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14507 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14508 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14509 Add missing comment for /OPTIMIZE=SPACE
14510 Add entry for OPTIMIZE=SPACE
14511 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14512 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14513
14514 2007-06-06 Vincent Celier <celier@adacore.com>
14515 Robert Dewar <dewar@adacore.com>
14516
14517 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14518 -gnatw.C)
14519
14520 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14521 Document gnatbind switch -a
14522 (case Constructions): Document that variables declarations are allowed
14523 for previously declared variables.
14524 Fix external lib project example
14525 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14526 Indicate that "#if not X or Y then" is not allowed in input files to
14527 gnatprep.
14528 Document gnatw.x and gnatw.X warning flags
14529 Mention -Winline switch to activate warnings when back-end inlining is
14530 ineffective.
14531 Add gnatcheck rule descriptions
14532 Describe how to use the GNAT driver to call a tool on a closure.
14533 Describe how to run project-wide checks or metrics.
14534 Document gnatbind's -R option
14535 Updated to account for Ada 2005 support
14536
14537 * gnat_rm.texi (Case Construction): Allow variable declarations for
14538 previously declared variables.
14539 (Representation Clauses and Pragmas): Lift restriction on alignment
14540 clauses for record types.
14541 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14542 Document No_Exception_Propagation restriction
14543 Document No_Body pragma
14544 Updated to account for Ada 2005 support; corrected some typos
14545 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14546
14547 * gnat-style.texi: Make it clear that we never use mode IN for
14548 procedures or functions
14549
14550 * ug_words: Add entries for -gnatw.x and -gnatw.X
14551 Add entries for -gnatw.c/.C
14552
14553 2007-06-06 Pascal Obry <obry@adacore.com>
14554 Vincent Celier <celier@adacore.com>
14555
14556 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14557 dirs and library name.
14558 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14559 comments.
14560 (Build_Library): Idem.
14561 (Compile_Individual_Sources): Idem.
14562 (Compile_Link_With_Gnatmake): Idem.
14563 (Compile_Sources): Idem.
14564 (Get_Imported_Directories): Idem.
14565 (Link_Executables): Idem. Same change for the executable dir.
14566 (Check_Compilation_Needed): C_Source_Path new variable containing
14567 the canonical form of Source_Path to check against the source names
14568 in the dependency file.
14569 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14570 verbose mode, display the name of the object directory we're changing
14571 to.
14572 (Saved_Switches): New name of table X_Switches
14573 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14574 (Usage): New line for switch -aP
14575 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14576 testing if a directory should be added to the search path.
14577
14578 2007-06-06 Javier Miranda <miranda@adacore.com>
14579
14580 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14581 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14582 declaration after freezing point of all its associated tagged types;
14583 otherwise such types are frozen too early.
14584
14585 2007-06-06 Robert Dewar <dewar@adacore.com>
14586
14587 * a-reatim.adb: Documentation addition
14588
14589 * g-cgideb.adb: Minor code reorganization
14590
14591 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14592 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14593 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14594
14595 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14596 function. Change name New_Scope to Push_Scope
14597 (Get_Debug_Flag_K): Remove unused obsolete function.
14598
14599 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14600 Push_Scope.
14601
14602 * makeusg.adb: Update Copyright notice
14603 Add line for switch -aP
14604
14605 * makeusg.adb: Fix wording of some usage messages
14606
14607 * s-assert.adb (Raise_Assert_Failure): Add call to
14608 Debug_Raise_Assert_Failure.
14609
14610 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14611 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14612 is restricted to 1).
14613
14614 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14615
14616 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14617 node location to No_Location when we're not debugging the expanded
14618 code.
14619
14620 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14621
14622 * misc.c (enumerate_modes): Consider log2_b to always be one.
14623
14624 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14625
14626 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14627
14628 2007-05-02 Pascal Obry <obry@adacore.com>
14629
14630 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14631 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14632 encoding support of Stream_IO.
14633 (Write_Unit): Idem.
14634
14635 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14636 filename and corresponding encoding to match the OS requirement.
14637 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14638 routine will fail on specific devices like CON: AUX: ...
14639
14640 PR ada/29856: Add missing braces
14641
14642 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14643
14644 PR ada/31660
14645 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14646
14647 2007-04-21 Jan Hubicka <jh@suse.cz>
14648
14649 * misc.c (gnat_expand_body): Don't call target for destructors,
14650 avoid redundant check on syntax errors.
14651
14652 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14653
14654 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14655 instead of checking GIMPLE_STMT_P in chain_next.
14656
14657 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14658
14659 PR ada/31576
14660 * system-linux-alpha.ads: Disable constant condition warning for the
14661 Default_Bit_Order variable.
14662 * system-linux-s390.ads: Likewise.
14663 * system-linux-s390x.ads: Likewise.
14664 * system-linux-sparc.ads: Likewise.
14665
14666 2007-04-06 Javier Miranda <miranda@adacore.com>
14667 Matt Heaney <heaney@adacore.com>
14668 Robert Dewar <dewar@adacore.com>
14669
14670 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14671 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14672 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14673 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14674 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14675 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14676 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14677 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14678 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14679 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14680 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14681 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14682 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14683 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14684 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14685 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14686 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14687 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14688 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14689 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14690 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14691 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14692 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14693 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14694 s-taprop-tru64.adb, s-taprop-irix.adb,
14695 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14696 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14697 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14698 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14699 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14700 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14701 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14702 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14703 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14704 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14705 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14706 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14707 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14708 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14709 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14710 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14711 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14712 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14713 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14714 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14715 access types.
14716 Update documentation.
14717 Minor rewording.
14718
14719 2007-04-06 Robert Dewar <dewar@adacore.com>
14720
14721 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14722 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14723 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14724 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14725 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14726 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14727 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14728 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14729 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14730 system-hpux-ia64.ads, targparm.adb,
14731 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14732
14733 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14734 kept for bootstrap purposes only.
14735
14736 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14737
14738 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14739 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14740 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14741 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14742
14743 2007-04-06 Robert Dewar <dewar@adacore.com>
14744
14745 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14746 (Local_Raise): New dummy procedure called when a raise is converted
14747 to a local goto. Used for debugger to detect that the exception
14748 is raised.
14749
14750 * debug.adb: Document new d.g flag (expand local raise statements to
14751 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14752
14753 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14754
14755 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14756 suppress warnings for unused handlers.
14757 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14758 warnings for raise statements not handled locally.
14759 (Get_RT_Exception_Entity): New function
14760 (Get_Local_Call_Entity): New function
14761 (Find_Local_Handler): New function
14762 (Warn_If_No_Propagation): New procedure
14763 (Expand_At_End_Handler): Call Make_Implicit_Handler
14764 (Expand_Exception_Handlers): Major additions to deal with local handlers
14765 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14766 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14767 for local raise
14768
14769 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14770 (Get_Local_Call_Entity): New function
14771
14772 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14773 of restrictions that the binder will never suggest adding.
14774
14775 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14776 to No_Elist.
14777
14778 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14779 be with'ed in the presence of pragma Restriction
14780 (No_Exception_Propagation).
14781
14782 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14783
14784 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14785 parameter, then the handler is not a suitable target for a local raise,
14786 and this is a violation of restriction No_Exception_Propagation.
14787 (Analyze_Handled_Statements): Analyze choice parameters in exception
14788 handlers before analyzing statement sequence (needed for proper
14789 detection of local raise statements).
14790 (Analyze_Raise_Statement): Reraise statement is a violation of the
14791 No_Exception_Propagation restriction.
14792
14793 * s-rident.ads: Add new restriction No_Exception_Propagation
14794
14795 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14796 function, like Make_Exception_Handler but sets Local_Raise_Statements
14797 to No_List.
14798 (Add_Unique_Serial_Number): Deal with case where this is called during
14799 processing of configuration pragmas.
14800
14801 2007-04-06 Thomas Quinot <quinot@adacore.com>
14802 Pat Rogers <rogers@adacore.com>
14803 Pascal Obry <obry@adacore.com>
14804
14805 * g-stsifd-sockets.adb: New file.
14806
14807 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14808 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14809 g-socthi-vms.adb: Move signalling
14810 fd management to a nested package, so that they can conveniently be
14811 moved to a subunit that is shared across Windows, VMS, and VxWorks
14812 (Ada implementation) or completed with imported bodies from socket.c
14813 (UNIX case).
14814 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14815 subprograms.
14816 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14817 the signalling file descriptor.
14818 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14819 signalling file descriptor.
14820 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14821 instead of creating a pair of sockets for signalling here.
14822
14823 * g-socthi.adb: Ditto.
14824 Set the runtime process to ignore SIGPIPEs on platforms that support
14825 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14826
14827 * g-socthi-mingw.adb: Ditto.
14828 (WS_Version): Use Windows 2.2.
14829 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14830
14831 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14832 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14833
14834 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14835 added GNAT byte swapping facility
14836 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14837
14838 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14839
14840 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14841 New subprograms.
14842 (__gnat_create_signalling_fds): New subprogram.
14843 Set the runtime process to ignore SIGPIPEs on platforms that support
14844 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14845
14846 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14847 Vincent Celier <celier@adacore.com>
14848
14849 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14850 New version of Ada.Calendar which supports the new upper bound of Ada
14851 time (2399-12-31 86_399.999999999).
14852 The following modifications have been made to the package:
14853 - New representation of time as count of nanoseconds since the start of
14854 Ada time (1901-1-1 0.0).
14855 - Target independent Split and Time_Of routines which service both
14856 Ada 95 and Ada 2005 code.
14857 - Target independent interface to the Ada 2005 children of Calendar.
14858 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14859 - Handling of non-leap centenial years.
14860 - Updated clock function.
14861 - Updated arithmetic and comparison operators.
14862
14863 * a-caldel.adb (To_Duration): Add call to target independent routine in
14864 Ada.Calendar to handle the conversion of time to duration.
14865
14866 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14867 (UTC Offset).
14868 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14869 set off to 0.
14870 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14871 targets do not have a natural time zone, GMT is used as a default.
14872 (__gnat_get_task_options): New.
14873
14874 * a-direct.adb (Modification_Time): Add with and use clauses for
14875 Ada.Calendar and Ada.
14876 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14877 since it is no longer needed.
14878 (Duration_To_Time): Removed.
14879 (OS_Time_To_Long_Integer): Removed.
14880 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14881 Formatting Time_Of routines which automatically handle time zones,
14882 buffer periods and leap seconds.
14883
14884 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14885 target independent routines in Ada.Calendar.
14886
14887 * a-calfor.ads, a-calfor.adb:
14888 Code cleanup and addition of validity checks in various routines.
14889 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14890 Ada.Calendar.
14891
14892 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14893 independent routine in Ada.Calendar.
14894
14895 2007-04-06 Olivier Hainque <hainque@adacore.com>
14896
14897 * adaint.c:
14898 (convert_addresses): Adjust prototype and dummy definition to expect an
14899 extra file_name argument.
14900
14901 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14902 filling the now expected file_name argument with the appropriate
14903 argv[0] expansion.
14904 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14905 (tracebk): Array of void * instead of char *, corresponding to what
14906 convert_addresses expects.
14907 (exename): New static global, to hold the executable file name to be
14908 used in all convert_addresses invocations.
14909 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14910 change.
14911 (__gnat_gmem_a2l_initialize): Resolve exename.
14912 (__gnat_convert_addresses): Use exename as the convert_addresses
14913 file_name argument.
14914
14915 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14916 "convert_addresses", now expecting a filename argument. Import the
14917 necessary entities to compute the filename to use and pass it to
14918 convert_addresses.
14919
14920 2007-04-06 Matt Gingell <gingell@adacore.com>
14921
14922 * system-aix.ads: Back out previous change.
14923 (Functions_Return_By_DSP): Removed
14924
14925 2007-04-06 Pascal Obry <obry@adacore.com>
14926
14927 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14928 or the monotonic used by Ada.Real_Time) to compute the sleep duration
14929 on Windows.
14930
14931 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14932
14933 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14934 function. Its value changes in different VxWorks versions, and it is
14935 now handled by the function __gnat_get_task_options.
14936
14937 * s-taprop-vxworks.adb (Create_Task): Call the function
14938 __gnat_get_task_options to get the required options for creating a task.
14939
14940 2007-04-06 Pascal Obry <obry@adacore.com>
14941 Thomas Quinot <quinot@adacore.com>
14942
14943 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14944 dealing with filename.
14945 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14946 filename from a standard string to a wide-string depending on the
14947 encoding value.
14948 (__gnat_freopen): Idem.
14949 (__gnat_current_time): New function (wrapper for time(3) standard C
14950 function).
14951
14952 * g-os_lib.ads (Current_Time): New function. Returns the current
14953 system time as an OS_Time value.
14954
14955 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14956 (Monotonic_Clock): Same.
14957
14958 2007-04-06 Quentin Ochem <ochem@adacore.com>
14959
14960 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14961 not on a natural.
14962 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14963
14964 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14965
14966 * a-retide.adb: Add elaboration code to ensure that the tasking run
14967 time is initialized when using delay operations even when no task is
14968 created.
14969
14970 2007-04-06 Javier Miranda <miranda@adacore.com>
14971
14972 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14973 component Num_Prim_Ops.
14974 (Set_Num_Prim_Ops): Removed.
14975 Remove all the assertions because all the routines of this
14976 package are inline always.
14977 (Get_Offset_Index): Add support to primary dispatch tables.
14978 Move the documentation about the dispatch table to a-tags.ads
14979 (Set_External_Tag): Removed
14980 (Inherit_TSD): Removed.
14981 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14982 moved to a-tags.ads
14983 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14984 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14985 of the TSD field "Table" because this field has been renamed to
14986 "Ifaces_Table".
14987 (Inherit_CPP_DT): Removed.
14988 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14989 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14990 declarations have been moved to a-tags.ads
14991 (Check_Size): Removed.
14992 (Expanded_Name): Updated to get access to the new field of TSD
14993 containing the address of the expanded name.
14994 (Get_Access_Level/Set_Access_Level): Removed.
14995 (Get_Predefined_Prim_Op_Address): Removed.
14996 (Set_Predefined_Prim_Op_Address): Removed.
14997 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14998 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14999 (Set_Expanded_Name): Removed.
15000 (Inherit_DT): Removed.
15001 (Inherit_CPP_DT): Removed.
15002 (Set_RC_Offset): Removed.
15003 (Set_TSD): Removed.
15004 (Base_Address): New function that displaces "this" to point to the base
15005 of the object (that is, to point to the primary tag of the object).
15006
15007 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15008 Javier Miranda <miranda@adacore.com>
15009
15010 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
15011 anonymous access component, do not create a master_id if type already
15012 has one, as may happen if the type is a subcomponent of a packed array
15013 type.
15014 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
15015 Initialize_Tag): Remove code associated with the old CPP pragmas.
15016 CPP_Virtual and CPP_Vtable are no longer supported.
15017 (Build_Offset_To_Top_Internal): Add support for concurrent record types
15018 (Build_Offset_To_Top_Functions): Add support for concurrent record types
15019 (Freeze_Record_Type): Remove call to
15020 Init_Predefined_Interface_Primitives.
15021 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
15022 code required to initialize the tags of the secondary dispatch tables.
15023 This leaves the algoritm more clear.
15024 (Init_Secondary_Tags): Add support for concurrent record types
15025 (Make_Predefined_Primitive_Specs): Code cleanup.
15026 (Predefined_Primitive_Bodies): Code cleanup.
15027 (Build_Master_Renaming): New local subprogram.
15028 (Expand_N_Full_Type_Declaration): Build the master_id associated with
15029 anonymous access to task type components.
15030 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
15031 subtype indication are resolved during analysis, and must not be done
15032 here.
15033 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
15034
15035 2007-04-06 Geert Bosch <bosch@adacore.com>
15036 Ed Schonberg <schonberg@adacore.com>
15037 Javier Miranda <miranda@adacore.com>
15038 Bob Duff <duff@adacore.com>
15039
15040 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
15041 for conversion of a Float_Type'Truncation to integer.
15042
15043 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
15044 check if a node is an attribute that can be handled directly by the
15045 back end.
15046 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
15047 attributes that can be handled directly by the back end.
15048 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
15049 use new predicate Is_Access_Protected_Subprogram_Type.
15050 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
15051 and Unchecked_Union if it is generated as part of the default Output
15052 procedure for a type with default discriminants.
15053 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
15054 if we are compiling under restriction No_Dispatching_Calls.
15055 (Constrained): Use Underlying_Type, in case the type is private without
15056 discriminants, but the full type has discriminants.
15057 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
15058 call to Build_Get_Access_Level.
15059 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
15060 interface objects requires a call to the run-time subprogram that
15061 returns the base address of the object.
15062 (Valid_Conversion): Improve error message on illegal attempt to store
15063 an anonymous access to subprogram value into a record component.
15064
15065 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
15066 null".
15067 (Simplify_Type_Conversion): New procedure that performs simplification
15068 of Int_Type (Float_Type'Truncation (X)).
15069 (Resolve_Type_Conversion): Call above procedure after resolving operand
15070 and before performing checks. This replaces the existing ineffective
15071 code in Exp_Ch4.
15072 (Set_String_Literal_Subtype): When creating the internal static lower
15073 bound subtype for a string literal, use a newly created copy of the
15074 subtree representing the lower bound.
15075 (Resolve_Call): Exclude build-in-place function calls from transient
15076 scope treatment. Update comments to describe this exception.
15077 (Resolve_Equality_Op): In case of dispatching call check violation of
15078 restriction No_Dispatching_Calls.
15079 (Resolve_Call): If the call returns an array, the context imposes the
15080 component type of the array, and the function has one non-defaulted
15081 parameter, rewrite the call as the indexing of a call with a single
15082 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
15083 in prefix form.
15084 (Resolve_Actuals): If an actual is an allocator for an access parameter,
15085 the master of the created object is the innermost enclosing statement.
15086 (Remove_Conversions): For a binary operator, check if type of second
15087 formal is numeric, to check if an abstract interpretation is present
15088 in the case of exponentiation as well.
15089
15090 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15091 Bob Duff <duff@adacore.com>
15092
15093 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
15094 copying a parameter list in a call, set properly the First_Named_Formal
15095 and Next_Named_Formal fields in the new list and in the enclosing call.
15096 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
15097 names, to ease typing in the debugger. Improve comments.
15098 (Watch_Node): New variable, intended to be set in the debugger.
15099 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
15100 called when the watched node is created.
15101 (New_Node_Debugging_Output): Combined version of local procedures
15102 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
15103 with a parameter so that conditional breakpoints like "if Node = 12345"
15104 work.
15105 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
15106 Add Elist1 function
15107
15108 2007-04-06 Thomas Quinot <quinot@adacore.com>
15109 Ed Schonberg <schonberg@adacore.com>
15110 Gary Dismukes <dismukes@adacore.com>
15111
15112 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
15113 required for a conversion between two access-to-unconstrained-array
15114 types.
15115 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
15116 to discriminant constraints on discriminant objects. This rule must
15117 apply as well to discriminants of protected types in private components.
15118 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
15119 object of a null-excluding access type then don't require the
15120 the object declaration to have an expression and don't emit a
15121 run-time check.
15122
15123 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15124 Eric Botcazou <botcazou@adacore.com>
15125
15126 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
15127 and made constant.
15128
15129 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
15130 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
15131 carry any.
15132
15133 * fe.h (Compiler_Abort): Add third parameter.
15134
15135 * misc.c (internal_error_function): Build third argument from current
15136 input location and pass it to Compiler_Abort.
15137
15138 2007-04-06 Gary Dismukes <dismukes@adacore.com>
15139
15140 * cstand.adb (Create_Standard): When the target's storage unit size is
15141 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
15142 Standard_String.
15143
15144 2007-04-06 Nicolas Roche <roche@adacore.com>
15145
15146 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
15147 absolute path can have the following form: device:/a/b. In this case
15148 '/' should be inserted between the path and the filename.
15149
15150 2007-04-06 Olivier Hainque <hainque@adacore.com>
15151 Eric Botcazou <botcazou@adacore.com>
15152
15153 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
15154 VAR_DECL to a CONST_DECL we make for a public constant when we know the
15155 corresponding definition has created the so made visible variable.
15156 Handle anonymous access to protected subprogram.
15157 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
15158 object with an address clause volatile. Re-enable original fix.
15159 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
15160 too.
15161 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
15162 associated with either the Equivalent or Root type, instead of the
15163 naked type node.
15164 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
15165 subtree for every field of a global record type.
15166 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
15167 discriminants, invoke again variable_size on its newly computed sizes.
15168
15169 2007-04-06 Robert Dewar <dewar@adacore.com>
15170 Thomas Quinot <quinot@adacore.com>
15171 Ed Schonberg <schonberg@adacore.com>
15172 Bob Duff <duff@adacore.com>
15173
15174 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15175 (Next_Component_Or_Discriminant): New function and procedure
15176 (First_Index, First_Literal, Master_Id,
15177 Set_First_Index, Set_First_Literal, Set_Master_Id):
15178 Add missing Ekind assertions.
15179 (Is_Access_Protected_Subprogram_Type): New predicate.
15180 (Has_RACW): New entity flag, set on package entities to indicate that
15181 the package contains the declaration of a remote accecss-to-classwide
15182 type.
15183 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15184 attribute, in case the result type has controlled parts.
15185 (Requires_Overriding): Add this new flag, because "requires
15186 overriding" is subtly different from "is abstract" (see AI-228).
15187 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15188 Is_Abstract_Type. Make sure these are called only when appropriate.
15189 (Has_Pragma_Unreferenced_Objects): New flag
15190
15191 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15192 class-wide, the tag of the right-hand side must be an exact match, not
15193 an ancestor of that of the object on left-hand side.
15194 (Move_Activation_Chain): New procedure to create the call to
15195 System.Tasking.Stages.Move_Activation_Chain.
15196 (Expand_N_Extended_Return_Statement): Generate code to call
15197 System.Finalization_Implementation.Move_Final_List at the end of a
15198 return statement if the function's result type has controlled parts.
15199 Move asserts to Build_In_Place_Formal.
15200 (Move_Final_List): New function to create the call statement.
15201 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15202 tagged type, replace generation of call to the run-time subprogram
15203 CW_Membership by call to Build_CW_Membership.
15204 (Expand_N_Return_Statement): Replace generation of call to the run-time
15205 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15206 (Expand_N_Simple_Function_Return): Replace generation of call to the
15207 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15208
15209 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15210 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15211 access to protected operations.
15212 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15213 master and chain actual parameters to a build-in-place function call
15214 involving tasks.
15215 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15216 statement.
15217 (Make_Build_In_Place_Call_In_Allocator,
15218 Make_Build_In_Place_Call_In_Anonymous_Context,
15219 Make_Build_In_Place_Call_In_Assignment,
15220 Make_Build_In_Place_Call_In_Object_Declaration): Call
15221 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15222 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15223 stubbed procedure with a null body, replace the call with a null
15224 statement without using the full inlining machinery, for efficiency
15225 and to avoid invalid values in source file table entries.
15226
15227 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15228 renamings of calls to build-in-place functions.
15229
15230 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15231 provides the functionality of RTE_Available to record components.
15232 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15233 to avoid undesired overloading.
15234 (Entity): New subprogram that returns the entity for the referened
15235 unit. If this unit has not been loaded, it returns Empty.
15236 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15237 Remove no longer used entities.
15238 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15239 (RE_Type_Specific_Data): New entity.
15240 (RE_Move_Any_Value): New entity.
15241 (RE_TA_A, RE_Get_Any_Type): New entities.
15242 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15243 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15244 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15245 (Entity): New subprogram that returns the entity for the referened
15246 unit. If this unit has not been loaded, it returns Empty.
15247 (RTE): Addition of a new formal that extends the search to the scopes
15248 of the record types found in the chain of the package.
15249
15250 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15251 "abstract subprograms must be visible" message, whether or not the type
15252 is an interface; that is, remove the special case for interface types.
15253 (Analyze_Function_Return): Remove error message "return of task objects
15254 is not yet implemented" because this is now implemented.
15255 (Create_Extra_Formals): Add the extra master and activation chain
15256 formals in case the result type has tasks.
15257 Remove error message "return of limited controlled objects is not yet
15258 implemented".
15259 (Create_Extra_Formals): Add the extra caller's finalization list formal
15260 in case the result type has controlled parts.
15261 (Process_Formals): In case of access formal types there is no need
15262 to continue with the analysis of the formals if we already notified
15263 errors.
15264 (Check_Overriding_Indicator): Add code to check overriding of predefined
15265 operators.
15266 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15267 flags for formals that do not require them,.
15268 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15269 hidden entity is use visible or directly visible.
15270 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15271 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15272 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15273 New_Overloaded_Entity): Split Is_Abstract flag into
15274 Is_Abstract_Subprogram and Is_Abstract_Type.
15275
15276 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15277 a return statement's finalization list to the caller's list, used for
15278 build-in-place functions with result type with controlled parts.
15279 Remove no longer used entities.
15280
15281 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15282 longer needed, because the full type is now limited, and therefore a
15283 pass-by-reference type.
15284 (Foreign_Task_Level): New constant.
15285
15286 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15287 move tasks from the activation chain belonging to a return statement to
15288 the one passed in by the caller, and update the master to the one
15289 passed in by the caller.
15290 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15291 of unactivated tasks, so we don't kill the ones that are being returned
15292 by a build-in-place function.
15293 (Create_Task): Ignore AI-280 for foreign threads.
15294
15295 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15296 Robert Dewar <dewar@adacore.com>
15297 Bob Duff <duff@adacore.com>
15298 Gary Dismukes <dismukes@adacore.com>
15299
15300 * errout.adb (Unwind_Internal_Type): Use predicate
15301 Is_Access__Protected_Subprogram_Type.
15302
15303 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15304 (Freeze_Entity, packed array case): Do not override explicitly set
15305 alignment and size clauses.
15306 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15307 the enclosing subprogram is a child unit body that acts as a spec.
15308 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15309 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15310 Remove all code for DSP option
15311
15312 * layout.adb (Layout_Record_Type): Use First/
15313 Next_Component_Or_Discriminant
15314 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15315 to handle properly the anonymous access case.
15316
15317 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15318 for all access attributes, because overload resolution should work the
15319 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15320 causes the error message for the ambiguous "X'Access = Y'Access" and
15321 "X'Unrestricted_Access = Y'Access" and so forth to match.
15322 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15323 now that anonymous access to protected operations have their own kind.
15324 (Resolve_Attribute): In case of dispatching call check the violation of
15325 restriction No_Dispatching_Calls.
15326 (Check_Array_Type): Check new -gnatyA array index style option
15327
15328 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15329 attempt to derive from a synchronized tagged type.
15330 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15331 type, inherit the class-wide type already created, because it may
15332 already have been used in a self-referential anonymous access component.
15333 (Mentions_T): Recognize self-referential anonymous access components
15334 that use (a subtype of) the class-wide type of the enclosing type.
15335 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15336 Derived_Type for Prev formal on call to
15337 Check_Anonymous_Access_Components rather than Empty.
15338 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15339 a record extension in deciding whether to create a class-wide type,
15340 rather than just checking Tagged_Present.
15341 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15342 to stand-alone object declarations as well as component declarations.
15343 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15344 prevent accidental overwriting when enclosing package appears in
15345 a limited_with_clause.
15346 (Array_Type_Declaration): If the component type is an anonymous access,
15347 the associated_node for the itype is the type declaration itself.
15348 (Add_Interface_Tag_Components): Modified to support concurrent
15349 types with abstract interfaces.
15350 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15351 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15352 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15353 to complete the decoration of synchronized interface types. Add also
15354 a call to Check_Abstract_Interfaces to verify the ARM rules.
15355 (Derive_Interface_Subprograms): Modified to support concurrent types
15356 with abstract interfaces.
15357 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15358 mark, rather than delaying the full resolution depending on context.
15359 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15360 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15361 Array_Type_Declaration,Build_Derived_Record_Type,
15362 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15363 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15364 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15365 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15366 called only when appropriate.
15367 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15368 to private type.
15369 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15370 an itype reference for the anonymous designated subtype, to prevent
15371 scope anonmalies in gigi.
15372 (Build_Itype_Reference): New utility, to simplify construction of such
15373 references.
15374
15375 2007-04-06 Vincent Celier <celier@adacore.com>
15376
15377 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15378 are suppressed, supply an initial dummy entry covering all possible
15379 source locations.
15380
15381 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15382 and start with only one, such as "-RTS=none".
15383 (Collect_Arguments): Do not check for sources outside of projects.
15384 Do not collect arguments if project is externally built.
15385 (Compile_Sources): Do nothing, not even check if the source is up to
15386 date, if its project is externally built.
15387 (Compile): When compiling a predefined source, add -gnatpg
15388 as the second switch, after -c.
15389 (Compile_Sources): Allow compilation of Annex J renames without -a
15390 (Is_In_Object_Directory): Check if the ALI file is in the object
15391 even if there is no project extension.
15392 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15393 gnatbind if the ALI file effectively exists.
15394 (Initialize): Add the directory where gnatmake is invoked in front of
15395 the path if it is invoked from a bin directory, even without directory
15396 information, so that the correct GNAT tools will be used when spawned
15397 without directory information.
15398
15399 * makeusg.adb: Change switch -S to -eS
15400 Add lines for new switches -we, -wn and -ws
15401 Add line for new switch -p
15402
15403 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15404 Treat_As_Error and there are warnings.
15405
15406 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15407 -gnatww Change gnatmake switch -S to -eS
15408 (Scan_Make_Switches): Code reorganisation. Process separately multi
15409 character switches and single character switches.
15410 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15411 False when switch is not recognized by gnatmake.
15412 (Scan_Make_Switches): Set Setup_Projects True when -p or
15413 --create-missing-dirs is specified.
15414
15415 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15416 renamings Calendar, Machine_Code, Unchecked_Conversion and
15417 Unchecked_Deallocation only when Renamings_Included is True.
15418
15419 * par.adb: Allow library units Calendar, Machine_Code,
15420 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15421 when -gnatg is not specified.
15422 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15423 there is no need to generate always a record_definition_node in case
15424 of synchronized interface types.
15425 (SIS_Entry_Active): Initialize global variable to False
15426 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15427 indicate cases where AI-447 says "not null" is legal.
15428
15429 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15430
15431 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15432 files with with several lines starting with the object fileb name.
15433 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15434 is specified.
15435 (Initialize): Add the directory where gprmake is invoked in front of the
15436 path, if it is invoked from a bin directory or with directory
15437 information, so that the correct GNAT tools will be used when invoked
15438 directly.
15439 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15440
15441 * vms_data.ads: Update switches/qualifiers
15442
15443 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15444 Thomas Quinot <quinot@adacore.com>
15445
15446 * exp_aggr.adb:
15447 If the array component is a discriminated record, the array aggregate
15448 is non-static even if the component is given by an aggregate with
15449 static components.
15450 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15451 (Convert_Aggr_In_Allocator): If the allocator is for an access
15452 discriminant and the type is controlled. do not place on a finalization
15453 list at this point. The proper list will be determined from the
15454 enclosing object.
15455 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15456 initialize record controller if needed, before the components, to ensure
15457 that they are properly finalized.
15458 (Build_Record_Aggr_Code): For the case of an array component that has a
15459 corresponding array aggregate in the record aggregate, perform sliding
15460 if required.
15461
15462 2007-04-06 Javier Miranda <miranda@adacore.com>
15463 Gary Dismukes <dismukes@adacore.com>
15464 Ed Schonberg <schonberg@adacore.com>
15465
15466 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15467 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15468
15469 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15470 accessibility on class-wide allocators if the allocator occurs at the
15471 same scope level as the allocator's type. The check is guaranteed to
15472 succeed in that case, even when the expression originates from a
15473 parameter of the containing subprogram.
15474 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15475 under No_Dispatching_Calls restriction. During the semantic analysis
15476 we already notified such violation.
15477 (Tagged_Membership): Constant folding. There is no need to check
15478 the tag at run-time if the type of the right operand is non
15479 class-wide abstract.
15480 Replace call to Is_Ancestor by call to Is_Parent
15481 to support concurrent types with interface types.
15482 (Expand_N_Allocator): Add an assertion associated with the generation
15483 of the master_id.
15484 (Expand_N_Slice): Do not enable range check to nodes associated
15485 with the frontend expansion of the dispatch table.
15486 (Is_Local_Access_Discriminant): Subsidiary function to
15487 Expand_N_Allocator.
15488 (Tagged_Membership): Replace generation of call to the run-time
15489 subprogram CW_Membership by call to Build_CW_Membership.
15490 (Expand_Allocator_Expression): Replace generation of call to the
15491 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15492
15493 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15494 initialize most the TSD components by means of an aggregate.
15495 Modify the declaration of the object containing the TSD
15496 because we now expand code that has a higher level of abstraction.
15497 The TSD has a discriminant containing the Inheritance Depth Level,
15498 value that is used in the membership test but also to fix the size
15499 of the table of ancestors.
15500 (Expand_Interface_Conversion): Insert function body at the closest place
15501 to the conversion expression, to prevent access-before-elaboration
15502 errors in the backend.
15503 Code improved to reduce the size of the dispatch table if
15504 compiling under restriction No_Dispatching_Calls plus code cleanup.
15505 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15506 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15507 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15508 code to return immediately if compiling under No_Dispatching_Calls
15509 restriction.
15510 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15511 CPP_Virtual and CPP_Vtable are no longer supported.
15512 (Expand_Interface_Conversion): Add missing support for interface type
15513 derivations.
15514 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15515 Is_Parent to support concurrent types with interfaces.
15516 (Init_Predefined_Interface_Primitives): Removed.
15517 (Make_Secondary_DT): Modified to support concurrent record types.
15518 (Set_All_DT_Position): Modified to support concurrent record types.
15519 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15520 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15521 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15522 with CW_Membership.
15523 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15524 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15525 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15526 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15527 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15528 (Expand_Dispatching_Call): Replace generation of call to the run-time
15529 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15530 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15531 Address.
15532 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15533 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15534 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15535 Build_Set_Prim_Op_Address.
15536 (Get_Remotely_Callable): Subprogram removed.
15537 (Init_Predefined_Interface_Primitives): Replace generation of call to
15538 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15539 Prims.
15540
15541 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15542 First (Parameter_Associations ()) with the call to First_Actual that
15543 returns an actual parameter expression for both named and positional
15544 associations.
15545
15546 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15547 check violation of restriction No_Dispatching_Calls.
15548 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15549 controlling argument.
15550
15551 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15552 First/Next_Component_Or_Discriminant
15553 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15554 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15555 specify Any_Limited_Interface, and this functionality is already
15556 provided by the function Has_Abstract_Interfaces.
15557 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15558 support concurrent types implementing interfaces.
15559 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15560 specify kind Any_Limited_Interface, and this functionality is already
15561 provided by the function Has_Abstract_Interfaces.
15562 (Remove_Side_Effects): replace Controlled_Type by
15563 CW_Or_Controlled_Type whenever the issue is related to
15564 using or not the secondary stack.
15565
15566 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15567 P_Interface_Type_Definition to fulfill the new interface (the formal
15568 Is_Synchronized is no longer required).
15569
15570 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15571 Update dependencies.
15572
15573 * exp_atag.ads, exp_atag.adb: New file
15574
15575 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15576 Bob Duff <duff@adacore.com>
15577 Cyrille Comar <comar@adacore.com>
15578
15579 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15580 anonymous, use finalization list of enclosing dynamic scope.
15581 (Expand_N_Package_Declaration): For a library package declaration
15582 without a corresponding body, generate RACW subprogram bodies in the
15583 spec (just as we do for the task activation call).
15584 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15585 Is_Abstract_Type. Make sure these are called only when appropriate.
15586 Remove all code for DSP option
15587 (CW_Or_Controlled_Type): new subprogram.
15588
15589 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15590 Ed Schonberg <schonberg@adacore.com>
15591 Gary Dismukes <dismukes@adacore.com>
15592
15593 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15594 parameter. If it is set to true, return a result capped according to
15595 the global upper bound for the index of an entry family.
15596 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15597 (Build_Find_Body_Index): Adjust for above change.
15598 (Entry_Index_Expression): Likewise.
15599 (Is_Potentially_Large_Family): New function extracted from...
15600 (Collect_Entry_Families): ...here. Call it to detect whether the family
15601 is potentially large.
15602 (Build_Entry_Count_Expression): If the family is potentially large, call
15603 Family_Size with 'Cap' set to true.
15604 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15605 a protected version of an operation declared in the private part of
15606 a protected object, because they may be invoked through a callback.
15607 (Set_Privals): If the type of a private component is an anonymous access
15608 type, do not create a new itype for each protected body.
15609 If the body of a protected operation creates
15610 controlled types (including allocators for class-widetypes), the
15611 body of the corresponding protected subprogram must include a
15612 finalization list.
15613 (Build_Activation_Chain_Entity): Build the chain entity for extended
15614 return statements.
15615 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15616 to determine whether operation overrides an inherited primitive.
15617 (Build_Wrapper_Spec): Add code to examine the parents while looking
15618 for a possible overriding candidate.
15619 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15620 hold an actual parameter value since its initialization is separated
15621 from the the declaration. Prevents errors on null-excluding access
15622 formals.
15623
15624 2007-04-06 Thomas Quinot <quinot@adacore.com>
15625 Pablo Oliveira <oliveira@adacore.com>
15626
15627 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15628 Do an Unchecked_Conversion to handle the passage from the Underlying
15629 Type to the Base Type when calling Build_To_Any_Call and
15630 Build_From_Any_Call.
15631 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15632 E_Constant, depending upon Variable formal.
15633 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15634 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15635 parameter that requires an extra constrained parameter, declare
15636 temporary for actual as a variable, not a constant.
15637 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15638 the unit being compiled is the one that contains the stub type.
15639 Change primitive operation name for the RACW associated with a RAS
15640 from Call to _Call so it cannot clash with any legal identifier.
15641 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15642 Is_RAS.
15643 (Append_RACW_Bodies): New subprogram.
15644 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15645 Add_Receiving_Stubs_To_Declarations functions.
15646 When expanding a package body, this list correspond to the
15647 statements in the HSS at the end of the pacakge.
15648 When expanding a package spec, this list correspond to the
15649 spec declarations.
15650 (Add_Receiving_Stubs_To_Declarations): Append the function
15651 registering the receiving stubs at the end of the 'Stmts' list.
15652 (RCI_Package_Locator): Pass the new Version generic formal when
15653 instantiating a RCI_Locator package.
15654 (Build_From_Any_Function): To compute the High bound for an
15655 unconstrained array actual, we add the Low bound with the length.
15656 Thus we must convert the low bound and the length to an appropriate
15657 type before doing the sum.
15658 (Build_Subprogram_Receiving_Stubs, PolyORB):
15659 * Retrieve the extra formals parameters at the
15660 end of the parameter stream.
15661 * Use Move_Any_Value to write back out parameters
15662 after executing the request as it is more efficient
15663 than Copy_Any_Value.
15664 * Build the any containing Extra Formals with the
15665 appropriate typecode.
15666 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15667 empty Component_List.
15668 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15669 the tree the declaration for an object that serves as actual parameter
15670 in server-side stubs.
15671 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15672 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15673 Use Build_Actual_Object_Declaration to prepare the actuals.
15674 (Add_Parameter_To_NVList): Set the parameter mode to In for
15675 Extra Constrained Parameters.
15676 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15677 Extra Constrained parameters.
15678 (Build_To_Any_Function, Build_From_Any_Function,
15679 Built_TypeCode_Function): When Typ is implicit, call the correct
15680 function with the first not implicit parent type.
15681 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15682 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15683 typecode from the Etype. Therefore we retrieve the correct typecode
15684 with a call to Get_Any_Type.
15685 (Copy_Specification): Do controlling formal type substitution based on
15686 Is_Controlling_Formal flag, instead of caller-provided object type.
15687 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15688 a RACW primitive operation, we might get a subprogram declaration for an
15689 ancestor of the RACW designated type (not for the designated type
15690 itself), in the case where this operation is inherited. In this case we
15691 have no easy means of determining the original tagged type for which
15692 the primitive was declared, so instead we now rely on
15693 Copy_Specification to use the Is_Controlling_Formal flag to determine
15694 which formals require type substitution.
15695
15696 2007-04-06 Robert Dewar <dewar@adacore.com>
15697 Ed Schonberg <schonberg@adacore.com>
15698
15699 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15700 GNAT.Current_Exception are not allowed if pragma Restrictions
15701 (No_Exception_Propagation) is set and in any case make the associated
15702 handler unsuitable as a target for a local raise statement.
15703 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15704 run-time subprogram CW_Membership by call to Build_CW_Membership.
15705 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15706 by a function call, a temporary must be created before expanding the
15707 Constructor_Call itself, to prevent out-of-order elaboration in the
15708 back-end when stack checking is enabled..
15709
15710 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15711
15712 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15713 result are the bounds of the left operand, not the right.
15714
15715 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15716
15717 * exp_strm.adb
15718 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15719 discriminant defaults.
15720 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15721 (Make_Component_List_Attributes): Ditto.
15722
15723 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15724 Bob Duff <duff@adacore.com>
15725
15726 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15727 an association with a box as providing a value even though the
15728 initialization procedure for the type is not available.
15729 (Resolve_Record_Aggregate): Check that a choice of an association with a
15730 box corresponds to a component of the type.
15731 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15732 Is_Abstract_Subprogram and Is_Abstract_Type.
15733
15734 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15735 assert.
15736
15737 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15738 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15739 called only when appropriate.
15740
15741 2007-04-06 Olivier Hainque <hainque@adacore.com>
15742
15743 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15744 associated vector view instead of all to the unsigned char view.
15745
15746 * g-altcon.adb (Generic_Conversions): New internal generic package,
15747 offering facilities for all the Vector/View conversion routines
15748 implemented by this unit.
15749 (To_View/To_Vector - all versions): Reimplemented in a systematic
15750 manner, using the internal Generic_Conversions facilities.
15751
15752 2007-04-06 Pascal Obry <obry@adacore.com>
15753
15754 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15755 string.
15756 (Create): Free the source string before storing the new one.
15757
15758 2007-04-06 Vincent Celier <celier@adacore.com>
15759
15760 * g-debpoo.adb (Validity): New package with a complete new
15761 implementation of subprograms Is_Valid and Set_Valid.
15762 (Is_Valid): Move to local package Validity
15763 (Set_Valid): Move to local package Validity
15764
15765 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15766 Pablo Oliveira <oliveira@adacore.com>
15767
15768 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15769 we must ensure that there is enough place for the new data we are going
15770 to copy in.
15771
15772 2007-04-06 Thomas Quinot <quinot@adacore.com>
15773
15774 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15775 computation.
15776
15777 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15778 Vincent Celier <celier@adacore.com>
15779
15780 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15781 (Stack_String): Add this String that contains the name of the Stack
15782 package in the project file.
15783 (Packages_To_Check_By_Stack): Add this list that contains the packages
15784 to be checked by gnatstack, which are the naming and the stack packages.
15785 (Check_Files): If no .ci files were specified for gnatstack we add all
15786 the .ci files belonging to the projects, including binder generated
15787 files.
15788 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15789 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15790 Add gnatstack to the list of commands that use project file related
15791 switches, and get the single attribute Switches from the stack package
15792 in a project file when calling gnatstack. Parse the -U flag for
15793 processing files belonging to all projects in the project tree.
15794 Remove all processing for command Setup
15795
15796 * prj-attr.adb: Add new package Stack with single attribute Switches
15797
15798 * vms_conv.ads (Command_Type): Add command Stack.
15799 Move to body declarations that are only used in the body: types Item_Id,
15800 Translation_Type, Item_Ptr, Item and its subtypes.
15801
15802 * vms_conv.adb: (Initialize): Add data for new command Stack.
15803 Add declarations moved from the spec: types Item_Id, Translation_Type,
15804 Item_Ptr, Item and its subtypes.
15805 (Cargs_Buffer): New table
15806 (Cargs): New Boolean global variable
15807 (Process_Buffer): New procedure to create arguments
15808 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15809 value of Cargs.
15810 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15811 COMPILE
15812 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15813 empty, for table Cargs_Buffer.
15814 (Initialize): Remove component Setup in Command_List
15815
15816 2007-04-06 Vincent Celier <celier@adacore.com>
15817
15818 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15819 issuing pragma Source_Reference.
15820
15821 2007-04-06 Emmanuel Briot <briot@adacore.com>
15822
15823 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15824 [[:xdigit:]] character class.
15825 Also raise an exception when an invalid character class is used.
15826
15827 2007-04-06 Pascal Obry <obry@adacore.com>
15828
15829 * i-cstrea.ads: (fopen): Add encoding parameter.
15830 (freopen): Idem.
15831 Change reference from a-sysdep.c to sysdep.c in comment.
15832 Update copyright notice.
15833 This set of patch add support for the encoding form parameter.
15834
15835 * mingw32.h (S2WSU): New macro to convert from a string to a
15836 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15837 standard 8bits encoding.
15838 (WS2SU): As above but converting from wide-sring to string.
15839 This is needed as it is necessary to have access to both versions in the
15840 runtime for the form parameter encoding support.
15841 This set of patch add support for the encoding form parameter.
15842 (S2WS): Improve implementation to handle cases where the filename is not
15843 UTF-8 encoded. In this case we default to using the current code page
15844 for the conversion.
15845
15846 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15847 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15848 the constants defined in adaint.h.
15849 (fopen): Add encoding parameter.
15850 (freopen): Idem.
15851
15852 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15853 encoding. This is needed for the Reset routine (freopen low level-call).
15854
15855 * s-fileio.adb (Open): Decode encoding form parameter and set the
15856 corresponding encoding value into AFCB structure.
15857 (Reset): Pass the encoding value to freopen.
15858 (Close): Move the call to Lock_Task to the beginning of the procedure.
15859
15860 2007-04-06 Geert Bosch <bosch@adacore.com>
15861 Robert Dewar <dewar@adacore.com>
15862
15863 * i-fortra.ads: Add Double_Complex type.
15864
15865 * impunit.adb: (Is_Known_Unit): New function
15866 Add Gnat.Byte_Swapping
15867 Add GNAT.SHA1
15868 Add new Ada 2005 units
15869 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15870 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15871 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15872 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15873
15874 * impunit.ads (Is_Known_Unit): New function
15875
15876 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15877 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15878 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15879 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15880 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15881 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15882 New files.
15883
15884 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15885
15886 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15887
15888 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15889 Arnaud Charlet <charlet@adacore.com>
15890
15891 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15892 __gnat_adjust_context_for_raise.
15893 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15894 implementation of floating point operations as native x86 targets.
15895 So the FPU should be initialized in the same way using finit. Fix
15896 floating point operations accuracy issues.
15897 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15898 member in struct sigaction, so as to avoid warning for incompatible
15899 pointer types.
15900
15901 2007-04-06 Serguei Rybin <rybin@adacore.com>
15902
15903 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15904 switches from previously loaded tree
15905
15906 2007-04-06 Thomas Quinot <quinot@adacore.com>
15907
15908 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15909 cases where a given dependency has a body or not.
15910 (Write_With_File_Names): New subprogram, common code for the two cases
15911 above.
15912
15913 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15914 Javier Miranda <miranda@adacore.com>
15915
15916 * lib-xref.ads, lib-xref.adb:
15917 Modify the loop that collects type references, to include interface
15918 types that the type implements. List each of these interfaces when
15919 building the entry for the type.
15920 (Generate_Definition): Initialize component Def and Typ of new entry
15921 in table Xrefs, to avoid to have these components unitialized.
15922 (Output_References): Split Is_Abstract flag into
15923 Is_Abstract_Subprogram and Is_Abstract_Type.
15924 (Generate_Reference): Add barrier to do not generate the warning
15925 associated with Ada 2005 entities with entities generated by the
15926 expander.
15927
15928 2007-04-06 Robert Dewar <dewar@adacore.com>
15929 Arnaud Charlet <charlet@adacore.com>
15930 Vincent Celier <celier@adacore.com>
15931
15932 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15933 Update 'Exception Handling Control' chapter which was outdated.
15934 Minor fix to documentation of -gnatwq
15935 Remove section "Adapting the Run Time to a New C++ Compiler" because
15936 it is now obsolete.
15937 Add passage on need of -nostart-files in some non-ada-main cases.
15938 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15939 Update documentation about Interfacing with C++
15940 Add documentation for new gnatmake switch -p
15941 Add missing protocol part in URLs.
15942 Document -gnatyA
15943 Document pragma Compile_Time_Error
15944 Add documentation for Object_Size indicating that stand alone
15945 objects can have a larger size in some cases.
15946 Add node for GNAT.Byte_Swapping, GNAT.SHA1
15947 Update reference to the Ravenscar profile.
15948 Document pragma Unreferenced_Objects
15949
15950 * gnat-style.texi: Fix typo
15951
15952 2007-04-06 Vincent Celier <celier@adacore.com>
15953
15954 * mlib.adb (Building_Library): Only output "building a library..." in
15955 verbose mode
15956
15957 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15958 files in verbose mode.
15959
15960 * mlib-utl.adb (Ar): Only output the first object files when not in
15961 verbose mode.
15962 (Gcc): Do not display all the object files if not in verbose mode, only
15963 the first one.
15964
15965 2007-04-06 Robert Dewar <dewar@adacore.com>
15966
15967 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15968 it no longer destroys the contents of Name_Buffer or Name_Len and
15969 non-standard and invalid names are handled better.
15970 (Get_Decoded_Name_String): Improve performance by using
15971 Name_Has_No_Encodings flag in the name table.
15972 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15973 Used for debugging printouts.
15974
15975 2007-04-06 Robert Dewar <dewar@adacore.com>
15976 Javier Miranda <miranda@adacore.com>
15977 Bob Duff <duff@adacore.com>
15978
15979 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15980 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15981 there is no need to generate always a record_definition_node in case
15982 of synchronized interface types.
15983 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15984 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15985 illegal in Ada 95, in cases where it is legal. Change the warnings to
15986 errors in other cases. Don't give the error unless the "not null"
15987 parses properly. Correct the source position at which the error occurs.
15988 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15989 P_Null_Exclusion, to suppress "not null" warnings.
15990 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15991 associated goto statements.
15992
15993 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15994 of END RECORD
15995
15996 * scans.ads (Type_Token_Location): New flag
15997
15998 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15999 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
16000 P_Null_Exclusion, to suppress "not null" warnings.
16001
16002 2007-04-06 Robert Dewar <dewar@adacore.com>
16003 Javier Miranda <miranda@adacore.com>
16004 Bob Duff <duff@adacore.com>
16005 Vincent Celier <celier@adacore.com>
16006
16007 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
16008 (Extensions_Allowed): No longer sets Ada_Version
16009 Entry for pragma Unreferenced_Objects
16010
16011 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
16012 system.tasking if pragma priority used in a procedure
16013 (Analyze_Pragma, case Warning): Handle dot warning switches
16014 (Process_Compile_Time_Warning_Or_Error): New procedure
16015 (Analyze_Pragma): Add processing for Compile_Time_Error
16016 Add support for extra arguments External_Name and Link_Name.
16017 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
16018 (Process_Import_Or_Interface): Add support for the use of pragma Import
16019 with tagged types.
16020 (Extensions_Allowed): No longer affects Ada_Version
16021 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
16022 Is_Abstract_Type. Make sure these are called only when appropriate.
16023 Add processing for pragma Unreferenced_Objects
16024
16025 * snames.h, snames.ads, snames.adb: Add entry for pragma
16026 Compile_Time_Error
16027 Add new standard name Minimum_Binder_Options for new gprmake
16028 Add new standard names for gprmake: Archive_Suffix,
16029 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
16030 Library_Support, Library_Version_Options,
16031 Shared_Library_Minimum_Options,
16032 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
16033 Change Name_Call to Name_uCall so that it cannot clash with a legal
16034 subprogram name.
16035 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
16036 Append C_Plus_Plus to convention identifiers as synonym for CPP
16037 Add new standard names Stack and Builder_Switches
16038 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
16039 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
16040 Run_Path_Option, Toolchain_Version.
16041 Entry for pragma Unreferenced_Objects
16042
16043 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
16044 switches, without repetition of "eD". Make sure that last character of
16045 -gnatep= switch is not taken as -gnat switch character.
16046 Complete rewrite of circuit for handling saving compilation options
16047 Occasioned by need to support dot switchs for -gnatw, but cleans up
16048 things in general.
16049 -gnatX does not affect Ada_Version
16050 Include -gnatyA in -gnatg style switches
16051
16052 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
16053 warnings on return objects.
16054 (Warn_On_Useless_Assignment): Exclude warnings on return objects
16055 (Set_Dot_Warning_Switch): New procedure
16056 (Check_References): Add missing case of test for
16057 Has_Pragma_Unreferenced_Objects
16058 (Output_Unreferenced_Messages): Implement effect of new pragma
16059 Unreferenced_Objects, remove special casing of limited controlled
16060 variables.
16061
16062 2007-04-06 Vincent Celier <celier@adacore.com>
16063
16064 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
16065 the default project path, initially done during elaboration of the
16066 package.
16067 If the prefix returned by Sdefault is null, get the prefix from a call
16068 to Executable_Prefix_Path.
16069 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
16070 null.
16071
16072 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
16073 canonical directory name to open the directory from which files are
16074 retrieved.
16075 (Record_Other_Sources): Idem.
16076 (Locate_Directory): Add the possibility to create automatically missing
16077 directories when Setup_Projects is True.
16078 Call Locate_Directory so that the directory will be created when
16079 Setup_Projects is True, for object dir, library dir, library ALI dir,
16080 library source copy dir and exec dir.
16081
16082 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
16083 versions of GNAT.
16084
16085 2007-04-06 Robert Dewar <dewar@adacore.com>
16086
16087 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
16088 Use First/Next_Component_Or_Discriminant
16089 (Analyze_Record_Representation_Clause):
16090 Use First/Next_Component_Or_Discriminant
16091 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
16092 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
16093 definition if type is unconstrained.
16094 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16095 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
16096 Is_Abstract_Subprogram and Is_Abstract_Type.
16097 (Adjust_Record_For_Reverse_Bit_Order): New procedure
16098
16099 * repinfo.adb (List_Record_Info): Use First/
16100 Next_Component_Or_Discriminant.
16101
16102 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
16103 New procedure.
16104
16105 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
16106 Include -gnatyA in default switches
16107
16108 * opt.ads: (Warn_On_Non_Local_Exception): New flag
16109 (Warn_On_Reverse_Bit_Order): New flag
16110 (Extensions_Allowed): Update the documentation.
16111 (Warn_On_Questionable_Missing_Parens): Now on by default
16112
16113 * usage.adb: Add documentation of -gnatw.x/X switches
16114 Document new -gnatyA style switch
16115 -gnatq warnings are on by default
16116
16117 2007-04-06 Ed Falis <falis@adacore.com>
16118
16119 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
16120 full word is no longer compared twice.
16121
16122 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16123
16124 * sem_ch10.adb (Install_Limited_Context_Clauses.
16125 Expand_Limited_With_Clause): Use a new copy of selector name in the
16126 call to Make_With_Clause. This fixes the tree structure for ASIS
16127 purposes. Nothing is changed in the compiler behaviour.
16128 (Process_Body_Clauses): Handle properly use clauses whose prefix is
16129 a package renaming.
16130 (Install_Limited_With_Clauses): Do not install non-limited view when it
16131 is still incomplete.
16132
16133 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16134 Gary Dismukes <dismukes@adacore.com>
16135
16136 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
16137 when capturing size information, instead of base type, which for a
16138 formal array type will be the unconstrained type.
16139 (Analyze_Formal_Object_Declaration): Add check for illegal default
16140 expressions for a formal in object of a limited type.
16141 (Instantiate_Object): Ditto.
16142 (Check_Formal_Package_Instance): Skip entities that are formal objects,
16143 because they were defaulted in the formal package and no check applies
16144 to them.
16145 (Check_Formal_Package_Instance): Extend conformance check to other
16146 discrete types beyond Integer.
16147 (Process_Default): Copy directly the unmatched formal. A generic copy
16148 has already been performed in Analyze_Formal_Package.
16149 (Analyze_Associations): If a formal subprogram has no match, check for
16150 partial parametrization before looking for a default, to prevent
16151 spurious errors.
16152 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
16153 not set the instantiation environment before analyzing the actuals.
16154 Fixes regression on 8515-003 with implementation of AI-133.
16155 Set_Instance_Env checks whether the generic unit is a predefined
16156 unit, in which case the instance must be analyzed with the latest Ada
16157 mode. This setting must take place after analysis of the actuals,
16158 because the actuals must be analyzed and frozen in the Ada mode extant
16159 outside of the current instantiation.
16160 (Save_Env, Restore_Env): Preserve and restore the configuration
16161 parameters so that predefined units can be compiled in the proper Ada
16162 mode.
16163 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
16164 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
16165 and Is_Abstract_Type.
16166 (Analyze_Formal_Package): For better error recovery, Add exception
16167 handler to catch Instantion_Error, which can be raised in
16168 Analyze_Associations
16169
16170 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16171 Bob Duff <duff@adacore.com>
16172 Gary Dismukes <dismukes@adacore.com>
16173
16174 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16175 prefix type is a discriminated subtype of the type of the formal.
16176 (Analyze_Allocator): Collect all coextensions regardless of the context.
16177 Whether they can be allocated statically is determined in exp_ch4.
16178 (Analyze_Selected_Component): If the prefix is a limited view and the
16179 non-limited view is available, use the non-limited one.
16180 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16181 therefore illegal), suggest a qualified expression rather than a type
16182 conversion, because a type conversion would be illegal in this context.
16183 (Anayze_Allocator): Trace recursively all nested allocators so that all
16184 coextensions are on the corresponding list for the root. Do no mark
16185 coextensions if the root allocator is within a declaration for a stack-
16186 allocated object, because the access discriminants will be allocated on
16187 the stack as well.
16188 (Analyze_Call): Remove restriction on calls to limited functions for the
16189 cases of generic actuals for formal objects, defaults for formal objects
16190 and defaults for record components.
16191 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16192 element list. Their expansion is delayed until the enclosing allocator
16193 is processed and its finalization list constructed.
16194 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16195 for an operation with the given name among the primitive operations of
16196 the corresponding record type.
16197 (Analyze_Selected_Component): If the prefix is a task type that
16198 implements an interface, and there is no entry with the given name,
16199 check whether there is another primitive operation (e.g. a function)
16200 with that name.
16201 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16202 properly the indexing of a function call written in prefix form, where
16203 the function returns an array type, and all parameters of the function
16204 except the first have defaults.
16205 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16206 the original operands, rather than relocating them, for efficiency and
16207 to work properly when an operand is overloaded.
16208 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16209 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16210 (Analyze_Selected_Component): If the prefix is a private extension, only
16211 scan the visible components, not those of the full view.
16212 (Try_Primitive_Operation): If the operation is a procedure, collect all
16213 possible interpretations, as for a function, because in the presence of
16214 classwide parameters several primitive operations of the type can match
16215 the given arguments.
16216
16217 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16218 Robert Dewar <dewar@adacore.com>
16219
16220 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16221 tag-indeterminate call to an abstract function, when the left-hand side
16222 is not classwide.
16223 (Analyze_Loop_Statement): Improve detection of infinite loops
16224
16225 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16226 Thomas Quinot <quinot@adacore.com>
16227
16228 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16229 out of Analyze_Package_Declaration, because processing must be applied
16230 to package bodies as well, for deferred constants completed by pragmas.
16231 (Analyze_Package_Declaration): When the package declaration being
16232 analyzed does not require an explicit body, call Check_Completion.
16233 (May_Need_Implicit_Body): An implicit body is required when a package
16234 spec contains the declaration of a remote access-to-classwide type.
16235 (Analyze_Package_Body): If the package contains RACWs, append the
16236 pending subprogram bodies generated by exp_dist at the end of the body.
16237 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16238 Is_Abstract_Subprogram and Is_Abstract_Type.
16239 (Preserve_Full_Attributes): The full entity list is not an attribute
16240 that must be preserved from full to partial view.
16241
16242 * sem_dist.adb (Add_RAS_Dereference_TSS):
16243 Change primitive name to _Call so it cannot clash with any legal
16244 identifier, and be special-cased in Check_Completion.
16245 Mark the full view of the designated type for the RACW associated with
16246 a RAS as Comes_From_Source to get proper view switching when installing
16247 private declarations.
16248 Provite a placeholder nested package body along with the nested spec
16249 to have a place for Append_RACW_Bodies to generate the calling stubs
16250 and stream attributes.
16251
16252 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16253 Robert Dewar <dewar@adacore.com>
16254
16255 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16256 that is a limited view, check the non-limited view if available.
16257 (Undefined): Refine error message for missing with of Text_IO
16258 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16259 to distinguish real missing with cases.
16260 Fix format of all missing with messages
16261 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16262 renaming as body when renamed entity is abstract.
16263
16264 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16265 Javier Miranda <miranda@adacore.com>
16266
16267 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16268 predicate recursive, to handle complex expressions on literals whose
16269 spurious ambiguity comes from the abstract interpretation of some
16270 subexpression.
16271 (Interface_Present_In_Ancestor): Add support to concurrent record
16272 types.
16273 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16274 Is_Abstract_Subprogram and Is_Abstract_Type.
16275
16276 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16277 Javier Miranda <miranda@adacore.com>
16278
16279 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16280 dereference of a local object R created as a reference to another
16281 object O, use the access level of O.
16282 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16283 rather than local Same_Formal_Type, to check whether protected operation
16284 overrides an inherited one.
16285 (Same_Formal_Type): New predicate, used when matching signatures of
16286 overriding synchronized operations, to handle the case when a formal
16287 has a type that is a generic actual.
16288 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16289 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16290 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16291 syntactic ambiguities involving indexing of function calls that return
16292 arrays.
16293 (Abstract_Interface_List): New subprogram that returns the list of
16294 abstract interfaces associated with a concurrent type or a
16295 concurrent record type.
16296 (Interface_Present_In_Parent): New subprogram used to check if a
16297 given type or some of its parents implement a given interface.
16298 (Collect_Abstract_Interfaces): Add support for concurrent types
16299 with interface types.
16300 (Has_Abstract_Interfaces): Add support for concurrent types with
16301 interface types.
16302 (Is_Parent): New subprogram that determines whether E1 is a parent
16303 of E2. For a concurrent type its parent is the first element of its
16304 list of interface types; for other types this function provides the
16305 same result than Is_Ancestor.
16306 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16307 (Collect_Synchronized_Interfaces): Removed because the subprogram
16308 Collect_Abstract_Interfaces provides this functionality.
16309 (Collect_Abstract_Interfaces): Minor update to give support to
16310 concurrent types and thus avoid undesired code duplication.
16311 (Get_Subprogram_Entity): Handle entry calls.
16312 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16313 entry calls.
16314 (Enter_Name): Do not give -gnatwh hiding warning for record component
16315 entities, they never result in hiding.
16316
16317 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16318 Robert Dewar <dewar@adacore.com>
16319
16320 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16321 to chain nested components that are allocators for access discriminants
16322 of the enclosing object.
16323 Add N_Push and N_Pop nodes
16324 New field Exception_Label added
16325 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16326 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16327 (Is_Coextension): New flag for allocators, to mark allocators that
16328 correspond to access discriminants of dynamically allocated objects.
16329 (N_Block_Statement): Document the fact that the corresponding entity
16330 can be an E_Return_Statement.
16331 (Is_Coextension): New flag for allocators.
16332 Remove all code for DSP option
16333
16334 * sprint.ads, sprint.adb: Display basic information for class_wide
16335 subtypes. Add handling of N_Push and N_Pop nodes
16336
16337 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16338
16339 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16340 before propagating exception.
16341
16342 2007-04-06 Olivier Hainque <hainque@adacore.com>
16343
16344 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16345 an address always within the call instruction from a return address.
16346
16347 2007-04-06 Olivier Hainque <hainque@adacore.com>
16348 Eric Botcazou <botcazou@adacore.com>
16349
16350 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16351 expression with a COMPOUND_EXPR including the call instead of emitting
16352 the call directly here.
16353 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16354 high bound is constant and the slice is empty. Tidy.
16355 (tree_transform, case N_Op_Not): Handle properly the case where the
16356 operation applies to a private type whose full view is a modular type.
16357 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16358 Address_Clause, use the associated Expression as the GNAT tree
16359 representing the choice value to ensure the corresponding GCC tree is
16360 of the proper kind.
16361 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16362 instead of just the operands, as the base GCC stabilize_reference does.
16363 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16364 requested; otherwise fail.
16365 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16366
16367 2007-04-06 Thomas Quinot <quinot@adacore.com>
16368
16369 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16370 implementation of UI_Div.
16371 (UI_Div): Reimplement as a call to UI_Div_Rem.
16372 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16373 remainder, avoiding the cost of a multiplication and a subtraction.
16374 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16375 provides both quotient and remainder in a single computation.
16376 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16377 functions for uint.
16378 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16379 is undefined if the given n is not inversible.
16380
16381 2007-04-06 Olivier Hainque <hainque@adacore.com>
16382
16383 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16384 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16385 opcodes.
16386
16387 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16388 Olivier Hainque <hainque@adacore.com>
16389
16390 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16391 when updating the contents of the old pointer to an unconstrained array.
16392 (end_subprog_body): Set error_gnat_node to Empty.
16393 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16394 (unchecked_convert): For subtype to base type conversions, require that
16395 the source be a subtype if it is an integer type.
16396 (builtin_decls): New global, vector of available builtin functions.
16397 (gnat_pushdecl): Add global builtin function declaration nodes to the
16398 builtin_decls list.
16399 (gnat_install_builtins): Adjust comments.
16400 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16401 calling gnat_pushdecl, so that it knows when it handed a builtin
16402 function declaration node.
16403 (builtin_decl_for): Search the builtin_decls list.
16404
16405 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16406
16407 * s-stchop-vxworks.adb:
16408 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16409
16410 2007-04-06 Robert Dewar <dewar@adacore.com>
16411 Arnaud Charlet <charlet@adacore.com>
16412
16413 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16414
16415 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16416 of files
16417 Add mention of -Sev (set initialize_scalars option from environment
16418 variable at run time) in gnatbind usage message.
16419
16420 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16421
16422 * fname-uf.ads: Minor comment fix
16423
16424 * osint.ads: Change pragma Elaborate to Elaborate_All
16425
16426 * par-load.adb: Add documentation.
16427
16428 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16429
16430 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16431
16432 * s-secsta.ads: Extra comments
16433
16434 * s-soflin.ads: Minor comment fixes
16435
16436 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16437
16438 * s-wchcon.ads: Minor comment addition
16439
16440 * treepr.adb: Minor change in message
16441 (Print_Name,Print_Node): Make these debug printouts more robust: print
16442 "no such..." instead of crashing on bad input.
16443
16444 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16445
16446 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16447 instead of gnat_signed_or_unsigned_type.
16448 * utils.c (gnat_signed_or_unsigned_type): Remove.
16449 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16450 * gigi.h (gnat_signed_or_unsigned_type): Remove
16451
16452 2007-03-09 Roger Sayle <roger@eyesopen.com>
16453
16454 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16455 fold with the result of buildN.
16456 * decl.c (gnat_to_gnu_entity): Likewise.
16457 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16458 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16459 Likewise.
16460 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16461 nonbinary_modular_operation, build_binary_op, build_unary_op,
16462 build_cond_expr): Likewise.
16463
16464 * utils.c (convert): Use fold_build1 when casting values to void.
16465 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16466 fold_convert instead of convert when appropriate.
16467
16468 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16469
16470 * Make-lang.in: Add install-pdf target as copied from
16471 automake v1.10 rules.
16472
16473 2007-02-28 Andreas Schwab <schwab@suse.de>
16474
16475 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16476 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16477 (doc/gnat-style.info): Likewise.
16478
16479 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16480
16481 * gnat-style.texi: Standardize title page.
16482 * gnat_rm.texi: Likewise.
16483 * gnat_ugn.texi: Likewise.
16484
16485 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16486
16487 * decl.c (annotate_value): Adjust for refactoring of tree_map
16488 hierarchy.
16489
16490 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16491
16492 * decl.c (annotate_value): Adjust for refactoring of tree_map
16493 hierarchy.
16494
16495 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16496
16497 PR ada/18819
16498 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16499 untagged derived type, add hidden components to keep discriminant
16500 layout consistent, when a given discriminant of the derived type
16501 constraints several discriminants of the parent type.
16502
16503 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16504 Sandra Loosemore <sandra@codesourcery.com>
16505
16506 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16507 build the call expression.
16508 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16509 * utils.c (max_size) <tcc_exceptional>: Delete.
16510 <tcc_vl_exp>: New case.
16511 <tcc_expression>: Delete CALL_EXPR subcase.
16512 (build_global_cdtor): Use build_call_nary instead of build3.
16513 * utils2.c (build_call_1_expr): Likewise.
16514 (build_call_2_expr): Likewise.
16515 (build_call_0_expr): Likewise.
16516 (build_call_alloc_dealloc): Likewise.
16517
16518 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16519
16520 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16521 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16522 and _Unwind_SWord with _sleb128_t.
16523
16524 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16525
16526 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16527 * decl.c: Include gt-ada-decl.h.
16528 (annotate_value_cache): New.
16529 (annotate_value): Use it instead of TREE_COMPLEXITY.
16530
16531 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16532
16533 * misc.c, utils2.c: Fix comment typos.
16534
16535 2007-01-24 Roger Sayle <roger@eyesopen.com>
16536
16537 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16538 TREE_CONSTANT_OVERFLOW.
16539 (allocatable_size_p, annotate_value): Likewise.
16540 * trans.c (gnat_to_gnu): Likewise.
16541 * utils.c (unchecked_convert): Likewise.
16542 * utils2.c (build_simple_component_ref): Likewise.
16543
16544 2007-01-23 Richard Guenther <rguenther@suse.de>
16545
16546 PR bootstrap/30541
16547 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16548 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16549 (gnatboot3): Likewise.
16550 (GNATBIND): Do not define.
16551 * Makefile.in (GNATBIND): Do not define.
16552
16553 2007-01-08 Richard Guenther <rguenther@suse.de>
16554
16555 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16556 * trans.c (gnat_to_gnu): Likewise.
16557
16558 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16559
16560 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16561 * adaint.c: Likewise.
16562
16563 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16564
16565 Merge from gimple-tuples-branch:
16566 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16567
16568 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16569 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16570 GIMPLE_MODIFY_STMT.
16571
16572 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16573
16574 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16575 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16576 Fix typos.
16577
16578 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16579
16580 PR ada/27936
16581 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16582 if the initializer takes into account the padding.
16583
16584 2006-11-11 Richard Guenther <rguenther@suse.de>
16585
16586 * trans.c (maybe_stabilize_reference): Remove handling of
16587 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16588
16589 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16590
16591 PR ada/29707
16592 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16593 (To_Target_Priority): New function.
16594
16595 2006-10-31 Robert Dewar <dewar@adacore.com>
16596
16597 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16598 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16599 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16600 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16601 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16602 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16603 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16604 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16605 a-szbzha.adb: Minor reformatting. Fix header.
16606
16607 * a-numaux-x86.adb: Add parentheses for use of unary minus
16608 * a-ngcefu.adb: Supply missing parentheses for unary minus
16609 * a-ngcoty.adb: Add parens for use of unary minus
16610 * a-ngelfu.adb: Add missing parens for unary minus
16611 * a-tifiio.adb: Add parentheses for uses of unary minus
16612
16613 2006-10-31 Robert Dewar <dewar@adacore.com>
16614 Bob Duff <duff@adacore.com>
16615 Ed Schonberg <schonberg@adacore.com>
16616
16617 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16618 with multiplying operator.
16619 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16620 pointer whether the context expects "any real type".
16621 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16622 universal_fixed "*" and "/" operators when they are used in a context
16623 that expects any real type. Also set the type of the node to
16624 Universal_Real in this case, because downstream processing requires it
16625 (mainly static expression evaluation).
16626 Reword some continuation messages
16627 Add some \\ sequences to continuation messages
16628 (Resolve_Call): Refine infinite recursion case. The test has been
16629 sharpened to eliminate some false positives.
16630 Check for Current_Task usage now includes entry barrier, and is now a
16631 warning, not an error.
16632 (Resolve): If the call is ambiguous, indicate whether an interpretation
16633 is an inherited operation.
16634 (Check_Aggr): When resolving aggregates, skip associations with a box,
16635 which are priori correct, and will be replaced by an actual default
16636 expression in the course of expansion.
16637 (Resolve_Type_Conversion): Add missing support for conversion from
16638 a class-wide interface to a tagged type. Minor code cleanup.
16639 (Valid_Tagged_Converion): Add support for abstact interface type
16640 conversions.
16641 (Resolve_Selected_Component): Call Generate_Reference here rather than
16642 during analysis, and use May_Be_Lvalue to distinguish read/write.
16643 (Valid_Array_Conversion): New procedure, abstracted from
16644 Valid_Conversion, to incorporate accessibility checks for arrays of
16645 anonymous access types.
16646 (Valid_Conversion): For a conversion to a numeric type occurring in an
16647 instance or inlined body, no need to check that the operand type is
16648 numeric, since this has been checked during analysis of the template.
16649 Remove legacy test for scope name Unchecked_Conversion.
16650
16651 * sem_res.ads: Minor reformatting
16652
16653 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16654 (PE_Current_Task_In_Entry_Body): New exception code
16655 (SE_Restriction_Violation): Removed, not used
16656
16657 * a-except.ads: Update comments.
16658
16659 * types.h, types.ads: Add definition for Validity_Check
16660 (PE_Current_Task_In_Entry_Body): New exception code
16661 (SE_Restriction_Violation): Removed, not used
16662
16663 2006-10-31 Thomas Quinot <quinot@adacore.com>
16664
16665 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16666 error status.
16667
16668 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16669 Jose Ruiz <ruiz@adacore.com>
16670
16671 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16672 part of Ada.Calendar: all subprogram raise Unimplemented.
16673 (Split_W_Offset): Temp function body, raising Unimplemented
16674
16675 * a-calend.ads, a-calend-vms.ads:
16676 Add imported variable Invalid_TZ_Offset used to designate targets unable
16677 to support time zones.
16678 (Unimplemented): Temporary function raised by the body of new
16679 subprograms below.
16680 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16681 unit provides handling of leap seconds and is used by the new Ada 2005
16682 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16683 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16684 version returns an extra value which is the offset to UTC.
16685
16686 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16687 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16688 (Split_W_Offset): New function body.
16689 (Time_Of): When a date is close to UNIX epoch, compute the time for
16690 that date plus one day (that amount is later substracted after
16691 executing mktime) so there are no problems with time zone adjustments.
16692
16693 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16694
16695 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16696 a-catizo.ads, a-catizo.adb: New files.
16697
16698 * impunit.adb: Add new Ada 2005 entries
16699
16700 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16701 Rename all occurences of "__gnat_localtime_r" to
16702 "__gnat_localtime_tzoff".
16703 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16704 zone data and calculate the GMT offset.
16705 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16706 Use the field "tm_gmtoff" to extract the GMT offset.
16707 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16708 the external variable "timezone" to calculate the GMT offset.
16709
16710 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16711 Jose Ruiz <ruiz@adacore.com>
16712
16713 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16714 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16715 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16716 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16717 System.Any_Priority to a POSIX priority on the target.
16718
16719 * system-linux-ia64.ads:
16720 Extend range of Priority types on Linux to use the whole range made
16721 available by the system.
16722
16723 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16724 function maps from System.Any_Priority to a POSIX priority on the
16725 target.
16726 (PTHREAD_PRIO_PROTECT): Set real value.
16727 (PTHREAD_PRIO_INHERIT): Now a function.
16728 (SIGCPUFAIL): New signal.
16729 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16730 are documented as reserved by the OS.
16731
16732 * system-aix.ads: Use the full range of priorities provided by the
16733 system on AIX.
16734
16735 * s-taprop-posix.adb: Call new function To_Target_Priority.
16736 (Set_Priority): Take into account Task_Dispatching_Policy and
16737 Priority_Specific_Dispatching pragmas when determining if Round Robin
16738 must be used for scheduling the task.
16739
16740 * system-linux-x86_64.ads, system-linux-x86.ads,
16741 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16742 the whole range made available by the system.
16743
16744 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16745 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16746 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16747 when deallocating the TCB in order to avoid potential references to
16748 deallocated data.
16749 (Set_Priority): Take into account Task_Dispatching_Policy and
16750 Priority_Specific_Dispatching pragmas when determining if Round Robin
16751 or FIFO within priorities must be used for scheduling the task.
16752
16753 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16754 the Thread field (to be used internally by the run-time system) and the
16755 kernel-level task id in the LWP field (to be used by the debugger).
16756 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16757 instance, and propagate the current task options to the spawned task.
16758 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16759 (Initialize): Set Round Robin dispatching when the corresponding pragma
16760 is in effect.
16761
16762 2006-10-31 Robert Dewar <dewar@adacore.com>
16763
16764 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16765 system-linux-hppa.ads, system-hpux-ia64.ads,
16766 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16767 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16768 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16769 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16770 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16771 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16772 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16773 Default_Bit_Order) to kill constant condition warnings for references
16774 to this switch.
16775
16776 2006-10-31 Vincent Celier <celier@adacore.com>
16777 Eric Botcazou <ebotcazou@adacore.com>
16778
16779 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16780 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16781 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16782 Ext_To, when building the library file name
16783
16784 * mlib-tgt-vxworks.adb: ditto.
16785 (Get_Target_Suffix): Add support for x86 targets.
16786
16787 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16788
16789 * mlib-tgt-darwin.adb:
16790 Use Append_To, instead of Ext_To, when building the library file name
16791 (Flat_Namespace): New global variable.
16792 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16793 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16794 (Link_Shared_Libgcc): Delete.
16795 (Build_Dynamic_Library): Adjust for above changes.
16796 Use Opt package.
16797 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16798
16799 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16800
16801 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16802 (Initialize): Add type conversions required by above change.
16803
16804 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16805
16806 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16807 (getpid): New body for this function that uses the underlying taskIdSelf
16808 function for VxWorks 5 and VxWorks 6 in kernel mode.
16809 (unsigned_int): New type, modular to allow logical bit operations.
16810 (taskOptionsGet): New imported function.
16811
16812 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16813 field to be compliant with the type used by the corresponding operating
16814 system primitive.
16815
16816 2006-10-31 Pascal Obry <obry@adacore.com>
16817 Eric Botcazou <ebotcazou@adacore.com>
16818 Vincent Celier <celier@adacore.com>
16819
16820 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16821 ASCII version of the registry API. This is needed as the GNAT runtime
16822 is now UNICODE by default.
16823 Include version.h.
16824 (get_gcc_version): Do not hardcode the return value.
16825 (__gnat_file_time_name): On Windows properly set the default returned
16826 value to -1 which corresponds to Invalid_Time.
16827 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16828 except on Windows where it does conversion for unicode support.
16829 (__gnat_freopen): Idem.
16830 (__gnat_locate_exec_on_path): If environment variable PATH does not
16831 exist, return a NULL pointer
16832
16833 * adaint.h: (__gnat_fopen): Declare.
16834 (__gnat_freopen): Likewise.
16835
16836 * mingw32.h (_tfreopen): Define this macro here for older MingW
16837 version.
16838 Activate the unicode support on platforms using a MingW runtime
16839 version 3.9 or newer.
16840
16841 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16842 This is needed for proper unicode support on Windows.
16843 (freopen): Idem.
16844
16845 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16846 Nicolas Setton <setton@adacore.com>
16847 Olivier Hainque <hainque@adacore.com>
16848 Gary Dismukes <dismukes@adacore.com>
16849
16850 * gigi.h: (tree_code_for_record_type): Declare.
16851 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16852 (get_global_renaming_pointers): Rename to
16853 invalidate_global_renaming_pointers.
16854 (static_ctors): Delete.
16855 (static_dtors): Likewise.
16856 (gnat_write_global_declarations): Declare.
16857 (create_var_decl): Adjust descriptive comment to indicate that the
16858 subprogram may return a CONST_DECL node.
16859 (create_true_var_decl): Declare new function, similar to
16860 create_var_decl but forcing the creation of a VAR_DECL node.
16861 (get_global_renaming_pointers): Declare.
16862 (add_global_renaming_pointer): Likewise.
16863
16864 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16865
16866 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16867 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16868 processing.
16869 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16870 imported_p.
16871 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16872 designated type if the pointer comes from a limited_with clause. Make
16873 incomplete designated type if it is in the main unit and has a freeze
16874 node.
16875 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16876 Underlying_Full_View similarly. Return earlier if the full view already
16877 has an associated tree.
16878 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16879 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16880 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16881 reference type built for objects with an address clause.
16882 Use create_true_var_decl with const_flag set for
16883 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16884 TREE_READONLY set.
16885 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16886 for Character and Wide_Character types. This info is read by the
16887 dwarf-2 writer, and is needed to be able to use the command "ptype
16888 character" in the debugger.
16889 (gnat_to_gnu_entity): When generating a type representing
16890 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16891 so that debug writers can distinguish it from ordinary integers.
16892 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16893 addition to TREE_READONLY to assert the constantness of variables for
16894 elaboration purposes.
16895 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16896 parameters to call new Einfo function First_Formal_With_Extras.
16897 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16898 protected type with its corresponding discriminant, to obtain a usable
16899 declaration
16900 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16901 for a multiple elaboration of the "equivalent" type.
16902 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16903 into record_global_renaming_pointer.
16904 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16905 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16906 <E_Array_Subtype>: Likewise.
16907 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16908 incomplete subtypes and incomplete subtypes of incomplete types visible
16909 through a limited with clause.
16910 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16911 the base index type for the maximum size of the array only if they are
16912 constant.
16913 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16914 expression into a SAVE_EXPR if stabilization failed.
16915
16916 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16917 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16918 by lower level compilation passes.
16919 (gnat_genericize): New function, lowering a function body to GENERIC.
16920 Turn the type of RESULT_DECL into a real reference type if the decl
16921 has been marked DECL_BY_REFERENCE, and adjust references to the latter
16922 accordingly.
16923 (gnat_genericize_r): New function. Tree walking callback for
16924 gnat_genericize.
16925 (convert_from_reference, is_byref_result): New functions. Helpers for
16926 gnat_genericize_r.
16927 (create_type_decl): Call gnat_pushdecl before calling
16928 rest_of_decl_compilation, to make sure that field TYPE_NAME of
16929 type_decl is properly set before calling the debug information writers.
16930 (write_record_type_debug_info): The heuristics which compute the
16931 alignment of a field in a variant record might not be accurate. Add a
16932 safety test to make sure no alignment is set to a smaller value than
16933 the alignment of the field type.
16934 (make_dummy_type): Use the Non_Limited_View as the underlying type if
16935 the type comes from a limited_with clause. Do not loop on the full view.
16936 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16937 (dummy_node_table): New global variable, moved from decl.c.
16938 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16939 (save_gnu_tree): Use above macros.
16940 (get_gnu_tree): Likewise.
16941 (present_gnu_tree): Likewise.
16942 (init_dummy_type): New function, moved from decl.c. Use above macros.
16943 (make_dummy_type): Likewise.
16944 (tree_code_for_record_type): New function extracted from make_dummy_type
16945 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16946 (static_ctors): Change it to a vector, make static.
16947 (static_dtors): Likewise.
16948 (end_subprog_body): Adjust for above change.
16949 (build_global_cdtor): Moved from trans.c.
16950 (gnat_write_global_declarations): Emit global constructor and
16951 destructor, and call cgraph_optimize before emitting debug info for
16952 global declarations.
16953 (global_decls): New global variable.
16954 (gnat_pushdecl): Store the global declarations in global_decls, for
16955 later use.
16956 (gnat_write_global_declarations): Emit debug information for global
16957 declarations.
16958 (create_var_decl_1): Former create_var_decl, with an extra argument to
16959 state whether the creation of a CONST_DECL is allowed.
16960 (create_var_decl): Behavior unchanged. Now a wrapper around
16961 create_var_decl_1 allowing CONST_DECL creation.
16962 (create_true_var_decl): New function, similar to create_var_decl but
16963 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16964 (create_field_decl): Do not always mark the field as addressable
16965 if its type is an aggregate.
16966 (global_renaming_pointers): New static variable.
16967 (add_global_renaming_pointer): New function.
16968 (get_global_renaming_pointers): Likewise.
16969
16970 * misc.c (gnat_dwarf_name): New function.
16971 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16972 (gnat_post_options): Add comment about structural alias analysis.
16973 (gnat_parse_file): Do not call cgraph_optimize here.
16974 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16975
16976 * trans.c (process_freeze_entity): Don't abort if we already have a
16977 non dummy GCC tree for a Concurrent_Record_Type, as it might
16978 legitimately have been elaborated while processing the associated
16979 Concurrent_Type prior to this explicit freeze node.
16980 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16981 exception handler volatile if it is of variable size.
16982 (process_type): Remove bypass for types coming from a limited_with
16983 clause.
16984 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16985 actual, convert the corresponding gnu_actual to the real destination
16986 type when necessary.
16987 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16988 originally TREE_READONLY but whose elaboration cannot be performed
16989 statically.
16990 Part of fix for F504-021.
16991 (tree_transform, subprogram cases): Change loops on formal parameters to
16992 call new Einfo function First_Formal_With_Extras.
16993 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16994 stemming from type conversion for the lhs.
16995 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16996 number of bits per unit for components of records.
16997 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16998 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16999 with At_End_Proc after the SJLJ EH cleanup.
17000 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
17001 compilation unit.
17002 (elaborate_all_entities): Do not retest type_annotate_only.
17003 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
17004 result type of an abstract subprogram, which may be an itype associated
17005 with an anonymous access result (related to AI-318-02).
17006 (build_global_cdtor): Move to utils.c.
17007 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
17008 this choice is not a null tree nor an integer constant.
17009 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
17010 on the body of elaboration routines instead of mark_unvisited.
17011 (add_stmt): Do not mark the tree.
17012 (add_decl_expr): Tweak comment.
17013 (mark_unvisited): Delete.
17014 (unshare_save_expr): New static function.
17015 (call_to_gnu): Issue an error when making a temporary around a
17016 procedure call because of non-addressable actual parameter if the
17017 type of the formal is by_reference.
17018 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
17019 after building the elaboration routine.
17020
17021 2006-10-31 Bob Duff <duff@adacore.com>
17022
17023 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
17024 as finalization-started, so we can raise Program_Error on 'new'.
17025
17026 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
17027 collection has already started.
17028
17029 * s-finimp.ads (Collection_Finalization_Started): Added new special
17030 flag value for indicating that a collection's finalization has started.
17031
17032 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
17033 create a task whose master has already waited for dependent tasks.
17034
17035 2006-10-31 Robert Dewar <dewar@adacore.com>
17036
17037 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
17038
17039 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
17040 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
17041 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
17042 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
17043 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
17044 a-except-2005.ads: Add pragma Preelaborable_Warning
17045
17046 2006-10-31 Robert Dewar <dewar@adacore.com>
17047 Jose Ruiz <ruiz@adacore.com>
17048
17049 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
17050
17051 * ali.adb (Get_Name): Properly handle scanning of wide character names
17052 encoded with brackets notation.
17053 (Known_ALI_Lines): Add S lines to this list.
17054 (Scan_ALI): Acquire S (priority specific dispatching) lines.
17055 New flag Elaborate_All_Desirable in unit table
17056
17057 * ali.ads (Priority_Specific_Dispatching): Add this range of
17058 identifiers to be used for Priority_Specific_Dispatching table entries.
17059 (ALIs_Record): Add First_Specific_Dispatching and
17060 Last_Specific_Dispatching that point to the first and last entries
17061 respectively in the priority specific dispatching table for this unit.
17062 (Specific_Dispatching): Add this table for storing each S (priority
17063 specific dispatching) line encountered in the input ALI file.
17064 New flag Elaborate_All_Desirable in unit table
17065
17066 * bcheck.adb: (Check_Configuration_Consistency): Add call to
17067 Check_Consistent_Dispatching_Policy.
17068 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
17069 verifying that the use of Priority_Specific_Dispatching,
17070 Task_Dispatching_Policy, and Locking_Policy is consistent across the
17071 partition.
17072
17073 * bindgen.adb: (Public_Version_Warning): function removed.
17074 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
17075 required information from ALI files in order to initialize the table
17076 containing the specific dispatching policy.
17077 (Gen_Adainit_Ada): Generate the variables required for priority specific
17078 dispatching entries (__gl_priority_specific_dispatching and
17079 __gl_num_specific_dispatching).
17080 (Gen_Adainit_C): Generate the variables required for priority specific
17081 dispatching entries (__gl_priority_specific_dispatching and
17082 __gl_num_specific_dispatching).
17083 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
17084 pragma entries.
17085 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
17086 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
17087 (Tab_To): Removed.
17088 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
17089 a call to gnat_set_globals.
17090 Generate a string containing settings from
17091 Priority_Specific_Dispatching pragma entries.
17092 (Gen_Object_Files_Options): Do not include the runtime libraries when
17093 pragma No_Run_Time is specified.
17094
17095 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
17096 consistency with s-intman-posix.adb.
17097 (__gnat_error_handler, case FreeBSD): Account for the fact that the
17098 handler is installed with SA_SIGINFO.
17099 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
17100 FreeBSD ZCX support, copied from Linux version.
17101 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
17102 sigfillset, and sigemptyset so the routines defined by MaRTE.
17103 (__gl_priority_specific_dispatching): Add this variable that stores the
17104 string containing priority specific dispatching policies in the
17105 partition.
17106 (__gl_num_specific_dispatching): Add this variable that indicates the
17107 highest priority for which a priority specific dispatching pragma
17108 applies.
17109 (__gnat_get_specific_dispatching): Add this routine that returns the
17110 priority specific dispatching policy, as set by a
17111 Priority_Specific_Dispatching pragma appearing anywhere in the current
17112 partition. The input argument is the priority number, and the result
17113 is the upper case first character of the policy name.
17114 (__gnat_set_globals): Now a dummy function.
17115 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
17116 mechargs instead of sigargs, as the latter can be retrieved from the
17117 former and sigargs is not what we want on ia64.
17118 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
17119 mechargs argument.
17120 (__gnat_adjust_context_for_raise, ia64-vms): New function.
17121 (tasking_error): Remove unused symbol.
17122 (_abort_signal): Move this symbol to the IRIX specific part since this
17123 is the only target that uses this definition.
17124 (Check_Abort_Status): Move this symbol to the IRIX specific part since
17125 this is the only target that uses this definition.
17126 (Lock_Task): Remove unused symbol.
17127 (Unlock_Task): Remove unused symbol.
17128
17129 * lib-writ.adb (Write_ALI): Output new S lines for
17130 Priority_Specific_Dispatching pragmas.
17131 Implement new flag BD for elaborate body desirable
17132
17133 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
17134 (Specific_Dispatching): Add this table for storing the entries
17135 corresponding to Priority_Specific_Dispatching pragmas.
17136 Document new BD flag for elaborate body desirable
17137
17138 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
17139 of known pragmas.
17140
17141 2006-10-31 Javier Miranda <miranda@adacore.com>
17142
17143 * a-tags.ads, a-tags.adb:
17144 (Predefined_DT): New function that improves readability of the code.
17145 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
17146 Inherit_DT): Use the new function Predefined_DT to improve code
17147 readability.
17148 (Register_Interface_Tag): Update assertion.
17149 (Set_Interface_Table): Update assertion.
17150 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
17151 determining progenitor interfaces in Tags.
17152 (Inherit_CPP_DT): New subprogram.
17153
17154 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
17155 analysis of the thunk code.
17156 (Expand_Interface_Conversion): Handle run-time conversion of
17157 access to class wide types.
17158 (Expand_Dispatching_Call): When generating the profile for the
17159 subprogram itype for a dispatching operation, properly terminate the
17160 formal parameters chaind list (set the Next_Entity of the last formal
17161 to Empty).
17162 (Collect_All_Interfaces): Removed. This routine has been moved to
17163 sem_util and renamed as Collect_All_Abstract_Interfaces.
17164 (Set_All_DT_Position): Hidden entities associated with abstract
17165 interface primitives are not taken into account in the check for
17166 3.9.3(10); this check is done with the aliased entity.
17167 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
17168 interfacing with CPP by default.
17169 (Expand_Interface_Conversion): Add missing support for static conversion
17170 from an interface to a tagged type.
17171 (Collect_All_Interfaces): Add new out formal containing the list of
17172 abstract interface types to cleanup the subprogram Make_DT.
17173 (Make_DT): Update the code to generate the table of interfaces in case
17174 of abstract interface types.
17175 (Is_Predefined_Dispatching_Alias): New function that returns true if
17176 a primitive is not a predefined dispatching primitive but it is an
17177 alias of a predefined dispatching primitive.
17178 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17179 compiling under full ABI compatibility mode we avoid the generation of
17180 calls to run-time services that fill the dispatch tables because under
17181 this mode we currently inherit the dispatch tables in the IP subprogram.
17182 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17183 (Expand_Interface_Conversion): Use an address as the type of the formal
17184 of the internally built function that handles the case in which the
17185 target type is an access type.
17186
17187 2006-10-31 Robert Dewar <dewar@adacore.com>
17188
17189 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17190
17191 2006-10-31 Robert Dewar <dewar@adacore.com>
17192
17193 * bindusg.ads, bindusg.adb:
17194 Change to package and rename procedure as Display, which
17195 now ensures that it only outputs usage information once.
17196
17197 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17198
17199 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17200 using RTPs.
17201
17202 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17203 when using RTPs.
17204
17205 2006-10-31 Robert Dewar <dewar@adacore.com>
17206 Ed Schonberg <schonberg@adacore.com>
17207
17208 * treepr.adb: Use new subtype N_Membership_Test
17209
17210 * checks.ads, checks.adb: Add definition for Validity_Check
17211 (Range_Or_Validity_Checks_Suppressed): New function
17212 (Ensure_Valid): Test Validity_Check suppressed
17213 (Insert_Valid_Check): Test Validity_Check suppressed
17214 (Insert_Valid_Check): Preserve Do_Range_Check flag
17215 (Validity_Check_Range): New procedure
17216 (Expr_Known_Valid): Result of membership test is always valid
17217 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17218 by themselves. Disabling those checks must also be done for task types,
17219 where discriminants may be used for the bounds of entry families.
17220 (Apply_Address_Clause_Check): Remove side-effects if address expression
17221 is non-static and is not the name of a declared constant.
17222 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17223 Code cleanup and new error messages.
17224 (Enable_Range_Check): Test for some cases of suppressed checks
17225 (Generate_Index_Checks): Suppress index checks if index checks are
17226 suppressed for array object or array type.
17227 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17228 length check failure, even if checks are off.
17229 (Ensure_Valid): Do not generate a check on an indexed component whose
17230 prefix is a packed boolean array.
17231 * checks.adb: (Alignment_Checks_Suppressed): New function
17232 (Apply_Address_Clause_Check): New procedure, this is a completely
17233 rewritten replacement for Apply_Alignment_Check
17234 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17235 we request a discriminal value only in case of discriminants.
17236 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17237 assignments where the target subtype is unconstrained and the target
17238 object is a parameter or dereference (other aliased cases are known
17239 to be unconstrained).
17240
17241 2006-10-31 Robert Dewar <dewar@adacore.com>
17242
17243 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17244 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17245 vms_conv.adb: Fix bad table increment values (much too small)
17246
17247 * table.adb (Realloc): Make sure we get at least some new elements
17248 Defends against silly small values for table increment
17249
17250 2006-10-31 Robert Dewar <dewar@adacore.com>
17251 Ed Schonberg <schonberg@adacore.com>
17252 Bob Duff <duff@adacore.com>
17253
17254 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17255 entities. Move other fields around to make this possible
17256 (Is_Derived_Type): Add missing call to Is_Type.
17257 (Extra_Formals): New function for subprograms, entries, subprogram
17258 types.
17259 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17260 (First_Formal_With_Extras): New function for subprogs, entries, subp
17261 types.
17262 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17263 Add node information for E_Return_Statement.
17264 (Elaborate_Body_Desirable): New flag
17265 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17266 to be Is_Inherently_Limited_Type, because return-by-reference has
17267 no meaning in Ada 2005.
17268 (E_Return_Statement): New entity kind.
17269 (Return_Applies_To): Field of E_Return_Statement.
17270 (Is_Return_Object): New flag in object entities.
17271 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17272 (Must_Have_Preelab_Init): New flag
17273 (Known_To_Have_Preelab_Init): New flag
17274 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17275 (Is_Visible_Formal): New flag on entities in formal packages.
17276 (Low_Bound_Known): New flag
17277 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17278 Incomplete_Kind.
17279 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17280 output when Id is an incomplete subtype.
17281
17282 2006-10-31 Robert Dewar <dewar@adacore.com>
17283
17284 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17285 Avoid abbreviation Creat
17286 (Finalize): List all sources in extended mail source if -gnatl
17287 switch is active.
17288 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17289 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17290 (Set_Specific_Warning_On): New procedure
17291 (Set_Specific_Warning_Off): New procedure
17292 Add implementation of new insertion \\
17293 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17294 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17295 types.
17296 (Error_Msg_Internal): Make sure that we set Last_Killed to
17297 True when a message from another package is suppressed.
17298 Implement insertion character ~ (insert string)
17299 (First_Node): Minor adjustments to get better placement.
17300
17301 * frontend.adb:
17302 Implement new -gnatl=xxx switch to output listing to file
17303
17304 * gnat1drv.adb:
17305 Implement new -gnatl=xxx switch to output listing to file
17306
17307 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17308 (Commands_To_Stdout): New flag
17309 Implement new -gnatl=xxx switch to output listing to file
17310 New switch Dump_Source_Text
17311 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17312 Define Error_Msg_Line_Length
17313 (Warn_On_Assumed_Low_Bound): New switch
17314
17315 * osint.ads, osint.adb
17316 (Normalize_Directory_Name): Fix bug.
17317 Implement new -gnatl=xxx switch to output listing to file
17318 (Concat): Removed, replaced by real concatenation
17319 Make use of concatenation now allowed in compiler
17320 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17321 we find the 'lib' or 'bin' directory even when the tool has been
17322 invoked with a relative path.
17323 (Executable_Name): New function taking string parameters.
17324
17325 * osint-c.ads, osint-c.adb:
17326 Implement new -gnatl=xxx switch to output listing to file
17327
17328 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17329
17330 * switch-c.adb:
17331 Implement new -gnatl=xxx switch to output listing to file
17332 Recognize new -gnatL switch
17333 (no longer keep in old warning about old style usage)
17334 Use concatenation to simplify code
17335 Recognize -gnatjnn switch
17336 (Scan_Front_End_Switches): Clean up handling of -gnatW
17337 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17338
17339 2006-10-31 Robert Dewar <dewar@adacore.com>
17340
17341 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17342 (Set_Specific_Warning_Off): New procedure
17343 (Warning_Specifically_Suppressed): New function
17344 (Validate_Specific_Warnings): New procedure
17345 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17346
17347 * err_vars.ads: Implement insertion character ~ (insert string)
17348
17349 2006-10-31 Bob Duff <duff@adacore.com>
17350 Ed Schonberg <schonberg@adacore.com>
17351
17352 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17353 the parent part is a build-in-place function call, generate assignments.
17354 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17355 are build-in-place function calls.
17356 (Replace_Self_Reference): New subsidiary of
17357 Make_OK_Assignment_Statement, to replace an access attribute that is a
17358 self-reference into an access to the appropriate component of the
17359 target object. Generalizes previous mechanism to handle self-references
17360 nested at any level.
17361 (Is_Self_Referential_Init): Remove, not needed.
17362 (Is_Self_Referential_Init): New predicate to simplify handling of self
17363 referential components in record aggregates.
17364 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17365 check for presence of entity before checking for self-reference.
17366 (Has_Default_Init_Comps): Return True if a component association is a
17367 self-reference to the enclosing type, which can only come from a
17368 default initialization.
17369 (Make_OK_Assignment_Statement): If the expression is of the form
17370 Typ'Acc, where Acc is an access attribute, the expression comes from a
17371 default initialized self-referential component.
17372 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17373 that has been derived from several abstract interfaces we must also
17374 initialize the tags of the secondary dispatch tables.
17375
17376 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17377 Thomas Quinot <quinot@adacore.com>
17378 Javier Miranda <miranda@adacore.com>
17379 Robert Dewar <dewar@adacore.com>
17380
17381 * exp_attr.adb:
17382 (Expand_Access_To_Protected_Op): If the context indicates that an access
17383 to a local operation may be transfered outside of the object, create an
17384 access to the wrapper operation that must be used in an external call.
17385 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17386 target, pass the Valid attribute applied to a floating-point prefix on
17387 to the back end without expansion.
17388 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17389 the allocated storage when it is specified by a per-object expression.
17390 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17391 Nothing to do here, the attribute has been rewritten during semantic
17392 analysis.
17393 (Expand_Attribute_Reference): Handle expansion of the new Priority
17394 attribute
17395 (Find_Fat_Info): Handle case of universal real
17396 (Expand_Access_To_Protected_Op): Fix use of access to protected
17397 subprogram from inside the body of a protected entry.
17398 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17399 'Access and 'Unrestricted_Access, to transform the attribute reference
17400 into a fat pointer.
17401 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17402 subcomponent's enclosing variable is aliased with a constrained subtype.
17403 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17404 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17405 an aliased prefix must be known to be constrained in order to use True
17406 for the attribute value, and now it's possible for some aliased views
17407 to be unconstrained.
17408
17409 2006-10-31 Robert Dewar <dewar@adacore.com>
17410
17411 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17412 (Expand_Entity_Reference): Correct error of not handling subprogram
17413 formals in current_value processing.
17414
17415 2006-10-31 Javier Miranda <miranda@adacore.com>
17416 Robert Dewar <dewar@adacore.com>
17417 Ed Schonberg <schonberg@adacore.com>
17418 Gary Dismukes <dismukes@adacore.com>
17419
17420 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17421 register in the final list objects containing class-wide interfaces;
17422 otherwise we incorrectly register the tag of the interface in the final
17423 list.
17424 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17425 generate the wrapper if the parent primitive is abstract. This is
17426 required to report the correct error message.
17427 (Expand_N_Subtype_Indication): Do validity checks on range
17428 (Clean_Task_Names): If an initialization procedure includes a call to
17429 initialize a task (sub)component, indicate that the procedure will use
17430 the secondary stack.
17431 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17432 compatibility for interfacing with CPP by default.
17433 (Expand_N_Object_Declaration): Only build an Adjust call when the
17434 object's type is a nonlimited controlled type.
17435 * exp_ch3.adb: Add with and use of Exp_Ch6.
17436 (Expand_N_Object_Declaration): Check for object initialization that is a
17437 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17438 Object_Declaration to the call.
17439 (Freeze_Type): When the designated type of an RACW was not frozen at the
17440 point where the RACW was declared, validate the primitive operations
17441 with respect to E.2.2(14) when it finally is frozen.
17442 (Build_Initialization_Call,Expand_Record_Controller): Rename
17443 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17444 return-by-reference has no meaning in Ada 2005.
17445 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17446 to register tag of the immediate ancestor interfaces in the
17447 run-time structure.
17448 (Init_Secondary_Tags): Moved to the specification to allow the
17449 initialization of extension aggregates with abstract interfaces.
17450 (Build_Master_Renaming): Make public, for use by function declarations
17451 whose return type is an anonymous access type.
17452 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17453 Insert_List_Before_And_Analyze after the generation of the specs
17454 associated with null procedures.
17455 (Expand_Tagged_Root): Update documentation in its specification.
17456 (Init_Secondary_Tags): Update documentation.
17457 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17458 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17459 then generate code to inherit the contents of the dispatch table
17460 directly from the ancestor.
17461 (Expand_Record_Controller): Insert controller component after tags of
17462 implemented interfaces.
17463 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17464 create null procedure overridings when null procedures are inherited
17465 from interfaces.
17466 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17467 declarations for overriding null primitives inherited from interfaces.
17468 (Is_Null_Interface_Procedure): New function in
17469 Make_Null_Procedure_Specs.
17470 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17471 immediate ancestor of a tagged type is an abstract interface type we
17472 must generate the specification of the predefined primitives associated
17473 with controlled types (because the dispatch table of the ancestor is
17474 null and hence these entries cannot be inherited). This is required to
17475 elaborate well the dispatch table.
17476
17477 2006-10-31 Javier Miranda <miranda@adacore.com>
17478 Ed Schonberg <schonberg@adacore.com>
17479 Bob Duff <duff@adacore.com>
17480 Gary Dismukes <dismukes@adacore.com>
17481 Robert Dewar <dewar@adacore.com>
17482
17483 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17484 conversion.
17485 (Expand_N_In): Do validity checks on range
17486 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17487 (Expand_N_Allocator): For "new T", if the object is constrained by
17488 discriminant defaults, allocate the right amount of memory, rather than
17489 the maximum for type T.
17490 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17491 when the allocator is initialized by a build-in-place call, since the
17492 allocator is already rewritten as a reference to the function result,
17493 and this prevents an unwanted duplication of the function call.
17494 Add with and use of Exp_Ch6.
17495 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17496 is a call to build-in-place function and apply
17497 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17498 untagged designated types).
17499 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17500 optimization if source or target is biased.
17501 (Expand_N_Allocator): Add comments for case of an allocator within a
17502 function that returns an anonymous access type designating tasks.
17503 (Expand_N_Allocator): apply discriminant checks for access
17504 discriminants of anonymous access types (AI-402, AI-416)
17505
17506 2006-10-31 Bob Duff <duff@adacore.com>
17507 Robert Dewar <dewar@adacore.com>
17508 Gary Dismukes <dismukes@adacore.com>
17509 Ed Schonberg <schonberg@adacore.com>
17510
17511 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17512
17513 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17514 (Expand_N_Assignment_Statement): Call
17515 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17516 build-in-place function call. Currently, this can happen only for
17517 assignments that come from aggregates.
17518 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17519 in order to alleviate the upward compatibility introduced by AI-318.
17520 (Expand_N_Extended_Return_Statement): Add support for handling the
17521 return object as a build-in-place result.
17522 (Expand_Non_Function_Return): Implement simple return statements nested
17523 within an extended return.
17524 (Enable_New_Return_Processing): Turn on the new processing of return
17525 statements.
17526 (Expand_Non_Function_Return): For a return within an extended return,
17527 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17528 (Expand_N_Extended_Return_Statement): Implement AI-318
17529 (Expand_Simple_Function_Return): Ditto.
17530 (Expand_N_If_Statement): Handle new -gnatwt warning
17531 (Expand_N_Case_Statement): Handle new -gnatwt warning
17532 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17533 a protected object.
17534 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17535 validity checking of assignments to elementary record components.
17536 (Expand_N_Return_Statement): return Class Wide types on the secondary
17537 stack independantly of their controlled status since with HIE runtimes,
17538 class wide types are not potentially controlled anymore.
17539
17540 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17541 node kind.
17542
17543 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17544 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17545 it expects a block, procedure, or task. The return statement will get
17546 turned into a block, and Expand_Cleanup_Actions will happen then.
17547
17548 2006-10-31 Robert Dewar <dewar@adacore.com>
17549 Ed Schonberg <schonberg@adacore.com>
17550 Bob Duff <duff@adacore.com>
17551 Gary Dismukes <dismukes@adacore.com>
17552
17553 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17554 capability.
17555 (Expand_Inlined_Call): Tagged types are by-reference types, and
17556 therefore should be replaced by a renaming declaration in the expanded
17557 body, as is done for limited types.
17558 (Expand_Call): If this is a call to a function with dispatching access
17559 result, propagate tag from context.
17560 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17561 CPP by default.
17562 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17563 build-in-place when the right-hand side of an assignment is a
17564 build-in-place function call.
17565 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17566 of the explicit dereference of the allocator to the result subtype of
17567 the build-in-place function. This is needed to satisfy type checking
17568 in cases where the caller's return object is created by an allocator for
17569 a class-wide access type and the type named in the allocator is a
17570 specific type.
17571 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17572 conversion of the reference to the declared object to the result subtype
17573 of the build-in-place function. This is needed to satisfy type checking
17574 in cases where the declared object has a class-wide type. Also, in the
17575 class-wide case, change the type of the object entity to the specific
17576 result subtype of the function, to avoid passing a class-wide object
17577 without explicit initialization to the back end.
17578 (Register_Interface_DT_Entry): Moved outside the body of
17579 Freeze_Subprogram because this routine is now public; it is called from
17580 Check_Dispatching_Overriding to handle late overriding of abstract
17581 interface primitives.
17582 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17583 adding an implicit access actual on a call to a build-in-place function.
17584 (Expand_Actuals): Test for an actual parameter that is a call to a
17585 build-in-place function and apply
17586 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17587 (Is_Build_In_Place_Function): New function to determine whether an
17588 entity is a function whose calls should be handled as build-in-place.
17589 (Is_Build_In_Place_Function_Call): New function to determine whether an
17590 expression is a function call that should handled as build-in-place.
17591 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17592 calls to build-in-place functions as the initialization of an allocator.
17593 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17594 handling calls to build-in-place functions in contexts that do not
17595 involve init of a separate object (for example, actuals of subprogram
17596 calls).
17597 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17598 handling calls to build-in-place functions as the initialization of an
17599 object declaration.
17600 (Detect_Infinite_Recursion): Add explicit parameter Process to
17601 instantiation of Traverse_Body to avoid unreferenced warning.
17602 (Check_Overriding_Inherited_Interfaces): Removed.
17603 (Register_Interface_DT_Entry): Code cleanup.
17604 (Register_Predefined_DT_Entry): Code cleanup.
17605 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17606 inlined statements if within a transient scope.
17607 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17608 formal parameters with occurrences of actuals in inlined body, establish
17609 visibility on the proper view of the actual's subtype for the body's
17610 context.
17611 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17612 compatibility mode and we have an imported CPP subprogram because
17613 for now we assume that imported CPP primitives correspond with
17614 objects whose constructor is in the CPP side (and therefore we
17615 don't need to generate code to register them in the dispatch table).
17616 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17617 aligned selected component.
17618 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17619 the actual of an in-mode parameter is a type conversion.
17620 (Expand_Actuals): If the call does not come from source and the actual
17621 is potentially misaligned, let gigi handle it rather than rejecting the
17622 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17623 Class Wide types as returning by reference independantly of their
17624 controlled status since with HIE runtimes class wide types are not
17625 potentially controlled anymore.
17626
17627 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17628
17629 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17630 references that are private components of the protected object.
17631 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17632 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17633 instantiation to deal with warnings.
17634 (Initialize_Protection): If expression for priority is non-static, use
17635 System_Priority as its expected type, in case the expression has not
17636 been analyzed yet.
17637
17638 2006-10-31 Robert Dewar <dewar@adacore.com>
17639
17640 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17641 initialization of Homonym_Len.
17642 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17643 names from fully qualified name. Fixes problem of duplicate
17644 external names differing only in the presence of such a block name.
17645
17646 2006-10-31 Thomas Quinot <quinot@adacore.com>
17647 Pablo Oliveira <oliveira@adacore.com>
17648
17649 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17650 subprogram Ids, even if they are not yet assigned.
17651 (Build_Subprogram_Id): It is now this function that will take care of
17652 calling Assign_Subprogram_Ids if necessary.
17653 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17654 should be done only once they are assigned.
17655 (Build_From_Any_Function, case of tagged types): Add missing call to
17656 Allocate_Buffer.
17657 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17658 type for an RACW type.
17659 (Add_RACW_Features): When processing an RACW declaration for which the
17660 designated type is already frozen, enforce E.2.2(14) rules immediately.
17661 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17662 special reordering of controlling formals.
17663
17664 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17665 associated stub type for an RACW type.
17666
17667 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17668
17669 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17670 fixed-point operations in an integer context, i.e. as operands of a
17671 conversion to an integer type, indicate that result must be rounded.
17672
17673 2006-10-31 Robert Dewar <dewar@adacore.com>
17674
17675 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17676 cases, pass the encoding method, since it is now required by the run
17677 time.
17678
17679 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17680 assumption that Str'First = 1.
17681 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17682 it on to the Value_Wide_Wide_Character call.
17683 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17684 properly handles a string of the form quote-encoded_wide_char-quote.
17685
17686 * s-wchcnv.adb: Minor reformatting
17687
17688 2006-10-31 Javier Miranda <miranda@adacore.com>
17689
17690 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17691 run-time membership test to ensure that the constructed object
17692 implements the target abstract interface.
17693
17694 2006-10-31 Robert Dewar <dewar@adacore.com>
17695
17696 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17697 Machine_Attribute pragma internally to implement the user pragma.
17698 Add processing for pragma Interface so that it is now completely
17699 equivalent to pragma Import.
17700
17701 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17702 so that it can be applied to all entities, including record components
17703 and enumeration literals.
17704 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17705 priority ranges are correct, verify compatibility against task
17706 dispatching and locking policies, and if everything is correct an entry
17707 is added to the table containing priority specific dispatching entries
17708 for this compilation unit.
17709 (Delay_Config_Pragma_Analyze): Delay processing
17710 Priority_Specific_Dispatching pragmas because when processing the
17711 pragma we need to access run-time data, such as the range of
17712 System.Any_Priority.
17713 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17714 Allow pragma Unreferenced as a context item
17715 Add pragma Preelaborable_Initialization
17716 (Analyze_Pragma, case Interface): Interface is extended so that it is
17717 now syntactically and semantically equivalent to Import.
17718 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17719 insertion characters.
17720 Add handling for Pragma_Wide_Character_Encoding
17721 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17722 never supercedes a real restriction, and that a real restriction
17723 always supercedes a warning.
17724 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17725 appropriate form.
17726
17727 2006-10-31 Bob Duff <duff@adacore.com>
17728 Ed Schonberg <schonberg@adacore.com>
17729 Robert Dewar <dewar@adacore.com>
17730
17731 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17732 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17733 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17734 in Ada 2005.
17735 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17736 type of the function containing a return statement, because the
17737 Return_Type field was removed. We now use the Return_Applies_To field.
17738
17739 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17740 (Build_Task_Image_Decl): If procedure is not called from an
17741 initialization procedure, indicate that function that builds task name
17742 uses the sec. stack. Otherwise the enclosing initialization procedure
17743 will carry the indication.
17744 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17745 N_Object_Declaration instead.
17746 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17747 conditional dead code killed, and change implementation accordingly.
17748 (Insert_Actions): Add N_Return_Object_Declaration case.
17749 Correct comment to mention N_Extension_Aggregate node.
17750 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17751 attempts to save information for global variables which cannot be
17752 safely tracked.
17753 (Get_Current_Value_Condition): Handle conditions the other way round
17754 (constant on left). Also handle right operand of AND and AND THEN
17755 (Set_Current_Value_Condition): Corresponding changes
17756 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17757 (Get_Current_Value_Condition): Handle simple boolean operands
17758 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17759 (Get_Current_Value_Condition): If the variable reference is within an
17760 if-statement, does not appear in the list of then_statments, and does
17761 not come from source, treat it as being at unknown location.
17762 (Get_Current_Value_Condition): Enhance to allow while statements to be
17763 processed as well as if statements.
17764 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17765 come from source.
17766 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17767 of loop. This is safe now that we fixed Kill_Current_Values.
17768 (OK_To_Do_Constant_Replacement): Check whether current scope is
17769 Standard, before examining outer scopes.
17770
17771 2006-10-31 Vincent Celier <celier@adacore.com>
17772
17773 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17774 When True, apply VMS treatment to children of packages A, G, I and S.
17775 For F320-016
17776
17777 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17778
17779 2006-10-31 Robert Dewar <dewar@adacore.com>
17780 Ed Schonberg <schonberg@adacore.com>
17781
17782 * freeze.adb: Add handling of Last_Assignment field
17783 (Warn_Overlay): Supply missing continuation marks in error msgs
17784 (Freeze_Entity): Add check for Preelaborable_Initialization
17785
17786 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17787
17788 * g-expect.adb: Add Warnings (Off) to prevent new warning
17789
17790 * lib-xref.adb: Add handling of Last_Assignment field
17791 (Generate_Reference): Centralize handling of pragma Obsolescent here
17792 (Generate_Reference): Accept an implicit reference generated for a
17793 default in an instance.
17794 (Generate_Reference): Accept a reference for a node that is not in the
17795 main unit, if it is the generic body corresponding to an subprogram
17796 instantiation.
17797
17798 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17799
17800 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17801 -gnatwq/Q.
17802 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17803 exception handler.
17804 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17805 use clauses, to avoid messages on packages used to qualify, and also
17806 to avoid messages from obsolescent units.
17807 (Warn_On_Useless_Assignments): Don't generate messages for imported
17808 and exported variables.
17809 (Warn_On_Useless_Assignments): New procedure
17810 (Output_Obsolescent_Entity_Warnings): New procedure
17811 (Check_Code_Statement): New procedure
17812
17813 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17814 Change name Is_Ada_2005 to Is_Ada_2005_Only
17815 (Last_Assignment): New field for useless assignment warning
17816
17817 2006-10-31 Olivier Hainque <hainque@adacore.com>
17818
17819 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17820 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17821
17822 2006-10-31 Bob Duff <duff@adacore.com>
17823 Robert Dewar <dewar@adacore.com>
17824 Ed Schonberg <schonberg@adacore.com>
17825
17826 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17827 Ada 95 mode, because it violates the new rules for AI-318.
17828
17829 * g-awk.ads: Use overloaded subprograms in every case where we used to
17830 have a default of Current_Session. This makes the code closer to be
17831 correct for both Ada 95 and 2005.
17832
17833 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17834 code, relying on the fact that the compiler generates a warning
17835 instead of an error in -gnatg mode.
17836
17837 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17838 E_Return_Statement entity kind.
17839 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17840
17841 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17842 report an error if the reserved word abstract has been previously found.
17843 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17844
17845 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17846 parenthesized range attribute usage
17847 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17848
17849 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17850 in the syntax for extended_return_statement. This is not in the latest
17851 RM, but the ARG is expected to issue an AI allowing this.
17852 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17853 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17854 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17855 P_Return_Statement): Parse the new syntax for extended_return_statement.
17856
17857 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17858 Output_End_Missing): Add error-recovery code for the new
17859 extended_return_statement syntax; that is, the new E_Return entry on
17860 the scope stack.
17861
17862 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17863 limited to nonlimited, because otherwise we violate the new Ada 2005
17864 rules about returning limited types in function Create_AST_Handler in
17865 s-asthan.adb.
17866
17867 * sem.adb (Analyze): Add cases for new node kinds
17868 N_Extended_Return_Statement and N_Return_Object_Declaration.
17869
17870 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17871 type is in the same category as type of context before applying check,
17872 to prevent anomalies in instantiations.
17873 (Resolve_Aggregate): Remove test for limited components in aggregates.
17874 It's unnecessary in Ada 95, because if it has limited components, then
17875 it must be limited. It's wrong in Ada 2005, because limited aggregates
17876 are now allowed.
17877 (Resolve_Record_Aggregate): Move check for limited types later, because
17878 OK_For_Limited_Init requires its argument to have been resolved.
17879 (Get_Value): When copying the component default expression for a
17880 defaulted association in an aggregate, use the sloc of the aggregate
17881 and not that of the original expression, to prevent spurious
17882 elaboration errors, when the expression includes function calls.
17883 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17884 were missing. We also didn't handle qualified expressions. Now also
17885 allow function calls. Use new common routine OK_For_Limited_Init.
17886 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17887 with space can upper case letter).
17888
17889 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17890 Has_Static_Discriminants flag
17891 (Record_Type_Declaration): Diagnose an attempt to declare an interface
17892 type with discriminants.
17893 (Process_Range_Expr_In_Decl): Do validity checks on range
17894 (Build_Discriminant_Constraints): Use updated form of
17895 Denotes_Discriminant.
17896 (Process_Subtype): If the subtype is a private subtype whose full view
17897 is a concurrent subtype, introduce an itype reference to prevent scope
17898 anomalies in gigi.
17899 (Build_Derived_Record_Type, Collect_Interface_Primitives,
17900 Record_Type_Declaration): The functionality of the subprograms
17901 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17902 is now performed by a single routine.
17903 (Build_Derived_Record_Type): If the type definition includes an explicit
17904 indication of limitedness, then the type must be marked as limited here
17905 to ensure that any access discriminants will not be treated as having
17906 a local anonymous access type.
17907 (Check_Abstract_Overriding): Issue a detailed error message when an
17908 abstract subprogram was not overridden due to incorrect mode of its
17909 first parameter.
17910 (Analyze_Private_Extension_Declaration): Add support for the analysis of
17911 synchronized private extension declarations. Verify that the ancestor is
17912 a limited or synchronized interface or in the generic case, the ancestor
17913 is a tagged limited type or synchronized interface and all progenitors
17914 are either limited or synchronized interfaces.
17915 Derived_Type_Declaration): Check for presence of private extension when
17916 dealing with synchronized formal derived types.
17917 Process_Full_View): Enchance the check done on the usage of "limited" by
17918 testing whether the private view is synchronized.
17919 Verify that a synchronized private view is completed by a protected or
17920 task type.
17921 (OK_For_Limited_Init_In_05): New function.
17922 (Analyze_Object_Declaration): Move check for limited types later,
17923 because OK_For_Limited_Init requires its argument to have been resolved.
17924 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17925 in order to alleviate the upward compatibility introduced by AI-318.
17926 (Constrain_Corresponding_Record): If the constraint is for a component
17927 subtype, mark the itype as frozen, to avoid out-of-scope references to
17928 discriminants in the back-end.
17929 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17930 this subprogram against wrong sources.
17931 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17932 discriminant of limited type completed with a protected type, when the
17933 discriminant is used to constrain a private component of the type, and
17934 expansion is disabled.
17935 (Find_Type_Of_Object): Do not treat a return subtype that is an
17936 anonymous subtype as a local_anonymous_type, because its accessibility
17937 level is the return type of the enclosing function.
17938 (Check_Initialization): In -gnatg mode, turn the error "cannot
17939 initialize entities of limited type" into a warning.
17940 (OK_For_Limited_Init): Return true for generated nodes, since it
17941 sometimes violates the legality rules.
17942 (Make_Incomplete_Declaration): If the type for which an incomplete
17943 declaration is created happens to be the currently visible entity,
17944 preserve the homonym chain when removing it from visibility.
17945 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17946 inherited subprograms.
17947 (Access_Definition): If this is an access to function that is the return
17948 type of an access_to_function definition, context is a type declaration
17949 and the scope of the anonymous type is the current one.
17950 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17951 incomplete subtype to the set of private dependents of the original
17952 incomplete type.
17953 (Constrain_Discriminated_Type): Emit an error message whenever an
17954 incomplete subtype is being constrained.
17955 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17956 corresponding subtype of the full view of the original incomplete type.
17957 (Check_Incomplete): Properly detect invalid usage of incomplete types
17958 and subtypes.
17959
17960 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17961
17962 * g-catiio.ads, g-catiio.adb (Value): New function.
17963 Given an input String, try and parse a valid Time value.
17964
17965 2006-10-31 Vincent Celier <celier@adacore.com>
17966
17967 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17968 Integer_Address arithmetic, as in Set_Valid.
17969
17970 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17971 Robert Dewar <dewar@adacore.com>
17972
17973 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17974 handling executable extension manually and duplicating code.
17975
17976 * make.adb: Implement new -S switch
17977 (Gnatmake): Use new function Osint.Executable_Name instead
17978 of handling executable extension manually.
17979
17980 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17981 is specified, the executable name ends with this suffix.
17982 Take advantage of Osint.Executable_Name instead of duplicating code.
17983
17984 * switch-m.adb: Recognize new gnatmake -S switch
17985
17986 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17987 variable.
17988 (Get_Target_Parameters): Set Executable_Extension_On_Target if
17989 available.
17990
17991 * makeusg.adb: Add line for gnatmake -S switch
17992
17993 2006-10-31 Vincent Celier <celier@adacore.com>
17994
17995 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17996 call it with -static-libgcc, as there are some platforms, such as
17997 Darwin, where one of these two switches is compulsory to link.
17998
17999 2006-10-31 Vincent Celier <celier@adacore.com>
18000
18001 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
18002 instead of ADA_PROJECT_PATH, for the project path.
18003 (Gnatls): When displaying the project path directories, use host dir
18004 specs.
18005
18006 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
18007 names in the project path, as absolute paths may correspond to
18008 multi-valued VMS logical names.
18009
18010 2006-10-31 Vincent Celier <celier@adacore.com>
18011
18012 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
18013 absolute path name.
18014 (Locate_Regular_File): Ditto
18015 (Change_Dir): Remove, no longer used
18016 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
18017 on Windows. Get it calling Get_Current_Dir.
18018 (OpenVMS): Remove imported boolean, no longer needed.
18019 (Normalize_Pathname)[VMS]: Do not resolve directory names.
18020 (Pid_To_Integer): New function to convert a Process_Id to Integer
18021
18022 2006-10-31 Thomas Quinot <quinot@adacore.com>
18023
18024 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
18025 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
18026 to No_Socket.
18027 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
18028 W_Sig_Socket.
18029
18030 2006-10-31 Robert Dewar <dewar@adacore.com>
18031
18032 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
18033 initial letter o as a zero.
18034
18035 2006-10-31 Robert Dewar <dewar@adacore.com>
18036
18037 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
18038
18039 2006-10-31 Robert Dewar <dewar@adacore.com>
18040
18041 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
18042 variant records
18043 (Layout_Variant_Record): Retrieve the discriminants from the entity
18044 rather than from the type definition, because in the case of a full
18045 type for a private type we need to take the discriminants from the
18046 partial view.
18047 (Layout_Component_List): When applying the Max operator to variants with
18048 a nonstatic size, check whether either operand is static and scale that
18049 operand from bits to storage units before applying Max.
18050 (Layout_Type): In VMS, if a C-convention access type has no explicit
18051 size clause (and does not inherit one in the case of a derived type),
18052 then the size is reset to 32 from 64.
18053
18054 2006-10-31 Vincent Celier <celier@adacore.com>
18055
18056 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
18057 its file has already been loaded, according to the unit being loaded,
18058 not to the current value of Multiple_Unit_Index.
18059
18060 2006-10-31 Thomas Quinot <quinot@adacore.com>
18061 Eric Botcazou <ebotcazou@adacore.com>
18062 Arnaud Charlet <charlet@adacore.com>
18063
18064 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
18065 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
18066 possible.
18067 (a-except.o): Pass it to the compiler.
18068 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
18069 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
18070 a-calend-mingw.adb version.
18071
18072 * Makefile.rtl: Added s-dsaser.
18073 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
18074 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
18075 Ada.Dispatching.Round_Robin.
18076 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
18077
18078 * Make-lang.in: Remove all references to gt-ada-decl.h.
18079 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
18080 sources.
18081 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
18082 Update dependencies.
18083
18084 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
18085
18086 2006-10-31 Vincent Celier <celier@adacore.com>
18087
18088 * mlib-utl.adb (Initialized): Remove, no longer used
18089 (Initialize): Remove, no longer used
18090 (Ar): If Ar_Exec is null, get the location of the archive builder and,
18091 if there is one, the archive indexer. Fail if the archive builder cannot
18092 be found.
18093 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
18094 be found.
18095
18096 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18097
18098 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
18099 Process_Body_Clauses): If the context of a body includes a use clause
18100 for P.Q then a with_clause for P in the same body is not redundant,
18101 even if the spec also has a with_clause on P.
18102 Add missing continuation mark to error msg
18103 (Build_Limited_Views): A limited view of a type is tagged if its
18104 declaration includes a record extension.
18105 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
18106 node, even if the subunit has errors. This avoids malfunction by
18107 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
18108 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
18109 generation of obsolescent messages for with statements (cannot do
18110 this too early, or we cannot implement avoiding the messages in the
18111 case of obsolescent units withing obsolescent units).
18112 (Install_Siblings): If the with_clause is on a remote descendant of
18113 an ancestor of the current compilation unit, find whether there is
18114 a sibling child unit that is immediately visible.
18115 (Remove_Private_With_Clauses): New procedure, invoked after completing
18116 the analysis of the private part of a nested package, to remove from
18117 visibility the private with_clauses of the enclosing package
18118 declaration.
18119 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
18120 now centralized in Generate_Reference.
18121 (Install_Limited_Context_Clauses): Remove superfluous error
18122 message associated with unlimited view visible through use
18123 and renamings. In addition, at the point in which the error
18124 is reported, we add the backslash to the text of the error
18125 to ensure that it is reported as a single error message.
18126 Use new // insertion for some continuation messages
18127 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
18128 to create implicit with_clause for parent unit mentioned in original
18129 limited_with_clause.
18130 (Install_Limited_With_Unit): Set entity of parent identifiers if the
18131 unit is a child unit. For ASIS queries.
18132 (Analyze_Subunit): If the subunit appears within a child unit, make all
18133 ancestor child units directly visible again.
18134
18135 2006-10-31 Robert Dewar <dewar@adacore.com>
18136
18137 * par-ch10.adb (P_Context_Clause): Minor error message fix
18138
18139 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18140 Javier Miranda <miranda@adacore.com>
18141
18142 * par-ch12.adb: Grammar update and cleanup.
18143 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
18144 support for synchronized derived type definitions.
18145 Add the new actual Abstract_Present to every call to
18146 P_Interface_Type_Definition.
18147 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
18148 a formal object declaration with an access definition or a subtype mark
18149 with a null exclusion.
18150 (P_Generic_Association): Handle association with box, and others_choice
18151 with box, to support Ada 2005 partially parametrized formal packages.
18152
18153 2006-10-31 Robert Dewar <dewar@adacore.com>
18154 Javier Miranda <miranda@adacore.com>
18155
18156 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
18157 (P_Type_Declaration): Remove barrier against the reserved word "limited"
18158 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
18159 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
18160 private extensions.
18161 (P_Type_Declaration): Add the new actual Abstract_Present to every call
18162 to P_Interface_Type_Definition.
18163 (P_Interface_Type_Definition): Addition of one formal to report an error
18164 if the reserved word abstract has been previously found.
18165 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
18166 object renaming declaration with an access definition or subtype mark
18167 with a possible null exclusion.
18168
18169 * par-ch9.adb: Minor error msg fix
18170
18171 * par-load.adb: Add missing continuation mark to error msg
18172
18173 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18174
18175 2006-10-31 Vincent Celier <celier@adacore.com>
18176
18177 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18178 unknown attribute in unknown package or in package that does not need
18179 to be checked.
18180 (Parse_Package_Declaration): Do not issue warning for unknown package in
18181 quiet output.
18182
18183 2006-10-31 Vincent Celier <celier@adacore.com>
18184
18185 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18186 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18187 Packages_To_Check.
18188
18189 2006-10-31 Vincent Celier <celier@adacore.com>
18190
18191 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18192 on VMS, change "__" to '.' before checking the name.
18193 (Record_Ada_Source): Always add the source file name in the list of
18194 of sources, even if it is not the first time, as it is for another
18195 source index.
18196 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18197 dot, instead of replacing only the first '_'.
18198
18199 * prj-part.adb (Parse): Convert project file path to canonical form
18200
18201 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18202 extended, the project id of the project extending it is recorded in its
18203 data, even when it has already been processed as an imported project.
18204
18205 2006-10-31 Robert Dewar <dewar@adacore.com>
18206
18207 * repinfo.adb (List_Entities): Don't list entities from renaming
18208 declarations.
18209
18210 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18211 Robert Dewar <dewar@adacore.com>
18212
18213 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18214 only a restriction warning is active for the given restriction. This is
18215 desirable because we do not want to modify code in the case where only
18216 a warning is set.
18217 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18218 causes overriding of real restrictions.
18219 Take advantage of new No_Restrictions constant.
18220
18221 * raise.h: (__gnat_set_globals): Change profile.
18222
18223 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18224
18225 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18226
18227 * rtsfind.ads:
18228 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18229 Move all the entities in obsolete package System.PolyORB_Interface to
18230 System.Partition_Interface.
18231 (RE_Storage_Size): New function in System.Tasking.
18232 (RE_Get_Ceiling): New entity.
18233 (RE_Set_Ceiling): New entity.
18234 (RO_PE_Get_Ceiling): New entity.
18235 (RO_RE_Set_Ceiling): New entity.
18236 (Inherit_CPP_DT): New entity
18237
18238 2006-10-31 Robert Dewar <dewar@adacore.com>
18239
18240 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18241 starting with a digit.
18242
18243 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18244 Thomas Quinot <quinot@adacore.com>
18245 Javier Miranda <miranda@adacore.com>
18246 Gary Dismukes <dismukes@adacore.com>
18247
18248 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18249 properly an attempt to apply Unchecked_Access to a protected operation.
18250 (OK_Self_Reference): New subprogram to check the legality of an access
18251 attribute whose prefix is the type of an enclosing aggregate.
18252 Generalizes previous mechanism to handle attribute references nested
18253 arbitrarily deep within the aggregate.
18254 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18255 can appear in an aggregate if this is a default-initialized aggregate
18256 for a self-referential type.
18257 (Resolve_Attribute, case Access): Ditto.
18258 Add support for new implementation defined attribute Stub_Type.
18259 (Eval_Attribute, case Attribute_Stub_Type): New case.
18260 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18261 (Stream_Attribute_Available): Implement using new subprogram from
18262 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18263 Has_Specified_Stream_Attribute flag.
18264 Disallow Storage_Size and Storage_Pool for access to subprogram
18265 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18266 access types of return subtypes in extended return statements. Remove
18267 accessibility checks on anonymous access types when Unchecked_Access is
18268 used.
18269 (Analyze_Attribute): Add support for the use of 'Class to convert
18270 a class-wide interface to a tagged type.
18271 Add support for the attribute Priority.
18272 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18273 whether the designated type is discriminated with a constrained partial
18274 view and require static matching in that case.
18275 Add local variable Des_Btyp. The Designated_Type
18276 of an access to incomplete subtype is either its non-limited view if
18277 coming from a limited with or its etype if regular incomplete subtype.
18278
18279 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18280 Fix predicate to identify and allow cases of (expander-generated)
18281 references to tag of designated object of a RACW.
18282 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18283 non-static, and therefore cannot appear as a primary in a preelaborable
18284 package.
18285 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18286 Has_Read_Write_Attributes.
18287 (Has_Read_Write_Attributes): Reimplement in termes of
18288 Has_Stream_Attribute_Definition.
18289 (Missing_Read_Write_Attributes): When checking component types in a
18290 record, unconditionally call Missing_Read_Write_Attributes recursively
18291 (remove guard checking for Is_Record_Type / Is_Access_Type).
18292
18293 2006-10-31 Robert Dewar <dewar@adacore.com>
18294
18295 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18296 useless assignments here and conditionalize it on absence of exception
18297 handlers.
18298 (Analyze_Exception_Handlers): Small code reorganization of error
18299 detection code, for new handling of formal packages.
18300
18301 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18302 Hristian Kirtchev <kirtchev@adacore.com>
18303
18304 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18305 that has been constant-folded, preserve information of original tree,
18306 for ASIS uses.
18307 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18308 generated private extension declaration if the formal derived type is
18309 synchronized. Carry synchronized present over to the generated private
18310 extension.
18311 (Validate_Derived_Type_Instance): Ensure that the actual of a
18312 synchronized formal derived type is a synchronized tagged type.
18313 (Instantiate_Formal_Package): When creating the instantiation used to
18314 validate the actual package of a formal declared without a box, check
18315 whether the formal itself depends on a prior actual.
18316 (Instantiate_Formal_Subprogram): Create new entities for the defining
18317 identifiers of the formals in the renaming declaration, for ASIS use.
18318 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18319 a renaming declaration or a subtype declaration for an actual in an
18320 instance, capture location information of declaration in generic, for
18321 ASIS use.
18322 (Instantiate_Formal_Package): Add comments on needed additional tests.
18323 AI-317 (partial parametrization) is fully implemented.
18324 (Validate_Private_Type_Instance): Add check for actual which
18325 must have preelaborable initialization
18326 Use new // insertion for some continuation messages
18327 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18328 Default_Expression. Add type retrieval when the declaration has an
18329 access definition. Update premature usage of incomplete type check.
18330 (Check_Access_Definition): New subsidiary routine. Check whether the
18331 current compilation version is Ada 05 and the supplied node has an
18332 access definition.
18333 (Instantiate object): Alphabetize local variables. Handle the creation
18334 of new renaming declarations with respect to the kind of definition
18335 used - either an access definition or a subtype mark. Guard against
18336 unnecessary error message in the context of anonymous access types after
18337 they have been resolved. Add check for required null exclusion in a
18338 formal object declaration.
18339 (Switch_View): A private subtype of a non-private type needs to be
18340 switched (the base type can have been switched without its private
18341 dependents because of the last branch of Check_Private_View.
18342 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18343 value from BT.
18344 (Instantiate_Type): Emit an error message whenever a class-wide type of
18345 a tagged incomplete type is used as a generic actual.
18346 (Find_Actual_Type): Extend routine to handle a component type in a child
18347 unit that is imported from a formal package in a parent.
18348 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18349 agree on constrainedness, rather than checking against ultimate ancestor
18350 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18351 generic body, for navigation purposes.
18352
18353 2006-10-31 Robert Dewar <dewar@adacore.com>
18354 Thomas Quinot <quinot@adacore.com>
18355
18356 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18357 type.
18358 (New_Stream_Subprogram): When processing an attribute definition clause
18359 for a stream-oriented subprogram, record an entity node occurring at
18360 the point of clause to use for checking the visibility of the clause,
18361 as defined by 8.3(23) as amended by AI-195.
18362 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18363 New_Stream_Function and New_Stream_Procedure.
18364 (New_Stream_Function, New_Stream_Procedure): Removed.
18365 (Analyze_Attribute_Definition_Clause, case Address): Check new
18366 Alignment_Check check
18367
18368 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18369 Javier Miranda <miranda@adacore.com>
18370 Robert Dewar <dewar@adacore.com>
18371
18372 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18373 generate the same errors compiling under -gnatc.
18374 (Try_Object_Operation): If no candidate interpretation succeeds, but
18375 there is at least one primitive operation with the right name, report
18376 error in call rather than on a malformed selected component.
18377 (Analyze_Selected_Component): If the prefix is an incomplete type from
18378 a limited view, and the full view is available, use the full view to
18379 determine whether this is a prefixed call to a primitive operation.
18380 (Operator_Check): Verify that a candidate interpretation is a binary
18381 operation before checking the type of its second formal.
18382 (Analyze_Call): Add additional warnings for function call contexts not
18383 yet supported.
18384 (Analyze_Allocator): Move the check for "initialization not allowed for
18385 limited types" after analyzing the expression. This is necessary,
18386 because OK_For_Limited_Init looks at the structure of the expression.
18387 Before analysis, we don't necessarily know what sort of expression it
18388 is. For example, we don't know whether F(X) is a function call or an
18389 indexed component; the former is legal in Ada 2005; the latter is not.
18390 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18391 were missing. We also didn't handle qualified expressions. Now also
18392 allow function calls. Use new common routine OK_For_Limited_Init.
18393 (Analyze_Type_Conversion): Do not perform some legality checks in an
18394 instance, because the error message will be redundant or spurious.
18395 (Analyze_Overloaded_Selected_Component): Do not do style check when
18396 setting an entity, since we do not know it is the right entity yet.
18397 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18398 (Analyze_Overloaded_Selected_Component): Same change
18399 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18400 since regular incomplete subtypes are transformed into corresponding
18401 subtypes of their full views.
18402 (Complete_Object_Operation): Treat name of transformed subprogram call
18403 as coming from source, for browsing purposes.
18404 (Try_Primitive_Operation): If formal is an access parameter, compare
18405 with base type of object to determine whether it is a primitive
18406 operation.
18407 (Operator_Check): If no interpretation of the operator matches, check
18408 whether a use clause on any candidate might make the operation legal.
18409 (Try_Class_Wide_Operation): Check whether the first parameter is an
18410 access type whose designated type is class-wide.
18411
18412 2006-10-31 Robert Dewar <dewar@adacore.com>
18413 Ed Schonberg <schonberg@adacore.com>
18414 Gary Dismukes <dismukes@adacore.com>
18415
18416 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18417 warn on infinite loops.
18418 Add \\ to some continuation messages
18419 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18420 (Process_Bounds): If the bounds are integer literals that result from
18421 constant-folding, and they carry a user-defined type, preserve that type
18422 rather than treating this as an integer range.
18423 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18424 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18425 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18426 left hand side of assignment.
18427 (Analyze_Assignment): Add suport to manage assigments to the attribute
18428 priority of a protected object.
18429 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18430 not just identifiers.
18431 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18432 or AND THEN for possible tracking.
18433 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18434 case of while loops so we can track values in the loop body.
18435
18436 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18437 Hristian Kirtchev <kirtchev@adacore.com>
18438 Bob Duff <duff@adacore.com>
18439
18440 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18441 procedure cannot be a protected operation (it is a basic_declaration,
18442 not a subprogram_declaration).
18443 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18444 Subp. Add logic for entry processing.
18445 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18446 Determine whether an entry or subprogram of a protected or task type
18447 override an inherited primitive of an implemented interface.
18448 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18449 Update the actual used in calls to Check_Overriding_Indicator.
18450 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18451 generate the proper reference to the parent unit, for cross-reference.
18452 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18453 Is_Formal.
18454 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18455 (Add_Extra_Formal): Revise procedure to allow passing in associated
18456 entity, scope, and name suffix, and handle setting of the new
18457 Extra_Formals field.
18458 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18459 pass new parameters. Add support for adding the new extra access formal
18460 for functions whose calls are treated as build-in-place.
18461 (Analyze_A_Return_Statement): Correct casing in error message.
18462 Move Pop_Scope to after Analyze_Function_Return, because an extended
18463 return statement really is a full-fledged scope. Otherwise, visibility
18464 doesn't work right. Correct use of "\" for continuation messages.
18465 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18466 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18467 the node doesn't get properly marked as analyzed.
18468 (Analyze_Subprogram_Body): If subprogram is a function that returns
18469 an anonymous access type that denotes a task, build a Master Entity
18470 for it.
18471 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18472 proper usage of null exclusion in a result definition.
18473 (Process_Formals): Code cleanup and new error message.
18474 (Process_Formals): Detect incorrect application of null exclusion to
18475 non-access types.
18476 (Conforming_Types): Handle conformance between [sub]types and itypes
18477 generated for entities that have null exclusions applied to them.
18478 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18479 base type is an access subtype. This case arrises with null exclusions.
18480 (New_Overloaded_Entity): Do not remove the overriden entity from the
18481 homonym chain if it corresponds with an abstract interface primitive.
18482 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18483 call to the synthesized predicate Is_Incomplete_Type.
18484 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18485 primitives.
18486 (Analyze_Subprogram_Declaration): Check that abstract interface
18487 primitives are abstract or null.
18488 (Analyze_Subprogram_Specification): Remove previous check for abstract
18489 interfaces because it was not complete.
18490 (Has_Interface_Formals): Removed.
18491
18492 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18493 Javier Miranda <miranda@adacore.com>
18494
18495 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18496 of Analyze_Package_Body, to create Itype references for anonymous
18497 access types created in the package declaration, whose designated types
18498 may have only a limited view.
18499 (Analyze_Package_Specification): For the private part of a nested
18500 package, install private_with_clauses of enclosing compilation unit if
18501 we are in its visible part.
18502 (Declare_Inherited_Private_Subprograms): Complete barrier
18503 to ensure that the primitive operation has an alias to some parent
18504 primitive. This is now required because, after the changes done for the
18505 implementation of abstract interfaces, the contents of the list of
18506 primitives has entities whose alias attribute references entities of
18507 such list of primitives.
18508 (Analyze_Package_Specification): Simplify code that handles parent units
18509 of instances and formal packages.
18510 (Uninstall_Declarations): Check the convention consistency among
18511 primitive overriding operations of a tagged record type.
18512
18513 2006-10-31 Robert Dewar <dewar@adacore.com>
18514 Hristian Kirtchev <kirtchev@adacore.com>
18515 Javier Miranda <miranda@adacore.com>
18516 Ed Schonberg <schonberg@adacore.com>
18517
18518 * sem_ch8.adb: Minor error msg rewording
18519 (Undefined): When checking for misspellings, invert arguments (to get
18520 expected and found set right)
18521 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18522 (Analyze_Generic_Renaming): Same fix
18523 (Use_One_Package): Do not take into account the internal entities of
18524 abstract interfaces during the analysis of entities that are marked
18525 as potentially use-visible.
18526 (Find_Type): Handle the case of an attribute reference for
18527 implementation defined attribute Stub_Type (simply let the analysis of
18528 the attribute reference rewrite it).
18529 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18530 type that appears in a Use_Type clause.
18531 (Analyze_Object_Renaming): Add support for renaming of the Priority
18532 attribute.
18533 (Find_Type): In Ada 2005, a task type can be used within its own body,
18534 when it appears in an access definition.
18535 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18536 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18537 in a formal object declaration or in a subtype declaration.
18538 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18539 (Check_Null_Exclusion): New local routine to
18540 Analyze_Subprogram_Renaming. Check whether the formals and return
18541 profile of a renamed subprogram have required null exclusions when
18542 their counterparts of the renaming already impose them.
18543 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18544 Determine whether an entity is inside a generic scope.
18545 (In_Open_Scope): First pass of documentation update.
18546 (Find_Expanded_Name): Add support for shadow entities associated with
18547 limited withed packages. This is required to handle nested packages.
18548 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18549 that makes a renaming of a limited withed package illegal.
18550
18551 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18552 Ed Schonberg <schonberg@adacore.com>
18553
18554 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18555 Check_Overriding_Indicator.
18556 (Analyze_Task_Definition): Ditto.
18557 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18558 (Check_Overriding_Indicator): To find overridden interface operation,
18559 examine only homonyms that have an explicit subprogram declaration, not
18560 inherited operations created by an unrelated type derivation.
18561 (Check_Overriding_Indicator): When checking for the presence of "null"
18562 in a procedure, ensure that the queried node is a procedure
18563 specification.
18564 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18565 type when the formal is an access to variable.
18566 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18567 (Analyze_Task_Type): Same addition
18568 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18569 provide navigation capabilities for entries.
18570
18571 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18572 Ed Schonberg <schonberg@adacore.com>
18573 Javier Miranda <miranda@adacore.com>
18574 Gary Dismukes <dismukes@adacore.com>
18575
18576 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18577 inherited from an interface ancestor by another interface in the
18578 context of an instance as 'late'.
18579 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18580 of a call to a function that dispatches on access result.
18581 (Check_Dispatching_Operation): In case of late overriding of a primitive
18582 that covers abstract interface subprograms we register it in all the
18583 secondary dispatch tables associated with abstract interfaces.
18584 (Check_Dispatching_Call): Add check that a dispatching call is not made
18585 to a function with a controlling result of a limited type. This is a
18586 current implementation restriction.
18587 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18588 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18589 argument is an interface type that is a generic formal.
18590 (Is_Interface_Subprogram): Removed.
18591 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18592 operation, check the formals to handle the case in which it is
18593 associated with an abstract interface type.
18594
18595 2006-10-31 Robert Dewar <dewar@adacore.com>
18596 Ed Schonberg <schonberg@adacore.com>
18597
18598 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18599 Add new calls to this procedure during traversal
18600 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18601 another unit if expansion is disabled.
18602
18603 2006-10-31 Robert Dewar <dewar@adacore.com>
18604
18605 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18606 Current_Value in the conditional case, to evaluate additional
18607 comparisons at compile time.
18608
18609 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18610 Hristian Kirtchev <kirtchev@adacore.com>
18611 Javier Miranda <miranda@adacore.com>
18612
18613 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18614 subprogram type to provide better diagnostics in case of ambiguity.
18615 (Covers): Handle coverage of formal and actual anonymous access types in
18616 the context of generic instantiation.
18617 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18618 abstract interface types; this is required to handle concurrent types
18619 with discriminants and abstract interface types.
18620 (Covers): Include type coverage of both regular incomplete subtypes and
18621 incomplete subtypes of incomplete type visibles through a limited with
18622 clause.
18623
18624 2006-10-31 Robert Dewar <dewar@adacore.com>
18625 Hristian Kirtchev <kirtchev@adacore.com>
18626 Ed Schonberg <schonberg@adacore.com>
18627
18628 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18629 messages for entities in packages which are not used.
18630 (Collect_Synchronized_Interfaces): New procedure.
18631 (Overrides_Synchronized_Primitive): New function.
18632 (Denotes_Discriminant): Extend predicate to apply to task types.
18633 Add missing continuation marks in error msgs
18634 (Unqualify): New function for removing zero or more levels of
18635 qualification from an expression. There are numerous places where this
18636 ought to be used, but we currently only deal properly with zero or one
18637 level.
18638 (In_Instance); The analysis of the actuals in the instantiation of a
18639 child unit is not within an instantiation, even though the parent
18640 instance is on the scope stack.
18641 (Safe_To_Capture_Value): Exclude the case of variables that are
18642 renamings.
18643 (Check_Obsolescent): Removed
18644 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18645 is an aliased view, even when rewritten as a reference to the target
18646 object in an assignment.
18647 (Get_Subprogram_Entity): New function
18648 (Known_To_Be_Assigned): New function
18649 (Type_Access_Level): Compute properly the access level of a return
18650 subtype that is an anonymous access type.
18651 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18652 (Is_Transfer): The new extended_return_statement causes a transfer of
18653 control.
18654 (Has_Preelaborable_Initialization): New function
18655 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18656 has a null exclusion depending on its Nkind.
18657 Change Is_Lvalue to May_Be_Lvalue
18658 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18659 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18660 (Safe_To_Capture_Value): Extend functionality so it can be used for
18661 the current value condition case.
18662 (Has_Compatible_Alignment): New function
18663 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18664 objects to handle the Ada 2005 case, where aliasedness no longer implies
18665 that the object is constrained. In particular, for dereferenced names,
18666 the designated object must be assumed to be unconstrained.
18667 (Kill_Current_Values): Properly deal with the case where we encounter
18668 a loop in the scope chain.
18669 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18670 a value.
18671 (Compile_Time_Constraint_Error): Improve error message in error case
18672
18673 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18674 associated with entities of abstract interface primitives.
18675 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18676
18677 2006-10-31 Robert Dewar <dewar@adacore.com>
18678
18679 * s-osinte-tru64.adb:
18680 Mark Asm statements Volatile to prevent warnings (seems a
18681 reasonable change anyway)
18682 Fixes new warnings
18683
18684 * s-mastop-irix.adb: Add Volatile to Asm statements
18685 Suppresses warning, and seems appropriate in any case
18686
18687 * s-osinte-vms.adb: Add Volatile to Asm statement
18688
18689 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18690
18691 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18692 returned.
18693 Add call to Check_Code_Statement
18694
18695 2006-10-31 Robert Dewar <dewar@adacore.com>
18696 Ed Schonberg <schonberg@adacore.com>
18697 Bob Duff <duff@adacore.com>
18698
18699 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18700 Synchronized_Present): Add Formal_Derived_Type_Definition and
18701 Private_Extension_Declaration to the list of assertions.
18702 (Is_Entry_Barrier_Function): New flag
18703 (Has_Self_Reference): New flag on aggregates, to indicate that they
18704 contain a reference to the enclosing type, inserted through a default
18705 initialization.
18706 (Next_Rep_Item): Move from Node4 to Node5.
18707 (Entity): Add this field for N_Attribute_Definition_Clause.
18708 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18709 (N_Return_Object_Declaration): Remove this node kind. We now use
18710 N_Object_Declaration instead.
18711 (Actual_Designated_Subtype): Move to a different place to make room in
18712 N_Extended_Return_Statement.
18713 (Procedure_To_Call): Move to a different place to make room in
18714 N_Extended_Return_Statement.
18715 (Return_Type): Removed this field to make room in return statements
18716 (both kinds).
18717 (Return_Statement_Entity): New field in return statements, in part to
18718 replace Return_Type, and in part to support the fact that return
18719 statements are now pushed on the scope stack during semantic analysis.
18720 (Return_Object_Declarations): New field to support extended return
18721 statements.
18722 (N_Extended_Return_Statement): New node for extended_return_statement
18723 nonterminal.
18724 (N_Return_Object_Declaration): New node for part of
18725 extended_return_statement nonterminal. Needed because all the necessary
18726 fields won't fit in N_Extended_Return_Statement.
18727 Generic_associations now carry the Box_Present flag, to indicate a
18728 default for an actual in a partially parametrized formal package.
18729
18730 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18731 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18732 and for the new predefined dispatching policies: EDF_Across_Priorities,
18733 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18734 Introduce new name Stub_Type for implementation defined attribute.
18735 Add pragma Preelaborable_Initialization
18736 Add entry for Priority attribute.
18737 Add Pragma_Wide_Character_Encoding
18738 (Get_Convention_Name): Given a convention id, this function returns the
18739 corresponding name id from the names table.
18740
18741 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18742 Robert Dewar <dewar@adacore.com>
18743 Bob Duff <duff@adacore.com>
18744
18745 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18746 print null exclusion twice in the case of an access definition,
18747 Implement new -gnatL switch
18748 Remove N_Return_Object_Declaration. We now use
18749 N_Object_Declaration instead. Implement the case for
18750 N_Extended_Return_Statement. Alphabetize the cases.
18751 Add cases for new nodes N_Extended_Return_Statement and
18752 N_Return_Object_Declaration. The code is not yet written.
18753 Update the output for N_Formal_Object_Declaration
18754 and N_Object_Renaming_Declaration.
18755 (Write_Itype): Account for the case of a modular integer subtype whose
18756 base type is private.
18757
18758 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18759
18760 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18761 Remove elaboration code, now done in the binder.
18762
18763 * s-rident.ads: Make this unit Preelaborate.
18764 (No_Restrictions): New constant used to clean up code and follow
18765 preelaborate constraints.
18766
18767 * s-stalib.adb:
18768 Add System.Restrictions dependence, referenced directly from the
18769 binder generated file.
18770
18771 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18772
18773 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18774 True when AAMP extended floating-point is in use (48-bit). Change type
18775 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18776 the two byte array types on AFloat. Change type of IV_Ilf overlay
18777 variable from Byte8 to ByteLF. Add appropriate initializations of
18778 floating-point overlays for AAMP cases.
18779
18780 2006-10-31 Javier Miranda <miranda@adacore.com>
18781
18782 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18783 (Get_Ceiling): New subprogram that returns
18784 the ceiling priority of the protected object.
18785 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18786 the protected object.
18787
18788 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18789
18790 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18791
18792 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18793
18794 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18795 requeuing to the same protected object to give higher priority tasks
18796 the opportunity to execute.
18797
18798 2006-10-31 Robert Dewar <dewar@adacore.com>
18799
18800 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18801 add more precise check for the character sequence that follows '[' to
18802 avoid possible confusion in case if '[' is the last character of a
18803 string literals.
18804 (Scan_Wide): Always allow brackets encoding
18805
18806 2006-10-31 Olivier Hainque <hainque@adacore.com>
18807
18808 * s-stchop.ads: make this unit preelaborate. This is desirable in
18809 general and made mandatory by the use of this unit by s-taprop which
18810 is itself preelaborate.
18811
18812 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18813 Td_Events component.
18814
18815 2006-10-31 Vincent Celier <celier@adacore.com>
18816
18817 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18818 in file names.
18819
18820 2006-10-31 Vincent Celier <celier@adacore.com>
18821
18822 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18823
18824 2006-10-31 Vincent Celier <celier@adacore.com>
18825
18826 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18827 with spaces.
18828 (Check_Compilation_Needed): When checking a C or C++ source, do not
18829 resolve symbolic links.
18830 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18831 When not in verbose mode and Ellipse is True, display "..." for the
18832 first argument with Display set to False.
18833 (Build_Global_Archive): Always set Display True for the first object
18834 file. Call Display_Command with Ellipse set to True.
18835
18836 2006-10-31 Matt Heaney <heaney@adacore.com>
18837
18838 * a-crbtgo.ads: Commented each subprogram
18839
18840 * a-crbtgo.adb: Added reference to book from which algorithms were
18841 adapted.
18842
18843 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18844 indicate which child.
18845 (Generic_Conditional_Insert): changed parameter name from "Success" to
18846 "Inserted".
18847 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18848
18849 * a-coorse.adb (Replace_Element): changed parameter name in call to
18850 conditional insert operation.
18851
18852 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18853
18854 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18855 Generic_Iteration
18856
18857 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18858 conditional insert operation.
18859
18860 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18861 Generic_Iteration.
18862
18863 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18864 instead of mode inout.
18865
18866 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18867 draft
18868 (Generic_Read): preserve existing buckets array if possible
18869 (Generic_Write): don't send buckets array length anymore
18870
18871 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18872 instead of mode inout.
18873
18874 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18875 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18876
18877 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18878 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18879 (Replace_Element): local operation is now an instantiation
18880
18881 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18882 check current length.
18883 (Generic_Replace_Element): new operation
18884
18885 2006-10-31 Doug Rupp <rupp@adacore.com>
18886
18887 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18888 Call TBK$SYMBOLIZE without omitting parameters.
18889
18890 2006-10-31 Vincent Celier <celier@adacore.com>
18891
18892 * symbols-processing-vms-ia64.adb,
18893 symbols-processing-vms-alpha.adb (Process): Do not include symbols
18894 that come from generic instantiations in bodies.
18895
18896 2006-10-31 Pat Rogers <rogers@adacore.com>
18897
18898 * a-rttiev.ads, a-rttiev.adb:
18899 This is a significant redesign primarily for the sake of automatic
18900 timer task termination but also to fix a design flaw.
18901 Therefore we are now using an RTS lock, instead of a protected
18902 object, to provide mutual exclusion to the queue of pending events
18903 and the type Timing_Event is no longer a protected type.
18904
18905 2006-10-31 Robert Dewar <dewar@adacore.com>
18906 Cyrille Comar <comar@adacore.com>
18907 Ben Brosgol <brosgol@adacore.com>
18908
18909 * debug.adb: Update flags documentation
18910
18911 * gnat_ugn.texi: Add documentation for new -gnatwq switch
18912 Clean up documentation for several other warning switches
18913 Clarify how task stack size can be specified with various
18914 versions of Windows.
18915 Add note that -gnatVo includes ranges including loops
18916 Add documentation for -gnatL switch
18917 Add note on elaboration warning for initializing variables
18918 Add documentation for new -gnatwt warning switch
18919 Document new form of pragma Warnings (On|Off, string)
18920 Add comment on use of pragma Warnings to control warnings
18921 Add documentation for -gnatjnn switch
18922 Modify section on interfacing with C for VMS 64-bit.
18923 Add doc for -gnatVe/E
18924 Add documentation of new warning flags -gnatww/-gnatwW
18925 Add warnings about address clause overlays to list of warnings
18926 (Exception Handling Control): Document that the option --RTS must be
18927 used consistently for gcc and gnatbind.
18928 Clarify that inlining is not always possible
18929 Update documentation on pragma Unchecked_Union.
18930
18931 * gnat_rm.texi:
18932 Add documentation for new extended version of pragma Obsolescent
18933 Add documentation for implementation defined attribute 'Stub_Type.
18934 Add note on use of Volatile in asm statements
18935 Add documentation on use of pragma Unreferenced in context clause
18936 Document new form of pragma Warnings (On|Off, pattern)
18937 Document pragma Wide_Character_Encoding
18938 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18939 enforced if code generation is active.
18940 Add section on pragma Suppress to document GNAT specific check
18941 Alignment_Check
18942 Clarify difference between No_Dispatching_Calls & No_Dispatch.
18943 Add documentation for pragma Restrictions (No_Elaboration_Code)
18944
18945 * gnat-style.texi:
18946 Add comments on layout of subprogram local variables in the
18947 presence of nested subprograms.
18948
18949 * ug_words: Resync.
18950
18951 * elists.ads: Minor reformatting
18952 Node returns Node_Or_Entity_Id (doc change only)
18953
18954 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18955
18956 * g-arrspl.ads (Create): Update comments.
18957
18958 * sem.ads: Add details on the handling of the scope stack.
18959
18960 * usage.adb: Update documentation.
18961
18962 * validsw.ads, validsw.adb:
18963 Add definition of Validity_Check_Components and implement -gnatVe/E
18964
18965 * vms_data.ads: Add missing VMS qualifiers.
18966
18967 * s-addope.ads: Add documentation on overflow and divide by zero
18968
18969 2006-10-31 Robert Dewar <dewar@adacore.com>
18970 Thomas Quinot <quinot@adacore.com>
18971 Arnaud Charlet <charlet@adacore.com>
18972
18973 * fmap.adb: Put routines in alpha order
18974
18975 * g-boumai.ads: Remove redundant 'in' keywords
18976
18977 * g-cgi.adb: Minor reformatting
18978
18979 * g-cgi.ads: Remove redundant 'in' keywords
18980
18981 * get_targ.adb: Put routines in alpha order
18982
18983 * prj-attr.ads: Minor reformatting
18984
18985 * s-atacco.ads: Minor reformatting
18986
18987 * scn.adb: Put routines in alpha order
18988
18989 * sinput-l.adb: Minor comment fix
18990
18991 * sinput-p.adb: Minor comment fix
18992
18993 * s-maccod.ads: Minor reformatting
18994
18995 * s-memory.adb: Minor reformatting
18996
18997 * s-htable.adb: Fix typo in comment.
18998
18999 * s-secsta.adb: Minor comment update.
19000
19001 * s-soflin.adb: Minor reformatting
19002
19003 * s-stoele.ads:
19004 Add comment about odd qualification in Storage_Offset declaration
19005
19006 * s-strxdr.adb:
19007 Remove unnecessary 'in' keywords for formal parameters.
19008
19009 * treeprs.adt: Minor reformatting
19010
19011 * urealp.adb: Put routines in alpha order
19012
19013 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
19014 taking string.
19015
19016 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19017
19018 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
19019
19020 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
19021 workaround as on other platforms.
19022
19023 * g-eacodu-vms.adb: Remove redundant 'in' keywords
19024 * g-expect-vms.adb: Remove redundant 'in' keywords
19025
19026 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
19027 clear error message if the list-of-files file cannot be opened.
19028
19029 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
19030 equality operator is always visible.
19031
19032 * lang.opt: Woverlength-strings: New option.
19033
19034 * nmake.adt:
19035 Update copyright, since nmake.ads and nmake.adb have changed.
19036
19037 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
19038 (Binder_Output_Time_Stamps_Set): removed.
19039 (Old_Binder_Output_Time_Stamp): idem.
19040 (New_Binder_Output_Time_Stamp): idem.
19041 (Recording_Time_From_Last_Bind): idem.
19042 (Recording_Time_From_Last_Bind): Make constant.
19043
19044 * output.ads, output.adb (Write_Str): Allow LF characters
19045 (Write_Spaces): New procedure
19046
19047 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
19048
19049 * inline.adb: Minor reformatting
19050
19051 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
19052
19053 * s-mastop-vms.adb: Remove redundant 'in' keywords
19054
19055 * s-osprim-vms.adb: Remove redundant 'in' keywords
19056
19057 * s-trafor-default.adb: Remove redundant 'in' keywords
19058
19059 * 9drpc.adb: Remove redundant 'in' keywords
19060
19061 * s-osinte-mingw.ads: Minor reformatting
19062
19063 * s-inmaop-posix.adb: Minor reformatting
19064
19065 * a-direio.ads: Remove quotes from Compile_Time_Warning message
19066
19067 * a-exexda.adb: Minor code reorganization
19068
19069 * a-filico.adb: Minor reformatting
19070
19071 * a-finali.adb: Minor reformatting
19072
19073 * a-nudira.ads: Remove quote from Compile_Time_Warning message
19074
19075 * a-numeri.ads: Minor reformatting
19076
19077 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
19078
19079 * exp_pakd.ads: Fix obsolete comment
19080
19081 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
19082 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
19083 Probably not a bug, but certainly neater and more efficient.
19084
19085 * a-tienio.adb: Minor reformatting
19086
19087 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
19088 Avoid assuming low bound of string is 1.
19089
19090 * gnatbind.adb: Change Bindusg to package and rename procedure as
19091 Display, which now ensures that it only outputs usage information once.
19092 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
19093
19094 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
19095 Table'First.
19096
19097 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
19098 warning.
19099 (Match): Add pragma Assert to ensure that Matches'First is zero
19100
19101 * g-regpat.ads (Match): Document that Matches lower bound must be zero
19102
19103 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
19104 documented preconditions (also kills warnings about bad indexes).
19105
19106 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
19107 is 1.
19108 (Build_Import_Library): Ditto;
19109
19110 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
19111
19112 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
19113
19114 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
19115 lower bound of choice table is 1.
19116
19117 * sem_case.ads (Analyze_Choices): Document that lower bound of
19118 Choice_Table is 1.
19119
19120 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
19121 string is 1.
19122
19123 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
19124 and add appropriate Assert pragma to suppress warnings.
19125
19126 * atree.h, atree.ads, atree.adb
19127 Change Elist24 to Elist25
19128 Add definitions of Field28 and Node28
19129 (Traverse_Field): Use new syntactic parent table in sinfo.
19130
19131 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19132
19133 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
19134
19135 * exp_tss.adb: Put routines in alpha order
19136
19137 * fe.h: Remove redundant declarations.
19138
19139 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19140
19141 * utils.c (builtin_function): Rename to gnat_builtin_function.
19142 Move common code to add_builtin_function.
19143 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
19144 gnat_builtin_function.
19145 * gigi.h (builtin_function): Rename to gnat_builtin_function.
19146 Change the signature.
19147
19148 2006-10-16 Brooks Moses <bmoses@stanford.edu>
19149
19150 * Makefile.in: Add TEXI2PDF definition.
19151 * Make-lang.in: Add "ada.pdf" target.
19152
19153 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
19154
19155 * decl.c, utils.c: Fix comment typos.
19156 * utils.c: Fix a typo.
19157
19158 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
19159
19160 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
19161 on "pure" Ada subprograms if SJLJ exceptions are used.
19162 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
19163 on the declaration node of JMPBUF_SAVE.
19164 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
19165 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
19166 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
19167
19168 2006-08-20 Laurent Guerby <laurent@guerby.net>
19169
19170 PR ada/28716
19171 g-socket.adb (Bind_Socket): Call Set_Address.
19172
19173 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19174
19175 PR ada/15802
19176 * decl.c (same_discriminant_p): New static function.
19177 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19178 subtype and we have discriminants, fix up the COMPONENT_REFs
19179 for the discriminants to make them reference the corresponding
19180 fields of the parent subtype after it has been built.
19181
19182 2006-09-15 Roger Sayle <roger@eyesopen.com>
19183
19184 PR ada/18817
19185 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19186 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19187
19188 2006-09-13 Olivier Hainque <hainque@adacore.com>
19189
19190 PR ada/29025
19191 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19192 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19193 let the common gimplifier code make and propagate a temporary copy.
19194 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19195 out/in-out actuals and defer setting the addressable/readonly bits
19196 to the gimplifier.
19197
19198 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19199
19200 PR ada/28591
19201 * decl.c (components_to_record): Defer emitting debug info for the
19202 record type associated with the variant until after we are sure to
19203 actually use it.
19204
19205 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19206
19207 PR ada/21952
19208 * gigi.h (gnat_internal_attribute_table): Declare.
19209 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19210 * utils.c (gnat_internal_attribute_table): New global variable.
19211 (builtin_function): Always call decl_attributes on the builtin.
19212 (handle_const_attribute): New static function.
19213 (handle_nothrow_attribute): Likewise.
19214
19215 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19216
19217 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19218
19219 2006-06-23 Olivier Hainque <hainque@adacore.com>
19220
19221 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19222 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19223
19224 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19225 Eric Botcazou <ebotcazou@adacore.com>
19226
19227 PR ada/18692
19228 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19229 check-gnat into check-acats.
19230
19231 2006-06-17 Karl Berry <karl@gnu.org>
19232
19233 * gnat-style.texi (@dircategory): Use "Software development"
19234 instead of "Programming", following the Free Software Directory.
19235
19236 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19237
19238 PR ada/27944
19239 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19240
19241 2006-06-06 Laurent Guerby <laurent@guerby.net>
19242
19243 PR ada/27769
19244 mlib-utl.adb: Use Program_Name.
19245
19246 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19247
19248 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19249 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19250 trans.c, utils.c: Fix comment typos. Follow spelling
19251 conventions.
19252 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19253 conventions.
19254
19255 2006-05-19 Nicolas Setton <setton@adacore.com>
19256
19257 * misc.c (gnat_dwarf_name): New function.
19258 (LANG_HOOKS_DWARF_NAME): Define to it.
19259
19260 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19261
19262 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19263 (ada/misc.o): Likewise.
19264 (ada/utils.o): Likewise.
19265
19266 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19267
19268 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19269 * s-osinte-kfreebsd-gnu.ads: New file.
19270
19271 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19272
19273 * Make-lang.in: Rename docdir to gcc_docdir.
19274
19275 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19276
19277 * gigi.h (get_ada_base_type): Delete.
19278 * utils2.c (get_ada_base_type): Likewise.
19279 * trans.c (convert_with_check): Operate in the real base type.
19280
19281 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19282
19283 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19284
19285 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19286
19287 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19288 whether to make the decl common.
19289
19290 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19291
19292 * Make-lang.in (Ada): Remove.
19293 (.PHONY): Remove Ada
19294
19295 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19296
19297 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19298 aggregate, check the interpretations of the other operand to find one
19299 that may be a boolean array.
19300
19301 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19302 the prefix is a private extension.
19303
19304 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19305
19306 PR ada/26315
19307 * utils2.c (find_common_type): If both input types are BLKmode and
19308 have the same constant size, keep using the first one.
19309
19310 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19311
19312 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19313
19314 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19315
19316 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19317
19318 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19319 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19320 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19321 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19322 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19323 aborted while owning a lock.
19324
19325 2006-02-17 Javier Miranda <miranda@adacore.com>
19326 Robert Dewar <dewar@adacore.com>
19327
19328 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19329 through an access to class-wide interface we force the displacement of
19330 the pointer to the allocated object to reference the corresponding
19331 secondary dispatch table.
19332 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19333 if Long_Shifts are supported on the target, even if 64 bit divides
19334 are not supported (configurable run time mode).
19335 (Expand_N_Type_Conversion): Do validity check if validity checks on
19336 operands are enabled.
19337 (Expand_N_Qualified_Expression): Do validity check if validity checks
19338 on operands are enabled.
19339
19340 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19341
19342 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19343 must be materialized when the renamed expression is an explicit
19344 dereference.
19345
19346 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19347
19348 * freeze.adb (Statically_Discriminated_Components): Return false if
19349 the bounds of the type of the discriminant are not static expressions.
19350
19351 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19352 the bounds of the discriminant type are not static.
19353
19354 2006-02-17 Robert Dewar <dewar@adacore.com>
19355
19356 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19357 then we close To if it is valid.
19358
19359 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19360
19361 * init.c (facility_resignal_table): new array
19362 (__gnat_default_resignal_p): enhance default predicate to resignal if
19363 VMS condition has one of the predefined facility codes.
19364
19365 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19366
19367 * Makefile.in: Use VMS64 specialized versions of several units in
19368 Interfaces.C hierarchy to be compatible with HP C default size choices.
19369 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19370
19371 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19372
19373 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19374 instantiation, the corresponding entity is the related_instance of the
19375 wrapper package created for the instance.
19376
19377 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19378
19379 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19380 the current instance is nested within another instance in a child unit.
19381
19382 2006-02-17 Javier Miranda <miranda@adacore.com>
19383 Ed Schonberg <schonberg@adacore.com>
19384
19385 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19386 type we cannot inherit the primitive operations; we inherit the
19387 Corresponding_Record_Type (which has the list of primitive operations).
19388 (Check_Anonymous_Access_Types): When creating anonymous access types for
19389 access components, use Rewrite in order to preserve the tree structure,
19390 for ASIS use.
19391 (Analyze_Object_Declaration): For limited types with access
19392 discriminants with defaults initialized by an aggregate, obtain
19393 subtype from aggregate as for other mutable types.
19394 (Derived_Type_Declaration): If the derived type is a limited interface,
19395 set the corresponding flag (Is_Limited_Record is not sufficient).
19396
19397 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19398
19399 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19400 to inline a function that returns an unconstrained type, the return
19401 expression must be the first variable declared in the body of the
19402 function.
19403
19404 2006-02-17 Javier Miranda <miranda@adacore.com>
19405
19406 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19407 abstract interface type, the static analysis is not enough to know if
19408 the interface is implemented or not by the source tagged type. Hence
19409 we must pass the work to the expander to generate the required code to
19410 evaluate the conversion at run-time.
19411 (Resolve_Equality_Op): Do not apply previous
19412 transformation if expansion is disasbled, to prevent anomalies when
19413 locating global references in a generic unit.
19414
19415 2006-02-17 Vincent Celier <celier@adacore.com>
19416
19417 * snames.ads, snames.adb: New standard names for new project attributes:
19418 archive_builder, archive_indexer, compiler_pic_option,
19419 config_body_file_name, config_body_file_name_pattern,
19420 config_file_switches, config_file_unique, config_spec_file_name,
19421 config_spec_file_name_pattern, default_builder_switches,
19422 default_global_compiler_switches, default_language,
19423 dependency_file_kind, global_compiler_switches, include_path,
19424 include_path_file, language_kind, linker_executable_option,
19425 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19426 roots, runtime_project.
19427
19428 2006-02-17 Matthew Heaney <heaney@adacore.com>
19429
19430 * a-convec.ads, a-convec.adb:
19431 (operator "&"): handle potential overflow for large index types
19432 (Insert): removed Contraint_Error when using large index types
19433 (Insert_Space): removed Constraint_Error for large index types
19434 (Length): moved constraint check from Length to Insert
19435
19436 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19437 as not null access.
19438 Explicit raise statements now include an exception message.
19439 (operator "&"): handle potential overflow for large index types
19440 (Insert): removed Contraint_Error when using large index types
19441 (Insert_Space): removed Constraint_Error for large index types
19442 (Length): moved constraint check from Length to Insert
19443
19444 2006-02-17 Robert Dewar <dewar@adacore.com>
19445
19446 * s-wchcnv.adb: Document handling of [ on output (we do not change
19447 this to ["5B"] and the new comments say why not.
19448
19449 * gnat_ugn.texi:
19450 Add note for -gnatVo that this now includes the cases of type
19451 conversions and qualified expressions.
19452 Add comments on handling of brackets encoding for Text_IO
19453
19454 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19455 Thomas Quinot <quinot@adacore.com>
19456 Robert Dewar <dewar@adacore.com>
19457 Javier Miranda <miranda@adacore.com>
19458
19459 * expander.adb: Fix typo in comment
19460
19461 * exp_pakd.adb: Fix typo
19462 Minor comment reformatting.
19463
19464 * g-dyntab.adb: Minor reformatting
19465
19466 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19467 aliased subprograms to look for the abstract interface subprogram.
19468
19469 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19470
19471 * env.c (__gnat_setenv): Use size_t.
19472 (__gnat_unsetenv): Likewise.
19473 (__gnat_clearenv): Likewise.
19474
19475 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19476
19477 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19478
19479 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19480
19481 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19482 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19483 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19484 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19485 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19486 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19487 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19488 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19489 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19490 no longer used.
19491
19492 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19493
19494 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19495 protection against race conditions is not needed.
19496 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19497 fallback handler.
19498 (Set_Specific_Handler): Add mutual exclusive access to the specific
19499 handler.
19500 (Specific_Handler): Add mutual exclusive access for retrieving the
19501 specific handler.
19502
19503 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19504 back handler.
19505
19506 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19507 Fall_Back_Handler and Specific_Handler.
19508
19509 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19510 termination handlers.
19511 Set two different owerflow depending on the maximal stack size.
19512
19513 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19514 protection against race conditions is not needed when executing the
19515 task termination handler.
19516
19517 2006-02-13 Robert Dewar <dewar@adacore.com>
19518
19519 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19520 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19521 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19522 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19523 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19524 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19525 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19526 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19527 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19528 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19529 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19530 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19531 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19532 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19533 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19534 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19535 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19536 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19537 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19538 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19539 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19540 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19541 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19542 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19543 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19544 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19545 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19546 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19547 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19548 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19549 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19550 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19551 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19552 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19553 reformatting.
19554
19555 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19556
19557 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19558 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19559 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19560 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19561 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19562 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19563 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19564 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19565 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19566
19567 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19568
19569 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19570 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19571 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19572 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19573 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19574 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19575 replaced by anonymous access type.
19576 (pthread_sigmask): Now take an access sigset_t
19577
19578 * s-osinte-hpux.ads: Ditto.
19579 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19580 properly 32 and 64 bit ABIs.
19581
19582 2006-02-13 Pascal Obry <obry@adacore.com>
19583
19584 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19585 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19586 s-taprop-linux.adb, s-taprop-solaris.adb,
19587 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19588 adjustement is already done when calling this routine.
19589
19590 2006-02-13 Pascal Obry <obry@adacore.com>
19591
19592 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19593 table to take advantage of the 16 priority levels available on Windows
19594 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19595 supported by this new mapping.
19596
19597 2006-02-13 Nicolas Setton <setton@adacore.com>
19598
19599 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19600 (get_encoding): New subprogram. Extracts the encodings from an encoded
19601 Ada name.
19602
19603 2006-02-13 Pascal Obry <obry@adacore.com>
19604 Nicolas Roche <roche@adacore.com>
19605 Arnaud Charlet <charlet@adacore.com>
19606
19607 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19608 support.
19609 (__gnat_try_lock): Add unicode support by using a specific section on
19610 Windows.
19611 (__gnat_get_current_dir): Idem.
19612 (__gnat_open_read): Idem.
19613 (__gnat_open_rw): Idem.
19614 (__gnat_open_create): Idem.
19615 (__gnat_create_output_file): Idem.
19616 (__gnat_open_append): Idem.
19617 (__gnat_open_new): Idem.
19618 (__gnat_file_time_name): Idem.
19619 (__gnat_set_file_time_name): Idem.
19620 (__gnat_stat): Idem.
19621 (win32_no_block_spawn): Idem.
19622 (__gnat_locate_exec_on_path): Idem.
19623 (__gnat_opendir): New routine.
19624 (__gnat_closedir): Idem.
19625 (__gnat_readdir): Add new parameter length (pointer to int). Update
19626 implementation to use it and add specific Win32 code for Unicode
19627 support.
19628 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19629 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19630 (convert_addresses): Do not define this dummy routine on VMS.
19631
19632 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19633 runtime Unicode support will be activated.
19634 (S2WS): String to Wide-String conversion. This version just copy a
19635 string in non Unicode version.
19636 (WS2S): Wide-String to String conversion. This version just copy a
19637 string in non Unicode version.
19638
19639 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19640 (Open): Now import __gnat_opendir from adaint.c.
19641 (Read): Change the implementation to support unicode characters. It is
19642 not possible to use strlen() on Windows as this version supports only
19643 standard ASCII characters. So the length of the directory entry is now
19644 returned from the imported __gnat_readdir routine.
19645 Update copyright notice.
19646
19647 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19648 (opendir): Moved to adaint.c.
19649
19650 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19651 (Get_Directory): Fix wrong indexing.
19652 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19653 __gnat_getenv from env.c
19654 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19655 from env.c
19656
19657 * env.h, env.c: New file.
19658
19659 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19660 adaint.c by __gnat_getenv from env.c
19661
19662 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19663 adaint.c by __gnat_getenv from env.c
19664
19665 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19666 and gnatbind.
19667 Update dependencies.
19668
19669 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19670 Olivier Hainque <hainque@adacore.com>
19671 Eric Botcazou <ebotcazou@adacore.com>
19672
19673 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19674
19675 * gigi.h (value_factor_p): Add prototype and description, now public.
19676
19677 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19678 promotion for field with rep clause if the associated size was proven
19679 to be in error.
19680 Expand comments describing attempts to use a packable type.
19681 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19682 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19683 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19684 necessary since these are not different types and pointers may
19685 actually designate any subtype in this hierarchy.
19686 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19687 discriminants but put them into record only if not Unchecked_Union;
19688 pass flag to components_to_record showing Unchecked_Union.
19689 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19690 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19691 (components_to_record): New argument UNCHECKED_UNION.
19692 Remove special case code for Unchecked_Union and instead use main code
19693 with small changes.
19694
19695 PR ada/26096
19696 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19697 variable with the expression being built, only its inner field.
19698
19699 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19700 emit_sequence_entry_statements.
19701 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19702 (establish_gnat_vms_condition_handler): Move before
19703 Subprogram_Body_to_gnu.
19704 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19705 for a subprogram if it has a foreign convention or is exported.
19706 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19707 substituted for a CONST_DECL.
19708 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19709 Etype to assoc_to_constructor.
19710 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19711 discriminants of Unchecked_Union.
19712 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19713 don't need cluttering preprocessor directives.
19714 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19715 condition handler as current in the compiled function.
19716 (body_with_handlers_p): New function. Tell whether a given sequence of
19717 statements node is attached to a package or subprogram body and involves
19718 exception handlers possibly nested within inner block statements.
19719 (emit_sequence_entry_statements): New function, to emit special
19720 statements on entry of sequences when necessary. Establish GNAT
19721 condition handler in the proper cases for VMS.
19722 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19723 emit_sequence_entry_statements.
19724
19725 * utils2.c (find_common_type): If both input types are BLKmode and
19726 have a constant size, use the smaller one.
19727 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19728 the same.
19729
19730 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19731 units.
19732 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19733 (convert, case UNION_TYPE): Remove special treatment for unchecked
19734 unions.
19735
19736 PR ada/18659
19737 (update_pointer_to): Update variants of pointer types to unconstrained
19738 arrays by attaching the list of fields of the main variant.
19739
19740 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19741 Robert Dewar <dewar@adacore.com>
19742
19743 * a-exexpr.adb, a-exexpr-gcc.adb
19744 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19745 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19746 Remove code unused for exception propagation for the compiler itself
19747 from a-except.adb and update to still share separate packages.
19748
19749 * a-except.ads, a-except.adb: Ditto.
19750 Add comments that this version is now used only by the compiler and
19751 other basic tools. The full version that includes the Ada 2005 stuff
19752 is in separate files a-except-2005.ads/adb. The reason is that we do
19753 not want to cause bootstrap problems with compilers not recognizing
19754 Wide_Wide_String.
19755 Add exception reason code PE_Implicit_Return
19756 Add new exception reason code (Null Exception_Id)
19757
19758 * a-except-2005.adb, a-except-2005.ads: New files.
19759
19760 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19761
19762 * s-wchcon.adb: New file.
19763
19764 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19765 (traceback.o deps): Likewise.
19766 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19767 Activate build of GMEM instrumentation library on VMS targets.
19768 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19769 Use a-except-2005.ads/adb for all run-time library builds unless
19770 specified otherwise.
19771 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19772 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19773 Use s-parame.adb on all native platforms.
19774 Use s-parame-vxworks.adb on all vxworks platforms.
19775 Add env.c env.h in LIBGNAT_SRCS
19776 Add env.o in LIBGNAT_OBJS
19777 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19778 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19779 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19780 supports VxWorks 6 RTPs.
19781 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19782 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19783
19784 * types.h, types.ads (Terminate_Program): New exception
19785 Add comment on modifying multiple versions of a-except.adb when the
19786 table of exception reasons is modified.
19787 Add exception reason code PE_Implicit_Return
19788 Add new exception reason code (Null Exception_Id)
19789
19790 * clean.adb (Initialize): Get the target parameters before checking
19791 if target is OpenVMS. Move the OpenVMS specific code here from package
19792 body elaboration code.
19793
19794 2006-02-13 Thomas Quinot <quinot@adacore.com>
19795 Vincent Celier <celier@adacore.com>
19796 Robert Dewar <dewar@adacore.com>
19797
19798 * ali-util.adb (Get_File_Checksum): Update to account for change in
19799 profile of Initialize_Scanner.
19800
19801 * gprep.adb (Gnatprep): Update to account for change in profile of
19802 Initialize_Scanner.
19803 (Process_One_File): Same.
19804
19805 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19806 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19807 that behaviour using the new Unit information recorded in the source
19808 files table, rather than going through all units every time.
19809 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19810 (Get_Source_Unit): Same.
19811
19812 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19813 change in profile of Initialize_Scanner.
19814 (Prepare_To_Preprocess): Same.
19815
19816 * lib.ads: Fix typo in comment (templace -> template).
19817
19818 * prj-part.adb (Parse_Single_Project): Update to account for change in
19819 profile of Initialize_Scanner.
19820
19821 * scn.adb (Initialize_Scanner): Account for change in profile of
19822 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19823 Also record the association of the given Source_File_Index to the
19824 corresponding Unit_Number_Type.
19825
19826 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19827 procedure.
19828 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19829 Remove Unit formal for generic scanner: this formal
19830 is only relevant to Scn (the scanner instance used to parse Ada source
19831 files), not to other instances. Update comment accordingly.
19832 (Scan): Use new function Snames.Is_Keyword_Name.
19833
19834 * sinfo-cn.adb: Fix typo in comment.
19835
19836 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19837 Unit.
19838
19839 * sinput.ads (Source_File_Record): New component Unit, used to capture
19840 the unit identifier (if any) associated to a source file.
19841
19842 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19843 Unit in Source_File_Record.
19844
19845 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19846 in profile of Initialize_Scanner.
19847
19848 * scans.adb (Initialize_Ada_Keywords): New procedure
19849
19850 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19851 Ada keywords in the Namet table, without the need to call
19852 Initialize_Scanner.
19853
19854 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19855 (Is_Keyword_Name): New function
19856
19857 * snames.ads: Add subtype Configuration_Pragma_Names
19858 Add pragma Ada_2005 (synonym for Ada_05)
19859 (Is_Keyword_Name): New function
19860
19861 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19862
19863 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19864
19865 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19866 index.
19867
19868 * a-stwima.adb (To_Set): Add extra check when N = 0.
19869
19870 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19871
19872 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19873
19874 * s-parame-mingw.adb, s-parame-linux.adb,
19875 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19876
19877 * s-parame-vxworks.ads: Fix typo.
19878
19879 * s-parame-vxworks.adb: New file.
19880
19881 * s-parame.adb: Version now used by all native platforms.
19882 (Default_Stack_Size): Use 2 megs for default stack size and use
19883 __gl_default_stack_size when available.
19884 (Minimum_Stack_Size): Use 12K.
19885
19886 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19887 (Create_Task): Refine implementation taking advantage of the XP stack
19888 size support. On XP, we now create the thread using the flag
19889 STACK_SIZE_PARAM_IS_A_RESERVATION.
19890
19891 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19892
19893 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19894 XP and 0 on older Windows versions.
19895
19896 * interfac-vms.ads: Removed, no longer used.
19897
19898 2006-02-13 Matthew Heaney <heaney@adacore.com>
19899
19900 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19901 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19902 a-cohase.adb: All explicit raise statements now include an exception
19903 message.
19904
19905 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19906 (Update_Element_Preserving_Key): renamed op to just Update_Element.
19907 Explicit raise statements now include an exception message
19908
19909 * a-cihase.ads, a-cohase.ads: Removed comment.
19910
19911 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19912 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19913 a-szbzha.adb, a-szfzha.ads: New files.
19914
19915 2006-02-13 Matthew Heaney <heaney@adacore.com>
19916
19917 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19918 quicksort.
19919
19920 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19921
19922 * lang.opt: Wvariadic-macros: New option.
19923 Wold-style-definition: Likewise.
19924 Wmissing-format-attribute: Likewise.
19925
19926 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19927 -Wold-style-definition and -Wmissing-format-attribute.
19928
19929 2006-02-13 Robert Dewar <dewar@adacore.com>
19930
19931 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19932
19933 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19934
19935 2006-02-13 Nicolas Roche <roche@adacore.com>
19936
19937 * a-envvar.adb, a-envvar.ads: New files.
19938
19939 2006-02-13 Douglas Rupp <rupp@adacore.com>
19940
19941 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19942
19943 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19944
19945 2006-02-13 Pat Rogers <rogers@adacore.com>
19946
19947 * a-rttiev.adb, a-rttiev.ads: New files.
19948
19949 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19950
19951 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19952 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
19953
19954 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19955
19956 2006-02-13 Robert Dewar <dewar@adacore.com>
19957
19958 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19959 sem_case.adb: Minor code reorganization (not Present should be No)
19960
19961 2006-02-13 Geert Bosch <bosch@adacore.com>
19962 Gary Dismukes <dismukes@adacore.com>
19963
19964 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19965 0, since the lower bound of the actual string may be greater than one.
19966
19967 PR ada/20753
19968 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19969 layout is requested.
19970
19971 2006-02-13 Vincent Celier <celier@adacore.com>
19972
19973 * back_end.adb (Scan_Compiler_Arguments): Check if
19974 Search_Directory_Present is True and, if it is, add the argument in
19975 the source search directory path.
19976
19977 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19978 Search_Directory_Present to True.
19979
19980 2006-02-13 Joel Brobecker <brobecke@adacore.com>
19981
19982 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19983 volatile, to tell the compiler to preserve this variable at any level
19984 of optimization.
19985 (Gen_Versions_Ada): Temporarily work around codegen bug.
19986
19987 2006-02-13 Vincent Celier <celier@adacore.com>
19988
19989 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19990 gcc to link with option -shared-libgcc.
19991 (Gnatlink): Remove duplicate switches -shared-libgcc
19992
19993 2006-02-13 Robert Dewar <dewar@adacore.com>
19994
19995 * gnatvsn.ads (Current_Year): New constant, used to easily update
19996 copyright on all GNAT tools.
19997
19998 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19999 copyright notice.
20000
20001 2006-02-13 Robert Dewar <dewar@adacore.com>
20002
20003 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
20004 after hyphen (small aesthetic change useful for a range of numbers
20005 using ^-^.
20006 Suppress range checks for a couple of assignments which otherwise
20007 cause validity checks with validity checking turned on.
20008
20009 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
20010 Improvement in error message for object.
20011 (Rep_Item_Too_Late): Remove '!' in warning message.
20012
20013 2006-02-13 Robert Dewar <dewar@adacore.com>
20014 Eric Botcazou <ebotcazou@adacore.com>
20015
20016 * err_vars.ads: Suppress range checks for a couple of assignments
20017 which otherwise cause validity checks with validity checking turned on.
20018 Update comments.
20019
20020 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
20021 Make message unconditional if it is a warning.
20022 (Error_Msg_NEL): Always output warning messages.
20023 Suppress range checks for a couple of assignments which otherwise
20024 cause validity checks with validity checking turned on.
20025
20026 * errout.ads (Message Insertion Characters): Document that '!' is
20027 implied by '?' in error messages.
20028
20029 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
20030 (Gnat1drv): Use a goto to end of main subprogram instead of
20031 Exit_Program (E_Success) so that finalization can occur normally.
20032
20033 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20034
20035 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
20036 wrapped around.
20037
20038 2006-02-13 Vincent Celier <celier@adacore.com>
20039
20040 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
20041 Unchecked_Conversion functions.
20042 (Modification_Time): Use direct conversion of OS_Time to Calendar time
20043 when OpenVMS returns False.
20044
20045 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
20046 a-dirval.adb (OpenVMS): New Boolean function
20047
20048 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20049 Thomas Quinot <quinot@adacore.com>
20050
20051 * checks.adb (Build_Discriminant_Checks): If the expression being
20052 checks is an aggregate retrieve the values of its discriminants to
20053 generate the check, rather than creating a temporary and a reference
20054 to it.
20055 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
20056 (Install_Null_Excluding_Check): Ditto
20057 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
20058 not for the renamed object, so that the actual itype is attached in the
20059 proper context.
20060
20061 2006-02-13 Robert Dewar <dewar@adacore.com>
20062 Vincent Celier <celier@adacore.com>
20063
20064 * debug.adb: Eliminate numeric switches for binder/gnatmake
20065
20066 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
20067 switches for the compiler.
20068 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
20069 (Scan_Make_Switches): When failing with an illegal switch, output an
20070 error message with the full switch.
20071 Eliminate numeric switches for binder/gnatmake
20072
20073 * switch.ads, switch.adb (Bad_Switch): New procedure
20074
20075 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
20076 Remove 0-9 as debug flag character possibilities
20077 -d is now controlling the primary stack size when its value is a
20078 positive. Also add checks against invalid values, and support for kb,
20079 mb. Ditto for -D switch.
20080
20081 2006-02-13 Robert Dewar <dewar@adacore.com>
20082 Serguei Rybin <rybin@adacore.com>
20083
20084 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
20085 save/restore routines.
20086 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20087 were not always properly handled previously.
20088 Since we are changing the tree format anyway, also get rid of the
20089 junk obsolete Immediate_Errors flag.
20090 (Tree_Read): Change the way of reading Tree_Version_String - now we
20091 read the version string from the tree even if its length is not the
20092 same as the length of the version string computed from Gnatvsn.
20093 (Search_Directory_Present): New Boolean flag for the compiler.
20094 Define Tree_Version_String as a dynamic string.
20095 (Default_Stack_Size): new variable, used to handle switch -d.
20096
20097 * par-prag.adb:
20098 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
20099 only for main unit.
20100 Add pragma Ada_2005 (synonym for Ada_05)
20101 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20102 were not always properly handled previously.
20103
20104 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
20105 explicit Ada_95 to Ada_2005.
20106
20107 2006-02-13 Javier Miranda <miranda@adacore.com>
20108 Robert Dewar <dewar@adacore.com>
20109 Ed Schonberg <schonberg@adacore.com>
20110
20111 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
20112 against errors in the source program: a private types for which the
20113 corresponding full type declaration is missing and pragma CPP_Virtual
20114 is used.
20115 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
20116 (Is_Known_Null): New flag
20117 (Has_Pragma_Pure): New flag
20118 (No_Return): Present in all entities, set only for procedures
20119 (Is_Limited_Type): A type whose ancestor is an interface is limited if
20120 explicitly declared limited.
20121 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
20122 entities. Only used for component marked Is_Tag. If present it stores
20123 the Offset_To_Top function used to provide this value in tagged types
20124 whose ancestor has discriminants.
20125
20126 * exp_ch2.adb: Update status of new Is_Known_Null flag
20127
20128 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
20129
20130 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
20131 the categorization sense if Is_Pure was set by pragma Pure_Function.
20132
20133 2006-02-13 Quentin Ochem <ochem@adacore.com>
20134 Olivier Hainque <hainque@adacore.com>
20135
20136 * bindusg.adb: Updated documentation for -d and -D switches.
20137
20138 * raise.h (__gnat_set_globals): added new parameter for
20139 Default_Stack_Size.
20140
20141 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
20142 (__gnat_handle_vms_condition): Adjust context before raise.
20143 (__gnat_install_handler): Restore the global vector setup for GCC
20144 versions before 3.4, as the frame based circtuitry is not available
20145 in this case.
20146 (__gnat_set_globals): added a parameter default_stack_size
20147 (__gl_default_stack_size): new variable.
20148
20149 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20150
20151 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
20152 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
20153 does not exist in the Ada RM.
20154 (Compatible_Int_Bounds): Determine whether two integer range bounds
20155 are of equal length and have the same start and end values.
20156 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
20157 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
20158 aggregate when it is part of an object declaration.
20159 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
20160 constrains discriminants of its parent, add explicitly the discriminant
20161 constraints of the ancestor by retrieving them from the
20162 stored_constraint of the parent.
20163
20164 2006-02-13 Robert Dewar <dewar@adacore.com>
20165
20166 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
20167 attribute Mechanism_Code is applied to renamed subprogram, modify
20168 prefix to point to base subprogram.
20169 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20170
20171 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20172 renamed subprograms so that the front-end must replace the prefix
20173 appropriately.
20174
20175 2006-02-13 Javier Miranda <miranda@adacore.com>
20176 Gary Dismukes <dismukes@adacore.com>
20177
20178 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20179 availability of RE_Interface_Tag.
20180 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20181 (Freeze_Record_Type): Do not generate the tables associated with
20182 timed and conditional dispatching calls through synchronized
20183 interfaces if compiling under No_Dispatching_Calls restriction.
20184 When compiling for Ada 2005, for a nonabstract
20185 type with a null extension, call Make_Controlling_Function_Wrappers
20186 and insert the wrapper function declarations and bodies (the latter
20187 being appended as freeze actions).
20188 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20189 predefined primitives associated with timed and conditional
20190 dispatching calls through synchronized interfaces if we are
20191 compiling under No_Dispatching_Calls.
20192 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20193 service is available before generating a call.
20194 (Make_Controlling_Function_Wrappers): New procedure.
20195 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20196 access-to-limited-interfaces because they can be used to reference
20197 tasks that implement such limited interface.
20198 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20199 procedure spec and body of the Offset_To_Top function that is generated
20200 when the parent of a type with discriminants has secondary dispatch
20201 tables.
20202 (Init_Secondary_Tags): Handle the case in which the parent of the type
20203 containing secondary dispatch tables has discriminants to generate the
20204 correct arguments to call Set_Offset_To_Top.
20205 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20206
20207 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20208 Add Wide_[Wide_]Expanded_Name.
20209 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20210 the same functionality of Get_Prim_Op_Address but applied to predefined
20211 primitive operations because the pointers to the predefined primitives
20212 are now saved in a separate table.
20213 (Parent_Size): Modified to get access to the separate table of primitive
20214 operations or the parent type.
20215 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20216 functionality of Set_Prim_Op_Address but applied to predefined primitive
20217 operations.
20218 (Set_Signature): New subprogram used to store the signature of a DT.
20219 (Displace): If the Offset_To_Top value is not static then call the
20220 function generated by the expander to get such value; otherwise use
20221 the value stored in the table of interfaces.
20222 (Offset_To_Top): The type of the actual has been changed to Address to
20223 give the correct support to tagged types with discriminants. In this
20224 case this value is stored just immediately after the tag field.
20225 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20226 offset_to_top value is static and hence pass this value to the run-time
20227 to store it in the table of interfaces, or else if this value is dynamic
20228 and then pass to the run-time the address of a function that is
20229 generated by the expander to provide this value for each object of the
20230 type.
20231
20232 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20233 (Default_Prim_Op_Count): New entity
20234 (Get_Predefined_Prim_Op_Address): New entity
20235 (Set_Predefined_Prim_Op_Address): New entity
20236 (RE_Set_Signature): New entity
20237
20238 2006-02-13 Thomas Quinot <quinot@adacore.com>
20239 Ed Schonberg <schonberg@adacore.com>
20240
20241 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20242 Make_Adjust_Call done for a newly-allocated object.
20243
20244 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20245 in a subprogram are wrapped in a cleanup block, indicate that the
20246 subprogram contains an inner block with an exception handler.
20247 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20248 Adjust call is for a newly-allocated object. In that case we must not
20249 assume that the finalization list chain pointers are correct (since they
20250 come from a bit-for-bit copy of the original object's pointers) so if
20251 the attach level would otherwise be zero (no change), we set it to 4
20252 instead to cause the pointers to be reset to null.
20253
20254 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20255 reset chain pointers to null.
20256
20257 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20258
20259 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20260 string, and the context requires a loop for the assignment (e.g.
20261 because the left-hand side is packed), generate a unique name for the
20262 temporary that holds the string, to prevent spurious name clashes.
20263
20264 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20265 Javier Miranda <miranda@adacore.com>
20266 Robert Dewar <dewar@adacore.com>
20267 Gary Dismukes <dismukes@adacore.com>
20268
20269 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20270 return unconstrained arrays.
20271 Update comments.
20272 (Expand_Call): An indirect call through an access parameter of a
20273 protected operation is not a protected call.
20274 Add circuit to raise CE in Ada 2005 mode following call
20275 to Raise_Exception.
20276 (Register_DT_Entry): Do nothing if
20277 the run-time does not give support to abstract interfaces.
20278 (Freeze_Subprogram): In case of dispatching operations, do not generate
20279 code to register the operation in the dispatch table if the source
20280 is compiled with No_Dispatching_Calls.
20281 (Register_Predefined_DT_Entry): Generate code that calls the new
20282 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20283 Set_Prim_Op_Address.
20284
20285 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20286 on array assignments if the right-hand side is a function call that has
20287 been inlined. Check is performed on the assignment in the block.
20288 (Process_Bounds): If bounds and range are overloaded, apply preference
20289 rule for root operations to disambiguate, and diagnose true ambiguity.
20290 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20291 a tag-indeterminate right-hand side even when Expander_Active is True.
20292 Needed to ensure that dispatching calls to T'Input are allowed and
20293 get the tag of the target class-wide object.
20294
20295 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20296 an inherited primitive operation that already overrides several
20297 abstract interface primitives. For transitivity, the new entity must
20298 also override all the abstract interface primitives covered by the
20299 inherited overriden primitive.
20300 Emit warning if new entity differs from homograph in same scope only in
20301 that one has an access parameter and the other one has a parameter of
20302 a general access type with the same designated type, at the same
20303 position in the signature.
20304 (Make_Inequality_Operator): Use source locations of parameters and
20305 subtype marks from corresponding equality operator when creating the
20306 tree structure for the implicit declaration of "/=". This does not
20307 change anything in behaviour except that the decoration of the
20308 components of the subtree created for "/=" allows ASIS to get the
20309 string images of the corresponding identifiers.
20310 (Analyze_Return_Statement): Remove '!' in warning message.
20311 (Check_Statement_Sequence): Likewise.
20312 (Analyze_Subprogram_Body): For an access parameter whose designated type
20313 is an incomplete type imported through a limited_with clause, use the
20314 type of the corresponding formal in the body.
20315 (Check_Returns): Implicit return in No_Return procedure now raises
20316 Program_Error with a compile time warning, instead of beging illegal.
20317 (Has_Single_Return): Function returning unconstrained type cannot be
20318 inlined if expression in unique return statement is not an identifier.
20319 (Build_Body_To_Inline): It is possible to inline a function call that
20320 returns an unconstrained type if all return statements in the function
20321 return the same local variable. Subsidiary procedure Has_Single_Return
20322 verifies that the body conforms to this restriction.
20323
20324 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20325 same type, and one of them is of an anonymous access type, convert
20326 the other operand to it, so that this is a valid binary operation for
20327 gigi.
20328 (Resolve_Type_Conversion): Handle subtypes of protected types and
20329 task types when accessing to the corresponding record type.
20330 (Resolve_Allocator): Add '\' in 2-line warning message.
20331 Remove '!' in warning message.
20332 (Resolve_Call): Add '\' in 2-line warning message.
20333 (Valid_Conversion): Likewise.
20334 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20335 resulting type may be an access type with an implicit dereference.
20336 Obtain the proper component from the designated type.
20337 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20338 given by an expanded name with prefix Standard, when the operands are
20339 of an anonymous access type.
20340 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20341 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20342 prefix of the expression is not of an incomplete type. Allows full
20343 diagnoses of all semantic errors.
20344 (Resolve_Actuals): If the actual is an allocator whose directly
20345 designated type is a class-wide interface we build an anonymous
20346 access type to use it as the type of the allocator. Later, when
20347 the subprogram call is expanded, if the interface has a secondary
20348 dispatch table the expander will add a type conversion to force
20349 the displacement of the pointer.
20350 (Resolve_Call): If a function that returns an unconstrained type is
20351 marked Inlined_Always and inlined, the call will be inlined and does
20352 not require the creation of a transient scope.
20353 (Check_Direct_Boolean_Op): Removed
20354 (Resolve_Comparison_Op): Remove call to above
20355 (Resolve_Equality_Op): Remove call to above
20356 (Resolve_Logical_Op): Inline above, since this is only call.
20357 (Valid_Conversion): Handle properly conversions between arrays of
20358 convertible anonymous access types.
20359
20360 PR ada/25885
20361 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20362 the literal in an unchecked conversion, because GCC 4.x needs a static
20363 value for a string bound.
20364
20365 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20366 Hristian Kirtchev <kirtchev@adacore.com>
20367
20368 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20369 components of the corresponding record, take into account component
20370 definitions that are access definitions.
20371 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20372 procedure is not considered a dispatching call and will be expanded
20373 properly.
20374
20375 2006-02-13 Javier Miranda <miranda@adacore.com>
20376
20377 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20378 controlling argument of the dispatching call is an abstract interface
20379 class-wide type then we use it directly.
20380 Check No_Dispatching_Calls restriction.
20381 (Default_Prim_Op_Position): Remove the code that looks for the last
20382 entity in the list of aliased subprograms. This code was wrong in
20383 case of renamings.
20384 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20385 when the source is compiled with the No_Dispatching_Calls restriction.
20386 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20387 if we are compiling with restriction No_Dispatching_Calls.
20388 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20389 subprograms if we are compiling under No_Dispatching_Calls restriction.
20390 (Make_DT): Generate a dispatch table with a single dummy entry if
20391 we are compiling with the No_Dispatching_Calls restriction. In
20392 addition, in this case we don't generate code that calls to the
20393 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20394 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20395 of this subprogram if compiling with the No_Dispatching_Calls
20396 restriction.
20397 (Expand_Type_Conversion): Instead of using the actual parameter,
20398 the argument passed as parameter to the conversion function was
20399 erroneously referenced by the expander.
20400 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20401 Set_Predefined_Primitive_Op_Address and Set_Signature.
20402 (Expand_Dispatching_Call): Generate call to
20403 Get_Predefined_Prim_Op_Address for predefined primitives.
20404 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20405 predefined primitives.
20406 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20407 primitives we reserve one dummy entry to ensure that the tag does not
20408 point to some memory that is associated with some other object. In
20409 addition, remove all the old code that generated the assignments
20410 associated with the signature of the dispatch table and replace them
20411 by a call to the new subprogram Set_Signature.
20412 (Set_All_DT_Position): Change the algorithm because now we have a
20413 separate dispatch table associated with predefined primitive operations.
20414 (Expand_Interface_Conversion): In case of non-static offset_to_top
20415 add explicit dereference to get access to the object after the call
20416 to displace the pointer to the object.
20417 (Expand_Interface_Thunk): Modify the generation of the actual used
20418 in the calls to the run-time function Offset_To_Top to fulfil its
20419 new interface.
20420 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20421
20422 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20423
20424 * exp_dist.adb (Copy_Specification): For access parameters, copy
20425 Null_Exclusion flag, which will have been set for stream subprograms
20426 in Ada2005 mode.
20427
20428 2006-02-13 Pascal Obry <obry@adacore.com>
20429
20430 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20431 previous implementation was using the C runtime spawnve routine but
20432 the corresponding wait was using directly the Win32 API. This was
20433 causing some times a lock when waiting for an event using
20434 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20435 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20436 API fixes this problem.
20437
20438 2006-02-13 Robert Dewar <dewar@adacore.com>
20439
20440 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20441 call.
20442
20443 2006-02-13 Thomas Quinot <quinot@adacore.com>
20444
20445 * exp_pakd.ads: Fix typos in comments.
20446
20447 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20448 array reference that is an explicit dereference, mark the converted
20449 (packed) array reference as analyzed to prevent a forthcoming
20450 reanalysis from resetting its type to the original (non-packed) array
20451 type.
20452
20453 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20454 Javier Miranda <miranda@adacore.com>
20455 Eric Botcazou <ebotcazou@adacore.com>
20456
20457 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20458 Is_Predefined_Primitive_Operation): When
20459 searching for the predefined equality operator, verify that operands
20460 have the same type.
20461 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20462 for the last entity in the list of aliased subprograms. This code
20463 was wrong in case of renamings.
20464 (Set_Renamed_Subprogram): New procedure
20465 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20466 Exp_Type constant computed when entering this subprogram.
20467 (Known_Null): New function
20468 (OK_To_Do_Constant_Replacement): New function
20469 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20470 (Side_Effect_Free): An attribute reference 'Input is not free of
20471 side effect, unlike other attributes that are functions. (from code
20472 reading).
20473 (Remove_Side_Effects): Expressions that involve packed arrays or records
20474 are copied at the point of reference, and therefore must be marked as
20475 renamings of objects.
20476 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20477 not a dispatching operation.
20478
20479 PR ada/18819
20480 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20481 elementary types in all cases.
20482
20483 2006-02-13 Javier Miranda <miranda@adacore.com>
20484
20485 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20486 task types when accessing to the corresponding record type.
20487 Remove '!' in warning message.
20488
20489 2006-02-13 Olivier Hainque <hainque@adacore.com>
20490
20491 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20492 to avoid useless and space inefficient overalignments on targets where
20493 Max_Alignment is larger than 16.
20494
20495 2006-02-13 Pascal Obry <obry@adacore.com>
20496
20497 * g-catiio.adb (Sec_Number): New type used to compute the number of
20498 seconds since 1-1-1970.
20499 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20500 negative numbers (years, months...) it is better to have a Natural here.
20501 Code clean-up.
20502 (Image) [Number]: Change parameter from Long_Integer to Number.
20503 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20504 overflow for dates past year 2038.
20505
20506 2006-02-13 Matthew Heaney <heaney@adacore.com>
20507
20508 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20509 Constraint_Error.
20510
20511 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20512
20513 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20514 native platforms.
20515 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20516 finalization can occur normally.
20517
20518 2006-02-13 Vincent Celier <celier@adacore.com>
20519
20520 * gnatcmd.adb (Rules_Switches): New table
20521 (Add_To_Rules_Switches): New procedure
20522 (GNATCmd): For command CHECK, put all options following "-rules" in the
20523 Rules_Switches table. Append these -rules switches after the -cargs
20524 switches.
20525
20526 2006-02-13 Robert Dewar <dewar@adacore.com>
20527
20528 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20529 These two cases were generating incorrect output, and if this unit
20530 was built with checks on, generated a discriminant mismatch constraint
20531 error.
20532
20533 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20534 Robert Dewar <dewar@adacore.com>
20535
20536 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20537 view is an array type, indicate the component type as well, for
20538 navigation purposes.
20539 (Generate_Reference): Don't consider array ref on LHS to be a case
20540 of violating pragma Unreferenced.
20541 Do not give Ada 2005 warning except on real reference.
20542
20543 2006-02-13 Vincent Celier <celier@adacore.com>
20544
20545 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20546 main source, add switch -mdebug-main=_ada_ so that the executable can
20547 be debugged by the standard VMS debugger.
20548 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20549 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20550 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20551 of the last source, as the binding and linking phases are never
20552 performed.
20553 Set all executable obsolete when rebuilding a library.
20554
20555 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20556 options.
20557
20558 2006-02-13 Javier Miranda <miranda@adacore.com>
20559
20560 PR ada/23973
20561 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20562 code to improve the error message reported when the program has
20563 declarations of abstract interface types and it is not compiled with
20564 the -gnat05 switch.
20565 (P_Access_Definition): Reorganize the code to improve the error
20566 message reported when the new Ada 2005 syntax for anonymous
20567 access types is used and the program is not compiled with the
20568 -gnat05 switch.
20569
20570 2006-02-13 Robert Dewar <dewar@adacore.com>
20571
20572 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20573 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20574 (MODE_IN)
20575
20576 2006-02-13 Javier Miranda <miranda@adacore.com>
20577
20578 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20579 against source containing syntax errors.
20580
20581 2006-02-13 Vincent Celier <celier@adacore.com>
20582
20583 * prj.adb (Reset): Initialize the first element of table Namings with
20584 the standard naming data.
20585
20586 2006-02-13 Vincent Celier <celier@adacore.com>
20587
20588 * prj.ads (Error_Warning): New enumeration type
20589
20590 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20591 unknown, use the location of the project to report the error.
20592 (When_No_Sources): New global variable
20593 (Report_No_Ada_Sources): New procedure
20594 (Check): New parameter When_No_Sources. Set value of global variable
20595 When_No_Sources,
20596 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20597 (Get_Sources_From_File): Ditto
20598 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20599 and the file name.
20600
20601 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20602 Call Prj.Proc.Process with parameter When_No_Sources.
20603
20604 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20605 Call Recursive_Check with parameter When_No_Sources.
20606 (Recursive_Check): New parameter When_No_Sources. Call itself and
20607 Prj.Nmsc.Check with parameter When_No_Sources.
20608 (Process): New parameter When_No_Sources. Call Check with parameter
20609 When_No_Sources.
20610 (Copy_Package_Declarations): New procedure to copy renamed parameters
20611 and setting the location of the declared attributes to the location
20612 of the renamed package.
20613 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20614 packages.
20615
20616 2006-02-13 Vincent Celier <celier@adacore.com>
20617
20618 * prj-makr.adb (Make): Preserve the comments from the original project
20619 file.
20620 When removing nodes (attributes Source_Dirs, Source_Files,
20621 Source_List_File and package Naming), save the comments and attach the
20622 saved comments to the newly created nodes.
20623 Do not add a with clause for the naming package if one already exists.
20624
20625 2006-02-13 Javier Miranda <miranda@adacore.com>
20626 Gary Dismukes <dismukes@adacore.com>
20627 Robert Dewar <dewar@adacore.com>
20628
20629 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20630
20631 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20632 aliased entities to look for the overriden abstract interface
20633 subprogram.
20634 (Is_Interface_Subprogram): Complete documentation.
20635 (Check_Dispatching_Operation): Do not generate code to register the
20636 operation in the dispatch table if the source is compiled with
20637 restriction No_Dispatching_Calls.
20638 (Override_Dispatching_Operation): Check for illegal attempt to override
20639 No_Return procedure with procedure that is not No_Return
20640 (Check_Dispatching_Call): Suppress the check for an abstract operation
20641 when the original node of an actual is a tag-indeterminate attribute
20642 call, since the attribute, which must be 'Input, can never be abstract.
20643 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20644 call to the Input attribute (even when rewritten).
20645 (Propagate_Tag): Augment comment to indicate the possibility of a call
20646 to an Input attribute.
20647
20648 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20649 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20650
20651 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20652 No_Wide_Characters is no longer partition-wide
20653 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20654 rather than GNAT
20655
20656 2006-02-13 Douglas Rupp <rupp@adacore.com>
20657
20658 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20659
20660 2006-02-13 Javier Miranda <miranda@adacore.com>
20661
20662 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20663 handles default-initialized components to keep separate the management
20664 of this feature but also avoid the unrequired resolution and
20665 expansion of components that do not have partially initialized
20666 values.
20667 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20668 (Check_Bounds): Likewise.
20669 (Check_Length): Likewise.
20670
20671 2006-02-13 Javier Miranda <miranda@adacore.com>
20672 Ed Schonberg <schonberg@adacore.com>
20673
20674 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20675 abstract interface type call analyze_and_resolve to expand the type
20676 conversion into the corresponding displacement of the
20677 reference to the base of the object.
20678 (Eval_Attribute, case Width): For systems where IEEE extended precision
20679 is supported, the maximum exponent occupies 4 decimal digits.
20680 (Accessibility_Message): Add '\' in 2-line warning message.
20681 (Resolve_Attribute): Likewise.
20682 (case Attribute_Access): Significantly revise checks
20683 for illegal access-to-subprogram Access attributes to properly enforce
20684 the rules of 3.10.2(32/2).
20685 Diagnose use of current instance with an illegal attribute.
20686
20687 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20688 to a Node_Id.
20689 (Enclosing_Generic_Unit): New function to return a node's innermost
20690 enclosing generic declaration node.
20691 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20692 (Type_Access_Level): The accessibility level of anonymous acccess types
20693 associated with discriminants is that of the current instance of the
20694 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20695 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20696 (Kill_Current_Values_For_Entity): New function
20697 (Enter_Name): Change formal type to Entity_Id
20698
20699 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20700 Ed Schonberg <schonberg@adacore.com>
20701 Gary Dismukes <dismukes@adacore.com>
20702
20703 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20704 Analyze_Compilation_Unit.
20705 Detect and warn on redundant with clauses detected in a package spec
20706 and/or body when -gnatwr is used.
20707 (Analyze_Context): Analyze config pragmas before other items
20708 (Install_Context_Items): Don't analyze config pragmas here
20709 (Install_Limited_Withed_Unit): Set limited entity of package in
20710 with_clause so that cross-reference information or warning messages on
20711 unused packages can be properly generated
20712 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20713 has Error_Posted set. Prevent infinite loops in illegal programs.
20714 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20715 to the point of the error test requiring the current unit to be private.
20716 This ensures that private with clauses are not exempted from the basic
20717 checking for being a descendant of the same library unit parent as a
20718 withed private descendant unit.
20719 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20720 handle private with clauses properly, as well as to account for cases
20721 where the withed unit is a public descendant of a private ancestor
20722 (in which case the current unit must be a descendant of the private
20723 ancestor's parent). The spec comments were updated accordingly. Also,
20724 the old error message in this subprogram was replaced with error
20725 messages that mirror the errors tested and reported by
20726 Check_Private_Child_Unit.
20727 Parameter and variable names improved for readability.
20728 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20729 private as the precondition for calling
20730 Check_Private_Limited_Withed_Unit since that subprogram has been
20731 revised to test public units as well as private units.
20732
20733 2006-02-13 Thomas Quinot <quinot@adacore.com>
20734 Robert Dewar <dewar@adacore.com>
20735 Ed Schonberg <schonberg@adacore.com>
20736 Javier Miranda <miranda@adacore.com>
20737
20738 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20739 that Scope_Stack.First = 1.
20740 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20741 were not always properly handled previously.
20742 (Formal_Entity): Complete rewrite, to handle properly some complex case
20743 with multiple levels of parametrization by formal packages.
20744 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20745 to the corresponding derived type declaration for proper semantics.
20746
20747 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20748 (Check_Component): Enforce restriction on components of
20749 unchecked_unions: a component in a variant cannot contain tasks or
20750 controlled types.
20751 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20752 conform to AI-216.
20753 Add pragma Ada_2005 (synonym for Ada_05)
20754 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20755 were not always properly handled previously.
20756 Document that pragma Propagate_Exceptions has no effect
20757 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20758 (Set_Convention_From_Pragma): Check that if a convention is
20759 specified for a dispatching operation, then it must be
20760 consistent with the existing convention for the operation.
20761 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20762 longer required to specify an vtable-ptr component in the record. For
20763 compatibility reasons we leave the support for the previous definition.
20764 (Analyze_Pragma, case No_Return): Allow multiple arguments
20765
20766 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20767 non-overrideen inherited operation with a controlling result as
20768 illegal only its implicit declaration comes from the derived type
20769 declaration of its result's type.
20770 (Check_Possible_Deferred_Completion): Relocate the object definition
20771 node of the subtype indication of a deferred constant completion rather
20772 than directly analyzing it. The analysis of the generated subtype will
20773 correctly decorate the GNAT tree.
20774 (Record_Type_Declaration): Check whether this is a declaration for a
20775 limited derived record before analyzing components.
20776 (Analyze_Component_Declaration): Diagnose record types not explicitly
20777 declared limited when a component has a limited type.
20778 (Build_Derived_Record_Type): Code reorganization to check if some of
20779 the inherited subprograms of a tagged type cover interface primitives.
20780 This check was missing in case of a full-type associated with a private
20781 type declaration.
20782 (Constant_Redeclaration): Check that the subtypes of the partial and the
20783 full view of a constrained deferred constant statically match.
20784 (Mentions_T): A reference to the current type in an anonymous access
20785 component declaration must be an entity name.
20786 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20787 class_wide type to refer to full type, not to the incomplete one.
20788 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20789 available. Required to give support to the certified run-time.
20790 (Analyze_Component_Declaration): In case of anonymous access components
20791 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20792 (Process_Discriminants): For an access discriminant, use the
20793 discriminant specification as the associated_node_for_itype, to
20794 simplify accessibility checks.
20795
20796 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20797 Javier Miranda <miranda@adacore.com>
20798
20799 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20800 abstract interpretations on an operator, remove interpretations that
20801 yield Address or a type derived from it, if one of the operands is an
20802 integer literal.
20803 (Try_Object_Operation.Try_Primitive_Operation,
20804 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20805 location when creating the new reference to a primitive or class-wide
20806 operation as a part of rewriting a subprogram call.
20807 (Try_Primitive_Operations): If context requires a function, collect all
20808 interpretations after the first match, because there may be primitive
20809 operations of the same type with the same profile and different return
20810 types. From code reading.
20811 (Try_Primitive_Operation): Use the node kind to choose the proper
20812 operation when a function and a procedure have the same parameter
20813 profile.
20814 (Complete_Object_Operation): If formal is an access parameter and prefix
20815 is an object, rewrite as an Access reference, to match signature of
20816 primitive operation.
20817 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20818 by an expanded name with prefix Standard, when the operands are of an
20819 anonymous access type.
20820 (Remove_Abstract_Operations): If the operation is abstract because it is
20821 inherited by a user-defined type derived from Address, remove it as
20822 well from the set of candidate interpretations of an overloaded node.
20823 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20824 types.
20825
20826 2006-02-13 Bob Duff <duff@adacore.com>
20827
20828 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20829 redundant use clauses.
20830 In particular, if the scope of two use clauses overlaps, but one is not
20831 entirely included in the other, we should not warn. This can happen
20832 with nested packages.
20833 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20834 reported errors. The bug was reported when the compiler was built
20835 with assertions enabled.
20836 (Find_Type): If the node is a 'Class reference and the prefix is a
20837 synchronized type without a corresponding record, return the type
20838 itself.
20839
20840 2006-02-13 Javier Miranda <miranda@adacore.com>
20841
20842 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20843 if this is the full-declaration associated with a private declaration
20844 that implement interfaces, then the private type declaration must be
20845 limited.
20846 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20847 as aliased. The use of the 'access attribute is not available for such
20848 object (for this purpose the object should be explicitly marked as
20849 aliased, but being an anonymous type this is not possible).
20850
20851 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20852 Robert Dewar <dewar@adacore.com>
20853
20854 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20855 compilation unit is an elaboration scope.
20856 (Add_Task_Proc): Add '\' in 2-line warning message.
20857 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20858
20859 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20860 Javier Miranda <miranda@adacore.com>
20861
20862 * sem_type.adb (Write_Overloads): Improve display of candidate
20863 interpretations.
20864 (Add_One_Interp): Do not add to the list of interpretations aliased
20865 entities corresponding with an abstract interface type that is an
20866 immediate ancestor of a tagged type; otherwise we have a dummy
20867 conflict between this entity and the aliased entity.
20868 (Disambiguate): The predefined equality on universal_access is not
20869 usable if there is a user-defined equality with the proper signature,
20870 declared in the same declarative part as the designated type.
20871 (Find_Unique_Type): The universal_access equality operator defined under
20872 AI-230 does not cover pool specific access types.
20873 (Covers): If one of the types is a generic actual subtype, check whether
20874 it matches the partial view of the other type.
20875
20876 2006-02-13 Thomas Quinot <quinot@adacore.com>
20877
20878 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20879 line. This is necessary to allow In_Extended_Main_Unit to provide
20880 correct results for itypes while writing out expanded source.
20881 (Close_File): No need to update the source_index_table here since it's
20882 now done for each line.
20883
20884 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20885 Robert Dewar <dewar@adacore.com>
20886
20887 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20888 preserve the source unit where the itype is declared, and prevent a
20889 backend abort.
20890 (Note_Implicit_Run_Time_Call): New procedure
20891 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20892 E_Subprogram_Type)
20893
20894 * sprint.ads: Document use of $ for implicit run time routine call
20895
20896 2006-02-13 Quentin Ochem <ochem@adacore.com>
20897
20898 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20899 task name.
20900
20901 2006-02-13 Bob Duff <duff@adacore.com>
20902
20903 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20904 Scan_Unsigned, so we do not scan leading blanks and sign twice.
20905 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20906 raise Constraint_Error.
20907
20908 * s-vallli.adb (Scan_Long_Long_Integer): Call
20909 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20910 do not scan leading blanks and sign twice.
20911 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20912 raise Constraint_Error.
20913
20914 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20915 Scan_Long_Long_Unsigned): Split out most of the processing from
20916 Scan_Long_Long_Unsigned out into
20917 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20918 This prevents scanning leading blanks and sign twice.
20919 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20920 See RM-3.5(44).
20921
20922 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20923 out most of the processing from Scan_Unsigned out into
20924 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20925 This prevents scanning leading blanks and sign twice.
20926
20927 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20928 use with Modular'Value attribute.
20929 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20930 attribute.
20931
20932 2006-02-13 Robert Dewar <dewar@adacore.com>
20933
20934 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20935
20936 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20937
20938 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20939 (PPC VxWorks): Likewise.
20940 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20941 (forced_callee): Make non-inlinable and non-pure.
20942 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20943
20944 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20945 Ben Brosgol <brosgol@adacore.com>
20946 Robert Dewar <dewar@adacore.com>
20947
20948 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20949 support.
20950 Document that gnatbind -M option is for cross environments only.
20951 Added description of using gnatmem to trace gnat rtl allocs and deallocs
20952 Add note on use of $ to label implicit run time calls
20953 Add documentation for -gnatyI (check mode IN)
20954 Updated chapter on compatibility with HP Ada
20955 VMS-oriented edits.
20956 Ran spell and corrected errors
20957 Add documentation for gnatbind -d and rework documentation of -D
20958 at the same time.
20959 Add subprogram/data elimination section.
20960 Minor editing of annex A.
20961 Add section for gnatcheck.
20962 Add documentation for restriction No_Dispatching_Calls
20963 Add documentation for pragma Ada_2005
20964 Remove mention of obsolete pragma Propagate_Exceptions
20965 Document that pragma Unreferenced can appear after DO in ACCEPT
20966 Clarify Pure_Function for library level units
20967 Mention Max/Min in connection with No_Implicit_Conditionals
20968 No_Wide_Characters restriction is no longer partition-wide
20969 Add a nice example for Universal_Literal_String attribute
20970 Document that pragma No_Return can take multiple arguments
20971
20972 * ug_words: Added entry for gnatcheck
20973
20974 * g-ctrl_c.ads (Install_Handler): Enhance comments
20975
20976 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20977
20978 * g-trasym.ads: Add documentation on how to do off line symbolic
20979 traceback computation.
20980
20981 * s-fatgen.adb: Add comments for Unaligned_Valid
20982
20983 * stand.ads: Fix typo in comment
20984
20985 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20986
20987 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20988
20989 2006-02-06 Roger Sayle <roger@eyesopen.com>
20990
20991 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20992
20993 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20994
20995 PR target/25926
20996 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20997 implementation that calls __main.
20998
20999 2006-01-25 Peter O'Gorman <peter@pogma.com>
21000
21001 PR bootstrap/25859
21002 * Makefile.in (GCC_LINK): Remove quotes.
21003 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
21004 or $(GCC_LINK).
21005
21006 (powerpc-darwin): Pass -shared-libgcc when building shared library.
21007
21008 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21009
21010 PR ada/24533
21011 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
21012
21013 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21014
21015 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
21016
21017 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21018
21019 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
21020 needed.
21021
21022 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21023
21024 * Make-lang.in: Update dependencies
21025
21026 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21027
21028 * Make-lang.in: Add rule for ada/exp_sel.o
21029
21030 2005-12-12 Arnaud Charlet <charlet@adacore.com>
21031
21032 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
21033
21034 2005-12-09 Arnaud Charlet <charlet@adacore.com>
21035
21036 * gnatvsn.ads (Library_Version): Bump to version 4.2
21037 (ASIS_Version_Number): Bumped.
21038
21039 2005-12-09 Doug Rupp <rupp@adacore.com>
21040
21041 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
21042 Ada bind file prefix on VMS from b$ to b__.
21043 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
21044 __init.
21045
21046 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
21047 Targparm.OpenVMS_On_Target.
21048 (Object_Suffix): Initialize with target object suffix.
21049 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
21050
21051 * butil.adb: Change some Hostparm.OpenVMS checks to
21052 Targparm.OpenVMS_On_Target.
21053
21054 * clean.adb: Change some Hostparm.OpenVMS checks to
21055 Targparm.OpenVMS_On_Target.
21056 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
21057 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
21058 Ada bind file prefix on VMS from b$ to b__.
21059
21060 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
21061 --GCC so that Get_Target_Parameters can find system.ads.
21062 (Gnatlink): Call Get_Target_Parameters in mainline.
21063 Initialize standard packages for Targparm.
21064 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21065 (Process_Args): Also Check for object files with target object
21066 extension.
21067 (Make_Binder_File_Names): Create with target object extension.
21068 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
21069 to b__.
21070
21071 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
21072 Targparm.OpenVMS_On_Target.
21073 ({declaration},Build_Library,Check_Library): Change Ada bind file
21074 prefix on VMS from b$ to b__.
21075
21076 * osint-b.adb: Change some Hostparm.OpenVMS checks to
21077 Targparm.OpenVMS_On_Target.
21078 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
21079 b__.
21080
21081 * targext.c: New file.
21082
21083 * Makefile.in: add support for vxworks653 builds
21084 (../../vxaddr2line): gnatlink with targext.o.
21085 (TOOLS_LIBS): Move targext.o to precede libgnat.
21086 (init.o, initialize.o): Minor clean up in dependencies.
21087 (GNATLINK_OBJS): Add targparm.o, snames.o
21088 Add rules fo building targext.o and linking it explicitly with all
21089 tools.
21090 Also add targext.o to gnatlib.
21091
21092 * Make-lang.in: Add rules for building targext.o and linking it in
21093 with gnat1 and gnatbind.
21094 Add entry for exp_sel.o.
21095
21096 * osint.adb Change some Hostparm.OpenVMS checks to
21097 Targparm.OpenVMS_On_Target.
21098 (Object_File_Name): Use target object suffix.
21099
21100 * osint.ads (Object_Suffix): Remove, no longer used.
21101 (Target_Object_Suffix): Initialize with target object suffix.
21102
21103 * rident.ads: Add special exception to license.
21104
21105 * targparm.adb (Get_Target_Parameters): Set the value of
21106 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
21107 value.
21108 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
21109
21110 * targparm.ads: Add special exception to license.
21111
21112 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
21113 function.
21114 (Copy_File): Make sure from file is closed if error on to file
21115 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
21116
21117 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
21118 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
21119
21120 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
21121 target object suffix.
21122
21123 2005-12-09 Jose Ruiz <ruiz@adacore.com>
21124 Quentin Ochem <ochem@adacore.com>
21125 Florian Villoing <villoing@adacore.com>
21126
21127 * a-taster.ads, a-taster.adb: New files.
21128
21129 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
21130 link to the version that does nothing. This way the task termination
21131 routine is not executed twice for the environment task when finishing
21132 because of an unhandled exception.
21133
21134 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
21135 handler because of an unhandled exception.
21136
21137 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
21138 System.Tasking.Utilities instead of that in System.Tasking.Stages.
21139
21140 * s-finimp.adb (initialization code): Modify the soft link for the
21141 finalization of the global list instead of Adafinal.
21142
21143 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
21144 non-tasking version of the soft link for task termination. We do
21145 nothing since if we are using the non-tasking version it
21146 means that the task termination functionality is not used.
21147 (Null_Finalize_Global_List): Add this null version for the procedure
21148 in charge of finalizing the global list for controlled objects.
21149 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
21150 instead for handling run-time termination in a more flexible way.
21151 (Adafinal_NT): This new procedure will take care of finalizing the
21152 global list for controlled objects if needed, but no tasking
21153 finalization.
21154
21155 * s-tarest.adb (Task_Lock): Do not try to lock again the
21156 Global_Task_Lock if we already own it. Otherwise, we get blocked in
21157 some run-time operations.
21158 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
21159 until all nested locks have been released.
21160 (Task_Wrapper): Call the fall-back task termination handler. It
21161 applies to all tasks but the environment task.
21162 (Finalize_Global_Tasks): Add the call for the task termination
21163 procedure for the environment task.
21164 (Task_Wrapper): suppress warnings around declaration of
21165 Secondary_Stack_Address.
21166
21167 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
21168 moved to the Common_ATCB record.
21169 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
21170 Common_ATCB record.
21171 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21172 Common_ATCB record.
21173
21174 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21175 Fall_Back_Handler, and Specific_Handler.
21176
21177 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21178 defined in Ada.Task_Termination, to avoid circular dependencies.
21179 (Termination_Handler): Redefine this type here, alredy defined in
21180 Ada.Task_Termination, for avoiding circular dependencies.
21181 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21182 for storing task termination handlers. In addition,
21183 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21184 Common_ATCB because it is used by both the regular and the restricted
21185 run times.
21186 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21187 Common_ATCB because it is used by both the regular and the restricted
21188 run times.
21189 (Common_ATCB): Added a dynamic task analyzer field.
21190
21191 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21192 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21193 (Task_Wrapper): Call the task termination handler. It applies to all
21194 tasks but the environment task.
21195 (Finalize_Global_Tasks): Call the task termination procedure for the
21196 environment task. The call to Finalize_Global_List is now performed
21197 using the soft links mechanism.
21198 (Task_Wrapper): added dynamic stack analysis.
21199
21200 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21201 potentially blocking operations has been moved from
21202 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21203 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21204 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21205 this run-time check.
21206
21207 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21208 of task termination procedure.
21209 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21210 link for the task termination procedure.
21211
21212 * bindusg.adb: (Bindusg): Added documentation for -u option.
21213
21214 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21215 (Get_Main_C): Add handling of dynamic stack analysis.
21216 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21217
21218 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21219 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21220 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21221
21222 * opt.ads: Added flags used by dynamic stack measurement.
21223 (Max_Line_Length): Remove (not used anymore)
21224
21225 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21226 (Standart_Output): new subprogram
21227 (Set_Output): new subprogram
21228 (Put): now uses the value of Current_Out to know if the output has to be
21229 send to stderr or stdout.
21230
21231 * s-stausa.ads: Complete implementation.
21232
21233 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21234
21235 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21236 list of Ada 05 files.
21237 (GNAT Library Units): Add AltiVec files.
21238
21239 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21240 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21241 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21242
21243 2005-12-09 Nicolas Setton <setton@adacore.com>
21244
21245 * adaint.c (__gnat_locate_regular_file): Return immediately if
21246 file_name is empty.
21247
21248 2005-12-09 Javier Miranda <miranda@adacore.com>
21249 Hristian Kirtchev <kirtchev@adacore.com>
21250
21251 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21252 to the specification because the frontend generates code that uses this
21253 subprogram.
21254 (Set_Interface_Table): Add missing assertion.
21255 Update documentation describing the run-time structure.
21256 (Displace): New subprogram that displaces the pointer to the object
21257 to reference one of its secondary dispatch tables.
21258 (IW_Membership): Modified to use the new table of interfaces.
21259 (Inherit_TSD): Modified to use the new table of interfaces.
21260 (Register_Interface_Tag): Use the additional formal to fill the
21261 contents of the new table of interfaces.
21262 (Set_Interface_Table): New subprogram that stores in the TSD the
21263 pointer to the table of interfaces.
21264 (Set_Offset_To_Top): Use the additional formal to save copy of
21265 the offset value in the table of interfaces.
21266 Update structure of GNAT Primary and Secondary dispatch table diagram.
21267 Add comment section on GNAT dispatch table prologue.
21268 (Offset_To_Signature): Update the constant value of the Signature field.
21269 (Dispatch_Table): Update comment on hidden fields in the prologue.
21270 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21271 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21272 the type of formal parameter T to Tag, introduce additional assertions.
21273 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21274 conversion.
21275 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21276
21277 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21278 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21279 record component containing the tag of the secondary dispatch table we
21280 have to use the Offset_To_Top run-time function to get this information;
21281 otherwise if the pointer to the base of the object has been displace
21282 we get a wrong value if we use the 'position attribute.
21283
21284 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21285 all the calls to Expand_Interface_Thunk.
21286 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21287 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21288 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21289 ensure that the interfaces implemented by the ancestors are placed
21290 at the header of the generated list.
21291 (Expand_Interface_Conversion): Handle the case in which the displacement
21292 associated with the interface conversion is not statically known. In
21293 this case we generate a call to the new run-time subprogram Displace.
21294 (Make_DT): Generate and fill the new table of interfaces.
21295 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21296 Get_Tagged_Kind and Set_Tagged_Kind.
21297 (Tagged_Kind): New function that determines the tagged kind of a type
21298 with respect to limitedness and concurrency and returns a reference to
21299 RE_Tagged_Kind.
21300 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21301 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21302 primary dispatch table for a type.
21303 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21304 secondary dispatch table respectively of a tagged type.
21305
21306 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21307 (Expand_Interface_Conversion): New subprogram to indicate if the
21308 displacement of the type conversion is statically known.
21309 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21310
21311 * rtsfind.ads (RE_Offset_To_Top): New entity
21312 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21313 accessible to users.
21314 (Re_Displace): New entity
21315 (RE_Interface_Data): New entity
21316 (RE_Set_Interface_Data): New_Entity
21317 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21318 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21319 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21320 RE_TK_Tagged, RE_TK_Task.
21321
21322 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21323 Init_Secondary_Tags_Internal to allow its use with interface types and
21324 also to generate the code for the new additional actual required
21325 by Set_Offset_To_Top.
21326 (Build_Init_Statements): In case of components associated with abstract
21327 interface types there is no need to generate a call to its IP.
21328 (Freeze_Record_Type): Generate Select Specific Data tables only for
21329 concurrent types.
21330 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21331 the bodies and specifications of the predefined primitive operations
21332 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21333 for concurrent types.
21334
21335 * exp_sel.ads, exp_sel.adb: New files.
21336
21337 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21338 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21339 properly protected objects and attach handler in the case of the
21340 restricted profile.
21341 Move embeded package Select_Expansion_Utilities into a separate external
21342 package.
21343 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21344 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21345 (Build_K, Build_S_Assignment): New subprograms, part of the select
21346 expansion utilities.
21347 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21348 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21349 where the trigger is a dispatching procedure of a limited tagged type.
21350
21351 2005-12-09 Olivier Hainque <hainque@adacore.com>
21352
21353 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21354 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21355 about the use and expansion of SAVE_EXPRs in the various possible
21356 renaming handling cases.
21357 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21358 abusing DECL_FCONTEXT.
21359
21360 2005-12-09 Matthew Heaney <heaney@adacore.com>
21361
21362 * a-convec.adb (Merge): Added assertions to check whether vector params
21363 are sorted.
21364
21365 * a-coinve.adb (Merge): Added assertions to check whether vector params
21366 are sorted.
21367
21368 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21369 draft.
21370 (Cursor'Read): raises PE
21371
21372 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21373 to its default value.
21374
21375 * a-cihama.adb: Manually check whether cursor's key and elem are
21376 non-null
21377
21378 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21379 (Merge): Assert that target and source lists are in order
21380 (Swap): Declare non-const temporaries, to pass to Splice
21381
21382 * a-cdlili.ads: (Splice): Changed param name and param mode
21383
21384 * a-cdlili.adb: (Splice): Changed param name and param mode
21385 (Merge): Assert that target and source lists are in order
21386 (Swap): Declare non-const temporaries, to pass to Splice
21387
21388 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21389 (Write): declare Stream param as not null
21390
21391 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21392 an exception message.
21393
21394 2005-12-09 Thomas Quinot <quinot@adacore.com>
21395 Robert Dewar <dewar@adacore.com>
21396
21397 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21398 which is the absolute maximum length we can support.
21399
21400 * frontend.adb: For the processing of configuration pragma files,
21401 remove references to Opt.Max_Line_Length, which is not checked anymore.
21402
21403 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21404 length.
21405
21406 * scn.adb, scng.adb:
21407 Always check line length against the absolute supported maximum,
21408 Hostparm.Max_Line_Length.
21409
21410 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21411 value for the maximum line length is Max_Line_Length (not
21412 Column_Number'Last).
21413 Minor error msg update
21414 (Set_Style_Check_Options): New interface returning error msg
21415 Minor code reorganization (processing for 'M' was out of alpha order)
21416
21417 * switch-c.adb: New interface for Set_Style_Check_Options
21418
21419 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21420 msg.
21421
21422 2005-12-09 Javier Miranda <miranda@adacore.com>
21423
21424 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21425 with IP subprogram were only supported if there were limited types.
21426
21427 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21428 records with IP subprogram were only supported if there were limited
21429 types.
21430
21431 2005-12-09 Olivier Hainque <hainque@adacore.com>
21432 Eric Botcazou <ebotcazou@adacore.com>
21433
21434 * trans.c (tree_transform, emit_check): Adjust calls to
21435 build_call_raise, passing the now expected GNAT_NODE argument.
21436
21437 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21438 source line information than what the current global locus indicates
21439 when appropriate.
21440
21441 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21442 field has overflowed.
21443 (build_call_raise): Add a GNAT_NODE argument to convey better source
21444 line information than what the current global locus indicates when
21445 appropriate.
21446 (build_component_ref): Adjust call to build_call_raise.
21447
21448 2005-12-09 Pascal Obry <obry@adacore.com>
21449
21450 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21451 the iterator is quitting iteration on parent directory.
21452
21453 2005-12-09 Javier Miranda <miranda@adacore.com>
21454
21455 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21456 and the assignment to a class-wide object, before the assignment we
21457 generate a run-time check to ensure that the tag of the Target is
21458 covered by the tag of the source.
21459
21460 2005-12-09 Robert Dewar <dewar@adacore.com>
21461
21462 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21463 parameter in call to Image_Wide_Character.
21464
21465 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21466 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21467 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21468 annoying FFFE/FFFF inconsistency.
21469
21470 2005-12-09 Robert Dewar <dewar@adacore.com>
21471 Javier Miranda <miranda@adacore.com>
21472 Ed Schonberg <schonberg@adacore.com>
21473
21474 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21475 of type conversion.
21476 (Find_Interface): New subprogram that given a tagged type and one of its
21477 component associated with the secondary table of an abstract interface
21478 type, return the entity associated with such abstract interface type.
21479 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21480 base type to create anonymous subtype, because entity may be a locally
21481 declared subtype or generic actual.
21482 (Find_Interface): New subprogram that given a tagged type and one of its
21483 component associated with the secondary table of an abstract interface
21484 type, return the entity associated with such abstract interface type.
21485
21486 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21487 conversion cannot be handled at compile time. In this case we pass this
21488 information to the expander to generate the appropriate code.
21489
21490 2005-12-09 Robert Dewar <dewar@adacore.com>
21491 Ed Schonberg <schonberg@adacore.com>
21492 Gary Dismukes <dismukes@adacore.com>
21493 Javier Miranda <miranda@adacore.com>
21494 Hristian Kirtchev <kirtchev@adacore.com>
21495
21496 * einfo.adb (Itype_Printed): New flag
21497 (Is_Limited_Type): Derived types do not inherit limitedness from
21498 interface progenitors.
21499 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21500 interfaces.
21501
21502 * einfo.ads (Itype_Printed): New flag
21503 Move Is_Wrapper_Package to proper section
21504 Add missing Inline for Is_Volatile
21505
21506 * output.ads, output.adb (Write_Erase_Char): New procedure
21507 (Save/Restore_Output_Buffer): New procedures
21508 (Save/Restore_Output_Buffer): New procedures
21509
21510 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21511 Add missing support for anonymous access type
21512 (Write_Id): Insert calls to Write_Itype
21513 (Write_Itype): New procedure to output itypes
21514
21515 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21516 use of "limited" in declaration.
21517
21518 * sinfo.ads, sinfo.adb:
21519 Formal derived types can carry an explicit "limited" indication.
21520
21521 * sem_ch3.adb: Add with and use of Targparm.
21522 (Create_Component): If Frontend_Layout_On_Target is True and the
21523 copied component does not have a known static Esize, then reset
21524 the size and positional fields of the new component.
21525 (Analyze_Component_Declaration): A limited component is
21526 legal within a protected type that implements an interface.
21527 (Collect_Interfaces): Do not add to the list the interfaces that
21528 are implemented by the ancestors.
21529 (Derived_Type_Declaration): If the parent of the full-view is an
21530 interface perform a transformation of the tree to ensure that it has
21531 the same parent than the partial-view. This simplifies the job of the
21532 expander in order to generate the correct object layout, and it is
21533 needed because the list of interfaces of the full-view can be given in
21534 any order.
21535 (Process_Full_View): The parent of the full-view does not need to be
21536 a descendant of the parent of the partial view if both parents are
21537 interfaces.
21538 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21539 "limited" the parent must be a limited type.
21540 (Build_Derived_Record_Type): A derived type that is explicitly limited
21541 must have limited ancestor and progenitors.
21542 (Build_Derived_Type): Ditto.
21543 (Process_Full_View): Verify that explicit uses of "limited" in partial
21544 and full declarations are consistent.
21545 (Find_Ancestor_Interface): Remove function.
21546 (Collect_Implemented_Interfaces): New procedure used to gather all
21547 implemented interfaces by a type.
21548 (Contain_Interface): New function used to check whether an interface is
21549 present in a list.
21550 (Find_Hidden_Interface): New function used to determine whether two
21551 lists of interfaces constitute a set equality. If not, the first
21552 differing interface is returned.
21553 (Process_Full_View): Improve the check for the "no hidden interface"
21554 rule as defined by AI-396.
21555
21556 2005-12-09 Robert Dewar <dewar@adacore.com>
21557
21558 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21559 types, not on record subtypes.
21560 (Freeze_Entity): Code cleanup. Add barrier to the loop
21561 that generates the references for primitive operations. This allows to
21562 remove an unnecessary exception handler.
21563 Code reformatting and comment clean ups.
21564
21565 2005-12-09 Vincent Celier <celier@adacore.com>
21566
21567 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21568 If GNAT CHECK is called with a project file, but with no
21569 source on the command line, call gnatcheck with all the compilable
21570 sources of the project.
21571 Take into account the new command Check, for gnatcheck. Treat as for
21572 other ASIS tools: take into account project, specific package Check and
21573 Compiler switches.
21574 For ASIS tools, add the switches in package Compiler for
21575 the invocation of the compiler.
21576
21577 * prj-attr.adb: Add package Check and its attributes
21578
21579 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21580
21581 * vms_conv.adb (Initialize): Change Params of command Check to
21582 unlimited files.
21583 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21584 Add data for new command Check
21585
21586 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21587 ELIM.
21588 Add qualifiers for Check command options
21589 (Command_Type): New command Check
21590
21591 2005-12-09 Thomas Quinot <quinot@adacore.com>
21592
21593 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21594 command line switch overruns the output buffer.
21595
21596 2005-12-09 Robert Dewar <dewar@adacore.com>
21597
21598 * sem_prag.adb: Processing for new pragma Complete_Representation
21599 (Analyze_Pragma, case Debug): Implement two argument form.
21600
21601 * par-prag.adb: Entry for new pragma Complete_Representation
21602 (Prag, case Debug): Recognize two argument form of pragma Debug
21603 New interface for Set_Style_Check_Options.
21604
21605 * sem_ch13.adb: Implement new pragma Complete_Representation.
21606
21607 * snames.adb, snames.ads, snames.h: Entry for new pragma
21608 Complete_Representation.
21609
21610 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21611
21612 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21613 available user-specified stream attributes on limited parameters to
21614 also test the type directly rather than only its underlying type (for
21615 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21616 attributes are visible at the point of the subprogram declaration.
21617 For Ada 2005, the error message is modified to indicate that the
21618 type's stream attributes must be visible (again, only for -gnat05).
21619
21620 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21621
21622 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21623 anonymous access types.
21624
21625 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21626 matching of anonymous access types and anonymous access to subprogram
21627 types. 'R'M 4.9.1 (2/2).
21628
21629 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21630
21631 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21632 rule prematurely when operands are universal, remaining ambiguities
21633 will be removed during resolution.
21634 Code cleanup.
21635
21636 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21637 that are Ada 2005 functions.
21638 (Has_Abstract_Interpretation): Subsidiary to
21639 Remove_Conversions, to remove ambiguities caused by abstract operations
21640 on numeric types when operands are universal.
21641
21642 2005-12-09 Robert Dewar <dewar@adacore.com>
21643
21644 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21645 for case where spec is categorized.
21646
21647 2005-12-09 Javier Miranda <miranda@adacore.com>
21648
21649 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21650 types use the corresponding record type. This was not needed before
21651 the implementation of Ada 2005 synchronized types because
21652 concurrent types were never tagged types in Ada 95.
21653
21654 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21655
21656 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21657 first subtype of the type of the expression to verify that it is a
21658 legal Time type.
21659
21660 2005-12-09 Robert Dewar <dewar@adacore.com>
21661
21662 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21663 decoded names.
21664
21665 2005-12-09 Quentin Ochem <ochem@adacore.com>
21666 Robert Dewar <dewar@adacore.com>
21667 Ed Falis <falis@adacore.com>
21668 Florian Villoing <villoing@adacore.com>
21669 Thomas Quinot <quinot@adacore.com>
21670 Arnaud Charlet <charlet@adacore.com>
21671
21672 * gnat_ugn.texi: Created section "Stack Related Tools"
21673 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21674 "Stack Related Tools"
21675 Added subsection "Static Stack Usage Analysis"
21676 Added subsection "Dynamic Stack Usage Analysis"
21677 Include documentation of itypes in sprint listing (-gnatG)
21678 Documented gnatbind -D switch (default sec stack size for fixed sec
21679 stacks).
21680 Added Interrupt_State and Persistent_BSS to list of configuration
21681 pragmas.
21682 Add missing doc for maximum value of nnn in -gnatyMnnn
21683
21684 * gnat_rm.texi: Document the AltiVec binding.
21685 Add documentation for pragma Complete_Representation
21686 Shortened an overly long line (> 79 chars)
21687 Clarify documentation of unchecked conversion in implementation
21688 defined cases.
21689 Document two argument form of pragma Debug
21690
21691 * types.ads (Column_Number): Update documentation.
21692
21693 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21694 library level Finalize_Storage_Only objects (these are not attached to
21695 any finalization list).
21696
21697 * system-mingw.ads: (Underlying_Priorities): Update comment.
21698
21699 2005-12-09 Robert Dewar <dewar@adacore.com>
21700
21701 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21702 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21703 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21704 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21705 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21706 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21707 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21708 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21709 reformatting.
21710
21711 2005-12-09 Robert Dewar <dewar@adacore.com>
21712
21713 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21714 (Ne_G): New function
21715
21716 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21717 for tag assignment.
21718 (Rewrite_Comparison): Handle case where operation is not a comparison
21719 and ignore, and also handle type conversion case.
21720
21721 2005-12-09 Thomas Quinot <quinot@adacore.com>
21722
21723 * exp_aggr.ads: Fix typo in comment.
21724 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21725
21726 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21727
21728 * layout.adb: Replace various uses of byte by storage unit throughout.
21729 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21730 static size, convert to storage units before returning, to conform to
21731 spec.
21732
21733 2005-12-09 Matthew Gingell <gingell@adacore.com>
21734
21735 * g-exctra.ads: Fix typo in comment.
21736
21737 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21738
21739 * utils.c: Minor reformatting.
21740
21741 2005-12-09 Robert Dewar <dewar@adacore.com>
21742
21743 * g-soccon.ads:
21744 Further comment fixes to make the status of the default file clear
21745
21746 * s-bitops.adb: Clarify comment for Bits_Array
21747
21748 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21749
21750 * Make-lang.in (ada.install-normal): Remove.
21751
21752 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21753
21754 * Make-lang.in: Remove all dependencies on s-gtype.
21755
21756 2005-12-05 Richard Guenther <rguenther@suse.de>
21757
21758 * utils.c (convert): Use fold_convert where appropriate.
21759
21760 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21761
21762 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21763 a period is meant.
21764
21765 2005-12-02 Richard Guenther <rguenther@suse.de>
21766
21767 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21768
21769 2005-12-01 Roger Sayle <roger@eyesopen.com>
21770
21771 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21772 nodes.
21773
21774 2005-11-23 Laurent Guerby <laurent@guerby.net>
21775
21776 * mlib-prj.adb (Build_Library): Initialize Delete.
21777
21778 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
21779
21780 * socket.c: Add extern int h_errno for rtems since networking header
21781 files are not available at this point in a tool bootstrap. Newlib
21782 only has basic C library header files.
21783
21784 2005-11-19 Richard Guenther <rguenther@suse.de>
21785 Roger Sayle <roger@eyesopen.com>
21786
21787 PR ada/23717
21788 * misc.c (internal_error_function): Don't use vsprintf to format
21789 the error message text, instead use pp_format_text and the new
21790 pretty printer APIs. This allows handling of %qs, %w, etc.
21791
21792 2005-11-18 Laurent Guerby <laurent@guerby.net>
21793
21794 PR ada/24857
21795 * Makefile.in: Use s-auxdec-empty for RTEMS.
21796
21797 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21798
21799 PR ada/22333
21800 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21801 a temporary if taking the address of something that is neither
21802 reference, declaration, or constant, since the gimplifier
21803 can't handle that case.
21804
21805 2005-11-17 Laurent Guerby <laurent@guerby.net>
21806
21807 PR ada/24857
21808 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21809
21810 2005-11-16 Richard Guenther <rguenther@suse.de>
21811
21812 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21813
21814 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
21815
21816 PR ada/24855
21817 * raise-gcc.c: Add missing stdarg.h include.
21818
21819 2005-11-16 Richard Guenther <rguenther@suse.de>
21820
21821 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21822 (ada/misc.o): Likewise.
21823
21824 2005-11-14 Thomas Quinot <quinot@adacore.com>
21825
21826 * g-soccon.ads: Minor reformatting. Update comments.
21827
21828 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21829 gain visibility on the declaration of struct timeval.
21830
21831 * g-soccon-freebsd.ads,
21832 g-soccon-darwin.ads,
21833 g-soccon-tru64.ads,
21834 g-soccon-aix.ads,
21835 g-soccon-irix.ads,
21836 g-soccon-hpux.ads,
21837 g-soccon-solaris.ads,
21838 g-soccon-vms.ads,
21839 g-soccon-mingw.ads,
21840 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21841
21842 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21843 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21844 g-soccon-linux-x86.ads: New files.
21845
21846 * g-socthi-mingw.adb:
21847 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21848
21849 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21850 (time_t, suseconds_t): New types constructed to match the tv_sec
21851 and tv_usec fields of C struct timeval.
21852 (Timeval): Construct structure in terms of the new types.
21853 (Host_Errno): New function (imported from socket.c), returns last hosts
21854 database error.
21855
21856 * g-socthi-vxworks.adb: Add error handling circuitry.
21857
21858 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21859 components of struct timeval.
21860 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21861 (Check_Selector): In error conditions, clear internal socket sets to
21862 avoid a memory leak.
21863 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21864 Send_Timeout, Receive_Timeout.
21865
21866 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21867 the tv_sec and tv_usec fields of C struct timeval.
21868 (Timeval): Construct structure in terms of the new types.
21869 (Host_Errno): New function (imported from socket.c), returns last hosts
21870 database error.
21871
21872 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21873 hosts database last error code.
21874
21875 * gen-soccon.c: Complete value expansion should not be performed on
21876 TARGET, as it has the form of a math expression, and some components
21877 may be platform-defined macros.
21878 For VxWorks, generate the OK and ERROR values.
21879 New constants giving the sizes of the components of C struct timeval.
21880
21881 2005-11-14 Robert Dewar <dewar@adacore.com>
21882 Ed Schonberg <schonberg@adacore.com>
21883
21884 PR ada/18434
21885 * types.ads: Include All_Checks in Suppress_Array
21886
21887 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21888 not(a=b), since we no longer do this rewriting, and hence it is not
21889 needed.
21890 (Elaboration_Checks_Suppressed): Add special casing to
21891 deal with different cases of static and dynamic elaboration checks (all
21892 checks does not count in the first case, but does in the second).
21893 (Expr_Known_Valid): Do not assume that the result of any arbitrary
21894 function call is valid, since this is not the case.
21895 (Ensure_Valid): Do not apply validity check to a real literal
21896 in a universal or fixed context
21897
21898 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21899 elementary types using the operator in standard. It is cleaner not to
21900 modify the programmers intent, especially in the case of floating-point.
21901 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21902 it did not matter because we always rewrote a/=b to not(a=b).
21903 (Expand_Allocator_Expression): For an allocator expression whose nominal
21904 subtype is an unconstrained packed type, convert the expression to its
21905 actual constrained subtype.
21906 Implement warning for <= or >= where < or > not possible
21907 Fix to Vax_Float tests (too early in many routines, causing premature
21908 Vax_Float expansions.
21909
21910 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21911 to be used with packages and generic packages as well as with
21912 subprograms.
21913 (Suppress): Set All_Checks, but not Elaboration_Check, for case
21914 of pragma Suppress (All_Checks)
21915 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21916 a string literal for precise control over warnings.
21917 Avoid raise of pragma in case of unrecognized pragma and just return
21918 instead.
21919
21920 * sem_prag.ads: Minor reformatting
21921
21922 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21923 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21924 Switch. Do not handle any exception.
21925 Include -gnatwx as part of -gnatg (warn on redundant parens)
21926 Allow optional = after -gnatm
21927 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21928 longer sets Elaboration_Checks.
21929 Code to set warning mode moved to Sem_Warn
21930 so that it can be shared by pragma processing.
21931
21932 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21933 statement.
21934
21935 * s-taprop-solaris.adb:
21936 Change some <= to =, to avoid new warning
21937
21938 * a-exexda.adb, prj-proc.adb:
21939 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21940 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21941
21942 2005-11-14 Robert Dewar <dewar@adacore.com>
21943
21944 * exp_vfpt.adb: Handle /= case
21945 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21946 so that we do not get duplicate scaling for fixed point conversions.
21947
21948 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21949
21950 2005-11-14 Matthew Gingell <gingell@adacore.com>
21951
21952 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21953 Increase default priority on Lynx from 15 to 17, and meet the Ada
21954 requirement that Default_Priority be ((Priority'First +
21955 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21956
21957 2005-11-14 Vincent Celier <celier@adacore.com>
21958
21959 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21960 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21961 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21962 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21963 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21964 mlib-tgt-lynxos.adb (DLL_Prefix): New function
21965
21966 2005-11-14 Doug Rupp <rupp@adacore.com>
21967
21968 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21969 private part.
21970
21971 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21972
21973 * s-traces-default.adb, s-trafor-default.ads,
21974 s-tratas-default.adb: Fix compilation errors.
21975
21976 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21977
21978 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21979 raising the exception so the memory used is freed.
21980
21981 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21982
21983 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21984 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21985 (convert_address): Update comments and list of platforms using this.
21986
21987 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21988 no longer used.
21989
21990 2005-11-14 Pascal Obry <obry@adacore.com>
21991 Vincent Celier <celier@adacore.com>
21992
21993 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21994 GNAT.Command_Line.
21995
21996 * memroot.adb: Remove redundant with/use clause on
21997 System.Storage_Elements.
21998
21999 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22000
22001 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
22002 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
22003 related code to a-exexpr.adb
22004 (Save_Occurrence_And_Private): Move GCC EH related code to
22005 a-exexpr-gcc.adb
22006 (Raise_Current_Excep): Add new variable Id with pragma
22007 volatile, to ensure that the variable lives on stack.
22008
22009 * a-exexpr-gcc.adb, raise-gcc.c: New file.
22010
22011 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
22012 from a-except.adb.
22013 Move GCC EH related code to a-exexpr-gcc.adb
22014
22015 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
22016 64-bit Solaris
22017 Split the Linux version of g-soccon into separate variants for 32 and 64
22018 bit platforms.
22019 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
22020 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
22021 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
22022 of host variable $(RANLIB_FLAGS).
22023 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
22024 Code clean up: remove unused/obsolete targets.
22025 (EH_MECHANISM): New variable introduced to differenciate between the
22026 two EH mechanisms statically.
22027 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
22028 (LIBGNAT_OBJS): Add raise-gcc.o
22029 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
22030 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22031 supports VxWorks 6 RTPs.
22032 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
22033 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22034
22035 * raise.c: Move all GCC EH-related routines to raise-gcc.c
22036
22037 2005-11-14 Jose Ruiz <ruiz@adacore.com>
22038
22039 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
22040 deferral level, when abort is not allowed, to a later stage (the
22041 Task_Wrapper).
22042 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
22043 it will not get changed by the generated code. It was previously done
22044 in Create_Task.
22045
22046 2005-11-14 Thomas Quinot <quinot@adacore.com>
22047 Olivier Hainque <hainque@adacore.com>
22048 Eric Botcazou <ebotcazou@adacore.com>
22049
22050 * decl.c:
22051 Factor common code to build a storage type for an unconstrained object
22052 from a fat or thin pointer type and a constrained object type.
22053 (annotate_value): Handle BIT_AND_EXPR.
22054 (annotate_rep): Don't restrict the back annotation of inherited
22055 components to the type_annotate_only case.
22056 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
22057 we are not defining the type.
22058 <E_Record_Type>: Likewise.
22059 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
22060 to get advantage of the new maybe_stabilize_reference interface, to
22061 ensure that what we reference is indeed stabilized instead of relying
22062 on assumptions on what the stabilizer does.
22063 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
22064 type imported through a limited_with clause, use its non-limited view.
22065 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
22066 differentiation.
22067 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
22068 of #if sections + explicit comparisons of convention identifiers.
22069 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
22070 before early-returning for certain types when code generation is
22071 disabled.
22072 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
22073 nullification of gnu_expr we do for objects with address clause and
22074 that we are not defining.
22075 (elaborate_expression_1): Do not create constants when creating
22076 variables needed by the debug info: the dwarf2 writer considers that
22077 CONST_DECLs is used only to represent enumeration constants, and emits
22078 nothing for them.
22079 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
22080 object with an address clause into an indirect reference, drop the
22081 initializing expression.
22082 Include "expr.h".
22083 (STACK_CHECK_BUILTIN): Delete.
22084 (STACK_CHECK_PROBE_INTERVAL): Likewise.
22085 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
22086 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
22087 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
22088 corresponding to the renamed object as ignored for debugging purposes.
22089
22090 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
22091 related): For a prefix that is a dereference of a fat or thin pointer,
22092 if there is an actual subtype provided by the front-end, use that
22093 subtype to build an actual type with bounds template.
22094 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
22095 is provided by the front-end, use that subtype to compute the size of
22096 the deallocated object.
22097 (gnat_to_gnu): When adding a statement into an elaboration procedure,
22098 check for a potential violation of a No_Elaboration_Code restriction.
22099 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22100 with extra arguments to control whether to recurse through non-values
22101 and to let the caller know if the stabilization has succeeded.
22102 (gnat_stabilize_reference): Now a simple wrapper around
22103 maybe_stabilize, for common uses without restriction on lvalues and
22104 without need to check for the success indication.
22105 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
22106 pass false instead of 0 as the FORCE argument which is a bool.
22107 (Identifier_to_gnu): Remove checks ensuring that an renamed object
22108 attached to a renaming pointer has been properly stabilized, as no such
22109 object is attached otherwise.
22110 (call_to_gnu): Invoke create_var_decl to create the temporary when the
22111 function uses the "target pointer" return mechanism.
22112 Reinstate conversion of the actual to the type of the formal
22113 parameter before any other specific treatment based on the passing
22114 mechanism. This turns out to be necessary in order for PLACEHOLDER
22115 substitution to work properly when the latter type is unconstrained.
22116
22117 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
22118 common pattern.
22119 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
22120 with extra arguments to control whether to recurse through non-values
22121 and to let the caller know if the stabilization has succeeded.
22122
22123 * utils2.c (gnat_build_constructor): Only sort the fields for possible
22124 static output of record constructor if all the components are constant.
22125 (gnat_build_constructor): For a record type, sort the list of field
22126 initializers in increasing bit position order.
22127 Factor common code to build a storage type for an unconstrained object
22128 from a fat or thin pointer type and a constrained object type.
22129 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
22130 types variants, and process special cases of VIEW_CONVERT expressions
22131 as their NOP_EXPR counterpart to ensure we get to the
22132 CORRESPONDING_VARs associated with CONST_DECls.
22133 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
22134 on the right-hand side.
22135
22136 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
22137 a common pattern.
22138 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
22139 are converting back to its original type.
22140 (convert) <JM input>: Fallthrough regular conversion code instead of
22141 extracting the object if converting to a type variant.
22142 (create_var_decl): When a variable has an initializer requiring code
22143 generation and we are at the top level, check for a potential violation
22144 of a No_Elaboration_Code restriction.
22145 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
22146 SIZE and SIZE_UNIT which we need for later back-annotations.
22147 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
22148 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
22149 is an unchecked union.
22150 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
22151 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
22152 main variant, just replace the VIEW_CONVERT_EXPR.
22153 <UNION_TYPE>: Revert 2005-03-02 change.
22154
22155 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
22156
22157 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
22158
22159 2005-11-14 Matthew Heaney <heaney@adacore.com>
22160
22161 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
22162 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
22163 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
22164 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
22165 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
22166 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
22167 Compiles against the spec for ordered maps described in sections
22168 A.18.6 of the most recent (August 2005) AI-302 draft.
22169
22170 2005-11-14 Olivier Hainque <hainque@adacore.com>
22171
22172 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22173 to ensure bias adjustments take place when need be and to prevent
22174 occurrences of intermediate overflows.
22175
22176 2005-11-14 Matthew Gingell <gingell@adacore.com>
22177 Olivier Hainque <hainque@adacore.com>
22178
22179 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22180 ia64 HP-UX.
22181
22182 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22183 tracebacks on ia64 HP-UX and provide explanatory comment.
22184 Enable backtraces on ia64 GNU/Linux.
22185 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22186 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22187
22188 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22189 Javier Miranda <miranda@adacore.com>
22190
22191 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22192 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22193 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22194 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22195
22196 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22197 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22198 assertions).
22199
22200 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22201 subprogram that generates the external name associated with a
22202 secondary dispatch table.
22203 (Get_Secondary_DT_External_Name): New subprogram that generates the
22204 external name associated with a secondary dispatch table.
22205
22206 2005-11-14 Emmanuel Briot <briot@adacore.com>
22207
22208 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22209 line in the ALI file to include both an instantiation reference, and a
22210 returned value.
22211
22212 2005-11-14 Vincent Celier <celier@adacore.com>
22213
22214 * clean.adb (Check_Project): Look for Ada code in extending project,
22215 even if Ada is not specified as a language.
22216 Use new function DLL_Prefix for DLL_Name
22217 (Clean_Interface_Copy_Directory): New procedure
22218 (Clean_Library_Directory): New procedure
22219 (Clean_Directory): Remove procedure, no longer used
22220 (Clean_Project): Do not delete any file in an externally built project
22221
22222 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22223 directory of an extending project, even when there are no Ada source
22224 present.
22225 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22226 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22227
22228 * mlib-prj.adb (Check_Library): For all library projects, get the
22229 library file timestamp.
22230 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22231 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22232 (Clean): Remove procedure, no longer used
22233 (Ultimate_Extension_Of): New function
22234 (Build_Library): When cleaning the library directory, only remove an
22235 existing library file and any ALI file of a source of the project.
22236 When cleaning the interface copy directory, remove any source that
22237 could be a source of the project.
22238
22239 * prj.ads, prj.adb (Project_Empty): Add values of new components
22240 Library_TS and All_Imported_Projects.
22241 (Project_Empty): Add values for new components of Project_Data:
22242 Library_ALI_Dir and Display_Library_ALI_Dir
22243
22244 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22245
22246 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22247 attribute Library_ALI_Dir.
22248 (Check_Library_Attributes): The library directory cannot be the same as
22249 any source directory of the project tree.
22250 (Check_Stand_Alone_Library): The interface copy directory cannot be
22251 the same as any source directory of the project tree.
22252
22253 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22254 all temporary files.
22255
22256 2005-11-14 Robert Dewar <dewar@adacore.com>
22257 Ed Schonberg <schonberg@adacore.com>
22258
22259 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22260 (Check_Elab_Call): A call within a protected body is never an
22261 elaboration call, and does not require checking.
22262 (Same_Elaboration_Scope): Take into account protected types for both
22263 entities.
22264 (Activate_Elaborate_All_Desirable): New procedure
22265
22266 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22267 desirable
22268
22269 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22270 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22271
22272 * lib-writ.ads, lib-writ.adb:
22273 Implement new AD/ED for Elaborate_All/Elaborate desirable
22274 Use new Elaborate_All_Desirable flag in N_With_Clause node
22275
22276 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22277 N_Free_Statement nodes.
22278 Define new class N_Subprogram_Instantiation
22279 Add Elaborate_Desirable flag to N_With_Clause node
22280 Add N_Delay_Statement (covering two kinds of delay)
22281
22282 * debug.adb: Introduce d.f flag for compiler
22283 Add -da switch for binder
22284
22285 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22286 Cyrille Comar <comar@adacore.com>
22287
22288 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22289 for task component, in the case of a limited aggregate. The enclosed
22290 object declaration will create it earlier. Otherwise, in the case of a
22291 nested aggregate, the object may appear in the wrong scope.
22292 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22293 (Gen_Assign): If the component being assigned is an array type and the
22294 expression is itself an aggregate, wrap the assignment in a block to
22295 force finalization actions on the temporary created for each row of the
22296 enclosing object.
22297 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22298 structures are initialized after all discriminants are set so that
22299 they can be accessed even when their offset is dynamic.
22300
22301 2005-11-14 Robert Dewar <dewar@adacore.com>
22302 Hristian Kirtchev <kirtchev@adacore.com>
22303
22304 * sem_attr.adb: Implement Machine_Rounding attribute
22305 (Analyze_Access_Attribute): The access attribute may appear within an
22306 aggregate that has been expanded into a loop.
22307 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22308 'Terminated whenever the prefix is of a task interface class-wide type.
22309 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22310 the prefix is of a task interface class-wide type.
22311
22312 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22313 to avoid warnings.
22314
22315 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22316 Remove pragma Inline for [Unaligned_]Valid.
22317 Add comments that Valid routines do not work for Vax_Float
22318
22319 * exp_attr.adb: Implement Machine_Rounding attribute
22320
22321 * snames.h: Add entry for Machine_Rounding attribute
22322
22323 2005-11-14 Javier Miranda <miranda@adacore.com>
22324 Robert Dewar <dewar@adacore.com>
22325 Hristian Kirtchev <kirtchev@adacore.com>
22326
22327 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22328 and related): For a prefix that is an explicit dereference of an
22329 access to unconstrained packed array type, annotate the dereference
22330 with an actual subtype so GIGI can make a correct size computation.
22331 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22332 'Unrestricted_Access, if the designated type is an interface we
22333 add a type conversion to force the displacement of the pointer
22334 to the secondary dispatch table.
22335 Use Universal_Real instead of Long_Long_Float when we need a high
22336 precision float type for the generated code (prevents gratuitous
22337 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22338 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22339 'Terminated for task interface class-wide objects. Generate a call to
22340 the predefined dispatching routine used to retrieve the _task_id from
22341 a task corresponding record.
22342 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22343
22344 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22345 (Check_Dispatching_Operation): Protect the frontend againts
22346 previously detected errors.
22347
22348 * Makefile.rtl: Add new instantiations of system.fat_gen
22349
22350 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22351 Change name of instantiated package for better consistency
22352 with newly added system.fat_gen instantiations.
22353
22354 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22355 s-fvagfl.ads: New files.
22356
22357 2005-11-14 Cyrille Comar <comar@adacore.com>
22358 Thomas Quinot <quinot@adacore.com>
22359
22360 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22361 assignment of a value of a tagged type that has been rewritten to a
22362 block statement, it is known by construction that no checks are
22363 necessary for the statements within the block: analyze it with checks
22364 suppressed.
22365 (Expand_N_If_Statement): When killing a dead then-branch in an
22366 if-statement that has elsif_parts, recompute the Current_Value node
22367 for any entity whose value is known from the condition of the first
22368 elsif_part.
22369 (Expand_N_Return_Statement): When returning a mutable record, convert
22370 the return value into its actual subtype in order to help the backend
22371 to return the actual size instead of the maximum. This is another
22372 aftermath of not returning mutable records on the sec-stack anymore.
22373
22374 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22375 handling of error msg for suspicious reverse range iteration.
22376 (Check_Possible_Current_Value_Condition): Move declaration from body to
22377 spec, to allow this subprogram to be called from exp_ch5.
22378
22379 2005-11-14 Thomas Quinot <quinot@adacore.com>
22380
22381 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22382 generate a set of nested array aggregates instead of a single flat
22383 aggregate for multi-dimensional arrays.
22384
22385 2005-11-14 Pascal Obry <obry@adacore.com>
22386
22387 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22388 by spawnve is a process handle, no need to convert. Add a parameter
22389 close to control wether the process handle must be closed.
22390 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22391 a process handle, not need to convert.
22392 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22393
22394 * g-expect.adb: (Kill): Document the new close parameter.
22395 (Close): Do not release the process handle in the kill there as
22396 waitpid() is using it.
22397 (Send_Signal): Release the process handle.
22398
22399 2005-11-14 Robert Dewar <dewar@adacore.com>
22400
22401 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22402 need a high precision float type for the generated code (prevents
22403 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22404 used).
22405
22406 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22407 need a high precision float type for the generated code (prevents
22408 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22409 used).
22410 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22411 allowed on non-static enumeration subtypes. Force a load error to emit
22412 the correct diagnostic.
22413
22414 2005-11-14 Thomas Quinot <quinot@adacore.com>
22415 Robert Dewar <dewar@adacore.com>
22416 Ed Schonberg <schonberg@adacore.com>
22417
22418 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22419 subtype to compute the size of the designated object at run-time,
22420 create such a subtype and store it in the Actual_Designated_Subtype
22421 attribute of the N_Free_Statement.
22422 Generate itype for classwide designated object in both cases of
22423 user-specified storage pool: specific and class-wide, not only in the
22424 specific case.
22425 Raise CE when trying to set a not null access type object to null.
22426 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22427 an explicit loop, because freeze nodes make its position variable.
22428
22429 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22430 null object.
22431
22432 2005-11-14 Javier Miranda <miranda@adacore.com>
22433
22434 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22435 Build_Stream_Procedure): Add the null-excluding attribute to the first
22436 formal.
22437 This has no semantic meaning under Ada95 mode but it is a
22438 requirement under Ada05 mode.
22439
22440 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22441 the null exclusion is used under Ada95 mode
22442 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22443 (P_Access_Definition): Remove assertion that forbids the use of
22444 the null-exclusion feature in Ada95.
22445
22446 2005-11-14 Robert Dewar <dewar@adacore.com>
22447
22448 * impunit.adb: Exclude container helper units not intended for use by
22449 users.
22450
22451 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22452
22453 * freeze.adb (Freeze_Entity): For an access formal that is an access
22454 to subprogram, freeze the anonymous subprogram type at the same time,
22455 to prevent later freezing in the wrong scope, such as the enclosing
22456 subprogram body.
22457 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22458 subprogram whenever available.
22459
22460 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22461
22462 PR ada/23732
22463 * gnatvsn.ads (Library_Version): Bump to 4.1
22464
22465 2005-11-14 Robert Dewar <dewar@adacore.com>
22466
22467 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22468 Storage_Offset to avoid wrap around causing invalid results.
22469
22470 2005-11-14 Pascal Obry <obry@adacore.com>
22471
22472 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22473 cross-compiler.
22474 (Scan_Bind_Arg): Fail with an error message if -M option is used
22475 on a native compiler.
22476
22477 2005-11-14 Robert Dewar <dewar@adacore.com>
22478 Vincent Celier <celier@adacore.com>
22479
22480 * gprep.adb: Implement -C switch to scan comments
22481
22482 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22483
22484 * scans.ads: Comment updates (including new use of Tok_Comment in
22485 preprocessing)
22486
22487 * opt.ads: Add documentation for flags that are used by gprmake,
22488 currently and in the next version of gprmake.
22489 (Verbosity_Level): New variable
22490 Add Replace_In_Comments switch
22491
22492 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22493 and -vm.
22494 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22495
22496 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22497
22498 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22499 message, friendlier.
22500
22501 2005-11-14 Robert Dewar <dewar@adacore.com>
22502
22503 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22504
22505 2005-11-14 Doug Rupp <rupp@adacore.com>
22506
22507 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22508
22509 2005-11-14 Robert Dewar <dewar@adacore.com>
22510
22511 * interfac.ads: Change declarations of IEEE float types so that we no
22512 longer need a separate version of this package for VMS.
22513
22514 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22515
22516 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22517 internal entity created for the declaration of a child subprogram body
22518 with no spec as coming from source, to generate proper cross-reference
22519 information.
22520
22521 2005-11-14 Vincent Celier <celier@adacore.com>
22522
22523 * make.adb (Compile_Sources): Change verbose message to minimum
22524 verbosity level High for "is in an Ada library", "is a read-only
22525 library" and "is an internal library",
22526 (Create_Binder_Mapping_File): Path name of ALI file for library project
22527 must include the library directory, not the object directory.
22528 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22529 for new switches -vl, -vm and -vh.
22530 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22531 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22532 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22533 in a project that is externally built.
22534 (Compute_All_Imported_Projects): New procedure
22535 (Gnatmake): Check if importing libraries should be regenerated because
22536 at least an imported library is more recent.
22537 (Initialize): For each project compute the list of the projects it
22538 imports directly or indirectly.
22539 (Add_Library_Search_Dir): New procedure, used in place of
22540 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22541 put in the search paths.
22542 (Add_Source_Search_Dir): New procedure, used in place of
22543 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22544 put in the search paths.
22545 (Mark_Directory): Resolve the absolute path the directory before marking
22546 it.
22547
22548 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22549 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22550 Switch. Do not handle any exception.
22551 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22552 so that the switch is recognized as valid.
22553 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22554
22555 2005-11-14 GNAT Script <nobody@adacore.com>
22556
22557 * Make-lang.in: Makefile automatically updated
22558
22559 2005-11-14 Pascal Obry <obry@adacore.com>
22560
22561 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22562 used.
22563 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22564 In both cases the last argument was dropped.
22565
22566 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22567
22568 * namet.h: (Column_Numbe): New type.
22569 (Get_Column_Number): Define to sinput__get_column_number.
22570 (Instantiation): Define to sinput__instantiation.
22571 (Get_Column_Number): Declare.
22572 (Instantiation): Likewise.
22573
22574 2005-11-14 Robert Dewar <dewar@adacore.com>
22575
22576 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22577 syntax, which could cause compiler hangs.
22578
22579 2005-11-14 Vincent Celier <celier@adacore.com>
22580
22581 * prj-ext.adb: Take into account new environment variable
22582 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22583 are defined.
22584 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22585 normalize its path name, making it absolute and resolving symbolic
22586 links, and replace the original if resolved path is different.
22587
22588 2005-11-14 Vincent Celier <celier@adacore.com>
22589
22590 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22591 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22592
22593 2005-11-14 Emmanuel Briot <briot@adacore.com>
22594
22595 * prj-pp.adb (Print): Do not output the with statement if the
22596 associated name is empty, which happens for virtual extending projects.
22597 (Print): Preserve the "extends all" attribute when printing the project.
22598
22599 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22600 a virtual extending project.
22601
22602 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22603
22604 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22605 rhs of an assignment even if the type is unconstrained, when the
22606 context is non-expanding.
22607 In an inlined body, if the context type is private,
22608 resolve with its full view, which must be a composite type.
22609
22610 2005-11-14 Robert Dewar <dewar@adacore.com>
22611 Ed Schonberg <schonberg@adacore.com>
22612
22613 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22614 Do not give obsolescent warning on with of subprogram (since we
22615 diagnose calls)
22616 (Analyze_With_Clause): Add test for obsolescent package
22617 (Install_Context_Clauses): If the unit is the body of a child unit, do
22618 not install twice the private declarations of the parents, to prevent
22619 circular lists of Use_Clauses in a parent.
22620 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22621 compiling body of child unit.
22622 Use new class N_Subprogram_Instantiation
22623 (Expand_With_Clause): If this is a private with_clause for a child unit,
22624 appearing in the context of a package declaration, then the implicit
22625 with_clauses generated for parent units are private as well.
22626 (License_Check): Do not generate message if with'ed unit is internal
22627
22628 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22629 Ed Schonberg <schonberg@adacore.com>
22630 Thomas Quinot <quinot@adacore.com>
22631
22632 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22633 names are internal, because they will not have a corresponding partner
22634 in the actual package.
22635 (Analyze_Formal_Package): Move the setting of the formal package spec's
22636 Generic_Parent field so that it occurs prior to analyzing the package,
22637 to allow proper operation of Install_Parent_Private_Declarations.
22638 (Analyze_Package_Instantiation): Set the instantiated package entity's
22639 Package_Instantiation field.
22640 (Get_Package_Instantiation_Node): Move declaration to package spec.
22641 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22642 field is present.
22643 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22644 instantiation is Unchecked_Conversion, for which no parents are needed.
22645 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22646 parent scopes of a scope being removed prior to inlining an instance
22647 body.
22648 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22649 the current context is itself an instance within a non-instance child
22650 unit, to prevent scope stack errors.
22651 (Save_References): If the node is an aggregate that is an actual in a
22652 call, rewrite as a qualified expression to preserve some type
22653 information, to resolve possible ambiguities in the instance.
22654 (Instance_Parent_Unit): New global variable to record the ultimate
22655 parent unit associated with a generic child unit instance (associated
22656 with the existing Parent_Unit_Visible flag).
22657 (type Instance_Env): New component Instance_Parent_Unit for stacking
22658 parents recorded in the global Instance_Parent_Unit.
22659 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22660 stack.
22661 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22662 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22663 not already set. Replace test of Is_Child_Unit with test of parent's
22664 scope against package Standard. Add comments and a ??? comment.
22665 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22666 on a child instance parent to test that the parent equals
22667 Instance_Parent rather than simply checking that the unit is not a
22668 child unit.
22669 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22670 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22671 a formal interface are ancestors of the corresponding actual.
22672 (Validate_Formal_Interface_Type): Additional legality checks.
22673 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22674 interface types with ancestors.
22675 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22676 to diagnose attempts to use generic within its own declaration.
22677
22678 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22679 Javier Miranda <miranda@adacore.com>
22680
22681 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22682 discriminant.
22683 (Build_Private_Derived_Type): The entity of the created full view of the
22684 derived type does not come from source. If after installing the private
22685 declarations of the parent scope the parent is still private, use its
22686 full view to construct the full declaration of the derived type.
22687 (Build_Derived_Record_Type): Relax the condition that controls the
22688 execution of the check that verifies that the partial view and
22689 the full view agree in the set of implemented interfaces. In
22690 addition, this test now only takes into account the progenitors.
22691 (Derive_Interface_Subprograms): No need to derive subprograms
22692 of ancestors that are interfaces.
22693 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22694 associated code.
22695 Change name Is_Package to Is_Package_Or_Generic_Package
22696 (Complete_Subprograms_Derivation): Handle the case in which the full
22697 view is a transitive derivation of the ancestor of the partial view.
22698 (Process_Full_View): Rename local subprogram Find_Interface_In_
22699 Descendant to Find_Ancestor_Interface to leave the code more clear.
22700 Remove wrong code that avoids the generation of an error message
22701 when the immediate ancestor of the partial view is an interface.
22702 In addition some minor reorganization of the code has been done to
22703 leave it more clear.
22704 (Analyze_Type_Declaration): If type has previous incomplete tagged
22705 partial view, inherit properly its primitive operations.
22706 (Collect_Interfaces): Make public, for analysis of formal
22707 interfaces.
22708 (Analyze_Interface_Declaration): New procedure for use for regular and
22709 formal interface declarations.
22710 (Build_Derived_Record_Type): Add support for private types to the code
22711 that checks if a tagged type implements abstract interfaces.
22712 (Check_Aliased_Component_Type): The test applies in the spec of an
22713 instance as well.
22714 (Access_Type_Declaration): Clean up declaration of malformed type
22715 declared as an access to its own classwide type, to prevent cascaded
22716 crash.
22717 (Collect_Interfaces): For private extensions and for derived task types
22718 and derived protected types, the parent may be an interface that must
22719 be included in the interface list.
22720 (Access_Definition): If the designated type is an interface that may
22721 contain tasks, create Master_Id for it before analyzing the expression
22722 of the declaration, which may be an allocator.
22723 (Record_Type_Declaration): Set properly the interface kind, for use
22724 in allocators, the creation of master id's for task interfaces, etc.
22725
22726 2005-11-14 Javier Miranda <miranda@adacore.com>
22727 Ed Schonberg <schonberg@adacore.com>
22728
22729 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22730 omitted in case of stream attribute subprograms.
22731 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22732 appear immediately after a subprogram body, when there is no previous
22733 subprogram declaration.
22734 Change name Is_Package to Is_Package_Or_Generic_Package
22735 (Process_Formals): A non null qualifier on a non null named access
22736 type is not an error, and is a warning only if Redundant_Constructs
22737 are flagged.
22738
22739 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22740 Ed Schonberg <schonberg@adacore.com>
22741
22742 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22743 nested within Analyze_Package_Specification to install the private
22744 declarations and use clauses within each of the parent units of a
22745 package instance of a generic child package.
22746 (Analyze_Package_Specification): When entering a private part of a
22747 package associated with a generic instance or formal package, the
22748 private declarations of the parent must be installed (by calling new
22749 procedure Install_Parent_Private_Declarations).
22750 Change name Is_Package to Is_Package_Or_Generic_Package
22751 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22752 record is absent in a generic context, which does not indicate a
22753 compiler error.
22754
22755 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22756
22757 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22758 not try to rewrite a renamed stream attribute, because the operations
22759 on the type may not have been generated.
22760 Handle properly a renaming_as_body generated for a stream operation
22761 whose default is abstract because the object type itself is abstract.
22762 (Find_Type): If the type is incomplete and appears as the prefix of a
22763 'Class reference, it is tagged, and its list of primitive operations
22764 must be initialized properly.
22765 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22766 private declaration of a parent unit, prior to compiling the private
22767 part of a child unit, find on the scope stack the proper parent entity
22768 on which to link the use clause.
22769 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22770 detected.
22771 (Analyze_Object_Renaming): An attribute reference is not a legal object
22772 if it is not a function call.
22773
22774 2005-11-14 Robert Dewar <dewar@adacore.com>
22775 Ed Schonberg <schonberg@adacore.com>
22776
22777 * sem_eval.adb: Implement d.f flag
22778 (Subtype_Statically_Match): A generic actual type has unknown
22779 discriminants when the corresponding actual has a similar partial view.
22780 If the routine is called to validate the signature of an inherited
22781 operation in a child instance, the generic actual matches the full view,
22782
22783 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22784 Ed Schonberg <schonberg@adacore.com>
22785 Robert Dewar <dewar@adacore.com>
22786 Thomas Quinot <quinot@adacore.com>
22787
22788 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22789 a procedure call is used as a select statement trigger and is not an
22790 entry renaming or a primitive of a limited interface.
22791 (Valid_Conversion): If the operand has a single interpretation do not
22792 remove address operations.
22793 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22794 statement to inhibit warning.
22795 (Resolve_Unary_Op): Do not produce a warning when
22796 processing an expression of the form -(A mod B)
22797 Use Universal_Real instead of Long_Long_Float when we need a high
22798 precision float type for the generated code (prevents gratuitous
22799 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22800 (Resolve_Concatenation_Arg): Improve error message when argument is an
22801 ambiguous call to a function that returns an array.
22802 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22803 there is an implicit operator in the given scope if we are within an
22804 instance: legality check has been performed on the generic.
22805 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22806 after resolving operand, to avoid false warnings on overloaded calls.
22807
22808 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22809 Javier Miranda <miranda@adacore.com>
22810
22811 PR ada/15604
22812 * sem_type.adb (Covers): In an inlined body, a composite type matches
22813 a private type whose full view is a composite type.
22814 (Interface_Present_In_Ancestor): Protect the frontend against
22815 previously detected errors to ensure that its compilation
22816 with assertions enabled gives the same output that its
22817 compilation without assertions.
22818 (Interface_Present_In_Ancestor): Add support for private types.
22819 Change name In_Actual to In_Generic_Actual (clean up)
22820 (Disambiguate): New predicate In_Actual, to recognize expressions that
22821 appear in the renaming declaration generated for generic actuals, and
22822 which must be resolved in the outer context.
22823
22824 2005-11-14 Robert Dewar <dewar@adacore.com>
22825 Thomas Quinot <quinot@adacore.com>
22826 Hristian Kirtchev <kirtchev@adacore.com>
22827 Ed Schonberg <schonberg@adacore.com>
22828
22829 * sem_util.ads, sem_util.adb: Change name Is_Package to
22830 Is_Package_Or_Generic_Package.
22831 (Check_Obsolescent): New procedure.
22832 (Set_Is_Public): Remove obsolete junk test.
22833 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22834 occurs within a handled_sequence_of_statemets.
22835 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22836 for a parameterless procedure.
22837 (Enter_Name): Recognize renaming declarations created for private
22838 component of a protected type within protected operations, so that
22839 the source name of the component can be used in the debugger.
22840
22841 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22842 Robert Dewar <dewar@adacore.com>
22843
22844 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22845 of a generic subprogram are not visible outside the body.
22846 (Set_Warning_Switch): New procedure (code to set warning mode moved
22847 here from Switch.C so that it can be shared by pragma processing.
22848 (Check_References): Special case warning for non-modified non-imported
22849 volatile objects.
22850 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22851 form with a string literal argument
22852
22853 2005-11-14 Javier Miranda <miranda@adacore.com>
22854
22855 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22856 anonymous access.
22857 (Write): Addition of "not null" to the anonymous access.
22858 (Read): Addition of "not null" to the anonymous access.
22859 (Write): Addition of "not null" to the anonymous access.
22860
22861 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22862 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22863 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22864 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22865 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22866 "not null" to the anonymous access.
22867
22868 2005-11-14 Robert Dewar <dewar@adacore.com>
22869
22870 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22871 offset values
22872
22873 2005-11-14 Vincent Celier <celier@adacore.com>
22874
22875 * switch.adb (Bad_Switch): New procedure
22876 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22877 message when in error.
22878
22879 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22880 Too_Many_Output_Files): Remove declarations, no longer used.
22881 (Scan_Nat): New parameter Switch
22882 (Scan_Pos): Ditto
22883 (Bad_Switch): New procedure
22884
22885 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22886 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22887 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22888 to Osint.Fail. Do not handle any exception.
22889
22890 2005-11-14 Vincent Celier <celier@adacore.com>
22891
22892 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22893 designates a non existent directory.
22894
22895 2005-11-14 Robert Dewar <dewar@adacore.com>
22896
22897 * xgnatugn.adb: Replace invalid membership test by 'Valid
22898
22899 2005-11-14 Vincent Celier <celier@adacore.com>
22900
22901 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22902 there is no object directory.
22903
22904 2005-11-14 Robert Dewar <dewar@adacore.com>
22905
22906 * usage.adb: Minor adjustment to output format, use nn instead of nnn
22907 (so that -gnateInnn does not run into next column)
22908
22909 2005-11-14 Ed Falis <falis@adacore.com>
22910
22911 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22912 "constrained"
22913
22914 2005-11-14 Cyrille Comar <comar@adacore.com>
22915
22916 * s-chepoo.ads: Add comments on Dereference.
22917 Remove unnecessary inherited abstract primitives.
22918 Cosmetic cleanup.
22919
22920 2005-11-14 Robert Dewar <dewar@adacore.com>
22921
22922 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22923 node parameter, not needed, since it is available as Declaration_Node.
22924
22925 2005-11-14 Geert Bosch <bosch@adacore.com>
22926
22927 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22928 grammatically correct.
22929
22930 2005-11-14 Vincent Celier <celier@adacore.com>
22931
22932 * s-fileio.ads: Correct spelling error in comment
22933
22934 2005-11-14 Cyrille Comar <comar@adacore.com>
22935 Robert Dewar <dewar@adacore.com>
22936 Vincent Celier <celier@adacore.com>
22937 Ben Brosgol <brosgol@adacore.com>
22938 Jose Ruiz <ruiz@adacore.com>
22939 Pascal Obry <obry@adacore.com>
22940
22941 * gnat_ugn.texi:
22942 Document that -fstack-check is needed for strict compliance with the
22943 Ada 95 Reference Manual.
22944 Correct reference to VAX systems to meet HP guidelines
22945 Add documentation for new gnatmake switches -vl, -vm and -vh
22946 Replace DEC Ada by HP Ada
22947 Replace DIGITAL by HP
22948 Remove empty section on tools in compatibility section
22949 Clarify the Windows convention semantics.
22950 Document the Win32 calling convention.
22951 The Stdcall, Win32 and DLL convention are synonyms.
22952 Add a note in -gnatR description about zero size record components
22953 Note on new >= and <= warnings for -gnatwc
22954 Document that equal sign after -gnatm is optional.
22955 Note that strip is working fine on DLL built with a Library
22956 Project. The restriction apply only to DLL built with gnatdll.
22957 Update section about the way to debug a DLL.
22958 Update information about the DLL convention.
22959 Document -C switch for gnatprep
22960 Document new attribute Library_ALI_Dir
22961 Update elaboration doc to include implicit Elaborate pragmas now
22962 generated for subprogram instantiations.
22963 Document limitation on executable names that include spaces for --GCC,
22964 --GNATBIND, and --GNATLINK switches.
22965 Document that -w causes -gnatws to be added at start of gcc switches
22966
22967 * gnat_rm.texi: Document that -mieee is needed for generating infinite
22968 and NaN values in case of overflow on machines that are not fully
22969 compliant with the IEEE floating-point standard.
22970 Create a section describing the set of compiler options needed for
22971 strict compliance with the Ada 95 Reference Manual.
22972 Add documentation for pragma Obsolescent applied to a package
22973 Clarify potential issues of mixed language programs related to the
22974 I/O buffering enabling in the elaboration of the GNAT runtime.
22975 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22976 This documentation only patch adds extra documentsion for pragma
22977 Restrictions (No_Elaboration_Code), explaining why it is not possible
22978 to document this restriction in terms of allowed source constructs.
22979 Document string literal form of pragma Warnings
22980 Document new attribute Library_ALI_Dir
22981 Add documentation on stable attributes in project files that was missing
22982
22983 * gnat-style.texi: Indicate that paragraphs within a single comment
22984 should be separated by empty comment lines
22985
22986 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22987 /05 respectively)
22988
22989 * bindusg.adb: Minor cleanup, put -m before -M for consistency
22990
22991 2005-11-14 Robert Dewar <dewar@adacore.com>
22992
22993 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22994 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22995 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22996 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22997 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22998 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22999 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
23000 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
23001 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
23002 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
23003 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
23004 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
23005 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
23006 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
23007 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
23008 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
23009 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
23010 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
23011 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
23012 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
23013 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23014 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
23015 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
23016 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
23017 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
23018 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
23019 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
23020 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
23021 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
23022 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
23023 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
23024 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
23025 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
23026 system-interix.ads, system-solaris-sparc.ads,
23027 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
23028 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
23029 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
23030 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
23031 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
23032 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
23033 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
23034 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23035 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23036 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
23037 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
23038 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
23039 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
23040 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
23041 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
23042 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23043 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
23044 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
23045 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
23046 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
23047 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
23048 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
23049 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
23050 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
23051 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
23052 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23053 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23054 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
23055 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
23056 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
23057 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
23058 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
23059 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23060 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
23061 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
23062 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
23063 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
23064 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
23065 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
23066 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
23067 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
23068 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
23069 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
23070 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
23071 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
23072 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
23073 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
23074 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
23075 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
23076 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
23077 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
23078 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
23079 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
23080 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
23081 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
23082 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
23083 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
23084 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
23085 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
23086 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
23087 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
23088 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
23089 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23090 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
23091 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
23092 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
23093 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
23094 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
23095 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
23096 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
23097 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23098 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
23099 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
23100 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
23101 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
23102 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23103 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
23104 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
23105 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
23106 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23107 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
23108 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
23109 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
23110 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23111 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
23112 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
23113 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
23114 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23115 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
23116 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
23117 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
23118 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23119 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
23120 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
23121 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
23122 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
23123 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
23124 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
23125 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
23126 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
23127 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
23128 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
23129 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
23130 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
23131 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
23132 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
23133 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
23134 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
23135 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
23136 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23137 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
23138 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
23139 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
23140 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
23141 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
23142 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
23143 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
23144 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
23145 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
23146 a-numaux-darwin.ads, a-numaux-darwin.adb,
23147 a-swuwha.ads, a-stunha.ads: Minor reformatting
23148
23149 2005-11-14 Robert Dewar <dewar@adacore.com>
23150
23151 PR ada/18434
23152 * osint-m.adb: Add pragma Elaborate_All for Osint
23153
23154 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
23155
23156 PR ada/23995
23157 * trans.c (call_to_gnu): Restore statement lost in translation.
23158
23159 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
23160
23161 * init.c: Use the Linux-specific section for the IA-64/Linux target.
23162 (__gnat_adjust_context_for_raise): Add conditional code so that the
23163 IA-64 is also supported.
23164
23165 2005-11-03 James E Wilson <wilson@specifix.com>
23166
23167 PR ada/23427
23168 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
23169 TREE_OVERFLOW check.
23170
23171 2005-09-21 Olivier Hainque <hainque@adacore.com>
23172
23173 PR ada/22418
23174 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23175 as we create them to store a size in bits.
23176
23177 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23178
23179 PR ada/21937
23180 PR ada/22328
23181 PR ada/22381
23182 PR ada/22383
23183 PR ada/22419
23184 PR ada/22420
23185 * utils2.c (build_return_expr): New helper function.
23186 * gigi.h (build_return_expr): Declare it.
23187 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23188 of manually building the RETURN_EXPR tree.
23189 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23190 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23191 build_binary_op for the "target pointer" case. Use build_return_expr
23192 instead of manually building the RETURN_EXPR tree.
23193
23194 2005-09-16 Laurent Guerby <laurent@guerby.net>
23195
23196 PR ada/23788
23197 * s-tpinop.ads: Make this unit Preelaborate.
23198
23199 2005-09-16 Andreas Jaeger <aj@suse.de>
23200
23201 * socket.c: Add string.h for memcpy.
23202
23203 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23204
23205 * dec-io.ads, dec-io.adb: Removed, no longer used.
23206
23207 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23208
23209 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23210
23211 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23212 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23213 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23214 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23215 dependent units are Preelaborate.
23216 (Initialize): Call Interrupt_Managemeent.Initialize and
23217 OS_Primitives.Initialize to ensure proper initialization of this unit.
23218 Remove use of System.Soft_Links
23219 Make this unit Preelaborate.
23220
23221 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23222 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23223 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23224 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23225 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23226 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23227 Add pragma Preelaborate, since these packages are suitable for this
23228 categorization.
23229 Update comments.
23230
23231 * s-traent-vms.ads, s-intman-dummy.adb,
23232 s-taprop-dummy.adb: Make this unit Preelaborate.
23233
23234 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23235 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23236 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23237 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23238 s-intman-solaris.adb, s-intman-irix-athread.adb,
23239 s-intman-irix.adb: Mark this unit Preelaborate.
23240 (Initialize): New procedure.
23241 Update comments.
23242
23243 * s-taspri-linux.ads: Removed.
23244
23245 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23246 as done by other implementations (e.g. posix).
23247
23248 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23249 responsible for deferring abort.
23250 Mark this unit Preelaborate.
23251
23252 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23253 proper initialization of the tasking run-time.
23254
23255 * s-tasdeb.ads: Mark this unit Preelaborate.
23256 (Known_Tasks): Add explicit default value to avoid elaboration code.
23257
23258 * s-inmaop-vms.adb (Elaboration code): Add call to
23259 Interrupt_Management.Initialize since the elaboration code depends on
23260 proper initialization of this package.
23261
23262 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23263 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23264 s-osprim-posix.adb: Make this unit Preelaborate.
23265
23266 * a-calend.adb: Add call to OS_Primitives.Initialize
23267
23268 * a-elchha.adb: Update use of Except.Id.Full_Name.
23269 Minor reformatting.
23270 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23271
23272 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23273 Move with clauses outside Warnings Off now that dependent units are
23274 Preelaborate.
23275 Use raise xxx with "..."; Ada 2005 form.
23276
23277 * a-taside.ads, a-taside.adb:
23278 Remove some dependencies, to make it easier to make this unit truly
23279 Preelaborate.
23280 Rewrite some code to be conformant with Preelaborate rules.
23281
23282 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23283 marked Preelaborate in the future.
23284
23285 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23286 these units Preelaborate.
23287
23288 * s-exctab.adb: Update use of Except.Id.Full_Name.
23289
23290 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23291 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23292 Set_Exc_Stack_Addr): Removed, no longer used.
23293 Remove reference to *Machine_State_Addr*, no longer needed.
23294
23295 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23296 (Exception_Data): Full_Name is now a System.Address so that this unit
23297 can be made Preelaborate.
23298 Clean up/simplify code thanks to Full_Name being a System.Address.
23299 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23300
23301 * s-taskin.ads, s-taskin.adb:
23302 Move with clauses outside Warnings Off now that dependent units are
23303 Preelaborate.
23304 Make this unit Preelaborate.
23305 (Initialize): New proceduure, replace elaboration code and makes the
23306 set up of the tasking run-time cleaner.
23307 (Detect_Blocking): Now a function instead of a deferred boolean, to
23308 obey Preelaborate rules.
23309
23310 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23311 soft links, no longer used.
23312
23313 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23314 packages are suitable for this categorization.
23315
23316 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23317 since we compile run-time sources in Ada 2005 mode.
23318 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23319 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23320 duplication.
23321 Remove reference to *Machine_State_Addr*, no longer needed.
23322
23323 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23324
23325 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23326 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23327 Remove reference to System.Exceptions.
23328
23329 * s-mastop-x86.adb: Removed, no longer used.
23330
23331 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23332
23333 * a-excach.adb: Minor reformatting.
23334
23335 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23336 instead fix new warnings that were hidden by this change.
23337 (AAA, ZZZ): Removed, replaced by...
23338 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23339 are used instead of constants, to help make Ada.Exception truly
23340 preelaborate.
23341 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23342 Raise_Storage_Error): File is now a System.Address, to simplify code.
23343 (Elab code): Removed, no longer used.
23344 (Null_Occurrence): Remove Warnings Off and make this construct
23345 preelaborate.
23346 Remove code related to front-end zero cost exception handling, since
23347 it is no longer used.
23348 Remove -gnatL/-gnatZ switches.
23349
23350 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23351 Update use of Except.Msg.
23352
23353 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23354 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23355 to front-end zero cost exception handling, since it is no longer used.
23356 Remove -gnatL/-gnatZ switches.
23357
23358 * lib-writ.ads: Minor reformatting
23359 Remove doc of UX
23360
23361 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23362
23363 * Make-lang.in: Remove references to s-except.ads
23364
23365 * s-except.ads: Removed, no longer used.
23366
23367 * s-mastop.ads, s-mastop.adb:
23368 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23369 Remove reference to System.Exceptions.
23370
23371 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23372 switch-b.adb: Remove code related to front-end zero cost exception
23373 handling, since it is no longer used.
23374 Remove -gnatL/-gnatZ switches.
23375
23376 2005-09-01 Robert Dewar <dewar@adacore.com>
23377 Gary Dismukes <dismukes@adacore.com>
23378 Javier Miranda <miranda@adacore.com>
23379
23380 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23381 type by valid test and generate warning.
23382 (Tagged_Membership): Generate call to the run-time
23383 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23384 Change formal name Subtype_Mark to Result_Definition in several calls to
23385 Make_Function_Specification.
23386 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23387 check for proper accessibility of the operand of a class-wide allocator.
23388 The check can be left out if checks are suppressed or if the expression
23389 has a specific tagged type whose level is known to be safe.
23390
23391 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23392 generates the run-time check associated with null-excluding entities.
23393 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23394 check on the level of the return expression of a class-wide function
23395 can be elided. The check usually isn't needed if the expression has a
23396 specific type (unless it's a conversion or a formal parameter). Also
23397 add a test for whether accessibility checks are suppressed. Augment
23398 the comments to describe the conditions for performing the check.
23399
23400 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23401 Javier Miranda <miranda@adacore.com>
23402 Gary Dismukes <dismukes@adacore.com>
23403 Ed Schonberg <schonberg@adacore.com>
23404
23405 * a-tags.adb (IW_Membership): Give support to
23406 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23407 subprogram has been extended to look for the tag in the ancestors tag
23408 table.
23409 Update the structure of the GNAT Dispatch Table to reflect the
23410 additional two tables used in dispatching selects.
23411 Introduce appropriate array types and record components in
23412 Type_Specific_Data to reflect the two tables.
23413 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23414 the TSD of a tag, indexed by position.
23415 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23416 operation kind in the TSD of a tag, indexed by position.
23417
23418 * a-tags.ads: Introduce an enumeration type to capture different
23419 primitive operation kinds. Define a constant reflecting the number of
23420 predefined primitive operations.
23421 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23422 of an entry wrapper.
23423 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23424 callable entity of a primitive operation.
23425
23426 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23427 primitive operations used in dispatching selects for limited
23428 interfaces, limited tagged, task and protected types what implement a
23429 limited interface.
23430 (Freeze_Type): Generate the bodies of the primitive operations used in
23431 dispatching selects for limited tagged, task and protected types that
23432 implement a limited interface. Generate statements to populate the two
23433 auxiliary tables used for dispatching in select statements.
23434 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23435 associated with predefined interface primitive operations.
23436 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23437 Set_Result_Definition.
23438 (Build_Variant_Record_Equality): Change Subtype_Mark to
23439 Result_Definition.
23440 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23441 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23442 (Build_Assignment): Simplify the code that adds the run-time-check.
23443 (Expand_N_Object_Declaration): Code cleanup.
23444
23445 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23446 entries when there is a protected type that implements a limited
23447 interface.
23448
23449 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23450 common routines used in expansion of dispatching selects.
23451 (Add_Private_Declarations): Select the appropriate protection type when
23452 there is a protected type that implements a limited interface.
23453 (Build_Parameter_Block): Generate a wrapped parameter block.
23454 (Build_Protected_Subprogram_Body): Select the appropriate type for
23455 locking entries when there is a protected type that implements a
23456 limited interface.
23457 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23458 classified as entry wrappers.
23459 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23460 asynchronous selects.
23461 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23462 dispatching conditional selects.
23463 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23464 protection when there is a protected type that implements limited
23465 interfaces.
23466 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23467 timed selects.
23468 (Extract_Dispatching_Call): Extract the entity of the name of a
23469 dispatching call, the object parameter, actual parameters and
23470 corresponding formals.
23471 (Make_Initialize_Protection): Correct logic of protection initialization
23472 when there is a protected type that implements a limited interface.
23473 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23474 values of actual parameters.
23475 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23476 block and assign them to the original actual parameters.
23477
23478 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23479 (Build_Protected_Sub_Specification): Change the type and name of the
23480 last formal to account for the increased variety of protection modes.
23481
23482 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23483 entities. Used to save the value of the Is_Hidden attribute when the
23484 limited-view is installed.
23485 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23486 the attribute of procedures classified as entry wrappers.
23487 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23488 entity of a primitive wrapper.
23489 (Write_Entity_Flags): Output the name and value of the
23490 Is_Primitive_Wrapper attribute.
23491 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23492 Entity.
23493 (Underlying_Type): If we have an incomplete entity that comes from
23494 the limited view then we return the Underlying_Type of its non-limited
23495 view if it is already available.
23496 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23497 including operators.
23498 (Write_Field26_Name): Add entry for Overridden_Operation
23499 (Overridden_Operation): New attribute of functions and procedures.
23500
23501 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23502 predefined position in the dispatch table for the primitive operations
23503 used in dispatching selects.
23504 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23505 predefined primitive operations and replace it with
23506 Default_Prim_Op_Count.
23507 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23508 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23509 the names of the generated primitive operations used in dispatching
23510 selects.
23511 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23512 case of abstract interface types. They will be inherit by the objects
23513 implementing the interface.
23514 (Make_DT): There is no need to inherit the dispatch table of the
23515 ancestor interface for the elaboration of abstract interface types.
23516 The dispatch table will be inherited by the object implementing the
23517 interface.
23518 (Copy_Secondary_DTs): Add documentation.
23519 (Validate_Position): Improve this static check in case of
23520 aliased subprograms because aliased subprograms must have
23521 the same position.
23522 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23523 the entries associated with predefined primitives of all the secondary
23524 dispatch tables.
23525 (Build_Anonymous_Access_Type): Removed.
23526 (Expand_Interface_Actuals): With the previous cleanup there is no need
23527 to build an anonymous access type. This allows further cleanup in the
23528 code generated by the expander.
23529 (Expand_Interface_Conversion): If the actual is an access type then
23530 build an internal function to handle the displacement. If the actual
23531 is null this function returns null because no displacement is
23532 required; otherwise performs a type conversion that will be
23533 expanded in the code that returns the value of the displaced actual.
23534 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23535 conversions that have no effect in the generated code because no
23536 displacement is required. Code cleanup; use local variables to
23537 avoid repeated calls to the subprogram directly_designated_type().
23538
23539 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23540 Classify the primitive operations used in dispatching selects as
23541 predefined.
23542 (Implements_Limited_Interface): Determine whether some type either
23543 directly implements a limited interface or extends a type that
23544 implements a limited interface.
23545 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23546 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23547 expression is limited.
23548 (Find_Interface_Tag): Add code to handle class-wide types and
23549 entities from the limited-view.
23550
23551 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23552 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23553 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23554 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23555 Set_Prim_Op_Kind.
23556
23557 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23558 of procedure name or prefix that appears as a trigger in a triggering
23559 alternative.
23560
23561 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23562
23563 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23564
23565 * s-tataat.adb, a-tasatt.adb:
23566 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23567
23568 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23569 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23570 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23571 longer used.
23572
23573 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23574 Jose Ruiz <ruiz@adacore.com>
23575
23576 * s-taprop-vxworks.adb:
23577 Move with clauses outside Warnings Off now that dependent units are
23578 Preelaborate.
23579 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23580 initialization of this unit.
23581 (Specific): Add new procedures Initialize and Delete so that this
23582 package can be used for VxWorks 5.x and 6.x
23583 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23584 differences between VxWorks 5.x and 6.x
23585 Minor reformatting.
23586 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23587 caller.
23588 Use only Preelaborate-compatible constructs.
23589
23590 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23591 Primitives.Operations.
23592 (Delete, Initialize): New procedures.
23593
23594 * s-osinte-vxworks.adb: Body used to handle differences between
23595 VxWorks 5.x and 6.x
23596 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23597
23598 * s-osinte-vxworks.ads: Minor reformatting.
23599 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23600 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23601 and 6.
23602 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23603 between Vxworks 5 and 6.
23604 (taskLock, taskUnlock): Removeed, no longer used.
23605
23606 * adaint.c: The wait.h header is not located in the sys directory on
23607 VxWorks when using RTPs.
23608 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23609 using RTPs.
23610 (__gnat_dup): dup is available on Vxworks when using RTPs.
23611 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23612
23613 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23614
23615 * expect.c: The wait.h header is not located in the sys directory on
23616 VxWorks when using RTPs.
23617
23618 2005-09-01 Thomas Quinot <quinot@adacore.com>
23619
23620 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23621
23622 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23623
23624 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23625 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23626 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23627 g-soccon-freebsd.ads: Add new constants:
23628 IP_MULTICAST_IF
23629 SO_RCVTIMEO/SO_SNDTIMEO
23630 IOV_MAX
23631
23632 * gen-soccon.c:
23633 Move all target-specific file inclusions and macro definitions to
23634 gsocket.h, in order to ensure that any C code in socket.c will see a
23635 set of constants that is consistent with the contents of g-soccon.ads.
23636
23637 * gsocket.h: Code imported from gen-soccon.c:
23638 Move all target-specific file inclusions and macro definitions to
23639 gsocket.h, in order to ensure that any C code in socket.c will see a set
23640 of constants that is consistent with the contents of g-soccon.ads.
23641 This change also makes gen-soccon self-contained (removing dependencies
23642 upon GCC internal headers).
23643
23644 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23645 iovecs at a time.
23646 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23647
23648 * socket.c: Minor reformatting.
23649
23650 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23651 Thomas Quinot <quinot@adacore.com>
23652
23653 * fname-sf.adb, mlib-tgt.ads,
23654 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23655 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23656 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23657 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23658 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23659 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23660 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23661 makegpr.adb: Remove redundant use_clauses.
23662
23663 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23664
23665 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23666 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23667 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23668 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23669 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23670 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23671 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23672 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23673 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23674 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23675 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23676 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23677 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23678 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23679 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23680 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23681 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23682 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23683 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23684 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23685 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23686 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23687 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23688 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23689 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23690 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23691 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23692 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23693 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23694 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23695 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23696 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23697 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23698 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23699 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23700 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23701 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23702 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23703 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23704 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23705 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23706 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23707 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23708 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23709 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23710 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23711 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23712 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23713 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23714 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23715 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23716 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23717 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23718 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23719 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23720 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23721 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23722 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23723 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23724 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23725 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23726 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23727 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23728 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23729 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23730 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23731 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23732 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23733 and always use the no parameter form for consistency.
23734
23735 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23736
23737 2005-09-01 Robert Dewar <dewar@adacore.com>
23738
23739 * binde.adb: Minor reformatting
23740 (Find_Elab_Order): Output warning if -p used with static elab order
23741
23742 2005-09-01 Robert Dewar <dewar@adacore.com>
23743
23744 * checks.adb (Check_Needed): New procedure, deals with removing checks
23745 based on analysis of short-circuited forms. Also generates warnings for
23746 improper use of non-short-circuited forms.
23747 Code clean ups.
23748
23749 2005-09-01 Robert Dewar <dewar@adacore.com>
23750
23751 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23752 with 'Valid tests.
23753
23754 2005-09-01 Robert Dewar <dewar@adacore.com>
23755
23756 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23757 spec.
23758 Implement new insertion char < (conditional warning)
23759 * errutil.adb, erroutc.adb: Implement new insertion char <
23760 (conditional warning).
23761 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23762 (Error_Msg_Warn): New variable for < insertion char.
23763 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23764 warning).
23765 (Check_For_Source): Change value of Source_Id only after the current
23766 source has been dealt with.
23767
23768 2005-09-01 Robert Dewar <dewar@adacore.com>
23769 Doug Rupp <rupp@adacore.com>
23770
23771 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23772 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23773 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23774 (Valid_D, Valid_F, Valid_G): New functions
23775
23776 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23777 Hristian Kirtchev <kirtchev@adacore.com>
23778 Javier Miranda <miranda@adacore.com>
23779
23780 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23781 from object notation, the original node is unanalyzed and carries no
23782 semantic information, so that accessiblity checks must be performed on
23783 the type of the actual itself.
23784 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23785 compatibility with Build_Protected_Sub_Specification.
23786 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23787 overloaded primitives.
23788 (Register_Interface_DT_Entry): Use the new name of the formal
23789 the the calls to Expand_Interface_Thunk
23790
23791 * exp_dbug.ads: Augment comments on encoding of protected types to
23792 include the generation of dispatching subprograms when the type
23793 implements at least one interface.
23794
23795 * lib.ads: Extend information in Load_Stack to include whether a given
23796 load comes from a Limited_With_Clause.
23797
23798 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23799 whether a potential circularity is harmless, because it includes units
23800 loaded through a limited_with clause. Extends previous treatment which
23801 did not handle properly arbitrary combinations of limited and
23802 non-limited clauses.
23803
23804 2005-09-01 Nicolas Setton <setton@adacore.com>
23805
23806 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23807 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23808 typ___XB_lowerbound__upperbound.
23809
23810 2005-09-01 Thomas Quinot <quinot@adacore.com>
23811
23812 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23813 dummy access formal for RACW/RAS TypeCode TSS.
23814 (Build_TypeCode_Call): Do not generate dummy null access actual for
23815 calls to the TypeCode TSS.
23816
23817 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23818
23819 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23820 fully qualified name, to distinguish instances with the same local name.
23821
23822 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23823 fully qualified.
23824
23825 2005-09-01 Robert Dewar <dewar@adacore.com>
23826
23827 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23828 packed arrays.
23829
23830 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
23831
23832 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23833 (Free): New deallocation procedure for filter elements
23834 (Close): Deallocate any existing filter for the concerned connection
23835
23836 2005-09-01 Laurent Pautet <pautet@adacore.com>
23837
23838 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23839 position set is provided, we compute one in order to reduce the maximum
23840 length of the keys. This computation first selects a character
23841 position between 1 and the minimum length of the keys in order to
23842 avoid reducing one of the keys to an empty string.
23843 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23844 does not converge. The initialization procedure now comes with a
23845 maximum number of iterations such that when exceeded, an exception is
23846 raised in Compute. The user can initialize this ratio to another value
23847 and try again
23848 Reformating and updated headers.
23849
23850 2005-09-01 Javier Miranda <miranda@adacore.com>
23851
23852 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23853 that given an entity T creates and returns an Itype that duplicates the
23854 contents of T. The returned Itype has the null-exclusion
23855 attribute set to True, and its Etype attribute references T
23856 to keep the association between the two entities.
23857 Update copyright notice
23858
23859 * sem_aggr.adb (Check_Can_Never_Be_Null,
23860 Aggregate_Constraint_Checks, Resolve_Aggregate,
23861 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23862
23863 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23864
23865 2005-09-01 Gary Dismukes <dismukes@adacore.com>
23866 Robert Dewar <dewar@adacore.com>
23867 Hristian Kirtchev <kirtchev@adacore.com>
23868
23869 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23870 Result_Definition.
23871
23872 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23873 function specs.
23874 Call Set_Result_Definition instead of Set_Subtype_Mark.
23875 (P_Subprogram_Specification): Add parsing of anonymous access result
23876 plus null exclusions. Call Set_Result_Definition instead of
23877 Set_Subtype_Mark.
23878
23879 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23880 (P_Access_Type_Definition): Add parsing for an anonymous access result
23881 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23882 instead of Set_Subtype_Mark.
23883
23884 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23885 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23886 (Result_Definition): New function for N_Function_Specifications.
23887 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23888 N_Function_Specification.
23889 (Set_Null_Exclusion_Present): Allow this flag for
23890 N_Function_Specification.
23891 (Set_Result_Definition): New procedure for N_Function_Specifications.
23892 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23893 and N_Function_Specification.
23894
23895 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23896 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23897 Add support for LIMITED NEW for Ada 2005 AI-419
23898 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23899 syntax for anonymous access results.
23900 Replace Subtype_Mark field by Result_Definition in
23901 N_Function_Specification and N_Access_Definition specs.
23902 Add Null_Exclusion_Present to spec of N_Function_Specification.
23903 (Result_Definition): New function for N_Function_Specification and
23904 N_Access_Function_Definition.
23905 (Set_Result_Definition): New procedure for N_Function_Specification and
23906 N_Access_Function_Definition.
23907
23908 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23909 Result_Definition for cases of N_Access_Function_Definition and
23910 N_Function_Specification.
23911 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23912
23913 2005-09-01 Vincent Celier <celier@adacore.com>
23914
23915 * lib-writ.adb: Update Copyright notice
23916 (Write_With_Lines): On platforms where file names are case-insensitive,
23917 record the file names in lower case.
23918 (Write_ALI): For D lines, on platforms where file names are
23919 case-insensitive, record the file names in lower case.
23920
23921 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23922 Emmanuel Briot <briot@adacore.com>
23923
23924 * lib-xref.adb (Output_Overridden_Op): Display information on
23925 overridden operation.
23926
23927 * lib-xref.ads: Add documentation on overridden operations.
23928
23929 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23930 information.
23931
23932 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23933 overriding entity information.
23934
23935 2005-09-01 Vincent Celier <celier@adacore.com>
23936
23937 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23938 including those that are inherited.
23939
23940 2005-09-01 Robert Dewar <dewar@adacore.com>
23941
23942 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23943
23944 * par-prag.adb: Implement new pragma Debug_Policy
23945
23946 * sem_prag.adb Implement new pragma Debug_Policy
23947 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23948 Component_Size attribute specification. Give warning for ignored pragma
23949 Pack.
23950
23951 * snames.h, snames.ads, snames.adb: Introduce entries in
23952 Preset_Names for Name_Disp_Asynchronous_Select,
23953 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23954 Name_Disp_Timed_Select.
23955 New pragma Debug_Policy
23956
23957 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23958 explicitly.
23959 Switch -gnata also sets Debug_Pragmas_Enabled
23960
23961 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23962 handle an explicit -gnata when compiling predefined files.
23963
23964 2005-09-01 Vincent Celier <celier@adacore.com>
23965
23966 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23967 directories of projects that have no Ada sources.
23968
23969 2005-09-01 Robert Dewar <dewar@adacore.com>
23970
23971 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23972 (makes a difference for wide characters)
23973
23974 * widechar.adb, widechar.ads:
23975 Add Wide_Char_Byte_Count feature to count chars vs bytes
23976
23977 2005-09-01 Thomas Quinot <quinot@adacore.com>
23978 Ed Schonberg <schonberg@adacore.com>
23979 Robert Dewar <dewar@adacore.com>
23980
23981 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23982 'Address attribute reference with an overloaded prefix, use the
23983 location of the prefix (not the location of the attribute reference) as
23984 the error location.
23985 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23986 a function renaming thereof, is a valid prefix for 'Size (where it is
23987 intepreted as a function call).
23988 (Statically_Denotes_Entity): New predicate to determine whether the
23989 prefix of an array attribute can be considered static.
23990
23991 PR ada/9087
23992 (Eval_Attr): Fix failure to evaluate Component_Size for
23993 unconstrained arrays (resulted in wrong value in packed case, since
23994 back end cannot handle this case)
23995
23996 2005-09-01 Robert Dewar <dewar@adacore.com>
23997
23998 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23999 error msgs for most common cases.
24000 Use new errout insertion char < (conditional warning)
24001
24002 2005-09-01 Javier Miranda <miranda@adacore.com>
24003 Ed Schonberg <schonberg@adacore.com>
24004
24005 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
24006 become local to the whole package.
24007 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
24008 the package was already analyzed the new algorithm "replaces" the
24009 real entities by the shadow ones. This is required to ensure that
24010 the order of these entities in the homonym chains does not change;
24011 otherwise we can have undefined references at linking time because
24012 in case of conflicts the external name of the entities will have
24013 a suffix that depends on the order of the entities in the chain.
24014 (Remove_Limited_With_Clause): Complementary code that completes the
24015 new algorithm and replaces the shadow entities by the real ones.
24016 (Install_Limited_Withed_Unit): When unchaining entities before the
24017 installation of the shadow entities, only regular entities of the
24018 public part must be taken into account. This is required to
24019 keep this routine in synch with the work done by Remove_Limited_
24020 With_Clause
24021 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
24022 even if unit is analyzed, because the analysis of the unit is
24023 idempotent in any case, and the limited view of the unit may have to
24024 be installed for proper visibility.
24025 (Expand_Limited_With_Clause): Even if the unit in the implicit
24026 with_clause has been analyzed already, a limited view of the package
24027 must be built for the current context, if it does not exist yet.
24028
24029 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24030 Javier Miranda <miranda@adacore.com>
24031 Gary Dismukes <dismukes@adacore.com>
24032
24033 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
24034 defining entity for the instance body, make a new defining identifier
24035 rather than copying the entity of the spec, to prevent accidental
24036 sharing of the entity list.
24037 (Check_Private_View): When exchanging views of private types, build the
24038 list of exchanged views as a stack, to ensure that on exit the exchanges
24039 are undone in the proper order.
24040 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
24041 Restore the compilation environment in case of instantiation_error.
24042 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
24043 for an anonymous access result.
24044 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
24045 (Formal_Entity): Handle properly the case of a formal package that
24046 denotes a generic package renaming.
24047
24048 2005-09-01 Thomas Quinot <quinot@adacore.com>
24049
24050 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
24051 clause if the array aggregate is surrounded by parentheses.
24052
24053 2005-09-01 Cyrille Comar <comar@adacore.com>
24054 Gary Dismukes <dismukes@adacore.com>
24055 Ed Schonberg <schonberg@adacore.com>
24056 Javier Miranda <miranda@adacore.com>
24057
24058 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
24059 underlying type
24060 to check if a type is Constrained in cases related to code generation
24061 (rather than semantic checking) since otherwise we do not generate
24062 similar code for mutable private types depending if their
24063 discriminants are visible or not.
24064 (Check_Abstract_Overriding): Do not complain about failure to override
24065 the primitive operations used in dispatching selects since they will
24066 always be overriden at the freeze point of the type.
24067 (Access_Definition): Separate out handling for resetting the scope
24068 of an anonymous access function result type. Retrieve the scope
24069 of the associated function rather than using Current_Scope, which
24070 does not have a consistent value (depends on whether we're in the
24071 middle of analyzing formal parameters). Add ??? comment about
24072 finding a cleaner way to handle the special cases of scope setting.
24073 (Process_Incomplete_Dependents): A protected operation is never a
24074 dispatching operation (only its wrapper may be).
24075 (Build_Derived_Record_Type): In case of tagged private types that
24076 implement interfaces add derivation of predefined primitive
24077 operations.
24078 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
24079 by two parameters that are used in case of derivation from abstract
24080 interface types: No_Predefined_Prims is used to avoid the derivation
24081 of predefined primitives from the interface, and Predefined
24082 Prims_Only is used to complete the derivation predefined primitives
24083 in case of private tagged types implementing interfaces.
24084 Fix typo in comments
24085 (Find_Interface_In_Descendant): Protect the frontend against
24086 wrong code with large circularity chains.
24087 (Is_Private_Overriding): Add support for entities overriding interface
24088 subprograms. The test failed because Entities associated with overriden
24089 interface subprograms are always marked as hidden (and used to build
24090 the secondary dispatch table); in this case the overriden entity is
24091 available through the field abstract_interface_alias (cf. override_
24092 dispatching_operation)
24093 (Access_Definition): Set the scope of the type to Current_Scope for the
24094 case of a function with an anonymous access result type.
24095 (Access_Subprogram_Declaration): Handle creation of the type entity for
24096 an access-to-function type with an anonymous access result.
24097 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
24098 in handling for N_Access_Function_Definition.
24099 (Analyze_Subtype_Declaration): Modify the text of error message.
24100 (Derived_Type_Declaration): Modify the text of error message.
24101 (Process_Subtype): Modify the text of error message plus cleanup
24102 of one redundant error message.
24103 (Analyze_Component_Declaration): Code cleanup.
24104 (Analyze_Object_Declaration): Code cleanup.
24105 (Analyze_Subtype_Declaration): Propagate the null-exclusion
24106 attribute in case of access types. Code cleanup.
24107 (Array_Type_Declaration): Code cleanup.
24108 (Process_Discriminants): Create the new null-excluding itype
24109 if required. Code cleanup.
24110 (Process_Subtype): Create the new null-excluding itype if
24111 required. Code cleanup.
24112 (Build_Derived_Record_Type): Code cleanup to avoid calling
24113 twice the subprogram derive_subprograms in case of private
24114 types that implement interfaces. In this particular case the
24115 subprogram Complete_Subprograms_Derivation already does the
24116 job associated with the second call.
24117
24118 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
24119 conversion to the full view when generating an operation for a
24120 discriminant whose type may currently be private.
24121
24122 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24123 Javier Miranda <miranda@adacore.com>
24124
24125 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
24126 V (Obj.F), the rewriting does not involve the indexed component, but
24127 only the selected component itself.
24128 Do not apply the transformation if the analyzed node is an actual of a
24129 call to another subprogram.
24130 (Complete_Object_Operation): Retain the entity of the
24131 dispatching operation in the selector of the rewritten node. The
24132 entity will be used in the expansion of dispatching selects.
24133 (Analyze_One_Call): Improve location of the error message associated
24134 with interface.
24135 (Analyze_Selected_Component): No need to resolve prefix when it is a
24136 function call, resolution is done when parent node is resolved, as
24137 usual.
24138 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
24139 when attempting to resolve a call transformed from its object notation.
24140 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
24141 of the argument list for each interpretation of the operation.
24142 (Try_Object_Operation): The designated type of an access parameter may
24143 be an incomplete type obtained through a limited_with clause, in which
24144 case the primitive operations of the type are retrieved from its full
24145 view.
24146 (Analyze_Call): If this is an indirect call, and the return type of the
24147 access_to_subprogram is incomplete, use its full view if available.
24148
24149 2005-09-01 Javier Miranda <miranda@adacore.com>
24150 Gary Dismukes <dismukes@adacore.com>
24151
24152 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
24153 access types the null-exclusion and access-to-constant attributes must
24154 also match.
24155 (Analyze_Return_Statement): When the result type is an anonymous access
24156 type, apply a conversion of the return expression to the access type
24157 to ensure that appropriate accessibility checks are performed.
24158 (Analyze_Return_Type): For the case of an anonymous access result type,
24159 generate the Itype and set Is_Local_Anonymous_Access on the type.
24160 Add ??? placeholder for check to disallow returning a limited object
24161 in Ada 2005 unless it's an aggregate or a result of a function call.
24162 Change calls from Subtype_Mark to Result_Definition.
24163 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
24164 Result_Definition in call to Make_Function_Specification.
24165 (Build_Body_To_Inline): Change Set_Subtype_Mark to
24166 Set_Result_Definition.
24167 (Make_Inequality_Operator): Change formal Subtype_Mark to
24168 Result_Definition in call to Make_Function_Specification.
24169 (Process_Formals): Create the new null-excluding itype if required.
24170 (New_Overloaded_Entity): For an entity overriding an interface primitive
24171 check if the entity also covers other abstract subprograms in the same
24172 scope. This is required to handle the general case, that is, overriding
24173 other interface primitives and overriding abstract subprograms inherited
24174 from some abstract ancestor type.
24175 (New_Overloaded_Entity): For an overriding entity that comes from
24176 source, note the operation that it overrides.
24177 (Check_Conformance, Type_Conformant): Addition of one new formal
24178 to skip controlling formals in the analysis. This is used to
24179 handle overloading of abstract interfaces.
24180 (Base_Types_Match): Add missing case for types imported from
24181 limited-with clauses
24182 (New_Overloaded_Entity): Add barrier to protect the use of
24183 the "alias" attribute.
24184
24185 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24186
24187 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24188 verify that the procedure and the entry are mode conformant.
24189 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24190 as a different operator, which is often a cut-and-paste error.
24191
24192 2005-09-01 Javier Miranda <miranda@adacore.com>
24193 Ed Schonberg <schonberg@adacore.com>
24194
24195 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24196 used in controlling parameters exclude null because it is necessary to
24197 read the tag to dispatch, and null has no tag.
24198 (Override_Dispatching_Operation): If the previous operation is inherited
24199 from an interface, it becomes hidden and does not participate in later
24200 name resolution.
24201
24202 2005-09-01 Javier Miranda <miranda@adacore.com>
24203 Ed Schonberg <schonberg@adacore.com>
24204 Gary Dismukes <dismukes@adacore.com>
24205
24206 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24207 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24208 the expander will generate the corresponding run-time check to evaluate
24209 the expression.
24210 (Resolve_Call): Check for legal type of procedure name or prefix that
24211 appears as a trigger in a triggering alternative.
24212 (Valid_Conversion): If expression is ambiguous and the context involves
24213 an extension of System, remove System.Address interpretations.
24214 (Resolve_Qualified_Expression): Reject the case of a specific-type
24215 qualification applied to a class-wide argument. Enhance comment
24216 to explain checking of Original_Node.
24217 (Resolve_Type_Conversion): The location of the error message was not
24218 general enough to handle the general case and hence it has been removed.
24219 In addition, this patch improves the text of the message.
24220 (Resolve_Type_Conversion): Add missing support for access to interface
24221 types.
24222 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24223 do not expand if the expression is the actual in a call, because proper
24224 expansion will take place when the call itself is expanded.
24225 (Resolve_Allocator): If the context is an unchecked conversion, the
24226 allocator inherits its storage pool, if any, from the target type of
24227 the conversion.
24228
24229 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24230 Javier Miranda <miranda@adacore.com>
24231
24232 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24233 inherited interface operation that has an implementation, use the
24234 implementation to avoid spurious ambiguities.
24235 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24236 use the Corresponding_Record_Typ attribute to look for the interface
24237 because it is set by the expander (and hence it is not always
24238 available). For this reason we traverse the list of interfaces
24239 (available in the parent of the concurrent type).
24240 (Interface_Present_In_Ancestor): Handle entities from the limited view
24241
24242 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24243
24244 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24245 from the list of required components.
24246 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24247 primitive procedure of a limited interface with a controlling first
24248 parameter.
24249 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24250 of an entry.
24251 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24252 capture if it is generated in the second operand of a short-circuit
24253 operation.
24254 Do not capture values for variables with address clauses.
24255 (Is_Object_Reference): Treat a function call as an object reference only
24256 if its type is not Standard_Void_Type.
24257
24258 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24259
24260 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24261 to a variable that is statically known to be constant.
24262
24263 2005-09-01 Geert Bosch <bosch@adacore.com>
24264 Robert Dewar <dewar@adacore.com>
24265
24266 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24267 (VAXGF_Safe_First): Idem.
24268
24269 2005-09-01 Robert Dewar <dewar@adacore.com>
24270 Arnaud Charlet <charlet@adacore.com>
24271
24272 * g-dirope.ads: Minor reformatting
24273 Document that bounds of result of Base_Name match the input index
24274 positions.
24275 Add documentation on environment variable syntax for Expand_Path
24276
24277 * gnat_ugn.texi: Update documentation to include mention of -m switches
24278 Document new treatment of wide characters in max line length
24279 style check.
24280 Remove -gnatL/-gnatZ switches, no longer used.
24281 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24282 of -gnata switch.
24283
24284 * gnat_rm.texi: Add doc for two argument form of pragma
24285 Float_Representation.
24286 Add documentation for pragma No_Strict_Aliasing
24287 Add note that explicit component clause overrides pragma Pack.
24288 Add documentation of pragma Debug_Policy
24289
24290 2005-09-01 Matthew Heaney <heaney@adacore.com>
24291
24292 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24293 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24294 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24295 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24296 draft (Draft 13, August 2005) of Ada Amendment 1.
24297
24298 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24299
24300 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24301 Note that the platform-specific version of g-soccon.ads for VMS is now
24302 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24303 really is a package spec).
24304 Replace s-taspri-linux.ads by s-taspri-posix.ads
24305 Remove references to s-mastop-x86.adb
24306
24307 * system-vxworks-xscale.ads: Removed, no longer used.
24308 * s-vxwork-xscale.ads: Removed, no longer used.
24309
24310 2005-09-01 Robert Dewar <dewar@adacore.com>
24311
24312 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24313 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24314 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24315 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24316 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24317 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24318 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24319 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24320 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24321 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24322 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24323 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24324 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24325 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24326 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24327 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24328 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24329 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24330 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24331 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24332 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24333
24334 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24335
24336 PR ada/23187
24337 * adaint.c
24338 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24339
24340 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24341 Doug Rupp <rupp@adacore.com>
24342
24343 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24344 when needed.
24345 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24346 this code in the GNAT run-time.
24347
24348 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24349
24350 PR ada/21053
24351 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24352 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24353
24354 (__gnat_inside_elab_final_code): Moved here from
24355 Standard_Library and only defined for the compiler.
24356 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24357 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24358 using RTPs because directly vectored Interrupt routines are not
24359 supported on this configuration.
24360 (getpid): Do not redefine this function on VxWorks when using RTPs
24361 because this primitive is well supported by the RTP libraries.
24362 (copy_msg): Correct the code that checks for buffer overflow.
24363 Discovered during code reading.
24364
24365 2005-08-29 Olivier Hainque <hainque@adacore.com>
24366
24367 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24368 a library level mutable variable with an initializer, tell
24369 build_allocator to ignore the initializer's size. It may not be large
24370 enough for all the values that might be assigned to the variable later
24371 on.
24372
24373 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24374 Eric Botcazou <ebotcazou@adacore.com>
24375
24376 * trans.c: Protect < in error msg with quote
24377 Replace GCC_ZCX by Back_End_Exceptions.
24378 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24379 has been sufficiently aligned in the record.
24380
24381 2005-08-15 James E. Wilson <wilson@specifix.com>
24382
24383 * system-linux-alpha.ads: Change ia64 to alpha.
24384
24385 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24386
24387 * decl.c, utils.c: Fix comment typos.
24388
24389 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24390
24391 * decl.c, init.c, initialize.c: Fix comment typos.
24392
24393 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24394
24395 Make CONSTRUCTOR use VEC to store initializers.
24396 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24397 CONSTRUCTOR_ELTS.
24398 * trans.c (extract_values): Likewise.
24399 * utils.c (convert, remove_conversions): Likewise.
24400 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24401 gnat_build_constructor): Likewise.
24402
24403 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24404
24405 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24406 DECL_SECTION_NAME.
24407 (compare_field_bitpos): Likewise.
24408
24409 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24410
24411 * utils.c (create_var_decl): Only set DECL_COMMON on
24412 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24413 VAR_OR_FUNCTION_DECL_P.
24414
24415 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24416
24417 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24418 removed.
24419
24420 2005-07-07 Pascal Obry <obry@adacore.com>
24421
24422 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24423 returned type on Windows.
24424
24425 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24426 routine.
24427
24428 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24429 exception in this case.
24430 Simplify the code as "Image (Image'Range)" = "Image".
24431
24432 2005-07-07 Vincent Celier <celier@adacore.com>
24433
24434 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24435 the destructor/constructor attributes for <lib>final/<lib>init.
24436
24437 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24438
24439 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24440
24441 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24442 type if the parameter is not passed by copy but reference by default.
24443
24444 2005-07-07 Javier Miranda <miranda@adacore.com>
24445
24446 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24447 Reimplementation of the support for abstract interface types in order
24448 to leave the code more clear and easy to maintain.
24449
24450 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24451 abstract interface types in order to leave the code clearer and easier
24452 to maintain.
24453
24454 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24455 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24456 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24457 appropriate entry of the secondary dispatch table.
24458 (Make_DT): Add code to inherit the secondary dispatch tables of
24459 the ancestors.
24460
24461 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24462 implementing both functionalities by means of a common routine, each
24463 routine has its own code.
24464
24465 2005-07-07 Javier Miranda <miranda@adacore.com>
24466
24467 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24468
24469 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24470 types:
24471 --
24472 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24473 --
24474
24475 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24476 use of tag incomplete types.
24477
24478 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24479 give support to tagged incomplete types.
24480
24481 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24482 expression is a discriminant reference and its type is private, as can
24483 happen within a stream operation for a mutable record, use the full
24484 view of the type to resolve the case alternatives.
24485 (Analyze_Assignment): Check wrong dereference of incomplete types.
24486
24487 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24488 types.
24489
24490 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24491 incomplete types.
24492
24493 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24494 N_Incomplete_Type_Declaration nodes.
24495
24496 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24497 Tag_Present to give support to tagged incomplete types:
24498 --
24499 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24500 --
24501
24502 2005-07-07 Olivier Hainque <hainque@adacore.com>
24503
24504 PR ada/22301
24505 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24506 definitions for the Unwind wrappers in the compiler case.
24507
24508 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24509 Javier Miranda <miranda@adacore.com>
24510
24511 * par-load.adb (Load): If a child unit is loaded through a limited_with
24512 clause, each parent must be loaded as a limited unit as well.
24513
24514 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24515 Check_Withed_Unit. Return true if there is a previous with_clause for
24516 this unit, whether limited or not.
24517 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24518 the current unit.
24519 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24520 _withed_unit that checks if some package installed through normal with
24521 clauses has a renaming declaration of package whose limited-view is
24522 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24523 of the current Draft document for Ada 2005.
24524 (Analyze_Context): Complete the list of compilation units that
24525 are allowed to contain limited-with clauses. It also contains
24526 checks that were previously done by Install_Limited_Context_Clauses.
24527 This makes the code more clear and easy to maintain.
24528 (Expand_Limited_With_Clause) It is now a local subprogram of
24529 Install_Limited_Context_Clauses, and contains the code that adds
24530 the implicit limited-with clauses for parents of child units.
24531 This functionality was prevously done by Analyze_Context.
24532
24533 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24534 incomplete type.
24535
24536 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24537 been erroneously named in a limited-with clause of its own context.
24538 In this case the error has been previously notified by Analyze_Context.
24539
24540 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24541
24542 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24543 generic package that contains local declarations with the same name.
24544 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24545
24546 2005-07-07 Bernard Banner <banner@adacore.com>
24547
24548 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24549 ia64 platform only on platforms that you the GCC unwind library
24550 rather than the system unwind library.
24551
24552 2005-07-07 Thomas Quinot <quinot@adacore.com>
24553
24554 * expect.c: Minor reformatting
24555
24556 2005-07-07 Sergey Rybin <rybin@adacore.com>
24557
24558 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24559 --no-separate-is
24560
24561 * gnat_ugn.texi: Add description for new gnatpp option
24562 (--no-separate-is)
24563
24564 2005-07-04 Thomas Quinot <quinot@adacore.com>
24565
24566 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24567 (Get_Command_Output): New subprogram to launch a process and get its
24568 standard output as a string.
24569
24570 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24571 Olivier Hainque <hainque@adacore.com>
24572
24573 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24574 fetch a code-range descriptor associated with the machine state. On
24575 failure set the machine state's PC to 0; on success, pass the
24576 descriptor to exc_virtual_unwind.
24577
24578 * init.c (Tru64 section): New function __gnat_set_code_loc.
24579
24580 2005-07-04 Vincent Celier <celier@adacore.com>
24581
24582 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24583 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24584 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24585 Remove all auto-initialization code, as this is now done through the
24586 constructor mechanism.
24587
24588 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24589 __gnat_sals_init_using_constructors): New functions.
24590
24591 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24592 Linker_Constructor and Linker_Destructor when switch -a is used.
24593
24594 * bindusg.adb: Add line for new switch -a
24595
24596 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24597 (Gnatbind): When switch -a is used, check if it is allowed
24598
24599 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24600
24601 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24602
24603 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24604 This prevents us from hitting a limitation during the debug info
24605 generation when using stabs.
24606 (Prims_Ptr): Likewise.
24607
24608 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24609 Ed Schonberg <schonberg@adacore.com>
24610 Javier Miranda <miranda@adacore.com>
24611
24612 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24613 N_Object_Declaration, only perform the checks if the Object_Definition
24614 is not an Access_Definition.
24615
24616 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24617 where the parent of an the access definition is an N_Object_Declaration
24618 when determining the Associated_Node_For_Itype and scope of an
24619 anonymous access-to-subprogram type.
24620
24621 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24622 Corresponding_Spec on the body created for a null procedure. Add ???
24623 comment. Remove New_Copy_Tree call on body argument to
24624 Set_Body_To_Inline.
24625
24626 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24627 discriminants, use the type of the actual as well, because the
24628 discriminants may be read by the called subprogram.
24629
24630 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24631 access type we do not need to handle non-limited views.
24632 (Build_Derived_Record_Type): Additional check to check that in case of
24633 private types, interfaces are only allowed in private extensions.
24634
24635 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24636
24637 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24638 <Pragma_Linker_Destructor>: Likewise.
24639
24640 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24641 Pragma_Linker_Destructor.
24642
24643 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24644 ATTR_LINK_DESTRUCTOR.
24645 (static_ctors, static_dtors): New variables.
24646
24647 * misc.c (gnat_expand_body): Output current function as constructor
24648 and destructor if requested.
24649
24650 * par-prag.adb: Add processing for pragma Linker_Constructor and
24651 Linker_Destructor.
24652
24653 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24654 extracted from Check_Interrupt_Or_Attach_Handler.
24655 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24656 Implement pragma Linker_Constructor and Linker_Destructor with the
24657 help of Find_Unique_Parameterless_Procedure.
24658 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24659
24660 * snames.h, snames.ads, snames.adb:
24661 Add Name_Linker_Constructor and Name_Linker_Destructor.
24662 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24663 * snames.adb: Remove Name_Alias.
24664
24665 * trans.c: Include cgraph.h.
24666 (build_global_cdtor): New function.
24667 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24668 needed.
24669 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24670 of objects too.
24671 (addressable_p) <COMPONENT_REF>: Unconditionally test
24672 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24673
24674 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24675 variable if it is external.
24676
24677 (static_ctors, static_dtors): New global variables.
24678 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24679 <ATTR_LINK_DESTRUCTOR>: Likewise.
24680 (end_subprog_body): Chain function as constructor and destructor
24681 if requested.
24682
24683 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24684 Remove_Side_Effects with Variable_Ref set to true.
24685 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24686 for non-scalar types even if Variable_Ref is true and for class-wide
24687 expressions.
24688
24689 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24690
24691 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24692 to prevent spurious warnings.
24693
24694 2005-07-04 Thomas Quinot <quinot@adacore.com>
24695
24696 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24697 Itypes. Itypes are really unexpected there.
24698 (Build_TypeCode_Function): Generalise special processing for Itypes to
24699 handle the case of numeric implicit base types as well as enumerated
24700 ones.
24701
24702 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24703
24704 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24705 controlled, indicate the expected type of the dereference that is
24706 created for the call to Deep_Finalize, to prevent spurious errors when
24707 the designated type is private and completed with a derivation from
24708 another private type.
24709
24710 2005-07-04 Vincent Celier <celier@adacore.com>
24711
24712 * make.adb (Change_To_Object_Directory): When unable to change the
24713 current dir to the object directory, output the full path of the
24714 directory.
24715
24716 2005-07-04 Matthew Gingell <gingell@adacore.com>
24717
24718 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24719
24720 * indepsw-linux.adb: Replace by...
24721
24722 * indepsw-gnu.adb: ...this new file
24723
24724 2005-07-04 Vincent Celier <celier@adacore.com>
24725
24726 * mlib-prj.adb (Auto_Initialize): New constant String
24727 (SALs_Use_Constructors): New Boolean function
24728 (Build_Library): Call gnatbind with Auto_Initialize switch when
24729 SALs_Use_Constructors returns True.
24730
24731 * mlib-tgt.ads: Minor reformatting
24732
24733 * mlib-utl.ads: Minor reformatting
24734
24735 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24736
24737 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24738
24739 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24740 single protected declarations can have an interface list.
24741 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24742 with seriously malformed entry declarations, and lead to compilation
24743 abandoned messages.
24744
24745 2005-07-04 Javier Miranda <miranda@adacore.com>
24746
24747 * par-load.adb: Load the context items in two rounds.
24748
24749 2005-07-04 Robert Dewar <dewar@adacore.com>
24750
24751 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24752
24753 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24754 Javier Miranda <miranda@adacore.com>
24755
24756 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24757 type extension needs a limited view.
24758 Remove previous restriction on private types available through the
24759 limited-view (only tagged private types were previously allowed).
24760 (Install_Withed_Unit): In the code that implements the
24761 legality rule given in AI-377, exclude a child unit with the name
24762 Standard, because it is a homonym of the Standard environment package.
24763
24764 2005-07-04 Thomas Quinot <quinot@adacore.com>
24765
24766 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24767 overloaded function call, carry interpretations from the original tree
24768 to the copy.
24769
24770 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24771
24772 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24773 types check whether some designated type is a limited view, and use
24774 the non-limited view if available.
24775
24776 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24777
24778 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24779 constraint of full view of a private view T1 if present, when T2 is a
24780 discriminated full view.
24781
24782 2005-07-04 Thomas Quinot <quinot@adacore.com>
24783
24784 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24785 actual that is a view conversion of a bit packed array reference.
24786
24787 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24788
24789 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24790 present before checking whether an interface type covers a synchronized
24791 type.
24792
24793 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24794
24795 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24796 whose prefix is an implicit dereference is an object reference. Removes
24797 spurious errors when compiling with -gnatc.
24798
24799 2005-07-04 Robert Dewar <dewar@adacore.com>
24800
24801 PR ada/22039
24802 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24803
24804 2005-07-04 Matthew Gingell <gingell@adacore.com>
24805
24806 * tracebak.c: Enable tracebacks on ia64 platforms
24807
24808 2005-07-04 Vincent Celier <celier@adacore.com>
24809
24810 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24811 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24812 the -L or -n switches.
24813
24814 2005-07-04 Vincent Celier <celier@adacore.com>
24815
24816 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24817 correctly computed and the main project data is not modified while
24818 doing so.
24819 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24820 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24821 c++linker as this does not work on some platforms.
24822
24823 2005-07-04 Matthew Heaney <heaney@adacore.com>
24824
24825 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24826 was changed.
24827 * a-coinve.adb: Perform constraint checks explicitly.
24828
24829 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24830 Thomas Quinot <quinot@adacore.com>
24831
24832 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24833 new target gen-soccon.
24834
24835 2005-07-04 Robert Dewar <dewar@adacore.com>
24836
24837 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24838
24839 2005-07-04 Thomas Quinot <quinot@adacore.com>
24840
24841 * g-socket.ads (Check_Selector): Minor rewording of comment.
24842
24843 2005-07-04 Vincent Celier <celier@adacore.com>
24844
24845 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24846
24847 2005-07-04 Thomas Quinot <quinot@adacore.com>
24848
24849 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24850
24851 2005-07-04 Sergey Rybin <rybin@adacore.com>
24852
24853 * gnat_ugn.texi: Add description of --eol gnatpp option
24854
24855 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24856 Thomas Quinot <quinot@adacore.com>
24857
24858 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24859 if the user wants all calls of a subprogram to be flagged,
24860 independently of whether they are made from within the same unit or
24861 another unit.
24862 Mention restriction for pragma Linker_Alias on some platforms.
24863 Document pragma Linker_Constructor and Linker_Destructor.
24864 Rewrite documentation of Weak_External, Linker_Section and
24865 Linker_Alias pragmas.
24866
24867 2005-07-04 Arnaud Charlet <charlet@adacore.com>
24868
24869 * s-stausa.ads, s-stausa.adb: New files.
24870
24871 2005-06-30 Kelley Cook
24872
24873 * all files: Update FSF address in copyright headers.
24874 * gen-soccon.co (main): Output new FSF address in generated files.
24875
24876 2005-06-28 Paul Brook <paul@codesourcery.com>
24877
24878 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24879
24880 2005-06-14 Olivier Hainque <hainque@adacore.com>
24881 Eric Botcazou <ebotcazou@adacore.com>
24882
24883 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24884 exc_unwind, now that we are generating proper .debug_frame output for
24885 that target.
24886
24887 * tracebak.c: Remove the mips-irix section, as we are now using the
24888 s-mastop based unwinder again.
24889 Under SPARC/Solaris, take into account the stack bias to compute the
24890 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
24891 ABI.
24892
24893 2005-06-14 Doug Rupp <rupp@adacore.com>
24894
24895 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24896
24897 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24898
24899 2005-06-14 Pascal Obry <obry@adacore.com>
24900
24901 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24902 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24903 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24904 package name).
24905
24906 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24907 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24908 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24909 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24910 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24911 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24912 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24913 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24914 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24915 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24916 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24917 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24918 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24919 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24920 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24921 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24922 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24923 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24924 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24925 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24926 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24927 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24928 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24929 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24930 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24931 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24932 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24933 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24934 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24935 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24936 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24937 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24938 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24939 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24940 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24941 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24942 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24943 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24944 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24945 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24946 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24947 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24948 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24949 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24950 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24951 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24952 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24953 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24954 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24955 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24956 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24957 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24958 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24959 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24960 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24961 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24962 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24963 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24964 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24965 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24966 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24967 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24968 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24969 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24970 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24971 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24972 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24973 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24974 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24975 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24976 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24977 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24978 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24979 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24980 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24981 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24982 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24983 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24984 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24985 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24986 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24987 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24988 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24989 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24990 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24991 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24992 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24993 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24994 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24995 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24996 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24997 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24998 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24999 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
25000 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
25001 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
25002 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
25003 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
25004 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
25005 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
25006 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
25007 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
25008 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
25009 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
25010 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
25011 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
25012 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
25013 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
25014 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
25015 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
25016 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
25017 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
25018 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
25019 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
25020 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
25021 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
25022 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
25023 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
25024 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
25025 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
25026 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
25027 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
25028 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
25029 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
25030 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
25031 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
25032 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
25033 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
25034 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
25035 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
25036 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
25037 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
25038 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
25039
25040 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25041 Arnaud Charlet <charlet@adacore.com>
25042
25043 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
25044 longer protected objects. They have been replaced by lower-level
25045 suspension objects made up by a mutex and a condition variable (or
25046 their equivalent given a particular OS) plus some internal data to
25047 reflect the state of the suspension object.
25048 (Initialize, Finalize): Add this initialization procedure for
25049 Suspension_Object, which is a controlled type.
25050 (Finalize): Add the finalization procedure for Suspension_Object,
25051 which is a controlled type.
25052
25053 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
25054 Ada.Synchronous_Task_Control because there is no longer a need for a
25055 VxWorks specific version of this package. Target dependencies
25056 has been moved to System.Task_Primitives.Operations.
25057
25058 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
25059 longer needed.
25060 (InitializeCriticalSection, EnterCriticalSection,
25061 LeaveCriticalSection, DeleteCriticalSection): Replace the type
25062 pCriticalSection by an anonymous access type so that we avoid problems
25063 of accessibility to local objects.
25064
25065 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
25066 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25067 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
25068 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
25069 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
25070 set the environment task mask here.
25071 (Current_State): Add this function that returns the state of the
25072 suspension object.
25073 (Set_False): Add this procedure that sets the state of the suspension
25074 object to False.
25075 (Set_True): Add this procedure that sets the state of the suspension
25076 object to True, releasing the task that was suspended, if any.
25077 (Suspend_Until_True): Add this procedure that blocks the calling task
25078 until the state of the object is True. Program_Error is raised if
25079 another task is already waiting on that suspension object.
25080 (Initialize): Add this procedure for initializing the suspension
25081 object. It initializes the mutex and the condition variable which are
25082 used for synchronization and queuing, and it sets the internal state
25083 to False.
25084 (Finalize): Add this procedure for finalizing the suspension object,
25085 destroying the mutex and the condition variable.
25086
25087 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25088 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
25089 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
25090 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
25091 which provides a low-level abstraction (using operating system
25092 primitives) for Ada.Synchronous_Task_Control.
25093 This object is made up by a mutex (for ensuring mutual exclusion), a
25094 condition variable (for queuing threads until the condition is
25095 signaled), a Boolean (State) indicating whether the object is open,
25096 and a Boolean (Waiting) reflecting whether there is a task already
25097 suspended on this object.
25098
25099 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
25100 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
25101 s-intman-vms.ads, s-intman-mingw.adb,
25102 (Initialize_Interrupts): Removed, no longer used.
25103
25104 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
25105 (Setup_Interrupt_Mask): New procedure.
25106
25107 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
25108
25109 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
25110
25111 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
25112 this is no longer done in the body of s-taprop
25113 (Server_Task): Explicitely test for Pending_Action in case
25114 System.Parameters.No_Abort is True.
25115
25116 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
25117 is no longer done in the body of s-taprop
25118
25119 2005-06-14 Robert Dewar <dewar@adacore.com>
25120
25121 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25122 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25123 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25124 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25125 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25126 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
25127 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
25128 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25129 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
25130 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
25131 system-linux-hppa.ads, system-vms_64.ads,
25132 system-vxworks-alpha.ads: Minor comment update for
25133 AI-362 (unit is Pure).
25134
25135 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
25136 Add pragma Pure_05 for AI-362
25137 Make remaining conversion functions obsolescent in Ada 95
25138
25139 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25140 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
25141 Add entries for a-wichun and a-zchuni
25142 Add a-widcha a-zchara for AI-395
25143 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
25144
25145 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
25146 Add entries for a-wichun.o and a-zchuni.o
25147 Entries for a-widcha.o and a-zchara.o
25148 Add entry for a-chacon.o
25149
25150 * a-ztenau.adb: Add with of Ada.Characters.Conversions
25151
25152 * a-chacon.ads, a-chacon.adb: New files.
25153
25154 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
25155 categorization violations.
25156
25157 * a-strmap.ads: Add pragma Pure_05 for AI-362
25158 * a-strmap.ads: Add note on implicit categorization for AI-362
25159
25160 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
25161
25162 * par-prag.adb: Dummy entry for pragma Persistent_BSS
25163 Set Ada_Version_Explicit, for implementation of AI-362
25164 Add processing for pragma Pure_05 and Preelaborate_05
25165 Add entry for Assertion_Policy pragma
25166
25167 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
25168 when needed for proper processing of categorization stuff
25169
25170 * sem_cat.adb:
25171 For several cases, make errors in preealborate units warnings,
25172 instead of errors, if GNAT_Mode is set. For AI-362.
25173
25174 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25175 preelaborate unit is now warning if in GNAT mode
25176
25177 * s-stoele.ads: Document AI-362 for pragma preelaborate
25178
25179 2005-06-14 Doug Rupp <rupp@adacore.com>
25180
25181 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25182 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25183 Default_Exception_Msg_Max_Length: new parameter.
25184
25185 * a-except.ads: (Exception_Msg_Max_Length): Set to
25186 System.Parameters.Default_Exception_Msg_Max_Length
25187 Add pragma Preelaborate_05 for AI-362
25188 Add warnings off to allow categorization violations for AI-362
25189
25190 2005-06-14 Vincent Celier <celier@adacore.com>
25191
25192 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25193 Process is now in package Processing.
25194
25195 * symbols.ads, symbols.adb:
25196 (Processing): New package, containing procedure Process
25197
25198 * symbols-vms-alpha.adb:
25199 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25200
25201 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25202 symbols-processing-vms-ia64.adb: New files.
25203
25204 2005-06-14 Pascal Obry <obry@adacore.com>
25205
25206 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25207 implementation. This new version generates the proper DllMain routine
25208 to initialize the SAL. The DllMain is generated in Ada and compiled
25209 before being added as option to the library build command.
25210
25211 2005-06-14 Doug Rupp <rupp@adacore.com>
25212 Pascal Obry <obry@adacore.com>
25213
25214 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25215 call to decc$translate_vms.
25216 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25217 need to remove those quotes before catenating the filename.
25218 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25219 * avoid allocating the memory twice for better efficiency;
25220 * allocate 32K buffer for environment expansion as suggested by MSDN;
25221 * prepend ".;" to the path so that current directory is searched too.
25222
25223 2005-06-14 Robert Dewar <dewar@adacore.com>
25224
25225 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25226 instead of raising CE (AI-241)
25227 Add warnings off to allow categorization violations for AI-362
25228
25229 2005-06-14 Robert Dewar <dewar@adacore.com>
25230
25231 * ali-util.adb, gnatbind.adb: Remove references to
25232 Force_RM_Elaboration_Order.
25233
25234 * switch-b.adb: Remove recognition of -f switch
25235
25236 2005-06-14 Pascal Obry <obry@adacore.com>
25237
25238 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25239 implementation which is slightly more efficient.
25240
25241 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25242 Javier Miranda <miranda@adacore.com>
25243 Ed Schonberg <schonberg@adacore.com>
25244 Hristian Kirtchev <kirtchev@adacore.com>
25245
25246 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25247 allocator's designated type is a class-wide type, and compiling for
25248 Ada 2005, emit a run-time check that the accessibility level of the
25249 type given in the allocator's expression is not deeper than the level
25250 of the allocator's access type.
25251
25252 (Tagged_Membership): Modified to gives support to abstract interface
25253 types.
25254
25255 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25256 Access_Level.
25257 (Descendant_Tag): New predefined function
25258 (Is_Descendant_At_Same_Level): New predefined function
25259 (Get_Access_Level): New private function
25260 (Set_Access_Level): New private procedure
25261 (IW_Membership): New function. Given the tag of an object and the tag
25262 associated with an interface, evaluate if the object implements the
25263 interface.
25264 (Register_Interface_Tag): New procedure used to initialize the table of
25265 interfaces used by the IW_Membership function.
25266 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25267 of the dispatch table.
25268 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25269 table of interfaces of the parent.
25270 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25271 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25272 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25273 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25274 Ada 2005 semantics for the new predefined function.
25275
25276 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25277 call to Descendant_Tag rather than Internal_Tag.
25278 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25279 the accessibility level of the attribute's Item parameter is not deeper
25280 than the level of the attribute's prefix type. Tag_Error is raised if
25281 the check fails. The check is only emitted for Ada_05.
25282 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25283 requested stream attribute, use it.
25284 (Expand_N_Attribute_Reference): If the designated type is an interface
25285 then rewrite the referenced object as a conversion to force the
25286 displacement of the pointer to the secondary dispatch table.
25287 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25288 is a dereference of an object with a constrained partial view.
25289
25290 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25291 type is a class-wide type, emit a run-time check that the accessibility
25292 level of the returned object is not deeper than the level of the
25293 function's master (only when compiling for Ada 2005).
25294
25295 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25296 Action_Nb_Arg): Add entries for new Get_Access_Level and
25297 Set_Access_Level routines in these tables.
25298 (Make_DT): Generate a call to set the accessibility level of the
25299 tagged type in its TSD.
25300 (Make_DT): Code cleanup. The functionality of generating all the
25301 secondary dispatch tables has been moved to freeze_record_type.
25302 (Make_Abstract_Interface_DT): Minor code cleanup.
25303 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25304 this subprogram implements a new algorithm that provides the
25305 same functionality and it is more clear in case of primitives
25306 associated with abstract interfaces.
25307 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25308 clean up, the functionality of this subprogram is now provided
25309 by Set_All_DT_Position.
25310 (Write_DT): New subprogram: a debugging procedure designed to be called
25311 within gdb to display the dispatch tables associated with a tagged
25312 type.
25313 (Collect_All_Interfaces): New subprogram that collects the whole list
25314 of interfaces that are directly or indirectly implemented by a tagged
25315 type.
25316 (Default_Prim_Op_Position): New subprogram that returns the fixed
25317 position in the dispatch table of the default primitive operations.
25318 (Expand_Interface_Actuals): New subprogram to generate code that
25319 displaces all the actuals corresponding to class-wide interfaces to
25320 reference the interface tag of the actual object.
25321 (Expand_Interface_Conversion): New subprogram. Reference the base of
25322 the object to give access to the interface tag associated with the
25323 secondary dispatch table.
25324 (Expand_Interface_Thunk): New subprogram that generates the code of the
25325 thunk. This is required for compatibility with the C+ ABI.
25326 (Make_Abstract_Interface_DT): New subprogram that generate the
25327 declarations for the secondary dispatch tables associated with an
25328 abstract interface.
25329 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25330 attribute for each primitive operation covering interface subprograms
25331 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25332 These subprograms were upgraded to give support to abstract interfaces
25333
25334 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25335 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25336 RE_Set_Access_Level.
25337 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25338 Add support to call the followig new run-time subprograms:
25339 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25340
25341 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25342 match its full declaration when both have an access definition with
25343 statically matching designated subtypes.
25344 (Analyze_Component_Declaration): Delete commented out code that was
25345 incorrectly setting the scope of an anonymous access component's type.
25346 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25347 an access discriminant when the containing type is nonlimited.
25348 (Make_Incomplete_Type_Declaration): Create an incomplete type
25349 declaration for a record type that includes self-referential access
25350 components.
25351 (Check_Anonymous_Access_Types): Before full analysis of a record type
25352 declaration, create anonymous access types for each self-referential
25353 access component.
25354 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25355 an access component in this context is a Local_Anonymous_Access, for
25356 proper accessibility checks.
25357 (Access_Definition): Set properly the scope of the anonymous access type
25358 created for a stand-alone access object.
25359 (Find_Type_Of_Object): An object declaration may be given with an access
25360 definition.
25361 (Complete_Subprograms_Derivation): New subprogram used to complete
25362 type derivation of private tagged types implementing interfaces.
25363 In this case some interface primitives may have been overriden
25364 with the partial-view and, instead of re-calculating them, they
25365 are included in the list of primitive operations of the full-view.
25366 (Build_Derived_Record_Type): Modified to give support to private
25367 types implemening interfaces.
25368 (Access_Definition): Reject ALL on anonymous access types.
25369 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25370 type derivation to occur at a deeper accessibility level than the
25371 parent type.
25372 For the case of derivation within a generic body however, disallow the
25373 derivation if the derived type has an ancestor that is a formal type
25374 declared in the formal part of an enclosing generic.
25375 (Analyze_Object_Declaration): For protected objects, remove the check
25376 that they cannot contain interrupt handlers if not declared at library
25377 level.
25378 (Add_Interface_Tag_Components): New subprogram to add the tag components
25379 corresponding to all the abstract interface types implemented by a
25380 record type or a derived record type.
25381 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25382 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25383 Process_Full_View, Record_Type_Declaration): Modified to give
25384 support to abstract interface types
25385 (Collect_Interfaces): New subprogram that collects the list of
25386 interfaces that are not already implemented by the ancestors
25387 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25388 when partial view has no discriminants and full view has defaults.
25389 (Constrain_Access): Reject a constraint on a general access type
25390 if the discriminants of the designated type have defaults.
25391 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25392 full-type declaration or subprogram spec. This is required to handle
25393 nested anonymous declarations.
25394 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25395 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25396 Process_Full_View, Record_Type_Declaration): Modified to give
25397 support to abstract interface types
25398 (Derive_Subprograms): Addition of a new formal to indicate if
25399 we are in the case of an abstact-interface derivation
25400 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25401 to the specification because it is requied to analyze all the
25402 identifiers found in a list of interfaces
25403
25404 * debug.adb: Complete documentation of flag "-gnatdZ"
25405
25406 * exp_ch3.adb: Implement config version of persistent_bss pragma
25407 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25408 testing for TSS presence to properly enforce visibility rules.
25409 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25410 Make_Abstract_Interfaces_DT to generate the secondary tables
25411 associated with abstract interfaces.
25412 (Build_Init_Procedure): Modified to initialize all the tags
25413 corresponding.
25414 (Component_Needs_Simple_Initialization): Similar to other tags,
25415 interface tags do not need initialization.
25416 (Freeze_Record_Type): Modified to give support to abstract interface
25417 types.
25418 (Expand_N_Object_Declaration): Do not generate an initialization for
25419 a scalar temporary marked as internal.
25420
25421 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25422 in-out parameter that is a component in an initialization procedure,
25423 whose constraint might depend on discriminants, and that may be
25424 misaligned because of packing or representation clauses.
25425 (Is_Legal_Copy): New predicate to determine whether a possibly
25426 misaligned in-out actual can actually be passed by copy/return. This
25427 is an error in case the type is by_reference, and a warning if this is
25428 the consequence of a DEC import pragma on the subprogram.
25429 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25430 interface types
25431 (Expand_Inlined_Call): Mark temporary generated for the return value as
25432 internal, so that no useless scalar normalization is generated for it.
25433 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25434 null procedure can always be inlined.
25435 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25436 procedure, generate an explicit empty body for it.
25437
25438 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25439 Given a type implementing an interface, returns the corresponding
25440 access_disp_table value.
25441 (Find_Interface_Tag): New subprogram. Given a type implementing an
25442 interface, returns the record component containing the tag of the
25443 interface.
25444 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25445 previous ones that return the corresponding tag and access_disp_table
25446 entities.
25447 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25448 is a predefined primitive operation.
25449 (Expand_Subtype_From_Expr): If the expression is a selected component
25450 within an initialization procedure, compute its actual subtype, because
25451 the component may depend on the discriminants of the enclosing record.
25452
25453 * i-cpp.ads, i-cpp.adb:
25454 This package has been left available for compatibility with previous
25455 versions of the frontend. As part of the new layout this is now a
25456 dummy package that uses declarations available at a-tags.ads
25457
25458 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25459 "constant access" and "aliased [constant] access" when not compiling
25460 with -gnat05.
25461 Suppress Ada 2005 keyword warning if -gnatwY used
25462 (P_Identifier_Declarations): Add support for object declarations with
25463 access definitions.
25464 (Private_Extension_Declaration): Complete the documentation
25465 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25466 attribute in case of private extension declaration
25467 (P_Type_Declaration): Mark as "abstract" the type declarations
25468 corresponding with protected, synchronized and task interfaces
25469 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25470 for a subprogram or instance declaration.
25471
25472 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25473 instantiation that is a dispatching operation has controlling access
25474 parameters that are null excluding.
25475 Save and restore Ada_Version_Explicit, for implementation of AI-362
25476 (Validate_Derived_Type_Instance): Add check for abstract interface
25477 types.
25478 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25479 the generic that is created to represent the formal package.
25480 (Analyze_Package_Instantiation): Instantiate body immediately if the
25481 package is a predefined unit that contains inlined subprograms, and
25482 we are compiling for a Configurable_Run_Time.
25483 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25484 If the program has a null default, generate an empty body for it.
25485
25486 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25487 error message condition, null procedures are correctly detected now.
25488 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25489 for subprograms in the context of protected types. Instead, the
25490 indicator is examined in Sem_Ch9 while analysing the subprogram
25491 declaration.
25492 (Check_Overriding_Indicator): Check consistency of overriding indicator
25493 on subprogram stubs as well.
25494 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25495 the library level.
25496 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25497 the type of the first formal is a concurrent type, replace this type
25498 by the corresponding record type.
25499 (Analyze_Subprogram_Body): Undo the previous work.
25500 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25501 analysis of the prefix ends up analyzing the call itself, after which
25502 we are done.
25503 (Has_Interface_Formals): New subprogram subsidiary to analyze
25504 subprogram_specification that returns true if some non
25505 class-wide interface subprogram is found
25506 (New_Overloaded_Entity): Modified to give support to abstract
25507 interface types
25508 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25509 access to subprograms must be recursive.
25510 (Is_Unchecked_Conversion): Improve the test that recognizes
25511 instantiations of Unchecked_Conversion, and allows them in bodies that
25512 are to be inlined by the front-end. When the body comes from an
25513 instantiation, a reference to Unchecked_Conversion will be an
25514 Expanded_Name, even though the body has not been analyzed yet.
25515 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25516 Must_Override and Must_Not_Override, to better express intent of AI.
25517 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25518 that it is consistent with the overrinding status of the subprogram
25519 at this point.
25520 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25521 always inlined.
25522 If the subprogram is a null procedure, indicate that it does not need
25523 a completion.
25524
25525 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25526 available through limited-with clauses.
25527 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25528 allowed as the last primitive of a tagged type if it has no previous
25529 spec.
25530 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25531 to give support to abstract interface types
25532
25533 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25534 in the case where the target type is an anonymous access type of an
25535 object or component (that is, when Is_Local_Anonymous_Access is true).
25536 Prevent the special checks for conversions of access discriminants in
25537 the case where the discriminant belongs to a nonlimited type, since
25538 such discriminants have their accessibility level defined in the same
25539 way as a normal component of an anonymous access type.
25540 (Resolve_Allocator): When an allocator's designated type is a class-wide
25541 type, check that the accessibility level of type given in the
25542 allocator's expression or subtype indication is not statically deeper
25543 than the level of the allocator's access type.
25544 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25545 name in a discriminant constraint of a record component.
25546 (Resolve_Explicit_Dereference): Do not check whether the type is
25547 incomplete when the dereference is a use of an access discriminant in
25548 an initialization procedure.
25549 (Resolve_Type_Conversion): Handle conversions to abstract interface
25550 types.
25551 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25552 abstract interface type is always valid.
25553 (Valid_Conversion): Modified to give support to abstract interface types
25554 (Resolve_Actuals): Enable full error reporting on view conversions
25555 between unrelated by_reference array types.
25556 The rule for view conversions of arrays with aliased components is
25557 weakened in Ada 2005.
25558 Call to obsolescent subprogram is now considered to be a violation of
25559 pragma Restrictions (No_Obsolescent_Features).
25560 (Check_Direct_Boolean_Operator): If the boolean operation has been
25561 constant-folded, there is nothing to check.
25562 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25563 check on possible violation of restriction No_Direct_Boolean_Operators
25564 until after expansion of operands, to prevent spurious errors when
25565 operation is constant-folded.
25566
25567 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25568 Has_Compatible_Type): Modified to give support to abstract interface
25569 types.
25570 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25571 of a given type implements a given interface
25572
25573 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25574 prefix is a parameterless function that returns an access_to_procedure.
25575 (Transform_Object_Operation): Handle properly function calls of the
25576 form Obj.Op (X), which prior to analysis appear as indexed components.
25577 (Analyze_One_Call): Complete the error notification to help new Ada
25578 2005 users.
25579 (Analyze_Allocator): For an allocator without an initial value, where
25580 the designated type has a constrained partial view, a discriminant
25581 constraint is illegal.
25582
25583 2005-06-14 Robert Dewar <dewar@adacore.com>
25584
25585 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25586 do with treatment of Set_Col when positioned at end of line character.
25587
25588 2005-06-14 Robert Dewar <dewar@adacore.com>
25589
25590 * atree.adb: (Elist*): Protect against uninitialized field
25591
25592 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25593
25594 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25595 for an attribute reference that returns an access type.
25596 (Apply_Discriminant_Check): No need for check if (designated) type has
25597 constrained partial view.
25598
25599 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25600 both bound checks, rather than a conjunction.
25601 (Insert_Valid_Check): If the expression is an actual that is an indexed
25602 component of a bit-packed array, force expansion of the packed element
25603 reference, because it is specifically inhibited elsewhere.
25604
25605 2005-06-14 Vincent Celier <celier@adacore.com>
25606
25607 * clean.adb (Clean_Project): Correctly delete executable specified as
25608 absolute path names.
25609
25610 * make.adb (Gnatmake): Allow relative executable path names with
25611 directory information even when project files are used.
25612 (Change_To_Object_Directory): Fail gracefully when unable to change
25613 current working directory to object directory of a project.
25614 (Gnatmake): Remove exception handler that could no longer be exercized
25615 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25616 may be deallocated by Normalize_Arguments.
25617 (Collect_Arguments): Eliminate empty arguments
25618
25619 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25620 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25621 (Check_Project): Return False when Project is No_Project. Return True
25622 when All_Projects is True.
25623 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25624 All_Projects to True.
25625 Minor reformatting
25626
25627 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25628 Javier Miranda <miranda@adacore.com>
25629 Thomas Quinot <quinot@adacore.com>
25630 Robert Dewar <dewar@adacore.com>
25631 Hristian Kirtchev <kirtchev@adacore.com>
25632 Gary Dismukes <dismukes@adacore.com>
25633
25634 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25635 anonymous access types, to indicate that the accessibility level of
25636 the type is determined by that of the enclosing declaration.
25637 (Has_Persistent_BSS): New flag
25638 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25639 of this attribute with functions.
25640 (Is_Primitive_Wrapper): Remove the barrier.
25641 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25642 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25643 New subprograms.
25644 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25645 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25646 New subprograms.
25647 (Is_Pure_Unit_Access_Type): New flag
25648 (Abstract_Interfaces): Complete the assertion to cover all usages.
25649 (Set_Is_Interface): Complete the assertion to cover all usages.
25650 (Is_Primitive_Wrapper): New attribute.
25651 (Is_Obsolescent): Now applies to all entities (though it is only set
25652 for subprograms currently)
25653 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25654 which solves various problems concerning access subtypes.
25655 (Has_Persistent_BSS): New flag
25656 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25657 Remove these subprograms because this attribute is currently
25658 not used.
25659 New entity flags:
25660 Has_Specified_Stream_Input (Flag190)
25661 Has_Specified_Stream_Output (Flag191)
25662 Has_Specified_Stream_Read (Flag192)
25663 Has_Specified_Stream_Write (Flag193)
25664 Present in all type and subtype entities. Set for a given view if the
25665 corresponding stream-oriented attribute has been defined by an
25666 attribute definition clause. When such a clause occurs, a TSS is set
25667 on the underlying full view; the flags are used to track visibility of
25668 the attribute definition clause for partial or incomplete views.
25669 (Is_Pure_Unit_Access_Type): New flag
25670 Clarify use of Is_Internal.
25671 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25672 internally generated to wrap the invocation of tasks and protected
25673 types that implement interfaces.
25674 (Implementation_Base_Type): Documentation correction
25675 (Is_Obsolescent): Now applies to all entities (though it is only set
25676 for subprograms currently)
25677 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25678 which solves various problems concerning access subtypes.
25679
25680 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25681 for examined parameters. Identify unequal parameter list lengths as
25682 non-conformant parameters.
25683 (Overriding_Possible): Do not check for "All" qualifier in declaration
25684 of controlling access parameter, following prescription of AI-404.
25685 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25686 that build the procedure body that wraps an entry invocation
25687 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25688 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25689 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25690 give support to abstract interface types
25691
25692 * freeze.adb (Freeze_Entity): Issue error message if
25693 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25694 type has no storage pool (Ada 2005) AI-366.
25695 Also modified to give support to abstract interface types
25696 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25697 Inline_Always pragma.
25698
25699 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25700 now begin an entry declaration.
25701 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25702 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25703 a subprogram declaration preceded by an overriding indicator.
25704 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25705 declarations or subprogram declarations preceded by reserved words
25706 "not" or "overriding".
25707 (P_Entry_Declaration): Update comment. Parse and check overriding
25708 indicator, set semantic flags of entry declarations.
25709 (P_Task): New error message in case of private applied
25710 to a task type declaration.
25711 (P_Protected): New error message in case of private applied
25712 to a task type declaration.
25713
25714 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25715 in which the full view of a type implementing an interface is a
25716 concurrent type.
25717 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25718 Declare_Inherited_Private_Subprograms): If an explicit operation
25719 overrides an operation that is inherited in the private part, mark the
25720 explicit one as overriding, to enable overriding indicator checks.
25721 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25722 full view to partial view, to simplify handling in back-end.
25723
25724 * sprint.adb: Print interface lists where needed: derived types,
25725 protected types, task types.
25726 output "is null" for null procedures. Part of implementation of
25727
25728 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25729 relaxation of rules for access types in pure, shared passive partitions.
25730
25731 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25732 first read discriminants into temporary objects, performing checks on
25733 the read values, then possibly performing discriminant checks on the
25734 actual (if it is constrained), and only finally reading the components
25735 into a constrained temporary object.
25736 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25737 case of reading discriminants of a mutable record type to recognize
25738 the new form of the code generated by
25739 Build_Mutable_Record_Read_Procedure.
25740
25741 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25742 of a simple call to Make_TSS_Name.
25743 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25744 buffer, in order for Is_TSS to work correctly on local TSS names.
25745
25746 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25747 Is_Local_Anonymous_Access to check legaliy of attributes in the
25748 context of access components and stand-alone access objects.
25749 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25750 treated as available for a limited private type if there is an
25751 attribute_definition_clause that applies to its full view, but not in
25752 other cases where the attribute is available for the full view
25753 (specifically, the sole fact that the full view is non-limited does not
25754 make the attribute available for the partial view).
25755 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25756 non-overloaded intrinsic subprogram.
25757 (Check_Stream_Attribute): Reject an attribute reference for an
25758 unavailable stream attribute even if the prefix is not a limited type
25759 (case of a 'Input attribute reference for an abstract, non-classwide
25760 type)
25761 (Stream_Attribute_Available): New function to determine whether a stream
25762 attribute is available at a place.
25763 (Check_Attribute): Use Stream_Attribute_Available instead of just
25764 testing for TSS presence on the implementation base type.
25765 (Analyze_Attribute): Modified to give support to task interfaces.
25766 (Analyze_Access_Attribute): Add error check for use of an Access (or
25767 Unrestricted_Access) attribute with a subprogram marked as
25768 Inline_Always.
25769 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25770 an Address attribute with a subprogram marked as Inline_Always.
25771 Update Eval_Attribute to handle new value of Width from AI-395
25772
25773 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25774 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25775 Factor common code across the stream-oriented attribute circcuits into
25776 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25777 processing is functionally identical to the previous duplicated one,
25778 except that an expression that denotes an abstract subprogram will now
25779 be rejected, as mandated by AI-195 item 5.
25780
25781 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25782 Is_Local_Anonymous_Access to apply accessibility checks to access
25783 components and stand-alone access objects.
25784 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25785 elsewhere.
25786 (Is_Potentially_Persistent_Type): New function
25787 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25788 a heap-object whose type has a constrained partial view, the object is
25789 unconstrained and the component may depend on a discriminant, making its
25790 renaming illegal.
25791
25792 * sinfo.ads, sinfo.adb
25793 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25794 (Must_Override): Flag applicable to N_Entry_Declaration.
25795 Indicate that interface_list can appear in single task and single
25796 protected declarations.
25797 Replace Is_Overriding and Not_Overriding with Must_Override and
25798 Must_Not_Override, to better express intent of AI.
25799 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25800 of an overriding indicator in a subprogram or instance.
25801 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25802 Add the overriding indicator [[not] overriding] construct to the
25803 following grammar productions:
25804 ENTRY_DECLARATION
25805 GENERIC_INSTANTIATION
25806 SUBPROGRAM_SPECIFICATION
25807
25808 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25809 can start with an overriding indicator.
25810
25811 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25812 flags accordingly on subrogram specifications or instances.
25813
25814 * sem_ch8.adb:
25815 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25816 overriding_indicator, if present, is consistent with status of spec.
25817 Improve error message for null-excluding checks on controlling access
25818 parameters.
25819 (Check_In_Previous_With_Clause): Protect the frontend against
25820 previously reported critical errors in the context clauses.
25821 Save and restore Ada_Version_Explicit, for implementation of AI-362
25822 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25823 operation verify that controlling formals of the renamed entity that
25824 are access parameters are explicitly non-null.
25825 (Find_Expanded_Name): Improve error message when prefix is an illegal
25826 reference to a private child unit.
25827
25828 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25829 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25830 Rewrite to correspond to new wide character names in AI-395
25831
25832 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25833 default procedures.
25834
25835 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25836 Robert Dewar <dewar@adacore.com>
25837
25838 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25839 code, not on the bodies of predefined operations, to cut down on
25840 spurious noise.
25841
25842 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25843
25844 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25845 be expanded in place. The size computation does not require a
25846 subtraction, which would raise an exception on a compiler built with
25847 assertions when the upper bound is Integer'first.
25848 (Flatten): For an array of composite components, take into account the
25849 size of the components to determine whether it is safe to expand the
25850 array into a purely positional representation.
25851
25852 2005-06-14 Thomas Quinot <quinot@adacore.com>
25853
25854 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25855 denoting a formal parameter into account.
25856
25857 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25858
25859 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25860 the entry_call alternative of a conditional entry call, wrap the
25861 conditional entry call itself.
25862
25863 2005-06-14 Nicolas Setton <setton@adacore.com>
25864 Ed Schonberg <schonberg@adacore.com>
25865
25866 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25867 the "simple_choice" member in a variant record, in accordance with the
25868 description in the package spec: the information output for a constant
25869 should be "S number", not "SS number".
25870 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25871 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25872
25873 2005-06-14 Thomas Quinot <quinot@adacore.com>
25874
25875 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25876 RACW without any primitives, do not generate the if statement for
25877 dispatching by name in the PolyORB/DSA case, as it would be malformed
25878 (it would have an Elsif_Parts list that is not No_List, but with a
25879 length of 0).
25880
25881 2005-06-14 Robert Dewar <dewar@adacore.com>
25882
25883 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25884
25885 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25886
25887 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25888 can determine whether pragma Suppress_Exception_Locations is in effect.
25889
25890 * utils2.c (build_call_raise): Do not pass the file name to the
25891 exception handler if pragma Suppress_Exception_Locations is in effect.
25892 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25893
25894 2005-06-14 Emmanuel Briot <briot@adacore.com>
25895
25896 * g-debpoo.adb (Deallocate, Dereference): Improve output.
25897
25898 2005-06-14 Nicolas Roche <roche@adacore.com>
25899
25900 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25901 to ""
25902 (Next_Level): Fix minor bug in handling of ../dir case
25903 (Read): Add dir separator to Directory name so that "" is understood as
25904 "/"
25905
25906 2005-06-14 Pascal Obry <obry@adacore.com>
25907
25908 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25909 releasing the items.
25910
25911 2005-06-14 Vincent Celier <celier@adacore.com>
25912 Cyrille Comar <comar@adacore.com>
25913
25914 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25915 with output file descriptor and with output file name.
25916 (Dup, Dup2): Now global procedures as they are used by two subprograms
25917 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25918
25919 2005-06-14 Thomas Quinot <quinot@adacore.com>
25920
25921 PR ada/6717
25922 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25923 broadcast address.
25924 (Create_Selector): Bind listening socket used to create the signalling
25925 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25926 Set listen backlog to 1 to ensure that we detect socket theft by a
25927 failure of our own connect(2) call.
25928 (Check_Selector): Improve documentation of the selector mechanism.
25929 (Broadcast_Inet_Addr): New constant.
25930
25931 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25932
25933 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25934 type which turns out to be an incomplete and incorrect fix.
25935 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25936 of the type is declared in a record (for determination of insertion
25937 type).
25938 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25939 a private type and ensure that the primary entity is used for the type
25940 of the newly created function's V formal by taking the Etype of the
25941 view.
25942
25943 2005-06-14 Javier Miranda <miranda@adacore.com>
25944 Jose Ruiz <ruiz@adacore.com>
25945 Robert Dewar <dewar@adacore.com>
25946 Ed Schonberg <schonberg@adacore.com>
25947
25948 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25949 that indicates if we are parsing a compilation unit found in a
25950 limited-with clause.
25951 It is use to avoid the circularity check.
25952
25953 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25954 we are parsing a compilation unit found in a limited-with clause. This
25955 is use to avoid the circularity check.
25956
25957 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25958 unit as a consequence of parsing a limited-with clause. This is used
25959 to avoid the circularity check.
25960
25961 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25962 (Analyze_Context): Limited-with clauses are now allowed
25963 in more compilation units.
25964 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25965 againts previously reported critical errors in context clauses
25966 (Install_Limited_Withed_Unit): Code cleanup plus static detection
25967 of two further errors: renamed subprograms and renamed packages
25968 are not allowed in limited with clauses.
25969 (Install_Siblings): Do not install private_with_clauses on the package
25970 declaration for a non-private child unit.
25971 (Re_Install_Parents): When a parent of the subunit is reinstalled,
25972 reset visibility of child units properly.
25973 (Install_Withed_Unit): When a child unit appears in a with_clause of its
25974 parent, it is immediately visible.
25975
25976 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25977 Emmanuel Briot <briot@adacore.com>
25978
25979 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25980 declared within an inlined body as referenced, to prevent spurious
25981 warnings.
25982 (Output_One_Ref): If an entity renames an array component, indicate in
25983 the ALI file that this aliases (renames) the array. Capture as well
25984 function renamings that rename predefined operations.
25985 Add information about generic parent for package and subprogram
25986 instances.
25987 (Get_Type_Reference): For a subtype that is the renaming of an actual in
25988 an instantiation, use the first_subtype to ensure that we don't generate
25989 cross-reference information for internal types.
25990 For objects and parameters of a generic private type, retain the '*'
25991 indicator to distinguish such an entity from its type.
25992
25993 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25994 to store information about instantiated entities.
25995
25996 * ali.adb (Scan_ALI): Add support for parsing the reference to the
25997 generic parent
25998
25999 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
26000 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
26001 information.
26002
26003 2005-06-10 Doug Rupp <rupp@adacore.com>
26004 Arnaud Charlet <charlet@adacore.com>
26005 Olivier Hainque <hainque@adacore.com>
26006 Jose Ruiz <ruiz@adacore.com>
26007
26008 * Make-lang.in: Add initialize.o when needed.
26009 Remove obsolete references to RT_FLAGS.
26010 Add missing dependencies for sdefault.o
26011
26012 * initialize.c: New file.
26013
26014 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
26015 [VMS] cond_signal_table: Fix problem in declaration.
26016 [VMS] __gnat_error_handler: rewrite.
26017 Move all __gnat_initialize() routines to initialize.c
26018 Specialize the former "hpux" section to "hppa hpux", as this is what the
26019 section really is here for and we now have other hpux ports that need
26020 different contents.
26021 (__gnat_adjust_context_for_raise) i386-linux: First version of this
26022 function for this target. Adjust PC by one in the machine context. This
26023 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
26024 it is more reliable to do that in the signal handler itself.
26025 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
26026 flags, so that the handler is passed the context structure to adjust
26027 prior to the raise.
26028 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
26029 SA_SIGINFO sigaction should look like. Call
26030 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
26031 Machine_State_Operations stuff.
26032 Add conditional code so that the x86_64 is also supported.
26033
26034 2005-06-14 Pascal Obry <obry@adacore.com>
26035
26036 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
26037 the library name.
26038
26039 2005-06-14 Robert Dewar <dewar@adacore.com>
26040
26041 * opt.ads, opt.adb: New flags for persistent_bss mode
26042 Add Ada_Version_Explicit, for implementation of AI-362
26043 Add Assertions_Enabled_Config and associated handling
26044 Needed since setting can be changed with Assertion_Policy pragma
26045 Add new flag Warn_On_Ada_2005_Compatibility
26046
26047 * switch-c.adb: Recognize -gnatwy/Y
26048 Set Ada_Version_Explicit, for implementation of AI-362
26049 The -gnatg switch now includes -gnatyu
26050
26051 * usage.adb: Add -gnatwy/Y
26052 Remove wrong asterisk on -gnatwX line
26053 Add line for -gnatyu switch
26054
26055 2005-06-14 Vincent Celier <celier@adacore.com>
26056
26057 * osint.adb (Add_Default_Search_Dirs): Put source and object
26058 directories of project files before directories coming from
26059 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
26060
26061 2005-06-14 Robert Dewar <dewar@adacore.com>
26062
26063 PR ada/15613
26064 * par-ch2.adb (Scan_Pragma_Argument): New procedure
26065 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
26066
26067 2005-06-14 Vincent Celier <celier@adacore.com>
26068
26069 * prep.adb (Preprocess): Ignore error when scanning the first token of
26070 a line.
26071
26072 2005-06-14 Vincent Celier <celier@adacore.com>
26073
26074 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
26075 (Check_Stand_Alone_Library): If the specified reference symbol file does
26076 not exist, only issue a warning when the symbol policy is not
26077 Controlled. And, when symbol policy is Compliant, set the symbol
26078 policy to Autonomous.
26079
26080 2005-06-14 Vincent Celier <celier@adacore.com>
26081
26082 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
26083 when the project file in a with clause is not the last one, that is the
26084 project file name is followed by a comma.
26085 * prj-pp.adb: (First_With_In_List): New Boolean global variable
26086 (Print): Issue list of project files separated by commas in with clauses
26087 according to the values returned by Is_Not_Last_In_List.
26088 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
26089 (Set_Is_Not_Last_In_List): New procedure
26090
26091 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26092
26093 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
26094
26095 2005-06-14 Robert Dewar <dewar@adacore.com>
26096
26097 * scng.adb: Add call to new Check_EOF routine
26098 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
26099 Add some comments regarding wide character handling
26100
26101 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
26102
26103 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
26104
26105 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
26106 characters are now considered graphic characters and hence yield false
26107 in this call.
26108
26109 * nmake.adt: Modify header so that xnmake does not generate output
26110 files with multiple blank lines.
26111
26112 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26113 not have an extra blank line
26114
26115 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26116
26117 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
26118 expression when the component type is an anonymous access type to
26119 ensure that appropriate accessibility checks are done.
26120
26121 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
26122 expression of an assignment when the target object is of an anonymous
26123 access type. This ensures that required accessibility checks are done.
26124 (One_Bound): Move the check for type Universal_Integer to
26125 Process_Bounds.
26126 (Process_Bounds): Check whether the type of the preanalyzed range is
26127 Universal_Integer, and in that case set Typ to Integer_Type prior
26128 to setting the type of the original range and the calls to One_Bound.
26129
26130 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26131
26132 * sem_case.adb (Expand_Others_Choice): Improve warning.
26133
26134 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26135
26136 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
26137 constraint of full view if present, when other type is discriminated.
26138 (Eval_Relational_Op): Recognize tests of pointer values against Null,
26139 when the pointer is known to be non-null, and emit appropriate warning.
26140
26141 2005-06-14 Robert Dewar <dewar@adacore.com>
26142 Ed Schonberg <schonberg@adacore.com>
26143
26144 PR ada/10671
26145 * sem_prag.adb: Implement pragma Persistent_BSS
26146 Remove obsolete pragma Persistent_Data, Persistent_Object
26147 Set Ada_Version_Explicit, for implementation of AI-362
26148 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
26149 Add processing for pragma Pure_05 and Preelaborate_05
26150 Add processing for Assertion_Policy pragma
26151 Add pragma identifiers for Assert
26152 (Analyze_Pragma, case Assert): Check number of arguments
26153 (Process_Inline): Additional guard against an illegal program, where the
26154 argument of the pragma is undefined, and warnings on redundant
26155 constructs are enabled.
26156 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
26157 Ada_05 to this pragma, specifying that the pragma is only active in
26158 Ada_05 mode.
26159 (Check_Arg_Order): New procedure
26160 Add appropriate calls to this procedure throughout
26161 Also throughout, check entity name before doing any other checks
26162
26163 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
26164 Remove obsolete pragma Persistent_Data, Persistent_Object
26165 Add entries for pragma Pure_05 and Preelaborate_05
26166 Add entries for Assertion_Policy pragma and associated names
26167 Add some names for pragma argument processing
26168
26169 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26170
26171 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26172
26173 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26174 appears within a negation (either from source or as a rewriting of
26175 inequality) adjust text of warning accordingly.
26176
26177 2005-06-14 Thomas Quinot <quinot@adacore.com>
26178
26179 * s-strxdr.adb: Follow AI95-00132
26180
26181 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26182
26183 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26184
26185 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26186 Jose Ruiz <ruiz@adacore.com>
26187
26188 * s-tposen.adb, s-tpobop.adb
26189 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26190 the exception id.
26191 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26192 there is no violation of the Max_Entry_Queue_Length restriction (if it
26193 has been set); Program_Error is raised otherwise.
26194 (Requeue_Call): Before requeuing the task on the target entry queue we
26195 check that there is no violation of the Max_Entry_Queue_Length
26196 restriction (if it has been set); Program_Error is raised otherwise.
26197
26198 2005-06-14 Robert Dewar <dewar@adacore.com>
26199
26200 * styleg.adb: Fix several remaining problems in -gnatyu switch
26201 Blank line count not reset at start
26202 Scanning outside source buffer in some cases
26203 Confusing message for blanks at end of file
26204 Non-empty blank lines not recognized
26205
26206 * nmake.adt: Modify header so that xnmake does not generate output
26207 files with multiple blank lines.
26208
26209 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26210 not have an extra blank line
26211
26212 2005-06-14 Sergey Rybin <rybin@adacore.com>
26213
26214 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26215
26216 2005-06-14 Doug Rupp <rupp@adacore.com>
26217 Vincent Celier <celier@adacore.com>
26218
26219 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26220 Update copyright.
26221
26222 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26223 Remove "Library" command.
26224 Change keyword for style check -gnatyd from NOCRLF to
26225 DOS_LINE_ENDINGS.
26226 Remove useless second style check keyword NONE
26227 Remove help documentation for inexistent style check keyword
26228 RM_COLUMN_LAYOUT.
26229 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26230 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26231 Add UNNECESSARY_BLANK_LINES for -gnatyu
26232 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26233
26234 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26235
26236 2005-06-14 Vincent Celier <celier@adacore.com>
26237
26238 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26239 gprmake was invoked with -d.
26240 (Compile_Sources): If -d was used, output the "completed ..." message
26241 for each compilation.
26242 (Scan_Arg): Recognize new switch -d
26243 When -c and at least one main is specified, set
26244 Unique_Compile to True to guarantee that no other sources will be
26245 compiled.
26246
26247 2005-06-14 Matthew Heaney <heaney@adacore.com>
26248
26249 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26250 * a-swuwha.ads, a-swuwha.adb: New files
26251
26252 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26253 * a-szuzha.ads, a-szuzha.adb: New files.
26254
26255 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26256 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26257 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26258 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26259 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26260 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26261 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26262 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26263 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26264 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26265 Ada 2005 RM.
26266
26267 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26268 Olivier Hainque <hainque@adacore.com>
26269 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26270 Pascal Obry <obry@adacore.com>
26271
26272 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26273
26274 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26275 making a temporary around a procedure call because of non-addressable
26276 actual parameter.
26277 (process_freeze_entity): If entity is a private type, capture size
26278 information that may have been computed for the full view.
26279 (tree_transform, case N_Allocator): If have initializing expression,
26280 check type for Has_Constrained_Partial_View and pass that to
26281 build_allocator.
26282 (tree_transform, case N_Return_Statement): Pass extra arg to
26283 build_allocator.
26284
26285 * decl.c (annotate_value): Remove early return if -gnatR is not
26286 specified.
26287 (gnat_to_gnu_field): Don't make a packable type for a component clause
26288 if the position is byte aligned, the field is aliased, and the clause
26289 size isn't a multiple of the packable alignment. It serves no useful
26290 purpose packing-wise and would be rejected later on.
26291 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26292
26293 PR ada/20515
26294 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26295 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26296 instead.
26297 (create_concat_name): Idem.
26298
26299 2005-06-10 Robert Dewar <dewar@adacore.com>
26300 Eric Botcazou <ebotcazou@adacore.com>
26301 Ben Brosgol <brosgol@adacore.com>
26302 Cyrille Comar <comar@adacore.com>
26303 Sergey Rybin <rybin@adacore.com>
26304 Pascal Obry <obry@adacore.com>
26305
26306 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26307 Document second argument (Ada_05) of pragma Obsolescent
26308 Add note that call to subprogram marked with pragma Obsolescent
26309 is now considered to be a violation of program Restrictions
26310 (No_Obsolescent_Features).
26311 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26312 that only machine-dependent attributes are supported.
26313
26314 * gnat_ugn.texi:
26315 Commented out menu lines and empty section for gnatclean examples
26316 Document -gnatwy/Y
26317 Fix some over long lines
26318 Clarify and enhance documentation of ADA_PROJECT_PATH.
26319 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26320 Mention new switch -fcallgraph-info.
26321 Mention new switch -fstack-usage.
26322 For gnatpp, replace '-notab' with '-N' and add this option to Index
26323 Corrected VMS example.
26324 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26325 Minor reformatting
26326 Add documentation for -gnatyu switch (unnecessary blank lines)
26327 Document new switch -U for GNAT PRETTY and GNAT METRIC
26328 Add note about Stdcall being handled as C convention on non Windows OS.
26329 Remove some junk typo in description of gnatbind -S switch
26330 Remove reference to Extensions_Allowed pragma
26331 Document the new order of the directories to be searched (source and
26332 object directories of project files before directories in ADA_*_PATH
26333 environment variables.
26334
26335 * g-trasym.ads: Document that IRIX is supported
26336
26337 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26338
26339 * Makefile.in: Add initialize.o when needed.
26340 Adapt to new VMS package body Symbols and subunits
26341 No specialized version of a-sytaco is needed for VxWorks.
26342
26343 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26344 * a-zchara.ads, a-widcha.ads: New files.
26345
26346 * system-hpux-ia64.ads: New file.
26347
26348 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26349 is imported from the VxWorks kernel.
26350
26351 2005-06-14 Robert Dewar <dewar@adacore.com>
26352
26353 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26354 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26355 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26356 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26357 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26358 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26359 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26360 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26361 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26362 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26363 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26364 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26365
26366 2005-06-14 Thomas Quinot <quinot@adacore.com>
26367
26368 * xeinfo.adb: Fix typo in comment
26369
26370 2005-06-14 Javier Miranda <miranda@adacore.com>
26371
26372 * repinfo.ads: Fix typo in comment
26373
26374 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26375
26376 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26377 Parent_Tag is now in the visible part of Ada.Tags).
26378 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26379 using imported function.
26380
26381 2005-06-14 Bernard Banner <banner@adacore.com>
26382
26383 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26384 also apply for handling support for VxSim 653.
26385
26386 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26387
26388 * xsnames.adb: Add automatic generation of snames.h.
26389
26390 2005-06-14 Thomas Quinot <quinot@adacore.com>
26391
26392 * gen-soccon.c: Add IP_MULTICAST_IF constant
26393 Minor reformatting and adjustments to prevent warnings.
26394
26395 2005-06-14 Pascal Obry <obry@adacore.com>
26396
26397 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26398
26399 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26400
26401 * trans.c (gnat_gimplify_expr): Call
26402 recompute_tree_invarant_for_addr_expr when we change
26403 the operand of the ADDR_EXPR.
26404
26405 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26406
26407 * misc.c: Don't include errors.h.
26408
26409 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26410
26411 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26412
26413 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26414
26415 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26416 comment typos.
26417 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26418
26419 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26420
26421 PR ada/20270
26422 * Makefile.in: Make TGT_LIB behave correctly.
26423
26424 2005-04-23 DJ Delorie <dj@redhat.com>
26425
26426 * misc.c: Adjust warning() callers.
26427
26428 2005-04-16 Laurent Guerby <laurent@guerby.net>
26429
26430 PR ada/18847
26431 * a-nudira.adb (Value): Check for valid string.
26432 * a-nuflra.adb (Value): Likewise.
26433
26434 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26435
26436 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26437
26438 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26439
26440 * adaint.c, init.c, tracebak.c: Fix comment typos.
26441 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26442
26443 2005-04-07 Laurent Guerby <laurent@guerby.net>
26444 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26445
26446 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26447 * system-hpux.ads: Define Signed_Zeros to be True.
26448 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26449
26450 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26451
26452 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26453 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26454 typos.
26455
26456 2005-03-30 Tom Tromey <tromey@redhat.com>
26457
26458 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26459
26460 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26461
26462 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26463
26464 2005-03-29 Robert Dewar <dewar@adacore.com>
26465
26466 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26467 fixed-point expression has value that is not a multiple of the Small
26468 value.
26469
26470 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26471
26472 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26473 nanoseconds.
26474
26475 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26476
26477 2005-03-29 Vincent Celier <celier@adacore.com>
26478
26479 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26480 (Build_Dynamic_Library.Version_String): Return the empty string when
26481 Lib_Version is empty or when the symbol policy is not Autonomous.
26482
26483 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26484 a symbol is not in the reference symbol file, increase the Major ID
26485 and set the Minor ID to 0.
26486 Use gsmatch=lequal instead of gsmatch=equal
26487
26488 2005-03-29 Doug Rupp <rupp@adacore.com>
26489
26490 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26491 name and translate.
26492
26493 2005-03-29 Javier Miranda <miranda@adacore.com>
26494
26495 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26496 (Inherit_DT): The first formal has been redefined as a Tag.
26497 This allows us the removal of the subprogram Get_TSD.
26498 (TSD): Replace the call to Get_TSD by the actual code.
26499
26500 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26501 (Make_DT): Upgrade the call to Inherit_TSD according to the
26502 new interface: the first formal is now a Tag.
26503
26504 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26505 redefined as a Tag.
26506 This change allows us to remove the subprogram Get_TSD.
26507 (CPP_Get_TSD): Subprogram removed.
26508 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26509
26510 * rtsfind.ads: Remove support to call the run-time
26511 subprogram Get_TSD
26512
26513 2005-03-29 Robert Dewar <dewar@adacore.com>
26514
26515 * errutil.adb, errout.adb:
26516 Minor comment updates on Line_Terminator references
26517
26518 * par-ch10.adb: Add ??? comment about line terminator
26519
26520 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26521 (check dos line terminator).
26522 (Check_Line_Max_Length): New procedure, split off from the existing
26523 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26524 be properly recognized.
26525
26526 * styleg.adb: Add ??? comment for line terminator reference
26527
26528 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26529 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26530
26531 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26532 (check dos line terminator).
26533 (Check_Line_Max_Length): New procedure, split off from the existing
26534 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26535 be properly recognized.
26536
26537 * stylesw.ads, stylesw.adb:
26538 Add handling for new -gnatyd switch (check dos line terminator)
26539
26540 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26541 Recognize -gnatwb/-gnatwB switches
26542 Include Warn_On_Bad_Fixed_Value for -gnatg
26543
26544 * usage.adb:
26545 Add line for new -gnatyd switch (check dos line terminator)
26546
26547 * usage.adb: Add lines for -gnatwb/-gnatwB
26548
26549 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26550
26551 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26552
26553 * gnat_ugn.texi: Fix overlong lines
26554 Document new -gnatyd switch
26555 Document new -gnatwb/-gnatwB switches
26556
26557 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26558
26559 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26560 order to retrieve the component list of the type, before examining
26561 individual components.
26562
26563 * sem_type.adb (Covers): Types are compatible if one is the base type
26564 of the other, even though their base types might differ when private
26565 views are involved.
26566
26567 2005-03-29 Thomas Quinot <quinot@adacore.com>
26568
26569 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26570 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26571 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26572 analyzed if expansion is disabled (which could otherwise cause spurious
26573 error messages if expansion has been disabled due to previous
26574 (unrelated) errors).
26575
26576 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26577 is disabled, the entity denoted by the argument is the access type
26578 itself, not an underlying record type, so there is no need to go back
26579 to the Corresponding_Remote_Type.
26580
26581 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26582 Robert Dewar <dewar@adacore.com>
26583
26584 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26585 expand a call to an instance of
26586 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26587 Constructor actual of the instance. A class-wide membership
26588 check is also generated, to ensure that the tag passed to the instance
26589 denotes a type in the class.
26590 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26591 of Name_Generic_Dispatching_Constructor.
26592
26593 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26594 05 unit for AI-260-02).
26595
26596 * a-tgdico.ads: New file.
26597
26598 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26599 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26600
26601 * snames.ads, snames.adb (Preset_Names): Add entry for
26602 Generic_Dispatching_Constructor.
26603
26604 PR ada/20300
26605 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26606 character type cases.
26607 (Analyze_Subprogram_Renaming): Add special handling for
26608 the case of renaming of stream attributes when the renaming denotes a
26609 generic formal subprogram association for an abstract formal subprogram.
26610 Check that the attribute is a primitive stream attribute (and not
26611 a class-wide stream attribute) and then rewrite the attribute name
26612 as the name of the appropriate compiler-generated stream primitive.
26613
26614 2005-03-29 Robert Dewar <dewar@adacore.com>
26615
26616 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26617 recursive calls.
26618 (Is_Possibly_Unaligned_Object): Correct typo that
26619 resulted in inaccurate result for unaligned scalars within records.
26620
26621 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26622
26623 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26624 itype whose parent is controlled and not yet frozen, do not create a
26625 freeze node for the itype if expansion is disabled.
26626
26627 2005-03-29 Vincent Celier <celier@adacore.com>
26628
26629 * make.adb (Gnatmake): Don't fail if the main project file is declared
26630 as having no Ada sources. Do not display message "no sources to
26631 compile" in quiet output.
26632
26633 2005-03-29 Doug Rupp <rupp@adacore.com>
26634
26635 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26636 extra tools.
26637
26638 2005-03-29 Robert Dewar <dewar@adacore.com>
26639
26640 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26641 child.
26642
26643 2005-03-29 Robert Dewar <dewar@adacore.com>
26644
26645 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26646 missing TYPE Improve the error message generated when compiling a
26647 limited interface in Ada83 or Ada95 mode.
26648
26649 2005-03-29 Robert Dewar <dewar@adacore.com>
26650
26651 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26652 rather than proceed ahead using a junk attribute name.
26653
26654 2005-03-29 Vincent Celier <celier@adacore.com>
26655
26656 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26657
26658 * prj-part.adb (Parse_Single_Project): Set the location of a project
26659 on its defining identifier, rather than on the reserved word "project".
26660
26661 * prj-proc.adb (Expression): Adapt to the fact that default of external
26662 references may be string expressions, not always literal strings.
26663 (Recursive_Process): Set Display_Name equal to Name
26664 when Location is No_Location, that is when there is no actual file.
26665 Get the Display_Name of the project from the source, when it is not a
26666 virtual project.
26667 (Process): Use the Display_Name in error messages
26668
26669 * prj-strt.adb (External_Reference): Allow default to be string
26670 expressions, not only literal strings.
26671
26672 2005-03-29 Vincent Celier <celier@adacore.com>
26673
26674 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26675 file and the reference symbol file to be the same file.
26676
26677 2005-03-29 Thomas Quinot <quinot@adacore.com>
26678
26679 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26680 forbid conversion of a local access-to-subprogram type to a remote one.
26681
26682 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26683 equivalent type for a remote access-to-subprogram type, go back to the
26684 original RAS entity when displaying an error message, so the casing is
26685 the original source casing.
26686
26687 2005-03-29 Robert Dewar <dewar@adacore.com>
26688
26689 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26690 on param update.
26691
26692 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26693
26694 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26695 subtype if code is being pre-analyzed, to prevent un-expanded
26696 references to protected formals, among others.
26697 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26698 interpretation that can be a call, include the result of the call as a
26699 possible interpretation of the dereference.
26700
26701 * sem_ch5.adb (Process_Bounds): Determine type of range by
26702 pre-analyzing a copy of the original range, and then analyze the range
26703 with the expected type.
26704
26705 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26706 with an overloaded prefix where not all interpretations yield an
26707 access to subprogram, do not rewrite node as a call.
26708 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26709 the node as a call once the context identifies the interpretation of
26710 the prefix whose call yields the context type.
26711 (Valid_Conversion): For the case of a conversion between
26712 local access-to-subprogram types, check subtype conformance using
26713 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26714 detailed error message.
26715
26716 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26717
26718 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26719 indicator, indicate that the formal can never be null.
26720 (Process_Formals): If a formal has a non_null indicator, insert the
26721 resulting subtype immediately before the enclosing subprogram decl,
26722 and not at the beginning of the corresponding declarative part, to
26723 prevent access before elaboration (Ada2005).
26724
26725 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26726
26727 PR ada/19956
26728 * utils.c (finish_record_type): Use variable_size when setting sizes.
26729
26730 2005-03-29 Robert Dewar <dewar@adacore.com>
26731
26732 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26733 guarantee Unix style line terminators for the output files, even when
26734 running on windows.
26735
26736 2005-03-29 Robert Dewar <dewar@adacore.com>
26737
26738 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26739 buffer if an exception is raised.
26740
26741 2005-03-29 Ed Falis <falis@adacore.com>
26742
26743 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26744 VxWorks 653 1.4
26745
26746 2005-03-29 Robert Dewar <dewar@adacore.com>
26747
26748 * sem_util.ads: Minor reformatting
26749 * gnat_rm.texi: Minor editing.
26750
26751 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26752
26753 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26754 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26755
26756 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26757
26758 * adaint.c (__gnat_portable_spawn): Adjust cast.
26759
26760 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26761
26762 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26763
26764 2005-03-17 Pascal Obry <obry@adacore.com>
26765
26766 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26767 used.
26768
26769 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26770 Reimplement under Win32 using Win32 API.
26771
26772 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26773 this routine.
26774
26775 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26776
26777 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26778 (DECL_RENAMED_OBJECT): New accessor macro.
26779 (SET_DECL_RENAMED_OBJECT): New setter macro.
26780
26781 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26782 object in all cases. Attach the renamed object to the VAR_DECL.
26783 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26784 field is not prescribed.
26785
26786 * misc.c (gnat_handle_option): Handle -gnatO separately.
26787 (gnat_print_decl) <VAR_DECL>: New case.
26788 Print the DECL_RENAMED_OBJECT node.
26789
26790 * lang.opt: Declare separate -gnatO option.
26791
26792 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26793 pointer, replace it with the renamed object.
26794 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26795 pointer type if the source is not a fat pointer type whose underlying
26796 array has the same non-zero alias set as that of the destination array.
26797
26798 2005-03-17 Javier Miranda <miranda@adacore.com>
26799
26800 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26801 (Get_Inheritance_Depth): Removed.
26802 (Set_Inheritance_Depth): Removed.
26803
26804 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26805 subprogram Get_Expanded_Name because it is not referenced by the
26806 frontend.
26807
26808 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26809 (CPP_Get_Inheritance_Depth): Removed.
26810 (CPP_Set_Inheritance_Depth): Removed.
26811
26812 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26813
26814 2005-03-17 Robert Dewar <dewar@adacore.com>
26815
26816 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26817 3, since we now expect GCC 3 to do all the work.
26818
26819 2005-03-17 Javier Miranda <miranda@adacore.com>
26820
26821 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26822 of one barrier to avoid wrong usage of this attribute.
26823
26824 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26825 First_Private_Entity.
26826
26827 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26828 the subprogram against wrong usage.
26829 Adapt the code to traverse the entities in the
26830 scope of a record_type because in addition to its usage regarding
26831 packages, this subprogram is also called by Expand_N_Freeze_Entity
26832 to install the visible declarations of the enclosing scope of a
26833 record_type_with_private to establish the proper visibility before
26834 freezing the entity and related subprograms.
26835
26836 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26837
26838 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26839 entry formals.
26840
26841 2005-03-17 Thomas Quinot <quinot@adacore.com>
26842
26843 * exp_ch3.adb (Check_Attr): New subprogram.
26844 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26845 into a new Check_Attr subprogram, in order to provide a more
26846 explanatory error message (including the name of the missing attribute).
26847 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26848 subprogram determines whether a default implementation exists for a
26849 given stream attribute.
26850 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26851 Determine whether to generate a default implementation for each stream
26852 attribute separately, as this depends on the specific attribute.
26853
26854 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26855 limited extension where a stream attribute is missing for a limited
26856 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26857 generate a bogus reference to the missing attribute to prevent
26858 cascaded errors. Instead, generate a null statement.
26859
26860 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26861 available for a limited type if it has been specified for an ancestor
26862 of the type.
26863
26864 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26865
26866 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26867 entity is an operator.
26868
26869 2005-03-17 Thomas Quinot <quinot@adacore.com>
26870
26871 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26872 spec, to make this predicate available to other units.
26873
26874 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26875 reimplementing it.
26876
26877 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26878 when no distribution runtime library is available.
26879
26880 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26881 access-to-subprogram types when no distribution runtime library is
26882 available.
26883 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26884 predicate available to other units.
26885
26886 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26887 spec, to make this predicate available to other units.
26888
26889 2005-03-17 Vincent Celier <celier@adacore.com>
26890
26891 * make.adb (Insert_Project_Sources): Make sure the Q is always
26892 initialized.
26893
26894 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26895 the default for the tree, not the global default naming.
26896
26897 * prj-proc.adb (Recursive_Process): No need to put the default naming
26898 in the project data, it's already there.
26899
26900 2005-03-17 Doug Rupp <rupp@adacore.com>
26901
26902 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26903
26904 * 5xcrtl.ads: Renamed to...
26905 * s-crtl-vms64.ads: ...this new file
26906
26907 2005-03-17 Robert Dewar <dewar@adacore.com>
26908
26909 PR ada/19519
26910 * namet.adb (Copy_One_Character): Set proper wide character encoding
26911 for upper half character if we have upper half encoding.
26912
26913 2005-03-17 Robert Dewar <dewar@adacore.com>
26914
26915 * par.adb (Par): Improved msg for attempt to recompile predefined unit
26916
26917 2005-03-17 Thomas Quinot <quinot@adacore.com>
26918
26919 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26920 tagged limited type, the TSS is a newly built renaming declaration:
26921 insert it using Set_TSS, not Copy_TSS.
26922
26923 2005-03-17 Javier Miranda <miranda@adacore.com>
26924
26925 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26926 Try_Object_Operation): Analyze the object that is accessible
26927 through the prefix of the subprogram call before we apply
26928 the transformation of the object-operation notation.
26929
26930 2005-03-17 Jose Ruiz <ruiz@adacore.com>
26931
26932 * s-taprob.adb (Initialize_Protection): Initialize the protected
26933 object's owner to Null_Task.
26934 (Lock): If pragma Detect_Blocking is in effect and the caller of this
26935 procedure is already the protected object's owner then Program_Error
26936 is raised. In addition the protected object's owner is updated.
26937 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26938 of this procedure is already the protected object's owner then
26939 Program_Error is raised.
26940 In addition the protected object's owner is updated.
26941 (Unlock): Remove the ownership of the protected object.
26942
26943 * s-taprob.ads (Protection): Add the field Owner, used to store the
26944 protected object's owner.
26945 This component is needed for detecting one type of potentially blocking
26946 operations (external calls on a protected subprogram with the same
26947 target object as that of the protected action). Document the rest of
26948 the components.
26949
26950 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26951 Initialize the protected object's owner to Null_Task.
26952 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26953 caller of this procedure is already the protected object's owner then
26954 Program_Error is raised.
26955 Do not raise Program_Error when this procedure is called from a
26956 protected action.
26957 (Unlock_Entries): Remove the ownership of the protected object.
26958 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26959 of this procedure is already the protected object's owner then
26960 Program_Error is raised.
26961 Do not raise Program_Error when this procedure is called from
26962 a protected action.
26963
26964 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26965 used to store the protected object's owner.
26966
26967 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26968 effect and this procedure (a potentially blocking operation) is called
26969 from whithin a protected action, Program_Error is raised.
26970 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26971 and this procedure (a potentially blocking operation) is called from
26972 whithin a protected action, Program_Error is raised.
26973
26974 2005-03-17 Vincent Celier <celier@adacore.com>
26975 Nicolas Setton <setton@adacore.com>
26976
26977 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26978 switch, not supported by the linker on Darwin. Add '_' before
26979 <library>init, as this character is added unconditionally by the
26980 compiler.
26981 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26982 correct one ".dylib". This fixes detection of the archive files when
26983 building library projects.
26984
26985 2005-03-17 Vincent Celier <celier@adacore.com>
26986
26987 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26988 -gnat83, -gnat95 and -gnat05.
26989
26990 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
26991
26992 * gnat_ugn.texi: Document gnatmem restriction
26993
26994 2005-03-17 Thomas Quinot <quinot@adacore.com>
26995
26996 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26997 cleanup
26998
26999 2005-03-17 Robert Dewar <dewar@adacore.com>
27000
27001 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
27002 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
27003 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
27004
27005 * casing.adb: Comment improvements
27006
27007 2005-03-17 Pascal Obry <obry@adacore.com>
27008
27009 * g-expect.adb: Minor reformatting.
27010
27011 2005-03-15 Zack Weinberg <zack@codesourcery.com>
27012
27013 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
27014 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
27015 to dependencies.
27016
27017 2005-03-15 Vincent Celier <celier@adacore.com>
27018
27019 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
27020 Add new parameter In_Tree to specify the project tree: needed
27021 by the project manager. Adapt to changes in project manager
27022 using new parameter In_Tree.
27023
27024 2005-03-15 Jakub Jelinek <jakub@redhat.com>
27025
27026 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
27027 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
27028 ada/bldtools to avoid make -jN failures.
27029
27030 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27031
27032 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
27033 to NULL_TREE on entry.
27034
27035 2005-03-15 Robert Dewar <dewar@adacore.com>
27036
27037 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27038 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27039 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27040 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27041 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27042 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
27043 system-interix.ads, system-solaris-sparc.ads,
27044 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27045 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
27046 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27047 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
27048 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
27049 Compiler_System_Version to be False.
27050
27051 * opt.ads: Add new flag Opt.Address_Is_Private
27052
27053 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
27054 Add new parameter Compiler_System_Version to avoid checking for
27055 completeness of parameters when compiler is compiling itself.
27056 Allows old versions of GNAT to be compiled with new compiler.
27057
27058 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27059
27060 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
27061 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
27062 calling thread.
27063 (Stack_Base_Available): New flag.
27064 (Get_Page_Size): New overloaded functions imported from C.
27065 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
27066 PROT_ON, PROT_OFF): New constants.
27067 (mprotect): New function imported from C.
27068 (pthread_teb_t): New record type.
27069
27070 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
27071 (Create_Task): Account for the Yellow Zone and the guard page.
27072
27073 2005-03-15 Vincent Celier <celier@adacore.com>
27074
27075 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27076 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27077 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27078 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
27079 Library_File_Name_For): Add new parameter In_Tree
27080 to specify the project tree: needed by the project manager.
27081 Adapt to changes in project manager using new parameter In_Tree.
27082 Remove local imports, use functions in System.CRTL.
27083
27084 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
27085 to use the project manager.
27086
27087 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
27088 In_Tree to designate the project tree. Adapt to changes in the project
27089 manager, using In_Tree.
27090
27091 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
27092 Copy_Interface_Sources): Add new parameter In_Tree to specify the
27093 project tree: needed by the project manager.
27094 (Build_Library): Check that Arg'Length >= 6 before checking if it
27095 contains "--RTS=...".
27096
27097 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
27098 Library_File_Name_For): Add new parameter In_Tree to specify the
27099 project tree: needed by the project manager.
27100
27101 * prj.ads, prj.adb: Major modifications to allow several project trees
27102 in memory at the same time.
27103 Change tables to dynamic tables and hash tables to dynamic hash
27104 tables. Move tables and hash tables from Prj.Com (in the visible part)
27105 and Prj.Env (in the private part). Move some constants from the visible
27106 part to the private part. Make other constants deferred.
27107 (Project_Empty): Make it a variable, not a function
27108 (Empty_Project): Add parameter Tree. Returns the data with the default
27109 naming data of the project tree Tree.
27110 (Initialize): After updating Std_Naming_Data, copy its value to the
27111 component Naming of Project Empty.
27112 (Register_Default_Naming_Scheme): Use and update the default naming
27113 component of the project tree, instead of the global variable
27114 Std_Naming_Data.
27115 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
27116 Tree is not defaulted, return the default naming data of the Tree.
27117 (Initial_Buffer_Size): Constant moved from private part
27118 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
27119 variables initialized in procedure Initialize.
27120 (Add_To_Buffer): Add two in out parameters to replace global variables
27121 Buffer and Buffer_Last.
27122 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
27123 functions.
27124 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
27125 hash tables.
27126 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27127 for the project tree.
27128 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
27129 constant at the beginning of the package spec, so that they cane be used
27130 in subprograms before their full declarations.
27131 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
27132 (Empty_Project): Add parameter of type Project_Node_Ref
27133 (Private_Project_Tree_Data): Add component Default_Naming of type
27134 Naming_Data.
27135 (Buffer, Buffer_Last): remove global variables
27136 (Add_To_Buffer): Add two in out parameters to replace global variables
27137 Buffer and Buffer_Last.
27138 (Current_Packages_To_Check): Remove global variable
27139 (Empty_Name): Move to private part
27140 (No-Symbols): Make it a constant
27141 (Private_Project_Tree_Data): New type for the private part of the
27142 project tree data.
27143 (Project_Tree_Data): New type for the data of a project tree
27144 (Project_Tree_Ref): New type to designate a project tree
27145 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
27146 for the project tree.
27147
27148 * prj-attr.ads: Add with Table; needed, as package Prj no longer
27149 imports package Table.
27150
27151 * prj-com.adb: Remove empty, no longer needed body
27152
27153 * prj-com.ads: Move most of the content of this package to package Prj.
27154
27155 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
27156 designate the project node tree and Packages_To_Check to replace
27157 global variable Current_Packages_To_Check.
27158 Add new parameters In_Tree and Packages_To_Check to local subprograms,
27159 when needed. Adapt to changes in project manager with project node tree
27160 In_Tree.
27161
27162 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
27163 project tree to most subprograms. Move tables and hash tables to
27164 private part of package Prj.
27165 Adapt to changes in project manager using project tree In_Tree.
27166
27167 * prj-makr.adb (Tree): New constant to designate the project node tree
27168 Adapt to change in project manager using project node tree Tree
27169
27170 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27171 display the Library_Src_Dir and the Library_Dir.
27172 Add new parameter In_Tree to designate the project node tree to most
27173 subprograms. Adapt to changes in the project manager, using project tree
27174 In_Tree.
27175 (Check_Naming_Scheme): Do not alter the casing on platforms where
27176 the casing of file names is not significant.
27177 (Check): Add new parameter In_Tree to designate the
27178
27179 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27180 designate the project tree.
27181 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27182
27183 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27184 to replace those that were in the private part of package Prj.
27185 Add new parameter In__Tree to designate the project node tree to most
27186 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27187 (Post_Parse_Context_Clause): When specifying the project node of a with
27188 clause, indicate that it is a limited with only if there is "limited"
27189 in the with clause, not necessarily when In_Limited is True.
27190 (Parse): Add new parameter In_Tree to designate the project node tree
27191
27192 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27193 designate the project node tree. Adapt to change in Prj.Tree with
27194 project node tree In_Tree.
27195
27196 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27197 tree In_Tree in the call to function Empty_Process to give its initial
27198 value to the project data Processed_Data.
27199 Add new parameters In_Tree to designate the project tree and
27200 From_Project_Node_Tree to designate the project node tree to several
27201 subprograms. Adapt to change in project manager with project tree
27202 In_Tree and project node tree From_Project_Node_Tree.
27203
27204 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27205 to replace those that were in the private part of package Prj.
27206 Add new parameter In_Tree to designate the project node tree to most
27207 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27208
27209 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27210 Project_Node_Tree_Ref to most subprograms.
27211 Use this new parameter to store project nodes in the designated project
27212 node tree.
27213 (Project_Node_Tree_Ref): New type to designate a project node tree
27214 (Tree_Private_Part): Change table to dynamic table and hash tables to
27215 dynamic hash tables.
27216
27217 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27218 the project tree to most subprograms. Adapt to changes in project
27219 manager using project tree In_Tree.
27220
27221 * makegpr.adb (Project_Tree): New constant needed to use project
27222 manager.
27223
27224 2005-03-15 Olivier Hainque <hainque@adacore.com>
27225
27226 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27227 for sigactions with SA_SIGINFO set. Call
27228 __gnat_adjust_context_for_raise before raising, to perform the
27229 potentially required adjustments to the machine context for the GCC
27230 unwinder.
27231
27232 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27233
27234 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27235 Adjust PC by one in the provided machine context.
27236 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27237 so that the handler is passed the context structure to adjust prior to
27238 the raise.
27239 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27240 SA_SIGINFO sigaction should look like. Call
27241 __gnat_adjust_context_for_raise before actually raising.
27242 (__gnat_adjust_context_for_raise): Default noop to help PC
27243 adjustments before raise from signal handlers.
27244 (__gnat_error_handler): Indirectly call a predicate function to
27245 determine if a condition should be resignaled or not.
27246 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27247 (__gnat_default_resignal_p): Default GNAT predicate.
27248
27249 2005-03-15 Doug Rupp <rupp@adacore.com>
27250
27251 * adaint.c: Prefix #include of VMS system header files with vms/
27252 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27253 Do not define a dummy function "convert_addresses" under Darwin,
27254 not needed.
27255
27256 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27257 with vms/
27258
27259 2005-03-15 Nicolas Setton <setton@adacore.com>
27260
27261 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27262 PPC/AIX.
27263
27264 2005-03-15 Robert Dewar <dewar@adacore.com>
27265
27266 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27267 AI-386.
27268
27269 * a-retide.ads: Minor comment changes
27270
27271 2005-03-15 Robert Dewar <dewar@adacore.com>
27272
27273 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27274 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27275 Realloc_For_Chunk to private part of package.
27276 New subprograms for AI-301
27277
27278 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27279 Get_Line procedure.
27280 Avoid unnecessary use of Get/Set_Wide_String
27281
27282 2005-03-15 Robert Dewar <dewar@adacore.com>
27283
27284 PR ada/13470
27285 * a-stunau.ads, a-stunau.adb:
27286 Change interface to allow efficient (and correct) implementation
27287 The previous changes to allow extra space in unbounded strings had
27288 left this interface a bit broken.
27289
27290 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27291
27292 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27293 Minor reformatting (function specs)
27294
27295 * g-spitbo.adb: New interface for Get_String
27296
27297 * g-spitbo.ads: Minor reformatting
27298
27299 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27300
27301 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27302
27303 2005-03-15 Javier Miranda <miranda@adacore.com>
27304 Robert Dewar <dewar@adacore.com>
27305 Thomas Quinot <quinot@adacore.com>
27306 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27307
27308 * atree.ads, atree.adb: Add support for Elist24 field
27309
27310 * atree.h: Fix wrong definition of Field27
27311 Add support for Elist16 field
27312 Add support for Elist24 field
27313
27314 * einfo.ads, einfo.adb (Abstract_Interfaces,
27315 Set_Abstract_Interfaces): New subprograms.
27316 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27317 subprograms.
27318 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27319 entities rather than a single node.
27320 (Is_Interface, Set_Is_Interface): New subprogram
27321 (First_Tag_Component): New syntesized attribute
27322 (Next_Tag_Component): New synthesized attribute
27323 (Write_Entity_Flags): Upgraded to write Is_Interface
27324 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27325 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27326 (Task_Body_Procedure): New subprogram to read this attribute.
27327 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27328 (Has_Controlled_Component): Now applies to all entities.
27329 This is only a documentation change, since it always worked to apply
27330 this to other than composite types (yielding false), but now this is
27331 official.
27332 Update documentation on Must_Be_Byte_Aligned for new spec
27333
27334 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27335 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27336 uses of the Access_Disp_Table attribute to reference the first dispatch
27337 table associated with a tagged type. As
27338 part of the implementation of abstract interface types,
27339 Access_Disp_Table has been redefined to contain a list of dispatch
27340 tables (rather than a single dispatch table).
27341 Similarly, upgrade all the references to Tag_Component by the
27342 new attribute First_Tag_Component.
27343 (Find_Inherited_TSS): Moved to exp_tss.
27344 Clean up test in Expand_N_Object_Declaration for cases
27345 where we need to do a separate assignment of the initial value.
27346 (Expand_N_Object_Declaration): If the expression in the
27347 declaration of a tagged type is an aggregate, no need to generate an
27348 additional tag assignment.
27349 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27350 is to be deleted.
27351 Bit packed array ops are only called if operands are known to be
27352 aligned.
27353 (Component_Equality): When returning an N_Raise_Program_Error statement,
27354 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27355 expects that only expressions have a bona fide type).
27356 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27357 determine the amount of data to be copied.
27358
27359 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27360 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27361 INTERFACE_TYPE_DEFINITION ::=
27362 [limited | task | protected | synchronized] interface
27363 [AND interface_list]
27364
27365 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27366 interfaces.
27367 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27368 interfaces.
27369 (P_Interface_Type_Definition): New subprogram that parses the new
27370 syntax rule of Ada 2005 interfaces
27371 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27372 messages by the correct RENAMES (quotes removed).
27373
27374 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27375 attribute First_Tag_Component.
27376
27377 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27378 (Interface_List, Set_Interface_List): New subprograms.
27379 (Interface_Present, Set_Interface_Present): New subprograms.
27380 (Limited_Present, Set_Limited_Present): Available also in derived
27381 type definition nodes.
27382 (Protected_Present, Set_Protected_Present): Available also in
27383 record type definition and
27384 derived type definition nodes.
27385 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27386 (Task_Present, Set_Task_Present): New subprogram.
27387 (Task_Body_Procedure): Removed.
27388 (Set_Task_Body_Procedure): Removed.
27389 These subprogram have been removed because the attribute
27390 Task_Body_Procedure has been moved to the corresponding task type
27391 or task subtype entity to leave a field free to store the list
27392 of interfaces implemented by a task (for AI-345)
27393 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27394 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27395 expression flag Do_Range_Check
27396 (Exception_Junk): Change to Flag7 to accomodate above change
27397 (Box_Present, Default_Name, Specification, Set_Box_Present,
27398 Set_Default_Name, Set_Specification): Expand the expression
27399 "X in N_Formal_Subprogram_Declaration" into the corresponding
27400 two comparisons. Required to use the csinfo tool.
27401
27402 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27403 "with string" given.
27404
27405 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27406 expression given.
27407
27408 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27409 in 2005 mode
27410
27411 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27412 attribute Task_Body_Procedure rather than the old semantic field that
27413 was available in the task_type_declaration node.
27414
27415 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27416 interface type definitions.
27417 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27418 interfaces.
27419
27420 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27421 task type declaration.
27422 (P_Protected): Modified to handle the list of interfaces in a
27423 protected type declaration.
27424
27425 2005-03-15 Doug Rupp <rupp@adacore.com>
27426 Vincent Celier <celier@adacore.com>
27427
27428 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27429 (Gen_Output_File_C): Likewise.
27430 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27431
27432 2005-03-15 Thomas Quinot <quinot@adacore.com>
27433
27434 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27435 is an N_Raise_Constraint_Error node, create a new copy of it without
27436 going through a call to Duplicate_Subexpr.
27437
27438 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27439 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27440 Nicolas Setton <setton@adacore.com>
27441 Ed Schonberg <schonberg@adacore.com>
27442
27443 PR ada/19900
27444 PR ada/19408
27445 PR ada/19140
27446 PR ada/20255
27447 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27448 representation clause that prescribes a size not equal to the rounded
27449 size of their types.
27450 (gnat_to_gnu_entity, case E_Component): Always look at
27451 Original_Record_Component if Present and not the entity.
27452 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27453 of tagged extension types by not making field for components that are
27454 inside the parent.
27455 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27456 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27457 expression to the type of the object when the object is constant.
27458 Reverse defer_debug_incomplete_list before traversing it, so that trees
27459 are processed in the order at which they were added to the list. This
27460 order is important when using the stabs debug format.
27461 If we are deferring the output of debug information, also defer this
27462 output for a function return type.
27463 When adding fields to a record, prevent emitting debug information
27464 for incomplete records, emit the information only when the record is
27465 complete.
27466 (components_to_record): New parameter defer_debug.
27467 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27468 (gnat_to_gnu_field_decl): New function.
27469 (substitution_list, annotate_rep): Call it.
27470 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27471 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27472 No longer update discriminants to not be a COMPONENT_REF.
27473 (copy_alias_set): Strip padding from input type; also handle
27474 unconstrained arrays properly.
27475
27476 * gigi.h (write_record_type_debug_info): New function.
27477 Convert to use ANSI-style prototypes. Remove unused
27478 declarations for emit_stack_check, elab_all_gnat and
27479 set_second_error_entity.
27480 (gnat_to_gnu_field_decl): New decl.
27481
27482 * utils.c (write_record_type_debug_info): New function.
27483 (finish_record_type): Delegate generation of debug information to
27484 write_record_type_debug_info.
27485 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27486 (update_pointer_to): Fix pasto.
27487 (convert) <UNION_TYPE>: Accept slight type variations when
27488 converting to an unchecked union type.
27489
27490 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27491 replace the N_Freeze_Entity with a null statement.
27492
27493 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27494 within a constrained subcomponent of an enclosing record, place the
27495 freeze nodes in the scope stack entry for the enclosing record.
27496 (Undelay_Type): New Subprogram.
27497 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27498 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27499 within records; allow them to have freeze nodes if their base types
27500 aren't frozen yet.
27501
27502 * exp_util.adb (Remove_Side_Effects): Properly test for
27503 Expansion_Delayed and handle case when it's inside an
27504 N_Qualified_Expression.
27505
27506 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27507 Comes_From_Generic, to recognize accurately that the parent type in a
27508 derived type declaration can be traced back to a formal type, because
27509 it is one or is derived from one, or because its completion is derived
27510 from one.
27511 (Constrain_Component_Type): If component comes from source and has no
27512 explicit constraint, no need to constrain in in a subtype of the
27513 enclosing record.
27514 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27515 Minor change to propagate Is_Ada_2005 flag
27516
27517 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27518 Expansion_Delayed is False.
27519 (assoc_to_constructor): Ignore fields that have a
27520 Corresponding_Discriminant.
27521 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27522 function returns "by target", dereference the target pointer using the
27523 type of the actual return value.
27524 <all>: Be prepared for a null gnu_result.
27525 (processed_inline_subprograms): Check flag_really_no_inline
27526 instead of flag_no_inline.
27527 (set_second_error_entity): Remove unused function.
27528 (gnat_to_gnu, case N_Selected_Component): Call
27529 gnat_to_gnu_field_decl.
27530 (assoc_to_constructor): Likewise.
27531
27532 2005-03-15 Robert Dewar <dewar@adacore.com>
27533 Ed Schonberg <schonberg@adacore.com>
27534 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27535
27536 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27537 Must_Be_Byte_Aligned for cases where we do not need to use a
27538 System.Pack_nn unit.
27539
27540 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27541 as procedures.
27542 Needed now that we do some processing for IN parameters as well. This
27543 may well fix some unrelated errors.
27544 (Expand_Call): Handle case of unaligned objects (in particular those
27545 that come from packed arrays).
27546 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27547 renamed entity is an inherited operation, re-expand the call using the
27548 original operation, which is the one to call.
27549 Detect attempt to inline parameterless recursive subprogram.
27550 (Represented_As_Scalar): Fix to work properly with private types
27551 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27552 accurate estimate. Yields True in far fewer cases than before,
27553 improving the quality of code that depends on this test.
27554
27555 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27556 over both visible and private declarations to remove them from tree,
27557 and mark subprograms declared in package as eliminated, to prevent
27558 spurious use in subsequent compilation of generic units in the context.
27559
27560 * exp_util.ads: Minor cleanup in variable names
27561
27562 * sem_eval.ads, sem_eval.adb: Minor reformatting
27563 (Compile_Time_Known_Bounds): New function
27564
27565 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27566
27567 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27568 determining whether an unchecked conversion is needed for the argument
27569 of an initialization call.
27570
27571 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27572
27573 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27574 that appears in the instantiation rather than the internal subtype
27575 generated in the wrapper package, to avoid anomalies in gigi when the
27576 target is derived from a private type whose full view is an access type.
27577
27578 2005-03-15 Robert Dewar <dewar@adacore.com>
27579
27580 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27581 not needed.
27582 Add documentation to replace the use of this flag
27583 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27584 the x86_64.
27585
27586 2005-03-15 Thomas Quinot <quinot@adacore.com>
27587
27588 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27589 here from exp_attr so it can be shared between exp_attr and exp_dist.
27590 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27591 all TSS names, not a subset thereof, and the previous name introduced
27592 an unnecessarily confusion that a distinction might exist between
27593 "OK" TSS names and some "not OK" TSS names.
27594
27595 2005-03-15 Doug Rupp <rupp@adacore.com>
27596
27597 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27598 Command_Name.
27599
27600 2005-03-15 Pascal Obry <obry@adacore.com>
27601 Eric Botcazou <ebotcazou@adacore.com>
27602
27603 PR ada/20226
27604 PR ada/20344
27605 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27606 when IN_RTS. This is to work around a bootstrap path problem.
27607
27608 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27609 table and pass it to __gnat_install_SEH_handler().
27610 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27611
27612 * lang.opt: Fix specification of -fRTS=.
27613
27614 2005-03-15 Doug Rupp <rupp@adacore.com>
27615 Bernard Banner <banner@adacore.com>
27616 Vincent Celier <celier@adacore.com>
27617 Arnaud Charlet <charlet@adacore.com>
27618
27619 PR ada/6852
27620 This change works fine when gnatlib is built from the gcc directory,
27621 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27622 is not passed to ada/Makefile.in, so more work is needed by a
27623 Makefile/configure expert.
27624
27625 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27626 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27627 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27628 for Linux x86.
27629 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27630 Run ranlib on libgccprefix.a
27631 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27632 (ADA_INCLUDE_SRCS): Split Ada packages.
27633
27634 2005-03-15 Robert Dewar <dewar@adacore.com>
27635
27636 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27637
27638 * impunit.adb: Add GNAT.UTF_32
27639
27640 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27641
27642 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27643 now uses GNAT.UTF_32).
27644
27645 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27646 capabilities for categorizing characters using Unicode categories
27647
27648 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27649
27650 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27651 instantiation that has been rewritten as a package body, retrieve spec
27652 to generate proper name for implicit_with_clause.
27653 (Install_Parents): Recognize a parent that is an instantiation but has
27654 been rewritten as a package declaration during analysis.
27655
27656 2005-03-15 Javier Miranda <miranda@adacore.com>
27657 Ed Schonberg <schonberg@adacore.com>
27658
27659 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27660 parameter reported some error we immediately return. This improves the
27661 behaviour of the frontend in case of errors.
27662 (Install_Parent, Remove_Parent): Introduce new flag
27663 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27664 ancestor of a generic child unit, when the child is being instantiated.
27665 (Inline_Instance_Body): If we are compiling the private
27666 part or the body of a child unit, restore the proper visibility of the
27667 parents after compiling the instance body.
27668
27669 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27670 Javier Miranda <miranda@adacore.com>
27671
27672 PR ada/15608
27673 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27674 of a private type, in which case it is underlying_type that denotes
27675 the proper task. Also modified to use the new entity attribute
27676 that is directly available in the task type and task subtype entities
27677 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27678 arrays when other dimensions than the first are constrained by
27679 discriminants of an enclosing record.
27680 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27681 a combination of indexed and selected components, find ultimate entity
27682 and generate the appropriate reference for it, to suppress spurious
27683 warnings.
27684 (Note_Possible_Modification): If an entity name has no entity, return.
27685 (Is_Variable): A function call never denotes a variable.
27686 (Requires_Transient_Scope): For record types, recurse only on
27687 components, not on internal subtypes that may have been generated for
27688 constrained components.
27689
27690 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27691
27692 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27693 Eliminated as candidates for resolution. Both efficient, and avoids
27694 anomalies with operators declared in deleted code.
27695 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27696 expansion is disabled (as when compiling a generic) to prevent spurious
27697 warnings on prefixes of selected components.
27698
27699 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27700
27701 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27702 attached to a list before checking whether it appears in the private
27703 declarations of the current package.
27704 (Make_Inequality_Operator): Insert declaration in proper declarative
27705 list rather than just setting the Parent field, so that
27706 Is_Private_Declaration can handle it properly.
27707
27708 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27709
27710 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27711 a renaming a body, check that the renamed subprogram in not intrinsic.
27712 (Find_Direct_Name): If several use_visible entities hide
27713 each other, and the context is a predefined file compiled through
27714 rtsfind, keep only the entity that comes from a predefined file.
27715
27716 2005-03-15 Geert Bosch <bosch@adacore.com>
27717
27718 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27719 long float padding to also cover AMD64 and IA64.
27720
27721 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27722
27723 * s-imgwch.adb: Add with and use of Interfaces.
27724 (Img_Wide_Character): Change type of Val to Unsigned_16.
27725 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27726
27727 2005-03-15 Matthew Gingell <gingell@adacore.com>
27728
27729 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27730
27731 2005-03-15 Robert Dewar <dewar@adacore.com>
27732
27733 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27734
27735 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27736
27737 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27738
27739 2005-03-15 Robert Dewar <dewar@adacore.com>
27740
27741 * s-bitops.adb, s-bitops.ads,
27742 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27743 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27744 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27745 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27746 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27747 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27748 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27749 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27750 reformatting.
27751
27752 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27753
27754 * utils2.c (build_binary_op): Fix typo.
27755
27756 2005-03-15 Doug Rupp <rupp@adacore.com>
27757
27758 * s-crtl.ads (popen,pclose): New imports.
27759
27760 2005-03-15 Cyrille Comar <comar@adacore.com>
27761
27762 * comperr.adb (Compiler_Abort): remove references to obsolete
27763 procedures in the bug boxes for various GNAT builds.
27764
27765 2005-03-15 Vincent Celier <celier@adacore.com>
27766
27767 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27768
27769 2005-03-15 Geert Bosch <bosch@adacore.com>
27770 Arnaud Charlet <charlet@adacore.com>
27771 Robert Dewar <dewar@adacore.com>
27772 Cyrille Comar <comar@adacore.com>
27773 Sergey Rybin <rybin@adacore.com>
27774
27775 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27776 too specific and long-winded to be appropriate for the GNAT User's
27777 Guide.
27778 Warn about use of GCC switches not documented in the GNAT User's Guide,
27779 as these may cause generated code to not conform to Ada semantics.
27780 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27781 Add documentation for -gnat95 and -gnat05 switches
27782 Remove paragraph documenting obsolete way to refer to third party
27783 libraries.
27784 Add a few references to Ada_05 that were missing.
27785 Update documentation on -gnatZ/-gnatL.
27786 Document limitation when using -m64 under Solaris.
27787 Change the "Name Casing" subsection of the pretty-printer section
27788 according to the changes in the dictionary processing.
27789
27790 * gnat_rm.texi: Document the Ada_05 pragma.
27791 Section on record representation clauses describes the new more
27792 relaxed rules about placement of large packed bit array components.
27793 Add documentation of GNAT.UTF_32
27794
27795 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
27796
27797 * misc.c (gnat_post_options): Turn off structural
27798 aliasing for now.
27799
27800 2005-03-08 Laurent Guerby <laurent@guerby.net>
27801
27802 * system-linux-sparc.ads: Fix typo in previous commit.
27803
27804 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
27805 Laurent Guerby <laurent@guerby.net>
27806
27807 PR ada/20035
27808 * system-linux-sparc.ads: New.
27809 * Makefile.in: Add sparc linux entry.
27810
27811 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
27812
27813 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27814 parameters as unused.
27815
27816 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27817 Partial merge from libada-gnattools-branch:
27818
27819 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27820 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27821 into code in gnattools/Makefile.in. Remove direct dependencies on
27822 stamp-tools by tools clauses.
27823 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27824 * config-lang.in: Add gnattools to $lang_dirs.
27825
27826 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27827
27828 PR ada/19942
27829 * utils.c (gnat_type_for_mode): Return null instead of ICE because
27830 we asked for an unknown mode.
27831
27832 2005-02-12 Richard Henderson <rth@redhat.com>
27833
27834 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27835 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27836
27837 2005-02-10 Andreas Jaeger <aj@suse.de>
27838
27839 * init.c (__gnat_initialize): Mark parameter as unused.
27840
27841 2005-02-09 Doug Rupp <rupp@adacore.com>
27842
27843 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27844 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27845
27846 2005-02-09 Doug Rupp <rupp@adacore.com>
27847
27848 * gnatchop.adb (dup, dup2),
27849 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27850
27851 * gnatlbr.adb (mkdir),
27852 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27853
27854 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27855
27856 2005-02-09 Doug Rupp <rupp@adacore.com>
27857
27858 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27859
27860 2005-02-09 Robert Dewar <dewar@adacore.com>
27861 Thomas Quinot <quinot@adacore.com>
27862 Javier Miranda <miranda@adacore.com>
27863 Pascal Obry <obry@adacore.com>
27864 Ed Schonberg <schonberg@adacore.com>
27865 Doug Rupp <rupp@adacore.com>
27866 Gary Dismukes <dismukes@adacore.com>
27867 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27868
27869 * g-zstspl.ads: New file.
27870
27871 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27872
27873 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27874 Ada 95 mode
27875 Add definition of Wide_Wide_Space for AI-285
27876
27877 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27878 interface (to support Ada 95 and Ada 2005 units).
27879 Add Unbounded_IO files
27880 Add entries for Wide_Wide packages for AI-285
27881 Add list of containers packages to Ada 2005 unit list
27882
27883 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27884 support new Unbounded_IO package cleanly.
27885
27886 * g-utf_32.ads, g-utf_32.adb: New files.
27887
27888 * Makefile.rtl: Add entry for g-utf_32
27889 Add new files for Unbounded_IO
27890 Adjust make file for new AI-285 wide wide packages
27891 Add AI-302 containers to the run time.
27892
27893 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27894 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27895 subprograms for AI-301.
27896
27897 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27898
27899 * a-stunau.ads: Minor comment correction
27900
27901 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27902 etc.
27903 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27904 (Check_RPC): Update to match changes in expanded code.
27905 Clean up unused entity.
27906
27907 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27908 was not taken into account.
27909 This includes proper initialization with Normalize_Scalars.
27910 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27911 normalize scalars cases (particularly the latter) to do a better job
27912 of finding invalid representations.
27913
27914 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27915
27916 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27917 used
27918
27919 * exp_dist.adb: Add support for wide wide character type
27920 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27921 private part, generate stub bodies at the end of the private part,
27922 not the visible part.
27923 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27924 PolyORB support.
27925 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27926 generic wrapper to execute final processing after completing the
27927 expansion of the RPC receiver for an RACW.
27928
27929 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27930 packages and attributes.
27931 (Preset_Names): Addition of the new reserved words of Ada 2005,
27932 that is interface, overriding and synchronized.
27933 (Get_Pragma_Id): Give support to the use of the new reserved word
27934 "interface" as a pragma name.
27935 (Is_Pragma_Name): Give support to the use of the new reserved word
27936 "interface" as a pragma name.
27937 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27938 attribute implementation.
27939
27940 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27941 checks to entities that are output parameters of Asm operations.
27942 Handle the Stream_Size attribute.
27943 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27944
27945 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27946
27947 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27948 for second parameter being 0.0.
27949 Add support for wide wide character type.
27950 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27951
27952 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27953 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27954 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27955 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27956 for wide wide character cases.
27957
27958 * cstand.adb: Create entities for Wide_Wide_Character and
27959 Wide_Wide_String.
27960
27961 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27962 accordance with AI-258.
27963 Add new declarations for 16/32 bit C character types (Part of AI285)
27964
27965 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27966 (Obsolescent_Warning): New field
27967 (Rep_Clause): New local subprogram used to share code. Returns the rep
27968 clause for which the name is given in parameter.
27969 (Has_Stream_Size_Clause): New routine.
27970 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27971 (Address_Clause): Implementation is now using Rep_Clause.
27972 (Alignment_Clause): Idem.
27973 (Size_Clause): Idem.
27974
27975 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27976 entity in non-Ada 2005 mode and generate warning.
27977
27978 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27979 (Prag): Code cleanup. Remove old gnat pragma "overriding"
27980
27981 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27982 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27983 on the named unit if the pragma is not in the current compilation unit,
27984 so that elaboration calls in the current unit can set up an elaboration
27985 dependency on the named unit, as needed.
27986 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27987 subprogram as well as for subprograms declared within a package.
27988 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27989 pragma overriding.
27990
27991 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27992 to z) to avoid some instances of duplication for Wide_Wide packages.
27993
27994 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27995 characters.
27996
27997 * scn.adb: Char_Literal_Value field is now a Uint
27998
27999 * scng.adb: Significant rewrite to handle new Ada 2005 features
28000 allowing wide and wide wide characters in program text, e.g. for
28001 identifiers, as described in AI-285.
28002 (Set_Reserved): New procedure, makes setting up keywords cleaner.
28003 (Initialize_Scanner): Register the new reserved words of Ada 2005.
28004 (Scan): Give support to the new reserved words.
28005
28006 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
28007 warning notifying that interface, overriding, and synchronized are
28008 new reserved words.
28009 (P_Pragma): Allow the use of the new reserved word "interface" as
28010 a pragma name.
28011
28012 * gnatls.adb, gnatbind.adb,
28013 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
28014 identifiers named "interface" to "SAL_Interface".
28015
28016 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
28017 (Structured Exception handling).
28018 (Gen_Main_C): Idem.
28019
28020 * bindgen.adb:
28021 (Gen_Main_Ada): Set the default exit code if specified.
28022 (Gen_Main_C): Likewise.
28023 Part of *DC20-006.
28024 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
28025 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
28026
28027 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
28028 new -Xnnn switch.
28029
28030 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
28031 has a collision with the new Ada 2005 "interface" reserved word.
28032
28033 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
28034 generate a warning notifying that interface, overriding, and
28035 synchronized are new reserved words.
28036
28037 * scans.ads (Token_Type): Addition of the tokens corresponding to the
28038 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
28039 and Tok_Synchronized.
28040
28041 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
28042 "dispatching" rather than "primitive" operations, since dispatching
28043 calls are now allowed to abstract formal subprograms (which are not
28044 primitive).
28045 Char_Literal_Value field is now a Uint
28046 (Resolve_Slice): If the prefix is an access to an unconstrained array,
28047 compute the actual subtype of the designated object to impose the proper
28048 index constraints.
28049 (Resolve_Selected_Component): Do not insert an access check if the
28050 prefix is an access type: such a node is expanded into an explicit
28051 dereference, on which the access check is performed anyway. Removes
28052 expensive duplicate checks.
28053 (Resolve_Call): Use new flag Is_Obsolescent and field
28054 Obsolescent_Warning so that pragma Obsolescent works on library
28055 subprograms.
28056 Add support for wide wide character type
28057 (Resolve_Allocator): Replace the error message on wrong null-exclusion
28058 value by a warning message.
28059 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
28060 as fixed-point, and one of the operands is non-static and universal, it
28061 can only be an illegal exponentiation operation, in which case there is
28062 no real value to retrieve.
28063
28064 * exp_strm.adb: Add support for wide wide character type
28065 (Build_Elementary_Input_Call): Compute the size of the stream element by
28066 querying the rep chain to find the Stream_Attribute attribute value.
28067 (Build_Elementary_Write_Call): Ditto.
28068
28069 * sem_aggr.adb: Char_Literal_Value field is now a Uint
28070 Add support for wide wide character type
28071 Replace the error messages on wrong null-exclusion value by warnings
28072 as described in Ada 2005.
28073 (Resolve_Extension_Aggregate): Document the fact that the error
28074 message on class-wide expressions in extensions aggregates.
28075
28076 * sem_case.adb: Add support for wide wide character type
28077
28078 * sem_ch13.adb: Add support for wide wide character type
28079 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
28080
28081 * sem_ch3.adb: Add support for wide wide character type
28082 (Process_Subtype): If constraint is illegal for the type, set Ekind of
28083 now-useless Itype, to prevent cascaded errors on a compiler built
28084 without -gnatp.
28085
28086 * sem_ch8.adb: Add with and use of Sem_Disp.
28087 (Analyze_Subprogram_Renaming): Replace unclean uses of
28088 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
28089 of Corresponding_Spec to Empty).
28090 (Attribute_Renaming): Replace use of Corresponding_Spec with
28091 Corresponding_ Formal_Spec and simplify condition.
28092 (Use_One_Package): Check that scope of homonym of identifier is defined,
28093 before checking whether it is a wrapper package.
28094 Add support for wide wide character type
28095
28096 * sem_eval.adb: Add support for wide wide character type.
28097 (Eval_Arithmetic_Op): Check for compile time known signed integer
28098 overflow in the non-static case.
28099 (Subtypes_Statically_Match): A formal scalar type and its base type do
28100 not statically match.
28101
28102 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
28103 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
28104 subtype).
28105 (Unit_Declaration_Node): Ditto.
28106 (Is_Variable_Prefix): For the case of an indexed component whose prefix
28107 has a packed array type, the prefix has been rewritten into a type
28108 conversion. Determine variable-ness from the converted expression.
28109 Handle wide wide character cases.
28110
28111 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
28112
28113 * stringt.ads, stringt.adb: Handle full UTF-32 range.
28114 Remove ["0A"] from comment, since it can look like a line terminator.
28115 Currently we don't permit this, but this is under discussion by the
28116 ARG, and it is easy enough to use a different example.
28117
28118 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
28119 handling UTF-32 encoding for wide wide character.
28120 Implement new brackets coding ["hhhhhhhh"]
28121 Add UTF-8 encodings for full UTF-32 range
28122
28123 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
28124
28125 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
28126 bit range Add full UTF-32 support.
28127 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
28128 notify that constraint error will be raised at run-time
28129 because a null value is assigned to a null-excluding object.
28130 Remove some obsolete declarations and make Char_Code
28131 unsigned.
28132
28133 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
28134 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
28135 Rcheck subprograms.
28136
28137 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
28138 wrong null-exclusion value by a warning message.
28139 (Enable_Range_Check): Do range check if the prefix is an
28140 explicit dereference whose designated object is an unconstrained array.
28141 Current algorithm for removing duplicate checks is over-eager in this
28142 case.
28143
28144 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
28145 null-exclusion value by a warning message
28146
28147 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
28148 completely. Add support for Uint2 field
28149
28150 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
28151 exp_prag.adb: Char_Literal_Value field is now a Uint.
28152
28153 * exp_util.adb (Insert_Actions): Replace
28154 N_Formal_Subprogram_Declaration by
28155 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
28156 Char_Literal_Value field is now a Uint.
28157
28158 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
28159 defined for subprogram renaming declarations. When set, the field
28160 indicates the defining entity of a corresponding formal subprogram
28161 when the renaming corresponds to a formal subprogram association in an
28162 instantiation.
28163 (Set_Corresponding_Formal_Spec): New procedure to return
28164 Corresponding_Formal_Spec field.
28165 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
28166 (which is now a subtype).
28167 Char_Literal_Value field is now a Uint
28168
28169 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
28170 pointer to the base of the dispatch table.
28171 Minor changes to comments.
28172 (Controlling_Type): New function for determining the tagged type
28173 associated with a tagged primitive subprogram.
28174 (Expand_Dispatching_Call): Add support for a controlling actual that is
28175 directly a value of type Ada.Tag rather than a tagged object.
28176
28177 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28178 describing the new layout.
28179 (Dispatch_Table): The expander computes the actual array size, allocates
28180 the Dispatch_Table record accordingly, and generates code that displaces
28181 the base of the record after the Typeinfo_Ptr component. The access to
28182 these components is done by means of local functions.
28183 (Offset_To_Top): New function.
28184 (Typeinfo_Ptr): New function.
28185 (Get_TSD): Modified to access the new position of the TSD.
28186 (Set_TSD): Modified to save the TSD in its new position.
28187
28188 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28189 case of formal abstract subprograms. Add check and message for -gnat05.
28190 Update comments.
28191
28192 * sem_ch12.adb: Add with and use for Sem_Disp.
28193 (Analyze_Associations): Minor change from "=" to "in" for use of
28194 N_Formal_Subtype_Declaration (which is now a subtype).
28195 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28196 N_Formal_Subtype_Declaration (which is now a subtype).
28197 (Analyze_Formal_Subprogram): Add handling for
28198 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28199 dispatching, setting the controlling status of the formal parameters
28200 and result, and issuing an error if there is no controlling type for
28201 the formal subprogram.
28202 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28203 which is an unclean use of that field, we set the new field
28204 Corresponding_Formal_Spec to make the formal subprogram available to
28205 processing in Analyze_Subprogram_Declaration.
28206 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28207 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28208 Constrained, so that it is is does not statically match its anonymous
28209 base type.
28210
28211 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28212 abstract formal subprograms in error check for functions returning
28213 abstract types. Set scope of new designator for
28214 a parameterless subprogram, so that it is available when checking the
28215 body for nested subprograms, before full analysis of said body.
28216 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28217 subprogram only if inner one comes from source.
28218 (Analyze_Function_Call): If the call is given in object notation, the
28219 analysis of the name rewrites the node and analyzes it with the proper
28220 argument list. After analyzing the name, if the call has been rewritten
28221 and the result type is set, no further analysis is needed.
28222 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28223 mark in function specification, in a context where the formals are
28224 visible and hide outer homographs.
28225
28226 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28227 as the tagged type for the cases of abstract formal subprograms and
28228 renamings of those. Clean up spec comments.
28229 (Check_Dispatching_Context): Add error message to indicate "abstract
28230 procedure", covering the case of a call to a formal abstract procedure
28231 that has statically tagged operands.
28232 (Check_Dispatching_Call): Check for the case of an actual given by
28233 a tag-indeterminate function call whose type is an ancestor of the
28234 containing call's associated tagged type. This situation can occur
28235 for inherited primitives with function defaults. In this case we
28236 use the tagged type's tag directly as the controlling argument for
28237 the calls.
28238 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28239
28240 * sprint.adb (Sprint_Node_Actual): Split
28241 N_Formal_Subprogram_Declaration into two alternatives for the new
28242 cases N_Formal_Abstract_Subprogram_Declaration and
28243 N_Formal_Concrete_Subprogram_Declaration.
28244 Char_Literal_Value field is now a Uint.
28245
28246 * trans.c: Get rid of junk Uint2 reference.
28247 Char_Literal_Value field is now a Uint.
28248 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28249 (gigi): Correct third arg to gimplify_body.
28250
28251 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28252 (TYPE_LANG_FLAG_0): Check for record or union.
28253
28254 * treepr.adb: Char_Literal_Value field is now a Uint
28255
28256 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28257 UI_From_CC.
28258
28259 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28260 Add full UTF-32 support
28261 Char_Code is now 32 bits
28262
28263 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28264 wide character UTF_32 line terminators.
28265 Initialize Main_Source_File to avoid error when no main
28266 source is loaded.
28267
28268 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28269 (Main_Source_File) when no main source has been loaded, to avoid
28270 potential crash.
28271
28272 2005-02-09 Robert Dewar <dewar@adacore.com>
28273
28274 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28275 Fix name of Set routine
28276
28277 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28278 fixed packages.
28279
28280 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28281 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28282 fixed packages
28283
28284 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28285 forms of Get_Line subprograms for AI-301.
28286
28287 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28288 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28289 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28290 a-stwima.ads: Minor reformatting.
28291
28292 2005-02-09 Doug Rupp <rupp@adacore.com>
28293 Thomas Quinot <quinot@adacore.com>
28294
28295 * adaint.c, adaint.h
28296 [VMS] (to_ptr32): New function.
28297 (MAYBE_TO_PTR32): New macro.
28298 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28299 for pointer size.
28300 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28301 [VMS] (#define fork()): Remove since unneccessary.
28302 (__gnat_set_close_on_exec): New routine to support
28303 GNAT.OS_Lib.Set_Close_On_Exec.
28304
28305 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28306 the parent side as close-on-exec so that they are not inherited by the
28307 child.
28308
28309 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28310 set or clear the FD_CLOEXEC flag on a file descriptor.
28311
28312 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28313 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28314
28315 PR ada/19386
28316 * decl.c:
28317 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28318 on the field if Pragma Component_Alignment (Storage_Unit).
28319 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28320 side-effects as if it were a constant; also make SAVE_EXPR to protect
28321 side-effects.
28322 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28323 UNION_TYPE.
28324 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28325 (components_to_record): Test it.
28326 Fix improper usage of REFERENCE_CLASS_P.
28327
28328 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28329 RECORD_TYPE.
28330
28331 * utils2.c: Minor reformatting.
28332
28333 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28334 handle other cases like RECORD_TYPE.
28335
28336 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28337
28338 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28339
28340 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28341 component of an array of arrays in an assignment context, and the
28342 aggregate has component associations that require sliding on
28343 assignment, force reanalysis of the aggregate to generate a temporary
28344 before the assignment.
28345 (Must_Slide): Make global to the package, for use in Gen_Assign.
28346
28347 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28348
28349 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28350 unchecked union with no inferable discriminants, return a
28351 Raise_Program_Error node, rather than inserting it at the point the
28352 type is frozen.
28353 (Expand_Record_Equality, Component_Equality): Handle properly the case
28354 where some subcomponent is an unchecked union whose generated equality
28355 code raises program error.
28356
28357 2005-02-09 Doug Rupp <rupp@adacore.com>
28358
28359 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28360 [VMS] (#define exit hack): Remove.
28361
28362 2005-02-09 Pascal Obry <obry@adacore.com>
28363 Arnaud Charlet <charlet@adacore.com>
28364
28365 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28366 address of the exception registration. The Win32 version of this
28367 routine calls __gnat_install_SEH_handler() to initialize the SEH
28368 (Structured Exception Handling) handler.
28369 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28370 SEH (Structured Exception Handling) now.
28371 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28372 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28373 preprocessor condition protecting the call to the extra eh setup
28374 subprogram, which is only available for the ppc target.
28375 (__gnat_clear_exception_count): replaced reference to
28376 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28377
28378 * seh_init.c: New file.
28379
28380 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28381 (GNATBIND_OBJS): Idem.
28382
28383 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28384 routine takes a new parameter (a pointer to the exception registration
28385 for the SEH (Structured Exception Handling) support.
28386
28387 * raise.h: (__gnat_install_SEH_handler): New prototype.
28388 Update copyright notice.
28389
28390 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28391 record and initialize it by calling __gnat_install_SEH_handler.
28392
28393 2005-02-09 Vincent Celier <celier@adacore.com>
28394
28395 * make.adb (Gnatmake): Do not fail when the main project has no object
28396 directory.
28397
28398 2005-02-09 Doug Rupp <rupp@adacore.com>
28399
28400 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28401 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28402 [VMS]: Add translations for g-enblsp.adb.
28403
28404 * s-asthan-vms.adb: Removed.
28405 * s-asthan-vms-alpha.adb: Added.
28406
28407 2005-02-09 Pascal Obry <obry@adacore.com>
28408
28409 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28410 (LIBGNAT_OBJS): Add seh_init.o.
28411
28412 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28413
28414 PR ada/16592
28415 * Makefile.in: Link all gnat tools with -static-libgcc, since
28416 -shared-libgcc is now used by default on some systems (e.g. linux with
28417 recent binutils).
28418 Remove references to Makefile.prolog/generic, no longer used.
28419
28420 2005-02-09 Vincent Celier <celier@adacore.com>
28421
28422 * prj-makr.adb (Process_Directory): Put file name in canonical case
28423 before matching against the patterns.
28424 If gnatname has been invoked as <prefix>-gnatname
28425 then invoke the compiler as <prefix>-gcc, not just "gcc".
28426
28427 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28428
28429 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28430 with expansion disabled. The actual subtype is needed among other
28431 places when the selected component appears in the context of a loop
28432 bound, and denotes a packed array.
28433 (Operator_Check): Always use the first subtype in the
28434 error message, to avoid the appearance of internal base types.
28435 (Transform_Object_Operation): Copy each actual in full
28436 to the parameter associations of the constructed call, rather than
28437 using the shallow copy mechanism of New_Copy_List. This ensures that
28438 the chaining of named associations is done properly.
28439 (Complete_Object_Operation): Rewrite node, rather than
28440 replacing it, so that we can trace back to the original selected
28441 component.
28442
28443 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28444 and calls that use object notation, if the called function is not
28445 declared in a withed unit, place the elaboration constraint on the
28446 unit in the context that makes the function accessible.
28447 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28448 imposes an elaboration constraint between two packages.
28449
28450 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28451
28452 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28453 views of a private type after handling its private dependents, to
28454 maintain proper stack discipline between entry and exit from the
28455 package.
28456
28457 2005-02-09 Cyrille Comar <comar@adacore.com>
28458
28459 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28460 Minor reformatting.
28461
28462 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28463
28464 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28465 fields for foreign threads.
28466
28467 2005-02-09 Doug Rupp <rupp@adacore.com>
28468
28469 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28470 recursion warnings when compiled with -gnatdm.
28471
28472 2005-02-09 Robert Dewar <dewar@adacore.com>
28473
28474 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28475 Slight fix to documentation of -gnaty with no parameters
28476
28477 * xr_tabls.ads: Add ??? comment for missing overall comment
28478
28479 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28480 we now use by default.
28481
28482 * xsnames.adb: Adjust end of file test to look for five space followed
28483 by '#' instead of six spaces. The format of xsnames.adb was modified
28484 in the last update.
28485
28486 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28487 identifier.
28488
28489 * clean.adb: Minor reformatting.
28490
28491 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28492 gnatname.adb: Minor reformatting
28493 Add 2005 to copyright output when utility is run
28494
28495 * csets.adb: Eliminate obsolete comment
28496
28497 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28498 Update comments.
28499
28500 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28501
28502 2005-02-09 Sergey Rybin <rybin@adacore.com>
28503
28504 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28505 the difference between compact and incompact layout and add the record
28506 representation clause to the example illustrating different layouts.
28507 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28508 component clauses").
28509
28510 2005-02-09 Florian Villoing <villoing@adacore.com>
28511
28512 * gnat_ugn.texi: Fix typos.
28513 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28514 @file.
28515 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28516 in the generated documentation.
28517
28518 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28519
28520 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28521 longer supported.
28522 Update linker wrapper when linking with non GNU C++.
28523
28524 2005-02-09 Pascal Obry <obry@adacore.com>
28525
28526 * gnat_ugn.texi:
28527 Document the procedure to debug the DllMain routine on Windows.
28528 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28529 ZCX mode.
28530 Document new BIND qualifer /RETURN_CODES=VMS.
28531
28532 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28533
28534 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28535 Edited gnatmetric chapter
28536
28537 2005-02-09 Robert Dewar <dewar@adacore.com>
28538
28539 * gnat_rm.texi:
28540 Changes to document new wide wide character support
28541 For AI-285
28542 Update documentation on Normalize_Scalars and Initialize_Scalars
28543
28544 2005-02-09 Pascal Obry <obry@adacore.com>
28545
28546 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28547
28548 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28549
28550 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28551 from the VxWorks kernel) that is needed for getting the active
28552 priority of the different tasks.
28553
28554 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28555 Use a pragma Elaborate_Body in the spec file instead.
28556 Noticed by code reading.
28557
28558 2005-02-09 Thomas Quinot <quinot@adacore.com>
28559
28560 * exp_util.ads: Minor correction in comment.
28561
28562 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28563
28564 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28565 since this procedure is now too complex to be worth inlining.
28566
28567 2005-02-09 Richard Henderson <rth@redhat.com>
28568
28569 * utils.c (gnat_define_builtin): Remove.
28570 (gnat_install_builtins): Use build_common_builtin_nodes.
28571
28572 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28573
28574 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28575 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28576 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28577 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28578 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28579 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28580 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28581 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28582 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28583 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28584 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28585 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28586 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28587 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28588 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28589 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28590 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28591 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28592 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28593 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28594 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28595 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28596 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28597 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28598 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28599 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28600 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28601 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28602 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28603 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28604 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28605 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28606 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28607 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28608 library.
28609
28610 2005-01-27 Laurent Guerby <laurent@guerby.net>
28611
28612 * Makefile.in: Fix a-intnam.ads from previous commit,
28613 add 2005 to copyright.
28614 * a-intman-rtems.ads: Renamed to...
28615 * a-intnam-rtems.ads:
28616
28617 2005-01-27 Laurent Guerby <laurent@guerby.net>
28618
28619 * Makefile.in: Rename GNAT RTEMS specific files.
28620 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28621 5rosinte.ads, 5rparame.adb: Replaced by files below.
28622 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28623 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28624
28625 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28626 Laurent Guerby <laurent@guerby.net>
28627
28628 PR ada/19488
28629 * 5rosinte.ads: Add No_Key constant.
28630 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28631 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28632
28633 2005-01-26 Laurent Guerby <laurent@guerby.net>
28634
28635 PR ada/19414
28636 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28637
28638 2005-01-20 Richard Henderson <rth@redhat.com>
28639
28640 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28641 a-intnam-linux.ads and system-linux-alpha.ads.
28642 * a-intnam-linux-alpha.ads: Remove file.
28643 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28644 * system-linux-alpha.ads: New file.
28645
28646 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28647
28648 PR ada/13470
28649 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28650 set to the new string.
28651
28652 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28653
28654 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28655 to True.
28656
28657 2005-01-18 Richard Henderson <rth@redhat.com>
28658
28659 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28660 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28661 for alpha-linux.
28662 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28663
28664 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28665
28666 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28667 (GCC_ZCX_Support): Likewise.
28668
28669 2005-01-11 Bastian Blank <waldi@debian.org>
28670
28671 * system-linux-s390.ads: Define Preallocated_Stacks.
28672 * system-linux-s390x.ads: Likewise.
28673
28674 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28675
28676 * gnat_ugn.texi: Fix texi errors with null variables.
28677
28678 2005-01-03 Thomas Quinot <quinot@adacore.com>
28679
28680 * gen-soccon.c: New utility program to generate g-soccon.ads
28681 automatically.
28682
28683 * socket.c, gsocket.h: Split inclusion of system header files into a
28684 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28685
28686 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28687 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28688 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28689 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28690 should not be edited by hand anymore, but should be regenerated using
28691 gen-soccon.
28692
28693 2005-01-03 Robert Dewar <dewar@adacore.com>
28694 Ed Schonberg <schonberg@adacore.com>
28695 Vincent Celier <celier@adacore.com>
28696
28697 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28698 on/off, since this is an obsolescent feature, for which we now generate
28699 a warning.
28700
28701 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28702 warning mode is set and obsolescent usage of this attribute occurs.
28703 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28704 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28705 predates, and partly motivates, the adoption of the AI.
28706 Implement new Ada 2005 attribute Mod
28707
28708 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28709 attribute Mod.
28710
28711 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28712
28713 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28714 pragma restrictions.
28715 New entry for Ada 2005 attribute Mod.
28716
28717 * par-prag.adb:
28718 Add recognition of new pragma Restrictions No_Dependence
28719 Recognize restriction No_Obsolescent_Features at parse time
28720
28721 * bcheck.adb: Add circuitry for checking for consistency of
28722 No_Dependence restrictions.
28723
28724 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28725 restrictions.
28726
28727 * restrict.ads, restrict.adb: Add subprograms to deal with
28728 No_Dependence restrictions.
28729
28730 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28731 restrictions.
28732
28733 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28734 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28735
28736 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28737 dummy parameter to scng instantiation.
28738 Needed for new restriction No_Obsolescent_Features
28739
28740 * scn.adb: (Obsolescent_Check): New procedure
28741 Needed for new restriction No_Obsolescent_Features
28742
28743 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28744 specified by AI-285, needed for implementation of AI-388 (adding greek
28745 pi to Ada.Numerics).
28746 Add new generic formal to scng, needed for new restriction
28747 No_Obsolescent_Features.
28748
28749 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28750
28751 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28752 restrictions lines.
28753 (Scan_ALI): When finding an unexpected character on an R line, raise
28754 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28755 Ignore_Errors is True, default restrictions are set and scanning of the
28756 ALI file continues with the next line. Also, when Bad_R_Line is raised
28757 and Ignore_Errors is True, skip to the end of le line.
28758
28759 * sem_ch10.adb: Check that explicit with's do not violate
28760 No_Dependence restrictions.
28761 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28762 illegal context clauses containing child units of instance.
28763
28764 * sem_prag.adb: Processing and checking for new No_Dependence
28765 restrictions.
28766 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28767 analyze and check the External argument.
28768
28769 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28770
28771 2005-01-03 Robert Dewar <dewar@adacore.com>
28772
28773 * atree.adb: Add a fifth component to entities
28774 This allows us to add 32 flags and four new fields
28775
28776 * atree.ads: Add a fifth component to entities
28777 This allows us to add 32 flags and four new fields
28778
28779 * einfo.ads, einfo.adb: Document new fields and new flags now available
28780 Add routines for printing new fields
28781
28782 * treepr.adb: Call routines to print out additional fields if present
28783
28784 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28785
28786 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28787 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28788
28789 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28790 Remove gpr2make, replaced by gprmake.
28791 Remove references to gnatmem and libaddr2line.
28792 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28793 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28794 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28795 a-numaux-darwin.ads and a-numaux-darwin.adb
28796 Enable mlib-tgt-lynxos.adb on lynxos.
28797
28798 * Make-lang.in: Remove rules for gpr2make.
28799 When generating sdefault.adb, do not call Relocate_Path
28800 on S3 for function Target_Name, as it is not a path.
28801 Remove references to gnatmem and libaddr2line.
28802
28803 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28804 files.
28805
28806 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
28807
28808 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28809 address is incompatible with its base type alignment constraints when
28810 this can be decided statically.
28811
28812 2005-01-03 Olivier Hainque <hainque@adacore.com>
28813
28814 * decl.c (compatible_signatures_p): New function. The intended purpose
28815 is to check if two function signatures for a call-site and a callee are
28816 compatible enough for the call to be valid. The underlying purpose is
28817 to check if a call to a mapped builtin is using the right interface.
28818 The current code actually does not check antyhing - this a placeholder
28819 for future refinements.
28820 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28821 builtin calls for convention Intrinsic.
28822
28823 * gigi.h (builtin_decl_for): Declare (new function).
28824
28825 * utils.c (gnat_install_builtins): Install the target specific builtins.
28826 (builtin_decl_for): New function, provide a dummy body for now.
28827
28828 2005-01-03 Geert Bosch <bosch@adacore.com>
28829
28830 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28831 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28832 (Pred): Implement in terms of Succ.
28833
28834 * trans.c (convert_with_check): Reimplement conversion of float to
28835 integer.
28836
28837 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28838 Vincent Celier <celier@adacore.com>
28839
28840 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28841 bounds can be negative, and must be declared Int, not Nat.
28842
28843 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28844 array is checked after using the index in the array.
28845
28846 * makegpr.adb (Add_Switches): Check if there is a package for the
28847 processor. If there is no package, do not look for switches.
28848
28849 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28850
28851 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28852 generation of predefined stream operations (specs and bodies) should
28853 proceed. Under various restrictions these subprograms must not be
28854 generated.
28855
28856 2005-01-03 Thomas Quinot <quinot@adacore.com>
28857
28858 * exp_dist.adb:
28859 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28860 amount of PCS-specific code in RACW stubs generation.
28861 (Copy_Specification): Set Etype on copied formal parameter entities, as
28862 this information is needed for PolyORB stubs generation.
28863 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28864 variable Dynamic_Async.
28865 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28866 (Build_RPC_Receiver_Specification): Make generic again, as recent
28867 changes have allowed RPC receivers to have the same profile for both
28868 variants of the PCS.
28869 Reorganise RPC receiver generation to reduce differences between the
28870 structure of GARLIC and PolyORB RPC receivers.
28871 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28872 PCS-specific.
28873 Simplify elaboration code for RCI packages.
28874
28875 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28876 generation to reduce differences between the structure of GARLIC and
28877 PolyORB RPC receivers.
28878
28879 * s-stratt.adb: Fix typo in comment.
28880
28881 2005-01-03 Thomas Quinot <quinot@adacore.com>
28882
28883 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28884 copied from Make_Init_Call).
28885
28886 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28887 reads and assignments on a temporary variable declared with appropriate
28888 discriminants.
28889
28890 2005-01-03 Robert Dewar <dewar@adacore.com>
28891
28892 * i-c.adb (To_C): Raise CE if string is null and Append_Null
28893
28894 2005-01-03 Robert Dewar <dewar@adacore.com>
28895
28896 * i-cstrin.adb (Update): Do not append a null in form called with a
28897 String. This avoids unintended behavior.
28898
28899 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28900
28901 PR ada/17527
28902 * init.c: Fix warnings on Free BSD section.
28903
28904 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28905
28906 PR ada/16949
28907 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28908 xsinfo.adb).
28909
28910 2005-01-03 Vincent Celier <celier@adacore.com>
28911
28912 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28913 libraries when Unique_Compile is True (-u switch).
28914 (Gnatmake): ditto.
28915
28916 2005-01-03 Robert Dewar <dewar@adacore.com>
28917
28918 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28919 upper case letter or underscore after W, as allowed by spec.
28920
28921 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28922
28923 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28924 darwin port by using proper type definitions from header files.
28925 Use SIGTERM instead of SIGABRT for SIGADAABORT.
28926
28927 2005-01-03 Robert Dewar <dewar@adacore.com>
28928
28929 * par.adb: Enhance error message handling for configuration file
28930 pragmas.
28931
28932 2005-01-03 Robert Dewar <dewar@adacore.com>
28933
28934 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28935 removed during the previous update (test properly for case of dividing
28936 largest negative number by -1, which generates overflow).
28937
28938 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28939 Sergey Rybin <rybin@adacore.com>
28940
28941 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28942 to use as the defining identifier for a formal package.
28943 (Remove_Parent): If the instance takes place within (an instance of)
28944 a sibling, preserve private declarations of common parent.
28945
28946 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28947
28948 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28949 to determine whether one of the operands is a fixed-point type for
28950 which a user-defined multiplication or division operation might be
28951 defined.
28952
28953 * sem_res.adb (Valid_Conversion): The legality rules for conversions
28954 of access types are symmetric in Ada 2005: either designated type can
28955 be unconstrained.
28956
28957 2005-01-03 Vincent Celier <celier@adacore.com>
28958
28959 * s-fileio.adb (Temp_File_Record): Change length of string component
28960 Name from L_tmpnam + 1 to max_path_len + 1.
28961
28962 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28963
28964 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28965 Self_Id.Deferral_Level = 0.
28966 (Do_Pending_Action): Move this function to the spec.
28967
28968 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28969 Do_Pending_Action explicitely when needed, in case we're using
28970 No_Abort restrictions.
28971
28972 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28973 deferral level since it will not get changed by the generated code.
28974 Keeping a default value of 1 would prevent some operations (e.g.
28975 select or delay) to proceed successfully.
28976
28977 2005-01-03 Ben Brosgol <brosgol@adacore.com>
28978 Robert Dewar <dewar@adacore.com>
28979 Cyrille Comar <comar@adacore.com>
28980
28981 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28982 porting guide chapter (vms version).
28983 Revised doc title (removed "for native platforms") and subtitle.
28984 Add discussion on warning flag for obsolescent features. First we
28985 note that it applies to obsolete GNAT features, which was previously
28986 omitted. Second we contrast the behavior with that of the new
28987 Ada 2005 AI-368 restriction No_Obsolescent_Features.
28988 Preliminary rewriting of GNAT & libraries chapter in order to take
28989 into account default project locations & new project manager
28990 capabilities.
28991
28992 2005-01-03 Robert Dewar <dewar@adacore.com>
28993
28994 * cstand.adb (Create_Operators): Clean up format and documentation of
28995 unary and binary operator result tables. No change in code, just
28996 reformatting and addition of comments.
28997
28998 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28999 sem_ch2.adb: Minor reformatting
29000
29001 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
29002 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
29003 comments for Tree_Read and Tree_Write.
29004
29005 2005-01-03 Pascal Obry <obry@adacore.com>
29006
29007 * exp_attr.ads: Minor reformatting.
29008
29009 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
29010
29011 * comperr.adb (Compiler_Abort): Add specialized message for GAP
29012 versions.
29013
29014 2005-01-03 Ed Schonberg <schonberg@adacore.com>
29015
29016 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
29017 whether the ancestor type is private, as may be the case with nested
29018 instantiations.
29019
29020 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
29021
29022 PR ada/19128
29023 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
29024
29025 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
29026
29027 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
29028 * utils2.c (build_unary_op): Likewise.
29029
29030 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29031
29032 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
29033
29034 2004-12-19 Richard Henderson <rth@redhat.com>
29035
29036 * trans.c (gigi): Update gimplify_body call.
29037
29038 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
29039
29040 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
29041
29042 2004-12-07 Ed Falis <falis@adacore.com>
29043
29044 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
29045 current task being suspended.
29046
29047 * init.c (__gnat_clear_exception): added to reset VxWorks exception
29048 count.
29049 (__gnat_map_signal): removed test for current task being suspended.
29050
29051 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29052
29053 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
29054 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
29055 targets (such as AAMP).
29056
29057 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29058
29059 * atree.adb (Visit_Itype): Create a new name for the generated itype,
29060 because the back-end may otherwise treat it as a redefinition of the
29061 old symbol.
29062
29063 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
29064
29065 * back_end.adb (Scan_Back_End_Switches): Accept --param.
29066
29067 * lang-specs.h: Accept --param.
29068
29069 2004-12-07 Vincent Celier <celier@adacore.com>
29070
29071 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
29072 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
29073 Current_Body_Suffix => Ada_Body_Suffix).
29074 Take into account Externally_Built attribute.
29075
29076 * clean.adb (In_Extension_Chain): Always return False when one of the
29077 parameter is No_Project.
29078 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
29079 Ada_Language_Index).
29080 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
29081 Process_Languages for procedure Parse).
29082
29083 * gnatcmd.adb (Carg_Switches): New table.
29084 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
29085 Adapt to name changes in package Prj (Current_Spec_Suffix =>
29086 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
29087
29088 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
29089 Header_Num and function Hash are now declared in package Prj,
29090 not Prj.Com.
29091
29092 * prj.adb (Suffix_Of): New function.
29093 (Set (Suffix)): New procedure.
29094 (Hash): One function moved from Prj.Com
29095 (Is_Present, Language_Processing_Data_Of): New functions
29096 (Set): Two new procedures
29097 (Add_Language_Name, Display_Language_Name): New procedures
29098
29099 * prj.ads: (Suffix_Of): New function
29100 (Set (Suffix)): New procedure
29101 Add several types and tables for multi-language support.
29102 (Header_Num): Type moved from Prj.Com
29103 (Hash): Two functions moved from Prj.Com
29104 (Is_Present, Language_Processing_Data_Of): New functions
29105 (Set): Two new procedures
29106 (Add_Language_Name, Display_Language_Name): New procedures
29107 (Naming): Component name changes:
29108 Current_Spec_Suffix => Ada_Spec_Suffix,
29109 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
29110 Impl_Suffixes, Supp_Suffixes.
29111 (Project_Data): New components: Externally_Built, Supp_Languages,
29112 First_Language_Processing, Supp_Language_Processing, Default_Linker,
29113 Default_Linker_Path.
29114
29115 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
29116 new package Language_Processing with its attributes (Compiler_Driver,
29117 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
29118 Binder_Driver, Default_Linker).
29119
29120 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
29121 (Header_Num): Type moved to package Prj
29122
29123 * prj-env.adb: Adapt to name changes in package Prj
29124 (Current_Spec_Suffix => Ada_Spec_Suffix,
29125 Current_Body_Suffix => Ada_Body_Suffix).
29126
29127 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
29128 default to the project path, except the "-" is one of the directories
29129 in env var ADA_PROJECT_PATH.
29130 (Current_Project_Path): Global variable, replacing Project_Path
29131 that was in the body of Prj.Part.
29132 (Project_Path): New function
29133 (Set_Project_Path): New procedure
29134 Initialize Current_Project_Path during elaboration of the package
29135 Remove dependency on Prj.Com, no longer needed
29136
29137 * prj-ext.ads (Project_Path): New function
29138 (Set_Project_Path): New procedure
29139
29140 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
29141 suffix is defined for language <lang>.
29142 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
29143 accessing directly the components of Naming.
29144 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
29145 Reorganise of this package.
29146 Break procedure Check in several procedures.
29147
29148 * prj-nmsc.ads: Replace all procedures (Ada_Check,
29149 Other_Languages_Check and Language_Independent_Check) with a single
29150 procedure Check.
29151
29152 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
29153 Process_Languages, no longer needed.
29154
29155 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
29156 Current_Project_Path.
29157 Remove elaboration code, moved to the body of Prj.Ext
29158 Use new function Prj.Ext.Project_Path instead of old variable
29159 Project_Path.
29160 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
29161 When comparing with project paths on the stack, first put the resolved
29162 path in canonical case.
29163 (Parse_Single_Project): Set the path name of the project file in the
29164 tree to the normalized path.
29165
29166 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
29167 parameter Process_Languages, no longer needed.
29168 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
29169 Other_Languages_Check.
29170
29171 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29172 to store the resolved canonical path of the project file.
29173 Remove dependency to Prj.Com, no longer needed
29174
29175 * prj-util.adb: Adapt to name changes in package Prj
29176 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29177 Ada_Body_Suffix).
29178
29179 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29180 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29181 Externally_Built, Include_Option, Language_Processing.
29182
29183 * makegpr.adb: Numerous changes due to changes in packages
29184 Prj and Prj.Nmsc.
29185
29186 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29187 default to the project path, except whe "-" is one of the directories
29188 in env var ADA_PROJECT_PATH.
29189 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29190
29191 2004-12-07 Robert Dewar <dewar@adacore.com>
29192
29193 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29194
29195 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29196 set -gnatR3m mode.
29197
29198 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29199 flag. No longer needed now that we handle this in gnat1drv.adb.
29200
29201 * repinfo.ads: Minor reformatting
29202
29203 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29204 Olivier Hainque <hainque@adacore.com>
29205 Eric Botcazou <ebotcazou@adacore.com>
29206
29207 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29208 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29209 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29210 of a bitfield, which we know is useless and causes trouble because of
29211 alignment implications.
29212
29213 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29214 BSS sections.
29215 (process_attributes): Clear DECL_COMMON again when a section attribute
29216 is present.
29217 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29218 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29219 (create_field_decl): Special case ADDRESSABLE negative to mean
29220 "no bitfield creation", to be used by make_aligning_type. Don't
29221 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29222 fields claimed addressable still have to be bitfields. Use
29223 value_factor_p instead of a raw binop construction to check for the
29224 position's alignment.
29225
29226 2004-12-07 Geert Bosch <bosch@adacore.com>
29227
29228 * eval_fat.adb: Revert previous change.
29229
29230 2004-12-07 Thomas Quinot <quinot@adacore.com>
29231 Ed Schonberg <schonberg@adacore.com>
29232
29233 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29234 with an implicit dereference as its prefix, use
29235 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29236 an explicit dereference. This ensures that a reference to the original
29237 prefix is generated, if appropriate.
29238
29239 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29240 dereference is rewritten to an explicit one, generate a reference to
29241 the entity denoted by its prefix using the original prefix node, so
29242 the dereference can be properly recorded as a read of the denoted
29243 access value, if appropriate.
29244
29245 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29246 emitting 'assigned but never read' warning on a variable on the basis
29247 that it has an access type.
29248 (Check_References): Emit unreferenced warning when the scope is a
29249 subprogram body.
29250
29251 2004-12-07 Robert Dewar <dewar@adacore.com>
29252 Ed Schonberg <schonberg@adacore.com>
29253
29254 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29255 intrinsic
29256
29257 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29258 leaving call unchanged.
29259 This deals with the case where the pragma Import specified
29260 an external name, to be handled by the back end.
29261
29262 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29263 subprogram which is Imported with convention Intrinsic if an
29264 External_Name argument is specified.
29265 (Process_Import_Or_Interface): Properly diagnose link name argument.
29266 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29267 with Sem_Ch6.Cannot_Inline.
29268 (Process_Inline): Provide separate warning for inapplicable inline
29269 pragma.
29270 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29271 treatment is uniform on different targets.
29272
29273 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29274
29275 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29276 construct is rewritten, preserve end label to permit source navigation.
29277
29278 2004-12-07 Thomas Quinot <quinot@adacore.com>
29279
29280 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29281 Specific_Build_Stub_Target): New subprograms.
29282 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29283 the PCS implementation used, using the above PCS-customized subprograms.
29284 Minor reformatting.
29285 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29286 for generation of DSA code targeted to the PolyORB PCS.
29287 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29288 implementation of the partition communication subsystem in ancillary
29289 subprograms.
29290 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29291 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29292 PCS-specific part of Add_Stub_Type.
29293 (Insert_Partition_Check): Use runtime library function to perform
29294 E.4(19) check.
29295
29296 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29297 (RE_Same_Partition): New entity, from s-parint.
29298
29299 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29300
29301 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29302
29303 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29304 Output the copyright message on a separate line from the version
29305 message.
29306
29307 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29308
29309 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29310 compile-time warning.
29311
29312 2004-12-07 Robert Dewar <dewar@adacore.com>
29313
29314 * g-regpat.adb: (Match): Change a misuse of or to or else
29315
29316 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29317
29318 * lib-xref.adb:
29319 (Generate_Reference): Handle properly a reference to an entry formal,
29320 when an accept statement has a pragma Unreferenced for it.
29321
29322 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29323 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29324 the body, to ensure that warnings are properly emitted for each accept
29325 statement of a given task entry.
29326
29327 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29328
29329 * Makefile.in: Add support for foreign threads on VMS.
29330
29331 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29332
29333 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29334 Remove.
29335 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29336
29337 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29338
29339 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29340 exception.
29341 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29342
29343 2004-12-07 Robert Dewar <dewar@adacore.com>
29344
29345 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29346 Prepend.
29347 (Remove_Next_Debug): Same fix
29348
29349 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29350 maintain back pointers now, though we did not used to, and comments
29351 were out of date).
29352 (Prepend): Remove pragma Inline.
29353 (Remove_Next): Same cleanup
29354
29355 2004-12-07 Thomas Quinot <quinot@adacore.com>
29356
29357 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29358 used to record an implicit dereference as a read operation on its
29359 prefix when operating under -gnatc. Necessary to avoid spurious
29360 'variable assigned but never read' warnings in that mode.
29361 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29362 is a non-overloaded implicit dereference, call the above subprogram to
29363 ensure proper recording of references.
29364
29365 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29366
29367 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29368 to be resolved later as part of Analyze_Iteration_Scheme's call to
29369 Make_Index.
29370
29371 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29372
29373 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29374 prefix is not a scalar type, place error message on prefix, not on
29375 type entity.
29376
29377 2004-12-07 Bernard Banner <banner@adacore.com>
29378
29379 * vxaddr2line.adb: Add support for x86 vxworks
29380
29381 2004-12-07 Thomas Quinot <quinot@adacore.com>
29382
29383 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29384 documentation of the behaviour of these functions when passed an IP
29385 address that has no record in the system hosts database and no reverse
29386 record in the DNS.
29387
29388 * cstand.adb, a-tags.ads: Fix typos in comment.
29389
29390 2004-12-07 Robert Dewar <dewar@adacore.com>
29391
29392 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29393 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29394 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29395 s-poosiz.ads: Minor reformatting
29396
29397 * make.adb: Minor reformatting
29398 Add some ??? comments asking for more comments
29399
29400 * s-poosiz.adb: Minor reformatting
29401 Add comments on alignment requirement
29402
29403 * sinfo.ads: Remove obsolete comment and fix typo.
29404
29405 2004-12-07 Vincent Celier <celier@adacore.com>
29406 Sergey Rybin <rybin@adacore.com>
29407
29408 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29409 Files" with the new tool and package names.
29410 Reformatting to suppress most of the warnings for line too long
29411 Document the new section "Project Search Path:" in the output of
29412 gnatls -v.
29413 Add gnatmetric section
29414
29415 2004-12-07 Vincent Celier <celier@adacore.com>
29416
29417 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29418 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29419 and -eit to -ept. Added qualifier
29420 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29421
29422 2004-11-27 Andreas Schwab <schwab@suse.de>
29423
29424 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29425
29426 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29427
29428 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29429 internal implementation unit GNAT.Sockets.Thin,
29430 as their usage for sockets is non-portable (using the read and write
29431 functions from the system runtime library is fine on UNIX but won't
29432 work under Windows).
29433
29434 * mingw32.h: Update copyright notice.
29435
29436 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29437
29438 * ada-tree.h: Minor reformatting of previous change to avoid lines
29439 longer than 79 characters.
29440
29441 2004-11-25 Olivier Hainque <hainque@adacore.com>
29442
29443 * tb-gcc.c: GCC infrastructure based implementation of
29444 __gnat_backtrace.
29445
29446 2004-11-24 Steven Bosscher <stevenb@suse.de>
29447
29448 * misc.c (gnat_post_options): Don't clear
29449 flag_inline_functions.
29450
29451 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29452
29453 PR ada/17986
29454 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29455 tree.
29456
29457 2004-11-21 Andreas Jaeger <aj@suse.de>
29458
29459 * stylesw.adb: Change Style_Check_Subprogram_Order to
29460 Style_Check_Order_Subprograms.
29461
29462 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29463
29464 * adaint.h, adaint.c
29465 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29466 to avoid warnings.
29467 Add also a cast to kill another warning.
29468 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29469 parameter with the priority class of the parent process instead of
29470 always using the NORMAL_PRIORITY_CLASS.
29471 (__gnat_dup): New function.
29472 (__gnat_dup2): New function.
29473 (__gnat_is_symbolic_link): Enable the effective body of this
29474 function when __APPLE__ is defined.
29475
29476 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29477 Update comments.
29478
29479 2004-11-18 Olivier Hainque <hainque@adacore.com>
29480
29481 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29482 address of which may be used to represent "others" and "all others"
29483 choices in exception tables, instead of the current harcoded
29484 (void *)0 and (void *)1.
29485 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29486
29487 * gigi.h (others_decl, all_others_decl): New decls representing the
29488 new Others_Value and All_Others_Value objects.
29489 (struct attrib): Rename "arg" component as "args", since GCC expects a
29490 list of arguments in there.
29491
29492 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29493 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29494 addresses.
29495
29496 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29497 others_decl and all_others_decl instead of hardcoded dummy addresses
29498 to represent "others" and "all others" choices, which is cleaner and
29499 more flexible with respect to the possible eh pointer encoding policies.
29500
29501 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29502 (process_attributes): Account for the naming change of the "args"
29503 attribute list entry component.
29504
29505 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29506 cumulating attributes for different entities into a single list.
29507 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29508 attributes for the current entity and propagate first subtype
29509 attributes to other subtypes.
29510 <E_Procedure>: Attribute arguments are attr->args and not
29511 attr->arg any more.
29512 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29513 argument provided, as this is what GCC expects. Use NULL_TREE instead
29514 of 0 for trees.
29515
29516 2004-11-18 Robert Dewar <dewar@adacore.com>
29517
29518 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29519 Minor reformatting througout (including new function specs)
29520 Add ??? comments asking for clarification.
29521
29522 2004-11-18 Thomas Quinot <quinot@adacore.com>
29523
29524 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29525 incomplete duplicate implementation of this subprogram from butil.
29526
29527 2004-11-18 Thomas Quinot <quinot@adacore.com>
29528
29529 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29530 procedures factors the common processing for building an RPC receiver
29531 for an RCI package or an RACW type.
29532 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29533 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29534 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29535 in use.
29536 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29537 Add_RACW_Features.
29538 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29539 Add_RAST_Features.
29540 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29541 distribution subprogram identifiers that are either subprogram numbers
29542 or strings.
29543 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29544 string distribution identifiers assigned to a given subprogram.
29545 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29546 (Add_RAS_Dereference_TSS): Add comments.
29547 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29548 is not referenced yet because it will be used by the PolyORB DSA
29549 implementation.
29550 (Insert_Partition_Check): Remove fossile code.
29551 (First_RCI_Subprogram_Id): Document this constant.
29552 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29553 RAS_Access TSS.
29554 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29555 replaced with calls to Get_Library_Unit_Name_String. Previously there
29556 were several instances of the same code in different locations in the
29557 compiler; this checkin completes the replacement of all of these
29558 instances with calls to a common subprogram.
29559 Minor reformatting.
29560
29561 * sem_dist.adb: Remove comment noting that RPC receiver generation
29562 should be disabled for RACWs that implement RASs.
29563 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29564
29565 * sem_util.ads, sem_util.adb (Has_Stream): New function
29566 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29567 qualified name of a library unit into the name buffer.
29568 (Note_Possible_Modification): Generate a reference only
29569 if the context comes from source.
29570
29571 * snames.ads (PCS_Names): New subtype corresponding to names of
29572 supported implementations of the Partition Communication Subsystem
29573 (PCS) (i.e. the runtime library support modules for the distributed
29574 systems annex).
29575
29576 2004-11-18 Robert Dewar <dewar@adacore.com>
29577 Ed Schonberg <schonberg@adacore.com>
29578
29579 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29580 (Has_Rep_Pragma): New function
29581 (Has_Attribute_Definition_Clause): New function
29582 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29583 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29584
29585 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29586
29587 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29588 (Expand_Pragma_Psect_Object): New procedure
29589 These procedures contain the revised and cleaned up processing for
29590 these two pragmas. This processing was formerly in Sem_Prag, but
29591 is more appropriately moved here. The cleanup involves making sure
29592 that the pragmas are properly attached to the tree, and that no
29593 nodes are improperly shared.
29594
29595 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29596 pragmas to Exp_Prag, which is more appropriate.
29597 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29598 check for duplicates Remove use of Is_Psected flag, no longer needed.
29599 Use new Make_String_Literal function with string.
29600
29601 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29602 that are functions return universal values, that have to be converted
29603 to the context type.
29604 Use new Make_String_Literal function with string.
29605 (Get_Stream_Convert_Pragma): New function, replaces the use of
29606 Get_Rep_Pragma, which had to be kludged to work in this case.
29607
29608 * freeze.adb: Use new Has_Rep_Pragma function
29609
29610 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29611 function with string.
29612 Use new Has_Rep_Pragma function.
29613
29614 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29615 string argument.
29616
29617 2004-11-18 Robert Dewar <dewar@adacore.com>
29618
29619 * errout.ads, errout.adb: (First_Sloc): New function
29620
29621 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29622 check (-gnatyx) instead of being included as a redundant construct
29623 warning.
29624
29625 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29626 Style_Check_Order_Subprograms.
29627
29628 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29629 stylesw.adb: Add Style_Check_Xtra_Parens
29630
29631 * usage.adb: Add line for -gnatyx (check extra parens)
29632
29633 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29634
29635 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29636 Robert Dewar <dewar@adacore.com>
29637
29638 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29639 discriminant of a constrained subtype, analyze the copy of the
29640 corresponding constraint, because in some cases it may be only
29641 partially analyzed.
29642 Removes long-lived ??? comments.
29643
29644 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29645 handled controlled or secondary-stack expressions within the
29646 iteration_scheme of a loop.
29647
29648 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29649 bounds that may contain functions calls, to prevent memory leaks when
29650 the bound contains a call to a function that uses the secondary stack.
29651 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29652 generate temporaries for loop bounds that might contain function calls
29653 that require secondary stack and/or finalization actions.
29654
29655 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29656 selected component and the selector is overloadable (not just a
29657 function) treat as function call, Analyze_Call will disambiguate if
29658 necessary.
29659 (Analyze_Selected_Component): Do not generate an actual subtype for the
29660 selected component if expansion is disabled. The actual subtype is only
29661 needed for constraint checks.
29662 (Analyze_Allocator): If restriction No_Streams is set, then do
29663 not permit objects to be declared of a stream type, or of a
29664 composite type containing a stream.
29665
29666 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29667 No_Streams no longer prohibits with'ing this package.
29668
29669 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29670 discriminants, but the parent base has unknown discriminants, there is
29671 no discriminant constraint to inherit. Such a discrepancy can arise
29672 when the actual for a formal type with unknown discriminants is a
29673 similar private type whose full view has discriminants.
29674 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29675 do not permit objects to be declared of a stream type, or of a
29676 composite type containing a stream.
29677
29678 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29679
29680 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29681 protected operations.
29682
29683 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29684 generated name, it complicates decoding in gdb and hinders debugging
29685 of protected operations.
29686 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29687 flag for the protected entry barrier function.
29688 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29689 flag for the protected entry function.
29690
29691 2004-11-18 Nicolas Setton <setton@adacore.com>
29692
29693 * expect.c: Define __unix__ when __APPLE__ is defined.
29694
29695 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29696 Darwin-specific section.
29697
29698 * lang-specs.h: Change the placement of the %1 marker.
29699 Works around the fact that gcc adds -fPIC by default under Darwin.
29700
29701 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29702
29703 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29704 type of the object with the packed array type, set the Analyzed flag
29705 on the object if it is an entity or simple indexed component, to avoid
29706 spurious type errors.
29707
29708 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29709
29710 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29711 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29712 separate line from the version message.
29713
29714 2004-11-18 Ed Falis <falis@adacore.com>
29715
29716 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29717 vthreads.
29718 (init_float): Eliminate initialization of floating point status for
29719 AE653. The instructions have no effect for vThreads.
29720
29721 2004-11-18 Vincent Celier <celier@adacore.com>
29722
29723 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29724 gnatbind is invoked with -shared.
29725
29726 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29727
29728 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29729 for Detect_Blocking which is redundant with the check done within the
29730 procedure Protected_Single_Entry_Call.
29731 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29732 Detect_Blocking which is redundant with the check done within the
29733 procedure Protected_Single_Entry_Call.
29734
29735 2004-11-18 Vincent Celier <celier@adacore.com>
29736
29737 * makegpr.adb (Compile): Put the compiling switches (in package
29738 Compiler and on the command line) immediately after "-c", instead of
29739 at the end of the command line invocation of the compiler, when
29740 compiling a non-Ada file.
29741 (Build_Global_Archive): When there is no need to rebuild the archive,
29742 set Global_Archive_Exists, so that the archive is passed to the linker
29743 if one is needed.
29744
29745 2004-11-18 Robert Dewar <dewar@adacore.com>
29746 Sergey Rybin <rybin@adacore.com>
29747
29748 * gnat_ugn.texi:
29749 Remove extra paren check from list of checks for redundant constructs
29750 Add documentation of new -gnatyx style check (check extra parens)
29751 Remove paragraph about gnatelim debug options.
29752
29753 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29754 objects rather than forbidding dependencies on the package Ada.Streams.
29755
29756 * sinfo.ads: Add ??? note that we should document pragmas passed to
29757 back end.
29758
29759 * g-expect.ads: Fix a few typos in the comments.
29760
29761 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29762
29763 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29764 warning message.
29765
29766 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29767
29768 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29769
29770 2004-11-07 Andreas Schwab <schwab@suse.de>
29771
29772 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29773
29774 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
29775
29776 PR ada/18228
29777 * Makefile.in (darwin): Set soext to .dylib.
29778
29779 2004-10-26 Vincent Celier <celier@gnat.com>
29780 Thomas Quinot <quinot@act-europe.fr>
29781
29782 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29783 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29784 there is no use of GNAT.Sockets.Constants.
29785 Remove remaining pragma Import for C_Write
29786 Remove C_Read and C_Write from internal implementation unit
29787 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29788 the read and write functions from the system runtime library is fine
29789 on UNIX but won't work under Windows).
29790
29791 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29792 (Check_Selector): Use C_Recv instead of C_Read.
29793 Selectors are the GNAT.Sockets abstraction to perform a select()
29794 call on a set of descriptors. To allow abortion of an ongoing
29795 select operation, some data is written to a dedicated socket that
29796 is always monitored.
29797 Under Windows, the write and read library functions cannot operate
29798 on sockets, so we need to use send and recv instead, which is portable
29799 across all supported platforms.
29800
29801 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29802 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29803 (using the read and write functions from the system runtime library is
29804 fine on UNIX but won't work under Windows).
29805
29806 2004-10-26 Nicolas Setton <setton@act-europe.fr>
29807
29808 * mlib-tgt-darwin.adb: New file.
29809
29810 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29811 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29812 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29813 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29814 subprogram body.
29815
29816 * Makefile.in: Add support for building shared libraries under Darwin.
29817 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29818 the low level EH init subprogram to be called from __gnat_initialize.
29819
29820 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29821 indicates which options to pass to the archive indexer.
29822
29823 * mlib-utl.adb: Add support for calling ranlib with additional
29824 options. This is needed for instance under Mac OS X.
29825 (Ranlib_Options): New global variable, used to store the potential
29826 options to pass to ranlib.
29827 (Ar): Use Ranlib_Options when spawning ranlib.
29828 (Initialize): Set the value of ranlib option.
29829
29830 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29831
29832 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29833 instead of 8K, to reflect the real potential needs for stack-checking
29834 in the ZCX case.
29835
29836 2004-10-26 Pascal Obry <obry@gnat.com>
29837
29838 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29839
29840 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29841 Windows only the initial thread stack size can be set so it is good to
29842 start we a low stack size.
29843 The OS will adjust the size as needed.
29844
29845 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29846 Nicolas Setton <setton@act-europe.fr>
29847
29848 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29849 "__unix__" instead of "unix".
29850 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29851 sections were just mistakenly ignored. The former is
29852 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29853 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29854 of hpux. This prevents an unwanted definition of the symbol
29855 convert_addresses in adaint.o.
29856
29857 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29858
29859 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29860 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29861
29862 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29863
29864 * a-filico.ads, a-filico.adb: fix incorrect header.
29865
29866 2004-10-26 Javier Miranda <miranda@gnat.com>
29867
29868 * a-ststio.ads: Fix typo in identifier
29869
29870 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29871
29872 * sem_ch4.adb: Minor reformatting.
29873
29874 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29875
29876 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29877 enabled, check the result of unary and binary operations when the
29878 expression is the right-hand side of an assignment.
29879
29880 2004-10-26 Vincent Celier <celier@gnat.com>
29881
29882 * clean.adb (Delete): Do not output warnings when in quiet output and
29883 not in verbose mode.
29884 (Force_Deletions): New Boolean flag, defaulted to False
29885 (Delete): Only delete a file if it is writable, and when
29886 Force_Deletions is True.
29887 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29888 (Usage): Line for new switch -f
29889 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29890 own.
29891
29892 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29893
29894 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29895 JM type only if its size matches that of the wrapper. When a size is
29896 prescribed and the field is not aliased, remove the wrapper of a JM
29897 type only if the size is not greater than that of the packed array.
29898 (gnat_to_gnu_entity): Change the extension of packed array wrappers
29899 from LJM to JM.
29900
29901 2004-10-26 Geert Bosch <bosch@gnat.com>
29902
29903 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29904 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29905 (Pred): Implement in terms of Succ.
29906
29907 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29908
29909 * exp_aggr.adb (Safe_Component): An aggregate component that is an
29910 unchecked conversion is safe for in-place use if the expression of the
29911 conversion is safe.
29912 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29913 be expandable in place even if the aggregate does not come from source.
29914 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29915 designated object of an allocator in place, rather than building it
29916 first on the stack. The previous scheme forces a full copy of the array,
29917 and may be altogether unsusable if the size of the array is too large
29918 for stack allocation.
29919
29920 2004-10-26 Robert Dewar <dewar@gnat.com>
29921
29922 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29923 compares if the component is atomic.
29924
29925 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29926 array assignment if the component type is atomic.
29927
29928 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29929 Eric Botcazou <ebotcazou@act-europe.fr>
29930
29931 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29932 is aliased and is a by_reference type, do not pass by copy.
29933 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29934 detect whether the call is in the right side of an assignment or
29935 the expression of an object declaration. Recurse on component
29936 association within aggregates.
29937 Call it in the condition that determines whether the temporary is
29938 necessary for correct stack-checking.
29939
29940 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29941
29942 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29943 RACW_Type, used in the PolyORB version.
29944 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29945 version and the GARLIC version.
29946
29947 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29948 Rename RCI_Info to RCI_Locator for better consistency between the
29949 GARLIC and PolyORB versions of the distributed systems annex.
29950 (DSA_Implementation_Name): This enumeration lists the possible
29951 implementations of the Partition Communication Subsystem for the
29952 Distributed Systems Annex (DSA). The three available implementations
29953 are the dummy stub implementation (No_DSA), and two versions based on
29954 two different distribution runtime libraries: GARLIC and PolyORB. Both
29955 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29956 technology.
29957 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29958 that organization.
29959
29960 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29961 between the GARLIC and PolyORB versions of the distributed systems
29962 annex.
29963 Remove RE_Unbounded_Reclaim_Pool since it is unused.
29964
29965 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29966
29967 * gnat1drv.adb: Suppress calling the back end when
29968 Frontend_Layout_On_Target is true.
29969
29970 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29971
29972 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29973 Set_Read_Only): New subprograms.
29974 These new routines allow the user to set or unset the Owner execute
29975 and Owner write permission flags on a file.
29976
29977 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29978 GNAT.OS_Lib.Set_Executable instead of rolling our own.
29979
29980 2004-10-26 Matthew Gingell <gingell@gnat.com>
29981
29982 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29983
29984 2004-10-26 Pascal Obry <obry@gnat.com>
29985
29986 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29987 memory before the faulting page we properly test the process read
29988 access for this address using appropriate Win32 routine.
29989 (HPUX sections): guard with "__hpux__" instead of "hpux".
29990
29991 2004-10-26 Robert Dewar <dewar@gnat.com>
29992
29993 * lib-xref.adb (Generate_Reference): Don't complain about reference to
29994 entry parameter if pragma Unreferenced set, since we do not properly
29995 handle the case of multiple parameters.
29996
29997 2004-10-26 Vincent Celier <celier@gnat.com>
29998
29999 * prj-env.adb: (Contains_ALI_Files): New Boolean function
30000 (Ada_Objects_Path.Add): For a library project, add to the object path
30001 the library directory only if there is no object directory or if the
30002 library directory contains ALI files.
30003 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30004
30005 2004-10-26 Vincent Celier <celier@gnat.com>
30006
30007 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
30008 extension of library projects.
30009
30010 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
30011 path defaults to ".:<prefix>/lib/gnat".
30012 (Parse): For an extending all project, allow direct import of a project
30013 that is virtually extended.
30014
30015 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
30016 the specified name is directly imported, return its ID. Otherwise, if
30017 an extension of this project is imported, return the ID of the
30018 extension.
30019
30020 2004-10-26 Robert Dewar <dewar@gnat.com>
30021
30022 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
30023 (Sub3): New procedure, used by Scaled_Divide
30024 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
30025 correct more than one instance of failure to propagate carries
30026 correctly.
30027 (Double_Divide): Handle overflow case of largest negative number
30028 divided by minus one.
30029
30030 * s-arit64.ads (Double_Divide): Document that overflow can occur in
30031 the case of a quotient value out of range.
30032 Fix comments.
30033
30034 2004-10-26 Robert Dewar <dewar@gnat.com>
30035
30036 * s-bitops.adb (Bit_Eq): Remove redundant check.
30037
30038 * s-bitops.ads: Minor comment updates
30039 Change some occurrences of Address to System.Address
30040
30041 * s-carsi8.ads: Fix minor cut-and-paste error in comments
30042
30043 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30044
30045 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
30046 accessibility check to prefix that is a protected operation.
30047
30048 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30049
30050 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
30051 empty, post message on stub.
30052
30053 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30054 Javier Miranda <miranda@gnat.com>
30055
30056 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
30057 current instance appears within a unit that is directly in the context
30058 of the main unit.
30059 Used to determine whether the body of the instance should be analyzed
30060 immediately after its spec, to make its subprogram bodies available
30061 for front-end inlining.
30062 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
30063 constraint is not allowed on the component type (AARM 12.5.3(3))
30064
30065 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30066
30067 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
30068 'Storage_Pool): enhance, document & limit detection of non-sharable
30069 internal pools.
30070
30071 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
30072
30073 * s-pooglo.ads: Add more documentation now that this pool is properly
30074 documented.
30075
30076 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30077
30078 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
30079 or protected type with discriminants, do not constrain the
30080 corresponding record type if the subtype declaration has no
30081 discriminant constraints. This can be the case in source code, or in
30082 the subtype declaration created to rename an actual type within an
30083 instantiation.
30084
30085 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30086
30087 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
30088 different kind of stub (possibly wrong name for file), do not check
30089 for conformance.
30090 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
30091 includes call to some function that returns an unconstrained type, do
30092 not inline.
30093
30094 2004-10-26 Ed Schonberg <schonberg@gnat.com>
30095
30096 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
30097 appear in the code for the main unit. Dependencies among units in the
30098 context of the main unit are established when those other units are
30099 compiled. Otherwise spurious elaboration constraints can generate
30100 incorrect elaboration circularities.
30101
30102 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
30103 Ed Schonberg <schonberg@gnat.com>
30104
30105 * sem_util.adb (Is_Aliased_View): Defend against the case where this
30106 subprogram is called with a parameter that is not an object name. This
30107 situation arises for some cases of illegal code, which is diagnosed
30108 later, and in this case it is wrong to call Is_Aliased, as that might
30109 cause a compiler crash.
30110 (Explain_Limited_Type): Refine previous fix to include
30111 inherited components of derived types, to provide complete information.
30112
30113 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
30114 is the prival for a protected object.
30115 It is necessary to mark this entity as a variable, in addition to
30116 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
30117 modified to avoid checking the Aliased flag on entities that are not
30118 objects. (Checking that flag for non-objects is erroneous and could
30119 lead to a compiler crash).
30120
30121 2004-10-26 Robert Dewar <dewar@gnat.com>
30122
30123 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
30124 X_Frac = 0.5, then we know that the number X must be positive.
30125 (Succ): Remove the same redundant test, and also fix the primary test
30126 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
30127 Minor reformatting
30128 (Decompose): Add fuller comments to spec
30129
30130 2004-10-26 Pascal Obry <obry@gnat.com>
30131
30132 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
30133 validity (process must have read access). Set to 0 in all other cases.
30134 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
30135 violation on Win32.
30136 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
30137 segmentation violation.
30138
30139 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
30140
30141 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
30142 whose type is a constructed subtype of an aliased object with an
30143 unconstrained nominal subtype, convert the actual to the constructed
30144 subtype before taking its address.
30145
30146 2004-10-26 Vincent Celier <celier@gnat.com>
30147
30148 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
30149 (Is_Path_Name_Case_Sensitive): New function
30150
30151 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
30152 (Base_Name, Simple_Name, Current_Directory, Compose,
30153 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
30154 the result.
30155
30156 2004-10-26 Cyrille Comar <comar@act-europe.fr>
30157 Vasiliy Fofanov <fofanov@act-europe.fr>
30158 Vincent Celier <celier@gnat.com>
30159
30160 * gnat_ugn.texi: Generalize "finding memory problems" section into a
30161 "memory management issues" section and document some of the useful
30162 memory pools provided as part of the GNAT library.
30163 Remove "virtual" from declaration of A::method2 in
30164 the simple example of Ada/C++ mixed system.
30165 Library Projects may be virtually extended: their virtual extensions
30166 are not Library Projects.
30167 Added section on extending project hierarchies.
30168
30169 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30170
30171 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30172 to LPBYTE.
30173 (__gnat_portable_spawn): Remove const.
30174
30175 * mingw32.h (MAXPATHLEN): Check for previous definition.
30176
30177 2004-10-17 Matthias Klose <doko@debian.org>
30178
30179 * gnatvsn.ads: Set gnat library version to 4.0.
30180
30181 2004-10-05 Vincent Celier <celier@gnat.com>
30182
30183 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30184
30185 2004-10-04 Laurent Guerby <laurent@guerby.net>
30186
30187 PR ada/15156
30188 * Makefile.in: Define and use RANLIB_FLAGS.
30189
30190 2004-10-04 Pascal Obry <obry@gnat.com>
30191
30192 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30193 other x86 platforms).
30194
30195 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30196
30197 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30198 in general and triggers stack alignment adjustment for thread entry
30199 points on targets where this is necessary.
30200
30201 2004-10-04 Bernard Banner <banner@gnat.com>
30202
30203 PR ada/13897
30204 * Makefile.in: Add section for powerpc linux
30205 Add variant i-vxwork-x86.ads
30206
30207 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30208
30209 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30210
30211 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30212 table registration calls when need be. Ensures no reference to the crt
30213 ctors symbol are issued in the SJLJ case, which avoids possible
30214 undefined symbol errors in the case of modules to be statically linked
30215 with the kernel.
30216
30217 2004-10-04 Javier Miranda <miranda@gnat.com>
30218
30219 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30220 in-line the code corresponding to subprogram Analyze_Actuals. In
30221 addition, analyze the actuals only in case of subprogram call.
30222
30223 2004-10-04 Ed Falis <falis@gnat.com>
30224
30225 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30226
30227 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30228
30229 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30230 in the documentation.
30231
30232 2004-10-04 Robert Dewar <dewar@gnat.com>
30233
30234 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30235 IF and CASE.
30236 (Analyze_Block_Statement): Add circuitry to detect following dead code
30237 (Check_Unreachable_Code): Handle case of block exit
30238
30239 2004-10-04 Robert Dewar <dewar@gnat.com>
30240
30241 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30242 (XMatchD): Avoid warning for Logic_Error call
30243
30244 2004-10-04 Robert Dewar <dewar@gnat.com>
30245
30246 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30247 consider expressions buried within a procedure actual to be an actual.
30248 This caused some blowups with uses of packed slices within a procedure
30249 actual.
30250
30251 2004-10-04 Robert Dewar <dewar@gnat.com>
30252
30253 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30254 longer need to be initialized to zero.
30255 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30256 initialized to zero.
30257
30258 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30259 considered valid, even if the representation is modular. That's correct
30260 now that we no longer initialize packed modular arrays to zero.
30261
30262 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30263 suffixes. These are now documented as the only cases in which the
30264 debugger ignores outer records.
30265 Previously, the spec allowed arbitrary suffixes for this purpose.
30266 Change name of LJM to JM for packed array pad records
30267 Create separate section on packed array handling, and add a whole new
30268 set of comments to this section describing the situation with packed
30269 modular types and justification requirements depending on endianness.
30270
30271 2004-10-04 Robert Dewar <dewar@gnat.com>
30272
30273 * a-except.adb: Add a comment for last change
30274
30275 * einfo.ads: Minor spelling correction in comment
30276
30277 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30278
30279 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30280 messages.
30281
30282 * sem_util.ads: Minor comment update
30283
30284 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30285
30286 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30287 Inline_Always when in Configurable_Run_Time mode.
30288
30289 * sem_prag.adb (Process_Convention): If entity is an inherited
30290 subprogram, apply convention to parent subprogram if in same scope.
30291 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30292 when in Configurable_Run_Time mode.
30293
30294 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30295
30296 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30297 class_wide type after component list has been inherited.
30298
30299 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30300
30301 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30302 Denotes_Previous_Actual, to handle properly the case of a private
30303 actual that is also the component type of a subsequent array actual.
30304 The visibility status of the first actual is not affected when the
30305 second is installed.
30306 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30307 make fully recursive the treatment of formals of packages declared
30308 with a box.
30309 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30310 the above on exit from an instantiation.
30311 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30312 current instantiation which is now complete.
30313 (Analyze_Package_Instantiation): No instantiated body is needed if the
30314 main unit is generic. Efficient, and avoid anomalies when a instance
30315 appears in a package accessed through rtsfind.
30316
30317 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30318
30319 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30320 do not generate a declaration for a temporary if the call is part of a
30321 library-level instantiation.
30322
30323 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30324
30325 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30326 searching for a limited component to flag.
30327
30328 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30329 expansion of Input, to account for the fact that the implicit call
30330 generated by the attribute reference must freeze the user-defined
30331 stream subprogram. This is only relevant to 'Input, because it can
30332 appear in an object declaration, prior to the body of the subprogram.
30333
30334 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30335 expansion can proceed and further errors uncovered.
30336 (Minor clean up): Fix cases of using | instead of \ for continuation
30337 messages.
30338
30339 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30340
30341 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30342
30343 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30344 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30345 Use gcc_assert and gcc_unreachable.
30346
30347 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30348 specified alignment before validating size.
30349 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30350 stripped-down declaration for the type of the inner field when making
30351 a JM type.
30352
30353 * utils.c (finish_record_type): Do not compute the size in units
30354 incrementally. Instead compute it once for the rep clause case.
30355 Use gcc_assert and gcc_unreachable.
30356
30357 2004-10-04 Vincent Celier <celier@gnat.com>
30358
30359 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30360 in file name.
30361 (Is_Valid_Path_Name): Take '/' as a directory separator.
30362
30363 2004-10-04 Vincent Celier <celier@gnat.com>
30364
30365 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30366 (Extended_Project) only if Extended_Project is defined, to avoid
30367 assertion error.
30368 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30369 resolved path.
30370 (Parse_Single_Project): Ditto.
30371
30372 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30373 Add_To_Project_Path for virtual projects.
30374
30375 2004-10-04 Vincent Celier <celier@gnat.com>
30376
30377 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30378 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30379 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30380 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30381 parameter Options_2.
30382
30383 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30384 Build_Dynamic_Library with an empty Options_2.
30385
30386 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30387 default anymore.
30388
30389 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30390 directory separator, if any.
30391 (Gprmake): Do not allow mains on the command line for library projects.
30392 Do not attempt to link when the project is a library project.
30393 (Library_Opts): New table to store Library_Options.
30394 (Build_Library): If Library_Options is specified, pass these options
30395 when building a shared library.
30396
30397 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30398
30399 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30400 the end of this procedure now that the unlock operation was inserted
30401 by the expander.
30402
30403 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30404
30405 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30406 corresponding to the Preallocated_Stacks flags in System.
30407 (Get_Target_Parameters): Including the processing for
30408 Preallocated_Stacks.
30409
30410 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30411 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30412 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30413 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30414 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30415 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30416 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30417 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30418 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30419 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30420 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30421 used to signal whether the compiler creates the required stacks and
30422 descriptors for the different tasks (when True) or it is done by the
30423 underlying operating system at run time (when False).
30424 It is initially set to False in all targets.
30425
30426 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30427 if it is supported by the target.
30428 (Make_Task_Create_Call): Pass the stack address if it has been
30429 previously created. Otherwise pass a Null_Address.
30430
30431 * snames.adb: Add _stack.
30432
30433 * snames.ads: Add Name_uStack. Required to allow the expander to
30434 statically allocated task stacks.
30435
30436 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30437 Stack_Address argument.
30438 Check that its value is equal to Null_Address because this target does
30439 not support the static stack allocation.
30440
30441 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30442
30443 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30444 and error messages
30445
30446 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30447
30448 * exp_dist.adb: Split declaration of asynchronous flag out of
30449 Add_RACW_Read_Attribute.
30450 Minor reformatting for better alignment with PolyORB version.
30451 Store the entity for the asynchronous flag of an RACW, rather than the
30452 expression, in the asynchronous flags table. This will allow this flag
30453 to be used in other subprograms beside Add_RACW_Read_Attribute.
30454
30455 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30456
30457 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30458 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30459 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30460 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30461 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30462 sockets constant MSG_NOSIGNAL (Linux-specific).
30463 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30464 all Send operations.
30465 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30466 from trigerring SIGPIPE.
30467 Rename components to avoid clash with Ada 2005 possible reserved
30468 word 'interface'.
30469 (Check_Selector): When the select system call returns with an error
30470 condition, propagate Socket_Error to the caller.
30471
30472 2004-10-01 Jan Hubicka <jh@suse.cz>
30473
30474 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30475
30476 2004-09-23 Robert Dewar <dewar@gnat.com>
30477
30478 PR ada/17540
30479 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30480 instead do this at freeze time (we won't do it if there is an address
30481 clause).
30482 Change "pragma inline" to "pragma Inline" in information and error
30483 messages.
30484 Minor reformatting.
30485
30486 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30487 right way of doing things after all.
30488 (Freeze_Entity): For object, set Is_Public for imported entities
30489 unless there is an address clause present.
30490
30491 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30492
30493 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30494 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30495 ensures proper handling of types with rep clauses, which might have
30496 their TYPE_SIZE set already.
30497
30498 2004-09-21 Robert Dewar <dewar@gnat.com>
30499
30500 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30501 packed array types in both little- and big-endian cases. This change
30502 ensures that we no longer count on the unused bits being initialized
30503 for such types (and in particular ensures that equality testing will
30504 only read the relevant bits).
30505 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30506 These changes mean that we no longer need to initialize small packed
30507 arrays.
30508 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30509 optimization to an LJM field as to its parent field.
30510
30511 * ada-tree.h, trans.c, utils.c, utils2.c:
30512 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30513
30514 2004-09-20 Jan Hubicka <jh@suse.cz>
30515
30516 * utils.c (gnat_finalize): Remove.
30517 (end_subprog_body): Directly call cgraph_finalize_function;
30518 do not lower the nested functions.
30519
30520 2004-09-20 Robert Dewar <dewar@gnat.com>
30521
30522 PR ada/17540
30523 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30524 if an address clause is present, since that means that the Import
30525 should be ignored.
30526
30527 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30528
30529 * 5tsystem.ads: Removed, no longer used.
30530
30531 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30532 Zack Weinberg <zack@codesourcery.com>
30533
30534 * ada-tree.def: Use tree_code_class enumeration constants
30535 instead of code letters.
30536 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30537 Update for new tree-class enumeration constants.
30538
30539 2004-09-17 Vincent Celier <celier@gnat.com>
30540
30541 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30542 capabilities of the general project manager.
30543
30544 2004-09-09 Vincent Celier <celier@gnat.com>
30545
30546 * a-direct.ads: Add pragma Ada_05
30547 (Directory_Entry_Type): Give default value to component Kind to avoid
30548 not initialized warnings.
30549
30550 * a-direct.adb (Current_Directory): Remove directory separator at the
30551 end.
30552 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30553 an existing directory.
30554 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30555 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30556 Convert the result to File_Size.
30557
30558 * prj.ads: (Project_Error): New exception
30559
30560 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30561 Prj.Com, not from Osint.
30562 (Attrs, Package_Attributes): Tables moved to private part of spec
30563 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30564 Prj.Attr.PM.
30565 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30566 Prj.Project_Error after call to Fail.
30567 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30568 Fail. Check that package name is not already in use.
30569
30570 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30571 used by tools, not only by the project manager, and to indicate that
30572 exception Prj.Prj_Error may be raised in case of problem.
30573 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30574 Prj.Attr.PM.
30575 (Attrs, Package_Attributes): Table instantiations moved from the body to
30576 the private part to be accessible from Prj.Attr.PM body.
30577
30578 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30579 from new package Prj.Attr.PM.
30580 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30581 Prj.Attr.PM.
30582
30583 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30584
30585 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30586 instead of Elaboration_Checks).
30587
30588 * a-calend.adb: Minor reformatting
30589
30590 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30591
30592 * gigi.h (maybe_pad_type): New declaration.
30593 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30594
30595 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30596
30597 * cuintp.c: Convert to use buildN.
30598
30599 * decl.c (maybe_pad_type): No longer static.
30600 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30601 target pointer.
30602 Convert to use buildN.
30603
30604 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30605 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30606 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30607 RHS.
30608 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30609 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30610 Convert to use buildN.
30611
30612 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30613 TREE_READONLY for const.
30614 Convert to use buildN.
30615
30616 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30617 (create_var_decl): Refine when TREE_STATIC is set.
30618 Convert to use buildN.
30619
30620 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30621
30622 * gnat_ugn.texi: Delete text relating to checking of ali and object
30623 consistency.
30624
30625 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30626 routines.
30627
30628 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30629
30630 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30631 pragmas recognized by GNAT.
30632
30633 * gnat_rm.texi: Document pragma Detect_Blocking.
30634
30635 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30636 raise Program_Error if called from a protected operation.
30637
30638 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30639 the protected action nesting level.
30640 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30641 protected action nesting level.
30642 (Unlock): When pragma Detect_Blocking is active decrease the protected
30643 action nesting level.
30644
30645 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30646 Protected_Action_Nesting.
30647
30648 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30649 Common_ATCB record. It contains the dynamic level of protected action
30650 nesting for each task. It is needed for checking whether potentially
30651 blocking operations are called from protected operations.
30652 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30653 Detect_Blocking is active or not in the partition.
30654
30655 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30656 raise Program_Error if called from a protected operation.
30657 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30658 Program_Error if called from a protected operation.
30659 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30660 Program_Error if called from a protected operation.
30661
30662 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30663 raise Program_Error if called from a protected operation.
30664
30665 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30666 raise Program_Error if called from a protected operation, and increase
30667 the protected action nesting level.
30668 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30669 Program_Error if called from a protected operation, and increase the
30670 protected action nesting level.
30671 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30672 protected action nesting level.
30673
30674 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30675 raise Program_Error if called from a protected operation, and increase
30676 the protected action nesting level.
30677 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30678 Program_Error if called from a protected operation, and increase the
30679 protected action nesting level.
30680 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30681 raise Program_Error if called from a protected operation.
30682 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30683 active, raise Program_Error if called from a protected operation.
30684 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30685 protected action nesting level.
30686
30687 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30688 insertion of the statement raising Program_Error. The run time
30689 contains the required machinery for handling that.
30690
30691 * sem_util.ads: Change comment associated to procedure
30692 Check_Potentially_Blocking_Operation.
30693 This procedure does not insert a call for raising the exception because
30694 that is currently done by the run time.
30695
30696 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30697
30698 * init.c: Add the global variable __gl_detect_blocking that indicates
30699 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30700 making the pragma available at run time.
30701 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30702
30703 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30704 pragma Detect_Blocking is active.
30705
30706 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30707
30708 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30709 DB is found in the ali file. Any unit compiled with pragma
30710 Detect_Blocking active forces its effect in the whole partition.
30711
30712 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30713 Detect_Blocking is active and delay is called from a protected
30714 operation.
30715
30716 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30717 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30718 Detect_Blocking is active (0 otherwise).
30719 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30720 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30721 otherwise).
30722
30723 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30724
30725 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30726 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30727 package.
30728
30729 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30730 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30731 Update API in placeholder implemetation of s-parint to reflect changes
30732 in distribution runtime library.
30733
30734 * sem_ch3.adb (Expand_Derived_Record): Rename to
30735 Expand_Record_Extension.
30736
30737 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30738 primitive operations of potentially distributed object types that have
30739 non-controlling anonymous access formals.
30740
30741 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30742 subprogram.
30743 New implementation of expansion for remote access-to-subprogram types,
30744 based on the RACW infrastructure.
30745 This version of sem_dist is compatible with PolyORB/DSA as well as
30746 GLADE.
30747
30748 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30749 Asynchrronous that applies to a remote access-to-subprogram type, mark
30750 the underlying RACW type as asynchronous.
30751
30752 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30753 __gnat_using_gnu_linker to 1.
30754
30755 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30756 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30757 GNAT.Perfect_Hash_Generators, and remove the empty
30758 GNAT.Perfect_Hash package.
30759
30760 * atree.adb: Minor reformatting
30761
30762 * exp_ch3.adb (Expand_Derived_Record): Rename to
30763 Expand_Record_Extension.
30764 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30765 a component declaration must remain attached at that point in the
30766 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30767 It is therefore necessary to take a copy of the expression when building
30768 the corresponding assignment statement in the init proc.
30769 As a side effect, in the case of a derived record type, we now see the
30770 original expression, without any rewriting that could have occurred
30771 during expansion of the ancestor type's init proc, and we do not need
30772 to go back to Original_Node.
30773
30774 * exp_ch3.ads (Expand_Derived_Record): Rename to
30775 Expand_Record_Extension.
30776
30777 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30778 Returns the RACW type used to implement a remote access-to-subprogram
30779 type.
30780 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30781 New subprograms. Used to create a proxy tagged object for a remote
30782 subprogram. The proxy object is used as the designated object
30783 for RAS values on the same partition (unless All_Calls_Remote applies).
30784 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30785 System.Partition_Interface.Get_Unique_Remote_Pointer.
30786 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30787 Renamed from Add_RAS_*_Attribute.
30788 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30789 subprograms.
30790 New implementation of expansion for remote access-to-subprogram types,
30791 based on the RACW infrastructure.
30792
30793 * exp_dist.ads (Copy_Specification): Update comment to note that this
30794 function can copy the specification from either a subprogram
30795 specification or an access-to-subprogram type definition.
30796
30797 2004-09-09 Ed Schonberg <schonberg@gnat.com>
30798
30799 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30800 in an instance, between an explicit subprogram an one inherited from a
30801 type derived from an actual.
30802
30803 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30804 add a polling call if the subprogram is to be inlined by the back-end,
30805 to avoid repeated calls with multiple inlinings.
30806
30807 * checks.adb (Apply_Alignment_Check): If the expression in the address
30808 clause is a call whose name is not a static entity (e.g. a dispatching
30809 call), treat as dynamic.
30810
30811 2004-09-09 Robert Dewar <dewar@gnat.com>
30812
30813 * g-trasym.ads: Minor reformatting
30814
30815 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30816 packed arrays, since unused bits are expected to be zero for a
30817 comparison.
30818
30819 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30820
30821 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30822 comment.
30823
30824 2004-09-09 Pascal Obry <obry@gnat.com>
30825
30826 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30827 enable map file generation. Add the right option to generate the map
30828 file if Map_File is set to True.
30829
30830 * gnatdll.adb (Gen_Map_File): New variable.
30831 (Syntax): Add info about new -m (Map_File) option.
30832 (Parse_Command_Line): Add support for -m option.
30833 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30834 Minor reformatting.
30835
30836 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
30837
30838 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30839 new gnatdist implementation.
30840 Define a subpackage isolating the output routines specific to this
30841 verbose mode.
30842
30843 2004-09-09 Joel Brobecker <brobecker@gnat.com>
30844
30845 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30846
30847 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30848
30849 2004-09-09 Cyrille Comar <comar@act-europe.fr>
30850
30851 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30852 internal unit.
30853
30854 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30855 version of the language is used to compile the run time.
30856
30857 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30858
30859 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30860 of variable length temporaries for function return now that the
30861 back-end and gigi support it.
30862
30863 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30864
30865 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30866
30867 * trans.c (struct stmt_group): Delete field GLOBAL.
30868 (gnat_init_stmt_group): Do not initialize it.
30869 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30870 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30871 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30872 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30873 (start_stmt_group): Likewise.
30874 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30875
30876 * utils2.c (ggc.h): Include.
30877 (build_call_raise): Call build_int_cst, not build_int_2.
30878
30879 * utils.c (gnat_init_decl_processing): Fix arg to
30880 build_common_tree_nodes.
30881 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30882 (gnat_define_builtin): Set built_in_decls.
30883 (init_gigi_decls): Call build_int_cst, not build_int_2.
30884
30885 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30886 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30887 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30888 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30889 SET_TYPE_MODULE): Use them.
30890 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30891 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30892 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30893 SET_TYPE_ADA_SIZE): Likewise.
30894 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30895 (DECL_CONST_CORRESPONDING_VAR,
30896 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30897 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30898 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30899 (TYPE_RM_SIZE_NUM): New macro.
30900 (TYPE_RM_SIZE): Modified to use above.
30901
30902 * cuintp.c: (build_cst_from_int): New function.
30903 (UI_To_gnu): Use it.
30904
30905 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30906 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30907 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30908 MIN_EXPR for the size, copy it into new.
30909
30910 2004-09-01 Robert Dewar <dewar@gnat.com>
30911
30912 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30913 packed indexed component where array is an IN OUT formal. This
30914 generated garbage code previously.
30915
30916 * gnat_ugn.texi: Document -fverbose-asm
30917
30918 * gnat-style.texi: Minor updates (note that boolean constants and
30919 variables are joined with AND/OR rather than short circuit forms).
30920
30921 2004-09-01 Ed Schonberg <schonberg@gnat.com>
30922
30923 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30924 it is an upward conversion of an untagged type with no representation
30925 change.
30926
30927 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
30928
30929 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30930 System.Partition_Interface.
30931
30932 * checks.adb (Apply_Access_Checks): Do not generate checks when
30933 expander is not active (but check for unset reference to prefix of
30934 dereference).
30935
30936 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30937 pragma Debug as an if statement with a constant condition, for
30938 consistent treatment of entity references contained within the
30939 enclosed procedure call.
30940
30941 2004-09-01 Vincent Celier <celier@gnat.com>
30942
30943 * bindgen.adb: (Set_EA_Last): New procedure
30944 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30945 Set_EA_Last.
30946 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30947 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30948 linked without errors.
30949 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30950 ST and EA.
30951 (Gen_Exception_Table_C): Correct same bugs
30952
30953 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30954
30955 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30956 on Windows, make sure that the drive letter is in upper case.
30957
30958 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30959 Windows, when the drive letter is added and Case_Sensitive is True, the
30960 drive letter is forced to upper case.
30961
30962 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30963 to Options_2 for the call to MLib.Utl.Gcc.
30964
30965 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30966 directory separator when defining BASE_DIR.
30967
30968 2004-09-01 Pascal Obry <obry@gnat.com>
30969
30970 * gprcmd.adb (Extend): Do not output trailing directory separator. This
30971 is not needed and it confuses Windows GNU/make which does not report
30972 directory terminated by a slash as a directory.
30973 (gprcmd): Idem for "pwd" internal command.
30974
30975 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30976 target names rewrite to fix regressions with recent version of
30977 GNU/make. Starting with GNU/make 3.80 the pipe character was not
30978 handled properly anymore.
30979
30980 2004-09-01 Andreas Schwab <schwab@suse.de>
30981
30982 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30983 * raise.c [!IN_RTS]: Undef abort.
30984
30985 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
30986
30987 * utils2.c (build_allocator): Use ssize_int.
30988
30989 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30990
30991 2004-08-27 Andreas Schwab <schwab@suse.de>
30992
30993 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30994
30995 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30996 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30997
30998 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30999
31000 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
31001
31002 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
31003 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31004 * utils.c (init_gigi_decls): Likewise.
31005 * utils2.c (build_call_raise, build_allocator): Likewise.
31006
31007 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
31008
31009 * utils.c (gnat_init_decl_processing): Adjust
31010 build_common_tree_nodes call.
31011
31012 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
31013
31014 * utils2.c (build_allocator): Use build_int_cst for negative
31015 size types.
31016
31017 2004-08-18 Richard Henderson <rth@redhat.com>
31018
31019 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
31020
31021 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
31022
31023 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
31024 call.s
31025 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
31026 (gnat_to_gnu): Likewise.
31027
31028 2004-08-16 Pascal Obry <obry@gnat.com>
31029
31030 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
31031 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
31032 option and not mdll anymore. Update comment.
31033
31034 2004-08-16 Pascal Obry <obry@gnat.com>
31035
31036 * bld.adb (Put_Include_Project): Properly handle directory separators
31037 on Windows.
31038
31039 2004-08-16 Ed Schonberg <schonberg@gnat.com>
31040
31041 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
31042 decreasing the number of allocated junk nodes while searching for the
31043 appropriate subprogram.
31044
31045 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
31046
31047 * cuintp.c (UI_To_gnu): Use build_int_cst..
31048 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
31049 * utils.c (init_gigi_decls): Likewise.
31050 * utils2.c (build_call_raise): Likewise.
31051
31052 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
31053
31054 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
31055 for a global aliased object with a variable size and an unconstrained
31056 nominal subtype, pretend there is no initializer if the one we have is
31057 incomplete, and avoid referencing an inexistant component in there. The
31058 part we have will be rebuilt anyway and the reference may confuse
31059 further operations.
31060
31061 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
31062
31063 * einfo.ads: Minor reformatting
31064
31065 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
31066 restrictions in the ALI if we only want to warn about violations.
31067
31068 2004-08-13 Vincent Celier <celier@gnat.com>
31069
31070 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
31071 when creating a new Unit_Record in table Units.
31072
31073 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
31074 that are violated, if any.
31075
31076 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
31077 add directory separator if path already ends with a directory separator.
31078
31079 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31080
31081 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
31082 unit, this is an attempt to inline a construct that is not available in
31083 the current restricted mode, so abort rather than trying to continue.
31084
31085 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
31086 discriminants that rename those of the parent, recover names of
31087 original discriminants for the constraint on the full view of the
31088 parent.
31089 (Complete_Private_Subtype): Do not create a subtype declaration if the
31090 subtype is an itype.
31091
31092 * gnat_rm.texi: Added section on implementation of discriminated
31093 records with default values for discriminants.
31094
31095 2004-08-13 Ed Schonberg <schonberg@gnat.com>
31096
31097 PR ada/15601
31098 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
31099 the second operand is overloaded.
31100
31101 2004-08-10 Richard Henderson <rth@redhat.com>
31102
31103 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
31104 add __builtin_alloca.
31105
31106 2004-08-10 Richard Henderson <rth@redhat.com>
31107
31108 * config-lang.in (boot_language): Yes.
31109
31110 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
31111
31112 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
31113 from complaining on potential uninitialized reference.
31114 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
31115 new specification and test explicitly for non-zero return value.
31116
31117 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
31118 returning C.int, to avoid using a derived boolean type.
31119
31120 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
31121 Duplicate_Subexpr_No_Checks in preference to direct use of
31122 Remove_Side_Effects and New_Copy_Tree.
31123 Clear Comes_From_Source on prefix of 'Size attribute reference.
31124
31125 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
31126 g-socthi-vxworks.adb: Change calls to
31127 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
31128 and test explicitly for non-zero return value.
31129
31130 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
31131 (Is_Socket_In_Set): Declare imported function as returning C.int, to
31132 avoid using a derived boolean type.
31133
31134 2004-08-09 Albert Lee <lee@gnat.com>
31135
31136 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
31137
31138 2004-08-09 Pascal Obry <obry@gnat.com>
31139
31140 * gnat_ugn.texi: Document new way to build DLLs on Windows using
31141 GCC's -shared option.
31142
31143 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
31144 Options_2 parameter (options put after object files).
31145
31146 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
31147
31148 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
31149 ignore overflows on low and high bounds of an index to also account for
31150 differences in signedness between sizetype and gnu_index_subtype.
31151 These are as legitimate as the ones caused by a lower TYPE_PRECISION
31152 on sizetype.
31153
31154 2004-08-09 Robert Dewar <dewar@gnat.com>
31155
31156 * s-solita.ads, s-solita.adb: Minor reformatting
31157
31158 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
31159 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
31160 obsolescent section
31161 Add note that No_Implicit_Conditionals does not suppress
31162 run time constraint checks.
31163
31164 * vms_conv.ads: Minor reformatting
31165
31166 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
31167 and necessary for following change).
31168 (Mark): Return new format Mark_Id containing sec stack address
31169 (Release): Use sec stack address from Mark_Id avoiding Self call
31170
31171 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31172 pointer (cleanup and necessary for following change).
31173 Define Mark_Id as record containing address of secondary stack, that way
31174 Release does not need to find the stack again, decreasing the number of
31175 calls to Self and improving efficiency.
31176
31177 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31178
31179 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31180 case variable into the individual case branches when possible.
31181
31182 * sem_ch11.adb: Minor reformatting
31183
31184 * prj.ads: Correct spelling of suffixs
31185
31186 * prj-nmsc.adb: Minor reformatting
31187 Correct spelling suffixs throughout (also in identifiers)
31188
31189 * freeze.adb: Minor spelling correction
31190
31191 * exp_ch2.adb: Cleanups to handling of Current_Value
31192 (no functional effect).
31193
31194 * bld.adb: Correct spelling of suffixs
31195
31196 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31197
31198 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31199
31200 PR ada/15408
31201 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31202 package or of a child, private entities are both immediately_visible
31203 and not hidden.
31204
31205 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31206
31207 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31208 there are no range checks on the value of the literal.
31209
31210 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31211 wrapped is the triggering alternative of an asynchronous select, action
31212 statements mustbe inserted before the select itself.
31213
31214 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31215 case where the prefix is a protected function call.
31216 (Resolve_Attribute, case 'Access): The attribute reference on a
31217 subprogram is legal in a generic body if the subprogram is declared
31218 elsewhere.
31219
31220 2004-08-09 Vincent Celier <celier@gnat.com>
31221
31222 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31223 languages, otherwise building the library may fail with unresolved
31224 symbols.
31225 (Compile_Sources): Do not build libraries if -c switch is used
31226
31227 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31228 (Write_Usage): If map file creation is supported, output new switches
31229 -M and -Mmap.
31230 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31231 gcc call, when supported.
31232
31233 * Makefile.in: Added indepsw.o to the object list for gnatlink
31234 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31235
31236 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31237 indepsw.adb, indepsw.ads: New files.
31238
31239 2004-08-09 Bernard Banner <banner@gnat.com>
31240
31241 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31242
31243 * Makefile.in: add section for vxworks x86
31244
31245 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31246
31247 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31248 per-object constrained components where the discriminant is of an
31249 Access type.
31250 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31251 the parent initialization procedure for derived Unchecked_Unions.
31252 Instead, derived Unchecked_Unions build their own initialization
31253 procedure.
31254 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31255 Check the body of the subprogram for details.
31256 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31257 functions for derived Unchecked_Union types by introducing a condition.
31258 Allow the creation of TSS equality functions for Unchecked_Unions.
31259 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31260 Add formal parameter Discr to function signature. Discr is used to
31261 control the generated case statement for Unchecked_Union types.
31262 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31263
31264 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31265 Unchecked_Unions.
31266 Check the body of the subprogram for details.
31267 (Expand_Composite_Equality): Augment composite type equality to include
31268 correct handling of Unchecked_Union components.
31269 (Expand_N_In): Add condition to detect illegal membership tests when the
31270 subtype mark is a constrained Unchecked_Union and the expression lacks
31271 inferable discriminants, and build a Raise_Program_Error node.
31272 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31273 to detect types that contain components of unconstrained Unchecked_Union
31274 subtype. Add condition to detect equality between types that have an
31275 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31276 node. Add condition to detect equality between Unchecked_Union types
31277 that lack inferable discriminants, and build a Raise_Program_Error node.
31278 Otherwise build a TSS equality function call.
31279 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31280 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31281 with the operand lacking inferable discriminants, and build a Raise_
31282 Program_Error node.
31283 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31284 composite equality.
31285 (Has_Inferable_Discriminants): Implement new predicate for objects and
31286 expressions of Unchecked_Union type. Check the body of subprogram for
31287 details.
31288 (Has_Unconstrained_UU_Components): Add function
31289 Component_Is_Unconstrained_UU. It is used to detect whether a single
31290 component is of an unconstrained Unchecked_Union subtype. Add function
31291 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31292 component inside a variant is of an unconstrained Unchecked_Union type.
31293
31294 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31295 inferred discriminant values. Add condition to generate a case
31296 statement with an inferred discriminant as the switch.
31297 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31298 the behaviour of the subprogram in the presence of an Unchecked_Union.
31299 Add condition to trigger the usage of the inferred discriminant value
31300 as the generated case statement switch.
31301 (Make_Field_Assign): Introduce a Boolean flag that determines the
31302 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31303 condition to trigger the usage of the inferred discriminant value as
31304 the right-hand side of the generated assignment.
31305
31306 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31307 parameter generation when dealing with Unchecked_Unions.
31308
31309 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31310 checks for Unchecked_Unions.
31311
31312 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31313
31314 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31315 Raise_Program_Error nodes for the execution of Read and Write
31316 attributes of Unchecked_Union types and the execution of Input and
31317 Output attributes of Unchecked_Union types that lack default
31318 discriminant values.
31319
31320 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31321 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31322 per-object constrained components of Unchecked_Unions for being
31323 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31324 check individual components withing a variant.
31325
31326 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31327 comparison of Unchecked_Unions.
31328 (Resolve_Equality_OP): Remove guard that prevents equality between
31329 Unchecked_Unions.
31330
31331 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31332 of component subtypes for Unchecked_Union components.
31333 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31334 since it is the actual subtype.
31335
31336 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31337 pass of Unchecked_Union subtypes as generic actuals to formal types
31338 that lack known_discriminant_parts or that are derived Unchecked_Union
31339 types, and do nothing. In any other case, produce an error message.
31340
31341 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31342 Contains_POC. It determines whether a constraint uses the discriminant
31343 of an enclosing record type.
31344 Add condition to detect per-object constrained component and set the
31345 appropriate flag.
31346 (Derived_Type_Declaration): Remove guard that prevents derivation from
31347 Unchecked_Union types.
31348 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31349 Union subtypes.
31350
31351 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31352 references to Unchecked_Union discriminants.
31353
31354 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31355 formal generation when dealing with Unchecked_Unions.
31356 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31357 subtypes for Unchecked_Unions.
31358
31359 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31360 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31361 completions of discriminated partial views by Unchecked_Unions and
31362 produce an error message.
31363
31364 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31365
31366 * trans.c (struct stmt_group): New field, GLOBAL.
31367 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31368 (struct elab_info): New struct.
31369 (elab_info_list, gnu_elab_proc_stack): New variables.
31370 (Compilation_Unit_to_gnu): New procedure.
31371 (gigi): Call it and also handle elaboration procs we've saved.
31372 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31373 global field from parent.
31374 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31375 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31376 (start_stmt_group): Initialize global field from parent.
31377 (add_decl_expr): Set to global for current statement group.
31378 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31379 post.
31380
31381 * utils.c (global_bindings_p): True when no current_function_decl; no
31382 longer check current_binding_level.
31383
31384 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31385
31386 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31387 choice.
31388
31389 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31390
31391 2004-08-06 Andreas Schwab <schwab@suse.de>
31392
31393 * utils.c (gnat_define_builtin): Remove second parameter of
31394 make_decl_rtl.
31395 (begin_subprog_body): Likewise.
31396
31397 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31398
31399 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31400 optimization, not supported by the tree-ssa back-end.
31401
31402 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31403
31404 * s-mastop-irix.adb: Update comments.
31405
31406 * a-except.adb (Exception_Information): Raise Constraint_Error if
31407 exception Id is Null_Id.
31408 This is required behavior, which is more reliably and clearly checked
31409 at the top level interface level.
31410
31411 2004-07-26 Javier Miranda <miranda@gnat.com>
31412
31413 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31414 call if a component has no default_expression and the box is used.
31415
31416 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31417 default_expression and you use box, it behaves as if you had declared a
31418 stand-alone object.
31419 (Resolve_Record_Aggregate): If a component has no default_expression and
31420 you use box, it behaves as if you had declared a stand-alone object.
31421
31422 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31423 entities of private-with siblings.
31424
31425 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31426
31427 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31428 for a component of an itype, set the parent pointer for analysis,
31429 there is no list in which to insert it.
31430
31431 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31432 bona-fide renamings, not for inherited operations.
31433
31434 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31435 actual for a formal that is an access parameter, create local
31436 finalization list even if the expression is not an aggregate.
31437
31438 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31439
31440 PR ada/16213
31441 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31442 Diagnose properly illegal subprogram renamings that are library units.
31443
31444 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31445
31446 PR ada/15588
31447 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31448 conversion rewritten as an unchecked conversion, check that original
31449 expression is a variable.
31450
31451 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31452 unchecked_conversion, create new node rather than rewriting in place,
31453 to preserve original construct.
31454
31455 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31456
31457 * gigi.h (gnat_expand_body): Deleted.
31458
31459 * Make-lang.in: (trans.o): Depends on function.h.
31460
31461 * misc.c: (gnat_expand_body): Moved to here.
31462
31463 * trans.c (gnat_expand_body_1): Deleted.
31464 (gnat_expand_body): Moved from here.
31465 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31466 (add_stmt): Check for marked visited with global_bindings_p.
31467 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31468 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31469
31470 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31471 VIEW_CONVERT_EXPR if not operation type.
31472
31473 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31474 fat pointer.
31475
31476 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31477 changes: reformatting of negation operators, removing unneeded
31478 inequality comparison with zero, converting equality comparisons with
31479 zero to negations, changing int/0/1 to bool/false/true, replace calls
31480 to gigi_abort with abort, and various other similar changes.
31481
31482 2004-07-26 Vincent Celier <celier@gnat.com>
31483
31484 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31485 "setup".
31486
31487 * make.adb (Gnatmake): Fail when a library is not present and there is
31488 no object directory.
31489
31490 * mlib-prj.adb (Check_Library): No need to check if the library needs
31491 to be rebuilt if there is no object directory, hence no object files
31492 to build the library.
31493
31494 * opt.ads (Setup_Projects): New Boolean flag.
31495
31496 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31497 Location.
31498 Create directory when Kind /= "" and in "gnat setup". Report error if
31499 directory cannot be created.
31500 (Ada_Check): Create library interface copy dir if it does not exist
31501 and we are in "gnat setup".
31502 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31503 found.
31504 (Language_Independent_Check): Create object directory, exec directory
31505 and/or library directory if they do not exist and we are in
31506 "gnat setup".
31507
31508 * vms_conv.ads: (Command_Type): New command Setup.
31509
31510 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31511
31512 * vms_data.ads: Add qualifiers/switches for new built-in command
31513 "setup".
31514
31515 2004-07-25 Richard Henderson <rth@redhat.com>
31516
31517 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31518 DECL_IGNORED_P on RESULT_DECL.
31519
31520 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31521
31522 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31523 allocation and potentially overflowing update with
31524 Tailored_Exception_Information. Use the sec-stack free procedural
31525 interface to output Exception_Information instead.
31526
31527 * a-except.adb (To_Stderr): New subprogram for character, and string
31528 version moved from a-exextr to be visible from other separate units.
31529 (Tailored_Exception_Information): Remove the procedural version,
31530 previously used by the default Last_Chance_Handler and not any more.
31531 Adjust various comments.
31532
31533 * a-exexda.adb: Generalize the exception information procedural
31534 interface, to minimize the use of secondary stack and the need for
31535 local buffers when the info is to be output to stderr:
31536 (Address_Image): Removed.
31537 (Append_Info_Character): New subprogram, checking for overflows and
31538 outputing to stderr if buffer to fill is of length 0.
31539 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31540 (Append_Info_Address, Append_Info_Exception_Name,
31541 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31542 Append_Info_Basic_Exception_Traceback,
31543 Append_Info_Exception_Information): New subprograms.
31544 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31545 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31546 Exception_Info_Maxlength, Exception_Name_Length,
31547 Exception_Message_Length): New subprograms.
31548 (Exception_Information): Use Append_Info_Exception_Information.
31549 (Tailored_Exception_Information): Use
31550 Append_Info_Basic_Exception_Information.
31551 Export services for the default Last_Chance_Handler.
31552
31553 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31554 other separate units.
31555
31556 2004-07-20 Vincent Celier <celier@gnat.com>
31557
31558 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31559
31560 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31561
31562 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31563 emit itype references for the designated types of component types that
31564 are declared outside of the full record declaration, and that may
31565 denote a partial view of that record type.
31566
31567 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31568
31569 PR ada/15607
31570 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31571 which is the designated type in an access component declaration, to the
31572 list of incomplete dependents of the parent type, to avoid elaboration
31573 issues with out-of-scope subtypes.
31574 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31575 full view of the parent.
31576
31577 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31578
31579 PR ada/15610
31580 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31581 entities that are hidden, such as references to generic actuals
31582 outside an instance.
31583
31584 2004-07-20 Javier Miranda <miranda@gnat.com>
31585
31586 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31587 support to the new notation.
31588 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31589
31590 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31591
31592 * s-taprob.adb: Adding the elaboration code required for initializing
31593 the tasking soft links that are common to the full and the restricted
31594 run times.
31595
31596 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31597 restricted run time has been moved to the package
31598 System.Soft_Links.Tasking.
31599
31600 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31601 restricted run time has been moved to the package
31602 System.Soft_Links.Tasking.
31603
31604 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31605
31606 * s-solita.ads, s-solita.adb: New files.
31607
31608 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31609
31610 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31611 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31612 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31613 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31614 Exception_Handler_to_gnu_zcx): Likewise.
31615
31616 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31617
31618 * gigi.h (builtin_function): Declare.
31619
31620 2004-07-15 Robert Dewar <dewar@gnat.com>
31621
31622 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31623 reformatting
31624
31625 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31626 access values as an example of a warning.
31627
31628 * gnat_rm.texi: Document new attribute Has_Access_Values
31629
31630 * gnat-style.texi: Document that box comments belong on nested
31631 subprograms
31632
31633 * sem_util.ads (Has_Access_Values): Improved documentation
31634
31635 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31636
31637 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31638 (Process_Interface_Name): Call to this new procedure
31639 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31640
31641 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31642
31643 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31644
31645 * einfo.ads: Minor comment typo fixed
31646
31647 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31648
31649 * snames.adb: Add _atcb.
31650
31651 * snames.ads: Add Name_uATCB.
31652
31653 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31654 (in the expanded code) when using the restricted run time.
31655
31656 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31657 a in parameter in order to allow ATCBs to be preallocated (in the
31658 expanded code).
31659
31660 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31661 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31662 deallocated in System.Tasking.Stages.
31663
31664 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31665 order to allow ATCBs to be preallocated.
31666
31667 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31668 here. It was previously done in Initialize_ATCB.
31669
31670 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31671
31672 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31673 Restricted run time.
31674
31675 * exp_ch3.adb: When using the Restricted run time, pass the
31676 preallocated Ada_Task_Control_Block when creating a task.
31677
31678 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31679
31680 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31681 function call that is itself an actual in an enclosing call, diagnose
31682 problem here rather than assuming that resolution will catch it.
31683
31684 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31685 the local copy of a generic unit for a formal package, and the generic
31686 is a child unit, install private part of ancestors before compiling
31687 private part of spec.
31688
31689 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31690 use scope entities rather than tree structures, to handle properly
31691 parent units that are instances rewritten as bodies for inlining
31692 purposes.
31693
31694 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31695 Remove_Parents): Handle properly a parent unit that is an
31696 instantiation, when the unit has been rewritten as a body for inlining
31697 purposes.
31698
31699 * par.adb (Goto_List): Global variable to collect goto statements in a
31700 given unit, for use in detecting natural loops.
31701
31702 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31703 use in detecting natural loops.
31704
31705 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31706 backwards goto's, and rewrite as a infinite loop, to improve locality
31707 of temporaries.
31708
31709 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31710 subcomponent that includes an indexed reference, to prevent the
31711 generation of copies that would miscompile the desired assignment
31712 statement.
31713 (Build_Task_Image_Decls): Add a numeric suffix to
31714 generated name for string variable, to avoid spurious conflicts with
31715 the name of the type of a single protected object.
31716
31717 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31718 loop with an explicit exit statement, to avoid generating an
31719 out-of-range value with 'Succ leading to spurious constraint_errors
31720 when compiling with -gnatVo.
31721
31722 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31723
31724 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31725 might not be analyzed yet, even if its Etype is already set (case of an
31726 unchecked conversion built using Unchecked_Convert_To, for example).
31727 If the prefix has already been analyzed, this will be a nop anyway.
31728
31729 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31730 controller type, or an assignment of a record type with controlled
31731 components, copy only user data, and leave the finalization chain
31732 pointers untouched.
31733
31734 2004-07-15 Vincent Celier <celier@gnat.com>
31735
31736 * make.adb (Collect_Arguments): Improve error message when attempting
31737 to compile a source not part of any project, when -x is not used.
31738
31739 * prj.ads: (Defined_Variable_Kind): New subtype
31740
31741 * prj-attr.adb (Register_New_Package): Two new procedures to register
31742 a package with or without its attributes.
31743 (Register_New_Attribute): Mew procedure to register a new attribute in a
31744 package.
31745 New attribute oriented subprograms: Attribute_Node_Id_Of,
31746 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31747 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31748 Next_Attribute.
31749 New package oriented subprograms: Package_Node_Id_Of,
31750 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31751
31752 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31753 type.
31754 (Package_Node_Id): Now a private, self initialized type
31755 (Register_New_Package): New procedure to register a package with its
31756 attributes.
31757 New attribute oriented subprograms: Attribute_Node_Id_Of,
31758 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31759 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31760 Next_Attribute.
31761 New package oriented subprograms: Package_Node_Id_Of,
31762 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31763
31764 * prj-dect.adb (Parse_Attribute_Declaration,
31765 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31766
31767 * prj-makr.adb (Make): Parse existing project file before creating
31768 other files. Fail if there was an error during parsing.
31769
31770 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31771 new spec of Prj.Attr.
31772
31773 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31774 to new spec of Prj.Attr.
31775
31776 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31777
31778 * utils2.c: Fix typo in comment.
31779
31780 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31781
31782 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31783 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31784
31785 2004-07-14 Andreas Schwab <schwab@suse.de>
31786
31787 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31788
31789 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31790
31791 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31792 object type.
31793 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31794 TYPE_STUB_DECL.
31795
31796 * misc.c (gnat_types_compatible_p): New function.
31797 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31798 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31799
31800 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31801 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31802 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31803 (mark_visited): Don't mark dummy type.
31804 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31805 parameter, we must remove any LJM building from GNU_NAME.
31806 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31807 (pos_to_constructor): Use int_const_binop.
31808 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31809 PARM_DECL.
31810
31811 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31812 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31813 (gnat_install_builtins): Add __builtin_memset.
31814
31815 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
31816
31817 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31818 for a renaming, stabilize the initialization expression if we are at a
31819 local level. At the local level, uses of the renaming may be performed
31820 by a direct dereference of the initializing expression, and we don't
31821 want possible variables there to be evaluated for every use.
31822
31823 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31824 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31825 them on the way. Account for the fact that we may introduce side
31826 effects in the process.
31827
31828 2004-07-13 Richard Henderson <rth@redhat.com>
31829
31830 * misc.c (default_pass_by_ref): Use pass_by_reference.
31831
31832 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31833
31834 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31835 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31836
31837 2004-07-08 Richard Henderson <rth@redhat.com>
31838
31839 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31840 commentary.
31841
31842 2004-07-06 Vincent Celier <celier@gnat.com>
31843
31844 * vms_conv.ads: Minor reformatting.
31845 Alphabetical order for enumerated values of type Command_Type, to have
31846 the command in alphabetical order for the usage.
31847
31848 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31849 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31850
31851 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31852
31853 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31854 (Add_Archive_Path): Only add the global archive if there is one.
31855 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31856 or not any object file to put in the global archive, and don't build
31857 a global archive if there is none.
31858 (X_Switches): New table
31859 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31860 in the X_Switches table, if any.
31861 (Initialize): Make sure the X_Switches table is empty
31862 (Scan_Arg): Record -X switches in table X_Switches
31863
31864 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31865
31866 * make.adb: Minor comment fix
31867
31868 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31869 invoked with directory information, add the directory in front of the
31870 path.
31871
31872 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31873 invoked with directory information, add the directory in front of the
31874 path.
31875
31876 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31877 when Keep_Temporary_Files is False.
31878 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31879 directory information, add the directory in front of the path.
31880 When not on VMS, handle new switch -dn before the command to set
31881 Keep_Temporary_Files to True.
31882 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31883 everywhere.
31884
31885 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31886 invoked with directory information, add the directory in front of the
31887 path.
31888
31889 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
31890
31891 * snames.ads, snames.adb (Name_Stub): New name for the distributed
31892 systems annex.
31893
31894 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31895 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31896
31897 * g-socket.adb (To_Timeval): Fix incorrect conversion of
31898 Selector_Duration to Timeval for the case of 0.0.
31899
31900 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31901 documentation from Evolve_And_Then.
31902
31903 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
31904
31905 * s-taprop-tru64.adb, s-taprop-os2.adb,
31906 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31907
31908 2004-07-06 Robert Dewar <dewar@gnat.com>
31909
31910 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31911 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31912 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31913 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31914 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31915 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31916 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31917 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31918 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31919 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31920 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31921 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31922 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31923 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31924 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31925 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31926 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31927 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31928 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31929 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31930 vms_data.ads: Minor reformatting,
31931 Fix bad box comment format.
31932
31933 * gnat_rm.texi: Fix minor grammatical error
31934
31935 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31936
31937 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31938 more cases of discriminated records to be recognized as not needing a
31939 secondary stack.
31940 (Has_Access_Values): New function.
31941
31942 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31943
31944 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31945 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31946 with LRM terminology).
31947 Change terminology in comments primitive type => elementary type.
31948
31949 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31950
31951 PR ada/15602
31952 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31953 parameters do not impose any requirements on the presence of a body.
31954
31955 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31956
31957 PR ada/15593
31958 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31959 compilation unit and is in an open scope at the point of instantiation,
31960 assume that a body may be present later.
31961
31962 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31963
31964 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31965 Improve error message when specified size is not supported.
31966
31967 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31968 is never a primitive operation.
31969
31970 2004-07-05 Andreas Schwab <schwab@suse.de>
31971
31972 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31973 RECORD_OR_UNION_CHECK.
31974 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31975
31976 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
31977
31978 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31979 dependency on xgnatugn, instead build it via a submake.
31980 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31981
31982 2004-07-04 Richard Henderson <rth@redhat.com>
31983
31984 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31985
31986 2004-07-01 Richard Henderson <rth@redhat.com>
31987
31988 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31989 * utils.c (max_size): Likewise.
31990
31991 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31992
31993 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31994 and rest_of_type_compilation; add arg to create_*_decl.
31995 (annotate_decl_with_node): Deleted.
31996 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31997 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31998 (get_current_block_context, gnat_pushdecl): New declarations.
31999 (gnat_init_stmt_group): Likewise.
32000 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
32001 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
32002 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
32003 (gnat_init): Call gnat_init_stmt_group.
32004 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
32005 (gnu_pending_elaboration_list): Deleted.
32006 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
32007 (gigi): Rearrange initialization calls and move some to last above.
32008 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
32009 Delete calls to add_decl_expr; add arg to create_*_decl.
32010 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
32011 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
32012 begin_subprog_body and call it.
32013 Don't push and pop ggc context.
32014 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
32015 (add_stmt): Remove handling of DECL_EXPR from here.
32016 If not in function, mark visited.
32017 (add_decl_expr): Put global at top level.
32018 Check for cases of DECL_INITIAL we have to handle here.
32019 (process_type): Add extra arg to create_type_decl.
32020 (build_unit_elab): Rework to just gimplify.
32021 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
32022 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
32023 (get_pending_elaborations, pending_elaborations_p): Likewise.
32024 (push_pending_elaborations, pop_pending_elaborations): Likewise.
32025 (get_elaboration_location, insert_elaboration_list): Likewise.
32026 (gnat_binding_level): Renamed from ada_binding_level.
32027 (init_gnat_to_gnu): Don't clear pending_elaborations.
32028 (global_bindings_p): Treat as global if no current_binding_level.
32029 (set_current_block_context): New function.
32030 (gnat_pushdecl): Renamed from pushdecl; major rework.
32031 All callers changed.
32032 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
32033 (finish_record_type): Call call pushdecl for stub decl.
32034 (function_nesting_depth): Deleted.
32035 (begin_subprog_body): Delete obsolete code.
32036 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
32037
32038 2004-06-28 Robert Dewar <dewar@gnat.com>
32039
32040 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32041 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
32042 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
32043 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32044 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
32045
32046 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
32047 deal with problem of inefficient slices on machines with strict
32048 alignment, when the slice is a component of a composite.
32049
32050 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
32051 machines, we need the check there as well.
32052
32053 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32054
32055 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
32056 determine safe copying direction for overlapping slice assignments
32057 when component is controlled.
32058
32059 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
32060 formal derived type in the actual for a formal package are visible in
32061 the enclosing instance.
32062
32063 2004-06-28 Ed Schonberg <schonberg@gnat.com>
32064
32065 PR ada/15600
32066 * sem_util.adb (Trace_Components): Diagnose properly an illegal
32067 circularity involving a private type whose completion includes a
32068 self-referential component.
32069 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
32070 renaming or an instantiation from an implicit derived operation.
32071
32072 2004-06-28 Pascal Obry <obry@gnat.com>
32073
32074 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
32075 DLL.
32076 (Library_File_Name_For): Idem.
32077
32078 2004-06-28 Matthew Gingell <gingell@gnat.com>
32079
32080 * g-traceb.ads: Add explanatory note on the format of addresses
32081 expected by addr2line.
32082
32083 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
32084
32085 * Makefile.in: Force debugging information on s-tasdeb.adb,
32086 a-except.adb and s-assert.adb needed by the debugger.
32087
32088 2004-06-28 Vincent Celier <celier@gnat.com>
32089
32090 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
32091 Need_To_Build_Lib.
32092 (Gnatmake): Ditto.
32093
32094 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
32095
32096 * prj.adb: Minor reformatting
32097 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
32098
32099 * prj.ads: Comment updates
32100 Minor reformatting
32101 (Project_Data): Change Flag1 to Need_To_Build_Lib.
32102 Remove Flag2: not used.
32103
32104 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
32105 declaration.
32106
32107 * gnat_ugn.texi: Put a "null;" declaration in one project file example
32108
32109 * gnat_rm.texi: Document Empty declarations "null;".
32110
32111 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
32112 front of the linker options.
32113 (Link_Foreign): Put the global archives and the libraries in front of
32114 the linker options.
32115
32116 2004-06-28 Javier Miranda <miranda@gnat.com>
32117
32118 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
32119 (RTU_Loaded): Code cleanup
32120 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
32121 withed predefined units.
32122
32123 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
32124 explicitly withed predefined units.
32125 Fix typo in comment
32126
32127 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
32128 explicitly withed predefined units.
32129
32130 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32131
32132 * ada-tree.def (DECL_STMT): Deleted.
32133 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
32134 (DECL_STMT_VAR): Deleted.
32135 * decl.c: add_decl_stmt now add_decl_expr.
32136 * gigi.h: Likewise.
32137 * trans.c: Likewise.
32138 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32139 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
32140 (add_stmt): Only handle padded type here.
32141 (add_stmt_with_node): Allow gnat_node to not be present.
32142 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
32143 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
32144 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
32145 make a SAVE_EXPR for the entire fat pointer.
32146 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
32147 (create_index_type): Make a DECL_EXPR.
32148 (end_subprog_body): Don't call allocate_struct_function here but
32149 do clear cfun.
32150
32151 2004-06-25 Pascal Obry <obry@gnat.com>
32152
32153 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
32154 Relocatable from Build_Dynamic_Library call.
32155
32156 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
32157 Relocatable are now synonym.
32158
32159 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
32160
32161 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
32162 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
32163 call.
32164
32165 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
32166 Lib_Address and Relocatable.
32167 (Default_DLL_Address): Removed.
32168
32169 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32170 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32171 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32172 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32173 (Default_DLL_Address): Removed.
32174
32175 * mlib-tgt-mingw.adb: Ditto.
32176 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32177
32178 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32179 the initial thread stack size.
32180
32181 * a-strmap.ads: Move package L to private part as it is not used in
32182 the spec. Found while reading code.
32183
32184 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32185
32186 * tracebak.c: Introduce support for a GCC infrastructure based
32187 implementation of __gnat_backtrace.
32188
32189 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32190 any more. Use accessors instead. This eases maintenance and relaxes
32191 some alignment constraints.
32192 (_GNAT_Exception structure): Remove the Ada specific fields
32193 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32194 a-exexpr.adb.
32195 (is_handled_by, __gnat_eh_personality): Replace component references to
32196 exception structure by use of the new accessors.
32197
32198 * init.c (__gnat_initialize): Adjust comments to match the just
32199 reverted meaning of the -static link-time option.
32200
32201 * adaint.c (convert_addresses): Arrange not to define a stub for
32202 mips-irix any more, as we now want to rely on a real version from a
32203 recent libaddr2line.
32204
32205 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32206 the personality routine can use them and not have to rely on a C
32207 counterpart of the record anymore. This simplifies maintenance and
32208 relaxes the constraint of having Standard'Maximum_Alignment match
32209 BIGGEST_ALIGNMENT.
32210 Update comments, and add a section on the common header alignment issue.
32211
32212 2004-06-25 Geert Bosch <bosch@gnat.com>
32213
32214 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32215 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32216
32217 2004-06-25 Robert Dewar <dewar@gnat.com>
32218
32219 * gnat_rm.texi: Fix section on component clauses to indicate that the
32220 restriction on byte boundary placement still applies for bit packed
32221 arrays.
32222 Add comment on stack usage from Initialize_Scalars
32223
32224 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32225
32226 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32227 limiting nesting level.
32228
32229 * usage.adb: Add line for -gnatyLnnn switch
32230
32231 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32232 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32233
32234 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32235 type as well as on the subtype. This corrects a problem in freeze in
32236 setting alignments of atomic types.
32237
32238 * sem_eval.ads: Minor comment typo fixed
32239
32240 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32241 level. Minor reformatting.
32242
32243 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32244 minus sign. This means that file names like a--b.adb will not be
32245 considered predefined.
32246
32247 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32248 record Test new flag and give diagnostic for bad component clause.
32249 (Freeze_Entity): Set alignment of array from component alignment in
32250 cases where this is safe to do.
32251
32252 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32253 arrays.
32254
32255 * cstand.adb: (Create_Standard): Set alignment of String to 1
32256
32257 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32258
32259 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32260 code in the common constrained array cases.
32261
32262 * a-storio.adb: Change implementation to avoid possible alignment
32263 problems on machines requiring strict alignment (data should be moved
32264 as type Buffer, not type Elmt).
32265
32266 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32267 killing the overflow checks which we really do not need (64-bits is
32268 enough).
32269
32270 2004-06-25 Vincent Celier <celier@gnat.com>
32271
32272 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32273 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32274 inconditionally for the main project.
32275 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32276 (Link_Executables.Check_Time_Stamps): New procedure
32277 (Link_Executables.Link_Foreign): New procedure
32278 Changes made to reduce nesting level of this package
32279 (Check): New procedure
32280 (Add_Switches): When not in quiet output, check that a switch is not
32281 the concatenation of several valid switches. If it is, issue a warning.
32282 (Build_Global_Archive): If the global archive is rebuilt, linking need
32283 to be done.
32284 (Compile_Sources): Rebuilding a library archive does not imply
32285 rebuilding the global archive.
32286 (Build_Global_Archive): New procedure
32287 (Build_Library): New name for Build_Archive, now only for library
32288 project
32289 (Check_Archive_Builder): New procedure
32290 (Create_Global_Archive_Dependency_File): New procedure
32291 (Gprmake): Call Build_Global_Archive before linking
32292 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32293 throughout.
32294 (Scan_Arg): Display the Copyright notice when -v is used
32295
32296 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32297 for gnatls.
32298
32299 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32300 COMPILE.
32301 Add new GNAT LIST qualifier /FILES=
32302 Added qualifier /DIRECTORY= to GNAT METRIC
32303 Added qualifier /FILES= to GNAT METRIC
32304 Added qualifier /FILES to GNAT PRETTY
32305
32306 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32307 to take into account both versions of the switch.
32308
32309 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32310 always be the last switch to the gcc driver. Disable switch storing so
32311 that switches automatically added by the gcc driver are not put in the
32312 ALI file.
32313
32314 * prj.adb (Project_Empty): Take into account changes in components of
32315 Project_Data.
32316
32317 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32318
32319 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32320 used. Split Boolean component Ada_Sources_Present in two Boolean
32321 components Ada_Sources_Present and Other_Sources_Present.
32322 Minor reformatting
32323
32324 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32325 instead of Sources_Present.
32326 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32327
32328 * prj-nmsc.adb: Minor reformatting
32329 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32330 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32331 Check_Ada_Naming_Scheme.
32332 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32333 throughout.
32334
32335 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32336 In_Limited.
32337 Make sure that all cycles where there is at least one "limited with"
32338 are detected.
32339 (Parse_Single_Project): New Boolean parameter In_Limited
32340
32341 * prj-proc.adb (Recursive_Check): When Process_Languages is
32342 All_Languages, call first Prj.Nmsc.Ada_Check, then
32343 Prj.Nmsc.Other_Languages_Check.
32344
32345 * prj-proc.adb (Process): Use Ada_Sources_Present or
32346 Other_Sources_Present (instead of Sources_Present) depending on
32347 Process_Languages.
32348
32349 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32350 last switches.
32351
32352 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32353 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32354 False.
32355 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32356 False.
32357
32358 * lib.ads (Disable_Switch_Storing): New procedure.
32359
32360 * make.adb: Modifications to reduce nesting level of this package.
32361 (Check_Standard_Library): New procedure
32362 (Gnatmake.Check_Mains): New procedure
32363 (Gnatmake.Create_Binder_Mapping_File): New procedure
32364 (Compile_Sources.Compile): Add switch -gnatez as the last option
32365 (Display): Never display -gnatez
32366
32367 * Makefile.generic:
32368 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32369
32370 * gnatcmd.adb (Check_Project): New function
32371 (Process_Link): New procedure to reduce nesting depth
32372 (Check_Files): New procedure to reduce the nesting depth.
32373 For GNAT METRIC, include the inherited sources in extending projects.
32374 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32375 add the list of files from the sources of the project file. If this list
32376 is too long, put it in a temp text files and use switch -files=
32377 (Delete_Temp_Config_Files): Delete the temp text file that contains
32378 a list of source for gnatpp or gnatmetric, if one has been created.
32379 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32380 in the project file is too large, create a temporary text file that
32381 list them and pass it to the tool with "-files=<temp text file>".
32382 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32383
32384 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32385 generated file is in not in Ada.
32386
32387 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32388 (Scan_Ls_Arg): Add processing for -files=
32389 (Usage): Add line for -files=
32390
32391 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32392 (Normalize_Pathname): When on Windows and the path starts with a
32393 directory separator, make sure that the resulting path will start with
32394 a drive letter.
32395
32396 * clean.adb (Clean_Archive): New procedure
32397 (Clean_Project): When there is non-Ada code, delete the global archive,
32398 the archive dependency files, the object files and their dependency
32399 files, if they exist.
32400 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32401
32402 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32403
32404 * sinfo.ads: Fix typo in comment.
32405
32406 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32407 the TSS for remote access-to-subprogram types, since these TSS are
32408 always present once the type has been analyzed.
32409 (RAS_E_Dereference): Same.
32410
32411 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32412 reference raises Bad_Attribute, mark the reference as analyzed so the
32413 node (and any children resulting from rewrites that could have occurred
32414 during the analysis that ultimately failed) is not analyzed again.
32415
32416 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32417
32418 * exp_dist.adb: Minor comment fix.
32419
32420 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32421 type is an anonymous access type, no unchecked deallocation of the
32422 allocated object can occur. If the object is controlled, attach it with
32423 a count of 1. This allows attachment to the Global_Final_List, if
32424 no other relevant list is available.
32425 (Get_Allocator_Final_List): For an anonymous access type that is
32426 the type of a discriminant or record component, the corresponding
32427 finalisation list is the one of the scope of the type.
32428
32429 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32430
32431 * sem_ch3.adb (Replace_Type): When computing the signature of an
32432 inherited subprogram, use the first subtype if the derived type
32433 declaration has no constraint.
32434
32435 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32436 before applying previous optimization. Minor code cleanup.
32437
32438 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32439 placed at the beginning of an unpacked record without explicit
32440 alignment, a slice of it will be aligned and does not need a copy when
32441 used as an actual.
32442
32443 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32444
32445 PR ada/15591
32446 PR ada/15592
32447 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32448 reference is written with expressions mimicking parameters.
32449
32450 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32451
32452 PR ada/15589
32453 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32454 STEP 2a. The constraints of a full type declaration of a derived record
32455 type are checked for conformance with those declared in the
32456 corresponding private extension declaration. The message
32457 "not conformant with previous declaration" is emitted if an error is
32458 detected.
32459
32460 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32461
32462 * g-traceb.ads: Document the need for -E binder switch in the spec.
32463
32464 * g-trasym.ads: Document the need for -E binder switch in the spec.
32465
32466 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32467
32468 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32469
32470 * snames.h, snames.ads, snames.adb: Add entry for pragma
32471 Detect_Blocking.
32472
32473 * s-rident.ads: Change reference to pragma Detect_Blocking.
32474
32475 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32476 system.ads.
32477
32478 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32479 to indicate whether pragma Detect_Blocking is active.
32480
32481 * par-prag.adb: Add entry for pragma Detect_Blocking.
32482
32483 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32484 of not handling WITH.
32485 Note that this replaces the previous update which was incorrect.
32486
32487 2004-06-25 Javier Miranda <miranda@gnat.com>
32488
32489 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32490 use-clauses to have a clean environment.
32491
32492 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32493 the installation of the use-clauses to stablish a clean environment in
32494 case of compilation of a separate unit; otherwise the call to
32495 use_one_package is protected by the barrier Applicable_Use.
32496
32497 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32498 the installation of the use-clauses to stablish a clean environment in
32499 case of compilation of a separate unit.
32500 (End_Use_Clauses): Minor comment cleanup.
32501
32502 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32503
32504 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32505
32506 2004-06-23 Richard Henderson <rth@redhat.com>
32507
32508 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32509
32510 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32511
32512 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32513 now bool instead of int.
32514 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32515 * trans.c (gnu_switch_label_stack): New function.
32516 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32517 elaboration of renamed entity returns.
32518 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32519 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32520 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32521 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32522 DECL_SIZE_UNIT and simplify variable-sized case.
32523 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32524 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32525 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32526 (build_unit_elab): Disable for now.
32527 * utils.c (mark_visited): New function.
32528 (pushdecl): Walk tree to call it for global decl.
32529 (update_pointer_to): Update all variants of pointer and ref types.
32530 Add arg to COMPONENT_REF.
32531 (convert): Likewise.
32532 Move check for converting between variants lower down.
32533 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32534 (build_allocator): Don't force type of MODIFY_EXPR.
32535 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32536 put_var_into_stack.
32537
32538 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32539
32540 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32541 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32542 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32543 subprograms.
32544 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32545 all callers changed.
32546 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32547 the way that EXIT_STMT finds the loop label.
32548 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32549 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32550 (add_stmt): Use annotate_with_locus insted of setting directly.
32551 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32552 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32553 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32554 (build_vms_descriptor): Add extra args to ARRAY_REF.
32555 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32556 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32557 New cases.
32558 (build_binary_op): Don't make explicit CONVERT_EXPR.
32559 Add extra rgs to ARRAY_REF.
32560
32561 2004-06-14 Pascal Obry <obry@gnat.com>
32562
32563 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32564 Windows. Fix minor typo.
32565
32566 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32567 which is now supported on Windows. With this implementation using the
32568 Library Project feature is no different on Windows than on UNIX.
32569
32570 2004-06-14 Vincent Celier <celier@gnat.com>
32571
32572 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32573 non-Ada sources.
32574
32575 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32576
32577 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32578 found, show the project name and the path of the previously parsed
32579 project file.
32580
32581 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32582
32583 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32584 array, avoid copying the actual before the call.
32585
32586 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32587
32588 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32589 Instead, allocate memory on worst-case alignment assumptions, and then
32590 return an aligned address within the allocated zone.
32591
32592 2004-06-14 Robert Dewar <dewar@gnat.com>
32593
32594 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32595 elab entities in predefined units in No_Run_Time_Mode.
32596 (Gen_Adainit_C): Same fix
32597 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32598 units in No_Run_Time_Mode
32599 (Gen_Elab_Calls_C): Same fix
32600
32601 * symbols-vms-alpha.adb: Minor reformatting
32602
32603 * g-debpoo.ads: Minor reformatting
32604
32605 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32606
32607 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32608
32609 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32610 working on nodes.
32611
32612 * make.adb: Minor reformatting
32613
32614 * par-ch12.adb: Minor reformatting
32615
32616 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32617
32618 * prj-strt.adb: Minor reformatting
32619
32620 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32621 be more general.
32622
32623 * sem_attr.adb: Minor reformatting
32624
32625 * sem_ch7.adb: Minor reformatting
32626
32627 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32628 for type in the same unit as the object declaration.
32629
32630 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32631 static string expressions and not just string literals.
32632 Minor reformatting
32633 (Set_Warning): Reset restriction warning flag for restriction pragma
32634 Implement pragma Profile_Warnings
32635 Implement pragma Profile (Restricted)
32636 Give obolescent messages for old restrictions and pragmas
32637
32638 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32639 Profile_Warnings.
32640
32641 * s-rident.ads: Add declarations for restrictions required by profile
32642 Restricted and profile Ravenscar.
32643
32644 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32645
32646 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32647 configuration pragmas.
32648
32649 2004-06-11 Vincent Celier <celier@gnat.com>
32650
32651 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32652 gnatsym, when symbol policy is Restricted.
32653
32654 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32655 gnatsym, when symbol policy is Restricted.
32656
32657 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32658 read the symbol file.
32659 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32660 symbol file is not in the object files. Do not create a new symbol file
32661 when symbol policy is Restricted.
32662
32663 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32664 in Scng.
32665
32666 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32667 Restricted.
32668 (Usage): Line for new switch -R
32669
32670 * make.adb (Initialize): When the platform is not VMS, add the
32671 directory where gnatmake is invoked in the front of the path, if
32672 gnatmake is invoked with directory information. Change the Scan_Args
32673 while loop to a for loop.
32674 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32675 if Depth is equal or greater than the proposed depth, there is nothing
32676 to do.
32677 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32678 instead of 0.
32679
32680 * prj.ads: Add new symbol policy Restricted.
32681
32682 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32683 with the new parameters Check_All_Labels and Case_Location.
32684
32685 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32686 (Library_Symbol_File needs to be defined).
32687
32688 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32689 and Case_Location If Check_All_Labels is True, check that all values of
32690 the string type are used, and output warning(s) if they are not.
32691
32692 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32693 and Case_Location.
32694
32695 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32696
32697 * gnat_ugn.texi: Update documentation about the library directory in
32698 Library Projects.
32699
32700 * makegpr.adb (Display_Command): In verbose mode, also display the
32701 value of the CPATH env var, when the compiler is gcc.
32702 (Initialize): Change the Scan_Args while loop to a for loop
32703 (Compile_Individual_Sources): Change directory to object directory
32704 before compilations.
32705
32706 * symbols.ads: New symbol policy Restricted.
32707
32708 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32709
32710 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32711 is now taken care of internally in the Exception_Propagation package
32712 and does not require clients assistance any more.
32713
32714 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32715 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32716 functions. Helpers to maintain a predicate required in the handling of
32717 occurrence transfer between tasks.
32718 This is now handled internally and does not require clients assistance
32719 for the setup/propagate separation anymore.
32720 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32721 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32722 document.
32723
32724 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32725 raise_after_setup, now that everything is handled internally within the
32726 setup/propagation engine.
32727
32728 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32729
32730 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32731 Add additional conditions for the case of an actual being a simple
32732 name or literal. Improve inlining by preventing the generation
32733 of temporaries with a short lifetime (one use).
32734
32735 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32736
32737 PR ada/15587
32738 * einfo.ads: Minor comment updates for Has_Completion and
32739 E_Constant list of flags.
32740
32741 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32742 and constant redeclarations now set the Has_Completion flag of their
32743 defining identifiers.
32744
32745 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32746 Inspect_Deferred_Constant_Completion.
32747 Used to detect private deferred constants that have not been completed
32748 either by a constant redeclaration or pragma Import. Emits error message
32749 "constant declaration requires initialization expression".
32750
32751 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32752 completes a deferred constant.
32753
32754 2004-06-11 Geert Bosch <bosch@gnat.com>
32755
32756 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32757
32758 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32759 calculating exponent for scaling denormal numbers.
32760 (Leading_Part): Properly raise Constraint_Error for zero or negative
32761 Adjustment.
32762 (Remainder): Properly raise Constraint_Error for zero divisor.
32763
32764 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32765
32766 * sem_util.adb: Minor reformatting.
32767
32768 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32769 dereference when accessing the entry parameter record.
32770 (Check_Array_Type): Always check for possible implicit dereference.
32771 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32772 Abort if a pointer is still present (denoting that an implicit
32773 dereference was left in the tree by the front-end).
32774
32775 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32776 dereference when accessing the entry parameter record.
32777 (Check_Array_Type): Always check for possible implicit dereference.
32778 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32779 Abort if a pointer is still present (denoting that an implicit
32780 dereference was left in the tree by the front-end).
32781
32782 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
32783
32784 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32785 message, like the compiler itself does. Easier to parse the output.
32786
32787 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32788
32789 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32790 be base names, and not includes directories.
32791
32792 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32793
32794 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32795 so that dependencies are properly taken into account by make.
32796
32797 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32798
32799 PR ada/15622
32800 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32801 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32802
32803 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
32804
32805 * Makefile.in (install-gnatlib): install target-specific run-time files.
32806
32807 * Make-lang.in: Remove obsolete targets.
32808
32809 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32810
32811 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32812 specification, to catch misuses of program unit names.
32813
32814 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32815 superfluous conversions in an instance.
32816
32817 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32818
32819 PR ada/15403
32820 * sem_ch12.adb (Save_References): If operator node has been folded to
32821 enumeration literal, associated_node must be discarded.
32822
32823 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32824
32825 * s-stchop-vxworks.adb: Add required pragma Convention to
32826 Task_Descriptor because it is updated by a C function.
32827
32828 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32829
32830 PR ada/15568
32831 * Makefile.in: Remove target specific SO_OPT on IRIX
32832
32833 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32834
32835 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32836 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32837 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32838 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32839 (STMT_STMT, USE_STMT): New statement codes.
32840 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32841 * ada-tree.h: Reflect above changes.
32842 (struct tree_loop_id): Deleted.
32843 (union lang_tree_node, struct lang_decl, struct lang_type):
32844 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32845 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32846 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32847 (IS_ADA_STMT): New macro.
32848 * decl.c (annotate_decl_with_node): New function.
32849 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32850 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32851 Call add_stmt_with_node to do needed assignments.
32852 Add call to update setjmp buffer directly, not via EXPR_STMT.
32853 (maybe_variable): Argment GNAT_NODE deleted.
32854 * gigi.h (maybe_variable): Likewise.
32855 (make_transform, add_stmt_with_node, set_block_for_group): New.
32856 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32857 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32858 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32859 (set_lineno, set_lineno_from_sloc): Likewise.
32860 (record_code_position, insert_code_for): Likewise.
32861 (gnat_poplevel): Now returns void.
32862 (end_subprog_body): Now takes argument.
32863 * misc.c (cgraph.h, tree-inline.h): New includes.
32864 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32865 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32866 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32867 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32868 (gnat_parse_file): Don't set immediate_size_expand.
32869 Call cgraph functions.
32870 (gnat_expand_expr): Remove most cases.
32871 (record_code_position, insert_code_for): Remove from here.
32872 * trans.c (toplev.h, tree-gimple.h): Now included.
32873 (discard_file_names): Deleted.
32874 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32875 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32876 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32877 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32878 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32879 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32880 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32881 (set_block_for_group, add_stmt_list): Likewise.
32882 (start_stmt_group): Renamed from start_block_stmt.
32883 (end_stmt_group): Likewise, from end_block_stmt.
32884 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32885 (gigi): Don't set discard_file_names or call set_lineno.
32886 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32887 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32888 Numerous changes throughout to reflect new names and complete
32889 function-at-a-time implementation.
32890 (gnat_expand_stmt): Delete or comment out all cases.
32891 (process_inlined_subprograms): Use add_stmt.
32892 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32893 call set_lineno; also remove unneeded block handling.
32894 (process_type): Remove unneeded block handling.
32895 (build_unit_elab): Remove calls to deleted functions.
32896 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32897 (tree-dump.h): Likewise.
32898 (struct ada_binding_level): Add field jmpbuf_decl.
32899 (gnat_define_builtin, gnat_install_builtins): New.
32900 (gnat_gimplify_function, gnat_finalize): Likewise.
32901 (gnat_poplevel): No longer return BLOCK, set it instead.
32902 Remove code dealing with nested functions.
32903 (gnat_init_decl_processing): Also set size_type_node.
32904 Call gnat_install_builtins.
32905 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32906 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32907 Remove special-case for "main".
32908 (end_subprog_body): Add arg and rework for tree-ssa.
32909 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32910 Add case for BOOLEAN_TYPE.
32911 * utils2.c (rtl.h): Now include.
32912 (build_call_raise): Test Debug_Flag_NN directly.
32913 (build_call_alloc_dealloc): Don't use local stack allocation for now.
32914 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32915 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32916
32917 2004-06-07 Robert Dewar <dewar@gnat.com>
32918
32919 * a-direct.ads, einfo.ads: Minor comment updates
32920
32921 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32922 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32923 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32924 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32925 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32926
32927 * s-interr-sigaction.adb: Remove unreferenced variable
32928 (Attached_Interrupts). Minor reformatting.
32929 Avoid use of variable I (replace by J).
32930
32931 * par-ch10.adb: Fix text of one error message
32932
32933 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32934 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32935 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32936 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32937 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32938 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32939 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32940 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32941 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32942 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32943 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32944 2005 support.
32945
32946 2004-06-07 Doug Rupp <rupp@gnat.com>
32947
32948 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32949
32950 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32951
32952 * mlib-tgt-vms-ia64.adb: New file.
32953
32954 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32955 Add mlib-tgt-vms-ia64.adb
32956 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32957 Move to alpha specific ifeq section.
32958 Add VMS specific versions of symbols.adb
32959 Renaming of 5q vms files.
32960
32961 * 5qsystem.ads renamed to system-vms_64.ads.
32962
32963 2004-06-07 Vincent Celier <celier@gnat.com>
32964
32965 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32966 explain that when a time of day corresponding to the non existing hour
32967 on the day switching to DST is specified, Split may return a different
32968 value for Seconds.
32969
32970 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32971 to GNAT PRETTY.
32972
32973 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32974 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32975
32976 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32977 to False.
32978 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32979 the linking options.
32980 (Build_Library.Check_Libs): On VMS, if there is a dependency on
32981 g-trasym.ads, set Gtrasymobj_Needed to True.
32982
32983 * prj-attr.adb: Add new package Metrics for gnatmetric
32984
32985 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32986 canonical case to take into account files with upper case characters on
32987 Windows.
32988 (Ada_Check): Load the reference symbol file name in the name buffer to
32989 check it, not the symbol file name.
32990
32991 * snames.ads, snames.adb: Add standard name Metrics (name of project
32992 file package for gnatmetric).
32993
32994 * vms_conv.ads: Add Metric to Comment_Type
32995
32996 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32997
32998 * vms_data.ads: Add qualifiers for GNAT METRIC
32999
33000 * makegpr.adb (Link_Executables): Take into account the switches
33001 specified in package Linker of the main project.
33002
33003 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
33004
33005 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
33006 the index of the last element is Units.Last, not Units.Table'Last
33007 (which is usually not a valid index within the actually allocated
33008 storage for the table).
33009
33010 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
33011 determines whether to generate a call to a checked storage pool
33012 Dereference action.
33013 Generate such a call only for a dereference that either comes from
33014 source, or is the result of rewriting a dereference that comes from
33015 source.
33016
33017 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
33018
33019 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
33020
33021 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
33022
33023 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
33024 file level, elaborate the stride for inner dimensions in alignment
33025 units, not bytes.
33026
33027 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
33028 in a comment.
33029
33030 2004-06-07 Javier Miranda <miranda@gnat.com>
33031
33032 * exp_ch6.adb: Correct wrong modification in previous patch
33033
33034 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
33035
33036 * g-trasym.ads: Corrected comment to properly reflect level of support
33037 on VMS.
33038
33039 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
33040
33041 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
33042 includes case of a variable referenced on the left hand side of an
33043 assignment, therefore remove redundant code. Variables and prefixes of
33044 indexed or selected components are now marked as referenced on left
33045 hand side. Warnings are now properly emitted when variables or prefixes
33046 are assigned but not read.
33047
33048 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
33049 left hand side referenced variables. Private access types do not
33050 produce the warning "variable ... is assigned but never read".
33051 Add also additional checks to left hand side referenced variables.
33052 Aliased, renamed objects and access types do not produce the warning
33053 "variable ... is assigned but never read" since other entities may read
33054 the memory location.
33055
33056 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
33057
33058 * Makefile.in: In the powerpc/vxworks-specific section, restore
33059 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
33060 by mistake).
33061
33062 2004-06-07 Ed Schonberg <schonberg@gnat.com>
33063
33064 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
33065 predefined operators.
33066 Removes spurious type errors from g-trasym-vms.adb.
33067
33068 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
33069 distinct from the operator appearing in the source, call appropriate
33070 routine to insert conversions when needed, and complete resolution of
33071 node.
33072 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
33073 interpretations for rewritten right operand.
33074 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
33075 the other operand is overloaded and the context is a type conversion.
33076
33077 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33078
33079 * ada-tree.def (BLOCK_STMT): Now has two operands.
33080 (BREAK_STMT): New.
33081
33082 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
33083
33084 * gigi.h: (gnat_poplevel): Now returns a tree.
33085
33086 * trans.c (end_block_stmt): Add arg; all callers changed.
33087 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
33088 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
33089 (add_stmt): Set TREE_TYPE.
33090 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
33091 (gnat_expand_stmt, case BREAK_STMT): New case.
33092
33093 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
33094
33095 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
33096
33097 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
33098 procedure Set_Stack_Size that is not needed.
33099
33100 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
33101
33102 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
33103 used for gnatpp input file and for the files upon which it depends
33104
33105 2004-06-07 Ben Brosgol <brosgol@gnat.com>
33106
33107 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33108
33109 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
33110
33111 * gnatvsn.ads: Bump version numbers appropriately.
33112 Add new build type.
33113
33114 2004-06-07 Pascal Obry <obry@gnat.com>
33115
33116 * gnat_ugn.texi: Improve comments about imported names and link names
33117 on Windows. Add a note about the requirement to use -k gnatdll's option
33118 when working with a DLL which has stripped stdcall symbols (no @nn
33119 suffix).
33120
33121 2004-05-27 Vincent Celier <celier@gnat.com>
33122
33123 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
33124 COMMENTS_LAYOUT=UNTOUCHED
33125
33126 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
33127 symbols-vms-alpha.adb
33128
33129 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
33130
33131 * sem.ads: Clarify documentation on checks suppression.
33132
33133 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
33134
33135 2004-05-27 Ed Schonberg <schonberg@gnat.com>
33136
33137 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
33138 the case of multiple derivations.
33139 (Is_Object_Reference): For a selected component, verify that the prefix
33140 is itself an object and not a value.
33141
33142 * sem_ch12.adb (Same_Instantiated_Constant): New name for
33143 Same_Instantiated_Entity.
33144 (Same_Instantiated_Variable): Subsidiary to
33145 Check_Formal_Package_Instance, to recognize actuals for in-out generic
33146 formals that are obtained from a previous formal package.
33147 (Instantiate_Subprogram_Body): Emit proper error when
33148 generating code and the proper body of a stub is missing.
33149
33150 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
33151 has a universal interpretation, do the disambiguation here.
33152
33153 * exp_ch4.adb (Expand_N_Type_Conversion,
33154 Expand_N_Unchecked_Type_Conversion): Special handling when target type
33155 is Address, to avoid typing anomalies when Address is a visible integer
33156 type.
33157
33158 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
33159 to determine whether a subprogram should not be marked Pure, even when
33160 declared in a pure package.
33161
33162 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
33163
33164 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
33165
33166 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
33167 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
33168 Update the documentation about the Ravenscar profile, following the
33169 definition found in AI-249.
33170
33171 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33172 setting the Profile (Ravenscar). This must be done in addition to
33173 setting the required restrictions.
33174
33175 * rtsfind.ads: Add the set of operations defined in package
33176 Ada.Interrupts.
33177
33178 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33179 restriction.
33180
33181 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33182
33183 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33184 if -gnatc or -gnats is passed.
33185
33186 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33187
33188 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33189 a significant reference. Warnings are now properly emitted when a
33190 discriminated type is not referenced.
33191
33192 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33193 record representation clause or record type discriminant does not
33194 produce a reference to its corresponding entity. Warnings are now
33195 properly emitted when deferred constants and record types are not
33196 referenced.
33197
33198 2004-05-27 Geert Bosch <bosch@gnat.com>
33199
33200 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33201 Fixes ACATS Annex G tests.
33202
33203 2004-05-27 Robert Dewar <dewar@gnat.com>
33204
33205 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33206 handling WITH
33207
33208 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33209
33210 * s-interr.adb (Server_Task): Take into account case of early return
33211 from sigwait under e.g. linux.
33212
33213 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33214
33215 * gnat_ugn.texi: Add description for the new gnatpp options:
33216 -rnb - replace the original source without creating its backup copy
33217 -c0 - do not format comments
33218
33219 2004-05-24 Geert Bosch <bosch@gnat.com>
33220
33221 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33222 with 192 bits of precision, sufficient to reduce a double-extended
33223 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33224 in -2.0**32 .. 2.0**32.
33225 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33226 reduction by the processor, which only uses a 68-bit approximation of
33227 Pi.
33228 (Tan): Always reduce arguments and compute function either using
33229 the processor's fptan instruction, or by dividing sin and cos as needed.
33230
33231 2004-05-24 Doug Rupp <rupp@gnat.com>
33232
33233 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33234 gcc error on 32/64 bit VMS.
33235
33236 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33237
33238 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33239 since this is what we get for stack overflows although not documented
33240 as such.
33241 Document the issues which may require adjustments to our signal
33242 handlers.
33243
33244 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33245
33246 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33247 enclosing dynamic scope if the instantiation is within a generic unit.
33248
33249 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33250
33251 * exp_dbug.ads: Fix typo.
33252
33253 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33254 Rename it to its proper name: system-linux-ia64.ads
33255 (stamp-gnatlib1): Remove extra target specific run time files when
33256 setting up the rts directory.
33257
33258 2004-05-24 Javier Miranda <miranda@gnat.com>
33259
33260 * einfo.ads, einfo.adb (Limited_Views): Removed.
33261 (Limited_View): New attribute that replaces the previous one. It is
33262 now a bona fide package with the limited-view list through the
33263 first_entity and first_private attributes.
33264
33265 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33266 limited-private-with clause.
33267 (Install_Limited_Withed_Unit): Install the private declarations of a
33268 limited-private-withed package. Update the installation of the shadow
33269 entities according to the new structure (see Build_Limited_Views)
33270 (Build_Limited_Views): Replace the previous implementation of the
33271 limited view by a package entity that references the first shadow
33272 entity plus the first shadow private entity (required for limited-
33273 private-with clause)
33274 (New_Internal_Shadow_Entity): Code cleanup.
33275 (Remove_Limited_With_Clause): Update the implementation to undo the
33276 new work carried out by Build_Limited_Views.
33277 (Build_Chain): Complete documentation.
33278 Replace Ada0Y by Ada 0Y in comments
33279 Minor reformating
33280
33281 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33282 types the level of accessibility depends on the enclosing type
33283 declaration.
33284
33285 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33286 entities. Complete documentation of previous change.
33287
33288 2004-05-24 Robert Dewar <dewar@gnat.com>
33289
33290 * namet.adb: Minor reformatting
33291 Avoid use of name I (replace by J)
33292 Minor code restructuring
33293
33294 * sem_ch6.adb: Minor reformatting
33295
33296 * lib-writ.adb: Do not set restriction as active if this is a
33297 Restriction_Warning case.
33298
33299 * sem_prag.adb: Reset restriction warning flag if real pragma
33300 restriction encountered.
33301
33302 * s-htable.adb: Minor reformatting
33303 Change rotate count to 3 in Hash (improves hash for small strings)
33304
33305 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33306
33307 * gnat_ugn.texi: Add new section of documentation "Code Generation
33308 Control", which describes the use of -m switches.
33309
33310 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33311
33312 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33313 through the DECL_INITIAL for renamed variables.
33314
33315 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33316
33317 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33318
33319 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33320
33321 * exp_dbug.ads: Correct comments concerning handling of overloading,
33322 since we no longer use $ anymore.
33323
33324 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33325
33326 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33327 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33328 with illegal subunits.
33329
33330 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33331
33332 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33333 body with front-end inlining enabled, check whether an inline pragma
33334 appears immediately after the body and applies to it.
33335
33336 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33337 enabled and the pragma appears after the body of the subprogram.
33338
33339 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33340
33341 Part of function-at-a-time conversion
33342
33343 * misc.c (adjust_decl_rtl): Deleted.
33344 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33345 Define.
33346
33347 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33348 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33349 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33350
33351 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33352 when making a decl.
33353 (gnat_to_gnu_entity): Likewise.
33354 Use add_stmt to update setjmp buffer.
33355 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33356 flush_addressof.
33357 No longer call adjust_decl_rtl.
33358 (DECL_INIT_BY_ASSIGN_P): New macro.
33359 (DECL_STMT_VAR): Likewise.
33360
33361 * trans.c (gigi): Call start_block_stmt to make the outermost
33362 BLOCK_STMT.
33363 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33364 Call start_block_stmt and end_block_stmt temporarily.
33365 Use gnat_expand_stmt instead of expand_expr_stmt.
33366 (add_decl_stmt): New function.
33367 (tree_transform): Call it.
33368 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33369 (end_block_stmt): Set type and NULL_STMT.
33370 (gnat_expand_stmt): Make recursize call instead of calling
33371 expand_expr_stmt.
33372 (gnat_expand_stmt, case DECL_STMT): New case.
33373 (set_lineno_from_sloc): Do nothing if global.
33374 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33375 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33376 (build_block_stmt): Call them.
33377 (gnat_to_code): Don't expand NULL_STMT.
33378 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33379 args.
33380 (tree_transform): Likewise.
33381 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33382 (gnat_expand_stmt, case NULL_STMT): New case.
33383 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33384 IF_STMT_TRUE.
33385
33386 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33387 TREE_ADDRESSABLE.
33388
33389 * utils.c (create_var_decl): Do not call expand_decl or
33390 expand_decl_init.
33391 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33392 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33393 here.
33394 (struct e_stack): Add chain_next to GTY.
33395 (struct binding_level): Deleted.
33396 (struct ada_binding_level): New struct.
33397 (free_block_chain): New.
33398 (global_binding_level, clear_binding_level): Deleted.
33399 (global_bindings_p): Rework to see if no chain.
33400 (kept_level_p, set_block): Deleted.
33401 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33402 new data structure and work directly on BLOCK node.
33403 (gnat_poplevel): Similarly.
33404 (get_decls): Look at BLOCK_VARS.
33405 (insert_block): Work directly on BLOCK node.
33406 (block_has_var): New function.
33407 (pushdecl): Rework for new binding structures.
33408 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33409 poplevel.
33410 (build_subprog_body): Likewise.
33411 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33412
33413 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33414
33415 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33416 (DECL_STMT_VAR): Likewise.
33417
33418 2004-05-17 Robert Dewar <dewar@gnat.com>
33419
33420 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33421 procedure
33422
33423 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33424 of restriction synonyums by using
33425 Restrict.Process_Restriction_Synonyms.
33426
33427 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33428
33429 * s-restri.ads (Tasking_Allowed): Correct missing comment
33430
33431 * s-rident.ads: Add entries for restriction synonyms
33432
33433 * ali.adb: Fix some problems with badly formatted ALI files that can
33434 result in infinite loops.
33435
33436 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33437 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33438 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33439 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33440 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33441 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33442 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33443 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33444 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33445 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33446 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33447 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33448 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33449 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33450 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33451 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33452 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33453 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33454 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33455 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33456 to Task_Id (minor cleanup).
33457
33458 2004-05-17 Vincent Celier <celier@gnat.com>
33459
33460 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33461 directory separator.
33462
33463 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33464 project being extended, if Languages is not declared in extending
33465 project.
33466
33467 2004-05-17 Javier Miranda <miranda@gnat.com>
33468
33469 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33470 limited view of a visible sibling.
33471
33472 2004-05-14 Robert Dewar <dewar@gnat.com>
33473
33474 * gnat_ugn.texi: Minor change to -gnatS documentation
33475
33476 * sprint.adb: Remove some instances of Assert (False) and for this
33477 purpose replace them by output of a ??? string.
33478
33479 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33480 Assert (False).
33481
33482 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33483 flag processing. This was suppressing required dependencies in
33484 No_Run_Time mode and is not needed since the binder does not generate
33485 references for things in libgnat anyway.
33486
33487 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33488 warning.
33489
33490 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33491
33492 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33493 resolver library.
33494
33495 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33496 action for the case of an actual parameter in an init proc call.
33497
33498 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33499
33500 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33501 subtype, check visible entities in base type.
33502
33503 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33504 actions if the object is a renaming.
33505
33506 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33507 Check_Formal_Package_Instance, to determine more precisely when the
33508 formal and the actual denote the same entity.
33509
33510 2004-05-14 Javier Miranda <miranda@gnat.com>
33511
33512 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33513
33514 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33515 corresponding to a private_with must be removed from visibility; it
33516 will be made visible later, just before we analyze the private part of
33517 the package.
33518 (Check_Private_Child_Unit): Allow private_with clauses in public
33519 siblings.
33520 (Install_Siblings): Make visible the private entities of private-withed
33521 siblings.
33522 (Install_Withed_Unit): Do not install the private withed unit if we
33523 are compiling a package declaration and the Private_With_OK flag was
33524 not set by the caller. These declarations will be installed later,
33525 just before we analyze the private part of the package.
33526
33527 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33528 during the evaluation of the expression that initializes the object,
33529 decorate it with the expected type to avoid cascade errors.
33530 Code cleanup.
33531
33532 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33533 subprogram we have to install the private_with clauses after its
33534 specification has been analyzed (as documented in AI-262.TXT).
33535
33536 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33537 current compilation unit has a private with on a given entity.
33538 (Find_Direct_Name): Detect the Beaujolais problem described in
33539 AI-262.TXT
33540
33541 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33542 provides the functionality of the function Is_Ancestor that was
33543 previously available in sem_ch10. It has been renamed to avoid
33544 overloading.
33545
33546 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33547
33548 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33549
33550 * utils.c (build_vms_descriptor): Use SImode pointers.
33551
33552 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33553
33554 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33555
33556 2004-05-14 GNAT Script <nobody@gnat.com>
33557
33558 * Make-lang.in: Makefile automatically updated
33559
33560 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33561
33562 Renaming of target specific files for clarity
33563
33564 * Makefile.in: Rename GNAT target specific files.
33565
33566 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33567 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33568 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33569 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33570 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33571 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33572 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33573 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33574 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33575 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33576 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33577 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33578 51osinte.adb, 51osinte.ads, 51system.ads,
33579 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33580 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33581 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33582 56tpopsp.adb, 57system.ads, 58system.ads,
33583 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33584 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33585 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33586 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33587 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33588 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33589 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33590 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33591 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33592 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33593 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33594 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33595 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33596 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33597 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33598 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33599 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33600 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33601 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33602 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33603 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33604 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33605 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33606 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33607 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33608 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33609 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33610 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33611 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33612 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33613 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33614 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33615 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33616 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33617 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33618 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33619 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33620 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33621 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33622 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33623
33624 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33625 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33626 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33627 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33628 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33629 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33630 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33631 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33632 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33633 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33634 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33635 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33636 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33637 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33638 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33639 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33640 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33641 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33642 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33643 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33644 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33645 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33646 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33647 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33648 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33649 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33650 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33651 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33652 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33653 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33654 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33655 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33656 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33657 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33658 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33659 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33660 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33661 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33662 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33663 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33664 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33665 s-osinte-vms.ads, s-osinte-vxworks.adb,
33666 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33667 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33668 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33669 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33670 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33671 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33672 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33673 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33674 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33675 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33676 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33677 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33678 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33679 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33680 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33681 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33682 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33683 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33684 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33685 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33686 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33687 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33688 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33689 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33690 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33691 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33692 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33693 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33694 system-irix-o32.ads, system-linux-x86_64.ads,
33695 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33696 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33697 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33698 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33699 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33700 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33701 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33702 above.
33703
33704 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33705
33706 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33707
33708 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33709
33710 Merge from tree-ssa-20020619-branch.
33711
33712 * config-lang.in (boot_language, build_by_default): Set
33713 to no.
33714 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33715 (max_size): Add static chain op for call_expr.
33716
33717 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33718
33719 PR target/15331
33720 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33721
33722 2004-05-11 Roger Sayle <roger@eyesopen.com>
33723
33724 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33725 COND_EXPR.
33726
33727 2004-05-10 Doug Rupp <rupp@gnat.com>
33728
33729 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33730 system.aux_dec.
33731
33732 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33733
33734 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33735
33736 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33737 Fixes undefined symbols in IA64 gnatlib.
33738
33739 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33740
33741 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33742 Short_Address). This will be moved to system.auxdec.
33743
33744 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33745
33746 * sem_util.adb: Replace test for presence of a node that is always
33747 present with a call to Discard_Node.
33748
33749 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33750 Analyze on the library unit node after generation of distribution stub
33751 constructs. The call was a no-op because Unit_Node has already been
33752 Analyzed, and the tree fragments for the distribution stubs are
33753 analyzed as they are inserted in Exp_Dist.
33754 Update comment regarding to distribution stubs to reflect that we
33755 do not generate stub in separate files anymore.
33756
33757 * einfo.ads: Clarify the fact that a tagged private type has the
33758 E_Record_Type_With_Private Ekind.
33759
33760 * erroutc.adb: Minor reformatting
33761
33762 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33763 values if line length is increased using -gnatyM (noticed during code
33764 reading).
33765
33766 * eval_fat.adb: Minor reformatting
33767 Put spaces around exponentiation operator
33768
33769 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33770
33771 PR ada/15005
33772 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33773 has been rewritten as an explicit dereference, retrieve type of
33774 original node to check for possibly unconstrained record type.
33775
33776 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33777
33778 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33779 overriding, use the operation of the parent unconditionally.
33780
33781 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33782 operation when either operand is a literal, to avoid further
33783 ambiguities.
33784
33785 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33786 overridden by a previous explicit declaration, mark the previous entity
33787 as overriding.
33788
33789 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33790 Is_Visibly_Controlled, to determine whether a declaration of a
33791 primitive control operation for a derived type overrides an inherited
33792 one. Add warning if the explicit declaration does not override.
33793
33794 2004-05-10 Vincent Celier <celier@gnat.com>
33795
33796 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33797 some cases when the sources are no longer present.
33798
33799 * make.adb (Collect_Arguments): Fail if an external source, not part
33800 of any project need to be compiled, when switch -x has not been
33801 specified.
33802
33803 * makeusg.adb: Document new switch -x
33804
33805 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33806 defaulted to False.
33807
33808 * switch-m.adb (Scan_Make_Switches): New switch -x
33809
33810 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33811 gnatmake switch -x.
33812
33813 * gnat_ugn.texi: Document new gnatmake switch -x
33814
33815 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33816
33817 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33818
33819 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33820 (process_attributes): Likewise.
33821
33822 2004-05-10 Joel Brobecker <brobecker@gnat.com>
33823
33824 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33825
33826 2004-05-10 Robert Dewar <dewar@gnat.com>
33827
33828 * gnat_ugn.texi: Document that for config pragma files, the maximum
33829 line length is always 32767.
33830
33831 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33832 literals is now allowed.
33833
33834 * gnat-style.texi: Remove statement about splitting long lines before
33835 an operator rather than after, since we do not follow this rule at all.
33836 Clarify rule (really lack of rule) for spaces around exponentiation
33837
33838 * sem_elim.adb: Allow concatenation of string literals as well as a
33839 single string literal for pragma arguments.
33840
33841 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33842
33843 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33844 written for append case.
33845
33846 * frontend.adb: Changes to avoid checking max line length in config
33847 pragma files.
33848
33849 * g-os_lib.ads: Minor reformatting
33850
33851 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33852 wrong in any case. Instead use standard value. Noticed during code
33853 reading.
33854
33855 * opt.ads (Max_Line_Length): New field, used to implement removal of
33856 limitation on length of lines when scanning config pragma files.
33857
33858 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33859 makeutl.ads, makeutl.adb: Minor reformatting
33860
33861 * scn.adb: Do not check line length while scanning config pragma files
33862 Do not check line length while scanning out license information
33863
33864 * scng.adb: Changes to avoid line length checks while parsing config
33865 pragma files.
33866
33867 2004-05-10 GNAT Script <nobody@gnat.com>
33868
33869 * Make-lang.in: Makefile automatically updated
33870
33871 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33872
33873 * osint.adb (Find_Program_Name): Fix handling of VMS version
33874 number.
33875
33876 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
33877
33878 * g-os_lib.ads (Invalid_Time): New constant
33879
33880 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33881 return OS_Time instead of time_t to match what is imported by Ada.
33882 Now return -1 if the file doesn't exist, instead of a random value
33883
33884 2004-05-05 Robert Dewar <dewar@gnat.com>
33885
33886 * usage.adb: Add line for -gnatR?s switch
33887
33888 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33889
33890 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33891 and for Match (Data_First, Data_last)
33892
33893 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33894 written when we are dealing with multi-unit files.
33895
33896 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
33897
33898 * Makefile.in: Remove unused targets and variables.
33899
33900 2004-05-05 Vincent Celier <celier@gnat.com>
33901
33902 * switch-m.adb: New gnatmake switch -eI
33903
33904 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33905 of new gnatmake switch -eInnn.
33906
33907 * makegpr.adb: Take into account new parameters Index and Src_Index in
33908 Prj.Util.
33909
33910 * clean.adb: Implement support for multi-unit sources, including new
33911 switch -i.
33912
33913 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33914 Src_Index.
33915
33916 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33917 (Extract_From_Q): New out parameter Index
33918 (Mark, Is_Marked): Subprograms moved to Makeutl
33919 (Switches_Of): New parameter Source_Index
33920 (Add_Switch): New parameter Index
33921 (Check): New parameter Source_Index
33922 (Collect_Arguments): New parameter Source_Index
33923 (Collect_Arguments_And_Compile): New parameter Source_Index
33924 (Compile): New parameter Source_Index
33925 Put subprograms in alphabetical order
33926 Add support for multi-source sources, including in project files.
33927
33928 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33929 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33930 Make.
33931
33932 * makeusg.adb: New gnatmake switch -eInnn
33933
33934 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33935 Prj.Util.Value_Of.
33936
33937 * opt.ads (Main_Index): New variable, defaulted to 0.
33938
33939 * osint.ads, osinte.adb (Add_File): New parameter Index
33940 (Current_Source_Index): New function
33941
33942 * prj.adb: Take into account new components Index and Src_Index
33943
33944 * prj.ads (String_Element): New component Index
33945 (Variable_Value): New component Index
33946 (Array_Element): New component Src_Index
33947
33948 * prj-attr.adb: Indicate that optional index may be specified for
33949 attributes Main, Executable, Spec, Body and some of Switches.
33950
33951 * prj-attr.ads (Attribute_Kind): New values for optional indexes
33952 (Attribute_Record): New component Optional_Index
33953
33954 * prj-com.ads (File_Name_Data): New component Index
33955
33956 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33957
33958 * prj-env.adb (Put): Output optional index
33959
33960 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33961 attributes Spec and Body.
33962
33963 * prj-nmsc.adb: Process optional indexes
33964
33965 * prj-pp.adb: Ouput "at" for optional indexes
33966
33967 * prj-proc.adb: Take into account optional indexes
33968
33969 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33970 Optional_Index. For string literal,
33971 process optional index when Optional_Index is True.
33972 (Parse_Expresion): New Boolean parameter Optional_Index
33973
33974 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33975 (Set_Source_Index_Of): New procedure
33976
33977 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33978 index.
33979
33980 * prj-util.ads (Executable_Of): New parameter Index
33981 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33982 New parameter Src_Index, defaulted to 0.
33983
33984 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33985
33986 PR ada/15257
33987 * sem_ch3.adb (Access_Definition): If this is an access parameter
33988 whose designated type is imported through a limited_with clause, do
33989 not add the enclosing subprogram to the list of private dependents of
33990 the type.
33991
33992 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33993
33994 PR ada/15258
33995 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33996 a limited_with clause, and the other is its non-limited view.
33997
33998 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
33999
34000 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
34001
34002 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
34003 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
34004 Stand.Boolean_Literals to produce references to entities
34005 Standard_False and Standard_True from compile-time computed boolean
34006 values.
34007
34008 * stand.ads (Boolean_Literals): New variable, provides the entity
34009 values for False and True, for use by the expander.
34010
34011 2004-05-05 Doug Rupp <rupp@gnat.com>
34012
34013 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
34014 5vinmaop.adb: Unchecked convert Short_Address vice Address
34015
34016 * adaint.c, raise.c: Caste CRTL function return value
34017 to avoid gcc error on 32/64 bit IVMS.
34018
34019 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
34020 target = IA64/VMS.
34021
34022 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
34023
34024 * 5qsystem.ads (Address): Declare as Long_Integer
34025 (Short_Address): Declare as 32 bit subtype of Address
34026 Declare abstract address operations to avoid gratuitous ambiguities.
34027
34028 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
34029
34030 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
34031 instead of the old Boolean_Entry_Barriers.
34032 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
34033
34034 2004-05-05 GNAT Script <nobody@gnat.com>
34035
34036 * Make-lang.in: Makefile automatically updated
34037
34038 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34039
34040 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
34041
34042 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
34043
34044 PR ada/15152
34045 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
34046 alone. Replacing object references by literals is inappropriate in a
34047 so low level context.
34048
34049 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
34050
34051 * a-exexpr.adb: Add comments
34052
34053 2004-05-03 Joel Brobecker <brobecker@gnat.com>
34054
34055 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
34056 declare the Ancestor_Tags array in Type_Specific_Data with a small size
34057 without risking a bounds check error when accessing one of its
34058 components.
34059 (Type_Specific_Data): Define Ancestor_Tags as a small array.
34060 This prevents us from hitting a limitation during the debug info
34061 generation when using stabs.
34062
34063 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
34064 small array.
34065 This prevents us from hitting a limitation during the debug info
34066 generation when using stabs.
34067
34068 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
34069
34070 lang-specs.h: Remove -gnatz* from specs.
34071
34072 2004-05-03 Vincent Celier <celier@gnat.com>
34073
34074 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
34075
34076 * Make-lang.in, Makefile.in: Add gprmake
34077
34078 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
34079
34080 * sem_aggr.adb: Fix typo in comment.
34081
34082 2004-05-03 Robert Dewar <dewar@gnat.com>
34083
34084 * make.adb: Minor reformatting
34085
34086 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
34087
34088 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
34089 so that it works when address is not a private type.
34090
34091 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
34092 properly with rewritten unchecked conversions. This prevents
34093 order-of-elaboration issues that can otherwise arise.
34094 (Minimum_Size): Don't check size of access types under VMS
34095
34096 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
34097 interpretations of integer literals as type System.Address.
34098
34099 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
34100 (Is_Descendent_Of): New function
34101
34102 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
34103
34104 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34105 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
34106 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
34107
34108 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
34109 of the old Max_Entry_Queue_Depth.
34110
34111 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
34112 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
34113 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
34114
34115 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
34116 New entry for proper handling of Max_Entry_Queue_Depth.
34117 New entry for proper handling of No_Dynamic_Interrupts.
34118
34119 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
34120 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34121 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
34122 the GNAT specific restriction Max_Entry_Queue_Depth.
34123 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
34124 the GNAT specific restriction No_Dynamic_Interrupts.
34125
34126 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
34127 instead of the old Boolean_Entry_Barriers.
34128 Use the new restriction No_Dynamic_Attachment instead of the old
34129 No_Dynamic_Interrupts.
34130
34131 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
34132 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
34133
34134 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
34135 of the old Max_Entry_Queue_Depth.
34136
34137 2004-05-03 GNAT Script <nobody@gnat.com>
34138
34139 * Make-lang.in: Makefile automatically updated
34140
34141 2004-04-29 Ed Schonberg <schonberg@gnat.com>
34142
34143 * checks.adb (Enable_Range_Check): If the prefix of an index component
34144 is an access to an unconstrained array, perform check unconditionally.
34145
34146 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34147
34148 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
34149 Component_Clause.
34150
34151 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
34152
34153 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
34154 alternate stack setting. There was no support for the tasking cases
34155 and the changes eventually caused a number of side-effect failures in
34156 the non-tasking case too.
34157
34158 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
34159
34160 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
34161 -gnats is passed.
34162
34163 2004-04-29 Vincent Celier <celier@gnat.com>
34164
34165 * make.adb (Gnatmake): Increase max size of argument array for
34166 gnatbind for the potential addition of -F.
34167 If there are Stand-Alone Library projects, invoke gnatbind with -F to
34168 be sure that elaboration flags will be checked.
34169
34170 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34171
34172 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34173
34174 * sem_warn.adb (Check_References): Move '<access-variable> may be
34175 null' warning out of under Warn_On_No_Value_Assigned.
34176
34177 2004-04-29 Ed Falis <falis@gnat.com>
34178
34179 * gnat_ugn.texi: Fixed texi error
34180
34181 2004-04-29 Robert Dewar <dewar@gnat.com>
34182
34183 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34184 abstract operations if they come from predefined files.
34185
34186 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34187 Dynamic, not RM).
34188
34189 * s-addope.adb: Correct obvious error in mod function
34190
34191 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34192
34193 * Makefile.in: Add target pairs for powerpc darwin*
34194 tasking support.
34195
34196 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34197 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34198
34199 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34200
34201 * Makefile.in: Add target macro definitions for s390*-linux*.
34202 * system-linux-s390.ads: New file.
34203 * system-linux-s390x.ads: New file.
34204
34205 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34206
34207 * gnat_ugn.texi: Correct argument to @setfilename.
34208
34209 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34210
34211 * a-exexpr.adb (Unwind_Word): New data type.
34212 (Unwind_Exception): Use it as type of Private1 and Private2.
34213
34214 * raise.c (db_action_for): Fix debug printf.
34215
34216 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34217
34218 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34219 integer type.
34220
34221 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34222
34223 * decl.c (gnat_to_gnu_entity, case object): Call
34224 __builtin_update_setjmp_buf.
34225
34226 * gigi.h (update_setjmp_buf): Deleted.
34227 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34228
34229 * misc.c: (update_setjmp_buf): Deleted.
34230
34231 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34232 around block of RTL.
34233
34234 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34235
34236 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34237
34238 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34239 subprogram for which no pragma All_Calls_Remote applies, store the
34240 address of the real subprogram in the underlying record type, so local
34241 dereferences do not go through the PCS.
34242
34243 2004-04-26 Robert Dewar <dewar@gnat.com>
34244
34245 * i-c.ads: Add some type qualifications to avoid ambiguities when
34246 compiling with s-auxdec.ads and a non-private address type.
34247
34248 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34249
34250 * Makefile.rtl: Fix error in previous check-in:
34251 Add s-addope.o to non tasking object list (rather than tasking object
34252 list).
34253
34254 2004-04-26 Javier Miranda <miranda@gnat.com>
34255
34256 * sem_aggr.adb: Fix typo in comments
34257 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34258 Required to check the null-exclusion attribute.
34259
34260 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34261 case of anonymous access types in record and array components. For a
34262 component definition the level is the same of the enclosing composite
34263 type.
34264
34265 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34266 that are anonymous access types the level of accessibility depends on
34267 the enclosing type declaration. In order to have this information, set
34268 the scope of the anonymous access type to the enclosing record type
34269 declaration.
34270 (Array_Type_Declaration): In case of components that are anonymous
34271 access types the level of accessibility depends on the enclosing type
34272 declaration. In order to have this information, set the scope of the
34273 anonymous access type to the enclosing array type declaration.
34274
34275 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34276 access type.
34277
34278 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34279 renaming of anonymous access-to-constant types allowed if and only if
34280 the renamed object is access-to-constant.
34281
34282 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34283 that are component_definition or discriminants of a nonlimited type,
34284 the level is the same as that of the enclosing component type.
34285
34286 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34287
34288 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34289 misprint in the function name (File_Name_Match).
34290
34291 2004-04-23 Laurent Guerby <laurent@guerby.net>
34292
34293 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34294 install.
34295
34296 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34297
34298 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34299
34300 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34301
34302 * adaint.c (__gnat_try_lock): No longer requires that the parent
34303 directory be writable, the directory itself is enough.
34304 (gnat_is_absolute_path): Change profile, so that the call from
34305 GNAT.OS_Lib can be made more efficient.
34306
34307 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34308 from GNAT.OS_Lib can be made more efficient.
34309
34310 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34311 one copy of the file name. Found by code reading.
34312
34313 2004-04-23 Vincent Celier <celier@gnat.com>
34314
34315 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34316 Correct documentation on gnatmake switches transmitted to the compiler
34317
34318 * ali.ads: Minor comment fix
34319
34320 2004-04-23 Javier Miranda <miranda@gnat.com>
34321
34322 * sem_ch6.adb: (Confirming Types): Code cleanup
34323
34324 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34325 subprogram types: E_Anonymous_Access_Subprogram_Type and
34326 E_Anonymous_Access_Protected_Subprogram_Type.
34327
34328 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34329
34330 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34331 whether a pragma All_Calls_Remote applies to the subprogram on which
34332 'Access is taken.
34333 No functional change is introduced by this revision; the new parameter
34334 will be used to allow calls to local RCI subprograms to be optimized
34335 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34336 as is already done in the PolyORB implementation of the DSA.
34337
34338 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34339 whether a pragma All_Calls_Remote applies to the subprogram on which
34340 'Access is taken.
34341 No functional change is introduced by this revision; the new parameter
34342 will be used to allow calls to local RCI subprograms to be optimized
34343 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34344 as is already done in the PolyORB implementation of the DSA.
34345
34346 2004-04-23 Robert Dewar <dewar@gnat.com>
34347
34348 * Makefile.rtl: Add entry for s-addope.o in run time library list
34349 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34350 * s-addope.ads, s-addope.adb: New files.
34351
34352 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34353 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34354 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34355 System.Address to be non-private and signed.
34356
34357 * sem_elim.adb: Minor reformatting (fairly extensive)
34358 Some minor code reorganization from code reading
34359 Add a couple of ??? comments
34360
34361 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34362
34363 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34364 (tree_transform, case N_If_Statement): Remove non-determinism.
34365
34366 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34367
34368 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34369
34370 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34371 Eliminate' section.
34372
34373 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34374 no longer used as a parameter name for Eliminate pragma).
34375
34376 2004-04-22 Laurent Guerby <laurent@guerby.net>
34377
34378 PR optimization/14984
34379 PR optimization/14985
34380 * trans.c (gigi): Fix non determinism leading to bootstrap
34381 comparison failures.
34382
34383 2004-04-21 Pascal Obry <obry@gnat.com>
34384
34385 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34386 passed to spawnvp() to properly handle program pathname with spaces on
34387 Win32.
34388
34389 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34390
34391 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34392 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34393 unlocked in case of exceptions.
34394
34395 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34396
34397 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34398 This function does not exist anymore.
34399
34400 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34401
34402 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34403
34404 * link.c: Move variables to the __gnat name space.
34405
34406 * Makefile.in: list link.o explicitly when needed.
34407
34408 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34409
34410 2004-04-21 Javier Miranda <miranda@gnat.com>
34411
34412 * einfo.adb (Original_Access_Type): New subprogram
34413 (Set_Original_Access_Type): New subprogram
34414 (Write_Field21_Name): Write the name of the new field
34415
34416 * einfo.ads (Original_Access_Type): New field present in access to
34417 subprogram types.
34418 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34419 E_Anonymous_Access_Protected_Subprogram_Type.
34420
34421 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34422 subprogram types.
34423
34424 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34425 to anonymous access to subprogram types.
34426
34427 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34428 to subprogram types.
34429
34430 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34431 corresponding to anonymous access to subprogram types.
34432 (Analyze_Component_Declaration): Add new actual to the call to
34433 subprogram replace_anonymous_access_to_protected_subprogram.
34434 (Array_Type_Declaration): Add new actual to the call to subprogram
34435 replace_anonymous_access_to_protected_subprogram.
34436 (Process_Discriminants): Add new actual to the call to subprogram
34437 replace_anonymous_access_to_protected_subprogram.
34438 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34439
34440 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34441 formal.
34442
34443 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34444 access to subprogram types.
34445
34446 * sem_util.adb (Has_Declarations): Addition of package_specification
34447 nodes.
34448
34449 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34450
34451 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34452 inlined flags to renamed entity only if in current unit.
34453
34454 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34455
34456 * s-parint.ads: Add DSA implementation marker.
34457
34458 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34459 value of System.Partition_Interface.DSA_Implementation to determine
34460 what version of the distributed systems annex is available (no
34461 implementation, GLADE, or PolyORB).
34462
34463 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34464
34465 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34466
34467 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34468
34469 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34470 with new type if alias sets differ.
34471 Fixes ACATS c41103b.
34472
34473 2004-04-21 Vincent Celier <celier@gnat.com>
34474
34475 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34476 Add array Lang_Args for the language specific compiling argument
34477 switches.
34478
34479 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34480
34481 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34482
34483 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34484 according to the recent changes in the format of the parameters of the
34485 pragma (replacing Homonym_Number with Source_Location).
34486
34487 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34488
34489 * 5isystem.ads: Removed, unused.
34490
34491 * gnat_rm.texi: Redo 1.13 change.
34492
34493 2004-04-19 Robert Dewar <dewar@gnat.com>
34494
34495 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34496 definition is cleaner, avoids the kludge of explicit Standard operator
34497 references, and also is consistent with a visible System.Address with
34498 no visible operations.
34499
34500 * s-geveop.adb: Add declarations to avoid assumption of visible
34501 operations on type System.Address (since these might not be available
34502 if Address is a non-private type for which the operations
34503 are made abstract).
34504
34505 * sem_eval.adb: Minor reformatting
34506
34507 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34508 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34509 reformatting (new function spec format).
34510
34511 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34512 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34513 s-caun64.adb: Add declarations to avoid assumption of visible
34514 operations on type System.Address (since these might not be available
34515 if Address is a non-private type for which the operations are made
34516 abstract).
34517
34518 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34519
34520 * exp_intr.adb: Minor comment update
34521
34522 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34523
34524 * 5omastop.adb: Add declarations to avoid assumption of visible
34525 operations on type System.Address (since these might not be available
34526 if Address is a non-private type for which the operations
34527 are made abstract).
34528
34529 2004-04-19 Vincent Celier <celier@gnat.com>
34530
34531 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34532
34533 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34534 defaulted to Ada.
34535
34536 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34537 defaulted to Ada.
34538 Call Check with Process_Languages.
34539 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34540 with Process_Languages.
34541 (Recursive_Check): New Boolean parameter Process_Languages. Call
34542 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34543 Process_Languages.
34544
34545 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34546
34547 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34548 parameter Ada_Main, defaulted to True.
34549 Check for Ada specific characteristics only when Ada_Main is True.
34550
34551 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34552
34553 * prj.adb: (Project_Empty): Add new Project_Data components.
34554
34555 * prj.ads: New types and tables for non Ada languages.
34556 (Project_Data): New components Languages, Impl_Suffixes,
34557 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34558 Include_Path, Include_Data_Set.
34559
34560 * prj-env.ads, prj-env.adb: Minor reformatting
34561
34562 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34563 Put subprograms in alphabetical order
34564
34565 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34566 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34567 Opt.Follow_Links.
34568
34569 * mlib-prj.adb: Back out modification in last version, as they are
34570 incorrect.
34571 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34572
34573 * make.adb: (Mains): Moved to package Makeutl
34574 (Linker_Opts): Moved to package Makeutl
34575 (Is_External_Assignment): Moved to package Makeutl
34576 (Test_If_Relative_Path): Moved to package Makeutl
34577 (Gnatmake): Move sorting of linker options to function
34578 Makeutl.Linker_Options_Switches.
34579
34580 * makeutl.ads, makeutl.adb: New files.
34581
34582 * Makefile.in: Add makeutl.o to the object files for gnatmake
34583
34584 * makeusg.adb: Add line for new switch -eL.
34585
34586 * gnatls.adb (Image): New function.
34587 (Output_Unit): If in verbose mode, output the list of restrictions
34588 specified by pragmas Restrictions.
34589
34590 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34591 Text_IO.
34592
34593 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34594 needed, to put it in the range 1970 (included) - 2026 (excluded).
34595 (Time_Of): Do not shift Unix_Min_Year (1970).
34596 Shift the date by multiple of 56 years, if needed, to put it in the
34597 range 1970 (included) - 2026 (excluded).
34598
34599 * adaint.h, adaint.c (__gnat_set_executable): New function.
34600
34601 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34602
34603 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34604 and pop GC context.
34605 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34606 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34607 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34608 (tree_transform, case N_Code_Statement): Likewise.
34609 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34610 LABEL_STMT_FIRST_IN_EH.
34611 (gnat_expand_stmt, case ASM_STMT): New case.
34612
34613 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34614 UNCONSTRAINED_ARRAY_REF.
34615
34616 * utils.c (poplevel): Temporarily push/pop GC context around inline
34617 function expansion.
34618
34619 * decl.c (maybe_variable): Properly set TREE_READONLY of
34620 UNCONSTRAINED_ARRAY_REF.
34621 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34622
34623 * ada-tree.def: (ASM_STMT): New.
34624
34625 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34626 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34627 ASM_STMT_INPUT): New.
34628 (ASM_STMT_CLOBBER): Likewise.
34629
34630 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34631
34632 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34633 general rcheck mechanism to raise Program_Error for E.4(18), instead
34634 of a custom raiser in System.Partition_Interface.
34635 Part of general cleanup work before PolyORB integration.
34636
34637 * snames.ads, snames.adb: Add new runtime library entities and names
34638 for PolyORB DSA.
34639
34640 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34641 exp_dist.
34642 (Build_Subprogram_Id): New subprogram provided by exp_dist
34643 Code reorganisation in preparation for PolyORB integration.
34644
34645 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34646 exp_dist.
34647 (Build_Subprogram_Id): New subprogram provided by exp_dist
34648
34649 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34650 actual parameter types for call to dereference of an
34651 access-to-subprogram type.
34652
34653 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34654 DSA.
34655
34656 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34657 instead, which has the same behaviour here since we never pass it a
34658 NULL pointer.
34659
34660 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34661 platforms.
34662
34663 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34664 to account for new dependency upon Interfaces.C.Strings + link.o
34665 For x86 FreeBSD, use 86numaux.
34666
34667 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34668 from Mlib.Tgt to Mlib.
34669
34670 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34671 target-independent.
34672
34673 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34674 target-specific versions of this subprogram, now implemented as a
34675 target-independent function in Mlib.
34676
34677 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34678 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34679 (Linker_Library_Path_Option): Remove target-specific versions of this
34680 subprogram, now implemented as a target-independent function in Mlib.
34681
34682 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34683 Factors out node table slots allocation.
34684 (Fix_Parents): New subprogram.
34685 Encapsulate the pattern of fixing up parent pointers for syntactic
34686 children of a rewritten node.
34687 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34688 (Rewrite): Use New_Copy when creating saved copy of original node.
34689 (Replace): Use Copy_Node to copy nodes.
34690
34691 2004-04-19 Javier Miranda <miranda@gnat.com>
34692
34693 * sprint.adb (Sprint_Node_Actual): Give support to the new
34694 Access_To_Subprogram node available in Access_Definition nodes. In
34695 addition, give support to the AI-231 node fields: null-exclusion,
34696 all-present, constant-present.
34697
34698 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34699
34700 * sinfo.ads, sinfo.adb:
34701 New field Access_To_Subprogram_Definition in Access_Definition nodes
34702
34703 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34704 decorates internal subtype declaration corresponding to the
34705 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34706 In addition, carry out some code cleanup on this code. In case of
34707 access to protected subprogram call
34708 Replace_Anonymous_Access_To_Protected_Subprogram.
34709 (Set_Actual_Subtypes): Code cleanup.
34710
34711 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34712 Find_Type in case of anonymous access renamings. Add warning in case of
34713 null-excluding attribute used in anonymous access renaming.
34714
34715 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34716 subprogram
34717
34718 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34719 subprogram.
34720 (Access_Definition): In case of anonymous access to subprograms call
34721 the corresponding semantic routine to decorate the node.
34722 (Access_Subprogram_Declaration): Addition of some comments indicating
34723 some code that probably should be added here. Detected by comparison
34724 with the access_definition subprogram.
34725 (Analyze_Component_Declaration): In case of access to protected
34726 subprogram call Replace_Anonymous_Access_To_Protected.
34727 (Array_Type_Declaration): In case of access to protected subprogram call
34728 Replace_Anonymous_Access_To_Protected_Subprogram.
34729 (Process_Discriminants): In case of access to protected subprogram call
34730 Replace_Anonymous_Access_To_Protected_Subprogram.
34731
34732 * par.adb (P_Access_Definition): New formal that indicates if the
34733 null-exclusion part was present.
34734 (P_Access_Type_Definition): New formal that indicates if the caller has
34735 already parsed the null-excluding part.
34736
34737 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34738 (P_Identifier_Declarations): Code cleanup and give support to renamings
34739 of anonymous access to subprogram types.
34740 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34741 (P_Array_Type_Definition): Give support to AI-254.
34742 (P_Component_Items): Give support to AI-254.
34743 (P_Access_Definition): New formal that indicates if the header was
34744 already parsed by the caller.
34745 (P_Access_Type_Definition): New formal that indicates if the caller has
34746 already parsed the null-excluding part.
34747
34748 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34749 call to P_Access_Definition.
34750
34751 2004-04-19 Geert Bosch <bosch@gnat.com>
34752
34753 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34754 the delicate semantics of floating-point to integer conversion.
34755 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34756
34757 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34758 (Machine_Radix): New function.
34759
34760 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34761 conversion checks.
34762 (Machine_Radix): New function also for use in conversion checks.
34763
34764 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34765
34766 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34767
34768 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34769 to decorate the access-to-protected subprogram and the equivalent type.
34770
34771 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34772 to anonymous access to subprogram types.
34773
34774 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34775 constant-folding, for legality checks in contexts that require an RM
34776 static expression.
34777
34778 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34779 temporary but stack checking is not enabled, increment serial number
34780 to so that symbol generation is consistent with and without stack
34781 checking.
34782
34783 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34784 independent on whether stack checking is enabled, caller must check
34785 the corresponding flag.
34786
34787 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34788 range checks.
34789 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34790 parent if it has discriminants.
34791 (Build_Derived_Private_Type): Constructed full view does
34792 not come from source.
34793 (Process_Discriminants): Default discriminants on a tagged type are
34794 legal if this is the internal completion of a private untagged
34795 derivation.
34796
34797 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34798 no constraint checks, because it corresponds to an existing object.
34799
34800 * sem_prag.adb (Process_Convention): Pragma applies
34801 only to subprograms in the same declarative part, i.e. the same unit,
34802 not the same scope.
34803
34804 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34805 ignore type mismatch on a numeric conversion if expression comes from
34806 expansion.
34807
34808 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
34809
34810 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34811 Homonym_Number parameter, add processing for Source_Location parameter
34812 corresponding.
34813 (Check_Eliminated): Remove the check for homonym numbers, add the check
34814 for source location traces.
34815
34816 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34817 with Arg_Source_Location corresponding to the changes in the format of
34818 the pragma.
34819
34820 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34821 Eliminate pragma corresponding to the changes in the format of the
34822 pragma: Homonym_Number is replaced with Source_Location, two ways of
34823 distinguishing homonyms are mutially-exclusive.
34824
34825 2004-04-19 Joel Brobecker <brobecker@gnat.com>
34826
34827 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34828
34829 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34830 No_Dollar_In_Label, no longer necessary, as it is always True.
34831 (Strip_Suffixes): Likewise.
34832
34833 2004-04-19 Gary Dismukes <dismukes@gnat.com>
34834
34835 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34836 modulus for compatibility with size clause on targets with 16-bit
34837 Integer.
34838
34839 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34840 full type to fix type mismatches on calls to size functions for
34841 discriminant-dependent array components.
34842
34843 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
34844
34845 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34846 lib.
34847
34848 2004-04-19 Pascal Obry <obry@gnat.com>
34849
34850 * mdll-utl.adb (Locate): New version is idempotent.
34851
34852 2004-04-17 Laurent Guerby <laurent@guerby.net>
34853
34854 PR ada/14988 (partial)
34855 * impunit.adb: Fix typo.
34856
34857 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34858
34859 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34860 and install-rts-cert targets. Remove all gnatlib and gnattools
34861 targets and all other rts-* targets (moved to libada). Remove (now)
34862 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34863 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34864
34865 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34866
34867 * trans.c (tree_transform): Shortcut returning error_mark_node for
34868 statements in annotate_only_mode.
34869 (tree_transform, case N_Label, case N_Return_Statement,
34870 N_Goto_Statement): Make statement tree instead of generating code.
34871 (tree_transform, case N_Assignment_Statement): No longer check
34872 type_annotate_only.
34873 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34874 RETURN_STMT): New.
34875 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34876 New fcns.
34877 (gnat_to_gnu): Collect any RTL generated and deal with it.
34878 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34879 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34880 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34881
34882 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34883
34884 * ada-tree.def (EXPR_STMT): Fix typo in name.
34885 (BLOCK_STMT, IF_STMT): New nodes.
34886
34887 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34888 LABEL_STMT_FIRST_IN_EH): New macros.
34889 (RETURN_STMT_EXPR): Likewise.
34890
34891 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34892 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34893
34894 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34895
34896 * atree.ads: Correct documentation on extended nodes.
34897
34898 * link.c: Set run_path_option for FreeBSD.
34899
34900 2004-04-08 Vincent Celier <celier@gnat.com>
34901
34902 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34903 one of the ALI file, do not link with DEC lib.
34904
34905 * par.adb Remove the last two characters ("%s" or "%b") when checking
34906 if a language defined unit may be recompiled.
34907
34908 2004-04-08 Ed Schonberg <schonberg@gnat.com>
34909
34910 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34911 removal of abstract operation leaves no possible interpretation for
34912 expression.
34913
34914 * sem_eval.adb (Eval_Qualified_Expression): Use
34915 Set_Raises_Constraint_Error on node when needed, so that it does not
34916 get optimized away by subsequent optimizations.
34917
34918 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34919 operands even when they are not wrapped in a type conversion.
34920
34921 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
34922
34923 * sem_prag.adb (Set_Exported): Warn about making static as result of
34924 export only when the export is coming from source. This may be not
34925 be true e.g. on VMS where we expand export pragmas for exception codes
34926 together with imported or exported exceptions, and we don't want the
34927 user to be warned about something he didn't write.
34928
34929 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34930
34931 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34932 duplication between normal entities and those declared as renamings.
34933 No functional change.
34934
34935 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34936 inline functions returning an unconstrained result.
34937
34938 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
34939
34940 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34941 conform to what other front-ends do.
34942
34943 2004-04-08 Doug Rupp <rupp@gnat.com>
34944
34945 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34946 libraries.
34947
34948 2004-04-06 Pascal Obry <obry@gnat.com>
34949
34950 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34951
34952 * osint.adb (Program_Name): Do not look past a directory separator.
34953
34954 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
34955
34956 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34957
34958 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34959 requirement for preserving a copy of the original assignment node.
34960
34961 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34962
34963 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
34964
34965 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34966 when supported.
34967
34968 2004-04-06 Ed Schonberg <schonberg@gnat.com>
34969
34970 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34971 operator calls in functional notation, and apply
34972 Universal_Interpretation to operands, not to their type.
34973
34974 2004-04-06 Robert Dewar <dewar@gnat.com>
34975
34976 * 5wdirval.adb: Minor reformatting
34977
34978 2004-04-06 Ed Falis <falis@gnat.com>
34979
34980 * gnat_rm.texi: Improve a reference to the GCC manual
34981
34982 2004-04-05 Vincent Celier <celier@gnat.com>
34983
34984 * adaint.h, adaint.c: Add function __gnat_named_file_length
34985
34986 * impunit.adb: Add Ada.Directories to the list
34987
34988 * Makefile.in: Add VMS and Windows versions of
34989 Ada.Directories.Validity package body.
34990
34991 * Makefile.rtl: Add a-direct and a-dirval
34992
34993 * mlib-tgt.ads: Minor comment update.
34994
34995 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34996 a-direct.ads, a-direct.adb: New files.
34997
34998 2004-04-05 Vincent Celier <celier@gnat.com>
34999
35000 PR ada/13620
35001 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
35002 just to the compiler.
35003
35004 2004-04-05 Robert Dewar <dewar@gnat.com>
35005
35006 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
35007 returned string is 1.
35008
35009 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
35010
35011 * eval_fat.ads: Minor reformatting
35012
35013 * g-curexc.ads: Document that lower bound of returned string values
35014 is always one.
35015
35016 * gnatlink.adb: Add ??? comment for previous change
35017 (need to document why this is VMS specific)
35018
35019 * s-stoele.ads: Minor reformatting
35020
35021 * tbuild.ads: Minor reformatting throughout (new function specs)
35022
35023 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
35024 after WITH.
35025
35026 * scng.adb: Minor reformatting
35027
35028 2004-04-05 Geert Bosch <bosch@gnat.com>
35029
35030 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
35031 (Leading_Part): Still perform truncation to machine number if the
35032 specified radix_digits is greater or equal to machine_mantissa.
35033
35034 2004-04-05 Javier Miranda <miranda@gnat.com>
35035
35036 * par-ch3.adb: Complete documentation of previous change
35037 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
35038 (aliased must appear before constant).
35039
35040 * par-ch4.adb: Complete documentation of previous change.
35041
35042 * par-ch6.adb: Complete documentation of previous change.
35043
35044 * sinfo.ads: Fix typo in commment.
35045
35046 2004-04-05 Ed Schonberg <schonberg@gnat.com>
35047
35048 * sem_ch3.adb (Inherit_Components): If derived type is private and has
35049 stored discriminants, use its discriminants to constrain parent type,
35050 as is done for non-private derived record types.
35051
35052 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
35053 Ada 2005 AI-310: an abstract non-dispatching operation is not a
35054 candidate interpretation in an overloaded call.
35055
35056 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
35057 expression is Null and target type is not an access type (e.g. a
35058 non-private address type).
35059
35060 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
35061
35062 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
35063 statement whose right-hand side is an inlined call, save a copy of the
35064 original assignment subtree to preserve enough consistency for
35065 Analyze_Assignment to proceed.
35066
35067 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
35068 complete assignment subtree which is now unnecessary, as the expansion
35069 of inlined call has been improved to preserve a consistent assignment
35070 tree. Note_Possible_Modification must be called only
35071 after checks have been applied, or else unnecessary checks will
35072 be generated.
35073
35074 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
35075 of explicit dereferences that do not Come_From_Source:
35076 - be selective on cases where we must go back to the dereferenced
35077 pointer (an assignment to an implicit dereference must not be
35078 recorded as modifying the pointer);
35079 - do not rely on Original_Node being present (Analyze_Assignment
35080 calls Note_Possible_Modification on a copied tree).
35081
35082 * sem_warn.adb (Check_References): When an unset reference to a pointer
35083 that is never assigned is encountered, prefer '<pointer> may be null'
35084 warning over '<pointer> is never assigned a value'.
35085
35086 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
35087
35088 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
35089 the ABI.
35090
35091 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
35092
35093 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
35094 libexc. We currently don't reference anything in this library and
35095 linking it in triggers linker warnings we don't want to see.
35096
35097 * init.c: Update comments.
35098
35099 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35100
35101 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
35102 * utils.c (create_field_decl): Likewise.
35103 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
35104
35105 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
35106
35107 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
35108 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
35109 Add info directory entry and category.
35110
35111 2004-04-02 Jan Hubicka <jh@suse.cz>
35112
35113 * utils.c: Include function.h
35114 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
35115
35116 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35117
35118 PR ada/14150
35119 * Make-lang.in: Clean up generation of documentation
35120
35121 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
35122
35123 * xgnatug.adb: Removed, replaced by xgnatugn.adb
35124
35125 * xgnatugn.adb: Replaces xgnatug.adb
35126
35127 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
35128
35129 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
35130
35131 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35132 gnat_ug_wnt.texi: Removed.
35133
35134 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
35135
35136 * utils2.c: Update copyright notice.
35137
35138 2004-04-01 Robert Dewar <dewar@gnat.com>
35139
35140 * checks.adb: Minor reformatting throughout
35141 Note that prev checkin added RM reference to alignment warning
35142
35143 2004-04-01 Ed Schonberg <schonberg@gnat.com>
35144
35145 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
35146 non-static when building aggregate for bit-packed array.
35147
35148 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
35149 function call that is itself the actual in a procedure call, build
35150 temporary for it.
35151
35152 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
35153 a string literal, create a temporary for it, constant folding only
35154 handles scalars here.
35155
35156 2004-04-01 Vincent Celier <celier@gnat.com>
35157
35158 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
35159 Error_Msg_SP): New empty procedures to instantiate the Scanner.
35160 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
35161 tokens.
35162 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
35163 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
35164 and get the checksum.
35165
35166 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
35167 already in the Q.
35168 Increase the Marking_Label at the end of the Multiple_Main_Loop,
35169 instead of at the beginning.
35170
35171 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35172 directly.
35173 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35174 on VMS.
35175
35176 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35177
35178 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35179 not '~' directly.
35180
35181 * par.adb: Remove test on file name to detect language defined units.
35182 Add test on unit name, after parsing, to detect language defined units
35183 that are not compiled with -gnatg (except System.RPC and its children)
35184
35185 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35186 following units without style checking.
35187
35188 * switch-c.adb: Change -gnatC to -gnateI
35189
35190 * usage.adb: Document new switch -gnateInnn
35191
35192 * scng.adb (Accumulate_Token_Checksum): New procedure
35193 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35194 word or literal number.
35195 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35196 numbers.
35197
35198 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35199
35200 * a-tasatt.adb,
35201 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35202 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35203 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35204 5vtpopde.adb: Add missing 'constant' keywords.
35205
35206 2004-04-01 Javier Miranda <miranda@gnat.com>
35207
35208 * par-ch4.adb: (P_Allocator): Code cleanup
35209
35210 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35211 attribute.
35212
35213 * sinfo.ads: Complete documentation of previous change
35214
35215 2004-04-01 Pascal Obry <obry@gnat.com>
35216
35217 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35218 only on VMS. This special handling was done because an old GNU/ld bug
35219 on Windows which has been fixed.
35220
35221 2004-04-01 GNAT Script <nobody@gnat.com>
35222
35223 * Make-lang.in: Makefile automatically updated
35224
35225 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35226
35227 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35228 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35229 * trans.c (tree_transform, convert_with_check): Likewise.
35230 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35231 (build_vms_descriptor, unchecked_convert): Likewise.
35232 * utils2.c (nonbinary_modular_operation): Likewise.
35233
35234 2004-03-29 Javier Miranda <miranda@gnat.com>
35235
35236 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35237 (Install_Null_Excluding_Check): Local subprogram that determines whether
35238 an access node requires a runtime access check and if so inserts the
35239 appropriate run-time check.
35240 (Apply_Access_Check): Call Install_Null_Excluding check if required
35241 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35242
35243 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35244
35245 * einfo.ads: Fix typo in comment
35246
35247 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35248 null-excluding type to force the corresponding run-time check.
35249 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35250 type to force the corresponding run-time check.
35251
35252 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35253 the null-excluding type to force the corresponding run-time check.
35254
35255 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35256 case of access types unless they have the null-excluding attribute.
35257
35258 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35259 part.
35260
35261 * exp_util.ads: Fix typo in comment
35262
35263 * par.adb (P_Null_Exclusion): New subprogram
35264 (P_Subtype_Indication): New formal that indicates if the null-excluding
35265 part has been scanned-out and it was present
35266
35267 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35268
35269 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35270 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35271 type to force the corresponding run-time check
35272 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35273 components
35274 (Resolve_Array_Aggregate): Carry out some static checks
35275 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35276
35277 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35278 attribute must be set only if specified by means of the null-excluding
35279 part. In addition, we must also propagate the access-constant attribute
35280 if present.
35281 (Access_Subprogram_Declaration, Access_Type_Declaration,
35282 Analyze_Component_Declaration, Analyze_Object_Declaration,
35283 Array_Type_Declaration, Process_Discriminants,
35284 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35285 and carry out some static checks.
35286 (Build_Derived_Access_Type): Set the null-excluding attribute
35287 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35288 checks.
35289
35290 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35291
35292 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35293
35294 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35295 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35296 null-excluding part was present; it is not required to be done here in
35297 case of anonymous access types.
35298 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35299 value.
35300
35301 * sem_res.adb (Resolve_Actuals): Carry out some static check
35302 (Resolve_Null): Allow null in anonymous access
35303
35304 * sinfo.adb: New subprogram Null_Exclusion_Present
35305 All_Present and Constant_Present available on access_definition nodes
35306
35307 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35308 object_declaration, derived_type_definition, component_definition,
35309 discriminant_specification, access_to_object_definition,
35310 access_function_definition, allocator, access_procedure_definition,
35311 access_definition, parameter_specification, All_Present and
35312 Constant_Present flags available on access_definition nodes.
35313
35314 2004-03-29 Robert Dewar <dewar@gnat.com>
35315
35316 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35317 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35318 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35319 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35320 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35321 sem_prag.adb: Updates to handle multiple units/file
35322
35323 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35324
35325 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35326 sem_util.adb: Minor reformatting
35327
35328 * sem_ch12.adb: Add comment for previous change
35329
35330 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35331
35332 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35333 executable name when not initialized. Otherwise, use its current value.
35334
35335 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35336 initialize it to another executable name than the current one. This
35337 allows to configure paths for an executable name (gnatmake) different
35338 from the current one (gnatdist).
35339
35340 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35341
35342 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35343 current unit cannot be inlined if it appears in the body of a withed
35344 unit, to avoid order of elaboration problems in gigi.
35345
35346 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35347 information for protected (wrapper) operation as well, to simplify gdb
35348 use.
35349
35350 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35351 protected body, indicate that the entity for the generated spec comes
35352 from source, to ensure that references are properly generated for it.
35353 (Build_Body_To_Inline): Do not inline a function that returns a
35354 controlled type.
35355
35356 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35357 apply convention to homonyms that are declared explicitly.
35358
35359 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35360 that renames an equality operator and the operands are overloaded,
35361 resolve them with the declared formal types, before rewriting as an
35362 operator.
35363
35364 2004-03-29 GNAT Script <nobody@gnat.com>
35365
35366 * Make-lang.in: Makefile automatically updated
35367
35368 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35369
35370 * memtrack.adb: Log realloc calls, which are treated as free followed
35371 by alloc.
35372
35373 2004-03-25 Vincent Celier <celier@gnat.com>
35374
35375 * prj-makr.adb (Process_Directories): Detect when a file contains
35376 several units. Do not include such files in the config pragmas or
35377 in the naming scheme.
35378
35379 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35380 Resolve links only when not in Trusted_Mode.
35381 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35382 Do not resolve links for the display names.
35383
35384 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35385 resolve links when computing the display names.
35386
35387 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35388
35389 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35390 attribute reference does not denote a subtype, it can be any
35391 expression that has a classwide type, potentially after an implicit
35392 dereference. In particular, the prefix can be a view conversion for
35393 a classwide type (for which Is_Object_Reference holds), but it can
35394 also be a value conversion for an access-to-classwide type. In the
35395 latter case, there is an implicit dereference, and the original node
35396 for the prefix does not verify Is_Object_Reference.
35397
35398 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35399 conversion of a discriminant-dependent component of a mutable object
35400 is one itself.
35401
35402 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35403
35404 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35405 inherited, has convention C, and has unconstrained array parameters,
35406 place the corresponding warning on the derived type declaration rather
35407 than the original subprogram.
35408
35409 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35410 indication on renaming declaration, if formal has a box and actual
35411 is absent.
35412
35413 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35414 determine whether to generate an implicit or explicit reference to
35415 the renamed entity.
35416
35417 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35418 subprogram renaming comes from a defaulted formal subprogram in an
35419 instance.
35420
35421 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35422
35423 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35424 value expressions to ensure that calls within a component definition
35425 will be checked (since those are evaluated during the record type's
35426 elaboration).
35427
35428 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35429
35430 * s-tpobop.adb: Code clean up:
35431 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35432 code.
35433 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35434
35435 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35436
35437 * Makefile.in: Clean up in the ravenscar run time.
35438
35439 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35440
35441 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35442 of No_Strict_Aliasing to build_pointer_type_for_mode.
35443 * utils.c (update_pointer_to): Walk pointer and ref chains.
35444
35445 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35446
35447 * ali.ads: Fix Comment about Dynamic_Elab.
35448
35449 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35450 Has_RACW, Is_Generic, etc.)
35451 (Output_Object, Gnatls): Take into account ALI files not attached to
35452 an object.
35453
35454 2004-03-22 Vincent Celier <celier@gnat.com>
35455
35456 * gprep.adb: Change all String_Access to Name_Id
35457 (Is_ASCII_Letter): new function
35458 (Double_File_Name_Buffer): New procedure
35459 (Preprocess_Infile_Name): New procedure
35460 (Process_Files): New procedure
35461 (Gnatprep): Check if output and input are existing directories.
35462 Call Process_Files to do the real job.
35463
35464 2004-03-22 Robert Dewar <dewar@gnat.com>
35465
35466 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35467 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35468
35469 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35470
35471 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35472 case when the source contains only comments.
35473
35474 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35475
35476 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35477 declaration for a child subprogram body that acts as a spec, indicate
35478 that the entity in the declaration needs debugging information.
35479
35480 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35481 full view if the subtype is created for a constrained record component;
35482 gigi has enough information to construct the record, and there is no
35483 place in the tree for the declaration.
35484
35485 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35486 serial number for the dummy body that is built for analysis, to avoid
35487 inconsistencies in the generation of internal names when compiling
35488 with -gnatN.
35489
35490 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35491
35492 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35493 object.
35494
35495 2004-03-22 GNAT Script <nobody@gnat.com>
35496
35497 * Make-lang.in: Makefile automatically updated
35498
35499 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35500
35501 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35502 * trans.c (tree_transform, emit_index_check): Likewise.
35503 * utils.c (build_template): Likewise.
35504 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35505 (maybe_unconstrained_array, unchecked_convert): Likewise.
35506 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35507 (build_unary_op): Likewise.
35508 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35509 (fill_vms_descriptor): Likewise.
35510 (build_call_alloc_dealloc): Likewise.
35511 ALIGN is unsigned.
35512 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35513
35514 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35515
35516 PR other/14630
35517 * gnat_ug.texi: Add info directory category and entry.
35518 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35519 gnat_ug_wnt.texi: Regenerate.
35520
35521 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35522
35523 * ada-tree.h: Update copyright notice.
35524 Minor reformatting.
35525
35526 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35527
35528 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35529 as regular exception objects and not as mere integers representing the
35530 condition code. The latter approach required some dynamics to mask off
35531 severity bits, which did not fit well into the GCC table based model.
35532 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35533 exception data objects. We don't it and it would conflict with the other
35534 external symbol we have to generate for such exceptions.
35535
35536 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35537 the special code for VMS exceptions, since these are now represented
35538 as regular exceptions objects.
35539
35540 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35541
35542 * decl.c (debug_no_type_hash): Remove.
35543 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35544 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35545
35546 2004-03-19 Laurent Guerby <laurent@guerby.net>
35547
35548 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35549 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35550
35551 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35552
35553 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35554 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35555 (TYPE_RM_SIZE_INT): Directly use type.values.
35556 (TREE_LOOP_ID): Clean up check.
35557 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35558 TYPE_VALUES, not TYPE_FIELDS.
35559 * trans.c (convert_with_check): Delay access of bounds of basetype
35560 until sure is numeric.
35561
35562 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35563
35564 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35565
35566 Code clean up:
35567 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35568 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35569 Specific.Set instead of direct call to e.g pthread_setspecific.
35570
35571 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35572
35573 * adaint.c: Update comments.
35574
35575 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35576 GNATLIB_SHARED for FreeBSD.
35577
35578 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35579
35580 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35581 When needed (stack checking) the stack size is retrieved
35582 from the VxWorks kernel.
35583
35584 * Makefile.in: Flag -nostdinc is required when building the run time
35585 for avoiding looking for files in the base compiler.
35586 Add the VxWorks specific version of the package body for
35587 System.Stack_checking.Operations (5zstchop.adb).
35588
35589 * Make-lang.in: Add the object file for
35590 System.Stack_Checking.Operations.
35591
35592 * Makefile.rtl: Add object file for the package
35593 System.Stack_Checking.Operations.
35594
35595 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35596
35597 * s-stache.ads, s-stache.adb: Move the operations related to stack
35598 checking from this package to package System.Stack_Checking.Operations.
35599 This way, stack checking operations are only linked in the final
35600 executable when using the -fstack-check flag.
35601
35602 2004-03-18 Doug Rupp <rupp@gnat.com>
35603
35604 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35605 Reorganize ifeq's.
35606
35607 * 5qsystem.ads, 5xcrtl.ads: New files.
35608
35609 2004-03-18 Vincent Celier <celier@gnat.com>
35610
35611 * prj.adb (Reset): Reset hash table Files_Htable
35612
35613 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35614 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35615 the procedures Add_To_Path_File.
35616 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35617 making sure that each directory is present only once and, for object
35618 dirs, when a directory already present is added, the duplicate is
35619 removed and the directory is always put as the last in the table.
35620 Write the path files at the end of these accumulations.
35621
35622 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35623 Files_Htable for all sources.
35624
35625 * prj-proc.adb (Process): Remove restrictions between not directly
35626 related extending projects.
35627
35628 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35629
35630 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35631 (Find_Sources): Minor speed optimization.
35632
35633 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35634 parameter Trusted_Mode.
35635
35636 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35637
35638 * scn.adb (Determine_License): Take into account a degenerated case
35639 when the source contains only comments.
35640
35641 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35642
35643 * sem_warn.adb (Check_References): For a warning on a selected
35644 component that does not come from source, locate an uninitialized
35645 component of the record type to produce a more precise error message.
35646
35647 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35648
35649 * 3zsoccon.ads: Fix multicast options.
35650
35651 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35652 in the spec.
35653
35654 2004-03-15 Robert Dewar <dewar@gnat.com>
35655
35656 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35657 pragma used for a private type.
35658
35659 * lib-xref.adb (Generate_Reference): Do not generate warning if
35660 reference is in a different unit from the pragma Unreferenced.
35661
35662 * 5vtpopde.adb: Minor reformatting
35663 Fix casing of To_Task_ID
35664
35665 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35666 flag if we have an unchecked conversion to an access type in the same
35667 unit.
35668
35669 2004-03-15 Geert Bosch <bosch@gnat.com>
35670
35671 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35672 imaginary parts, use Double precision throughout.
35673
35674 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35675 we want to be able to compile run-time with -gnata for testing, but
35676 this may also be instantiated in user code that is compiled with -gnata.
35677
35678 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35679
35680 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35681 codes. Having a separate type for this is useful to enforce consistency
35682 throughout the various run-time units.
35683 (Exception_Data): Use Exception_Code for Import_Code.
35684
35685 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35686 Natural and Integer in various places.
35687 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35688 with the severity bits masked off.
35689 (Register_VMS_Exception): Handle the additional exception data pointer
35690 argument.
35691
35692 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35693 component, now reflected by an exported accessor.
35694 (is_handled_by): New routine to compute whether the propagated
35695 occurrence matches some handler choice specification. Extracted out of
35696 get_action_description_for, and expanded to take care of the VMS
35697 specifities.
35698 (get_action_description_for): Use is_handled_by instead of an explicit
35699 complex condition to decide if the current choice at hand catches the
35700 propagated occurrence.
35701
35702 * raise.h (Exception_Code): New type for C.
35703
35704 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35705 System.Standard_Library.Exception_Code, to allow references from the
35706 pragma import/export expander.
35707
35708 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35709 New accessors to allow easy access to GNAT exception data
35710 characteristics.
35711 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35712 redundant Handled_By_Others component, helper for the personality
35713 routine which will now be able to call the appropriate exception data
35714 accessor instead.
35715
35716 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35717 component of Standard_Exception_Type to be the closest possible to
35718 Exception_Code in System.Standard_Library, that we cannot get at this
35719 point. Expand a ??? comment to notify that this type node should
35720 probably be rewritten later on.
35721
35722 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35723 registration call to include a pointer to the exception object in the
35724 arguments.
35725
35726 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35727 instead of int and explicit bitmasks.
35728
35729 2004-03-15 Vincent Celier <celier@gnat.com>
35730
35731 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35732 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35733
35734 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35735 longer needed now that it is in the spec of
35736 System.Tasking.Task_Attributes.
35737
35738 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35739
35740 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35741
35742 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35743
35744 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35745 taken care of in Scan_Make_Arg.
35746 (Scan_Make_Arg): Add the executable suffix only if the argument
35747 following -o, in canonical case, does not end with the executable
35748 suffix. When in verbose mode and executable file name does not end
35749 with executable suffix, output the executable name, in canonical case.
35750
35751 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35752 to avoid warnings when instantiating Ada.Task_Attributes.
35753 Minor reformating.
35754
35755 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35756 in the correct order.
35757
35758 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35759 redirect standard output and error to a file for the invocation of the
35760 compiler, then read the file.
35761
35762 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35763 directory, instead of the Value.
35764 (Find_Source_Dirs): Remove useless code & comments.
35765
35766 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35767
35768 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35769 tagged type is inherited, and the parent operation is not frozen yet,
35770 force generation of a freeze node for the inherited operation, so the
35771 corresponding dispatch entry is properly initialized.
35772 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35773 when looking for user-defined equality operation.
35774
35775 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35776 boolean when locating primitive equality of tagged component.
35777
35778 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35779 bit-aligned field and the right-hand side a string literal, introduce
35780 a temporary before expanding assignment into a loop.
35781
35782 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35783 priority in full, to ensure that any expanded subepxressions of it are
35784 elaborated in the scope of the init_proc.
35785
35786 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35787 after object declaration, skipping over code that may have been
35788 generated for validity checks.
35789
35790 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35791 discriminants, ignore the known discriminants of its full view, if
35792 any, to check legality.
35793
35794 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35795 component if type has unknown discriminants.
35796 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35797 null if type has unknown discriminants.
35798
35799 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35800 for end label when present.
35801
35802 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35803 temporary file, rather than an empty string.
35804
35805 2004-03-15 Ed Falis <falis@gnat.com>
35806
35807 * s-thread.adb: Removed, no longer used.
35808
35809 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35810
35811 * decl.c (target.h): Now include.
35812 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35813 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35814 (validate_size): For POINTER_TYPE, get smallest size permitted on
35815 machine.
35816
35817 * fe.h: Sort Einfo decls and add Set_Mechanism.
35818
35819 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35820 (ada/decl.o): Depends on target.h.
35821
35822 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35823 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35824
35825 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
35826
35827 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35828
35829 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35830 Insert_Dereference_Action when rewriting an implicit dereference into
35831 an explicit one, this will be taken care of during expansion of the
35832 explicit dereference.
35833 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35834 of non-packed slices, since the dereference action generated by
35835 expansion of the explicit dereference is needed in any case.
35836 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35837 analyze and resolve the rewritten explicit dereference so it is seen
35838 by the expander.
35839 (Insert_Dereference_Action): This procedure is now called only for the
35840 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35841 dereferences that do not come from source (including explicit
35842 dereferences resulting from rewriting implicit ones), but do not
35843 recursively insert a check for the dereference nodes contained within
35844 the check.
35845 (Insert_Dereference_Action): Clarify and correct comment.
35846
35847 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
35848
35849 PR ada/14131
35850 Move language detection to the top level.
35851 * config-lang.in: Build by default.
35852
35853 2004-03-05 Robert Dewar <dewar@gnat.com>
35854
35855 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35856
35857 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35858 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35859 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35860 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35861 unchecked conversion to spec to avoid warnings.
35862
35863 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35864 to Task_ID
35865
35866 * 7stpopsp.adb: Correct casing in To_Task_ID call
35867
35868 * a-strsea.ads, a-strsea.adb: Minor reformatting
35869
35870 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35871
35872 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35873 Adjust Max_Msg_Length to be clearly large enough.
35874
35875 * fe.h: Define In_Same_Source_Unit
35876
35877 * osint.adb: Add pragma Warnings Off to suppress warnings
35878 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35879 aliasing warnings.
35880
35881 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35882
35883 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35884
35885 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35886
35887 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35888
35889 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35890
35891 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35892 node. We now do generate them for gcc back end.
35893
35894 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35895 warning.
35896
35897 * sinput-c.adb: Fix bad name in header.
35898 Add pragma Warnings Off to suppress aliasing warning.
35899
35900 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35901
35902 * snames.h, snames.ads, snames.adb: Add entry for pragma
35903 No_Strict_Aliasing.
35904
35905 2004-03-05 Vincent Celier <celier@gnat.com>
35906
35907 * prj-com.ads: Add hash table Files_Htable to check when a file name
35908 is already a source of another project.
35909
35910 * prj-nmsc.adb (Record_Source): Before recording a new source, check
35911 if its file name is not already a source of another project. Report an
35912 error if it is.
35913
35914 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35915 source file name, call gnatpp with all the sources of the main project.
35916
35917 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35918 of file names.
35919
35920 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35921 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35922 /RUNTIME_SYSTEM=, converted to --RTS=
35923 /NOTABS, converted to -notabs
35924
35925 2004-03-05 Pascal Obry <obry@gnat.com>
35926
35927 * make.adb: Minor reformatting.
35928
35929 2004-03-05 Ed Schonberg <schonberg@gnat.com>
35930
35931 Part of implemention of AI-262.
35932 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35933
35934 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35935 procedure.
35936
35937 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35938 when component type is a partially constrained class-wide subtype.
35939 (Constrain_Discriminated_Type): If parent type has unknown
35940 discriminants, a constraint is illegal, even if full view has
35941 discriminants.
35942 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35943 with unknown discriminants whose full view is a discriminated record.
35944
35945 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35946 flag, to handle properly derivations of tagged types with unknown
35947 discriminants.
35948 (Analyze_Package_Spec, Analyze_Package_Body): Install
35949 Private_With_Clauses before analyzing private part or body.
35950
35951 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35952 Has_Discriminants can be true for a given type (documentation).
35953
35954 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
35955
35956 * s-restri.ads: Fix license (GPL->GMGPL).
35957
35958 * s-tassta.adb: Minor reformatting.
35959
35960 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35961 by calls to Exit_One_ATC_Level, since additional clean up is performed
35962 by this function.
35963
35964 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35965 by calls to Exit_One_ATC_Level, since additional clean up is performed
35966 by this function.
35967
35968 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35969
35970 * trans.c: Reflect GCC changes to fix bootstrap problem.
35971 Add warning for suspicious aliasing unchecked conversion.
35972
35973 2004-03-05 GNAT Script <nobody@gnat.com>
35974
35975 * Make-lang.in: Makefile automatically updated
35976
35977 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
35978
35979 * ali.adb (Read_Instantiation_Instance): Do not modify the
35980 current_file_num when reading information about instantiations, since
35981 this corrupts files in later references.
35982
35983 2004-03-02 Vincent Celier <celier@gnat.com>
35984
35985 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35986 before checking if it is read-only.
35987
35988 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35989 of SRC_DIRS and eliminate duplicates.
35990
35991 * gprcmd.adb: Replace command "path" with command "path_sep" to return
35992 the path separator.
35993 (Usage): Document path_sep
35994
35995 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35996 C++ compiler. No need for a script.
35997 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35998 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35999 subst.
36000
36001 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
36002 where there are Ada sources.
36003 (Set_Ada_Paths): Only add to the include path the source dirs of project
36004 with Ada sources.
36005 (Add_To_Path): Add the Display_Values of the directories, not their
36006 Values.
36007
36008 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
36009 data.
36010
36011 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
36012 is not No_Name.
36013 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
36014 Value is canonicalized.
36015 (Language_Independent_Check): Do not copy Value to Display_Value when
36016 canonicalizing Value.
36017
36018 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
36019 path to find limited with cycles.
36020 (Parse_Single_Project): Use canonical cased path to find the end of a
36021 with cycle.
36022
36023 2004-03-02 Ed Schonberg <schonberg@gnat.com>
36024
36025 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
36026 and not a child unit.
36027
36028 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
36029 appear in a with_clause.
36030
36031 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
36032 only happen in type_annotate mode, do not try to elaborate it.
36033
36034 * exp_util.adb (Force_Evaluation): If expression is a selected
36035 component on the left of an assignment, use a renaming rather than a
36036 temporary to remove side effects.
36037
36038 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
36039 inlined instance body, which is analyzed before the end of the
36040 enclosing scope.
36041
36042 2004-03-02 Robert Dewar <dewar@gnat.com>
36043
36044 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
36045 sem_ch4.adb: Use new feature for substitution of keywords in VMS
36046
36047 * errout.ads, errout.adb: Implement new circuit for substitution of
36048 keywords in VMS.
36049
36050 * sem_case.adb (Analyze_Choices): Place message properly when case is
36051 a subtype reference rather than an explicit range.
36052
36053 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
36054
36055 2004-03-02 Doug Rupp <rupp@gnat.com>
36056
36057 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
36058
36059 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
36060
36061 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
36062
36063 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36064
36065 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
36066 BLKmode bitfield.
36067
36068 2004-02-25 Robert Dewar <dewar@gnat.com>
36069
36070 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36071 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
36072 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
36073 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
36074 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
36075 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
36076 the defining instance of the type to avoid aliasing problems.
36077 Fix copyright header. Fix bad comments in package header.
36078
36079 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
36080
36081 2004-02-25 Ed Schonberg <schonberg@gnat.com>
36082
36083 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
36084 rewritten as references when aliased through an address clause.
36085
36086 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
36087 whether call can be interpreted as an indirect call to the result of a
36088 parameterless function call returning an access subprogram.
36089
36090 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
36091
36092 Code clean up:
36093 * exp_ch7.adb (Make_Clean): Remove generation of calls to
36094 Unlock[_Entries], since this is now done by Service_Entries directly.
36095
36096 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
36097
36098 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
36099 Requeue_Call for better code readability. Change spec and update calls:
36100 PO_Service_Entries now unlock the PO on exit.
36101 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
36102 PO_Service_Entries.
36103
36104 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
36105
36106 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
36107
36108 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
36109
36110 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
36111 protected subprogram call and analyzing the result of such expanding
36112 in case when the called protected subprogram is eliminated.
36113
36114 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
36115 names.
36116
36117 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
36118
36119 * Makefile.in: Clean ups.
36120
36121 2004-02-23 Ed Schonberg <schonberg@gnat.com>
36122
36123 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
36124 protected operations if original subprogram is flagged as eliminated.
36125 (Expand_N_Subprogram_Body): For a protected operation, create
36126 discriminals for next operation before checking whether the operation
36127 is eliminated.
36128
36129 * exp_ch9.adb (Expand_N_Protected_Body,
36130 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
36131 for internal protected operations if the original subprogram is
36132 eliminated.
36133
36134 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
36135 declared in a single protected object.
36136
36137 2004-02-23 Vincent Celier <celier@gnat.com>
36138
36139 * prj-attr.adb: Make attribute Builder'Executable an associative array,
36140 case insensitive if file names are case insensitive, instead of a
36141 standard associative array.
36142
36143 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
36144 them as case insensitive on platforms where the file names are case
36145 sensitive.
36146
36147 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
36148 project file has already been parsed that canonical path are compared.
36149
36150 2004-02-23 Robert Dewar <dewar@gnat.com>
36151
36152 * sinput-c.ads: Correct bad unit title in header
36153
36154 * freeze.adb: Minor reformatting
36155
36156 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36157
36158 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
36159 nonaddressable COMPONENT_REF that is removing padding that we are
36160 taking the address of, take the address of the padded record instead
36161 if item is variable size.
36162
36163 2004-02-20 Robert Dewar <dewar@gnat.com>
36164
36165 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
36166
36167 2004-02-20 Ed Schonberg <schonberg@gnat.com>
36168
36169 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
36170 itype references for the constrained designated type of a component
36171 whose base type is already frozen.
36172
36173 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36174
36175 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36176 avoid GCC warnings.
36177
36178 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36179
36180 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36181 identifier for a phantom package that rewrites the formal package
36182 declaration with a box. The Add semantic decorations for the defining
36183 identifier from the original node (that represents the formal package).
36184
36185 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36186
36187 * Make-lang.in (ada/stamp-sdefault): Use the top level
36188 move-if-change.
36189
36190 2004-02-19 Richard Henderson <rth@redhat.com>
36191
36192 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36193
36194 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36195
36196 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36197 Scan_ALI can be used for multiple ALI files without reinitializing
36198 between calls.
36199
36200 2004-02-18 Robert Dewar <dewar@gnat.com>
36201
36202 * debug.adb: Minor reformatting.
36203
36204 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36205
36206 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36207 to zero if there is an address clause.
36208
36209 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36210
36211 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36212
36213 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36214
36215 * layout.adb (Layout_Component_List): Revise generation of call to
36216 discriminant-checking function to pass selections of all of the type's
36217 discriminants rather than just the variant-controlling discriminant.
36218
36219 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36220
36221 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36222 fail in the current setup and triggers spurious system error messages.
36223 Pretend it occurred and failed instead.
36224
36225 2004-02-18 Vincent Celier <celier@gnat.com>
36226
36227 * bld.adb: Mark FLDFLAGS as saved
36228 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36229 it is not the root project. Put each directory to be
36230 extended between double quotes to prevent it to be expanded on Windows.
36231 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36232 the project file. Set them back to their initial values if they have not
36233 been set in the project file.
36234
36235 * gprcmd.adb: (Gprdebug, Debug): New global variables
36236 (Display_Command): New procedure
36237 (Usage): Document new command "linkopts"
36238 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36239 Implement new command "linkopts"
36240 Remove quotes that may be around arguments for "extend"
36241 Always call Normalize_Pathname with arguments formatted for the platform
36242
36243 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36244 Change @echo to @$(display) in target clean to be able to clean silently
36245
36246 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36247
36248 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36249 canonical case.
36250
36251 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36252 = Extending_All when current project is an extending all project.
36253
36254 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36255 set to True only for LINK command, after Unix switch -o.
36256 (Process_Arguments): Set Output_File_Expected to True for LINK command
36257 after Unix switch -o. When Output_File_Expected is True, never add an
36258 extension to a file name.
36259
36260 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36261 option file name, only to the --for-linker= switch.
36262 (Option_File_Name): If option file name do not end with ".opt", append
36263 "/OPTIONS".
36264
36265 2004-02-18 GNAT Script <nobody@gnat.com>
36266
36267 * Make-lang.in: Makefile automatically updated
36268
36269 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36270
36271 * Make-lang.in (stamp-sdefault): Do not depend on
36272 move-if-change.
36273
36274 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36275
36276 * config-lang.in: Disable Ada by default until probe logic for
36277 a bootstrap Ada compiler can be moved to the top level configure
36278 script.
36279
36280 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36281
36282 * decl.c (components_to_record): Don't claim that the internal fields
36283 we make to hold the variant parts are semantically addressable, because
36284 they are not.
36285
36286 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36287 adjust the comment describing the modular type form when we can use it.
36288 (Install_PAT): Account for the Esiz renaming.
36289
36290 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36291 sc_onstack context indication before raising the exception to which
36292 the signal is mapped. Allows better handling of later signals possibly
36293 triggered by the resumed user code if the exception is handled.
36294
36295 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36296
36297 * 5zinit.adb: Removed, no longer used.
36298
36299 2004-02-12 Robert Dewar <dewar@gnat.com>
36300
36301 * ali.adb: Remove separating space between parameters on R line. Makes
36302 format consistent with format used by the binder for Set_Globals call.
36303
36304 * atree.ads, atree.adb: Minor reformatting (new function header format)
36305
36306 * bindgen.adb: Add Run-Time Globals documentation section containing
36307 detailed documentation of the globals passed from the binder file to
36308 the run time.
36309
36310 * gnatls.adb: Minor reformatting
36311
36312 * init.c (__gnat_set_globals): Add note pointing to documentation in
36313 bindgen.
36314
36315 * lib-writ.ads, lib-writ.adb: Remove separating space between
36316 parameters on R line.
36317 Makes format consistent with format used by the binder for Set_Globals
36318 call.
36319
36320 * osint.ads: Add 2004 to copyright notice
36321 Minor reformatting
36322
36323 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36324 Noticed during code reading, documentation issue only
36325
36326 * usage.adb: Remove junk line for obsolete C switch
36327 Noticed during code reading
36328
36329 2004-02-12 Vincent Celier <celier@gnat.com>
36330
36331 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36332 extend for each directory, so that multiple /** directories are
36333 extended individually.
36334 (Recursive_Process): Set the default for LANGUAGES to ada
36335
36336 * gprcmd.adb: Define new command "ignore", to do nothing.
36337 Implement new comment "path".
36338
36339 * Makefile.generic: Suppress output when SILENT is set
36340 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36341 used, so that the correct compiler is invoked.
36342 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36343 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36344
36345 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36346
36347 * Makefile.in: Clean ups and remove obsolete targets.
36348
36349 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36350
36351 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36352 predicate declared in exp_util.
36353
36354 * exp_util.adb: Add comments.
36355
36356 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36357 visibility before compiling context of the subunit.
36358
36359 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36360 value but the name is a procedure, do not attempt to analyze as a call,
36361 in order to obtain more telling diagnostics.
36362
36363 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36364 'Access on parameterless function calls.
36365 (Normalize_Actuals): For a parameterless function call with missing
36366 actuals, defer diagnostic until resolution of enclosing call.
36367
36368 * sem_util.adb (Wrong_Type): If the context type is an access to
36369 subprogram and the expression is a procedure name, suggest a missing
36370 'attribute.
36371
36372 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36373 Nathanael Nerode <neroden@gcc.gnu.org>
36374
36375 PR ada/6637
36376 PR ada/5911
36377 Merge with libada-branch:
36378 * config-lang.in: Build libada only when ada is built.
36379
36380 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36381
36382 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36383 for a tagged type, verify that both formals have the same type.
36384
36385 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36386 temporary when the formal is an in-parameter and the actual a possibly
36387 unaligned slice.
36388
36389 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36390 when expansion is disabled, to ensure proper name capture with
36391 overloaded literals. Condition can be of any boolean type, resolve
36392 accordingly.
36393
36394 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36395 renaming is for a formal subprogram with a default operator name, and
36396 there is a usable operator that is visible at the point of
36397 instantiation.
36398
36399 2004-02-09 Robert Dewar <dewar@gnat.com>
36400
36401 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36402 rewrite to ignore errors in ali files, intended to allow tools downward
36403 compatibility with new versions of ali files.
36404
36405 * ali.ads: Add new parameter Ignore_Errors
36406
36407 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36408 duplicating the error message giving the file with restrictions.
36409
36410 * debug.adb: Add debug flag I for gnatbind
36411
36412 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36413 operators for the case where the operator is a defining operator.
36414
36415 * exp_ch3.adb: Minor reformatting (new function spec format).
36416
36417 * exp_ch4.adb: Add comment for previous change, and make minor
36418 adjustment to loop to always check for improper loop termination.
36419 Minor reformatting throughout (new function spec format).
36420
36421 * gnatbind.adb: Implement -di debug flag for gnatbind
36422
36423 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36424
36425 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36426
36427 * lib-load.adb: Fix bad assertion.
36428 Found by testing and code reading.
36429 Minor reformatting.
36430
36431 * lib-load.ads: Minor reformatting.
36432
36433 * lib-writ.adb: There is only one R line now.
36434
36435 * lib-writ.ads: Add documentation on making downward compatible changes
36436 to ali files so old tools work with new ali files.
36437 There is only one R line now.
36438 Add documentation on format incompatibilities (with special GPS note)
36439
36440 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36441
36442 * par-load.adb: Minor reformatting
36443
36444 * sem_ch8.adb: Fix to error message from last update
36445 Minor reformatting and restructuring of code from last update
36446
36447 * par-prag.adb, snames.adb, snames.ads, snames.h,
36448 sem_prag.adb: Implement pragma Profile.
36449
36450 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36451 options.
36452
36453 * usage.adb: Add line for -gnatyN switch
36454
36455 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36456
36457 2004-02-09 Albert Lee <lee@gnat.com>
36458
36459 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36460
36461 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36462
36463 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36464 slices.
36465
36466 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36467 is nested in an instance that is not frozen yet, to avoid
36468 order-of-elaboration problems in gigi.
36469
36470 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36471 body the attribute is legal.
36472
36473 2004-02-09 Robert Dewar <dewar@gnat.com>
36474
36475 * s-rident.ads: Minor comment correction
36476
36477 * targparm.adb: Remove dependence on uintp completely. There was
36478 always a bug in Make in that it called Targparm before initializing
36479 the Uint package. The old code appeared to get away with this, but
36480 the new code did not! This caused an assertion error in gnatmake.
36481
36482 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36483 are indeed fully supported.
36484
36485 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36486
36487 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36488
36489 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36490
36491 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36492 with targetm.calls.promote_prototypes.
36493
36494 2004-02-04 Robert Dewar <dewar@gnat.com>
36495
36496 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36497 ali.ads, gprcmd.adb: Minor reformatting
36498
36499 * bindgen.adb: Output restrictions string for new style restrictions
36500 handling
36501
36502 * impunit.adb: Add s-rident.ads (System.Rident) and
36503 s-restri (System.Restrictions)
36504
36505 * lib-writ.adb: Fix bug in writing restrictions string (last few
36506 entries wrong)
36507
36508 * s-restri.ads, s-restri.adb: Change name Restrictions to
36509 Run_Time_Restrictions to avoid conflict with package name.
36510 Add circuit to read and acquire run time restrictions.
36511
36512 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36513
36514 * restrict.ads, restrict.adb: Use the new restriction
36515 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36516
36517 * sem_prag.adb: No_Task_Attributes is a synonym of
36518 No_Task_Attributes_Package.
36519
36520 * snames.ads, snames.adb: New entry for proper handling of
36521 No_Task_Attributes.
36522
36523 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36524 (AI-00249) that supersedes the GNAT specific restriction
36525 No_Task_Attributes.
36526
36527 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36528
36529 * sem_prag.adb:
36530 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36531 body, an identifier may be wrapped in an unchecked conversion.
36532
36533 2004-02-04 Vincent Celier <celier@gnat.com>
36534
36535 * lib-writ.ads: Comment update for the W lines
36536
36537 * bld.adb: (Expression): An empty string list is static
36538
36539 * fname-uf.adb: Minor comment update
36540
36541 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36542
36543 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36544 restrictions on the target.
36545
36546 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36547
36548 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36549 gen_rtx.
36550
36551 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36552
36553 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36554
36555 2004-02-02 Vincent Celier <celier@gnat.com>
36556
36557 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36558 comment before the usage.
36559 Gprcmd: Fail when command is not recognized.
36560 (Usage): Document command "prefix"
36561
36562 * g-md5.adb (Digest): Process last block.
36563 (Update): Do not process last block. Store remaining characters and
36564 length in Context.
36565
36566 * g-md5.ads (Update): Document that several call to update are
36567 equivalent to one call with the concatenated string.
36568 (Context): Add fields to allow new Update behaviour.
36569
36570 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36571 defaulted to False.
36572 When May_Fail is True and no existing file can be found, return No_File.
36573
36574 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36575 functions.
36576
36577 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36578 spec file name instead on the W line.
36579
36580 2004-02-02 Robert Dewar <dewar@gnat.com>
36581
36582 * ali.adb: Read and acquire info from new format restrictions lines
36583
36584 * bcheck.adb: Add circuits for checking restrictions with parameters
36585
36586 * bindgen.adb: Output dummy restrictions data
36587 To be changed later
36588
36589 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36590 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36591 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36592 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36593 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36594
36595 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36596 the warning message on access to possibly uninitialized variable S)
36597 Minor changes for new restrictions handling.
36598
36599 * gnatbind.adb: Minor reformatting
36600 Minor changes for new restrictions handling
36601 Move circuit for -r processing here from bcheck (cleaner)
36602
36603 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36604
36605 * lib-writ.adb: Output new format restrictions lines
36606
36607 * lib-writ.ads: Document new R format lines for new restrictions
36608 handling.
36609
36610 * s-restri.ads/adb: New files
36611
36612 * Makefile.rtl: Add entry for s-restri.ads/adb
36613
36614 * par-ch3.adb: Fix bad error messages starting with upper case letter
36615 Minor reformatting
36616
36617 * restrict.adb: Major rewrite throughout for new restrictions handling
36618 Major point is to handle restrictions with parameters
36619
36620 * restrict.ads: Major changes in interface to handle restrictions with
36621 parameters. Also generally simplifies setting of restrictions.
36622
36623 * snames.ads/adb: New entry for proper handling of No_Requeue
36624
36625 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36626 restriction counting.
36627 Other minor changes for new restrictions handling
36628
36629 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36630 Restriction_Warnings now allows full parameter notation
36631 Major rewrite of Restrictions for new restrictions handling
36632
36633 2004-02-02 Javier Miranda <miranda@gnat.com>
36634
36635 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36636 syntax rule for object renaming declarations.
36637 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36638 component definitions.
36639
36640 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36641 components.
36642 (Array_Type_Declaration): Give support to access components. In addition
36643 it was also modified to reflect the name of the object in anonymous
36644 array types. The old code did not take into account that it is possible
36645 to have an unconstrained anonymous array with an initial value.
36646 (Check_Or_Process_Discriminants): Allow access discriminant in
36647 non-limited types.
36648 (Process_Discriminants): Allow access discriminant in non-limited types
36649 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36650 node. Change Ada0Y to Ada 0Y in comments
36651
36652 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36653 equality operators.
36654 Change Ada0Y to Ada 0Y in comments
36655
36656 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36657 renamings Change Ada0Y to Ada 0Y in comments
36658
36659 * sem_type.adb (Find_Unique_Type): Give support to the equality
36660 operators for universal access types
36661 Change Ada0Y to Ada 0Y in comments
36662
36663 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36664
36665 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36666 field.
36667 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36668 Change Ada0Y to Ada 0Y in comments
36669
36670 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36671 component definition and object renaming nodes
36672 Change Ada0Y to Ada 0Y in comments
36673
36674 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36675
36676 * restrict.adb: Use the new restriction identifier
36677 No_Requeue_Statements instead of the old No_Requeue for defining the
36678 restricted profile.
36679
36680 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36681 No_Requeue_Statements.
36682
36683 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36684 that supersedes the GNAT specific restriction No_Requeue. The later is
36685 kept for backward compatibility.
36686
36687 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36688
36689 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36690 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36691 pragma and fix incorrect ones.
36692
36693 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36694 warning if the pragma is redundant.
36695
36696 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36697
36698 * 5staprop.adb: Add missing 'constant' keywords.
36699
36700 * Makefile.in: use consistent value for SYMLIB on
36701 platforms where libaddr2line is supported.
36702
36703 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36704
36705 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36706 annotating types.
36707
36708 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36709
36710 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36711 handlers in the environment thread. This allows proper propagation of
36712 an exception on stack overflows in this thread even when the builtin
36713 ABI stack-checking scheme is used without support for a stack reserve
36714 region.
36715
36716 * utils.c (create_field_decl): Augment the head comment about bitfield
36717 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36718 here, because the former is not accurate enough at this point.
36719 Let finish_record_type decide instead.
36720 Don't make a bitfield if the field is to be addressable.
36721 Always set a size for the field if the record is packed, to ensure the
36722 checks for bitfield creation are triggered.
36723 (finish_record_type): During last pass over the fields, clear
36724 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36725 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36726 from DECL_BIT_FIELD.
36727
36728 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36729
36730 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36731 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36732 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36733
36734 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36735
36736 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36737
36738 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36739 (ZCX_By_Default): Likewise.
36740 (Front_End_ZCX_Support): Likewise.
36741
36742 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36743 (Initialize_Lock): Mark Level unreferenced.
36744 (Sleep): Mark Reason unreferenced.
36745 (Timed_Sleep): Likewise.
36746 (Wakeup): Likewise.
36747 (Exit_Task): Use Result.
36748 (Check_No_Locks): Mark Self_ID unreferenced.
36749
36750 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36751 (Bound_Thread_Attributes): Make Sproc constant.
36752 (New_Bound_Thread_Attributes): Likewise.
36753
36754 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36755
36756 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36757 one-dimensional array an slice assignments, when component type is
36758 controlled.
36759
36760 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36761 component type is controlled, and control_actions are in effect, use
36762 TSS procedure rather than generating inline code.
36763
36764 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36765 arrays with controlled components.
36766
36767 2004-01-26 Vincent Celier <celier@gnat.com>
36768
36769 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36770 command line for the non VMS case.
36771
36772 * gnatlink.adb (Process_Binder_File): When building object file, if
36773 GNU linker is used, put all object paths between quotes, to prevent ld
36774 error when there are unusual characters (such as '!') in the paths.
36775
36776 * Makefile.generic: When there are sources in Ada and the main is in
36777 C/C++, invoke gnatmake with -B, instead of -z.
36778
36779 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36780 from VMS_Conversion.
36781 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36782 specification of argument file on the command line.
36783
36784 2004-01-26 Bernard Banner <banner@gnat.com>
36785
36786 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36787
36788 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36789
36790 * snames.adb: Update copyright notice.
36791 Add info on slice assignment for controlled arrays.
36792
36793 2004-01-23 Robert Dewar <dewar@gnat.com>
36794
36795 * exp_aggr.adb: Minor reformatting
36796
36797 * exp_ch9.adb: Minor code clean up
36798 Minor reformatting
36799 Fix bad character in comment
36800
36801 PR ada/13471
36802 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36803 unexpected end of file, along with more detailed message.
36804
36805 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36806
36807 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36808 PAT.
36809
36810 * decl.c (copy_alias_set): New function.
36811 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36812
36813 2004-01-23 Doug Rupp <rupp@gnat.com>
36814
36815 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36816 lib$${file} in case subsequent character is not a separator.
36817
36818 2004-01-23 Vincent Celier <celier@gnat.com>
36819
36820 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36821 when the GCC version is at least 3.
36822
36823 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36824 Remove all "Opt.", to prepare for opt split
36825
36826 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36827 Extends_All. Set to True when the project parsed is an extending all
36828 project. Fails for importing an extending all project only when the
36829 imported project is an extending all project.
36830 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36831 depending on the value of Extends_All returned.
36832
36833 * prj-proc.adb (Process): Check that no project shares its object
36834 directory with a project that extends it, directly or indirectly,
36835 including a virtual project.
36836 Check that no project extended by another project shares its object
36837 directory with another also extended project.
36838
36839 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36840 Kind = N_With_Clause
36841
36842 * prj-tree.ads: Minor reformatting
36843 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36844
36845 2004-01-23 Ed Schonberg <schonberg@gnat.com>
36846
36847 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36848 applies to a type with an incomplete view, use full view in Name of
36849 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36850
36851 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36852
36853 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36854 SCHED_RR, since other values are not supported by this policy.
36855 (Initialize): Move initialization of mutex attribute to package
36856 elaboration, to prevent early access to this variable.
36857
36858 * Makefile.in: Remove mention of Makefile.adalib, unused.
36859
36860 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36861 1ssecsta.ads: Removed, unused.
36862
36863 2004-01-21 Javier Miranda <miranda@gnat.com>
36864
36865 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36866 entity if already built in the current scope.
36867
36868 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36869 reminder in internal scopes. Required for nested limited aggregates.
36870
36871 2004-01-21 Doug Rupp <rupp@gnat.com>
36872
36873 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36874 VMS. Replace all occurences of libgnat- and libgnarl- with
36875 libgnat$(hyphen) and libgnarl$(hyphen).
36876 Fixed shared library build problem on VMS.
36877
36878 2004-01-21 Robert Dewar <dewar@gnat.com>
36879
36880 * mlib-prj.adb: Minor reformatting
36881
36882 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
36883
36884 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36885 'constant' keywords for declaration of pointers that are not modified.
36886
36887 * exp_pakd.adb: Fix English in comment.
36888
36889 2004-01-21 Ed Schonberg <schonberg@gnat.com>
36890
36891 PR ada/10889
36892 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36893 copy all attributes of the parent, including the foreign language
36894 convention.
36895
36896 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
36897
36898 PR ada/10565
36899 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36900 for 'delay until' statement.
36901
36902 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
36903
36904 * Make-lang.in: Replace $(docdir) with doc.
36905 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36906 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36907 to use consistent MAKEINFO rule.
36908 (ada.man, ada.srcman): Dummy entry.
36909 (ADA_INFOFILES): Define.
36910 (ada.info, ada.srcinfo): New rules.
36911
36912 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
36913
36914 * utils.c: Update copyright notice, missed in previous change.
36915
36916 2004-01-19 Vincent Celier <celier@gnat.com>
36917
36918 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36919 args if Bind is True. Set First_ALI, if not already done.
36920 (Build_Library): For Stand Alone Libraries, extract from one ALI file
36921 an eventual --RTS switch, for gnatbind, and all backend switches +
36922 --RTS, for linking.
36923
36924 2004-01-19 Robert Dewar <dewar@gnat.com>
36925
36926 * sem_attr.adb, memtrack.adb: Minor reformatting
36927
36928 2004-01-19 Ed Schonberg <schonberg@gnat.com>
36929
36930 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36931 that rename enumeration literals. This is properly done in sem_eval.
36932
36933 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36934 to functions that rename enumeration literals.
36935
36936 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36937 functions that rename enumeration literals.
36938
36939 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
36940
36941 * Make-lang.in (utils.o): Depend on target.h.
36942 * utils.c: Include target.h.
36943 (process_attributes): Use targetm.have_named_sections instead
36944 of ASM_OUTPUT_SECTION_NAME.
36945
36946 2004-01-16 Andreas Jaeger <aj@suse.de>
36947
36948 * Makefile.in: Add $(DESTDIR).
36949
36950 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
36951
36952 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36953 also when not defining if a Size clause applies. That information is
36954 not to be ignored.
36955
36956 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
36957
36958 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36959 symbolic links for the shared gnat run time when needed.
36960
36961 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
36962
36963 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36964 for writing, and terminate with an error message if not.
36965
36966 2004-01-15 Ed Schonberg <schonberg@gnat.com>
36967
36968 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36969 warning on an access to subprogram in an instance, when the target
36970 type is declared in the same generic unit.
36971 (Eval_Attribute): If 'access is known to fail accessibility check,
36972 rewrite as a raise statement.
36973
36974 2004-01-15 GNAT Script <nobody@gnat.com>
36975
36976 * Make-lang.in: Makefile automatically updated
36977
36978 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
36979
36980 * Make-lang.in (ada.srcextra): Dummy entry.
36981
36982 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
36983
36984 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36985
36986 2004-01-13 Ed Schonberg <schonberg@gnat.com>
36987
36988 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36989 components that are initialized with aggregates.
36990
36991 2004-01-13 Vincent Celier <celier@gnat.com>
36992
36993 * gnatlink.adb (Process_Binder_File): To find directory of shared
36994 libgcc, if "gcc-lib" is not a subdirectory, look for the last
36995 subdirectory "lib" in the path of the shared libgnat or libgnarl.
36996
36997 * make.adb (Gnatmake): If GCC version is at least 3, link with
36998 -shared-libgcc, when there is at least one shared library project.
36999
37000 * opt.ads (GCC_Version): New integer constant.
37001
37002 * adaint.c (get_gcc_version): New function.
37003
37004 2004-01-13 Robert Dewar <dewar@gnat.com>
37005
37006 * sem_dist.adb, sem_res.adb, sem_util.adb,
37007 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
37008 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
37009
37010 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
37011
37012 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
37013 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
37014 declarations.
37015
37016 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
37017
37018 * misc.c: Remove trailing spaces.
37019 Update copyright notice missed in previous change.
37020
37021 PR ada/13572
37022 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
37023 prefix/share/make
37024
37025 * Makefile.generic: Update copyright.
37026 Add license notice.
37027
37028 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
37029 of prefix/share/make.
37030
37031 * Makefile.prolog: Update copyright.
37032 Add license notice.
37033
37034 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
37035
37036 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
37037 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
37038 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
37039 instead of String.
37040
37041 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
37042 signature.
37043
37044 2004-01-12 Javier Miranda <miranda@gnat.com>
37045
37046 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
37047 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
37048 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
37049 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
37050 Component_Definition node.
37051
37052 2004-01-12 Ed Falis <falis@gnat.com>
37053
37054 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
37055
37056 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
37057
37058 * link.c: Change default libgnat kind to STATIC for FreeBSD.
37059
37060 2004-01-12 Bernard Banner <banner@gnat.com>
37061
37062 * Makefile.in: map 86numaux to a-numaux for x86_64
37063
37064 2004-01-12 Ed Schonberg <schonberg@gnat.com>
37065
37066 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
37067 generated to rename a generic actual, go to the actual itself, the
37068 subtype is not a user-visible entity.
37069
37070 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
37071 part is a private subtype, reset the visibility of its full view, if
37072 any, to be consistent.
37073
37074 PR ada/13417
37075 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
37076 to use a generic package G as a formal package for another generic
37077 declared within G.
37078
37079 2004-01-12 Robert Dewar <dewar@gnat.com>
37080
37081 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
37082
37083 * usage.adb: Remove mention of obsolete -gnatwb switch
37084 Noticed during code reading
37085
37086 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
37087
37088 * 1ssecsta.adb: Minor changes for -gnatwa warnings
37089
37090 2004-01-12 GNAT Script <nobody@gnat.com>
37091
37092 * Make-lang.in: Makefile automatically updated
37093
37094 2004-01-09 Mark Mitchell <mark@codesourcery.com>
37095
37096 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
37097
37098 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37099
37100 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
37101
37102 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
37103
37104 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
37105 Update comment and copyright date.
37106 * stamp-xgnatug: Delete.
37107
37108 2004-01-05 Robert Dewar <dewar@gnat.com>
37109
37110 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
37111 be modified by the binder generated main program if the -D switch is
37112 used.
37113
37114 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
37115 imported functions (since now we expect this to be done for imported
37116 functions)
37117
37118 * 5vtaprop.adb: Add several ??? for sections requiring more comments
37119 Minor reformatting throughout
37120
37121 * 5zinit.adb: Minor reformatting
37122 Add 2004 to copyright date
37123 Minor changes to avoid -gnatwa warnings
37124 Correct some instances of using OR instead of OR ELSE (noted while
37125 doing reformatting)
37126
37127 * sprint.adb: Minor updates to avoid -gnatwa warnings
37128
37129 * s-secsta.ads, s-secsta.adb:
37130 (SS_Get_Max): New function to obtain high water mark for ss stack
37131 Default_Secondary_Stack is not a constant since it may be modified by
37132 the binder generated main program if the -D switch is used.
37133
37134 * switch-b.adb: New -Dnnn switch for binder
37135
37136 * switch-c.adb:
37137 Make -gnatg imply all warnings currently in -gnatwa
37138
37139 * vms_conv.adb: Minor reformatting
37140 Add 2004 to copyright notice
37141 Add 2004 to printed copyright notice
37142
37143 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
37144 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
37145 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
37146 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
37147 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
37148 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
37149 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
37150 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
37151 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
37152 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
37153 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
37154 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
37155 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
37156 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
37157 checks.adb, clean.adb, cstand.adb, einfo.ads,
37158 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
37159 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
37160 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
37161 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
37162 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
37163 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
37164 Minor reformatting and code clean ups.
37165 Minor changes to prevent -gnatwa warnings
37166
37167 * ali.adb: Minor reformatting and cleanup of code
37168 Acquire new SS indication of secondary stack use from ali files
37169
37170 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37171 (since now we expect this to be done for imported functions)
37172
37173 * bindgen.adb: Generate call to modify default secondary stack size if
37174 -Dnnn switch given
37175
37176 * bindusg.adb: Add line for new -D switch
37177
37178 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37179 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37180 Add circuitry for both records and arrays to avoid gigi
37181 processing if the type involved has non-bit-aligned components
37182
37183 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37184 N_String_Literal node always references an E_String_Literal_Subtype
37185 entity. This may not be true in the future.
37186 (Possible_Bit_Aligned_Component): Move processing of
37187 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37188
37189 * exp_ch6.adb (Expand_Thread_Body): Pick up
37190 Default_Secondary_Stack_Size as variable so that we get value modified
37191 by possible -Dnnn binder parameter.
37192
37193 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37194 (Type_May_Have_Bit_Aligned_Components): New function.
37195
37196 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37197 (Type_May_Have_Bit_Aligned_Components): New function.
37198
37199 * fe.h: (Set_Identifier_Casing): Fix prototype.
37200 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37201 Minor reformatting.
37202
37203 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37204 importing constant atomic/volatile objects.
37205 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37206 unless explicit Pure_Function pragma given, to avoid insidious bug of
37207 call to non-pure imported function getting eliminated.
37208
37209 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37210 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37211 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37212 Add 2004 to printed copyright notice
37213
37214 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37215 stack used.
37216
37217 * Makefile.rtl: Add entry for g-sestin.o
37218 g-sestin.ads: New file.
37219
37220 * mdll.adb: Minor changes to avoid -gnatwa warnings
37221
37222 * mlib-tgt.adb: Minor reformatting
37223
37224 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37225 New switch Sec_Stack_Used (GNAT, GNATBIND)
37226 Make Default_Secondary_Stack_Size a variable instead of a constant,
37227 so that it can be modified by the new -Dnnn bind switch.
37228
37229 * rtsfind.adb (Load_Fail): Give full error message in configurable
37230 run-time mode if all_errors mode is set. This was not done in the case
37231 of a file not found, which was an oversight.
37232 Note if secondary stack unit is used by compiler.
37233
37234 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37235 ineffective elaborate all pragmas on non-visible packages (this
37236 happened when a renamed subprogram was called). Now the elaborate all
37237 always goes on the package containing the renaming rather than the one
37238 containing the renamed subprogram.
37239
37240 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37241 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37242
37243 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37244 has an Etype that references an E_String_Literal.
37245 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37246 always references an E_String_Literal_Subtype entity. This may not
37247 be true in the future.
37248
37249 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37250 pragma location.
37251
37252 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37253 call.
37254
37255 2004-01-05 Ed Falis <falis@gnat.com>
37256
37257 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37258 form.
37259
37260 2004-01-05 Vincent Celier <celier@gnat.com>
37261
37262 * bld.adb: Minor comment updates
37263 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37264 of Item_Name).
37265
37266 * make.adb (Gnatmake): Special process for files to compile/check when
37267 -B is specified. Fail when there are only foreign mains in attribute
37268 Main of the project file and -B is not specified. Do not skip bind/link
37269 steps when -B is specified.
37270
37271 * makeusg.adb: Document new switch -B
37272
37273 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37274
37275 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37276
37277 * vms_data.ads: Add new GNAT PRETTY qualifier
37278 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37279
37280 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37281
37282 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37283 case.
37284
37285 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37286 Set_Identifier_Casing.
37287
37288 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37289 has size that overflows.
37290
37291 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37292
37293 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37294 -gnatwa warning on static condition.
37295
37296 2004-01-05 Doug Rupp <rupp@gnat.com>
37297
37298 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37299
37300 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37301
37302 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37303 all attributes, including read-only attribute.
37304
37305 2004-01-05 Pascal Obry <obry@gnat.com>
37306
37307 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37308 library naming scheme.
37309
37310 * mlib-prj.adb (Build_Library): Generate different names for the static
37311 or dynamic version of the GNAT runtime. This is needed to support the
37312 new shared library naming scheme.
37313 (Process_Binder_File): Add detection of shared library in binder file
37314 based on the new naming scheme.
37315
37316 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37317 scheme for the shared runtime libraries.
37318
37319 * Makefile.in:
37320 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37321 scheme.
37322 (install-gnatlib): Do not create symlinks for shared libraries.
37323 (gnatlib-shared-default): Idem.
37324 (gnatlib-shared-dual-win32): New target. Not used for now as the
37325 auto-import feature does not support arrays/records.
37326 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37327 (gnatlib-shared-vms): Fix shared runtime libraries names.
37328
37329 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37330 dependent runtime shared library name.
37331
37332 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37333
37334 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37335 than the object.
37336
37337 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37338
37339 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37340 protected objects when allocator has a subtype indication, not a
37341 qualified expression. Note that qualified expressions may have to be
37342 checked when limited aggregates are implemented.
37343
37344 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37345 pure, emit warning.
37346 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37347 subprogram is imported, remove warning.
37348
37349 2004-01-05 Geert Bosch <bosch@gnat.com>
37350
37351 * s-poosiz.adb: Update copyright notice.
37352 (Allocate): Use Task_Lock to protect against concurrent access.
37353 (Deallocate): Likewise.
37354
37355 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37356
37357 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37358 comment.
37359
37360 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37361
37362 * gnat_ug.texi: Force a CVS commit by updating copyright.
37363 * gnat_ug_vxw.texi: Regenerate.
37364 * gnat_ug_wnt.texi: Regenerate.
37365 * gnat_ug_vms.texi: Regenerate.
37366 * gnat_ug_unx.texi: Regenerate.
37367
37368 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37369
37370 * trans.c: Remove uses of "register" specifier in
37371 declarations of local variables.
37372
37373 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37374
37375 * stamp-xgnatug: New stamp file.
37376 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37377 (ada/doctools/xgnatug): Add $(build_exeext).
37378 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37379 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37380
37381 2003-12-17 Ed Falis <falis@gnat.com>
37382
37383 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37384 eliminate warning.
37385
37386 * a-exextr.adb: Add context clause for
37387 Ada.Exceptions.Last_Chance_Handler.
37388
37389 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37390
37391 * cstand.adb (Create_Standard): Change the way how the declaration of
37392 the Duration type is created (making it the same way as it is for all
37393 the other standard types).
37394
37395 2003-12-17 Robert Dewar <dewar@gnat.com>
37396
37397 * s-crtl.ads: Fix header format
37398 Change Pure to Preelaborate
37399
37400 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37401
37402 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37403 the expression type only if it is declared in the current unit.
37404
37405 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37406 are universal and already analyzed, as can occur in constrained
37407 subcomponents that depend on discriminants, when one constraint is a
37408 subtype mark.
37409
37410 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37411 type Any_Fixed is legal as the argument of a conversion, if only one
37412 fixed-point type is in context.
37413
37414 2003-12-17 GNAT Script <nobody@gnat.com>
37415
37416 * Make-lang.in: Makefile automatically updated
37417
37418 2003-12-15 Robert Dewar <dewar@gnat.com>
37419
37420 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37421 sec stack size.
37422
37423 2003-12-15 Vincent Celier <celier@gnat.com>
37424
37425 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37426 (Gnatchop): Do not set failure status when reporting the number of
37427 warnings.
37428
37429 2003-12-15 Doug Rupp <rupp@gnat.com>
37430
37431 * s-ctrl.ads: New file.
37432
37433 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37434
37435 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37436 (GNATBIND_OBJS): Add ada/s-crtl.o.
37437
37438 * Makefile.in [VMS]: Clean up ifeq rules.
37439
37440 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37441 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37442 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37443 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37444 s-tasdeb.adb: Update copyright.
37445 Import System.CRTL.
37446 Make minor modifications to use System.CRTL declared functions instead
37447 of importing locally.
37448
37449 2003-12-15 GNAT Script <nobody@gnat.com>
37450
37451 * Make-lang.in: Makefile automatically updated
37452
37453 2003-12-11 Ed Falis <falis@gnat.com>
37454
37455 * 5zinit.adb: Clean up.
37456
37457 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37458 to __gnat_map_signal, imported from init.c to support
37459 signal -> exception mappings that depend on the vxWorks version.
37460
37461 * init.c:
37462 Created and exported __gnat_map_signal to support signal -> exception
37463 mapping that is dependent on the VxWorks version.
37464 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37465
37466 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37467
37468 * 5wosinte.ads: Link with -mthreads switch.
37469
37470 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37471
37472 * init.c (__gnat_install_handler [NetBSD]): Set
37473 __gnat_handler_installed, as done on all other platforms.
37474 Remove duplicated code.
37475
37476 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37477
37478 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37479
37480 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37481
37482 * sinfo.ads: Fix inconsistent example code in comment.
37483
37484 2003-12-11 Robert Dewar <dewar@gnat.com>
37485
37486 * a-tiinau.adb: Add a couple of comments
37487
37488 * sem_ch3.adb: Minor reformatting
37489
37490 * sem_prag.adb:
37491 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37492 Minor reformatting throughout
37493
37494 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37495
37496 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37497 bounds of a loop, create a separate block in order to generate proper
37498 cleanup actions to prevent memory leaks.
37499
37500 * sem_res.adb (Resolve_Call): After a call to
37501 Establish_Transient_Scope, the call may be rewritten and relocated, in
37502 which case no further processing is needed.
37503
37504 * sem_util.adb: (Wrong_Type): Refine previous fix.
37505 Fixes ACATS regressions.
37506
37507 PR ada/13353
37508 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37509 be inlined.
37510
37511 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37512
37513 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37514 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37515 obsolete files.
37516
37517 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37518 (rts-zfp): Ditto.
37519
37520 2003-12-08 Robert Dewar <dewar@gnat.com>
37521
37522 * 7sintman.adb: Minor reformatting
37523
37524 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37525 standard linker options to get standard libraries linked. We now plan
37526 to provide dummy versions of these libraries to match the appropriate
37527 configurable run-time (e.g. if a library is not needed at all, provide
37528 a dummy empty library).
37529
37530 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37531 options (-L parameters and standard libraries). What we plan to do is
37532 to provide dummy libraries where the libraries are not required.
37533
37534 * gnatbind.adb: Minor comment improvement
37535
37536 2003-12-08 Javier Miranda <miranda@gnat.com>
37537
37538 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37539 aggregate in the parent. Otherwise constants with limited aggregates
37540 are not supported. Add new formal to pass the component type (Ctype).
37541 It is required to call the corresponding IP subprogram in case of
37542 default initialized components.
37543 (Gen_Assign): In case of default-initialized component, generate a
37544 call to the IP subprogram associated with the component.
37545 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37546 of aggregate with default initialized components.
37547 (Has_Default_Init_Comps): Improve implementation to recursively check
37548 all the present expressions.
37549
37550 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37551 to indicate that the initialization call corresponds to a
37552 default-initialized component of an aggregate.
37553 In case of default initialized aggregate with tasks this parameter is
37554 used to generate a null string (this is just a workaround that must be
37555 improved later). In case of discriminants, this parameter is used to
37556 generate a selected component node that gives access to the discriminant
37557 value.
37558
37559 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37560 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37561 allocated aggregates with default-initialized components.
37562
37563 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37564 the box notation is used in positional aggregates.
37565
37566 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37567
37568 * lib.ads: Fix typo in comment
37569
37570 2003-12-08 Vincent Celier <celier@gnat.com>
37571
37572 * prj.adb (Project_Empty): New component Unkept_Comments
37573 (Scan): Remove procedure; moved to Prj.Err.
37574
37575 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37576 (Scan): Remove procedure; moved to Prj.Err.
37577
37578 * prj-dect.adb: Manage comments for the different declarations.
37579
37580 * prj-part.adb (With_Record): New component Node
37581 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37582 Set the scanner to return ends of line and comments as tokens, if
37583 Store_Comments is True.
37584 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37585 comments are associated with these nodes. Store the node IDs in the
37586 With_Records.
37587 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37588 With_Records.
37589 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37590 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37591 current project. Call Tree.Restore afterwards. Set the various nodes
37592 for comment storage (Next_End, End_Of_Line, Previous_Line,
37593 Previous_End).
37594
37595 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37596 defaulted to False.
37597
37598 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37599 to False. When Truncated is True, truncate the string, never go to the
37600 next line.
37601 (Write_End_Of_Line_Comment): New procedure
37602 (Print): Process comments for nodes N_With_Clause,
37603 N_Package_Declaration, N_String_Type_Declaration,
37604 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37605 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37606 Process nodes N_Comment.
37607
37608 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37609 without comments and there are some comments, set the flag
37610 Unkept_Comments to True.
37611 (Scan): If there are comments, set the flag Unkept_Comments to True and
37612 clear the comments.
37613 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37614 (Next_End_Nodes: New table
37615 (Comment_Zones_Of): New function
37616 (Scan): New procedure; moved from Prj. Accumulate comments in the
37617 Comments table and set end of line comments, comments after, after end
37618 and before end.
37619 (Add_Comments): New procedure
37620 (Save, Restore, Seset_State): New procedures
37621 (There_Are_Unkept_Comments): New function
37622 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37623 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37624 procedures.
37625 (First_Comment_After, First_Comment_After_End): New functions
37626 (First_Comment_Before, First_Comment_Before_End): New functions
37627 (Next_Comment): New function
37628 (End_Of_Line_Comment, Follows_Empty_Line,
37629 Is_Followed_By_Empty_Line): New functions
37630 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37631 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37632 (Set_Next_Comment): New procedure
37633 (Default_Project_Node): Associate comment before if the node can store
37634 comments.
37635
37636 * scans.ads (Token_Type): New enumeration value Tok_Comment
37637 (Comment_Id): New global variable
37638
37639 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37640 defaulted to False.
37641 (Scan): Store position of start of comment. If comments are tokens, set
37642 Comment_Id and set Token to Tok_Comment when scanning a comment.
37643 (Set_Comment_As_Token): New procedure
37644
37645 * sinput-p.adb: Update Copyright notice
37646 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37647 that no longer exists.
37648
37649 2003-12-08 Javier Miranda <miranda@gnat.com>
37650
37651 * sem_aggr.adb: Add dependence on Exp_Tss package
37652 Correct typo in comment
37653 (Resolve_Aggregate): In case of array aggregates set the estimated
37654 type of the aggregate before calling resolve. This is needed to know
37655 the name of the corresponding IP in case of limited array aggregates.
37656 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37657 in case of default initialized array components.
37658
37659 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37660 types. Required to give support to limited aggregates in generic
37661 formals.
37662
37663 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37664
37665 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37666 inlined body functions like an instantiation.
37667 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37668 until bounds are analyzed, to diagnose premature use of type.
37669
37670 * sem_util.adb (Wrong_Type): Improve error message when the type of
37671 the expression is used prematurely.
37672
37673 2003-12-08 GNAT Script <nobody@gnat.com>
37674
37675 * Make-lang.in: Makefile automatically updated
37676
37677 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37678
37679 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37680 they are automatically generated by Make-lang.in and cause nothing but
37681 maintenance troubles.
37682
37683 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37684
37685 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37686 version of this unit).
37687
37688 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37689
37690 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37691 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37692 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37693 the body of System.Interrupt_Management common to several targets.
37694 Update copyright notice when appropriate.
37695
37696 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37697 constant.
37698
37699 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37700 to ensure that the kernel fills in the interrupted context structure
37701 before calling a signal handler, which is necessary to be able to
37702 unwind past it. Update the copyright notice.
37703
37704 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37705
37706 * a-elchha.ads: New file.
37707
37708 * a-elchha.adb: New default last chance handler. Contents taken from
37709 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37710
37711 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37712 is moved to a-elchha.adb to provide a target-independent default last
37713 chance handler.
37714
37715 * Makefile.rtl: Add a-elchha.o
37716
37717 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37718
37719 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37720
37721 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37722 declared in an instance, do not inline the call if the instance is not
37723 frozen yet, to prevent order of elaboration problems.
37724
37725 * sem_prag.adb: Add comments for previous fix.
37726
37727 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37728
37729 * g-table.adb: Use the right variable in Set_Item.
37730 Update copyright notice.
37731
37732 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37733
37734 * Makefile.in: Remove unused rules.
37735
37736 2003-12-05 Vincent Celier <celier@gnat.com>
37737
37738 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37739 -nostdlib. Not needed here after all.
37740
37741 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37742
37743 PR ada/11724
37744 * adaint.h, adaint.c, g-os_lib.ads:
37745 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37746 on some platforms (including FreeBSD), it is a 64 bit value.
37747 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37748
37749 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37750
37751 * gnatvsn.ads (Library_Version): Now contain only the relevant
37752 version info.
37753 (Verbose_Library_Version): New constant.
37754
37755 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37756 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37757 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37758
37759 * gnatlbr.adb: Clean up: replace Library_Version by
37760 Verbose_Library_Version.
37761
37762 * make.adb, lib-writ.adb, exp_attr.adb:
37763 Clean up: replace Library_Version by Verbose_Library_Version.
37764
37765 * 5lintman.adb: Removed.
37766
37767 * Makefile.in:
37768 Update and simplify computation of LIBRARY_VERSION.
37769 Fix computation of GSMATCH_VERSION.
37770 5lintman.adb is no longer used: replaced by 7sintman.adb.
37771
37772 2003-12-03 Robert Dewar <dewar@gnat.com>
37773
37774 * exp_ch5.adb:
37775 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37776 name. Modified to consider small non-bit-packed arrays as troublesome
37777 and in need of component-by-component assigment expansion.
37778
37779 2003-12-03 Vincent Celier <celier@gnat.com>
37780
37781 * lang-specs.h: Process nostdlib as nostdinc
37782
37783 * back_end.adb: Update Copyright notice
37784 (Scan_Compiler_Arguments): Process -nostdlib directly.
37785
37786 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37787
37788 * Makefile.in:
37789 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37790 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37791 included in HIE_NONE_TARGET_PAIRS.
37792
37793 2003-12-03 Ed Schonberg <schonberg@gnat.com>
37794
37795 * sem_attr.adb:
37796 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37797 is legal in an instance, because legality is cheched in the template.
37798
37799 * sem_prag.adb:
37800 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37801 appplied to an unchecked conversion of a formal parameter.
37802
37803 * sem_warn.adb:
37804 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37805 variables.
37806
37807 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
37808
37809 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37810 routines. The second one is new functionality to deal with backtracing
37811 through signal handlers.
37812 (unwind): Split into the two separate subroutines above.
37813 Update the documentation, and deal properly with sizeof (REG) different
37814 from sizeof (void*).
37815
37816 2003-12-01 Nicolas Setton <setton@act-europe.fr>
37817
37818 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37819 so that the debugger can reliably access the value of the parameter,
37820 and therefore is able to display the exception name when an exception
37821 breakpoint is reached.
37822
37823 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
37824
37825 * fmap.adb: Fix typo in warning message.
37826
37827 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37828 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37829
37830 2003-12-01 Vincent Celier <celier@gnat.com>
37831
37832 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37833 ther is no Afile.
37834 (Build_Library): Get the switches only if Default_Switches is declared
37835 in package Binder.
37836
37837 2003-12-01 Ed Schonberg <schonberg@gnat.com>
37838
37839 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37840 actuals that are indexed components, reanalyze actual to ensure that
37841 packed array references are properly expanded.
37842
37843 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37844 attempted assignment to a discriminant.
37845
37846 2003-12-01 Robert Dewar <dewar@gnat.com>
37847
37848 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37849 reformatting.
37850
37851 * switch-c.adb: Minor reformatting of comments
37852
37853 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37854
37855 * Makefile.in: Clean ups.
37856
37857 2003-12-01 GNAT Script <nobody@gnat.com>
37858
37859 * Make-lang.in: Makefile automatically updated
37860
37861 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37862
37863 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37864
37865 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37866
37867 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37868 to force serialization.
37869
37870 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
37871
37872 * g-socket.ads, g-socket.adb:
37873 Clarify documentation of function Stream. Introduce a Free procedure
37874 to release the returned Stream once it becomes unused.
37875
37876 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37877
37878 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37879
37880 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37881 since NT 4 cannot handle timeout values that are too large,
37882 e.g. DWORD'Last - 1.
37883
37884 2003-11-26 Ed Schonberg <schonberg@gnat.com>
37885
37886 * exp_ch4.adb:
37887 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37888 in procedure calls and whose expansion must be deferred.
37889
37890 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37891 is in exp_ch4.
37892
37893 * sem_ch3.adb:
37894 (Build_Derived_Array_Type): Create operator for unconstrained type
37895 if ancestor is unconstrained.
37896
37897 2003-11-26 Vincent Celier <celier@gnat.com>
37898
37899 * make.adb (Project_Object_Directory): New global variable
37900 (Change_To_Object_Directory): New procedure
37901 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37902 of Change_Dir directly. Do not change working directory to object
37903 directory of main project after each compilation.
37904 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37905 directly.
37906 Change to object directory of main project before binding step.
37907 (Initialize): Initialize Project_Object_Directory to No_Project
37908
37909 * mlib-prj.adb:
37910 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37911 binding a Stand-Alone Library.
37912
37913 * output.adb: Update Copyright notice
37914 (Write_Char): Output buffer when full
37915
37916 2003-11-26 Robert Dewar <dewar@gnat.com>
37917
37918 * sem_ch13.adb: (Check_Size): Reset size if size is too small
37919
37920 * sem_ch13.ads:
37921 (Check_Size): Fix documentation to include bit-packed array case
37922
37923 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37924
37925 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37926
37927 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37928
37929 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
37930
37931 PR ada/13142
37932 * utils.c (init_gigi_decls): Change name of built-in setjmp to
37933 __builtin_setjmp, since this is apparently needed by recent
37934 non Ada changes.
37935
37936 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37937
37938 * adadecode.c: Only include ctype.h if not IN_GCC.
37939 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37940
37941 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
37942
37943 * Makefile.in:
37944 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37945 signals and interrupts.
37946
37947 * 5zintman.ads: New File.
37948
37949 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37950 add exception signals to the set of unmasked signals.
37951
37952 * 5ztaprop.adb:
37953 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37954 between signals and interrupts.
37955 Add to Unblocked_Signal_Mask the set of signals that are in
37956 Keep_Unmasked.
37957
37958 * 7sinmaop.adb:
37959 Adding a check to see whether the Interrupt_ID we want to unmask is in
37960 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37961 reason is that the index type of the Keep_Unmasked array is not always
37962 Interrupt_ID; it may be a subtype of Interrupt_ID.
37963
37964 2003-11-24 Gary Dismukes <dismukes@gnat.com>
37965
37966 * exp_util.adb:
37967 (Remove_Side_Effects): Condition constantness of object created for a
37968 an unchecked type conversion on the constantness of the expression
37969 to ensure the correct value for 'Constrained when passing components
37970 of view-converted class-wide objects.
37971
37972 2003-11-24 Robert Dewar <dewar@gnat.com>
37973
37974 * par-load.adb (Load): Improve handling of misspelled and missing units
37975 Removes several cases of compilation abandoned messages
37976
37977 * lib.adb: (Remove_Unit): New procedure
37978
37979 * lib.ads: (Remove_Unit): New procedure
37980
37981 * lib-load.adb: Minor reformatting
37982
37983 2003-11-24 Vincent Celier <celier@gnat.com>
37984
37985 * make.adb:
37986 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37987 (Marking_Label): Label to mark processed source files. Incremented for
37988 each executable.
37989 (Gnatmake): Increase Marking_Labet for each executable
37990 (Is_Marked): Compare against marking label
37991 (Mark): Mark with marking label
37992
37993 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
37994
37995 * s-thread.ads:
37996 Move the declaration of the TSD for System.Threads to System.Soft_Links.
37997 Add some comments.
37998
37999 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
38000 (rts-cert): build a single relocatable object for the run-time lib.
38001 Fix perms.
38002
38003 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
38004
38005 * Make-lang.in:
38006 Use gnatls rather than gcc to obtain the location of GNAT RTL for
38007 crosstools build.
38008
38009 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
38010
38011 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
38012 can not use it as before (that is, as a variable) when dumping it into
38013 the tree file. Add a local variable to store the result of this
38014 function and to be used as the string to be written into the tree.
38015
38016 * scn.adb (Initialize_Scanner): Add comments explaining the recent
38017 changes.
38018
38019 * sinput.adb (Source_First, Source_Last): In case of
38020 Internal_Source_File, replace returning attributes of
38021 Internal_Source_Ptr (which is wrong) with returning attributes of
38022 Internal_Source.
38023
38024 2003-11-24 Ed Schonberg <schonberg@gnat.com>
38025
38026 * sem_ch3.adb:
38027 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
38028 used for implicit concatenation operators.
38029 Code cleanup.
38030
38031 * sem_elab.adb:
38032 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
38033 task bodies that are in the scope of a Suppress pragma.
38034 (Check_A Call): Use the flag to prevent spurious elaboration checks.
38035
38036 * sinfo.ads, sinfo.adb:
38037 New flag No_Elaboration_Check on function/procedure calls, to properly
38038 suppress checks on calls in task bodies that are within a local suppress
38039 pragma.
38040
38041 * exp_ch4.adb:
38042 (Expand_Concatenate_Other): Use the proper integer type for the
38043 expression for the upper bound, to avoid universal_integer computations
38044 when possible.
38045
38046 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
38047
38048 * .cvsignore: Delete.
38049
38050 2003-11-21 Andreas Schwab <schwab@suse.de>
38051
38052 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
38053
38054 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
38055
38056 * 5wsystem.ads: Enable zero cost exception.
38057
38058 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
38059
38060 * 5ztiitho.adb: Remove an unreferenced variable.
38061
38062 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
38063
38064 * adaint.c: For FreeBSD, use mkstemp.
38065
38066 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
38067
38068 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
38069
38070 2003-11-21 Robert Dewar <dewar@gnat.com>
38071
38072 * bld.adb: Remove useless USE of gnatvsn
38073
38074 * gnatchop.adb: Minor reformatting
38075 Clean up version handling to be more consistent
38076
38077 * gnatxref.adb: Minor reformatting
38078
38079 * gprcmd.adb: Minor reformatting
38080 Fix output of copyright to be more consistent with other tools
38081
38082 2003-11-21 Vincent Celier <celier@gnat.com>
38083
38084 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
38085
38086 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
38087
38088 * atree.adb (Initialize): Add initializations for global variables
38089 used in New_Copy_Tree.
38090
38091 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
38092 Internal_Source_File as the actual).
38093 Put the set of statements creating Any_Character before the set of
38094 statements creating Any_Array to have Any_Character fully initialized
38095 when it is used in creating Any_Array.
38096
38097 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
38098 not call Scan in case if the actual is Internal_Source_File
38099 Add 2003 to copyright note.
38100
38101 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
38102 processing Internal_Source_File.
38103
38104 * types.ads: Add the constant Internal_Source_File representing the
38105 source buffer for artificial source-code-like strings created within
38106 the compiler (the definition of Source_File_Index is changed).
38107
38108 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
38109
38110 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
38111 56system.ads: New file, FreeBSD version.
38112
38113 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
38114
38115 * Make-lang.in (ada.extraclean): Delete.
38116
38117 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
38118
38119 * gnatmem.adb: Clean up verbose output.
38120
38121 * gprcmd.adb: Change copyright to FSF.
38122
38123 2003-11-19 Vincent Celier <celier@gnat.com>
38124
38125 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
38126 and Version (ignored).
38127
38128 * symbols.ads: (Policy): New type
38129 (Initialize): New parameter Reference, Symbol_Policy and
38130 Library_Version.
38131 Remove parameter Force.
38132 Minor reformatting.
38133
38134 * snames.ads, snames.adbadb: New standard names
38135 Library_Reference_Symbol_File and Library_Symbol_Policy
38136
38137 * mlib-prj.adb:
38138 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
38139 project.
38140
38141 * mlib-tgt.adb:
38142 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
38143
38144 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
38145
38146 * prj.adb: (Project_Empty): New component Symbol_Data
38147
38148 * prj.ads: (Policy, Symbol_Record): New types
38149 (Project_Data): New component Symbol_Data
38150
38151 * prj-attr.adb:
38152 New attributes Library_Symbol_File, Library_Symbol_Policy and
38153 Library_Reference_Symbol_File.
38154
38155 * prj-nmsc.adb:
38156 (Ada_Check): When project is a Stand-Alone library project, process
38157 attribute Library_Symbol_File, Library_Symbol_Policy and
38158 Library_Reference_Symbol_File.
38159
38160 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38161 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
38162 5sml-tgt.adb (Build_Dynamic_Library): New parameter
38163 Symbol_Data (ignored).
38164
38165 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
38166 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
38167 functions Option_File_Name and Version_String. Set new options of
38168 gnatsym related to symbol file, symbol policy and reference symbol
38169 file.
38170
38171 * 5vsymbol.adb:
38172 Extensive modifications to take into account the reference symbol file,
38173 the symbol policy, the library version and to put in the symbol file the
38174 minor and major IDs.
38175
38176 * bld.adb (Process_Declarative_Items): Put second argument of
38177 gprcmd to_absolute between single quotes, to avoid problems with
38178 Windows.
38179
38180 * bld-io.adb: Update Copyright notice.
38181 (Flush): Remove last character of a line, if it is a back slash, to
38182 avoid make problems.
38183
38184 * gnatsym.adb:
38185 Implement new scheme with reference symbol file and symbol policy.
38186
38187 * g-os_lib.ads: (Is_Directory): Clarify comment
38188
38189 2003-11-19 Robert Dewar <dewar@gnat.com>
38190
38191 * atree.adb: Move New_Copy_Tree global variables to head of package
38192
38193 * errout.adb: Minor reformatting
38194
38195 2003-11-19 Javier Miranda <miranda@gnat.com>
38196
38197 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38198 Add reference to Ada0Y (AI-50217)
38199
38200 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38201 sem_util.adb: Add reference to AI-50217
38202
38203 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38204
38205 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38206
38207 * sem_aggr.adb: Complete documentation of AI-287 changes
38208
38209 * par-ch4.adb: Document previous changes.
38210
38211 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38212 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38213 Ada0Y (AI-50217)
38214
38215 * exp_aggr.adb: Add references to AI-287 in previous changes
38216
38217 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38218
38219 * exp_ch6.adb:
38220 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38221 in the rewriting is the result of an inlined call.
38222
38223 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38224 parameter is a type conversion, use original node to construct the
38225 post-call assignment, because expression may have been rewritten, e.g.
38226 if it is a packed array.
38227
38228 * sem_attr.adb:
38229 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38230 body, just as it is in an instance.
38231 Categorization routines
38232
38233 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38234 Instantiate_Object): Set proper sloc reference for message on missing
38235 actual.
38236
38237 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38238
38239 * Makefile.in: Add FreeBSD libgnat pairs.
38240
38241 * usage.adb: Fix typo in usage message.
38242
38243 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38244
38245 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38246 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38247 pragma Thread_Body.
38248 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38249
38250 * s-thread.adb: This file is now a dummy implementation of
38251 System.Thread.
38252
38253 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38254
38255 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38256
38257 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38258
38259 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38260 instanciation references in the parent type description.
38261
38262 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38263
38264 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38265
38266 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38267 TYPE_PRECISION directly from esize.
38268
38269 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38270
38271 * cstreams.c:
38272 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38273
38274 * init.c: Initialization routines for FreeBSD
38275
38276 * link.c: Link info for FreeBSD
38277
38278 * sysdep.c: Add the case of FreeBSD
38279
38280 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38281
38282 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38283 already called in System.Threads.
38284
38285 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38286 environment task, as it has been moved to System.Threads.Initialization.
38287
38288 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38289
38290 * adaint.c (__gnatlib_install_locks): Only reference
38291 __gnat_install_locks on VMS, since other platforms can avoid using
38292 --enable-threads=gnat
38293
38294 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38295
38296 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38297
38298 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38299 TYPE_PACKED_ARRAY_TYPE_P.
38300 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38301
38302 Part of PR ada/12806
38303 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38304 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38305
38306 2003-11-17 Vincent Celier <celier@gnat.com>
38307
38308 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38309 to False.
38310 Do not set exit status to Failure when Warning is True.
38311 (Gnatchop): Make errors "no compilation units found" and
38312 "no source files written" warnings only.
38313
38314 * make.adb (Gnatmake): When using a project file, set
38315 Look_In_Primary_Dir to False.
38316 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38317 and Local_Configuration_Pragmas in the project where they are declared
38318 not an extending project which might have inherited them.
38319
38320 * osint.adb (Locate_File): If Name is already an absolute path, do not
38321 look for a directory.
38322
38323 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38324 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38325
38326 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38327 in objects of type Variable_Value.
38328
38329 * prj.ads: (Variable_Value): New component Project
38330
38331 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38332 is in a project extended by Project.
38333
38334 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38335 Project of Variable_Values to this new parameter value.
38336 (Expression): Set component Project of Variable_Values.
38337 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38338 Set the component Project in array elements.
38339
38340 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38341
38342 * errout.adb: (Initialize): Add initialization for error nodes.
38343
38344 * sem_ch12.adb (Initialize): Add missing initializations for
38345 Exchanged_Views and Hidden_Entities.
38346
38347 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38348
38349 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38350 already instantiated tree for use in subsequent inlining.
38351 (Analyze_Associations, Instantiate_Formal_Subprogram,
38352 Instantiate_Object): improve error message for mismatch in
38353 instantiations.
38354
38355 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38356 instantiations of subprograms declared in instances.
38357
38358 2003-11-17 Javier Miranda <miranda@gnat.com>
38359
38360 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38361 executed only under the Extensions_Allowed flag.
38362
38363 2003-11-17 Robert Dewar <dewar@gnat.com>
38364
38365 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38366 zeroes suppressed.
38367 (Address_Image): Fix bug of returning 0x instead of 0x0
38368 Minor reformatting (function specs).
38369
38370 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38371 (missed case of 33-63)
38372
38373 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38374
38375 * s-thread.adb: Add comments for pragma Restriction
38376
38377 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38378 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38379
38380 2003-11-17 Ed Falis <falis@gnat.com>
38381
38382 * s-thread.adb: Added No_Tasking restriction for this implementation.
38383
38384 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38385
38386 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38387 instanciation references in the parent type description.
38388
38389 2003-11-17 GNAT Script <nobody@gnat.com>
38390
38391 * Make-lang.in: Makefile automatically updated
38392
38393 2003-11-16 Jason Merrill <jason@redhat.com>
38394
38395 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38396 and TAGS files that include them for each front end.
38397
38398 2003-11-14 Andreas Jaeger <aj@suse.de>
38399
38400 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38401 is the canonical version.
38402 * misc.c (gnat_handle_option): Likewise.
38403
38404 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38405
38406 * 5nsystem.ads: New file for x86_64-linux-gnu.
38407
38408 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38409
38410 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38411
38412 * comperr.adb: Fix logic in previous change.
38413
38414 2003-11-13 Vincent Celier <celier@gnat.com>
38415
38416 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38417 Osint.Include_Dir_Default_Prefix instead of
38418 Sdefault.Include_Dir_Default_Name.
38419
38420 * gnatlbr.adb: Update Copyright notice
38421 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38422 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38423 instead of Sdefault.Object_Dir_Default_Name
38424
38425 * gnatlink.adb:
38426 (Process_Binder_File): Never suppress the option following -Xlinker
38427
38428 * mdll-utl.adb:
38429 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38430 Sdefault.Object_Dir_Default_Name.
38431
38432 * osint.ads, osint.adb:
38433 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38434 Minor reformatting.
38435
38436 * vms_conv.ads: Minor reformating
38437 Remove GNAT STANDARD and GNAT PSTA
38438
38439 * vms_conv.adb:
38440 Allow GNAT MAKE to have several files on the command line.
38441 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38442 Sdefault.Object_Dir_Default_Name.
38443 Minor Reformating
38444 Remove data for GNAT STANDARD
38445
38446 * vms_data.ads:
38447 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38448 Remove data for GNAT STANDARD
38449 Remove options and documentation for -gnatwb/-gnatwB: these warning
38450 options no longer exist.
38451
38452 2003-11-13 Ed Falis <falis@gnat.com>
38453
38454 * 5zthrini.adb: (Init_RTS): Made visible
38455
38456 * 5zthrini.adb:
38457 (Register): Removed unnecessary call to taskVarGet that checked whether
38458 an ATSD was already set as a task var for the argument thread.
38459
38460 * s-thread.adb:
38461 Updated comment to reflect that this is a VxWorks version
38462 Added context clause for System.Threads.Initialization
38463 Added call to System.Threads.Initialization.Init_RTS
38464
38465 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38466
38467 * 5zthrini.adb:
38468 (Init_RTS): New procedure, for the initialization of the run-time lib.
38469
38470 * s-thread.adb:
38471 Remove dependancy on System.Init, so that this file can be used in the
38472 AE653 sequential run-time lib.
38473
38474 2003-11-13 Robert Dewar <dewar@gnat.com>
38475
38476 * bindgen.adb: Minor reformatting
38477
38478 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38479
38480 * checks.adb:
38481 (Apply_Discriminant_Check): Do no apply check if target type is derived
38482 from source type with no applicable constraint.
38483
38484 * lib-writ.adb:
38485 (Ensure_System_Dependency): Do not apply the style checks that may have
38486 been specified for the main unit.
38487
38488 * sem_ch8.adb:
38489 (Find_Selected_Component): Further improvement in error message, with
38490 RM reference.
38491
38492 * sem_res.adb:
38493 (Resolve): Handle properly the case of an illegal overloaded protected
38494 procedure.
38495
38496 2003-11-13 Javier Miranda <miranda@gnat.com>
38497
38498 * exp_aggr.adb:
38499 (Has_Default_Init_Comps): New function to check the presence of
38500 default initialization in an aggregate.
38501 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38502 extension aggregate of a limited record. In addition, a new formal
38503 was added to do not initialize the record controller (if any) during
38504 this recursive expansion of ancestors.
38505 (Init_Controller): Add support for limited record components.
38506 (Expand_Record_Aggregate): In case of default initialized components
38507 convert the aggregate into a set of assignments.
38508
38509 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38510 describing the new syntax.
38511 Nothing else needed to be done because this subprogram delegates part of
38512 its work to P_Precord_Or_Array_Component_Association.
38513 (P_Record_Or_Array_Component_Association): Give support to the new
38514 syntax for default initialization of components.
38515
38516 * sem_aggr.adb:
38517 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38518 limited aggregates.
38519 (Resolve_Record_Aggregate): Give support to default initialized
38520 components.
38521 (Get_Value): In case of default initialized components, duplicate
38522 the corresponding default expression (from the record type
38523 declaration). In case of default initialization in the *others*
38524 choice, do not check that all components have the same type.
38525 (Resolve_Extension_Aggregate): Give support to limited extension
38526 aggregates.
38527
38528 * sem_ch3.adb:
38529 (Check_Initialization): Relax the strictness of the front-end in case
38530 of aggregate and extension aggregates. This test is now done in
38531 Get_Value in a per-component manner.
38532
38533 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38534 expression corresponds to a limited aggregate. This test is now done
38535 in Get_Value.
38536
38537 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38538 Box_Present flag.
38539
38540 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38541 present in an N_Component_Association node
38542
38543 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38544
38545 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38546 type-conformant entry only if they are homographs.
38547
38548 2003-11-13 GNAT Script <nobody@gnat.com>
38549
38550 * Make-lang.in: Makefile automatically updated
38551
38552 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38553
38554 * adadecode.c: Use <> form of include for ctype.h.
38555 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38556
38557 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38558
38559 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38560 Works around PR middle-end/6552.
38561
38562 2003-11-10 Ed Falis <falis@gnat.com>
38563
38564 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38565
38566 * 5zinit.adb: (Install_Handler): Moved back to spec
38567 (Install_Signal_Handlers): Deleted
38568
38569 * 5zthrini.adb: Added context clause for System.Storage_Elements
38570 (Register): Only handles creation of taskVar; initialization moved to
38571 Thread_Body_Enter.
38572 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38573 Added declaration of environment task secondary stack and
38574 initialization.
38575
38576 * s-thread.adb: Implement bodies for thread body processing
38577
38578 * s-thread.ads:
38579 Added comment identifying supported targets for pragma Thread_Body.
38580
38581 2003-11-10 Pascal Obry <obry@gnat.com>
38582
38583 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38584 GNAT_MAX_PATH_LEN.
38585
38586 * s-fileio.adb:
38587 (Open): Properly check for string length before copying into the buffer.
38588 Raises Name_Error if buffer is too small. Note that this was a potential
38589 buffer overflow.
38590
38591 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38592
38593 * bindgen.adb, comperr.adb: Code clean ups.
38594 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38595
38596 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38597
38598 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38599
38600 2003-11-10 Vincent Celier <celier@gnat.com>
38601
38602 * gprcmd.adb:
38603 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38604 installation.
38605
38606 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38607
38608 * prj.adb: (Project_Empty): Add new boolean component Virtual
38609
38610 * prj.ads: (Virtual_Prefix): New constant string
38611 (Project_Data): New boolean component Virtual
38612
38613 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38614 a library project is extended by a virtual extending project.
38615
38616 * prj-part.adb:
38617 Modifications throughout to implement extending-all project, including:
38618 (Virtual_Hash, Processed_Hash): New hash tables
38619 (Create_Virtual_Extending_Project): New procedure
38620 (Look_For_Virtual_Projects_For): New procedure
38621
38622 * prj-proc.adb:
38623 (Process): After checking the projects, if main project is an
38624 extending-all project, set the object directory of all virtual extending
38625 project to the object directory of the main project.
38626 Adjust error message when a virtual extending project has the same
38627 object directory as an project being extended.
38628 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38629 to True in the project data.
38630
38631 * prj-tree.adb:
38632 (Default_Project_Node): Add new boolean component Extending_All
38633 (Is_Extending_All): New function
38634 (Set_Is_Extending_All): New procedure
38635
38636 * prj-tree.ads: (Is_Extending_All): New function
38637 (Set_Is_Extending_All): New procedure
38638 (Project_Node_Record): New boolean component Extending_All
38639
38640 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38641
38642 * vms_data.ads:
38643 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38644
38645 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38646 "gprcmd prefix" to define it.
38647
38648 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38649
38650 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38651
38652 * lib-load.adb:
38653 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38654 created dummy package to Standard_Standard, not to itself, to
38655 defend other parts of the front-end against encoutering a cycle in
38656 the scope chain.
38657
38658 * sem_ch10.adb:
38659 (Analyze_With_Clause): When setting the entities for the successive
38660 N_Expanded_Names that constitute the name of a child unit, do not
38661 attempt to go further than Standard_Standard in the chain of scopes.
38662 This case arises from the placeholder units created by
38663 Create_Dummy_Package_Unit in the case of a with_clause for a
38664 nonexistent child unit.
38665
38666 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38667
38668 * exp_ch6.adb:
38669 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38670 declarations are given the proper scope.
38671
38672 * sem_ch13.adb:
38673 (Check_Expr_Constants): Reject an expression that contains a constant
38674 created during expansion, and that appears after the object to which
38675 the address clause applies.
38676
38677 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38678 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38679 that uses 'Range of a function call with controlled components, so
38680 that the function result can be finalized before starting the loop.
38681
38682 * sem_ch8.adb:
38683 (Find_Selected_Component): Improve error message when prefix is
38684 an implicit dereference of an incomplete type.
38685
38686 2003-11-10 Robert Dewar <dewar@gnat.com>
38687
38688 * opt.ads: New Print_Standard flag for -gnatS switch
38689
38690 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38691
38692 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38693 switch set
38694
38695 * debug.adb: Update doc for -gnatds to discuss relationship with new
38696 -gnatS flag
38697
38698 * sinfo.adb: Add new field Entity_Or_Associated_Node
38699
38700 * sinfo.ads: Add new field Entity_Or_Associated_Node
38701 Update documentation for Associated_Node and Entity fields to clarify
38702 relationship and usage.
38703
38704 * sprint.adb:
38705 (Write_Id): Properly process Associated_Node field in generic template
38706
38707 * switch-c.adb:
38708 Recognize new -gnatS switch for printing package Standard
38709 This replaces gnatpsta
38710
38711 * usage.adb:
38712 Add line for new -gnatS switch for printing package Standard
38713 This replaces gnatpsta
38714
38715 2003-11-10 Andreas Jaeger <aj@suse.de>
38716
38717 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38718 integer.
38719
38720 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38721
38722 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38723 by gnat1.
38724
38725 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38726
38727 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38728 no longer needed.
38729
38730 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38731
38732 * sysdep.c: Add handling of cygwin.
38733
38734 2003-11-10 GNAT Script <nobody@gnat.com>
38735
38736 * Make-lang.in: Makefile automatically updated
38737
38738 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38739
38740 PR 12950
38741 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38742 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38743 Replace GNAT_ROOT by GCC_ROOT.
38744
38745 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38746
38747 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38748
38749 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38750 and update for changed meaning of GET_MODE_BITSIZE.
38751
38752 2003-11-04 Doug Rupp <rupp@gnat.com>
38753
38754 * sysdep.c: Problem discovered during IA64 VMS port.
38755 [VMS] #include <unixio.h> to get proper prototypes.
38756
38757 * adaint.c:
38758 Issues discovered/problems fixed during IA64 VMS port.
38759 [VMS] #define _POSIX_EXIT for proper semantics.
38760 [VMS] #include <unixio.h> for proper prototypes.
38761 [VMS] (fork): #define IA64 version.
38762 (__gnat_os_exit): Remove unnecessary VMS specific code.
38763
38764 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38765
38766 Part of PR ada/12806
38767 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38768 tree, not integer.
38769
38770 * decl.c:
38771 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38772 not integer.
38773
38774 * targtyps.c, decl.c, misc.c,
38775 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38776 routines to work around change in FP sizing semantics in GCC.
38777
38778 * utils.c:
38779 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38780
38781 * gigi.h: (enumerate_modes): New function.
38782
38783 * Make-lang.in: (ada/misc.o): Add real.h.
38784
38785 * misc.c: (enumerate_modes): New function.
38786
38787 2003-11-04 Robert Dewar <dewar@gnat.com>
38788
38789 * 3vtrasym.adb: Minor reformatting
38790 Use terminology encoded/decoded name, rather than C++ specific notion
38791 of mangling (this is the terminology used throughout GNAT).
38792
38793 * einfo.h: Regenerated
38794
38795 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38796
38797 * exp_ch6.adb:
38798 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38799
38800 * par-prag.adb: Add dummy entry for Thread_Body pragma
38801
38802 * rtsfind.ads:
38803 Add entries for System.Threads entities for thread body processing
38804
38805 * sem_attr.adb:
38806 (Analyze_Pragma, Access attributes): Check these are not applied to a
38807 thread body, since this is not permitted
38808
38809 * sem_prag.adb: Add processing for Thread_Body pragma.
38810 Minor comment fix.
38811
38812 * sem_res.adb:
38813 (Resolve_Call): Check for incorrect attempt to call a thread body
38814 procedure with a direct call.
38815
38816 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38817 Add names associated with thread body expansion
38818
38819 * snames.h: Add entry for Thread_Body pragma
38820
38821 * s-thread.adb: Add entries for thread body processing
38822 These are dummy bodies so far
38823
38824 * s-thread.ads: Add documentation on thread body handling.
38825 Add entries for thread body processing.
38826
38827 2003-11-04 Javier Miranda <miranda@gnat.com>
38828
38829 * sem_ch10.adb:
38830 (Build_Limited_Views): Return after posting an error in case of limited
38831 with_clause on subprograms, generics, instances or generic renamings
38832 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38833 on subprograms, generics, instances or generic renamings
38834
38835 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38836
38837 * raise.c (setup_to_install): Correct mistake in last revision; two
38838 arguments out of order.
38839
38840 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38841 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38842 notice, missed in previous change.
38843 Remove trailing blanks and other style errors introduced in previous
38844 change.
38845
38846 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
38847
38848 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38849 rid of the wrapper for a LJM type, ensuring we don't do that if the
38850 field is addressable. This avoids potential low level type view
38851 mismatches later on, for instance in a by-reference argument passing
38852 process.
38853
38854 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38855
38856 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38857 aligned at byte boundary.
38858
38859 2003-11-04 Joel Brobecker <brobecker@gnat.com>
38860
38861 * decl.c (components_to_record): Do not delete the empty variants from
38862 the end of the union type.
38863
38864 2003-11-04 Ed Schonberg <schonberg@gnat.com>
38865
38866 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38867 operation for a derived type, an explicit declaration may use a local
38868 subtype of Boolean.
38869
38870 2003-11-04 Vincent Celier <celier@gnat.com>
38871
38872 * make.adb (Gnatmake): Allow main sources on the command line with a
38873 library project when it is only for compilation (no binding or
38874 linking).
38875
38876 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38877
38878 * Makefile.in: Remove many duplicate variables.
38879
38880 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38881
38882 * Make-lang.in (dvi): Move targets to $(docobjdir).
38883 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38884 (gnat_ug_wnt.dvi): Likewise.
38885 (gnat_ug_unx.dvi): Likewise.
38886 (gnat_ug_vxw.dvi): Likewise.
38887 (gnat_rm.dvi): Likewise.
38888 (gnat-style.dvi): Likewise.
38889
38890 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38891
38892 * gigi.h: Missed commit from update for C90.
38893
38894 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38895
38896 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38897
38898 2003-10-31 Andreas Schwab <schwab@suse.de>
38899
38900 * raise.c (get_action_description_for): Fix typo in last change.
38901
38902 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
38903
38904 PR ada/12761
38905 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38906 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38907
38908 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
38909
38910 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38911 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38912 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38913 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38914 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38915
38916 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
38917
38918 * 3vtrasym.adb:
38919 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38920 numbers when symbol name is too long.
38921
38922 2003-10-30 Ed Falis <falis@gnat.com>
38923
38924 * g-signal.ads, g-signal.adb: New files
38925
38926 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38927
38928 * Makefile.rtl: Introduce GNAT.Signals
38929
38930 2003-10-30 Robert Dewar <dewar@gnat.com>
38931
38932 * freeze.adb: Minor reformatting
38933
38934 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38935
38936 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38937 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38938 New handling of Id_Check parameter to improve recognition of keywords
38939 used as identifiers.
38940 Update copyright notice to include 2003
38941
38942 2003-10-29 Robert Dewar <dewar@gnat.com>
38943
38944 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38945 sem_ch10.adb: Minor reformatting
38946
38947 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38948 (Expand_Assign_Record): Test right hand side for bit unaligned as well
38949
38950 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
38951
38952 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38953 Support for TBK$SYMBOLIZE-based symbolic traceback.
38954
38955 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
38956
38957 * exp_disp.adb:
38958 Revert previous change, that did not work well when pragma No_Run_Time
38959 was used in conjunction with a run-time other than ZFP.
38960
38961 2003-10-29 Vincent Celier <celier@gnat.com>
38962
38963 * make.adb:
38964 (Gnatmake): When there are no Ada mains in attribute Main, disable the
38965 bind and link steps only is switch -z is not used.
38966
38967 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
38968
38969 * Makefile.generic: Remove duplicated setting of CC.
38970
38971 * Makefile.prolog: Set CC to gcc by default, to override make's
38972 default (cc).
38973
38974 * einfo.h: Regenerated.
38975
38976 2003-10-29 Ed Schonberg <schonberg@gnat.com>
38977
38978 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38979 current body, after compiling subunit.
38980
38981 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38982 when in deleted code, because gigi needs properly ordered freeze
38983 actions to annotate types.
38984
38985 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38986 prevent the premature freezing of record type that contains
38987 subcomponents with a private type that does not yet have a completion.
38988
38989 2003-10-29 Javier Miranda <miranda@gnat.com>
38990
38991 * sem_ch12.adb:
38992 (Analyze_Package_Instantiation): Check that instances can not be used in
38993 limited with_clauses.
38994
38995 * sem_ch8.adb:
38996 (Analyze_Package_Renaming): Check that limited withed packages cannot
38997 be renamed. Improve text on error messages related to limited
38998 with_clauses.
38999
39000 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
39001
39002 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
39003 Update copyright notice.
39004
39005 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
39006 (Install_Limited_Context_Clauses): New subprogram that isolates all the
39007 checks required for limited context_clauses and installs the limited
39008 view.
39009 (Install_Limited_Withed_Unit): Complete its documentation.
39010 (Analyze_Context): Check that limited with_clauses are only allowed in
39011 package specs.
39012 (Install_Context): Call Install_Limited_Context_Clauses after the
39013 parents have been installed.
39014 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
39015 package as 'From_With_Type'; this mark indicates that the limited view
39016 is installed. Used to check bad usages of limited with_clauses.
39017 (Build_Limited_Views): Do not add shadow entities to the scope's list
39018 of entities. Do not add real entities to the Non_Limited_Views chain.
39019 Improve error notification.
39020 (Remove_Context_Clauses): Remove context clauses in two phases:
39021 limited views first and regular views later (to maintain the
39022 stack model).
39023 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
39024 its visible entities.
39025
39026 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
39027
39028 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
39029 with any type that Is_Fixed_Point_Type.
39030
39031 * sinfo.ads: Fix documentation for Associated_Node attribute.
39032
39033 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
39034
39035 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
39036 both '-gnatc' and '-gnatt' are specified.
39037
39038 * atree.adb (Initialize): Add initialization for Node_Count (set to
39039 zero).
39040
39041 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39042
39043 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
39044 do not consider as Pure.
39045
39046 Part of implementation of function-at-a-time:
39047
39048 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
39049 (tree_transform): Add new argument to build_component_ref.
39050 (tree_transform, case N_Assignment_Statement): Make and return an
39051 EXPR_STMT.
39052 (tree_transform): If result IS_STMT, set flags and return it.
39053 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39054
39055 * utils2.c (build_simple_component_ref, build_component_ref): Add new
39056 arg, NO_FOLD_P.
39057 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
39058 (build_allocator): Likewise.
39059
39060 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
39061 Add new arg to build_component_ref.
39062 (maybe_unconstrained_array, unchecked_convert): Likewise.
39063
39064 * ada-tree.def (EXPR_STMT): New code.
39065
39066 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
39067
39068 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
39069 build_component_ref calls.
39070
39071 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
39072
39073 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
39074 (build_component_ref): Add new argument, NO_FOLD_P.
39075
39076 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
39077
39078 * Makefile.generic: Add missing substitution on object_deps handling.
39079
39080 PR ada/5909
39081 * Make-lang.in (check-ada): Enable ACATS test suite.
39082
39083 2003-10-27 Robert Dewar <dewar@gnat.com>
39084
39085 * exp_ch3.adb:
39086 (Freeze_Array_Type): We do not need an initialization routine for types
39087 derived from String or Wide_String. They should be treated the same
39088 as String and Wide_String themselves. This caused problems with the
39089 use of Initialize_Scalars.
39090
39091 * exp_ch5.adb:
39092 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
39093 composites. This allows use of component clauses that are not byte
39094 aligned.
39095
39096 * sem_prag.adb:
39097 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
39098 is an attempt to pack an array of atomic objects.
39099
39100 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
39101
39102 2003-10-27 Pascal Obry <obry@gnat.com>
39103
39104 * g-dirope.adb:
39105 (Basename): Check for drive letters in a pathname only on DOS based OS.
39106
39107 2003-10-27 Vincent Celier <celier@gnat.com>
39108
39109 * make.adb:
39110 (Gnatmake): When unable to change dir to the object dir, display the
39111 content of the parent dir of the obj dir, to try to understand why this
39112 happens.
39113
39114 2003-10-27 GNAT Script <nobody@gnat.com>
39115
39116 * Make-lang.in: Makefile automatically updated
39117
39118 2003-10-27 Ed Schonberg <schonberg@gnat.com>
39119
39120 * sem_ch12.adb:
39121 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
39122 should not be done in Save/Restore_Scope_Stack, because it is performed
39123 locally.
39124
39125 * sem_ch8.adb:
39126 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39127 whether use clauses should be removed/restored.
39128
39129 * sem_ch8.ads:
39130 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
39131 whether use clauses should be removed/restored.
39132
39133 2003-10-26 Andreas Jaeger <aj@suse.de>
39134
39135 * Makefile.in: Remove duplicated lines.
39136
39137 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39138
39139 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
39140 minimize the differences with ACT tree.
39141
39142 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
39143 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
39144 Gnatvsn.Gnat_Static_Version_String to reduce differences between
39145 ACT and FSF trees.
39146
39147 2003-10-24 Pascal Obry <obry@gnat.com>
39148
39149 PR ada/12014
39150 * adadecode.c (ostrcpy): New function.
39151 (__gnat_decode): Use ostrcpy of strcpy.
39152 (has_prefix): Set first parameter a const.
39153 (has_suffix): Set first parameter a const.
39154 Update copyright notice. Fix source name in header.
39155 Removes a trailing space.
39156
39157 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
39158
39159 * exp_disp.adb:
39160 Remove the test against being in No_Run_Time_Mode before generating a
39161 call to Register_Tag. It is redundant with the test against the
39162 availability of the function Register_Tag.
39163
39164 2003-10-24 Vincent Celier <celier@gnat.com>
39165
39166 * g-catiio.adb: (Month_Name): Correct spelling of February
39167
39168 * make.adb: (Mains): New package
39169 (Initialize): Call Mains.Delete
39170 (Gnatmake): Check that each main on the command line is a source of a
39171 project file and, if there are several mains, each of them is a source
39172 of the same project file.
39173 (Gnatmake): When a foreign language is specified in attribute Languages,
39174 no main is specified on the command line and attribute Mains is not
39175 empty, only build the Ada main. If there is no Ada main, just compile
39176 the Ada sources and their closure.
39177 (Gnatmake): If a main is specified on the command line with directory
39178 information, check that the source exists and, if it does, that the path
39179 is the actual path of a source of a project.
39180
39181 * prj-env.adb:
39182 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39183 Full_Path is True, return the full path instead of the simple file name.
39184 (Project_Of): New function
39185
39186 * prj-env.ads:
39187 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39188 defaulted to False.
39189 (Project_Of): New function
39190
39191 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39192
39193 * Makefile.generic:
39194 Ensure objects of main project are always checked and rebuilt if needed.
39195 Set CC to gcc by default.
39196 Prepare new handling of link by creating a global archive (not activated
39197 yet).
39198
39199 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39200 stringt.h: Update copyright notice. Remove trailing blanks.
39201 Fix source name in header.
39202
39203 2003-10-24 Robert Dewar <dewar@gnat.com>
39204
39205 * sem_ch12.adb: Minor reformatting
39206
39207 * sem_ch3.adb:
39208 Minor reformatting (including new function return style throughout)
39209
39210 * sem_ch3.ads:
39211 Minor reformatting (including new function return style throughout)
39212
39213 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39214
39215 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39216 stringt.h: Update copyright notice. Remove trailing blanks.
39217 Fix source name in header.
39218
39219 2003-10-24 GNAT Script <nobody@gnat.com>
39220
39221 * Make-lang.in: Makefile automatically updated
39222
39223 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39224
39225 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39226 stringt.h: Convert to ISO C90 declarations and definitions.
39227
39228 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39229
39230 PR ada/11978
39231 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39232 External_Tag attribute definition clauses.
39233
39234 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39235
39236 PR ada/7613
39237 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39238 child unit, generate a fully qualified name to avoid spurious errors
39239 when the context contains renamings of different child units with
39240 the same simple name.
39241
39242 * exp_dbug.ads: Add documentation on name qualification for renamings
39243 of child units.
39244
39245 2003-10-23 Robert Dewar <dewar@gnat.com>
39246
39247 * g-regpat.ads, g-regpat.adb: Minor reformatting
39248
39249 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39250
39251 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39252
39253 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39254
39255 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39256 Machine call.
39257
39258 * urealp.h: (Machine): Update to proper definition.
39259
39260 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39261
39262 * init.c, adaint.c: Minor reformatting.
39263
39264 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39265
39266 * adaint.c (w32_epoch_offset): Define static const at file level.
39267 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39268 rather than t_create, t_access in call to GetFileTime. Use union
39269 to convert between FILETIME and unsigned long long.
39270 (__gnat_file_time_name): Test for invalid file handle.
39271 (__gnat_set_filetime_name): Support win32 targets using
39272 w32api SetFileTime.
39273
39274 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39275
39276 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39277
39278 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39279
39280 * decl.c (creat_concat_name): Const-ify prefix.
39281
39282 * adaint.c: Include ctype.h if __MINGW32__.
39283 (__gnat_readlink): Mark arguments as possibly unused.
39284 (__gnat_symlink): Likewise.
39285 (__gnat_is_symbolic_link): Likewise.
39286 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39287 declaration
39288 (__gnat_file_time_name): Don't declare struct stat statbuf when
39289 not needed.
39290 (__gnat_is_absolute_path): Add parenthesis around condition of
39291 'if' statement to avoid warning.
39292 (__gnat_plist_init): Specify void as parameter.
39293 (plist_enter): Likewise.
39294 (plist_leave): Likewise.
39295 (remove_handle): Make static. Initialize prev.
39296
39297 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39298
39299 PR ada/10110
39300 * Makefile.in: Disable build of gnatpsta.
39301 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39302 of previous change.
39303
39304 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39305
39306 * tracebak.c (MAX): Avoid redefinition warning.
39307
39308 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39309 Change msg to const char *.
39310 (__gnat_install_handler): Remove ss, unused.
39311 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39312 to const char *.
39313 * cstreams.c (__gnat_full_name): Declare p only when used.
39314 (__gnat_full_name) [sgi] Return buffer.
39315
39316 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39317
39318 * mingw32.h: New file.
39319 * gnat_wrapper.adb: New file.
39320
39321 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39322
39323 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39324 string match a pre compiled regular expression (the corresponding
39325 version of the function working on a raw regular expression)
39326 Fix typos in various comments
39327 Update copyright notice in spec
39328
39329 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39330
39331 * exp_ch3.adb:
39332 (Component_Needs_Simple_Initialization): Return False when the type is a
39333 packed bit array. Revise spec comments to document this case.
39334
39335 * exp_prag.adb:
39336 (Expand_Pragma_Import): Set any expression on the imported object to
39337 empty to avoid initializing imported objects (in particular this
39338 covers the case of zero-initialization of bit arrays).
39339 Update copyright notice.
39340
39341 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39342
39343 * sem_ch12.adb:
39344 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39345 a subunit is missing.
39346 (Instantiate_Subprogram_Body): If body of function is missing, set type
39347 of return expression explicitly in dummy body, to prevent cascaded
39348 errors when a subunit is missing.
39349 Fixes PR 5677.
39350
39351 * sem_ch3.adb:
39352 (Access_Subprogram_Declaration): Verify that return type is valid.
39353 Fixes PR 8693.
39354
39355 * sem_elab.adb:
39356 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39357 generic.
39358 Fixes PR 12318.
39359
39360 * sem_util.adb:
39361 (Corresponding_Discriminant): If the scope of the discriminant is a
39362 private type without discriminant, use its full view.
39363 Fixes PR 8247.
39364
39365 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39366
39367 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39368 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39369 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39370 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39371 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39372 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39373 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39374 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39375 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39376 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39377 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39378 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39379 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39380 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39381 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39382 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39383 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39384 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39385 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39386 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39387 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39388 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39389 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39390 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39391 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39392 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39393 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39394 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39395 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39396 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39397 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39398 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39399 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39400 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39401 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39402 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39403 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39404 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39405 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39406 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39407 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39408 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39409 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39410 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39411 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39412 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39413 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39414 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39415 vms_conv.ads, vms_conv.adb, vms_data.ads,
39416 vxaddr2line.adb: Files added. Merge with ACT tree.
39417
39418 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39419 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39420 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39421 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39422 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39423 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39424 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39425 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39426 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39427 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39428
39429 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39430 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39431 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39432 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39433 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39434 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39435 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39436 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39437 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39438 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39439 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39440 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39441 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39442 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39443 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39444 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39445 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39446 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39447 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39448 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39449 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39450 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39451 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39452 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39453 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39454 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39455 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39456 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39457 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39458 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39459 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39460 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39461 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39462 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39463 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39464 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39465 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39466 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39467 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39468 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39469 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39470 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39471 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39472 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39473 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39474 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39475 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39476 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39477 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39478 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39479 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39480 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39481 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39482 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39483 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39484 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39485 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39486 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39487 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39488 checks.adb, checks.ads, cio.c, comperr.adb,
39489 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39490 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39491 einfo.adb, einfo.ads, errout.adb, errout.ads,
39492 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39493 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39494 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39495 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39496 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39497 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39498 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39499 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39500 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39501 fe.h, fmap.adb, fmap.ads, fname.adb,
39502 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39503 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39504 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39505 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39506 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39507 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39508 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39509 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39510 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39511 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39512 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39513 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39514 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39515 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39516 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39517 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39518 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39519 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39520 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39521 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39522 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39523 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39524 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39525 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39526 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39527 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39528 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39529 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39530 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39531 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39532 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39533 layout.adb, lib.adb, lib.ads, lib-list.adb,
39534 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39535 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39536 link.c, live.adb, make.adb, make.ads,
39537 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39538 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39539 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39540 misc.c, mkdir.c, mlib.adb, mlib.ads,
39541 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39542 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39543 namet.adb, namet.ads, namet.h, nlists.ads,
39544 nlists.h, nmake.adt, opt.adb, opt.ads,
39545 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39546 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39547 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39548 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39549 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39550 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39551 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39552 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39553 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39554 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39555 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39556 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39557 prj-util.adb, prj-util.ads, raise.c, raise.h,
39558 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39559 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39560 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39561 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39562 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39563 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39564 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39565 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39566 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39567 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39568 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39569 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39570 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39571 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39572 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39573 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39574 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39575 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39576 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39577 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39578 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39579 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39580 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39581 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39582 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39583 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39584 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39585 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39586 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39587 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39588 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39589 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39590 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39591 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39592 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39593 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39594 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39595 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39596 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39597 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39598 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39599 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39600 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39601 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39602 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39603 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39604 stringt.adb, stringt.ads, stringt.h, style.ads,
39605 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39606 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39607 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39608 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39609 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39610 table.adb, table.ads, targparm.adb, targparm.ads,
39611 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39612 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39613 ttypes.ads, types.ads, types.h, uintp.adb,
39614 uintp.ads, uintp.h, uname.adb, urealp.adb,
39615 urealp.ads, urealp.h, usage.adb, utils2.c,
39616 utils.c, validsw.adb, validsw.ads, widechar.adb,
39617 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39618 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39619 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39620 gnatvsn.ads: Merge with ACT tree.
39621
39622 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39623
39624 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39625
39626 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39627 (gnat_ug_vmx.info): Likewise.
39628 (gnat_ug_vxw.info): Likewise.
39629 (gnat_ug_wnt.info): Likewise.
39630 (gnat_rm.info): Likewise.
39631 (gnat-style.info): Likewise.
39632
39633 * Make-lang.in (ada.install-info): Remove target.
39634 (info): New target.
39635 (install-info): Likewise.
39636 (gnat_ug_unx.info): Simplify rule.
39637 (gnat_ug_vmx.info): Likewise.
39638 (gnat_ug_vxw.info): Likewise.
39639 (gnat_ug_wnt.info): Likewise.
39640 (gnat_rm.info): Likewise.
39641 (gnat-style.info): Likewise.
39642
39643 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39644
39645 * Make-lang.in: Replace uses of $(target_alias) with
39646 $(target_noncanonical).
39647 * ada/Makefile.in: Remove unused mention of $(target_alias).
39648
39649 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39650
39651 * Make-lang.in (ada.info): Replace with ...
39652 (info): ... this.
39653 (ada.dvi): Replace with ...
39654 (dvi): ... this.
39655
39656 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39657
39658 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39659 initialize dconstp5 and dconstmp5.
39660
39661 2003-09-28 Richard Henderson <rth@redhat.com>
39662
39663 * trans.c (tree_transform): Update call to expand_asm_operands.
39664
39665 2003-09-21 Richard Henderson <rth@redhat.com>
39666
39667 * trans.c, utils.c: Revert.
39668
39669 2003-09-21 Richard Henderson <rth@redhat.com>
39670
39671 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39672 change to const.
39673
39674 2003-09-04 Michael Matz <matz@suse.de>
39675
39676 * misc.c: Include "target.h".
39677 * Make-lang.in (misc.o): Add dependency on target.h.
39678
39679 2003-09-03 DJ Delorie <dj@redhat.com>
39680
39681 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39682 hook.
39683
39684 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39685
39686 * Makefile.in: Update substitutions to match changes to
39687 configure. Use include directives instead of @-insertions
39688 to read in host and target fragments. Add a rule to
39689 regenerate ada/Makefile.
39690
39691 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39692
39693 * lang-options.h: Remove.
39694 * lang.opt: Add help text.
39695
39696 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39697
39698 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39699 calls.
39700
39701 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39702
39703 * misc.c (gnat_handle_option): Don't handle filenames.
39704
39705 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39706
39707 * Make-lang.in: Replace PWD with PWD_COMMAND.
39708 * Makefile.adalib: Likewise.
39709 * Makefile.in: Likewise.
39710
39711 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39712
39713 * misc.c (gnat_argv): Revert last change.
39714 (gnat_handle_option, gnat_init_options): Copy arguments.
39715
39716 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39717
39718 * misc.c (gnat_argv): Make const.
39719
39720 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39721
39722 * misc.c (save_argc, save_argv): Keep non-static!
39723
39724 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39725
39726 * misc.c (save_argc, save_argv): Make static.
39727 (gnat_init_options): New prototype.
39728 (gnat_init_options): Update.
39729
39730 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39731
39732 * gnat_ug.texi: Remove unlikely characters from @vars.
39733 * gnat_ug_vms.texi: Regenerate.
39734
39735 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39736
39737 * misc.c (record_code_position): Adjust emit_note call.
39738
39739 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39740
39741 * misc.c (gnat_handle_option): Don't check for missing arguments.
39742
39743 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39744
39745 * utils.c (end_subprog_body): Adjust expand_function_end call.
39746
39747 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39748
39749 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39750 Bind_Main_Program.
39751
39752 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39753
39754 * lang.opt: Declare Ada.
39755 * misc.c (gnat_init_options): Update.
39756
39757 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39758
39759 * utils.c (begin_subprog_body): Adjust init_function_start call.
39760
39761 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39762
39763 * Make-lang.in: Update to use options.c and options.h.
39764 * misc.c: Include options.h not aoptions.h.
39765 (gnat_handle_option): Abort on unrecognized switch.
39766 (gnat_init_options): Request Ada switches.
39767
39768 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39769
39770 * lang.opt: Add -Wall.
39771 * misc.c (gnat_handle_option): Handle it.
39772
39773 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39774
39775 * misc.c (gnat_handle_option): Fix warnings.
39776
39777 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39778
39779 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39780
39781 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
39782
39783 * Make-lang.in: Update to handle command-line options.
39784 * lang.opt: New file.
39785 * misc.c: Include aoptions.h.
39786 (cl_options_count, cl_options): Remove.
39787 (gnat_handle_option): New.
39788 (gnat_decode_option): Remove.
39789 (LANG_HOOKS_DECODE_OPTION): Remove.
39790 (LANG_HOOKS_HANDLE_OPTION): Override.
39791
39792 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39793
39794 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39795
39796 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39797
39798 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39799 substitution.
39800
39801 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
39802
39803 * Make-lang.in: Update.
39804 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39805
39806 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
39807
39808 * misc.c (gnat_init_options): Update.
39809
39810 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39811
39812 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39813 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39814 __attribute__ ((__unused__)).
39815
39816 2003-06-05 Jan Hubicka <jh@suse.cz>
39817
39818 * Make-lang.in: Add support for stageprofile and stagefeedback
39819
39820 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39821
39822 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39823 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39824
39825 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39826
39827 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39828 Remove non-VMS directive.
39829 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39830 alternatives.
39831 (Examples of gnatls Usage): Remove VMS alternative.
39832
39833 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
39834
39835 PR ada/9953
39836 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39837 and turn ZCX_By_Default back to False since the underlying support
39838 is not quite there yet.
39839
39840 2003-06-01 Andreas Jaeger <aj@suse.de>
39841
39842 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39843 and ROUND_TYPE_SIZE_UNIT.
39844
39845 2003-05-22 Geert Bosch <bosch@gnat.com>
39846
39847 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39848
39849 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39850
39851 * trans.c (tree_transform): Use location_t and input_location
39852 directly.
39853 (build_unit_elab): Likewise.
39854 * utils.c (create_label_decl): Likewise.
39855
39856 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39857
39858 * trans.c (tree_transform, build_unit_elab,
39859 set_lineno): Rename lineno to input_line.
39860 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39861 end_subprog_body): Likewise.
39862 * utils2.c (build_call_raise): Likewise.
39863
39864 2003-05-01 Laurent Guerby <guerby@acm.org>
39865
39866 PR ada/10546
39867 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39868 LinuxThread and NPTL version, merge from ACT.
39869
39870 2003-04-28 Zack Weinberg <zack@codesourcery.com>
39871
39872 * utils.c (convert): No need to clear TREE_CST_RTL.
39873
39874 2003-04-23 Geert Bosch <bosch@gnat.com>
39875
39876 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39877 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39878 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39879 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39880 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39881 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39882 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39883 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39884 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39885 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39886 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39887 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39888 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39889 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39890 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39891 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39892 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39893 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39894 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39895 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39896 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39897 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39898 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39899 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39900 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39901 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39902 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39903 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39904 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39905 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39906 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39907 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39908 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39909 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39910 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39911 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39912 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39913 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39914 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39915 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39916 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39917 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39918 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39919 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39920 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39921 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39922 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39923 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39924 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39925 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39926 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39927 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39928 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39929 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39930 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39931 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39932 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39933 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39934 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39935 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39936 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39937 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39938 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39939 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39940 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39941 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39942 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39943 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39944 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39945 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39946 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39947 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39948 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39949 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39950 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39951 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39952 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39953 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39954 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39955 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39956 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39957 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39958 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39959 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39960 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39961 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39962 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39963 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39964 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39965 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39966 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39967 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39968 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39969 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39970 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39971 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39972 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39973 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39974 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39975 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39976 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39977 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39978 ali.adb, ali.ads, alloc.ads, argv.c,
39979 atree.adb, atree.ads, atree.h, aux-io.c,
39980 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39981 binde.adb, binde.ads, binderr.adb, binderr.ads,
39982 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39983 butil.adb, butil.ads, cal.c, calendar.ads,
39984 casing.adb, casing.ads, ceinfo.adb, checks.adb,
39985 checks.ads, cio.c, comperr.adb, comperr.ads,
39986 config-lang.in, csets.adb, csets.ads, csinfo.adb,
39987 cstand.adb, cstand.ads, cuintp.c, debug.adb,
39988 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39989 dec-io.ads, dec.ads, deftarg.c, directio.ads,
39990 einfo.adb, einfo.ads, elists.adb, elists.ads,
39991 elists.h, errno.c, errout.adb, errout.ads,
39992 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39993 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39994 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39995 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39996 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39997 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39998 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39999 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
40000 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
40001 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
40002 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
40003 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
40004 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
40005 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
40006 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
40007 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
40008 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
40009 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
40010 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
40011 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
40012 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
40013 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
40014 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
40015 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
40016 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
40017 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
40018 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
40019 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
40020 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
40021 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
40022 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
40023 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
40024 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
40025 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
40026 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
40027 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
40028 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
40029 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
40030 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
40031 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
40032 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
40033 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
40034 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
40035 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
40036 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
40037 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
40038 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
40039 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
40040 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
40041 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
40042 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
40043 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
40044 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
40045 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
40046 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
40047 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
40048 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
40049 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
40050 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
40051 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
40052 lib.adb, lib.ads, live.adb, live.ads,
40053 machcode.ads, make.adb, make.ads, makeusg.adb,
40054 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
40055 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
40056 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
40057 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
40058 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
40059 mlib.ads, namet.adb, namet.ads, nlists.adb,
40060 nlists.ads, opt.adb, opt.ads, osint-b.adb,
40061 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
40062 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
40063 osint.ads, output.adb, output.ads, par-ch10.adb,
40064 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
40065 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
40066 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
40067 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
40068 par-tchk.adb, par-util.adb, par.adb, par.ads,
40069 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
40070 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
40071 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
40072 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
40073 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
40074 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
40075 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
40076 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
40077 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
40078 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
40079 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
40080 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
40081 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
40082 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
40083 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
40084 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
40085 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
40086 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
40087 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
40088 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
40089 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
40090 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
40091 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
40092 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
40093 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
40094 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
40095 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
40096 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
40097 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
40098 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
40099 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
40100 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
40101 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
40102 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
40103 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
40104 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
40105 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
40106 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
40107 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
40108 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
40109 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
40110 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
40111 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
40112 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
40113 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
40114 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
40115 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
40116 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
40117 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
40118 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
40119 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
40120 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
40121 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
40122 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
40123 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
40124 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
40125 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
40126 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
40127 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
40128 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
40129 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
40130 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
40131 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
40132 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
40133 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
40134 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
40135 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
40136 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
40137 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
40138 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
40139 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
40140 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
40141 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
40142 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
40143 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
40144 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
40145 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
40146 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
40147 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
40148 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
40149 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
40150 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
40151 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
40152 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
40153 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
40154 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
40155 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
40156 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
40157 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
40158 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
40159 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
40160 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
40161 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
40162 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
40163 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
40164 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
40165 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
40166 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
40167 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
40168 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
40169 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
40170 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40171 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40172 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40173 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40174 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40175 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40176 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40177 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40178 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40179 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40180 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40181 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40182 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40183 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40184 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40185 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40186 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40187 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40188 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40189 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40190 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40191 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40192 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40193 snames.ads, sprint.adb, sprint.ads, stand.adb,
40194 stand.ads, stringt.adb, stringt.ads, style.adb,
40195 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40196 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40197 switch-m.ads, switch.adb, switch.ads, system.ads,
40198 table.adb, table.ads, targparm.adb, targparm.ads,
40199 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40200 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40201 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40202 ttypef.ads, ttypes.ads, types.adb, types.ads,
40203 uintp.adb, uintp.ads, uname.adb, uname.ads,
40204 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40205 usage.adb, usage.ads, validsw.adb, validsw.ads,
40206 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40207 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40208 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40209 formatting and other trivial changes from ACT.
40210
40211 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40212
40213 * gigi.h, utils2.c (build_constructor):
40214 Rename gnat_build_constructor. Use build_constructor.
40215 * decl.c (gnat_to_gnu_entity)
40216 * trans.c (tree_transform, pos_to_constructor, extract_values)
40217 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40218 (unchecked_convert)
40219 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40220 (fill_vms_descriptor):
40221 Update to match.
40222
40223 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40224
40225 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40226 * misc.c (gnat_tree_size): New function.
40227 (LANG_HOOKS_TREE_SIZE): Override.
40228
40229 2003-04-03 Jason Merrill <jason@redhat.com>
40230
40231 * misc.c (gnat_adjust_rli): #if 0.
40232
40233 2003-03-31 Geert Bosch <bosch@gnat.com>
40234
40235 PR ada/10020
40236 * link.c : Fix misspelled "const" keyword
40237
40238 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40239
40240 PR c++/7086
40241 * utils2.c: Adjust calls to put_var_into_stack.
40242
40243 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40244
40245 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40246
40247 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40248
40249 * misc.c (gnat_init): Update for new prototype.
40250
40251 2003-03-05 Olivier Hainque <hainque@gnat.com>
40252
40253 ada/9961
40254 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40255 warning, and fix return type for the IN_RTS && !SJLJ case.
40256
40257 2003-03-04 Tom Tromey <tromey@redhat.com>
40258
40259 * Make-lang.in (ada.tags): New target.
40260
40261 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40262
40263 ada/9911
40264 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40265 wrapper, which name remains constant whatever underlying GCC
40266 scheme.
40267
40268 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40269 the stable interface needed for a-except.
40270
40271 2003-03-02 Andreas Jaeger <aj@suse.de>
40272
40273 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40274 gnat_ug_wnt.texi: Regenerate.
40275
40276 2003-03-02 Laurent Guerby <guerby@acm.org>
40277
40278 * Makefile.in (install-gnatlib): Match previous change there
40279 so it works.
40280
40281 2003-02-28 Andreas Schwab <schwab@suse.de>
40282
40283 * Make-lang.in (install-gnatlib): Change to ada directory before
40284 running make instead of using ada/Makefile directly.
40285
40286 2003-02-18 Ben Elliston <bje@redhat.com>
40287
40288 Part of PR ada/9406
40289 * gnat_ug.texi (Binder output file): Grammar fix.
40290
40291 2003-02-18 Ben Elliston <bje@redhat.com>
40292
40293 PR other/7350
40294 * 5qtaprop.adb (Sleep): Fix typo in comment.
40295
40296 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40297
40298 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40299 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40300 gnat_ug_wnt.texi: Regenerate.
40301
40302 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40303
40304 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40305 be created if necessary.
40306 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40307 if necessary. Remove erroneous and redundant gnatchop
40308 installation commands. Test for gnatdll before attempting
40309 to install it.
40310 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40311 and gnatdll from all plausible locations.
40312
40313 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40314
40315 * utils2.c (build_unary_op): Don't check flag_volatile.
40316 * gnat_ug.texi: Remove -fvolatile from example.
40317 * gnat_ug_vxw.texi: Likewise.
40318
40319 2003-01-29 Laurent Guerby <guerby@acm.org>
40320
40321 PR ada/8344
40322 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40323 * Makefile.in: match previous change.
40324 * Make-lang.in: match previous change.
40325
40326 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40327
40328 * 5rosinte.ads: Add SIGXCPU.
40329 * 5rtpopsp.adb: New file.
40330 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40331 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40332 specific file 5rtpopsp.adb.
40333 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40334 is likely needed for all newlib targets.
40335 * init.c: Add RTEMS specific version of __gnat_initialize().
40336
40337 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40338
40339 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40340
40341 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40342
40343 * init.c (__gnat_error_handler): Make msg const.
40344
40345 * gmem.c (convert_addresses): Move declaration ...
40346 * adaint.h: ... here.
40347 * adaint.c (convert_addresses): Adapt addrs type to match
40348 prototype.
40349
40350 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40351
40352 2003-01-24 Andreas Schwab <schwab@suse.de>
40353
40354 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40355 size_t to avoid warning.
40356
40357 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40358
40359 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40360
40361 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40362
40363 * gnat_rm.texi: Remove RCS version number.
40364
40365 * ada-tree.h (union lang_tree_node): Add chain_next option.
40366
40367 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40368
40369 * Make-lang.in (ada.install-info, ada.install-common,
40370 ada.uninstall): Prepend $(DESTDIR) to the destination
40371 directory in all (un)installation commands.
40372 * Makefile.in (install-gnatlib, install-rts): Ditto.
40373
40374 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40375
40376 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40377 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40378 gnat_ug_wnt.texi: Regenerate.
40379
40380 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40381
40382 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40383 only.
40384 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40385 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40386 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40387 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40388 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40389 $(srcdir)/doc/include/gcc-common.texi.
40390
40391 2002-12-15 Geert Bosch <bosch@gnat.com>
40392
40393 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40394
40395 2002-12-14 Geert Bosch <bosch@gnat.com>
40396
40397 PR ada/5690
40398 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40399 case of a body created for a Renaming_As_Body, on which
40400 conformance checks are not performed.
40401
40402 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40403
40404 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40405 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40406 not already included.
40407 * Make-lang.in: Update dependencies.
40408
40409 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40410 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40411 solution to buffer overflow bug on GNU/Linux.
40412
40413 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40414
40415 PR ada/5856
40416 PR ada/6919
40417 * bindgen.adb: Remove all references to Public_Version.
40418 * comperr.adb: Remove all references to Public_Version and
40419 GNATPRO_Version; correct bug reporting instructions.
40420 * comperr.ads: Change to match bug box.
40421 * gnatvsn.ads: Remove all references to Public version and
40422 GNATPRO version.
40423
40424 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40425
40426 PR ada/6919
40427 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40428 GNU/Linux.
40429
40430 PR ada/6558
40431 * config-lang.in: Remove diff_excludes.
40432
40433 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40434
40435 PR ada/8358
40436 * trans.c (gnu_pending_elaboration_lists): New GC root.
40437 (build_unit_elab): Use..
40438
40439 2002-10-30 Geert Bosch <bosch@gnat.com>
40440
40441 PR ada/6558
40442 * misc.c : Include optabs.h
40443
40444 * Make-lang.in (misc.o): Add dependency on optabs.h
40445
40446 2002-10-29 Geert Bosch <bosch@gnat.com>
40447
40448 PR ada/6558
40449 * Make-lang.in (gnatbind): Depend on CONFIG_H
40450
40451 2002-10-29 Geert bosch <bosch@gnat.com>
40452
40453 PR ada/6558
40454 * misc.c: Unrevert misc.c (1.13)
40455
40456 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40457
40458 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40459 maintainership comments.
40460
40461 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40462
40463 PR ada/5904
40464 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40465 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40466 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40467 7staprop.adb: Correct statements in comments about
40468 maintainership of GNAT.
40469
40470 PR ada/5904
40471 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40472 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40473 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40474 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40475 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40476 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40477 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40478 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40479 comments about maintainership of GNAT.
40480
40481 PR ada/6919 (forward port of patch for PR ada/5904)
40482 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40483 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40484 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40485 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40486 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40487 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40488 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40489 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40490 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40491 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40492 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40493 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40494 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40495 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40496 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40497 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40498 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40499 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40500 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40501 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40502 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40503 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40504 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40505 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40506 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40507 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40508 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40509 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40510 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40511 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40512 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40513 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40514 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40515 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40516 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40517 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40518 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40519 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40520 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40521 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40522 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40523 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40524 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40525 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40526 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40527 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40528 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40529 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40530 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40531 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40532 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40533 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40534 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40535 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40536 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40537 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40538 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40539 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40540 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40541 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40542 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40543 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40544 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40545 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40546 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40547 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40548 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40549 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40550 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40551 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40552 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40553 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40554 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40555 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40556 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40557 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40558 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40559 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40560 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40561 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40562 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40563 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40564 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40565 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40566 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40567 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40568 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40569 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40570 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40571 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40572 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40573 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40574 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40575 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40576 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40577 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40578 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40579 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40580 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40581 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40582 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40583 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40584 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40585 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40586 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40587 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40588 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40589 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40590 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40591 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40592 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40593 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40594 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40595 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40596 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40597 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40598 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40599 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40600 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40601 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40602 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40603 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40604 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40605 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40606 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40607 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40608 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40609 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40610 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40611 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40612 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40613 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40614 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40615 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40616 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40617 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40618 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40619 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40620 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40621 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40622 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40623 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40624 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40625 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40626 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40627 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40628 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40629 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40630 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40631 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40632 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40633 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40634 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40635 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40636 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40637 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40638 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40639 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40640 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40641 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40642 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40643 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40644 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40645 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40646 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40647 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40648 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40649 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40650 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40651 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40652 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40653 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40654 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40655 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40656 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40657 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40658 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40659 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40660 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40661 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40662 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40663 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40664 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40665 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40666 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40667 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40668 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40669 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40670 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40671 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40672 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40673 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40674 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40675 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40676 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40677 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40678 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40679 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40680 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40681 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40682 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40683 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40684 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40685 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40686 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40687 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40688 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40689 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40690 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40691 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40692 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40693 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40694 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40695 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40696 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40697 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40698 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40699 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40700 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40701 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40702 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40703 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40704 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40705 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40706 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40707 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40708 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40709 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40710 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40711 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40712 stringt.ads stringt.h style.adb style.ads stylesw.adb
40713 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40714 table.adb table.ads targparm.adb targparm.ads targtyps.c
40715 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40716 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40717 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40718 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40719 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40720 usage.ads utils.c utils2.c validsw.adb validsw.ads
40721 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40722 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40723 xtreeprs.adb: Correct statements in comments about maintainership
40724 of GNAT.
40725
40726 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40727
40728 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40729 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40730 * gnatvsn.ads: Gnat_Version_String is now a function.
40731 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40732 copy the C version_string into a String and return it.
40733 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40734 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40735 Remove pragma Ident (Gnat_Version_String). If this was the
40736 sole use of package Gnatvsn, remove the with statement too.
40737 * gnat1drv.adb: Tweak -gnatv output.
40738
40739 2002-09-17 Richard Henderson <rth@redhat.com>
40740
40741 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40742 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40743 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40744 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40745 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40746 and real_2expN instead of a loop.
40747 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40748 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40749
40750 2002-08-25 Andre Leis <a.leis@gmx.net>
40751 David Billinghurst <David.Billinghurst@riotinto.com>
40752
40753 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40754
40755 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40756
40757 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40758 Remove $(CONFIG_H) dependency.
40759
40760 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40761
40762 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40763
40764 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40765
40766 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40767 xmalloc/strcpy.
40768 * misc.c (gnat_decode_option): Likewise.
40769
40770 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40771
40772 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40773 function approach did not work well because of a side effect (the
40774 function call could reallocate the table which was being indexed
40775 using its result). Fixes ada/4851. [RESURRECTED]
40776
40777 2002-07-01 Roger Sayle <roger@eyesopen.com>
40778
40779 * ada/utils.c (builtin_function): Accept an additional parameter.
40780
40781 2002-06-28 Andreas Jaeger <aj@suse.de>
40782
40783 PR ada/7144
40784 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40785 <adi@thur.de>.
40786
40787 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40788
40789 * Makefile.in (SHELL): Set to @SHELL@.
40790
40791 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40792
40793 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40794 array size calculation.
40795
40796 2002-06-04 Andreas Jaeger <aj@suse.de>
40797
40798 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40799 patch.
40800
40801 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
40802
40803 Merge from pch-branch:
40804
40805 * config-lang.in (gtfiles): Add ada-tree.h.
40806 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40807 (SET_TYPE_MODULUS): New.
40808 (SET_TYPE_INDEX): New.
40809 (SET_TYPE_DIGITS_VALUE): New.
40810 (SET_TYPE_RM_SIZE): New.
40811 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40812 (SET_TYPE_ADA_SIZE): New.
40813 (SET_TYPE_ACTUAL_BOUNDS): New.
40814 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40815 (SET_DECL_ORIGINAL_FIELD): New.
40816 (TREE_LOOP_ID): Correct typo.
40817 * decl.c: Use new macros.
40818 * utils.c: Include debug.h, use new macros.
40819 * utils2.c: Use new macros.
40820
40821 * ada-tree.h: Update all macros for new tree description.
40822 (struct tree_loop_id): New.
40823 (union lang_tree_node): New.
40824 (struct lang_decl): New.
40825 (struct lang_type): New.
40826 * misc.c (gnat_mark_tree): Delete.
40827 (LANG_HOOKS_MARK_TREE): Delete.
40828 * trans.c (tree_transform): No longer any need to cast
40829 for TREE_LOOP_ID.
40830
40831 * utils.c (struct language_function): New dummy structure.
40832
40833 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40834 (misc.o): Likewise.
40835 (utils.o): Likewise; also gtype-ada.h.
40836 * Make-lang.in (gnat1): Add dependency on s-gtype.
40837 (gnatbind): Add dependency on $(CONFIG_H).
40838 * utils.c: Correct last #include.
40839 (stuct e_stack): Remove unnecessary 'static'.
40840 (mark_e_stack): Remove unused prototype.
40841
40842 * scn-nlit.adb: Remove whitespace after version number to
40843 keep lines under 80 chars.
40844 * snames.adb: Likewise.
40845 * treepr.ads: Likewise.
40846
40847 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40848 (misc.o): Likewise.
40849 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40850 * config-lang.in (gtfiles): New.
40851 * decl.c: Use gengtype for roots.
40852 * gigi.h: Use gengtype for roots.
40853 * trans.c: Use gengtype for roots.
40854 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40855
40856 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40857
40858 * misc.c (gnat_init): Adjust setting of internal_error_function.
40859
40860 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40861
40862 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40863 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40864 gnat_ug_wnt.texi: Regenerate.
40865
40866 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
40867
40868 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40869
40870 * cstreams.c (max_path_len): Move from here ...
40871 * adaint.c (__gnat_max_path_len): ... to here.
40872 * adaint.c (__gnat_max_path_len): Declare.
40873 * g-dirope.adb (Max_Path): Adjust.
40874 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40875 * i-cstrea.ads (max_path_len): Adjust.
40876 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40877 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40878
40879 * Makefile.in, Make-lang.in: Documentation is now built in
40880 Make-lang.in. Store Info and generated Texinfo files in the
40881 source directory.
40882 * gnat_ug.texi: Remove CVS keywords, correct version number.
40883 Set file name correctly.
40884
40885 * gnat_ug_*.texi: Add.
40886 * .cvsignore: Ignore generated Texinfo files.
40887
40888 2002-05-30 Zack Weinberg <zack@codesourcery.com>
40889
40890 * ada.h: Add MI guard macro.
40891 (SUBTYPE): Define constants with an anonymous enum, not static
40892 const variables.
40893 (IN): Cast constants to appropriate type before use.
40894
40895 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
40896
40897 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40898 (experimental)".
40899
40900 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40901
40902 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40903 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40904 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40905 (ALL_ADA_CFLAGS): Likewise.
40906 (ADA_INCLUDES): Likewise.
40907 Adapt for new working dir.
40908 (GNATBIND): Use Makefile.in version.
40909 (.SUFFIXES): Copy from Makefile.in.
40910 (ada-warn): Define.
40911 (.adb.o, .ads.o): Copy from Makefile.in.
40912 Added $(OUTPUT_OPTION).
40913 (GNAT1_C_OBJS): Moved from Makefile.in.
40914 Prefix with ada subdir.
40915 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40916 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40917 Adapt for new working dir.
40918 (EXTRA_GNATBIND_OBJS): Likewise.
40919 (ADA_BACKEND): Moved from Makefile.in.
40920 Renamed to avoid conflict with global BACKEND.
40921 Use that one.
40922 (TARGET_ADA_SRCS): Moved from Makefile.in.
40923 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40924 Use ADA_BACKEND.
40925 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40926 (ada_extra_files): Moved from Makefile.in.
40927 Prefix with ada subdir.
40928 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40929 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40930 (ada/nmake.ads): Likewise.
40931 (update-sources): Moved from Makefile.in.
40932 Prefix with ada subdir.
40933 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40934 (ADA_TREE_H): Likewise.
40935 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40936 (ada/memtrack.o): Likewise.
40937 (ada/adadecode.o): Likewise.
40938 Update dependencies.
40939 (ada/adaint.o): New.
40940 (ada/argv.o): Moved from Makefile.in.
40941 Prefix with ada subdir.
40942 Update dependencies.
40943 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40944 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40945 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40946 Prefix with ada subdir.
40947 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40948 (GNAT DEPENDENCIES): Regenerate.
40949 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40950 toplevel Makefile.in.
40951 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40952 (TARGET_ADA_SRCS): Removed.
40953 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40954 (GNATBIND_OBJS): Likewise.
40955 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40956 (BACKEND): Removed.
40957 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40958 (TREE_H): Likewise.
40959 (ada_extra_files): Likewise.
40960 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40961 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40962 (update-sources): Likewise.
40963 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40964 (ADA_TREE_H): Likewise.
40965 (adadecoce.o): Likewise.
40966 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40967 (GNAT DEPENDENCIES): Likewise.
40968
40969 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40970
40971 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40972 * Makefile.in: Likewise.
40973
40974 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40975
40976 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40977 Restore $(CONFIG_H) and prefix.o dependencies.
40978 (ada.stage[1-4]): Depend on stage?-start.
40979
40980 * Makefile.in (b_gnatb.c): Depend on interfac.o.
40981
40982 2002-05-02 Jim Wilson <wilson@redhat.com>
40983
40984 * utils.c (finish_record_type): Change record_size to record_type.
40985
40986 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
40987
40988 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40989 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40990 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40991
40992 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
40993
40994 * misc.c (gnat_parse_file): Update.
40995
40996 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
40997
40998 * misc.c (gnat_init): Don't set lang_attribute_common.
40999
41000 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
41001
41002 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
41003
41004 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
41005
41006 * gnat_ug.texi: New file.
41007
41008 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
41009 instead of gfdl.texi
41010
41011 * xgnatug.adb, ug_words: New files.
41012
41013 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
41014 gnat_rm and gnat-style manuals.
41015
41016 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
41017
41018 * gigi.h (incomplete_type_error): Remove.
41019 * utils.c (incomplete_type_error): Remove.
41020
41021 2002-04-16 Mark Mitchell <mark@codesourcery.com>
41022
41023 * trans.c (tree_transform): Add has_scope argument to
41024 expand_start_stmt_expr.
41025
41026 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41027
41028 * gigi.h (truthvalue_conversion): Rename.
41029 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
41030 * trans.c (tree_transform): Update.
41031 * utils2.c (truthvalue_conversion): Rename, update.
41032 (build_binary_op, build_unary_op): Update.
41033
41034 2002-04-04 Laurent Guerby <guerby@acm.org>
41035
41036 * make.adb: Implement -margs, remove restriction about file name placement.
41037 * makeusg.adb: Documentation update.
41038 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
41039 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
41040
41041 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
41042
41043 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
41044 (builtin_function): Similarly.
41045
41046 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41047
41048 * decl.c (gnat_to_gnu_entity): Update.
41049 * gigi.h (mark_addressable): Rename.
41050 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
41051 * trans.c (tree_transform): Update.
41052 * utils.c (create_var_decl): Update.
41053 * util2.c (build_binary_op, build_unary_op,
41054 fill_vms_descriptor): Update.
41055 (mark_addressable): Rename, update.
41056
41057 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
41058
41059 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
41060 Rename.
41061 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
41062 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
41063 * trans.c (tree_transform, convert_with_check): Update.
41064 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
41065 Rename.
41066
41067 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
41068
41069 * gigi.h (finish_incomplete_decl): Rename.
41070 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
41071 * utils.c (gnat_init_decl_processing): Don't set hook.
41072 (finish_incomplete_decl): Rename.
41073
41074 2002-03-29 Andreas Schwab <schwab@suse.de>
41075
41076 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
41077 directory.
41078
41079 2001-03-28 Robert Dewar <dewar@gnat.com>
41080
41081 * checks.ads:
41082 (Remove_Checks): New procedure
41083
41084 * checks.adb:
41085 (Remove_Checks): New procedure
41086
41087 * exp_util.adb:
41088 Use new Duplicate_Subexpr functions
41089 (Duplicate_Subexpr_No_Checks): New procedure
41090 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41091 (Duplicate_Subexpr): Restore original form (checks duplicated)
41092 (Duplicate_Subexpr): Call Remove_Checks
41093
41094 * exp_util.ads:
41095 (Duplicate_Subexpr_No_Checks): New procedure
41096 (Duplicate_Subexpr_No_Checks_Orig): New procedure
41097 Add 2002 to copyright notice
41098
41099 * sem_util.adb: Use new Duplicate_Subexpr functions
41100
41101 * sem_eval.adb:
41102 (Eval_Indexed_Component): This is the place to call
41103 Constant_Array_Ref and to replace the value. We simply merge
41104 the code of this function in here, since it is now no longer
41105 used elsewhere. This fixes the problem of the back end not
41106 realizing we were clever enough to see that this was
41107 constant.
41108 (Expr_Val): Remove call to Constant_Array_Ref
41109 (Expr_Rep_Val): Remove call to Constant_Array_Ref
41110 Minor reformatting
41111 (Constant_Array_Ref): Deal with string literals (patch
41112 suggested by Zack Weinberg on the gcc list)
41113
41114 2001-03-28 Ed Schonberg <schonber@gnat.com>
41115
41116 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
41117 Duplicate_Subexpr_Move_Checks.
41118
41119 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
41120 Duplicate_Subexpr_Move_Checks.
41121
41122 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
41123 value of array exists before retrieving it (it may a private
41124 protected component in a function).
41125
41126 2002-03-28 Geert Bosch <bosch@gnat.com>
41127
41128 * prj-pp.adb : New file.
41129
41130 * prj-pp.ads : New file.
41131
41132 2002-03-28 Andreas Jaeger <aj@suse.de>
41133
41134 * Makefile.in (stamp-sdefault): Fix path for Makefile.
41135
41136 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
41137
41138 * misc.c (gnat_expand_expr): Move prototype.
41139
41140 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41141
41142 * misc.c (insert_default_attributes): Remove.
41143
41144 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41145
41146 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
41147 (gnat_init): Don't set hook.
41148 (gnat_expand_expr): Fix prototype.
41149
41150 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
41151
41152 * misc.c (ggc_p): Remove.
41153
41154 2002-03-27 Geert Bosch <bosch@gnat.com>
41155
41156 * prj-makr.ads, prj-makr.adb : New files.
41157
41158 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
41159
41160 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
41161 (lang_mark_tree): Make static, rename.
41162
41163 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
41164
41165 * misc.c (maybe_build_cleanup): Remove.
41166
41167 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
41168
41169 * gigi.h (yyparse): Remove.
41170
41171 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41172
41173 From Ben Brosgol <brosgol@gnat.com>
41174 * gnat_rm.texi: Sync with ACT version.
41175
41176 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41177
41178 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41179 (gnat_init): Remove old hook.
41180
41181 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41182
41183 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41184 (yyparse): Rename gnat_parse_file.
41185
41186 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41187
41188 Delete all lines containing "$Revision:".
41189 * xeinfo.adb: Don't look for revision numbers.
41190 * xnmake.adb: Likewise.
41191 * xsinfo.adb: Likewise.
41192 * xsnames.adb: Likewise.
41193 * xtreeprs.adb: Likewise.
41194
41195 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41196
41197 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41198 gnat_tree_code_name): Delete.
41199 (tree_code_type, tree_code_length, tree_code_name): Define.
41200 (gnat_init): Don't try to copy into the various tree_code
41201 arrays.
41202
41203 2002-03-11 Richard Henderson <rth@redhat.com>
41204
41205 * Makefile.in (.NOTPARALLEL): Add fake tag.
41206
41207 2002-03-07 Geert Bosch <bosch@gnat.com>
41208
41209 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41210 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41211 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41212 switch-m.adb, switch-m.ads : New files.
41213
41214 2002-03-07 Geert Bosch <bosch@gnat.com>
41215
41216 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41217 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41218 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41219 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41220 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41221 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41222 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41223 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41224 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41225 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41226 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41227 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41228 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41229 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41230 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41231 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41232 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41233 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41234 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41235 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41236 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41237 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41238 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41239 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41240 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41241 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41242 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41243 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41244 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41245 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41246 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41247 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41248 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41249 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41250 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41251 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41252 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41253 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41254 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41255 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41256 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41257 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41258 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41259 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41260 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41261 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41262 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41263 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41264 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41265 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41266 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41267 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41268 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41269 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41270 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41271 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41272 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41273 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41274 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41275 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41276 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41277 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41278 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41279 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41280 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41281 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41282 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41283 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41284 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41285 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41286 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41287 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41288 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41289 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41290 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41291 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41292 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41293 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41294 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41295 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41296 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41297 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41298 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41299 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41300 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41301 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41302 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41303 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41304 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41305 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41306 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41307 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41308 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41309 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41310 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41311 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41312 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41313
41314 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41315 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41316 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41317 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41318
41319 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41320 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41321
41322 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41323 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41324
41325 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41326 from mdllfile.ad[bs] and mdlltool.ad[bs]
41327
41328 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41329
41330 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41331 lieu of explicit sizeof/sizeof.
41332
41333 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41334
41335 * misc.c (copy_lang_decl): Remove.
41336
41337 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41338
41339 * misc.c: Delete traditional-mode-related code copied from the
41340 C front end but not used, or used only to permit the compiler
41341 to link.
41342
41343 2002-02-07 Richard Henderson <rth@redhat.com>
41344
41345 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41346 * adaint.h (__gnat_to_gm_time): Update prototype.
41347
41348 2002-01-30 Richard Henderson <rth@redhat.com>
41349
41350 * trans.c (tree_transform) [N_Loop_Statement]: Use
41351 expand_exit_loop_top_cond.
41352
41353 2001-12-23 Richard Henderson <rth@redhat.com>
41354
41355 * utils.c (end_subprog_body): Push GC context around
41356 rest_of_compilation for nested functions.
41357
41358 2001-12-23 Richard Henderson <rth@redhat.com>
41359
41360 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41361
41362 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41363
41364 * gnat-style.texi (Declarations and Types): Remove ancient style
41365 rule which was mandated by code generation issues.
41366
41367 * gnat-style.texi (header): Add @dircategory, @direntry.
41368 (title page): Remove date.
41369 (general) Add @./@: where approriate, and two spaces after the
41370 full stop at the end of a sentence. Use @samp markup when
41371 referring concrete lexical entities (keywords, attribute names
41372 etc.), and @syntax for ARM grammar elements. Use @r for English
41373 text in comments. Use @emph for emphasis. Change "if-statements"
41374 etc. to "if statements" (without @samp). Break long lines. Make
41375 casing of section names consistent.
41376 (Identifiers): Use @samp markup for variable names.
41377 (Comments): Use @samp markup for comment characters. Line-end
41378 comments may follow any Ada code, not just statements. Fix
41379 misspelling of "Integer" as "integer".
41380 (Loop statements): Do not use variable name "I", use "J".
41381 (Subprogram Declarations): Document alignment.
41382 (Subprogram Bodies, Block statements): Document empty line before
41383 "begin".
41384
41385 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41386
41387 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41388 function approach did not work well because of a side effect (the
41389 function call could reallocate the table which was being indexed
41390 using its result). Fixes ada/4851.
41391
41392 2001-12-19 Robert Dewar <dewar@gnat.com>
41393
41394 * bindgen.adb: Minor reformatting
41395
41396 * cstand.adb: Minor reformatting
41397
41398 * fmap.adb: Minor reformatting
41399 Change name from Add for Add_To_File_Map (Add is much too generic)
41400 Change Path_Name_Of to Mapped_Path_Name
41401 Change File_Name_Of to Mapped_File_Name
41402 Fix copyright dates in header
41403
41404 * fmap.ads:
41405 Change name from Add for Add_To_File_Map (Add is much too generic)
41406 Change Path_Name_Of to Mapped_Path_Name
41407 Change File_Name_Of to Mapped_File_Name
41408 Fix copyright dates in header
41409
41410 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41411 Add use clause for Fmap.
41412
41413 * make.adb: Minor reformatting
41414
41415 * osint.adb: Minor reformatting. Change of names in Fmap.
41416 Add use clause for Fmap.
41417
41418 * prj-env.adb: Minor reformatting
41419
41420 * prj-env.ads: Minor reformatting
41421
41422 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41423 error found (there were odd exceptions to this general rule in
41424 -gnatec/-gnatem processing)
41425
41426 2001-12-19 Olivier Hainque <hainque@gnat.com>
41427
41428 * raise.c (__gnat_eh_personality): Exception handling personality
41429 routine for Ada. Still in rough state, inspired from the C++ version
41430 and still containing a bunch of debugging artifacts.
41431 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41432 inspired from the C++ library.
41433
41434 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41435 exception handling integration.
41436
41437 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41438
41439 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41440 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41441 (HIE_OBJS): Add s-fat*.o
41442 (RAVEN_SOURCES): Remove files that are no longer required. Add
41443 interrupt handling files.
41444 (RAVEN_MOD): Removed, no longer needed.
41445
41446 2001-12-19 Robert Dewar <dewar@gnat.com>
41447
41448 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41449 Add 2001 to copyright date
41450
41451 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41452 need to force universal inlining for these cases.
41453
41454 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41455
41456 * s-taprob.adb: Minor clean ups so that this unit can be used in
41457 Ravenscar HI.
41458
41459 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41460 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41461
41462 2001-12-19 Vincent Celier <celier@gnat.com>
41463
41464 * prj-tree.ads (Project_Node_Record): Add comments for components
41465 Pkg_Id and Case_Insensitive.
41466
41467 2001-12-19 Pascal Obry <obry@gnat.com>
41468
41469 * g-socket.adb: Minor reformatting. Found while reading code.
41470
41471 2001-12-19 Robert Dewar <dewar@gnat.com>
41472
41473 * prj-tree.ads: Minor reformatting
41474
41475 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41476
41477 * config-lang.in (diff_excludes): Remove.
41478
41479 2001-12-17 Ed Schonberg <schonber@gnat.com>
41480
41481 * sem_res.adb (Resolve_Selected_Component): do not generate a
41482 discriminant check if the selected component is a component of
41483 the argument of an initialization procedure.
41484
41485 * trans.c (tree_transform, case of arithmetic operators): If result
41486 type is private, the gnu_type is the base type of the full view,
41487 given that the full view itself may be a subtype.
41488
41489 2001-12-17 Robert Dewar <dewar@gnat.com>
41490
41491 * sem_res.adb: Minor reformatting
41492
41493 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41494 parameter in call to Machine (unknown horrible effects from this
41495 omission).
41496
41497 * urealp.h: Add definition of Round_Even for call to Machine
41498 Add third parameter for Machine
41499
41500 2001-12-17 Ed Schonberg <schonber@gnat.com>
41501
41502 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41503 predefined units in No_Run_Time mode.
41504
41505 2001-12-17 Richard Kenner <kenner@gnat.com>
41506
41507 * misc.c (insn-codes.h): Now include.
41508
41509 2001-12-17 Olivier Hainque <hainque@gnat.com>
41510
41511 * a-except.adb: Preparation work for future integration of the GCC 3
41512 exception handling mechanism
41513 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41514 to factorize previous code sequences and make them externally callable,
41515 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41516 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41517 Use the new notification routines.
41518
41519 2001-12-17 Emmanuel Briot <briot@gnat.com>
41520
41521 * prj-tree.ads (First_Choice_Of): Document the when others case
41522
41523 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41524
41525 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41526 HI-E mode, in order to support Ravenscar profile properly.
41527
41528 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41529 mode on 32 bits targets.
41530
41531 2001-12-17 Vincent Celier <celier@gnat.com>
41532
41533 * fmap.adb: Initial version.
41534
41535 * fmap.ads: Initial version.
41536
41537 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41538 If search is successfully done, add to mapping.
41539
41540 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41541
41542 * make.adb:
41543 (Gnatmake): Add new local variable Mapping_File_Name.
41544 Create mapping file when using project file(s).
41545 Delete mapping file before exiting.
41546
41547 * opt.ads (Mapping_File_Name): New variable
41548
41549 * osint.adb (Find_File): Use path name found in mapping, if any.
41550
41551 * prj-env.adb (Create_Mapping_File): New procedure
41552
41553 * prj-env.ads (Create_Mapping_File): New procedure.
41554
41555 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41556 (Mapping_File)
41557
41558 * usage.adb: Add entry for new switch -gnatem.
41559
41560 * Makefile.in: Add dependencies for fmap.o.
41561
41562 2001-12-17 Ed Schonberg <schonber@gnat.com>
41563
41564 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41565 is a package instantiation rewritten as a package body.
41566 (Install_Withed_Unit): Undo previous change, now redundant.
41567
41568 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41569
41570 * layout.adb:
41571 (Compute_Length): Move conversion to Unsigned to callers.
41572 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41573 Compute_Length and Determine_Range.
41574 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41575 Compute_Length and Determine_Range.
41576 Above changes fix problem with length computation for supernull arrays
41577 where Max (Len, 0) wasn't getting applied due to the Unsigned
41578 conversion used by Compute_Length.
41579
41580 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41581
41582 * rtsfind.ads:
41583 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41584 System.Secondary_Stack.
41585 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41586 in HI-E mode.
41587 Remove unused entity RE_Exception_Data.
41588
41589 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41590
41591 * rident.ads (No_Secondary_Stack): New restriction.
41592
41593 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41594
41595 * gnat_rm.texi: Fix minor typos. Found while reading the section
41596 regarding "Bit_Order Clauses" that was sent to a customer.
41597 Very interesting documentation!
41598
41599 2001-12-17 Robert Dewar <dewar@gnat.com>
41600
41601 * sem_case.adb (Choice_Image): Avoid creating improper character
41602 literal names by using the routine Set_Character_Literal_Name. This
41603 fixes bombs in certain error message cases.
41604
41605 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41606
41607 * a-reatim.adb: Minor reformatting.
41608
41609 2001-12-17 Ed Schonberg <schonber@gnat.com>
41610
41611 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41612 case where the formal is an extension of another formal in the current
41613 unit or in a parent generic unit.
41614
41615 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41616
41617 * s-tposen.adb: Update comments. Minor reformatting.
41618 Minor code clean up.
41619
41620 * s-tarest.adb: Update comments. Minor code reorganization.
41621
41622 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41623
41624 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41625 when Java_VM.
41626
41627 2001-12-17 Robert Dewa <dewar@gnat.com>
41628
41629 * exp_attr.adb: Minor reformatting
41630
41631 2001-12-17 Ed Schonberg <schonber@gnat.com>
41632
41633 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41634 derivations nested within a child unit: verify that the parent
41635 type is declared in an outer scope.
41636
41637 2001-12-17 Robert Dewar <dewar@gnat.com>
41638
41639 * sem_ch12.adb: Minor reformatting
41640
41641 2001-12-17 Ed Schonberg <schonber@gnat.com>
41642
41643 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41644 warning if current unit is a predefined one, from which bodies may
41645 have been deleted.
41646
41647 2001-12-17 Robert Dewar <dewar@gnat.com>
41648
41649 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41650 Fix header format. Add 2001 to copyright date.
41651
41652 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41653 which caused CE during compilation if checks were enabled.
41654
41655 2001-12-17 Vincent Celier <celier@gnat.com>
41656
41657 * make.adb:
41658 (Switches_Of): New function
41659 (Test_If_Relative_Path): New procedure
41660 (Add_Switches): Use new function Switches_Of
41661 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41662 When using a project file, test if there are any relative
41663 search path. Fail if there are any.
41664 (Gnatmake): Only add switches for the primary directory when not using
41665 a project file. When using a project file, change directory to the
41666 object directory of the main project file. When using a project file,
41667 test if there are any relative search path. Fail if there are any.
41668 When using a project file, fail if specified executable is relative
41669 path with directory information, and prepend executable, if not
41670 specified as an absolute path, with the exec directory. Make sure
41671 that only one -o switch is transmitted to the linker.
41672
41673 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41674
41675 * prj-nmsc.adb:
41676 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41677 when using a non standard naming scheme.
41678 (Check_Ada_Naming_Scheme): Make sure that error messages
41679 do not raise exceptions.
41680 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41681 (Language_Independent_Check): Check the exec directory.
41682
41683 * prj.adb (Project_Empty): Add new component Exec_Directory
41684
41685 * prj.ads:
41686 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41687 (Project_Data): Add component Exec_Directory
41688
41689 * snames.adb: Updated to match snames.ads revision 1.215
41690
41691 * snames.ads: Added Exec_Dir
41692
41693 2001-12-17 Robert Dewar <dewar@gnat.com>
41694
41695 * make.adb: Minor reformatting
41696
41697 * prj-nmsc.adb: Minor reformatting
41698
41699 * snames.adb: Updated to match snames.ads
41700
41701 * snames.ads: Alphebetize entries for project file
41702
41703 2001-12-17 Ed Schonberg <schonber@gnat.com>
41704
41705 * trans.c (process_freeze_entity): Do nothing if the entity is a
41706 subprogram that was already elaborated.
41707
41708 2001-12-17 Richard Kenner <kenner@gnat.com>
41709
41710 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41711 and Esize if object is referenced via pointer.
41712
41713 2001-12-17 Ed Schonberg <schonber@gnat.com>
41714
41715 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41716 is discrete before analyzing choices.
41717
41718 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41719
41720 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41721 containing the name of the Ada Main Program. This string is mainly
41722 intended for the debugger.
41723 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41724
41725 2001-12-17 Robert Dewar <dewar@gnat.com>
41726
41727 * ali.adb: Set new Dummy_Entry field in dependency entry
41728
41729 * ali.ads: Add Dummy_Entry field to source dependency table
41730
41731 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41732
41733 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41734
41735 * lib-writ.ads: Document dummy D lines for missing files.
41736
41737 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41738
41739 2001-12-17 Robert Dewar <dewar@gnat.com>
41740
41741 * ali.adb: Type reference does not reset current file.
41742
41743 * ali.adb: Recognize and scan renaming reference
41744
41745 * ali.ads: Add spec for storing renaming references.
41746
41747 * lib-xref.ads: Add documentation for handling of renaming references
41748
41749 * lib-xref.adb: Implement output of renaming reference.
41750
41751 * checks.adb:
41752 (Determine_Range): Document local variables
41753 (Determine_Range): Make sure Hbound is initialized. It looks as though
41754 there could be a real problem here with an uninitialized reference
41755 to Hbound, but no actual example of failure has been found.
41756
41757 2001-12-17 Laurent Pautet <pautet@gnat.com>
41758
41759 * g-socket.ads:
41760 Fix comment of Shutdown_Socket and Close_Socket. These functions
41761 should not fail silently because if they are called twice, this
41762 probably means that there is a race condition in the user program.
41763 Anyway, this behaviour is consistent with the rest of this unit.
41764 When an error occurs, an exception is raised with the error message
41765 as exception message.
41766
41767 2001-12-17 Robert Dewar <dewar@gnat.com>
41768
41769 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41770 that it happens before modification of Sloc values for -gnatD.
41771
41772 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41773 so that it happens before modification of Sloc values for -gnatD.
41774
41775 * switch.adb: Minor reformatting
41776
41777 2001-12-15 Richard Henderson <rth@redhat.com>
41778
41779 * sem_ch7.adb: Wrap comment.
41780
41781 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41782
41783 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41784 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41785 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41786 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41787 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41788 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41789 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41790 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41791 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41792 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41793 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41794 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41795 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41796 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41797 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41798 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41799 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41800 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41801 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41802 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41803 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41804 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41805 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41806 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41807 spelling errors.
41808
41809 2001-12-14 Vincent Celier <celier@gnat.com>
41810
41811 * osint.adb(Create_Debug_File): When an object file is specified,
41812 put the .dg file in the same directory as the object file.
41813
41814 2001-12-14 Robert Dewar <dewar@gnat.com>
41815
41816 * osint.adb: Minor reformatting
41817
41818 * lib-xref.adb (Output_Instantiation): New procedure to generate
41819 instantiation references.
41820
41821 * lib-xref.ads: Add documentation of handling of generic references.
41822
41823 * ali.adb (Read_Instantiation_Ref): New procedure to read
41824 instantiation references
41825
41826 * ali.ads: Add spec for storing instantiation references
41827
41828 * bindusg.adb: Minor reformatting
41829
41830 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41831
41832 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41833
41834 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41835
41836 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41837
41838 * csets.ads:
41839 Fix header format
41840 Add 2001 to copyright date
41841 Add entry for Latin-5 (Cyrillic ISO-8859-5)
41842
41843 2001-12-14 Matt Gingell <gingell@gnat.com>
41844
41845 * adaint.c: mktemp is a macro on Lynx and can not be used as an
41846 expression.
41847
41848 2001-12-14 Richard Kenner <kenner@gnat.com>
41849
41850 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41851 if operand is CONSTRUCTOR.
41852
41853 2001-12-14 Ed Schonberg <schonber@gnat.com>
41854
41855 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41856 before emiting check on right-hand side, so that exception information
41857 is correct.
41858
41859 2001-12-14 Richard Kenner <kenner@gnat.com>
41860
41861 * utils.c (create_var_decl): Throw away initializing expression
41862 if just annotating types and non-constant.
41863
41864 2001-12-14 Vincent Celier <celier@gnat.com>
41865
41866 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41867 Default_Ada_...
41868
41869 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41870 Remove functions.
41871 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41872
41873 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41874 Remove functions.
41875 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41876
41877 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41878
41879 * ChangeLog: Remove piece of diff output.
41880
41881 2001-12-14 Geert Bosch <bosch@gnat.com>
41882
41883 * config-lang.in: Update copyright notice
41884
41885 * layout.adb: Remove commented out code.
41886
41887 * mdllfile.ads: Update copyright notice. Fix header format.
41888
41889 * sem_case.ads: Likewise.
41890
41891 * sem_ch3.adb: Minor reformatting.
41892
41893 2001-12-12 Geert Bosch <bosch@gnat.com>
41894
41895 * freeze.ads: Update copyright date.
41896
41897 * g-comlin.ads: Minor reformatting.
41898
41899 * gnat-style.texi: Fix typo.
41900
41901 2001-12-12 Geert Bosch <bosch@gnat.com>
41902
41903 * einfo.h: Regenerate.
41904
41905 2001-12-12 Ed Schonberg <schonber@gnat.com>
41906
41907 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41908 on known node types, rather than untyped fields. Further cleanups.
41909
41910 2001-12-12 Robert Dewar <dewar@gnat.com>
41911
41912 * sem_ch12.adb:
41913 (Save_Entity_Descendant): Minor comment update.
41914 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41915 of an N_Attribute_Reference node. As per note below, this does not
41916 eliminate need for Associated_Node in attribute ref nodes.
41917 (Associated_Node): Documentation explicitly mentions attribute
41918 reference nodes, since this field is used in such nodes.
41919
41920 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41921
41922 2001-12-12 Robert Dewar <dewar@gnat.com>
41923
41924 * s-stalib.adb: Add more comments on with statements being needed
41925
41926 * par-ch12.adb: Minor reformatting
41927
41928 * prj-dect.ads: Fix copyright header
41929
41930 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41931 inputs fit in 32 bits, but the result still overflows.
41932
41933 * s-fatgen.ads: Minor comment improvement
41934
41935 2001-12-12 Ed Schonberg <schonber@gnat.com>
41936
41937 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41938 formal derived type, look for an inherited component from the full
41939 view of the parent, if any.
41940
41941 2001-12-12 Robert Dewar <dewar@gnat.com>
41942
41943 * checks.ads (Apply_Alignment_Check): New procedure.
41944
41945 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41946 ensure that the alignment of objects with address clauses is
41947 appropriate, and raise PE if not.
41948
41949 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41950 Exp_Pakd.Known_Aligned_Enough
41951
41952 * mdllfile.ads: Minor reformatting
41953
41954 * mlib-fil.ads: Minor reformatting
41955
41956 2001-12-12 Ed Schonberg <schonber@gnat.com>
41957
41958 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41959 fix to any component reference if enclosing record has non-standard
41960 representation.
41961
41962 2001-12-12 Vincent Celier <celier@gnat.com>
41963
41964 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41965 Iteration
41966
41967 2001-12-12 Ed Schonberg <schonber@gnat.com>
41968
41969 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41970 sem_attr.
41971
41972 2001-12-12 Robert Dewar <dewar@gnat.com>
41973
41974 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41975
41976 2001-12-12 Emmanuel Briot <briot@gnat.com>
41977
41978 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41979 and it adds dependencies to system.io.
41980
41981 2001-12-12 Pascal Obry <obry@gnat.com>
41982
41983 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41984 variable name.
41985
41986 2001-12-11 Ed Schonberg <schonber@gnat.com>
41987
41988 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41989 that is the parent of other generics, the instance body replaces the
41990 instance node. Retrieve the instance of the spec, which is the one
41991 that is visible in clients and within the body.
41992
41993 2001-12-11 Vincent Celier <celier@gnat.com>
41994
41995 * gnatmain.adb: Initial version.
41996
41997 * gnatmain.ads: Initial version.
41998
41999 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
42000
42001 * snames.adb: Updated to match snames.ads.
42002
42003 * snames.ads: Added Gnatstub.
42004
42005 2001-12-11 Vincent Celier <celier@gnat.com>
42006
42007 * prj-attr.adb (Initialization_Data): Change name from
42008 Initialisation_Data.
42009
42010 2001-12-11 Emmanuel Briot <briot@gnat.com>
42011
42012 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
42013 + and * applied to backslashed expressions like \r.
42014
42015 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
42016
42017 * g-os_lib.ads: String_List type added, Argument_List type is now
42018 subtype of String_List.
42019
42020 2001-12-11 Robert Dewar <dewar@gnat.com>
42021
42022 * g-os_lib.ads: Change copyright to FSF
42023 Add comments for String_List type
42024
42025 2001-12-11 Vincent Celier <celier@gnat.com>
42026
42027 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
42028 string to the buffer).
42029
42030 2001-12-11 Ed Schonberg <schonber@gnat.com>
42031
42032 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
42033 sem_attr.
42034
42035 * sem_attr.adb: Simplify previous fix for Address.
42036 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
42037 to avoid anomalies where the bound of the type appears to raise
42038 constraint error.
42039
42040 2001-12-11 Robert Dewar <dewar@gnat.com>
42041
42042 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
42043 handled.
42044
42045 2001-12-11 Ed Schonber <schonber@gnat.com>
42046
42047 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
42048 renamed unit before checking for recursive instantiations.
42049
42050 2001-12-11 Emmanuel Briot <briot@gnat.com>
42051
42052 * prj.ads: Add comments for some of the fields.
42053
42054 2001-12-11 Robert Dewar <dewar@gnat.com>
42055
42056 * lib-xref.adb (Output_Refs): Don't output type references outside
42057 the main unit if they are not otherwise referenced.
42058
42059 2001-12-11 Ed Schonberg <schonber@gnat.com>
42060
42061 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
42062 code and diagnose additional illegal uses
42063
42064 * sem_util.adb (Is_Object_Reference): An indexed component is an
42065 object only if the prefix is.
42066
42067 2001-12-11 Vincent Celier <celier@gnat.com>
42068
42069 * g-diopit.adb: Initial version.
42070
42071 * g-diopit.ads: Initial version.
42072
42073 * g-dirope.adb:
42074 (Expand_Path): Avoid use of Unbounded_String
42075 (Find, Wildcard_Iterator): Moved to child package Iteration
42076
42077 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
42078
42079 2001-12-11 Robert Dewar <dewar@gnat.com>
42080
42081 * sem_attr.adb: Minor reformatting
42082
42083 2001-12-11 Ed Schonberg <schonber@gnat.com>
42084
42085 * sem_ch3.adb: Clarify some ???.
42086
42087 2001-12-11 Robert Dewar <dewar@gnat.com>
42088
42089 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
42090 Exp_Pakd.Known_Aligned_Enough
42091
42092 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
42093 version is moved to Exp_Ch13.
42094
42095 2001-12-11 Robert Dewar <dewar@gnat.com>
42096
42097 * einfo.ads: Minor reformatting
42098
42099 * exp_ch5.adb: Add comment for previous.change
42100
42101 * ali.adb: New interface for extended typeref stuff.
42102
42103 * ali.ads: New interface for typeref stuff.
42104
42105 * checks.adb (Apply_Alignment_Check): New procedure.
42106
42107 * debug.adb: Add -gnatdM for modified ALI output
42108
42109 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
42110
42111 * lib-xref.adb: Extend generation of <..> notation to cover
42112 subtype/object types. Note that this is a complete rewrite,
42113 getting rid of the very nasty quadratic algorithm previously
42114 used for derived type output.
42115
42116 * lib-xref.ads: Extend description of <..> notation to cover
42117 subtype/object types. Uses {..} for these other cases.
42118 Also use (..) for pointer types.
42119
42120 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
42121
42122 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
42123 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
42124
42125 2001-12-11 Vincent Celier <celier@gnat.com>
42126
42127 * gnatcmd.adb:
42128 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
42129 Changed /BIND_ONLY to /ACTIONS=BIND
42130 Changed /LINK_ONLY to /ACTIONS=LINK
42131
42132 2001-12-11 Ed Schonberg <schonber@gnat.com>
42133
42134 * sem_ch8.adb (Find_Selected_Component): improved search for a
42135 candidate package in case of error.
42136
42137 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
42138 chain back on scope stack before reinstalling use clauses.
42139
42140 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
42141 is enabled, do not kill the code for the condition, to preserve
42142 warning.
42143
42144 2001-12-11 Robert Dewar <dewar@gnat.com>
42145
42146 * checks.adb (Insert_Valid_Check): Apply validity check to expression
42147 of conversion, not to result of conversion.
42148
42149 2001-12-11 Ed Schonberg <schonber@gnat.com>
42150
42151 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
42152 before freezing parent. If the declarations are mutually recursive,
42153 an access to the current record type may be frozen before the
42154 derivation is complete.
42155
42156 2001-12-05 Vincent Celier <celier@gnat.com>
42157
42158 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
42159 -c /COMPILE_ONLY, -l /LINK_ONLY
42160
42161 * opt.ads:
42162 (Bind_Only): New Flag
42163 (Link_Only): New flag
42164
42165 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
42166 and -l (Link_Only)
42167
42168 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42169
42170 * make.adb:
42171 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42172 (Gnatmake): Set the step flags. Only perform a step if the
42173 corresponding step flag is True.
42174 (Scan_Make_Arg): Reset the bind and link step flags when -u
42175 or -gnatc has been specified.
42176
42177 2001-12-05 Ed Schonberg <schonber@gnat.com>
42178
42179 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42180 get bounds from right operand.
42181
42182 * sem_eval.adb: Minor reformatting
42183
42184 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42185 than Index'First, its lower bound may be different from 1.
42186
42187 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42188 and C48009J
42189
42190 2001-12-05 Vincent Celier <celier@gnat.com>
42191
42192 * prj-nmsc.adb Minor reformatting
42193
42194 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42195 set and libraries are not supported.
42196
42197 2001-12-05 Ed Schonberg <schonber@gnat.com>
42198
42199 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42200 private view explicitly, so the back-end can treat as a global
42201 when appropriate.
42202
42203 2001-12-05 Ed Schonberg <schonber@gnat.com>
42204
42205 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42206 unit, always replace instance node with new body, for ASIS use.
42207
42208 2001-12-05 Vincent Celier <celier@gnat.com>
42209
42210 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42211 libraries are not supported and both attributes Library_Name and
42212 Library_Dir are specified.
42213
42214 * prj-proc.adb (Expression): Set location of Result to location of
42215 first term.
42216
42217 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42218 (prj-nmsc is now importing MLib.Tgt)
42219
42220 * prj-proc.adb: Put the change indicated above that was forgotten.
42221
42222 2001-12-05 Robert Dewar <dewar@gnat.com>
42223
42224 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42225
42226 2001-12-05 Ed Schonberg <schonber@gnat.com>
42227
42228 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42229 constraint, introduce explicit subtype declaration and derive from it.
42230
42231 * sem_ch3.adb: Minor reformatting
42232
42233 2001-12-05 Robert Dewar <dewar@gnat.com>
42234
42235 * checks.adb (Determine_Range): Increase cache size for checks.
42236 Minor reformatting
42237
42238 * exp_ch6.adb: Minor reformatting
42239 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42240 a parameter whose root type is System.Address, since treating such
42241 subprograms as pure in the code generator is almost surely a mistake
42242 that will lead to unexpected results.
42243
42244 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42245 change handling of conversions.
42246
42247 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42248
42249 2001-12-05 Ed Schonberg <schonber@gnat.com>
42250
42251 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42252 aggregate with static wrong size, attach generated Raise node to
42253 declaration.
42254
42255 2001-12-05 Robert Dewar <dewar@gnat.com>
42256
42257 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42258 Fixes compilation abandoned bomb in B24009B.
42259
42260 2001-12-05 Ed Schonberg <schonber@gnat.com>
42261
42262 * sem_ch12.adb:
42263 Document use of Associated_Node on Selected_Components.
42264 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42265 to clarify use of untyped descendant fields.
42266
42267 2001-12-05 Robert Dewar <dewar@gnat.com>
42268
42269 * prj-dect.ads: Add ??? comment
42270 Add 2001 to copyright notice (was not done in after all)
42271
42272 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42273
42274 * prj.ads: Minor reformatting throughout, and add some ??? comments
42275
42276 * snames.ads: Minor reformatting
42277
42278 2001-12-05 Geert Bosch <bosch@gnat.com>
42279
42280 * snames.adb: Autoupdate
42281
42282 2001-12-05 Vincent Celier <celier@gnat.com>
42283
42284 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42285
42286 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42287
42288 * prj-env.adb: Minor comment changes (modifying -> extends).
42289
42290 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42291
42292 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42293 Tok_Extends.
42294
42295 * prj.adb (Initialize): Change Modifying to Extends.
42296
42297 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42298
42299 * prj.ads: Minor comment change (Modifying -> extending).
42300
42301 * snames.ads: Change modifying to extends.
42302
42303 2001-12-05 Robert Dewar <dewar@gnat.com>
42304
42305 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42306 do this after all.
42307
42308 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42309 do this after all. Add 2001 to copyright notice
42310
42311 2001-12-04 Geert Bosch <bosch@gnat.com>
42312
42313 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42314
42315 2001-12-04 Robert Dewar <dewar@gnat.com>
42316
42317 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42318 location if we already have errors. Stops some cases of cascaded
42319 errors.
42320
42321 * errout.adb: Improve comment.
42322
42323 2001-12-04 Robert Dewar <dewar@gnat.com>
42324
42325 * sem_ch12.adb:
42326 (Analyze_Formal_Type_Definition): Defend against Error.
42327 (Analyze_Formal_Subprogram): Defend against Error.
42328
42329 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42330 remove following semicolon if present. Removes cascaded error.
42331
42332 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42333
42334 * bindgen.adb:
42335 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42336 exceptions equals 0.
42337 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42338 Fixes PIWG E tests (which have to be run with -gnatL).
42339
42340 2001-12-04 Robert Dewar <dewar@gnat.com>
42341
42342 * einfo.ads: Minor reformatting
42343
42344 2001-12-04 Ed Schonberg <schonber@gnat.com>
42345
42346 * einfo.ads: Block_Node points to the identifier of the block, not to
42347 the block node itself, to preserve the link when the block is
42348 rewritten, e.g. within an if-statement with a static condition.
42349
42350 * inline.adb (Cleanup_Scopes): recover block statement from block
42351 entity using new meaning of Block_Node.
42352
42353 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42354 identifier of block node, rather than to node itself.
42355
42356 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42357
42358 * layout.adb:
42359 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42360 (Discrimify): Go back to setting the Etypes of the selected component
42361 because the Vname component does not exist at this point and will
42362 fail name resolution. Also set Analyzed.
42363 Remove with and use of Sem_Res.
42364
42365 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42366
42367 * Makefile.in: (HIE_SOURCES): add s-fat*.
42368
42369 2001-12-04 Robert Dewar <dewar@gnat.com>
42370
42371 * sem_attr.adb:
42372 (Compile_Time_Known_Attribute): New procedure.
42373 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42374 proper range check.
42375
42376 2001-12-04 Ed Schonberg <schonber@gnat.com>
42377
42378 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42379 processing discriminants to diagnose illegal default values.
42380
42381 2001-12-04 Ed Schonberg <schonber@gnat.com>
42382
42383 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42384 access discriminant within a type extension that constrains its
42385 parent discriminants.
42386
42387 2001-12-04 Ed Schonberg <schonber@gnat.com>
42388
42389 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42390 is malformed, use instance of Any_Id to allow analysis to proceed.
42391
42392 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42393 type definition is illegal.
42394 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42395 misplaced.
42396
42397 2001-12-04 Ed Schonberg <schonber@gnat.com>
42398
42399 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42400 constants.
42401
42402 2001-12-04 Robert Dewar <dewar@gnat.com>
42403
42404 * errout.adb: Minor reformatting
42405
42406 2001-12-04 Robert Dewar <dewar@gnat.com>
42407
42408 * exp_util.adb: Minor reformatting from last change
42409
42410 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42411 which is a rewriting of an expression, traverse the original
42412 expression to remove warnings that may have been posted on it.
42413
42414 2001-12-04 Ed Schonberg <schonber@gnat.com>
42415
42416 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42417 record that has other packed components.
42418
42419 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42420
42421 * adaint.c: Minor cleanups.
42422
42423 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42424
42425 * adaint.c: Do not use utime.h on vxworks.
42426
42427 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42428
42429 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42430 more confusion than it solves.
42431
42432 2001-12-04 Geert bosch <bosch@gnat.com>
42433
42434 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42435
42436 2001-12-04 Geert Bosch <bosch@gnat.com>
42437
42438 * Makefile.in (update-sources): New target.
42439 For use by gcc_release script.
42440
42441 2001-12-04 Ed Schonberg <schonber@gnat.com>
42442
42443 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42444 a configuration pragma, it is now legal wherever a pragma can appear.
42445
42446 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42447
42448 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42449 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42450 is now @CROSS@ -DIN_GCC; update comment.
42451
42452 2001-12-04 Robert Dewar <dewar@gnat.com>
42453
42454 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42455 Fix problem that stopped ceinfo from working
42456
42457 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42458
42459 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42460
42461 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42462
42463 * gnatchop.adb:
42464 (File_Time_Stamp): New procedure.
42465 (Preserve_Mode): New boolean.
42466 (Write_Unit): Pass time stamp.
42467 Implement -p switch (preserve time stamps).
42468
42469 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42470
42471 * gnatchop.adb: Do usage info for -p switch
42472
42473 * adaint.h (__gnat_set_file_time_name): New function
42474
42475 * adaint.c (__gnat_set_file_time_name): Implement
42476
42477 * adaint.h: Fix typo
42478
42479 2001-12-03 Robert Dewar <dewar@gnat.com>
42480
42481 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42482 have Associated_Node.
42483
42484 2001-12-03 Robert Dewar <dewar@gnat.com>
42485
42486 * prj-proc.adb: Minor reformatting
42487
42488 * make.adb: Minor reformatting
42489
42490 2001-12-03 Geert Bosch <bosch@gnat.com>
42491
42492 * make.adb: Minor reformatting.
42493
42494 2001-12-03 Robert Dewar <dewar@gnat.com>
42495
42496 * sem_ch12.adb: Minor reformatting
42497
42498 2001-12-03 Ed Schonberg <schonber@gnat.com>
42499
42500 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42501 push Standard on the stack before analyzing the instance body,
42502 in order to have a clean visibility environment.
42503
42504 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42505
42506 2001-12-03 Ed Schonberg <schonber@gnat.com>
42507
42508 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42509 instantiation of a body that contains an inlined body.
42510
42511 2001-12-03 Ed Schonberg <schonber@gnat.com>
42512
42513 * sem_ch12.adb:
42514 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42515 to prevent freezing within formal packages.
42516 (Freeze_Subprogram_Body): If body comes from another instance that
42517 appeared before its own body, place freeze node at end of current
42518 declarative part, to prevent a back-end crash.
42519 (Inline_Instance_Body): Handle properly a package instance within
42520 a subprogram instance that is a child unit.
42521
42522 2001-12-01 Graham Stott <grahams@redhat.com>
42523
42524 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42525 and add optabs.h dependency.
42526
42527 * misc.c: Include optabs.h
42528 (gnat_tree_code_type): Make static and const.
42529 (gnat_tree_code_length): Likewise.
42530 (gnat_tree_code_name): Likewise.
42531 (update_setjmp_buf): Obtain operands mode from insn_data.
42532
42533 2001-11-29 Richard Henderson <rth@redhat.com>
42534
42535 * init.c: Remove obsolete dwarf2 frame.h section.
42536
42537 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42538
42539 * Make-lang.in (ada.generated-manpages): New dummy target.
42540
42541 2001-11-29 Ed Schonberg <schonber@gnat.com>
42542
42543 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42544 into Command, an array conversion is illegal here. Uncovered by
42545 ACATS B460005.
42546
42547 2001-11-28 Geert Bosch <bosch@gnat.com>
42548
42549 * init.c: Minor whitespace changes.
42550
42551 2001-11-28 Doug Rupp <rupp@gnat.com>
42552
42553 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42554 signal stack.
42555
42556 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42557
42558 * misc.c (gnat_expand_constant): Move declaration above
42559 definition of lang_hooks.
42560 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42561 (gnat_init): lang_expand_constant no longer exists.
42562
42563 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42564 always have vprintf.
42565 (gnat_init): Always call set_internal_error_function.
42566
42567 2001-11-27 Andreas Jaeger <aj@suse.de>
42568
42569 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42570
42571 2001-11-27 Laurent Guerby <guerby@acm.org>
42572
42573 * Makefile.in: Regenerate Ada dependencies.
42574
42575 2001-11-26 Richard Henderson <rth@redhat.com>
42576
42577 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42578 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42579 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42580
42581 2001-11-25 Laurent Guerby <guerby@acm.org>
42582
42583 * sysdep.c (rts_get_*): Fix style.
42584
42585 2001-11-19 Laurent Guerby <guerby@acm.org>
42586
42587 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42588 since it is of no apparent use and cause warnings.
42589
42590 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42591
42592 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42593 static too.
42594 (gnat_init): Don't return NULL.
42595 (finish_parse): Remove.
42596
42597 2001-11-17 Laurent Guerby <guerby@acm.org>
42598
42599 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42600 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42601 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42602 * lang-spec.h: Add missing struct field to silence warnings.
42603 * sysdep.c (rts_get_*): Provide K&R prototype.
42604 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42605 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42606 * tracebak.c (__gnat_backtrace): Remove unused variable.
42607 * utils.c (end_subprog_body): Move to K&R style.
42608
42609 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42610
42611 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42612
42613 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42614
42615 * misc.c (gnat_init): Change prototype. Include the
42616 functionality of the old init_parse and init_decl_processing.
42617 (gnat_init_decl_processing): New prototype.
42618 (init_parse): Remove.
42619 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42620
42621 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42622
42623 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42624 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42625 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42626 set_yydebug): Remove.
42627
42628 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42629
42630 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42631 (struct lang_hooks): Constify.
42632 (language_string, lang_identify): Remove.
42633 * utils.c (init_decl_processing): Update.
42634
42635 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42636
42637 * misc.c: Include langhooks-def.h.
42638 * Makefile.in: Update.
42639
42640 2001-10-30 Robert Dewar <dewar@gnat.com>
42641
42642 * style.adb:
42643 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42644 in the upper half of ASCII.
42645 (Check_Identifier): Minor reformatting
42646
42647 2001-10-30 Geert Bosch <bosch@gnat.com>
42648
42649 * (Associated_Node, Set_Associated_Node): Do not check for
42650 Freeze_Entity.
42651
42652 2001-10-30 Robert Dewar <dewar@gnat.com>
42653
42654 * a-reatim.ads: Minor reformatting
42655
42656 2001-10-30 Robert Dewar <dewar@gnat.com>
42657
42658 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42659 undocumented declarations.
42660
42661 2001-10-30 Pascal Obry <obry@gnat.com>
42662
42663 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42664 to the binder and linker.
42665 Minor style fix.
42666
42667 * mdll.ads: Fix layout. Update copyright notice.
42668
42669 * mdll.adb: Fix layout. Update copyright notice.
42670
42671 2001-10-30 Robert Dewar <dewar@gnat.com>
42672
42673 * usage.adb: Minor fix to output for -gnaty.
42674
42675 2001-10-30 Ed Schonberg <schonber@gnat.com>
42676
42677 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42678 to accommodate all its possible values.
42679
42680 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42681 and of small absolute values of T.
42682
42683 2001-10-30 Richard Kenner <kenner@gnat.com>
42684
42685 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42686 set_mem_attributes since not needed and wrong if RESULT if a REG;
42687 fixes ACATS failures.
42688
42689 2001-10-30 Geert Bosch <bosch@gnat.com>
42690
42691 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42692 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42693
42694 2001-10-30 Robert Dewar <dewar@gnat.com>
42695
42696 * bindusg.adb: Undocument -f switch.
42697
42698 * gnatcmd.adb: Remove /FULL_ELABORATION.
42699
42700 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42701 obsolescent.
42702
42703 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42704
42705 * gnatbind.adb: Minor update of warning msg.
42706
42707 2001-10-30 Vincent Celier <celier@gnat.com>
42708
42709 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42710 for project file switches (-P (/PROJECT_FILE=),
42711 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42712 or MEDIUM or HIGH)
42713
42714 2001-10-30 Geert Bosch <bosch@gnat.com>
42715
42716 * decl.c: Minor whitespace fixes.
42717
42718 2001-10-30 Richard Kenner <kenner@gnat.com>
42719
42720 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42721
42722 2001-10-30 Geert Bosch <bosch@gnat.com>
42723
42724 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42725 Found due to GCC 3.0 warning of using uninitialized value.
42726
42727 * layout.adb:
42728 (Get_Max_Size): Use variant record for tracking value/expression.
42729 Makes logic clearer and prevents warnings for uninitialized variables.
42730 (Layout_Array_Type): Use variant record for tracking value/expression.
42731 Makes logic clearer and prevents warnings for uninitialized variables.
42732
42733 2001-10-30 Robert Dewar <dewar@gnat.com>
42734
42735 * lib.adb: Minor reformatting
42736
42737 * s-taprop.ads: Minor reformatting
42738
42739 2001-10-29 Laurent Guerby <guerby@acm.org>
42740
42741 * init.c:
42742 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42743 const.
42744 (_gnat_error_handler): Make MSG const.
42745
42746 2001-10-29 Richard Kenner <kenner@gnat.com>
42747
42748 * sysdep.c: Fix localtime_r problem on LynxOS.
42749 Also remove #elif to avoid warnings.
42750
42751 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42752 used by this.
42753
42754 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42755
42756 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42757
42758 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42759 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42760 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42761 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42762 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42763 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42764 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42765 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42766 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42767 types.ads, urealp.adb: Fix spelling errors.
42768
42769 2001-10-27 Laurent Guerby <guerby@acm.org>
42770
42771 * trans.c (gigi): Fix non determinism leading to bootstrap
42772 comparison failures for debugging information.
42773
42774 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42775
42776 * gnat_rm.texi: Use @./@: where appropriate.
42777
42778 2001-10-26 Robert Dewar <dewar@gnat.com>
42779
42780 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42781
42782 2001-10-26 Richard Kenner <kenner@gnat.com>
42783
42784 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42785
42786 2001-10-26 Richard Kenner <kenner@gnat.com>
42787
42788 * decl.c (validate_size): Modify message for bad size to avoid
42789 implication that compiler is modifying the size.
42790
42791 2001-10-26 Robert Dewar <dewar@gnat.com>
42792
42793 * prj-util.adb: Minor reformatting. Fix bad header format.
42794
42795 2001-10-26 Robert Dewar <dewar@gnat.com>
42796
42797 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42798
42799 * sinfo.ads: Clarify use of Associated_Node (documentation only).
42800
42801 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42802 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42803 much more narrowly in places where needed. These are cleanups.
42804
42805 2001-10-26 Joel Brobecker <brobecke@gnat.com>
42806
42807 * 5zosinte.ads (null_pthread): new constant.
42808
42809 * 5ztaprop.adb:
42810 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42811 later that this field has been set.
42812 (Finalize_TCB): ditto.
42813 (Suspend_Task): Verify that the thread ID is not null before using it.
42814 (Resume_Task): ditto.
42815
42816 * s-tasdeb.adb:
42817 (Resume_All_Tasks): Lock the tasks list before using it.
42818 (Suspend_All_Tasks): ditto.
42819
42820 2001-10-26 Richard Kenner <kenner@gnat.com>
42821
42822 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42823 Make constant variant of designated type for Is_Access_Constant.
42824 Call update_pointer_to with main variant.
42825
42826 * trans.c (process_freeze_entity, process_type):
42827 Call update_pointer_to on main variant.
42828
42829 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42830 If main variant, update all other variants.
42831
42832 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42833 TREE_STATIC.
42834
42835 2001-10-26 Robert Dewar <dewar@gnat.com>
42836
42837 * prj-util.adb: Minor reformatting
42838
42839 2001-10-26 Robert Dewar <dewar@gnat.com>
42840
42841 * prj-util.adb: Minor reformatting
42842
42843 2001-10-26 Robert Dewar <dewar@gnat.com>
42844
42845 * prj-attr.adb: Minor reformatting throughout
42846
42847 2001-10-26 Robert Dewar <dewar@gnat.com>
42848
42849 * prj-attr.ads: Minor reformatting
42850 Add ??? comment (this whole spec has almost no comments)
42851
42852 2001-10-26 Vincent Celier <celier@gnat.com>
42853
42854 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42855 ("//") that precede the drive letter on Interix.
42856
42857 2001-10-26 Geert Bosch <bosch@gnat.com>
42858
42859 * gnat_rm.texi: Add GNAT Reference Manual.
42860
42861 2001-10-25 Robert Dewar <dewar@gnat.com>
42862
42863 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42864 is Error. Similar change for other renaming cases.
42865
42866 2001-10-25 Robert Dewar <dewar@gnat.com>
42867
42868 * s-atacco.ads: Add pragma Inline_Always for functions.
42869 Fix header format. Add copyright 2001
42870
42871 2001-10-25 Ed Schonberg <schonber@gnat.com>
42872
42873 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42874 return Error rather than Empty so that analysis can proceed.
42875
42876 2001-10-25 Ed Schonberg <schonber@gnat.com>
42877
42878 * sem_util.adb (Enter_Name): better handling of cascaded error
42879 messages when a unit appears in its own context.
42880
42881 2001-10-25 Ed Schonberg <schonber@gnat.com>
42882
42883 * sem_util.adb (Defining_Entity): in case of error, attach created
42884 entity to specification, so that semantic analysis can proceed.
42885
42886 2001-10-25 Robert Dewar <dewar@gnat.com>
42887
42888 * sem_util.adb
42889 (Defining_Entity): Deal with Error.
42890 (Process_End_Label): Deal with bad end label for.
42891
42892 2001-10-25 Ed Schonberg <schonber@gnat.com>
42893
42894 * sem_elab.adb (Check_A_Call): refine message when call is in an
42895 instance but callee is not declared in the generic unit.
42896
42897 2001-10-25 Ed Schonberg <schonber@gnat.com>
42898
42899 * sem_elab.adb (Check_A_Call): check for renaming before finding the
42900 enclosing unit, which may already be different from the calling unit.
42901
42902 2001-10-25 Geert Bosch <bosch@gnat.com>
42903
42904 * 4gintnam.ads: fix header format.
42905
42906 2001-10-25 Ed Schonberg <schonber@gnat.com>
42907
42908 * sem_res.adb (Resolve_Call): if the call is actually an indexing
42909 operation on the result of a parameterless call, perform elaboration
42910 check after the node has been properly rewritten.
42911
42912 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42913 inlined within the generic tree, the defining identifier is not a
42914 compilation_unit.
42915
42916 2001-10-25 Ed Schonberg <schonber@gnat.com>
42917
42918 * sem_res.adb (Resolve): special-case resolution of Null in an
42919 instance or an inlined body to avoid view conflicts.
42920
42921 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42922 compatibility by retrieving the access type of the generic copy.
42923
42924 2001-10-25 Robert Dewar <dewar@gnat.com>
42925
42926 * sem_ch3.adb:
42927 (Analyze_Number_Declaration): Handle error expression.
42928 (Signed_Integer_Type_Declaration): Handle error bound.
42929 (Analyze_Subtype_Indication): Handle error range.
42930
42931 * sem_util.adb (Get_Index_Bounds): Check for Error.
42932
42933 2001-10-25 Robert Dewar <dewar@gnat.com>
42934
42935 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42936 in no run time mode.
42937
42938 2001-10-25 Pascal Obry <obry@gnat.com>
42939
42940 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42941 mode case for ALLOC case.
42942
42943 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42944 all platforms. Improvement of last change.
42945
42946 2001-10-25 Robert Dewar <dewar@gnat.com>
42947
42948 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42949
42950 2001-10-25 Geert Bosch <bosch@gnat.com>
42951
42952 * osint.adb (Is_Relative): Remove duplicate.
42953
42954 2001-10-25 Pascal Obry <obry@gnat.com>
42955
42956 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42957 pathnames in UNIX and DOS style with drive letter.
42958 (Is_Relative): new routine.
42959
42960 * osint.adb: Minor reformatting
42961
42962 * osint.adb (Is_Relative): implementation using
42963 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42964
42965 2001-10-25 Pascal Obry <obry@gnat.com>
42966
42967 * g-dirope.adb (Basename): correctly compute offset between the
42968 original Path and the translated one.
42969
42970 * g-dirope.adb: (Base_Name): add some comments.
42971
42972 2001-10-25 Robert Dewar <dewar@gnat.com>
42973
42974 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42975 in HIE mode, avoids compilation abandoned message
42976
42977 * exp_imgv.adb: Correct typo in previous change
42978
42979 * exp_imgv.adb: Correct typo in previous change (not my day!)
42980
42981 2001-10-25 Robert Dewar <dewar@gnat.com>
42982
42983 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42984
42985 2001-10-25 Pascal Obry <obry@gnat.com>
42986
42987 * g-awk.ads: Move all pragma inlines next to the routine
42988 declarations. This is more uniform with other GNAT spec.
42989
42990 2001-10-22 Geert Bosch <bosch@gnat.com>
42991
42992 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42993
42994 2001-10-19 Geert Bosch <bosch@gnat.com>
42995
42996 * Makefile.in (tools, gnattools): Remove gnatmem.
42997
42998 2001-10-17 Richard Henderson <rth@redhat.com>
42999
43000 * Makefile.in (misc.o): Depend on langhooks.h.
43001 * misc.c: Include it.
43002 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
43003 (LANG_HOOKS_DECODE_OPTION): New.
43004 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
43005
43006 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
43007
43008 * trans.c (tree_transform): Adjust to recent change in
43009 expand_asm_operands to implement named asm operands.
43010
43011 2001-10-11 Ed Schonberg <schonber@gnat.com>
43012
43013 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
43014 renaming of discriminant for mutable record type.
43015
43016 2001-10-11 Robert Dewar <dewar@gnat.com>
43017
43018 * validsw.adb: Properly save -gnatVn status.
43019
43020 2001-10-11 Robert Dewar <dewar@gnat.com>
43021
43022 * usage.adb: Add lines for V switch.
43023
43024 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
43025 (/VALIDITY_CHECKING).
43026
43027 2001-10-11 Ed Schonberg <schonber@gnat.com>
43028
43029 * sem_type.adb (Add_One_Interp): an operator for a type declared in
43030 an extension of System is known to be visible.
43031
43032 2001-10-11 Ed Schonberg <schonber@gnat.com>
43033
43034 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
43035 properly. Fixes regression on ACATS C34005G.
43036
43037 2001-10-11 Robert Dewar <dewar@gnat.com>
43038
43039 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
43040 loop in generic instance, since this is likely not very useful.
43041
43042 2001-10-11 Robert Dewar <dewar@gnat.com>
43043
43044 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
43045 the error message for high integrity mode.
43046
43047 * rtsfind.adb (RTE): Give message if we try to find an entity that
43048 is not available in high integrity mode.
43049
43050 * rtsfind.ads:
43051 (OK_To_Use_In_HIE_Mode): New array.
43052 (RTE): May return Empty in high integrity mode.
43053
43054 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
43055 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
43056
43057 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
43058 unit if not inlined always and in no runtime mode. Fixes problem
43059 caused by new Rtsfind changes.
43060
43061 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
43062 body is deleted.
43063
43064 * rtsfind.adb (RTE): Make sure we do not try to load unit after
43065 giving message for entity not available in high integrity mode.
43066
43067 2001-10-11 Pascal Obry <obry@gnat.com>
43068
43069 * impunit.adb: Add GNAT.CRC32.
43070
43071 2001-10-11 Ed Schonberg <schonber@gnat.com>
43072
43073 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
43074 properly the case where one universal operand in a non-static
43075 exponentiation of a real literal.
43076
43077 2001-10-11 Ed Schonberg <schonber@gnat.com>
43078
43079 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
43080 clause, return the gobal finalization list, for lack of anthing else.
43081
43082 2001-10-11 Ed Schonberg <schonber@gnat.com>
43083
43084 * exp_ch7.adb (Make_Transient_Block): if statement is within
43085 exception handler, always use new transient scope to place Clean
43086 procedure.
43087
43088 2001-10-11 Pascal Obry <obry@gnat.com>
43089
43090 * Makefile.in:
43091 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43092 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
43093 (GNATLS_RTL_OBJS): add g-crc32.o
43094 (GNATMAKE_RTL_OBJS): add g-crc32.o
43095
43096 * ali-util.adb:
43097 (CRC_Match): new function.
43098 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
43099 instead of the previous simple checksum algorithm.
43100 (Time_Stamp_Mismatch): use CRC_Match for comparison.
43101 (Set_Source_Table): idem.
43102
43103 * ali-util.ads:
43104 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
43105 instead of simple checksum.
43106 (CRC_Match): new function.
43107 (CRC_Error): new constant.
43108
43109 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
43110 a CRC now and not a simple checksum. A CRC uses lower-case hex
43111 letters, fixes ambiguity in parsing.
43112
43113 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
43114 is what this variable will store.
43115
43116 * bcheck.adb: Change reference to chechsum in comments by CRC.
43117 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
43118 rename All_Checksum_Match to All_CRC_Match. Change due to API
43119 renaming since now GNAT does not use a simple checksum but a
43120 CRC using GNAT.CRC32.
43121
43122 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
43123 now and not anymore a simple checksum.
43124
43125 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
43126 places.
43127
43128 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
43129
43130 * scans.adb:
43131 (Restore_Scan_State): rename Checksum to CRC.
43132 (Save_Scan_State): idem.
43133
43134 * scans.ads:
43135 With GNAT.CRC32.
43136 (Checksum): rename to CRC.
43137 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
43138
43139 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
43140 GNAT.CRC32). Update copyright notice.
43141
43142 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
43143 GNAT.CRC32). Update copyright notice.
43144
43145 * scn.adb:
43146 (Accumulate_Checksum): removed.
43147 (Update): new procedure. Add a wide-character into the CRC.
43148
43149 * sinput-l.adb:
43150 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
43151 (Load_File): fix initialization of S (change Source_Checksum to
43152 Source_CRC)
43153
43154 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
43155 Source_CRC in S initialization.
43156
43157 * sinput.adb (Source_Checksum): renamed to Source_CRC.
43158
43159 * sinput.ads (Source_Checksum): renamed to Source_CRC.
43160 Update comments for the CRC.
43161
43162 * types.adb (Hex): Use lowercase for the letter part.
43163
43164 * types.ads (Get_Hex_String): Returns the hexadecimal representation
43165 for a word. This is currently used only for CRC. In previous version,
43166 the checksum was using a representation with all letter being
43167 upper-case. With the new implementation (using CRC) we do not remove
43168 the 32th bit of the CRC, so we can have an upper-case starting letter
43169 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
43170 It is ambigous since the CRC was optional and could be followed by
43171 options like EB, EE. So now this routines uses lower-case letter for
43172 the hexadecimal representation. Strange enough only lower case letters
43173 where checked in Scan_ALI (even if this was not a possible case).
43174
43175 * gnatvsn.ads (Library_Version): changed to 3.15a.
43176
43177 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43178 for the compiler.
43179
43180 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43181 for the compiler.
43182
43183 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43184 Add 2001 to copyright notice
43185 (Accumulate_Checksum): Modify to use System.CRC32.
43186
43187 * ali-util.ads: Redo changes of previous revision to continue to use
43188 the word Checksum. Add 2001 to copyright notice.
43189
43190 * ali.adb: Undo some of previous changes, not needed.
43191 Keep the change for lower case letters in the checksum.
43192
43193 * ali.ads: Undo previous change not needed.
43194
43195 * bcheck.adb: Undo most of previous change, not needed.
43196 But do use Checksums_Match for checksum comparison.
43197
43198 * gnatls.adb: Undo most of previous change, not needed.
43199 But do use Checksums_Match for comparing checksums.
43200
43201 * lib-load.adb: Undo previous change, not needed.
43202
43203 * lib-writ.adb: Undo previous change, not needed.
43204
43205 * lib-writ.ads: Document that checksums use lower case,
43206 not upper case letters.
43207
43208 * scans.adb: Undo previous change, not needed
43209
43210 * scans.ads: Undo previous change, not needed.
43211
43212 * scn-nlit.adb: Undo previous changes, not needed.
43213
43214 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43215
43216 * scn.adb:
43217 (Accumulate_Checksum): Use System.CRC32.
43218 (Initialize_Checksum): New procedure.
43219 Remove other changes of previous revision.
43220
43221 * sinput-p.adb: Undo previous change, not needed.
43222
43223 * sinput.adb: Undo previous change, not needed.
43224
43225 * sinput-l.adb: Undo previous change, not needed.
43226
43227 * sinput.ads: Undo previous change, not needed. Keep only comment
43228 on new checksum algorithm
43229
43230 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43231 Also remove a-tags and a-stream from GNAT sources.
43232
43233 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43234
43235 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43236
43237 2001-10-11 Geert Bosch <bosch@gnat.com>
43238
43239 * einfo.h: Regenerate.
43240
43241 * nmake.ads: Regenerate.
43242
43243 * nmake.adb: Regenerate.
43244
43245 * sinfo.h: Regenerate.
43246
43247 * treeprs.adb: Regenerate.
43248
43249 2001-10-10 Geert Bosch <bosch@gnat.com>
43250
43251 * gnat-style.texi: New file describing coding guidelines for Ada.
43252
43253 2001-10-10 Ed Schonberg <schonber@gnat.com>
43254
43255 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43256 is Flag174.
43257
43258 2001-10-10 Geert Bosch <bosch@gnat.com>
43259
43260 * snames.ads: Add new names for project facility.
43261
43262 * snames.adb: Update to reflect snames.ads changes.
43263
43264 * snames.h: Update to reflect snames.ads changes.
43265
43266 2001-10-10 Vincent Celier <celier@gnat.com>
43267
43268 * make.adb:
43269 (Add_Switches): reflect the changes for the switches attributes
43270 Default_Switches indexed by the programming language,
43271 Switches indexed by the file name.
43272 (Collect_Arguments_And_Compile): Idem.
43273 Reflect the attribute name changes.
43274
43275 * prj-attr.adb:
43276 (Initialisation_Data): Change the names of some packages and
43277 attributes.
43278 (Initialize): process case insensitive associative arrays.
43279
43280 * prj-attr.ads:
43281 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43282
43283 * prj-dect.adb:
43284 (Parse_Attribute_Declaration): For case insensitive associative
43285 arrays, set the index string to lower case.
43286
43287 * prj-env.adb:
43288 Reflect the changes of the project attributes.
43289
43290 * prj-nmsc.adb:
43291 Replace Check_Naming_Scheme by Ada_Check and
43292 Language_Independent_Check.
43293
43294 * prj-nmsc.ads:
43295 Replaced Check_Naming_Scheme by 2 procedures:
43296 Ada_Check and Language_Independent_Check.
43297
43298 * prj-proc.adb:
43299 (Process_Declarative_Items): For case-insensitive associative
43300 arrays, set the index string to lower case.
43301 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43302 Prj.Nmsc.Check_Naming_Scheme.
43303
43304 * prj-tree.adb:
43305 (Case_Insensitive): New function
43306 (Set_Case_Insensitive): New procedure
43307
43308 * prj-tree.ads:
43309 (Case_Insensitive): New function
43310 (Set_Case_Insensitive): New procedure
43311 (Project_Node_Record): New flag Case_Insensitive.
43312
43313 * prj-util.adb:
43314 (Value_Of): new function to get the string value of a single
43315 string variable or attribute.
43316
43317 * prj-util.ads:
43318 (Value_Of): new function to get the string value of a single
43319 string variable or attribute.
43320
43321 * prj.adb:
43322 (Ada_Default_Spec_Suffix): New function
43323 (Ada_Default_Impl_Suffix): New function
43324 Change definitions of several constants to reflect
43325 new components of record types.
43326
43327 * prj.ads:
43328 (Naming_Data): Change several components to reflect new
43329 elements of naming schemes.
43330 (Project_Data): New flags Sources_Present and
43331 Language_Independent_Checked.
43332 (Ada_Default_Spec_Suffix): New function.
43333 (Ada_Default_Impl_Suffix): New function.
43334
43335 * snames.ads:
43336 Modification of predefined names for project manager: added
43337 Implementation, Specification_Exceptions, Implementation_Exceptions,
43338 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43339 Default_Switches, _Languages, Builder, Cross_Reference,
43340 Finder. Removed Body_Part, Specification_Append, Body_Append,
43341 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43342 Gnatlink.
43343
43344 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43345 Add comments.
43346
43347 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43348 not that it is Nil_Variable_Value.
43349
43350 * prj.ads: Add ??? for uncommented declarations
43351
43352 2001-10-10 Ed Schonberg <schonber@gnat.com>
43353
43354 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43355 constant, do not indicate possible modification, so that gigi can
43356 treat it as a bona fide constant.
43357
43358 2001-10-10 Robert Dewar <dewar@gnat.com>
43359
43360 * sem_prag.adb: Add processing for pragma External.
43361
43362 * snames.ads: Add entry for pragma External.
43363
43364 * par-prag.adb: Add pragma External.
43365
43366 * snames.adb: Updated to match snames.ads.
43367
43368 2001-10-10 Ed Schonberg <schonber@gnat.com>
43369
43370 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43371 a dynamic task if the allocator appears in an indexed assignment
43372 or selected component assignment.
43373
43374 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43375 For a dynamic task in an assignment statement, use target of
43376 assignment to generate meaningful name.
43377
43378 2001-10-10 Ed Schonberg <schonber@gnat.com>
43379
43380 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43381 a generic package.
43382
43383 * einfo.ads: Body_Entity is also defined for generic package.
43384 Documentation change only
43385
43386 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43387 others_choice for a discriminated component initialization,
43388 convert discriminant references into the corresponding discriminals.
43389
43390 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43391 only if original type is private and expression has to be wrapped
43392 in a conversion.
43393
43394 * checks.adb:
43395 (Apply_Constraint_Check): Do not perform length check
43396 if expression is an aggregate with only an others_choice.
43397 (Length_N_Cond): two references to the same in_parameter
43398 (typically the discriminal in an init_proc) denote the same value.
43399 Two useful optimization uncovered by bugfixes above.
43400
43401 2001-10-10 Robert Dewar <dewar@gnat.com>
43402
43403 * xeinfo.adb: Change int to char in translation of enumeration types.
43404 This fixes a problem in the C representation of component alignment.
43405 Add 2001 to copyright notice
43406
43407 2001-10-10 Richard Kenner <kenner@gnat.com>
43408
43409 * decl.c: (validate_size): Do check size of object of integral type
43410 if it is a packed array type.
43411
43412 2001-10-10 Richard Kenner <kenner@gnat.com>
43413
43414 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43415 VAR_DECL for constant if not Is_Public but -O0.
43416
43417 2001-10-10 Richard Kenner <kenner@gnat.com>
43418
43419 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43420
43421 2001-10-10 Geert Bosch <bosch@gnat.com>
43422
43423 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43424 use '/' as switch character, allowing for absolute file names.
43425
43426 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43427
43428 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43429 FSF address.
43430
43431 2001-10-08 Geert Bosch <bosch@gnat.com>
43432
43433 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43434 Automatically build utilities when files need to be regenerated.
43435
43436 2001-10-08 Geert Bosch <bosch@gnat.com>
43437
43438 * xsnames.adb: New utility for updating snames.ads and snames.adb
43439
43440 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43441
43442 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43443 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43444 (gnat1): Also depend on attribs.o.
43445 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43446 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43447 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43448 (ADAFLAGS): Add -W -Wall.
43449 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43450 take out CFLAGS.
43451
43452 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43453 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43454 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43455 Use $(ADAC), not $(CC), as compilation command.
43456
43457 (gnattools): Depend directly on tools to build, don't use
43458 recursive make.
43459 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43460
43461 * einfo.h, sinfo.h: New files (autogenerated).
43462
43463 2001-10-08 Richard Henderson <rth@redhat.com>
43464
43465 * comperr.adb (Abort_In_Progress): New.
43466 (Compiler_Abort): Use it to prevent recursion.
43467
43468 2001-10-08 Robert Dewar <dewar@gnat.com>
43469
43470 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43471
43472 * par-endh.adb (Output_End_Expected): We should also not test
43473 Error_Posted on the Error node, since now it is always set.
43474
43475 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43476 to help error recovery. Part of general work on 9407-004.
43477
43478 * par.adb: Add ??? for misuse of error
43479
43480 * sem_res.adb:
43481 (Resolve): Defend against Error, fixes 9407-003.
43482 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43483
43484 * sinfo.ads (N_Error): Now has Etype field (which will be set
43485 to Any_Type to help error recovery).
43486
43487 2001-10-08 Richard Kenner <kenner@gnat.com>
43488
43489 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43490 Consistently set MEM attributes from expression; fixes
43491 bootstrap failure on x86.
43492
43493 2001-10-08 Geert Bosch <bosch@gnat.com>
43494
43495 * 5oosinte.adb: Add 2001 to copyright notice.
43496
43497 2001-10-08 Geert Bosch <bosch@gnat.com>
43498
43499 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43500
43501 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43502
43503 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43504
43505 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43506
43507 2001-10-05 Geert Bosch <bosch@gnat.com>
43508
43509 * adaint.h: Small formatting fix.
43510
43511 2001-10-04 Geert Bosch <bosch@gnat.com>
43512
43513 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43514 Arg is int, not FILE *, in dummy version of functions.
43515
43516 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43517 Arg is int, not FILE *.
43518
43519 2001-10-04 Geert Bosch <bosch@gnat.com>
43520
43521 * 3lsoccon.ads: Added file, missed with initial check ins.
43522
43523 * 4lintnam.ads: Fix header format.
43524 Change Linux to GNU/Linux.
43525
43526 * 5iosinte.adb: Change Linux to GNU/Linux.
43527
43528 * 5iosinte.ads: Change Linux to GNU/Linux.
43529
43530 * 5itaprop.adb: Change Linux to GNU/Linux.
43531
43532 * 5itaspri.ads: Change Linux to GNU/Linux.
43533 Update copyright notice.
43534
43535 * 5lintman.adb: Change Linux to GNU/Linux.
43536
43537 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43538
43539 * 5losinte.ads: Change Linux to GNU/Linux.
43540
43541 * 5lsystem.ads: Change Linux to GNU/Linux.
43542
43543 * 5qosinte.adb: Change Linux to GNU/Linux.
43544
43545 * 5qosinte.ads: Change Linux to GNU/Linux.
43546
43547 * 5qparame.ads: Change Linux to GNU/Linux.
43548
43549 * 5qtaprop.adb: Change Linux to GNU/Linux.
43550
43551 * 5qtaspri.ads: Change Linux to GNU/Linux.
43552 Add 2001 to copyright notice.
43553
43554 * 5vintman.ads: Change Linux to GNU/Linux.
43555 Fix header format. Add 2001 to copyright notice.
43556
43557 * g-soccon.ads: Change Linux to GNU/Linux.
43558
43559 * g-trasym.ads: Change Linux to GNU/Linux.
43560 Add 2001 to copyright notice.
43561
43562 * memtrack.adb: Change Linux to GNU/Linux.
43563
43564 * s-intman.ads: Change Linux to GNU/Linux.
43565 Add 2001 to copyright notice. Fix header format.
43566
43567 * s-stache.adb: Change Linux to GNU/Linux.
43568
43569 * adaint.c: Change Linux to GNU/Linux.
43570
43571 * cio.c: Change Linux to GNU/Linux.
43572
43573 * cstreams.c: Change Linux to GNU/Linux.
43574
43575 * init.c: Change Linux to GNU/Linux.
43576
43577 * gmem.c: Change Linux to GNU/Linux.
43578
43579 * tracebak.c: Change Linux to GNU/Linux.
43580
43581
43582 2001-10-02 Geert Bosch <bosch@gnat.com>
43583
43584 * misc.c (insert_default_attributes): Add dummy version.
This page took 2.019331 seconds and 5 git commands to generate.