s-stchop.adb, [...]: Make sure sources obey short-circuit style rule.
[gcc.git] / gcc / ada / ChangeLog
1 2009-07-22 Robert Dewar <dewar@adacore.com>
2
3 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
4 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
5 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
6 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
7 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
8 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
9 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
10 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
11 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
12 obey short-circuit style rule.
13
14 2009-07-20 Bob Duff <duff@adacore.com>
15
16 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
17 instead of "and", because otherwise Parent_Last_Bit is read
18 uninitialized in the case where it's not a tagged type, or the tagged
19 parent does not have a complete rep clause.
20
21 2009-07-20 Robert Dewar <dewar@adacore.com>
22
23 * stylesw.ads: Minor documentation change.
24
25 * types.ads: Minor reformatting
26
27 2009-07-20 Javier Miranda <miranda@adacore.com>
28
29 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
30 generating the tag checks associated with dispatching calls.
31 * exp_disp.adb (Apply_Access_Checks): New subprogram.
32 (New_Value): This routine was previously local to expand dispatching
33 calls but it is now used also by Apply_Access_Checks.
34 (Expand_Dispatching_Calls): Cleanup code because the functionality of
35 tag checks is now provided by Apply_Access_Checks.
36 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
37 case of dispatching calls.
38
39 2009-07-20 Arnaud Charlet <charlet@adacore.com>
40
41 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
42 CodePeer_Mode.
43
44 2009-07-20 Gary Dismukes <dismukes@adacore.com>
45
46 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
47 for VMS, only rewrite the first component of the associated exception's
48 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
49 and third components that were being replaced with 'M' and 'S'.
50
51 2009-07-20 Arnaud Charlet <charlet@adacore.com>
52
53 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
54 Also do not generate error when parsing a spec in CodePeer mode.
55
56 2009-07-20 Javier Miranda <miranda@adacore.com>
57
58 * checks.adb (Apply_Access_Check): Avoid checks on availability of
59 runtime function Offset_To_Top_Ptr when compiling with no tagged
60 types expansion.
61 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
62 adding code to the init proc when compiling for VM backends.
63
64 2009-07-20 Vincent Celier <celier@adacore.com>
65
66 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
67 account switches -gnatw.?
68
69 2009-07-20 Thomas Quinot <quinot@adacore.com>
70
71 * sem_dist.adb, exp_dist.adb: Minor reformatting
72
73 * Make-generated.in: New file.
74
75 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
76
77 2009-07-20 Javier Miranda <miranda@adacore.com>
78
79 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
80 subprogram.
81 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
82 dynamically tagged expression.
83 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
84 factorizes code.
85 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
86 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
87
88 2009-07-20 Arnaud Charlet <charlet@adacore.com>
89
90 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
91 CodePeer_Mode is set, to benefit from full front-end expansion
92 (e.g. generics).
93
94 2009-07-20 Ed Schonberg <schonberg@adacore.com>
95
96 * sem_res.adb: Add guard.
97
98 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
99 for possible attribute definition of External_Tag, in case clause
100 appears in the private part of a package.
101
102 2009-07-20 Jerome Guitton <guitton@adacore.com>
103
104 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
105
106 2009-07-20 Vadim Godunko <godunko@adacore.com>
107
108 * a-coorma.adb: Minor reformatting.
109
110 2009-07-20 Ed Schonberg <schonberg@adacore.com>
111
112 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
113 access return types.
114 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
115 provide an itype reference to gigi to force elaboration of the subtype
116 at the proper point.
117
118 2009-07-20 Tristan Gingold <gingold@adacore.com>
119
120 * g-expect.adb: Avoid closeing already closed handle.
121
122 2009-07-20 Robert Dewar <dewar@adacore.com>
123
124 * sprint.adb (Write_Subprogram_Name): New procedure to output
125 subprogram name with possible preceding $ (replaces
126 Note_Implicit_Run_Time_Call).
127
128 2009-07-20 Robert Dewar <dewar@adacore.com>
129
130 * vms_data.ads: Minor reformatting
131
132 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
133 applies to base type.
134 (Parent_Subtype): Now allowed on record subtype, applies to base type
135 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
136 for case of fully repped tagged type.
137 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
138 tag save/restore for fully repped tagged type case.
139 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
140 * fe.h (Is_Fully_Repped_Tagged_Type): New function
141 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
142 overlap of tagged type components with parent type if parent type is
143 fully repped.
144 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
145
146 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
147 comparisons.
148 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
149 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
150
151 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
152 logical operators (AND/OR/XOR), not comparison operators.
153
154 * sprint.ads: Minor reformatting
155
156 2009-07-20 Ed Schonberg <schonberg@adacore.com>
157
158 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
159 intrinsics, check that argument is a string literal, rather than
160 checking for staticness.
161
162 2009-07-20 Robert Dewar <dewar@adacore.com>
163
164 * sem_ch13.adb: Minor reformatting
165
166 * einfo.ads: Minor reformatting
167 Component_Bit_Offset is no longer considered obsolescent
168
169 2009-07-20 Nicolas Roche <roche@adacore.com>
170
171 * a-calend.adb: Redefine time_t as signed integer with same size as
172 Address type.
173 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
174 Address type
175 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
176 long
177
178 2009-07-20 Javier Miranda <miranda@adacore.com>
179
180 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
181 constructors that have anonymous access type formals.
182
183 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
184 class-wide arguments in case of imported C++ subprograms.
185
186 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
187
188 2009-07-20 Sergey Rybin <rybin@adacore.com>
189
190 * vms_data.ads: Update qualifiers.
191
192 2009-07-20 Robert Dewar <dewar@adacore.com>
193
194 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
195 reformatting
196
197 2009-07-17 Richard Guenther <rguenther@suse.de>
198
199 PR c/40401
200 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
201 state. Remove unused parameter.
202 (gnat_gimplify_function): Do not gimplify here.
203 Fold into its only caller and remove.
204 (gnat_builtin_function): Adjust for end_subprog_body signature change.
205 (gnat_write_global_declarations): Also finalize the CU.
206 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
207 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
208 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
209 change.
210 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
211
212 2009-07-15 Arnaud Charlet <charlet@adacore.com>
213
214 * gcc-interface/Make-lang.in: Update dependencies
215
216 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
217
218 2009-07-15 Robert Dewar <dewar@adacore.com>
219
220 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
221 N_Label. Remove SCO table entry for entry point (not used).
222
223 * par_sco.ads: Remove SCO entry point type (not used)
224
225 * switch.adb: Minor code clean up.
226
227 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
228
229 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
230
231 2009-07-15 Thomas Quinot <quinot@adacore.com>
232
233 * gnatls.adb: Minor reformatting
234
235 * gnatcmd.adb: Minor code reorganization
236
237 2009-07-15 Ed Schonberg <schonberg@adacore.com>
238
239 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
240 determine whether a component of a private type has a composite type.
241
242 2009-07-15 Robert Dewar <dewar@adacore.com>
243
244 * sem_ch10.adb: Minor reformatting throughout
245 Minor code reorganization (put nested subprograms in alpha order)
246
247 2009-07-15 Ed Schonberg <schonberg@adacore.com>
248
249 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
250 when compiling a call to a protected function that returns a controlled
251 object.
252
253 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
254
255 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
256 one. Add task locking and unlocking around the critical region which
257 mentions localtime_r and global variable timezone for various targets.
258 Comment reformatting.
259
260 2009-07-15 Robert Dewar <dewar@adacore.com>
261
262 * gnat_rm.texi: Document s-ststop.ads
263
264 * impunit.ad: (Map_Array): New table of alternative names
265 (Get_Kind_Of_Unit): Return possible suggested alternative name
266
267 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
268 alternative name.
269
270 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
271 alternative unit if an implementation unit is with'ed.
272
273 2009-07-15 Robert Dewar <dewar@adacore.com>
274
275 * gnat_ugn.texi: Minor updates.
276
277 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
278
279 2009-07-15 Ed Schonberg <schonberg@adacore.com>
280
281 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
282 conditions of a derived boolean type.
283 Minor reformatting
284
285 2009-07-15 Robert Dewar <dewar@adacore.com>
286
287 * gnat1drv.adb: Initialize SCO tables
288
289 * par-load.adb: Call SCO_Record for main unit spec
290
291 * par.adb: Make call to SCO_Record for main unit
292
293 * par_sco.adb (Unit_Table): Change format to facilitate sort
294 (Process_Decisions): New procedure with list argument
295 (Traverse_Generic_Package_Declaration): New procedure
296 (Initialize): New procedure, replaces Init
297 (SCO_Output): Sort unit table before output
298 (SCO_Record): Avoid duplications
299 (SCO_Record): Handle remaining cases of units
300 (Traverse_Declarations_Or_Statements): Handle generics
301
302 * par_sco.ads (Initialize): New peocedure (replaces Init)
303
304 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
305 subunit.
306
307 2009-07-15 Arnaud Charlet <charlet@adacore.com>
308
309 * debug.adb: Add -gnatd.J switch for now to support scil generation in
310 parallel. Add missing doc for -gnatd.I and -gnatd.O
311
312 2009-07-15 Robert Dewar <dewar@adacore.com>
313
314 * lib-load.adb: Minor reformatting
315
316 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
317
318 2009-07-15 Robert Dewar <dewar@adacore.com>
319
320 * par.adb: Minor reformatting
321 Add ??? comment for possible bad comment
322
323 * par-ch10.adb: Minor reformatting
324
325 2009-07-15 Ed Schonberg <schonberg@adacore.com>
326
327 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
328 is a literal of a derived boolean type, it appears as an unchecked
329 conversion. Retrieve actual value from expression of conversion.
330
331 2009-07-15 Robert Dewar <dewar@adacore.com>
332
333 * sem_ch3.adb: Minor reformatting
334
335 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
336 lib-writ.ads, lib-writ.adb: Minor reformatting.
337 Fix problem with SCO format in ALI files
338
339 2009-07-15 Robert Dewar <dewar@adacore.com>
340
341 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
342 exp_aggr.adb: Minor code reorganization (better calling sequence for
343 Make_Temporary).
344
345 2009-07-15 Thomas Quinot <quinot@adacore.com>
346
347 * opt.ads: Minor comment edits
348
349 2009-07-15 Tristan Gingold <gingold@adacore.com>
350
351 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
352 needed.
353
354 2009-07-15 Robert Dewar <dewar@adacore.com>
355
356 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
357 information.
358
359 * lib-writ.ads: Document addition of SCO lines to ALI file
360
361 * par_sco.ads, par_sco.adb: New files.
362
363 * opt.ads (Generate_SCO): New switch
364
365 * par.adb (Par): Call SCO_Record to record SCO information
366
367 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
368
369 * switch-c.adb: Recognize -gnateS to generate SCO information
370
371 * usage.adb: Add line for -gnateS
372
373 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
374
375 2009-07-15 Robert Dewar <dewar@adacore.com>
376
377 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
378 reformatting.
379
380 2009-07-15 Thomas Quinot <quinot@adacore.com>
381
382 * g-socthi-mingw.adb: Minor comment addition
383
384 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
385
386 2009-07-15 Robert Dewar <dewar@adacore.com>
387
388 * g-htable.ads, s-htable.ads: Minor reformatting
389
390 2009-07-15 Robert Dewar <dewar@adacore.com>
391
392 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
393 new switch -gnatw.g.
394 (Set_GNAT_Mode_Warnings): New procedure.
395
396 * lib-xref.adb: Minor reformatting
397
398 2009-07-15 Robert Dewar <dewar@adacore.com>
399
400 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
401 Minor code reorganization
402
403 2009-07-14 Taras Glek <tglek@mozilla.com>
404 Rafael Espindola <espindola@google.com>
405
406 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
407 installing plugin headers.
408
409 2009-07-13 Ed Schonberg <schonberg@adacore.com>
410
411 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
412 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
413 and link it to the expression whose value it captures.
414
415 2009-07-13 Robert Dewar <dewar@adacore.com>
416
417 * output.adb: Minor comment addition for last change
418
419 * sinfo.ads: Minor reformatting
420
421 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
422
423 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
424 spawn failed like on all other targets.
425
426 2009-07-13 Ed Schonberg <schonberg@adacore.com>
427
428 * exp_ch7.adb: Indicate origin of temporary for transient expression.
429
430 2009-07-13 Thomas Quinot <quinot@adacore.com>
431
432 * s-oscons-tmplt.c: Add comment.
433
434 2009-07-13 Robert Dewar <dewar@adacore.com>
435
436 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
437 reformatting. Minor code reorganization (add 9 argument version of
438 Nkind_In).
439
440 * impunit.adb: Remove s-os_lib from list of system extensions.
441
442 * sem_util.ads: Minor reformatting
443
444 * output.adb: Add warnings off/on around System.OS_Lib.
445
446 2009-07-13 Bob Duff <duff@adacore.com>
447
448 * exp_dist.adb: Minor comment updates.
449
450 2009-07-13 Gary Dismukes <dismukes@adacore.com>
451
452 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
453 several references to CodePeer.
454
455 2009-07-13 Bob Duff <duff@adacore.com>
456
457 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
458 Build_TypeCode_Function_All): Do not recurse if the type is the base
459 type.
460
461 2009-07-13 Robert Dewar <dewar@adacore.com>
462
463 * exp_ch4.adb: Minor comment change
464
465 2009-07-13 Ed Schonberg <schonberg@adacore.com>
466
467 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
468 type of iteration, to prevent spurious warnings.
469
470 2009-07-13 Nicolas Roche <roche@adacore.com>
471
472 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
473 included.
474
475 2009-07-13 Arnaud Charlet <charlet@adacore.com>
476
477 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
478 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
479 Generate_SCIL.
480 (CodePeer_Mode): New -gnatC switch.
481 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
482 CodePeer_Mode.
483
484 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
485
486 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
487 integer bound forces the check if it is compared to its subtype range.
488
489 2009-07-13 Robert Dewar <dewar@adacore.com>
490
491 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
492 prj-strt.ads: Minor reformatting
493
494 2009-07-13 Thomas Quinot <quinot@adacore.com>
495
496 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
497 set the type of the From_Any call to the base type.
498
499 2009-07-13 Doug Rupp <rupp@adacore.com>
500
501 * symbols-processing-vms-ia64.adb (Process): Add variables and
502 constants to retrieve and check for symbol visibility.
503
504 2009-07-13 Javier Miranda <miranda@adacore.com>
505
506 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
507 the identical type we remove the conversion completely because
508 it is useless.
509
510 2009-07-13 Emmanuel Briot <briot@adacore.com>
511
512 * prj-err.adb (Error_Msg): One more case where a message should be
513 considered as a warning.
514
515 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
516
517 2009-07-13 Thomas Quinot <quinot@adacore.com>
518
519 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
520 calling stubs in the (library level) scope of the RCI locator, where it
521 is attached, not in the caller's scope.
522
523 2009-07-13 Javier Miranda <miranda@adacore.com>
524
525 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
526 interface object declarations we delay the generation of the equivalent
527 record type declarations until its expansion because there are cases in
528 which they are not required.
529
530 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
531
532 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
533 addition of assertion.
534
535 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
536 interface types require no equivalent constrained type declarations
537 because the expanded code only references the tag component associated
538 with the interface.
539 (Find_Interface_Tag): Improve management of interfaces that are
540 ancestors of tagged types.
541
542 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
543 class-wide object declarations to add missing support to statically
544 displace the pointer to the object to reference the tag component
545 associated with the interface.
546
547 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
548 auxiliary types associated with user-defined dispatching calls if the
549 type has no user-defined primitives.
550
551 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
552
553 * mingw32.h: Make it explicit that we need XP or later.
554
555 * initialize.c: Remove useless extern symbol declaration.
556
557 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
558 code reuse in expect.c.
559
560 * adaint.c: Changes throughout the Windows section to redesign storage
561 of the child process list and the process identification.
562
563 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
564 for interfacing, fix errors.
565 (__gnat_expect_portable_execvp): use function in adaint.c
566
567 2009-07-13 Emmanuel Briot <briot@adacore.com>
568
569 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
570 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
571 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
572 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
573 (Prj.Nmsc.Report_Error): Removed, no longer needed.
574 Always use Prj.Err.Report_Message.
575
576 2009-07-13 Robert Dewar <dewar@adacore.com>
577
578 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
579 & comment edits.
580
581 2009-07-13 Robert Dewar <dewar@adacore.com>
582
583 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
584 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
585
586 2009-07-13 Emmanuel Briot <briot@adacore.com>
587
588 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
589 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
590 Ada_Prj_Include_File_Set): Removed, since not needed
591 Code clean up.
592
593 2009-07-13 Ed Schonberg <schonberg@adacore.com>
594
595 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
596 Analyze_Membership_Op.
597
598 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
599 Resolve_Membership_Op.
600
601 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
602 Expand_N_In.
603
604 2009-07-13 Robert Dewar <dewar@adacore.com>
605
606 * clean.adb: Minor reformattting
607
608 2009-07-13 Emmanuel Briot <briot@adacore.com>
609
610 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
611 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
612 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
613 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
614 and attributes in a project tree.
615 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
616 Remove last remaining mode-specific code (ada_only or
617 multi_language). This was duplicating code
618 (Get_Mode, Set_Mode): removed, no longer used.
619 (Initialize_Project_Path): all tools will now take into account both
620 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
621 Remove some global variables and subprograms no longer used
622 Make temporary files tree-specific, to avoid interferences between
623 trees loaded in memory at the same time.
624 (Prj.Delete_Temporary_File): new subprogram
625 (Object_Paths, Source_Paths): fields no longer stored in the project
626 tree, since they are only needed locally in Set_Ada_Paths.
627 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
628 effect in practice.
629 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
630 by local variables in the appropriate subprograms
631 (Has_Foreign_Sources): removed.
632
633 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
634
635 2009-07-13 Arnaud Charlet <charlet@adacore.com>
636
637 * gnat1drv.adb (Adjust_Global_Switches): No longer set
638 Back_Annotate_Rep_Info in inspector mode.
639 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
640
641 * opt.ads: Update comment.
642
643 2009-07-13 Robert Dewar <dewar@adacore.com>
644
645 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
646 prj.ads: Minor reformatting and code reorganization.
647
648 * par-ch3.adb (Check_Restricted_Expression): New procedure
649
650 2009-07-13 Ed Schonberg <schonberg@adacore.com>
651
652 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
653 attribute into a call of the corresponding suprogram, create extra
654 formals for the subprogram, because it may be a renaming whose
655 analysis does not create extra formals.
656
657 2009-07-13 Emmanuel Briot <briot@adacore.com>
658
659 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
660 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
661 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
662 prj-tree.ads: Minor reformatting.
663 (Processing_Flags): new record to encapsulate the set of common
664 parameters to several subprograms in the project manager.
665 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
666 Remove the need for the Current_Dir parameter in subprograms.
667 (Look_For_Sources): minor refactoring, now that we no longer need to
668 share subprograms between the two Ada_Only and Multi_Language modes
669 (Processing_Flags): New field Error_On_Unknown_Language.
670 Merge tests for library project between gnatmake and gprbuild.
671
672 2009-07-13 Arnaud Charlet <charlet@adacore.com>
673
674 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
675 Minor reformatting.
676
677 2009-07-13 Emmanuel Briot <briot@adacore.com>
678
679 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
680 than units.
681
682 2009-07-13 Thomas Quinot <quinot@adacore.com>
683
684 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
685 Write,Input,Output} from private view to full view.
686
687 * sem_type.adb, sem_type.ads: Minor reformatting
688
689 2009-07-13 Nicolas Setton <setton@adacore.com>
690
691 * exp_dbug.ads: Add documentation note on the utility of
692 DW_AT_GNAT_encoding for IDEs.
693
694 2009-07-13 Robert Dewar <dewar@adacore.com>
695
696 * g-socthi-vxworks.adb: Minor reformatting
697
698 * gnatcmd.adb: Minor reformatting
699
700 2009-07-13 Thomas Quinot <quinot@adacore.com>
701
702 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
703 removed, not used anymore.
704 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
705 New subprogram, implements copy of an Any value into a limited object.
706 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
707 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
708 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
709 of parameters of a limited type, use the above new subprogram.
710
711 2009-07-13 Emmanuel Briot <briot@adacore.com>
712
713 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
714 Location.
715 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
716 allocated space.
717 (Error_Report): Remove global variable, replaced by parameters.
718
719 2009-07-13 Thomas Quinot <quinot@adacore.com>
720
721 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
722 standard sendto(2) interface for connected sockets (passing a null
723 destination address). Use send(2) instead for that case.
724
725 2009-07-13 Pascal Obry <obry@adacore.com>
726
727 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
728
729 2009-07-13 Emmanuel Briot <briot@adacore.com>
730
731 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
732 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
733 variables and tables in prj-nmsc.adb.
734 (Tree_Processing_Data): Renames Processing_Data, some new fields added
735 (Project_Processing_Data): New record
736 Simplify/unify check for missing sources.
737
738 2009-07-13 Emmanuel Briot <briot@adacore.com>
739
740 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
741 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
742 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
743 prj-tree.ads (Immediate_Directory_Of): Removed.
744 (Prj.Pars): Now parse the project simulating a default config file.
745 (Add_Default_GNAT_Naming_Scheme): New subprogram
746 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
747 Remove gnatmake-specific parsing of source files.
748 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
749 the error itself to provide more precise diagnostics.
750 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
751 a unit belongs to several projects.
752 (Copy_Interface_Sources): Search the full path of files to copy in the
753 list of sources of the application rather than in the list of units.
754 (Parse_Project_And_Apply_Config): Do not reset the name of the main
755 project file.
756 (Check_File): Use htables to find out whether a source is duplicated.
757 (Add_Source): check whether the source or unit were already seen earlier
758
759 * gcc-interface/Makefile.in: Update gnatmake dependencies.
760
761 2009-07-13 Robert Dewar <dewar@adacore.com>
762
763 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
764 expression if extensions permitted.
765
766 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
767 set tests).
768 (P_Relation): Use P_Membership_Test
769
770 * par.adb (P_Membership_Test): New procedure (implement membership set
771 tests).
772
773 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
774
775 * sprint.adb (Sprint_Node): Handle set form for membership tests.
776
777 2009-07-13 Thomas Quinot <quinot@adacore.com>
778
779 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
780 Do not attempt to generate stubs for predefined primitives of
781 synchronized interfaces.
782 (Add_Stub_Type): Factor some code from the PCS-specific variants of
783 Build_Stub_Type.
784
785 2009-07-13 Ed Schonberg <schonberg@adacore.com>
786
787 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
788 Controlling_Result flag from the operation they override.
789
790 2009-07-13 Arnaud Charlet <charlet@adacore.com>
791
792 * gcc-interface/Make-lang.in: Update dependencies
793
794 2009-07-13 Robert Dewar <dewar@adacore.com>
795
796 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
797 details on unsupported constructs.
798
799 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
800 unconditionally.
801
802 * s-trafor-default.adb: Correct some warnings
803
804 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
805 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
806 Minor reformatting.
807
808 * par-ch4.adb (Conditional_Expression): Capture proper location for
809 conditional expression, should point to IF.
810
811 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
812 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
813 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
814 reorganization (use conditional expressions).
815
816 2009-07-13 Ed Schonberg <schonberg@adacore.com>
817
818 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
819 build-in-place function that returns an inherently limited type (not
820 just a task type) create proper object declaration so that extra
821 build-in-place actuals are properly added to the call.
822
823 2009-07-13 Robert Dewar <dewar@adacore.com>
824
825 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
826
827 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
828
829 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
830
831 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
832 Warn_On_Suspicious_Modulus_Value.
833
834 * ug_words: Add entries for -gnatw.m/-gnatw.M.
835
836 * usage.adb: Add lines for -gnatw.m/.M switches.
837
838 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
839
840 2009-07-13 Javier Miranda <miranda@adacore.com>
841
842 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
843 reading the Is_Interface attribute of the dispatching type.
844
845 2009-07-13 Robert Dewar <dewar@adacore.com>
846
847 * a-convec.adb: Minor code reorganization (use conditional expressions)
848
849 2009-07-13 Robert Dewar <dewar@adacore.com>
850
851 * freeze.adb (Check_Suspicious_Modulus): New procedure.
852
853 2009-07-13 Robert Dewar <dewar@adacore.com>
854
855 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
856 warning).
857
858 * par-ch4.adb: Minor reformatting
859
860 2009-07-13 Ed Schonberg <schonberg@adacore.com>
861
862 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
863 => Is_Atomic_Aggregate
864
865 2009-07-13 Emmanuel Briot <briot@adacore.com>
866
867 * prj-nmsc.adb: Avoid traversing the list of source files if
868 we have already processed all locally removed files.
869
870 2009-07-13 Jose Ruiz <ruiz@adacore.com>
871
872 * gnat_ugn.texi: Fix typo.
873
874 2009-07-13 Robert Dewar <dewar@adacore.com>
875
876 * freeze.adb: Minor reformatting
877 Minor code reorganization (use Nkind_In)
878
879 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
880
881 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
882
883 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
884 local variable and do not test it in Compile_Time_Bad_Alignment.
885 Do not issue size or alignment warnings for the X'Address form.
886 * sem_util.ads (Find_Overlaid_Object): Delete.
887 (Find_Overlaid_Entity): New procedure.
888 * sem_util.adb (Find_Overlaid_Object): Rename to...
889 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
890 whether the address is offseted within the overlaid entity.
891 (Has_Compatible_Alignment): Track the offset globally instead of
892 passing it to Check_Offset. For an indexed component, compute the
893 full offset when possible. If the resulting offset is zero, only
894 check the prefix.
895 (Check_Offset): Delete.
896 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
897 (Address_Aliased_Entity): Delete.
898 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
899 Find_Overlaid_Entity to find the overlaid entity and the offset.
900 Adjust throughout for above change.
901 (Validate_Address_Clauses): Always use attributes of entities, not of
902 their type. Tweak message for warning. Call Has_Compatible_Alignment
903 if the address is offseted to warn about incompatible alignments.
904 * gcc-interface/gigi.h (annotate_object): Declare.
905 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
906 entity. Call annotate_object instead of annotating manually objects.
907 (annotate_object): New function.
908 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
909 at the end.
910
911 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
912
913 * gcc-interface/ada-tree.h: Minor reorganization.
914 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
915 (gnat_print_type): Likewise.
916
917 2009-07-11 Thomas Quinot <quinot@adacore.com>
918
919 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
920 Lvalue -> lvalue
921
922 * exp_ch6.adb: Minor reformatting
923
924 2009-07-11 Ed Schonberg <schonberg@adacore.com>
925
926 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
927 account possible type qualification to determine whether aggregate
928 needs a target temporary to respect atomic type or object.
929
930 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
931 Expand_Atomic_Aggregate.
932
933 2009-07-11 Emmanuel Briot <briot@adacore.com>
934
935 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
936 algorithm.
937 (Excluded_Sources_Htable): No longer a global table.
938 Change error message to indicate which files are illegal in the list
939 of excluded files, as opposed to only the location in the project
940 file.
941 (Find_Source): New subprogram.
942
943 2009-07-10 Thomas Quinot <quinot@adacore.com>
944
945 * exp_ch7.adb: Update comments.
946
947 2009-07-10 Arnaud Charlet <charlet@adacore.com>
948
949 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
950 clause if -gnatI is set instead of crashing.
951
952 2009-07-10 Ed Schonberg <schonberg@adacore.com>
953
954 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
955 Additional work to remove redundant successive raise statements, in
956 this case access checks.
957
958 2009-07-10 Vincent Celier <celier@adacore.com>
959
960 * make.adb (Compile): Always create a deep copy of the mapping file
961 argument (-gnatem=...) as it may be deallocate/reallocate by
962 Normalize_Arguments.
963
964 2009-07-10 Javier Miranda <miranda@adacore.com>
965
966 * einfo.adb (Directly_Designated_Type): Add assertion.
967
968 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
969 access types before using attribute Directly_Designated_Type.
970
971 2009-07-10 Emmanuel Briot <briot@adacore.com>
972
973 * prj.ads: Minor typo fix
974
975 2009-07-10 Ed Schonberg <schonberg@adacore.com>
976
977 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
978 special treatment.
979
980 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
981 subprogram is a function call, resolve properly, to ensure that extra
982 actuals are added as needed.
983
984 2009-07-10 Thomas Quinot <quinot@adacore.com>
985
986 * sem_aggr.adb: Minor comments editing
987
988 * exp_tss.adb, exp_ch3.adb: Minor reformatting
989
990 2009-07-10 Robert Dewar <dewar@adacore.com>
991
992 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
993
994 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
995 types.
996
997 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
998 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
999 case of conditional expressions that may not be elaborated.
1000
1001 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1002 conditional expression where we may not execute then then or else
1003 branches.
1004
1005 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1006
1007 * i-cexten.ads (bool): New type.
1008
1009 2009-07-10 Robert Dewar <dewar@adacore.com>
1010
1011 * sinfo.ads (N_Short_Circuit): New definition
1012
1013 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1014 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1015
1016 2009-07-10 Javier Miranda <miranda@adacore.com>
1017
1018 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1019 non-tagged record types.
1020
1021 * sem_prag.adb
1022 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1023 with non-tagged types. Required to import C++ classes that have no
1024 virtual primitives.
1025 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1026 returning non-tagged types. For backward compatibility, if the
1027 constructor returns a class wide type we internally change the
1028 returned type to the corresponding non class-wide type.
1029
1030 * sem_aggr.adb
1031 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1032 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1033 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1034 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1035
1036 * sem_ch3.adb
1037 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1038
1039 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1040
1041 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1042
1043 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1044
1045 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1046 cleanup.
1047
1048 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1049
1050 * gnat_rm.texi
1051 (pragma CPP_Class): Document that it can be used now with non-tagged
1052 record types.
1053 (pragma CPP_Constructor): Document that it can be used now with
1054 functions returning specific types. For backward compatibility
1055 we also support functions returning class-wide types.
1056
1057 * gnat_ugn.texi
1058 (Interfacing with C++ constructors): Update the examples to incorporate
1059 the new syntax in which the functions used to import C++ constructors
1060 return specific types.
1061 (Interfacing with C++ at the Class Level): Update the examples to
1062 incorporate the new syntax in which the functions used to import
1063 C++ constructors return specific types.
1064
1065 2009-07-10 Thomas Quinot <quinot@adacore.com>
1066
1067 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1068 Make_Disp_Conditional_Select_Body,
1069 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1070 interface nor a concurrent type, the primitive body is empty. Generate
1071 a null statement so that it remains well formed.
1072
1073 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1074
1075 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1076 replace references to them in defaulted component expressions with
1077 references to the values of the discriminants of the target object.
1078
1079 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1080
1081 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1082 pragma, to capture global references if the context is generic.
1083
1084 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1085 appears within the initialization procedure for the corresponding
1086 record, replace it with the proper discriminal.
1087
1088 2009-07-10 Vincent Celier <celier@adacore.com>
1089
1090 * make.adb: Do not include object directories or library ALI
1091 directories of library projects in the object path.
1092
1093 2009-07-10 Javier Miranda <miranda@adacore.com>
1094
1095 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1096 Typ argument to ensure proper management of access types.
1097
1098 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1099
1100 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1101 Taft-Amendment type, place the finalization list in the package body,
1102 to ensure that the tree for the spec is identical whenever it is
1103 compiled.
1104
1105 2009-07-10 Javier Miranda <miranda@adacore.com>
1106
1107 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1108 inheriting attributes from a private Parent_Base.
1109
1110 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1111
1112 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1113 statements with the same condition.
1114
1115 2009-07-10 Robert Dewar <dewar@adacore.com>
1116
1117 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1118
1119 2009-07-09 Tom Tromey <tromey@redhat.com>
1120
1121 * raise-gcc.c: Include dwarf2h (unconditionally).
1122
1123 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1124
1125 * sem_ch10.adb (Install_Context): If the unit is a package body,
1126 install the private with_clauses of the corresponding package
1127 declaration.
1128
1129 2009-07-09 Robert Dewar <dewar@adacore.com>
1130
1131 * checks.adb: Minor reformatting
1132
1133 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1134
1135 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1136 into ug_words.
1137
1138 2009-07-09 Thomas Quinot <quinot@adacore.com>
1139
1140 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1141 Do not warn for a constant overlaying any constant object
1142
1143 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1144
1145 * sem_ch10.adb (Install_Context): If the unit is a package body,
1146 install the private with_clauses of the corresponding package
1147 declaration.
1148
1149 2009-07-09 Robert Dewar <dewar@adacore.com>
1150
1151 * checks.adb: Minor reformatting
1152
1153 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1154
1155 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1156 into ug_words.
1157
1158 2009-07-09 Thomas Quinot <quinot@adacore.com>
1159
1160 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1161 Do not warn for a constant overlaying any constant object
1162
1163 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1164
1165 * gcc-interface/Make-lang.in: Update dependencies
1166
1167 2009-07-09 Thomas Quinot <quinot@adacore.com>
1168
1169 * g-socket.adb (Check_Selector): Do not create local copies of the
1170 socket sets on the stack.
1171
1172 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1173
1174 * gnat_ugn.texi: Add missing VMS translations.
1175
1176 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1177
1178 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1179 condition, to prevent generation of visible code during expansion,
1180 when Check is not enabled.
1181
1182 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1183
1184 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1185 the check gets registered for any available local handler
1186 (Set_Local_Raise).
1187
1188 * sem_util.adb: Add with and use of Exp_Ch11.
1189 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1190 that the check gets registered for any available local handler.
1191
1192 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1193 on slice ranges.
1194
1195 2009-07-09 Steve Baird <baird@adacore.com>
1196
1197 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1198 function.
1199 (Expand_N_Exception_Declaration): Fix handling of exceptions
1200 declared in a subprogram.
1201
1202 2009-07-09 Emmanuel Briot <briot@adacore.com>
1203
1204 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1205 multi-unit files.
1206
1207 2009-07-09 Thomas Quinot <quinot@adacore.com>
1208
1209 * freeze.adb: Minor reformatting
1210
1211 * exp_ch3.adb: Minor comment fix.
1212
1213 * sinfo.ads: Minor comment fix
1214
1215 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1216
1217 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1218
1219 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1220
1221 * freeze.adb (Freeze_Expression): If the expression is the name of a
1222 function in a call, and the function has not been frozen yet, create
1223 extra formals for it to ensure that the proper actuals are created
1224 when expanding the call.
1225
1226 2009-07-09 Emmanuel Briot <briot@adacore.com>
1227
1228 * prj-pp.adb (Print): Fix handling of source index when set on a
1229 declaration node.
1230
1231 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1232
1233 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1234 a temporary to the source expression whose value it captures.
1235
1236 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1237
1238 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1239
1240 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1241 EXPR_LOCATION.
1242
1243 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1244
1245 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1246 parameters when the subtype of the actual is not known to be a subrange
1247 of the formal's subtype.
1248 (Expand_Call): Generate a range check only in the E_In_parameter case
1249 (in out parameter range checks are now handled in Expand_Actuals).
1250
1251 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1252 Enable_Range_Check.
1253
1254 2009-07-07 Robert Dewar <dewar@adacore.com>
1255
1256 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1257
1258 2009-07-07 Javier Miranda <miranda@adacore.com>
1259
1260 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1261 designated type comes from a limited views.
1262
1263 2009-07-07 Emmanuel Briot <briot@adacore.com>
1264
1265 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1266 locally removed files that are later made visible again in an importing
1267 project.
1268
1269 2009-07-07 Robert Dewar <dewar@adacore.com>
1270
1271 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1272
1273 2009-07-07 Sergey Rybin <rybin@adacore.com>
1274
1275 * gnat_ugn.texi: Add an example to the description of gnatcheck
1276 'Style_Checks' rule option.
1277
1278 2009-07-07 Tristan Gingold <gingold@adacore.com>
1279
1280 * seh_init.c: Fix inline assembly statement in seh_init.c
1281
1282 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1283
1284 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1285 an entry body. Only the formals of the entry declaration are traced.
1286
1287 2009-07-07 Robert Dewar <dewar@adacore.com>
1288
1289 * s-osprim-mingw.adb: Minor code reorganization
1290
1291 2009-07-07 Robert Dewar <dewar@adacore.com>
1292
1293 * prj-nmsc.adb: Minor reformatting
1294
1295 2009-07-07 Pascal Obry <obry@adacore.com>
1296
1297 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
1298 cases where Pattern is longer than Source.
1299
1300 2009-07-07 Pascal Obry <obry@adacore.com>
1301
1302 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
1303
1304 2009-07-07 Emmanuel Briot <briot@adacore.com>
1305
1306 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
1307 project file.
1308
1309 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1310
1311 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
1312 primitive operations, in case one of them is called in the
1313 initialization procedure for the type.
1314
1315 2009-07-07 Robert Dewar <dewar@adacore.com>
1316
1317 * a-calend.adb: Minor code reorganization (use conditional expressions)
1318
1319 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
1320 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
1321 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
1322 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
1323 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
1324 g-comlin.adb, exp_ch11.adb: Minor reformatting.
1325
1326 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1327
1328 * checks.adb (Generate_Range_Check): Replace type conversions with
1329 unchecked conversions to support the case of performing range checks
1330 on Enum'Val (permits integer values to be converted to enumeration).
1331
1332 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
1333 Attribute_Succ): Set Do_Range_Check to False before calling
1334 Expand_Pred_Succ, to prevent gigi from generating any range checks.
1335 (Expand_N_Attribute_Reference, case Attribute_Val):
1336 Generate a range check when needed (and set Do_Range_Check to False).
1337
1338 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
1339 scalar object initialization if needed.
1340
1341 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
1342 when needed on scalar allocators.
1343 (Expand_N_Qualified_Expression): Generate range check when needed.
1344 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
1345 Checks on slice ranges handled in Resolve_Slice.
1346
1347 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
1348 when needed, for all scalar assignments, not just discrete.
1349 (Expand_Simple_Function_Return): Resolve the conversion created for a
1350 scalar function return so that the conversion will get expanded to
1351 generate a possible constraint check.
1352
1353 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
1354 in out scalar actuals when subtypes don't match, to ensure generation
1355 of return checks (and set Do_Range_Check to False).
1356 (Expand_Call): Uncomment code to perform range checks, but make it apply
1357 only to in and in out parameters (checks on parameter returns are
1358 handled in Expand_Actuals). If a scalar actual for a call to a derived
1359 subprogram is marked as needing a range check, peform it here (and set
1360 Do_Range_Check to False).
1361
1362 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
1363 range check on scalar component associations when needed.
1364
1365 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
1366 infinities but the second type does not, as these aren't compatible
1367 floating-point types.
1368
1369 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
1370 slice is itself a slice, pick up the Etype of the prefix. This handles
1371 the case where the prefix was an Image attribute expanded to a slice,
1372 and ensures that we get the subtype with the slice constraint rather
1373 than the unconstrained subbtype of the 'Image.
1374
1375 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1376
1377 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
1378 overloaded expressions in a conditional expressions.
1379
1380 * sem_res.adb (Resolve): Handle properly overloaded conditional
1381 expressions.
1382
1383 2009-07-07 Robert Dewar <dewar@adacore.com>
1384
1385 * scng.adb: Minor reformattting
1386
1387 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
1388 association allows conditional expression without parens.
1389
1390 * par-ch4.adb (P_Name): Attribute arguments can be conditional
1391 expressions without enclosing parentheses, and also as parameters,
1392 indexing expressions etc.
1393 (P_Conditional_Expression): New procedure
1394 (P_Expression_If_OK): New procedure
1395
1396 * par.adb (P_Conditional_Expression): New procedure
1397 (P_Expression_If_OK): New procedure
1398
1399 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
1400 form of conditional expression.
1401
1402 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
1403 missing True argument if ELSE argument missing.
1404
1405 * sinfo.adb (Is_Elsif): New flag
1406
1407 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
1408 part of the language, and the documentation is modified accordingly.
1409 (Is_Elsif): New flag
1410
1411 2009-07-06 Olivier Hainque <hainque@adacore.com>
1412
1413 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
1414 setjmp_longjmp): Attach the exception propagation reraise fallback
1415 to the sequence end label location when we have it.
1416
1417 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1418
1419 PR ada/40608
1420 * init.c (APPLE): Include <mach/mach_init.h>.
1421 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
1422
1423 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
1424
1425 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
1426 (SET_DECL_LANG_SPECIFIC): Likewise.
1427 (TYPE_RM_VALUE): New macro.
1428 (SET_TYPE_RM_VALUE): Likewise.
1429 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
1430 (TYPE_RM_MIN_VALUE): Likewise.
1431 (TYPE_RM_MAX_VALUE): Likewise.
1432 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
1433 (SET_TYPE_RM_MIN_VALUE): Likewise.
1434 (SET_TYPE_RM_MAX_VALUE): Likewise.
1435 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
1436
1437 2009-07-04 Laurent GUERBY <laurent@guerby.net>
1438
1439 PR ada/40631
1440 * tracebak.c (__gnat_backtrace): Fix old-style definition.
1441
1442 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1443
1444 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
1445
1446 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1447
1448 PR ada/40609
1449 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
1450 ucontext argument.
1451
1452 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
1453
1454 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
1455
1456 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1457
1458 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
1459 the type of the left operand if it pads a self-referential type when
1460 the right operand is a constructor.
1461
1462 * gcc-interface/lang-specs.h: Fix copyright date.
1463
1464 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1465
1466 * gcc-interface/decl.c: Include tree-inline.h.
1467 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
1468 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
1469 * gcc-interface/utils2.c: Include tree-inline.
1470 (known_alignment) <CALL_EXPR>: Likewise.
1471
1472 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1473
1474 * raise-gcc.c: Include dwarf2.h conditionally.
1475
1476 2009-06-29 Tom Tromey <tromey@redhat.com>
1477
1478 * raise-gcc.c: Include elf/dwarf2.h.
1479
1480 2009-06-27 Laurent GUERBY <laurent@guerby.net>
1481
1482 * tb-gcc.c (trace_callback): Add casts to silence warning.
1483
1484 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
1485
1486 * tb-gcc.c: Fix copyright notice.
1487
1488 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
1489
1490 * init.c (__gnat_set_globals): Add prototype.
1491 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
1492 (__gnat_sals_init_using_constructors): Likewise.
1493 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
1494 (get_block_jmpbuf_decl): Likewise.
1495 (gnat_poplevel): Likewise.
1496 (merge_sizes): Rename local variable.
1497 (copy_type): Likewise.
1498 (build_vms_descriptor32): Likewise.
1499 (build_vms_descriptor): Likewise.
1500 (convert_vms_descriptor64): Likewise.
1501 (convert_vms_descriptor32): Likewise.
1502 (convert_to_fat_pointer): Likewise.
1503 (maybe_unconstrained_array): Likewise.
1504 (def_fn_type): Use promoted type with va_arg.
1505 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
1506 (substitute_in_type): Rename local variable.
1507 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
1508
1509 2009-06-26 Laurent GUERBY <laurent@guerby.net>
1510
1511 * tb-gcc.c (trace_callback): Use char* instead of void*.
1512 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
1513 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
1514 (Attribute_to_gnu): Adjust for above change.
1515 (Subprogram_Body_to_gnu): Likewise.
1516 * gcc-interface/utils.c (merge_sizes): Rename local variable.
1517 (copy_type): Likewise.
1518 (build_vms_descriptor32): Likewise.
1519 (build_vms_descriptor): Likewise.
1520 (convert_vms_descriptor64): Likewise.
1521 (convert_vms_descriptor32): Likewise.
1522 (convert_to_fat_pointer): Likewise.
1523 (maybe_unconstrained_array): Likewise.
1524 * gcc-interface/decl.c (substitute_in_type): Likewise.
1525
1526 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1527
1528 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
1529 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
1530 of the upper bound of the index types.
1531
1532 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1533
1534 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
1535 out common predicate. Use the maximum to compute the upper bound of
1536 the index type only when it is not wider than sizetype. Perform the
1537 comparison in the index type for the generic expression. Use real
1538 precision to decide whether to generate special types for debugging
1539 information.
1540
1541 2009-06-26 Matthew Gingell <gingell@adacore.com>
1542
1543 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
1544
1545 2009-06-26 Vincent Celier <celier@adacore.com>
1546
1547 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
1548 default.
1549
1550 2009-06-26 Robert Dewar <dewar@adacore.com>
1551
1552 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
1553
1554 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
1557 correct arguments to create_field_decl. Remove redundant iteration.
1558 Rewrite computation of the maximum size.
1559 <E_Array_Subtype>: Reorder and simplify handling of special cases.
1560 Rewrite computation of the maximum size. Use consistent naming.
1561 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
1562 comparison order for consistency. Use generic integer node to
1563 build the operator and fold the result.
1564
1565 2009-06-25 Vincent Celier <celier@adacore.com>
1566
1567 * vms_data.ads: Minor comment change
1568
1569 2009-06-25 Gary Dismukes <dismukes@adacore.com>
1570
1571 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
1572 assignment statement to targeting a caller-provided object when the
1573 result type is an interface type.
1574
1575 * exp_ch6.adb (Expand_Call): Remove redundant test of
1576 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
1577 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
1578
1579 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
1580 to OK_For_Limited_Init.
1581
1582 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
1583 condition so that True is returned for all limited interfaces, not
1584 just synchronized ones. Ignore components of an interface type when
1585 checking for limited components (such a component can be a parent
1586 component).
1587
1588 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
1589 (OK_For_Limited_Init): Add type parameter.
1590
1591 * sem_ch3.adb (Check_Initialization): Add type in call to
1592 OK_For_Limited_Init.
1593 (OK_For_Limited_Init): Add new type param in call to
1594 OK_For_Limited_Init_In_05.
1595 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
1596 nonlimited type when the context type is a limited interface. Add type
1597 on recursive calls.
1598
1599 * sem_ch4.adb (Analyze_Allocator): Add type in call to
1600 OK_For_Limited_Init.
1601
1602 * sem_ch6.adb (Check_Limited_Return): Add type in call to
1603 OK_For_Limited_Init.
1604
1605 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
1606 OK_For_Limited_Init.
1607 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
1608
1609 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
1610 class-wide interface, get the base type before applying Etype, in order
1611 to account for class-wide subtypes.
1612
1613 2009-06-25 Emmanuel Briot <briot@adacore.com>
1614
1615 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
1616 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
1617 between gnatmake and gprbuild.
1618 (Naming_Data): Removed, no longer used
1619 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
1620 needed locally in one subprogram, no need to store forever in the
1621 structure.
1622 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
1623 a similar role.
1624 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
1625 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
1626 Spec_Suffix_Id_Of): removed, no longer used.
1627
1628 2009-06-25 Javier Miranda <miranda@adacore.com>
1629
1630 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
1631 types on qualified expression in calls to imported C++ constructors.
1632
1633 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
1634 imported C++ constructors.
1635
1636 2009-06-25 Sergey Rybin <rybin@adacore.com>
1637
1638 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
1639
1640 2009-06-25 Vincent Celier <celier@adacore.com>
1641
1642 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
1643 provided, on Windows change all '/' to '\'.
1644
1645 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
1646 used. Minor comment changes
1647
1648 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
1649 Remove_Forbidden_File_Name.
1650
1651 2009-06-25 Quentin Ochem <ochem@adacore.com>
1652
1653 * prj.ads (Unit_Index): Now general access type.
1654
1655 2009-06-25 Pascal Obry <obry@adacore.com>
1656
1657 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
1658
1659 2009-06-25 Emmanuel Briot <briot@adacore.com>
1660
1661 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
1662 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
1663 computed efficiently from the other fields.
1664 (Object_To_Global_Archive): New subprogram
1665 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
1666 (Override_Kind): Fix handling of separates in Ada.
1667 (Create_Mapping_File): Remove duplicate code
1668 (Naming_Data.Implementation_Exception, Specification_Exception):
1669 field removed, since never used.
1670 (Naming_Data.Specs, .Bodies): field removed, since this is only
1671 used while processing the project and is not needed once the tree
1672 is in memory. This brings Naming_Data and Lang_Naming_Data
1673 closer (same content now, but different use still).
1674
1675 2009-06-25 Pascal Obry <obry@adacore.com>
1676
1677 * sem_ch4.adb: Minor reformatting.
1678
1679 * a-strsea.adb: Fix confusion between 'Length and 'Last.
1680
1681 2009-06-25 Ed Schonberg <schonberg@adacore.com>
1682
1683 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
1684 Unchecked_Access): If the context is an interface type, and the prefix
1685 is of the corresponding class-wide type, do not insert a conversion
1686 because the pointer displacement has already taken place, and we must
1687 retain the class-wide type in a dispatching context.
1688
1689 2009-06-25 Emmanuel Briot <briot@adacore.com>
1690
1691 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
1692 the previous source file.
1693 (Create_Mapping): Iterate on sources rather than on units.
1694
1695 2009-06-25 Emmanuel Briot <briot@adacore.com>
1696
1697 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
1698 prj-env.adb, prj-env.ads (Slash): removed, no longer used
1699 (Source_Data): no longer use Path.Name to point to a locally removed
1700 file. Instead we use the field Locally_Removed which is clearer
1701
1702 2009-06-25 Arnaud Charlet <charlet@adacore.com>
1703
1704 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
1705
1706 * sem_maps.adb, sem_maps.ads: Removed, not used.
1707
1708 2009-06-25 Ed Falis <falis@adacore.com>
1709
1710 * s-vxwext-rtp.ads: Add missing declaration
1711
1712 2009-06-25 Matthew Gingell <gingell@adacore.com>
1713
1714 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
1715 speed up unmapped case.
1716
1717 2009-06-25 Vincent Celier <celier@adacore.com>
1718
1719 * prj-nmsc.adb (Check): Change error message for illegal abstract
1720 projects.
1721
1722 2009-06-25 Robert Dewar <dewar@adacore.com>
1723
1724 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
1725
1726 2009-06-25 Emmanuel Briot <briot@adacore.com>
1727
1728 * fmap.ads: Add documentation on mapping files
1729
1730 2009-06-25 Robert Dewar <dewar@adacore.com>
1731
1732 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
1733 reformatting
1734
1735 2009-06-24 Robert Dewar <dewar@adacore.com>
1736
1737 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
1738
1739 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
1740 case.
1741 (Index): Ditto.
1742
1743 2009-06-24 Ed Schonberg <schonberg@adacore.com>
1744
1745 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
1746 present when checking whether a call may be interpreted as an indexing
1747 of the result of a call.
1748
1749 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
1750 body for a null procedure on the freeze actions for the procedure, so
1751 that it will be analyzed at the proper place without premature freezing
1752 of actuals.
1753
1754 * sem_ch3.adb (Check_Completion): Code cleanup.
1755 Do not diagnose a null procedure without a body, if previous errors
1756 have disabled expansion.
1757
1758 2009-06-24 Doug Rupp <rupp@adacore.com>
1759
1760 * init.c [VMS] Resignal C$_SIGKILL
1761
1762 2009-06-24 Ed Falis <falis@adacore.com>
1763
1764 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
1765 Define ERROR in body for VxWorks 6 kernel
1766
1767 2009-06-24 Pascal Obry <obry@adacore.com>
1768
1769 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
1770 in [Send/Receive]_Socket.
1771
1772 2009-06-24 Emmanuel Briot <briot@adacore.com>
1773
1774 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1775 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
1776 to several subprograms.
1777 (Source_Data.Other_Part): Removed, since can be computed from the
1778 language.
1779 (Other_Part): New subprogram.
1780
1781 2009-06-24 Emmanuel Briot <briot@adacore.com>
1782
1783 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
1784 the full base name of the file when the suffix doesn't start with a '.'.
1785
1786 2009-06-24 Vincent Celier <celier@adacore.com>
1787
1788 * prj-nmsc.adb (Check): A project declared abstract is legal if no
1789 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
1790 declared.
1791
1792 2009-06-24 Robert Dewar <dewar@adacore.com>
1793
1794 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
1795 prj-env.adb: Minor reformatting
1796
1797 2009-06-24 Ed Falis <falis@adacore.com>
1798
1799 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
1800 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
1801 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
1802 support for VxWorks SMP.
1803
1804 * gcc-interface/Make-lang.in: Update dependencies
1805
1806 2009-06-24 Emmanuel Briot <briot@adacore.com>
1807
1808 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
1809 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
1810 no longer useful.
1811 (Source_Data.Lang_Kind): Removed, since it duplicates information
1812 already available through Language.Config.
1813 (Source_Data.Compile): Removed, since information is already available
1814 through the language.
1815 (Is_Compilable): New subprogram.
1816 (Source_Data.Dependency): Removed, since already available through
1817 the language.
1818 (Source_Data.Object_Exist, Object_Linked): Removed since available
1819 through the language already.
1820 (Unit_Data.File_Names): Is now also set in multi_language mode, to
1821 bring the two modes closer in the resulting data structures.
1822 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
1823 just the name that would point into a hash table.
1824 (Get_Language_From_Name): New subprogram.
1825
1826 2009-06-24 Javier Miranda <miranda@adacore.com>
1827
1828 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
1829 visible through limited-with context clauses. In addition, avoid an
1830 extra tag check that is not required when the class-wide
1831 designated types of the operand and target types are
1832 the same entity.
1833 (Tagged_Membership): Handle entities from the limited view.
1834
1835 2009-06-24 Emmanuel Briot <briot@adacore.com>
1836
1837 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
1838 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
1839 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
1840 different vocabularies for similar concepts (Impl/Body_Part and
1841 Spec/Specification).
1842 (Unit_Data): now points directly to a Source_Id, rather than duplicating
1843 some of the information in File_Name_Data. This also saves a bit of
1844 memory. However, since we are now using a pointer we need to test
1845 for null explicitly in several places of the code
1846
1847 2009-06-24 Javier Miranda <miranda@adacore.com>
1848
1849 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
1850 from processing the type conversion when the node is
1851 replaced by an N_Raise_Program_Error node.
1852
1853 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
1854
1855 * sem_ch6.adb (Designates_From_With_Type): New routine.
1856 (Process_Formals): Since anonymous access types are no longer flagged
1857 as from with types, traverse the designated type to determine whether
1858 it is coming from a limited view.
1859
1860 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
1861 (Full_Designated_Type): Use Available_View to extract the non-limited /
1862 full view of a type.
1863
1864 2009-06-24 Robert Dewar <dewar@adacore.com>
1865
1866 * exp_ch6.adb: Minor reformatting
1867
1868 * layout.adb: Minor reformatting
1869
1870 * make.adb: Minor reformatting
1871
1872 2009-06-24 Thomas Quinot <quinot@adacore.com>
1873
1874 * sem_ch10.adb: Minor code reorganization.
1875
1876 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
1877
1878 * ttypes.ads: Minor editing.
1879
1880 2009-06-24 Robert Dewar <dewar@adacore.com>
1881
1882 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
1883 in deciding to do call-by-copy code.
1884
1885 2009-06-24 Vincent Celier <celier@adacore.com>
1886
1887 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
1888 check if an externally built library file is more current than the
1889 executable.
1890
1891 2009-06-23 Olivier Hainque <hainque@adacore.com>
1892
1893 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
1894 c-common.c and populate in gnat_internal_attribute_table.
1895
1896 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1897
1898 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
1899 Available_View only when designated type of an anonymous access type
1900 is limited view.
1901
1902 2009-06-23 Robert Dewar <dewar@adacore.com>
1903
1904 * sem_ch10.adb: Minor reformatting
1905
1906 * ali.ads: Mino reformatting.
1907
1908 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
1909 turning off inlining if ASIS mode active).
1910
1911 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
1912 This belongs in gnat1drv.adb after switches are scanned.
1913
1914 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
1915
1916 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
1917 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
1918 when dealing with class-wide types. Detect a legal shadow entity and
1919 retrieve its non-limited view.
1920
1921 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
1922 subprogram to top package level from Intall_Limited_Withed_Unit.
1923 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
1924 Add check which prevents the installation of a limited view if the
1925 non-limited view is already visible through a with clause.
1926 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
1927 legal shadow entity which may occur in subprogram formals of anonymous
1928 access type.
1929
1930 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
1931
1932 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
1933 From_With_Type from the designated type to the generated anonymous
1934 access type. Remove associated comment.
1935
1936 * sem_res.adb Add with and use clauses for Sem_Ch10.
1937 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
1938 non-limited view. Since the shadow entity may replace a regular
1939 incomplete type, return the available full view.
1940
1941 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1942
1943 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
1944 incomplete type declarations. Previous code was potentially quadratic
1945 in the number of visible declarations in any package appearing in a
1946 limited_with_clause.
1947
1948 2009-06-23 Robert Dewar <dewar@adacore.com>
1949
1950 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
1951 xref_lib.adb: Minor reformatting
1952
1953 2009-06-23 Robert Dewar <dewar@adacore.com>
1954
1955 * a-stzhas.adb: Provide dummy body to avoid build problems with old
1956 versions which did have a body for this unit.
1957
1958 2009-06-23 Vincent Celier <celier@adacore.com>
1959
1960 * prj-attr.adb: Attribute names Initial_Required_Switches and
1961 Final_Required_Switches changed to Leading_Required_Switches and
1962 Trailing_Required_Switches.
1963
1964 * prj-nmsc.adb (Process_Compiler): Attribute names
1965 Initial_Required_Switches and Final_Required_Switches changed to
1966 Leading_Required_Switches and Trailing_Required_Switches.
1967
1968 * prj.ads (Language_Config): Component Initial_Required_Switches and
1969 Final_Required_Switches changed to Leading_Required_Switches and
1970 Trailing_Required_Switches.
1971
1972 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
1973 Final_Required_Switches; add standard names Leading_Required_Switches
1974 and Trailing_Required_Switches.
1975
1976 2009-06-23 Thomas Quinot <quinot@adacore.com>
1977
1978 * prj-conf.adb: Minor reformatting
1979
1980 * xref_lib.adb: Minor cleanup
1981
1982 2009-06-23 Emmanuel Briot <briot@adacore.com>
1983
1984 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
1985 prj-conf.ads (Check_Configuration): New parameter
1986 Compiler_Driver_Mandatory.
1987
1988 2009-06-23 Ed Schonberg <schonberg@adacore.com>
1989
1990 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
1991 context of the current unit has an inline pragma, the instance is not
1992 rewritten as the declaration of the package wrapper. Handle both
1993 possibilities when retrieving the visible subprogram that renames the
1994 instantiation itself.
1995
1996 2009-06-23 Javier Miranda <miranda@adacore.com>
1997
1998 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
1999 designated types referencing entities from the limited view.
2000
2001 2009-06-23 Robert Dewar <dewar@adacore.com>
2002
2003 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2004
2005 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2006 small values
2007
2008 * prj-conf.ads: Minor reformatting
2009
2010 * prj-conf.adb: Minor reformatting
2011
2012 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2013
2014 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2015 to correspond to the log format that gnatmem now expects.
2016
2017 2009-06-23 Vincent Celier <celier@adacore.com>
2018
2019 * prj-attr.adb: New attributes Initial_Required_Switches,
2020 Final_Required_Switches and Object_File_Switches
2021
2022 * prj-nmsc.adb (Process_Compiler): Process new attributes
2023 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2024 Name_Object_File_Switches.
2025
2026 * prj.ads (Language_Config): New component
2027 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2028 Compiler_Final_Required_Switches and Object_File_Switches.
2029
2030 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2031 Final_Required_Switches and Object_File_Switches
2032
2033 2009-06-23 Pascal Obry <obry@adacore.com>
2034
2035 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2036
2037 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2038
2039 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2040 not indicate that the enclosing unit needs a body.
2041
2042 2009-06-23 Emmanuel Briot <briot@adacore.com>
2043
2044 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2045
2046 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2047
2048 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2049 primitive equality include it with its source name even if the
2050 operation is currently invisible, to make sure that the corresponding
2051 slot in the dispatch table is reserved for the internal equality
2052 subsequently generated during expansion.
2053
2054 2009-06-23 Matthew Gingell <gingell@adacore.com>
2055
2056 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2057
2058 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2059
2060 * sysdep.c (__gnat_localtime_tzoff for RTX):
2061 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2062 GetTimeZoneInformation instead.
2063
2064 2009-06-22 Robert Dewar <dewar@adacore.com>
2065
2066 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2067
2068 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2069
2070 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2071 instantiations declared in a previous generic package body.
2072
2073 2009-06-22 Robert Dewar <dewar@adacore.com>
2074
2075 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2076 restriction No_Direct_Boolean_Operators.
2077
2078 2009-06-22 Thomas Quinot <quinot@adacore.com>
2079
2080 * bindusg.adb: Minor fixes to gnatbind usage message
2081
2082 * sem_eval.adb: Minor reformatting
2083
2084 2009-06-22 Javier Miranda <miranda@adacore.com>
2085
2086 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2087 freezing point the check on the use of abstract types in object
2088 declarations. Done to allow the declaration of C++ imported variables
2089 or constants whose type corresponds with an imported C++ classes for
2090 which the constructor is not imported.
2091
2092 2009-06-22 Thomas Quinot <quinot@adacore.com>
2093
2094 * sem_ch6.adb: Minor reformatting
2095
2096 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2097
2098 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2099 component is constrained with an expression rather than with a
2100 discriminant of the enclosing type, use that expression when building
2101 the call to default-initialize the component, when the call is part of
2102 an aggregate with box initialization.
2103
2104 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2105
2106 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2107 unconditional rather than a style check, because a formal name out of
2108 order is suspicious.
2109
2110 2009-06-22 Vincent Celier <celier@adacore.com>
2111
2112 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2113 creating a directory automatically.
2114
2115 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2116
2117 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2118 untagged derived type, add a hidden component for every constrained
2119 discriminant of the parent type to keep record layout consistent.
2120
2121 2009-06-22 Thomas Quinot <quinot@adacore.com>
2122
2123 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2124 copy).
2125
2126 2009-06-22 Matthew Gingell <gingell@adacore.com>
2127
2128 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2129 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2130 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2131 a-swuwha.adb: New unit System.String_Hash.
2132 Refactor redundant cut and pasted hash functions with instances of a
2133 new generic hash function.
2134 Implement a new string hashing algorithm which appears in testing to
2135 be move effective than to previous approach.
2136
2137 2009-06-22 Ed Falis <falis@adacore.com>
2138
2139 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2140 message for VxWorks 653 vThreads: not supported by the OS.
2141
2142 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2143
2144 2009-06-22 Robert Dewar <dewar@adacore.com>
2145
2146 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2147
2148 2009-06-22 Robert Dewar <dewar@adacore.com>
2149
2150 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2151 by Sloc_Range.
2152
2153 * freeze.adb: Minor comment updates
2154
2155 * s-valrea.adb (Bad_Based_Value): New procedure
2156 (Scan_Real): Raise exceptions with messages
2157
2158 2009-06-22 Matthew Gingell <gingell@adacore.com>
2159
2160 * adaint.h: Complete previous change.
2161
2162 2009-06-22 Thomas Quinot <quinot@adacore.com>
2163
2164 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2165
2166 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2167
2168 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2169 enabled, emit warning when a non-controlling argument of the overriding
2170 operation appears out of place vis-a-vis of the formal of the
2171 overridden operation.
2172
2173 2009-06-22 Vincent Celier <celier@adacore.com>
2174
2175 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2176 have been written into it.
2177
2178 2009-06-22 Matthew Gingell <gingell@adacore.com>
2179
2180 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2181 available.
2182
2183 2009-06-22 Thomas Quinot <quinot@adacore.com>
2184
2185 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2186 view of the root type is visible at the point of the call.
2187
2188 2009-06-22 Pat Rogers <rogers@adacore.com>
2189
2190 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2191
2192 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2193
2194 * freeze.adb: Add comments.
2195
2196 2009-06-21 Thomas Quinot <quinot@adacore.com>
2197
2198 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2199 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2200 Factor out code to new subprogram...
2201 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2202 for a default initialized variable.
2203 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2204 entity that has an associated freeze node.
2205 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2206 If there is an init call for the object, defer it to the object freeze
2207 point.
2208 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2209 name clash with new subprogram introduced in Exp_Util.
2210
2211 2009-06-21 Robert Dewar <dewar@adacore.com>
2212
2213 * einfo.ads: Minor reformatting
2214
2215 2009-06-21 Ed Falis <falis@adacore.com>
2216
2217 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2218
2219 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2220
2221 * einfo.ads: Update comments.
2222
2223 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2224
2225 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2226 where the controlling formal is of private class-wide type whose
2227 completion is a synchronized type can be converted into direct calls.
2228
2229 2009-06-21 Vincent Celier <celier@adacore.com>
2230
2231 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2232 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2233 of sources using -files=, so that the distinction can be made by the
2234 tool of a call with no source (to display the usage) from a call with
2235 a project file that contains no source.
2236
2237 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2238
2239 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2240 case of VM convention arrays.
2241
2242 2009-06-20 Robert Dewar <dewar@adacore.com>
2243
2244 * a-nudira.adb: Minor reformatting
2245
2246 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2247
2248 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2249 expressions (possibly from a parent type) indicate that the scope of
2250 the new itypes is the initialization procedure being built.
2251
2252 2009-06-20 Robert Dewar <dewar@adacore.com>
2253
2254 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2255 Needs_64, and now computed without anomolies for some dynamic types.
2256
2257 2009-06-20 Thomas Quinot <quinot@adacore.com>
2258
2259 * sem_prag.adb: Minor reformatting
2260
2261 * exp_disp.ads: Minor reformatting
2262
2263 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2264
2265 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2266 function call is a legal expression to initialize a limited object.
2267
2268 * exp_ch3.adb: Rename various freeze operations that perform expansion
2269 actions, to prevent confusion with subprograms in the freeze package.
2270
2271 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2272
2273 * sem.adb (Walk_Library_Units): Check instantiations first.
2274
2275 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2276 private primitive if it is a function with a controlling result that is
2277 a type extension with progenitors.
2278
2279 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2280 a primitive operation of a synchronized tagged type that has a
2281 controlling result.
2282
2283 2009-06-20 Thomas Quinot <quinot@adacore.com>
2284
2285 * einfo.ads: Fix typo.
2286
2287 2009-06-20 Ed Falis <falis@adacore.com>
2288
2289 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2290
2291 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2292
2293 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2294 in a SAVE_EXPR.
2295 (protect_multiple_eval): Always protect complex expressions.
2296
2297 2009-06-19 Emmanuel Briot <briot@adacore.com>
2298
2299 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
2300 make sure we always return a name ending with a path separator.
2301
2302 2009-06-19 Javier Miranda <miranda@adacore.com>
2303
2304 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
2305 Save and restore the visibility of the parent when installed.
2306
2307 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2308
2309 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
2310 by Common which contains all these fields.
2311
2312 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
2313 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
2314 Remove code duplication in this package by means of calling the
2315 equivalent code in s-taprob.
2316
2317 2009-06-19 Robert Dewar <dewar@adacore.com>
2318
2319 * a-einuoc.ads: Minor reformatting
2320
2321 2009-06-19 Ed Falis <falis@adacore.com>
2322
2323 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
2324 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
2325
2326 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2327
2328 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
2329
2330 2009-06-19 Robert Dewar <dewar@adacore.com>
2331
2332 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
2333 ranges
2334
2335 * checks.adb (Determine_Range): Move the test for generic types later.
2336
2337 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
2338 cases.
2339 (Eval_Relational_Op): Fold more cases including string compares
2340
2341 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
2342 function.
2343
2344 2009-06-19 Robert Dewar <dewar@adacore.com>
2345
2346 * sem_type.ads, sem_ch12.adb: Minor reformatting
2347
2348 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
2349
2350 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2351
2352 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
2353 primitive operation of a rivate extension whose controlling argument
2354 is an out parameter.
2355
2356 * sem.adb (Walk_Library_Units): exclude generic package declarations
2357 from check.
2358
2359 2009-06-19 Thomas Quinot <quinot@adacore.com>
2360
2361 * i-vxwoio.ads: Add comments
2362
2363 2009-06-19 Thomas Quinot <quinot@adacore.com>
2364
2365 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2366 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2367 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
2368 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
2369 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
2370 Thin_Common.Socket_Ioctl.
2371 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
2372 __gnat_socket_ioctl.
2373 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
2374 argument after the file descriptor and request code.
2375
2376 2009-06-19 Robert Dewar <dewar@adacore.com>
2377
2378 * checks.adb: Minor reformatting
2379
2380 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2381
2382 * env.c (__gnat_environ): RTX does not support this functionality.
2383
2384 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2385
2386 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
2387 traverse, to account for front-end inlining and instantiations in a
2388 spec or in the main unit.
2389
2390 2009-06-19 Robert Dewar <dewar@adacore.com>
2391
2392 * checks.adb (Determine_Range): Do not attempt to get range of generic
2393 type.
2394
2395 2009-06-19 Sergey Rybin <rybin@adacore.com>
2396
2397 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
2398 gnatmetric option for generating the schema file for gnatmetric XML
2399 output. Add corresponding VMS qualifier.
2400
2401 2009-06-19 Robert Dewar <dewar@adacore.com>
2402
2403 * g-cgi.adb: Minor reformatting
2404
2405 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2406
2407 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
2408 signal code for SIGFPE and raise Program_Error for SIGILL.
2409
2410 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
2411
2412 2009-06-19 Ed Schonberg <schonberg@adacore.com>
2413
2414 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
2415 generic package if there is a visibility candidate that is declared in
2416 a regular package.
2417
2418 2009-06-18 Olivier Hainque <hainque@adacore.com>
2419
2420 * system-aix64.ads: New file.
2421 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
2422 64bit system.ads for ppc64 multilib variants.
2423
2424 2009-06-16 Robert Dewar <dewar@adacore.com>
2425 Olivier Hainque <hainque@adacore.com>
2426
2427 Relax constraints on Machine_Attribute argument types:
2428 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
2429 missing type.
2430 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
2431 * gcc-interface/decl.c (prepend_attributes): Accept static
2432 expressions of any type as attribute arguments, not only string
2433 literals.
2434 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
2435 the relaxation of the restriction on the Info argument type.
2436
2437 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
2438
2439 * gcc-interface/utils.c (record_builtin_type): Pass location
2440 argument to build_decl.
2441 (create_type_stub_decl): Same.
2442 (create_type_decl): Same.
2443 (create_var_decl_1): Same.
2444 (create_field_decl): Same.
2445 (create_param_decl): Same.
2446 (create_label_decl): Same.
2447 (create_subprog_decl): Same.
2448 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
2449 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
2450 argument to create_artificial_label.
2451 (Loop_Statement_to_gnu): Same.
2452 (Subprogram_Body_to_gnu): Same.
2453 (gnat_gimplify_stmt): Same.
2454
2455 2009-06-11 Richard Henderson <rth@redhat.com>
2456
2457 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
2458 OPT_gdwarfplus.
2459
2460 2009-06-11 Ed Schonberg <schonberg@adacore.com>
2461
2462 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
2463 accessibiliy check on access_to_subprogram in the context of an
2464 anonymous access that is not an access parameter.
2465
2466 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
2467
2468 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
2469
2470 2009-06-11 Quentin Ochem <ochem@adacore.com>
2471
2472 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
2473 comments for message handled by GPS.
2474
2475 2009-06-11 Matthew Gingell <gingell@adacore.com>
2476
2477 * adaint.c: Use fopen64 instead of fopen on platforms where we know
2478 it's supported.
2479
2480 2009-06-11 Pascal Obry <obry@adacore.com>
2481
2482 * g-cgi.ads: Fix comment typo.
2483
2484 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
2485
2486 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
2487
2488 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
2489 a reference to the original type for the type of the field of the
2490 XVS type.
2491 (maybe_pad_type): Likewise.
2492
2493 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
2494 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
2495 Pass correctly typed arguments to create_field_decl.
2496 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
2497 case of contrained discriminants as well. Use the padded base type
2498 in the other case as well. Rename temporary variable. Tweak test.
2499 Factor common access pattern. Set GNU_SIZE only once.
2500
2501 2009-06-09 Olivier Hainque <hainque@adacore.com>
2502
2503 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
2504 helper for build_call_alloc_dealloc with arguments to be interpreted
2505 identically. Process the case where a GNAT_PROC to call is provided.
2506 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
2507 and return an allocator for DATA_SIZE bytes aimed at containing a
2508 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
2509 DATA_TYPE alignments greater than what the latter offers.
2510 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
2511 release a DATA_TYPE object designated by DATA_PTR using the
2512 __gnat_free entry point.
2513 (build_call_alloc_dealloc): Expect object data type instead of naked
2514 alignment constraint. Use the new helpers.
2515 (build_allocator): Remove special processing for the super-aligned
2516 case, now handled by build_call_alloc_dealloc. Pass data
2517 type instead of the former alignment argument, as expected by the new
2518 interface.
2519 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
2520 and comment.
2521 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
2522 Remove special processing for the super-aligned case, now handled
2523 by build_call_alloc_dealloc. Pass data type instead of the former
2524 alignment argument, as expected by the new interface.
2525
2526 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
2527
2528 * lib-writ.adb (flag_compare_debug): Import.
2529 (Write_ALI): Skip during -fcompare-debug-second.
2530
2531 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2532
2533 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
2534 adjusting the discriminant nodes in an extension, use the full view
2535 of the parent subtype if it is of a private kind.
2536
2537 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2538
2539 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
2540 _Parent field, if any, to the record before adding the other fields.
2541 <E_Record_Subtype>: Put the _Controller field before the other fields
2542 except for the _Tag or _Parent fields.
2543 (components_to_record): Likewise. Retrieve the _Parent field from the
2544 record type.
2545
2546 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
2547
2548 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
2549 remove unused parameter and simplify.
2550 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
2551 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
2552 as context for all discriminants. Fix formatting nits.
2553 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
2554 before Discriminant_Constraint. Adjust for above renaming. Do not
2555 set GNU_TYPE more than once.
2556 (elaborate_entity): Test Has_Discriminants on the entity and use
2557 Implementation_Base_Type.
2558 (components_to_record): Rename component_list to gnat_component_list.
2559 Retrieve the _Parent field from the list. Fix nits in comments.
2560 Clarify logic in loop. Pass correct arguments to create_field_decl.
2561
2562 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
2563
2564 * gcc-interface/Make-lang.in: Fix formatting.
2565
2566 2009-06-01 Olivier Hainque <hainque@adacore.com>
2567 Eric Botcazou <ebotcazou@adacore.com>
2568
2569 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
2570 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
2571 on the result if at least one of the input fields couldn't be output
2572 as a static constant any more.
2573
2574 2009-06-01 Olivier Hainque <hainque@adacore.com>
2575 Eric Botcazou <ebotcazou@adacore.com>
2576
2577 * gcc-interface/utils2.c (gnat_build_constructor): Factor
2578 out code. Use initializer_constant_valid_for_bitfield_p and
2579 CONSTRUCTOR_BITFIELD_P for bit-fields.
2580
2581 2009-05-26 Ian Lance Taylor <iant@google.com>
2582
2583 * gcc-interface/Makefile.in (COMPILER): Define.
2584 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
2585 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
2586 (seh_init.o, tracebak.o): Likewise.
2587 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
2588 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
2589 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
2590 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
2591 (ada/utils2.o): Likewise.
2592
2593 2009-05-24 Olivier Hainque <hainque@adacore.com>
2594
2595 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
2596 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
2597 Add -auxbase variants to the list of recognized internal switches.
2598 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
2599 adjust comments.
2600 * lib.ads: Make comment on internal GCC switches more general.
2601 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
2602 as for C.
2603
2604 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2605
2606 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
2607
2608 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2609
2610 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
2611 types.
2612
2613 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
2614
2615 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
2616 original type because of the alignment when there is an address clause.
2617
2618 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
2619
2620 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
2621 discriminants affect the shape of the subtype, retrieve the GCC type
2622 directly from the original field if the GNAT types for the field and
2623 the original field are the same.
2624
2625 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
2626
2627 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
2628 New macros.
2629 (TYPE_RM_VALUES): Likewise.
2630 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
2631 (SET_TYPE_RM_SIZE): New macro.
2632 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
2633 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
2634 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
2635 * gcc-interface/gigi.h (create_range_type): Declare.
2636 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
2637 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
2638 <E_Signed_Integer_Subtype>: Build a regular integer type first and
2639 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2640 <E_Floating_Point_Subtype>: Build a regular floating-point type first
2641 and then set the RM bounds.
2642 <E_Array_Type>: Use create_range_type instead of build_range_type.
2643 <E_Array_Subtype>: Build a regular integer type first and then set
2644 the RM bounds for the extra subtype.
2645 <E_String_Literal_Subtype>: Use create_range_type instead of
2646 build_range_type.
2647 <all>: Set the RM bounds for enumeration types and the GCC bounds for
2648 floating-point types.
2649 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
2650 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
2651 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
2652 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
2653 types and with RM bounds for subtypes.
2654 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
2655 (gnat_print_type) <REAL_TYPE>: New case.
2656 <ENUMERAL_TYPE>: Fall through to above case.
2657 (gnat_get_subrange_bounds): New function.
2658 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
2659 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
2660 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
2661 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
2662 (create_range_type): New function.
2663 (create_param_decl): Build a regular integer type first and then set
2664 the RM bounds for the extra subtype.
2665 (unchecked_convert): Remove kludge for 'Valid.
2666 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
2667 the index to sizetype instead of TYPE_DOMAIN.
2668
2669 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
2670
2671 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
2672 parameter and move check for static expression to...
2673 (elaborate_expression): ...here. Adjust call to above function.
2674 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
2675 in calls to elaborate_expression.
2676 (elaborate_entity): Likewise.
2677 (substitution_list): Likewise.
2678 (maybe_variable): Fix formatting.
2679 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
2680 missing guard.
2681 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
2682
2683 2009-05-07 Arnaud Charlet <charlet@adacore.com>
2684
2685 * gcc-interface/Make-lang.in: Update dependencies.
2686
2687 2009-05-06 Laurent GUERBY <laurent@guerby.net>
2688
2689 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
2690 Define sa_handler_pos.
2691 * s-osinte-linux.ads: Use it.
2692 * s-linux-mipsel.ads: New.
2693 * system-linux-mips64el.ads: New.
2694 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
2695 mips64el-linux.
2696
2697 2009-05-06 Arnaud Charlet <charlet@adacore.com>
2698
2699 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
2700 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
2701 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
2702 (Tagged_Type_Expansion): New flag.
2703 Replace use of VM_Target related to tagged types expansion by
2704 Tagged_Type_Expansion, since tagged type expansion is not necessarily
2705 linked to VM targets.
2706
2707 2009-05-06 Robert Dewar <dewar@adacore.com>
2708
2709 * sem_attr.adb: Add processing for Standard'Compiler_Version
2710
2711 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
2712 skipping.
2713 (Expr_First_Char): Add ??? comment that paren skipping needs work
2714 (Expr_Last_Char): Add ??? comment that paren skipping needs work
2715
2716 * exp_attr.adb: Add processing for Compiler_Version
2717
2718 * sem_attr.adb: New attribute Compiler_Version
2719
2720 * snames.ads-tmpl: Add entries for Compiler_Version attribute
2721
2722 * gnat_rm.texi: Document Compiler_Version attribute
2723
2724 2009-05-06 Robert Dewar <dewar@adacore.com>
2725
2726 * errout.adb: Minor reformatting
2727
2728 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
2729 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
2730 styleg.adb: Add stylized comments to error messages that are included
2731 in the codefix circuitry of IDE's such as GPS.
2732
2733 2009-05-06 Sergey Rybin <rybin@adacore.com>
2734
2735 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
2736 new form of the rule parameter that allows to specify the suffix for
2737 access-to-access type names.
2738
2739 2009-05-06 Robert Dewar <dewar@adacore.com>
2740
2741 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
2742 out parameter assigned when exception handlers are present.
2743
2744 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
2745 assignments on exit.
2746
2747 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
2748 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
2749 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
2750 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
2751 messages that are included in the codefix circuitry of IDE's such as
2752 GPS.
2753
2754 * sinput.ads, sinput.adb (Expr_First_Char): New function
2755 (Expr_Last_Char): New function
2756
2757 2009-05-06 Sergey Rybin <rybin@adacore.com>
2758
2759 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
2760 Add formal definition for extra exit point metric
2761
2762 2009-05-06 Pascal Obry <obry@adacore.com>
2763
2764 * adaint.c: Support for setting attributes on unicode filename on
2765 Windows.
2766
2767 2009-05-06 Robert Dewar <dewar@adacore.com>
2768
2769 * sem_warn.adb: Minor reformatting
2770
2771 2009-05-06 Javier Miranda <miranda@adacore.com>
2772
2773 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
2774 not have discriminants or components with default expressions.
2775 (Analyze_Pragma): For pragma CPP_Class check that imported types
2776 have no discriminants and components have no default expression.
2777
2778 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
2779 class-wide types in the expression of a record component association.
2780
2781 2009-05-06 Sergey Rybin <rybin@adacore.com>
2782
2783 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
2784
2785 * gnat_ugn.texi: Add description for the new extra exit points metric
2786 (gnatmetric section).
2787
2788 2009-05-06 Robert Dewar <dewar@adacore.com>
2789
2790 * s-fileio.adb: Minor comment update
2791
2792 * sem_ch8.adb: Minor reformatting
2793
2794 * exp_ch3.adb: Update comments.
2795
2796 2009-05-06 Tristan Gingold <gingold@adacore.com>
2797
2798 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
2799
2800 2009-05-06 Arnaud Charlet <charlet@adacore.com>
2801
2802 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
2803 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
2804
2805 * gcc-interface/Make-lang.in: Update dependencies
2806
2807 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2808
2809 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
2810 change. The context clause of a generic instance declaration must be
2811 preserved until the end of the compilation, because it may have to be
2812 installed/removed repeatedly.
2813 The latest change to sem.adb ensures that the context of both spec and
2814 body of an instance is traversed before the instance itself, making
2815 this patch redundant.
2816
2817 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2818
2819 * sem_aggr.adb: Fix typo.
2820
2821 2009-05-06 Thomas Quinot <quinot@adacore.com>
2822
2823 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
2824 declaration, do not adjust if the declaration is to be rewritten into
2825 a renaming.
2826
2827 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2828
2829 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
2830 discriminant part.
2831
2832 2009-05-06 Bob Duff <duff@adacore.com>
2833
2834 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
2835 otherwise the compiler would be allowed to optimize away the cleanup
2836 code.
2837
2838 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2839
2840 * gnat_ugn.texi: Fix typo.
2841
2842 2009-05-06 Thomas Quinot <quinot@adacore.com>
2843
2844 * g-debuti.adb: Minor reformatting
2845
2846 * exp_attr.adb: Minor reformatting
2847
2848 2009-05-06 Robert Dewar <dewar@adacore.com>
2849
2850 * sem_aggr.adb: Minor reformatting.
2851
2852 * g-socthi-vms.adb: Minor reformatting
2853
2854 2009-05-06 Bob Duff <duff@adacore.com>
2855
2856 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
2857 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
2858
2859 2009-05-06 Bob Duff <duff@adacore.com>
2860
2861 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
2862 flags.
2863
2864 2009-05-06 Javier Miranda <miranda@adacore.com>
2865
2866 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
2867 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
2868 extension aggregates.
2869 (Resolve_Record_Aggregate): Add support for C++ constructors in
2870 extension aggregates.
2871
2872 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
2873 constructors in extension aggregates.
2874
2875 2009-05-06 Robert Dewar <dewar@adacore.com>
2876
2877 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
2878 clause.
2879
2880 2009-05-06 Thomas Quinot <quinot@adacore.com>
2881
2882 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
2883 packed type, since on OpenVMS, struct msghdr is packed.
2884
2885 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2886
2887 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2888 call returning an unconstrained composite value, create the proper
2889 subtype for it, as is done for object dclarations with unconstrained
2890 nominal subtypes. Perform this transformation regarless of whether
2891 call comes from source.
2892
2893 2009-05-06 Robert Dewar <dewar@adacore.com>
2894
2895 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
2896 records
2897
2898 * gnat_rm.texi:
2899 Add documentation for pragma Implicit_Packing applied to record
2900 types.
2901
2902 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2903
2904 * sem.adb (Walk_Library_Items): Place all with_clauses of an
2905 instantiation on the spec, because late instance bodies may generate
2906 with_clauses for the instance body but are inserted in the instance
2907 spec.
2908
2909 2009-05-06 Emmanuel Briot <briot@adacore.com>
2910
2911 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
2912 support for returning the directory even if it doesn't exist. This is
2913 used for the object directory, since we are always setting it to a
2914 non-null value, and we should set it to an absolute name rather than a
2915 relative name for the sake of external tools that might depend on it.
2916 (Check_Library_Attributes): When Project.Library_Dir is known, check
2917 that the directory exists.
2918
2919 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2920
2921 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
2922 reference is an implicit dereference, do not freeze the designated type
2923 if within a default expression or when preanalyzing a pre/postcondtion.
2924
2925 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2926
2927 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
2928 call returning an unconstrained composite value, create the proper
2929 subtype for it, as is done for object dclarations with unconstrained
2930 nominal subtypes
2931
2932 2009-05-06 Robert Dewar <dewar@adacore.com>
2933
2934 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
2935 improvements
2936
2937 * freeze.adb: Minor reformatting
2938
2939 2009-05-06 Thomas Quinot <quinot@adacore.com>
2940
2941 * sem_ch3.adb (Access_Type_Declaration): An access type whose
2942 designated type is a limited view from a limited with clause (flagged
2943 From_With_Type) is not itself such a limited view.
2944
2945 2009-05-06 Emmanuel Briot <briot@adacore.com>
2946
2947 * prj-nmsc.adb: Remove unused variable.
2948
2949 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
2950 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
2951 makeutl.ads, since not all users of prj.ads need this.
2952
2953 2009-05-06 Javier Miranda <miranda@adacore.com>
2954
2955 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
2956 constructor in case of aggregates whose type is a CPP_Class type.
2957
2958 2009-05-06 Robert Dewar <dewar@adacore.com>
2959
2960 * sem_ch13.adb: Minor comment additions
2961
2962 * osint.adb: Minor reformatting
2963
2964 2009-05-06 Pascal Obry <obry@adacore.com>
2965
2966 * initialize.c: On Windows, keep full pathname to expanded command
2967 line patterns.
2968
2969 2009-05-06 Ed Schonberg <schonberg@adacore.com>
2970
2971 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
2972 an aggregate with box default is of a discriminated private type, do
2973 not build a subaggregate for it.
2974 A proper call to the initialization procedure is generated for it.
2975
2976 2009-05-06 Thomas Quinot <quinot@adacore.com>
2977
2978 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
2979 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
2980 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
2981 use standard array code for Standard.String.
2982 (Exp_Dist): Bump PolyORB s-parint API version to 3.
2983 (Rtsfind): New entities TA_Std_String, Unbounded_String.
2984
2985 2009-05-06 Robert Dewar <dewar@adacore.com>
2986
2987 * g-comlin.ads: Minor reformatting
2988
2989 * xoscons.adb: Minor reformatting
2990
2991 2009-05-06 Gary Dismukes <dismukes@adacore.com>
2992
2993 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
2994 Underlying_Type before retrieving the type definition for gathering
2995 components, to account for the case where the type is private.
2996
2997 2009-05-06 Tristan Gingold <gingold@adacore.com>
2998
2999 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3000
3001 2009-05-06 Thomas Quinot <quinot@adacore.com>
3002
3003 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3004 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3005 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3006 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3007 Windows versions): Fix incorrect base
3008 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3009 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3010 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3011 achieve independance from AF_INET family, and also to allow this
3012 parameter to be retrieved from a Msghdr for the Windows case where
3013 these routines are used to implement C_Sendmsg and C_Recvmsg.
3014
3015 2009-05-06 Bob Duff <duff@adacore.com>
3016
3017 * g-expect.adb, g-expect.ads: Minor reformatting
3018
3019 * sdefault.ads: Minor comment fix
3020
3021 * g-expect-vms.adb: Minor reformatting
3022
3023 * table.ads, table.adb (Append_All): New convenience procedure for
3024 appending a whole array.
3025
3026 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3027 box message. Call Osint.Dump_Source_File_Names to print out the file
3028 list, instead of rummaging around in various data structures.
3029
3030 * debug.adb: New switch -gnatd.n, to print source file names as they
3031 are read.
3032
3033 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3034
3035 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3036 out source file names during a "bug box".
3037 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3038 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3039 If it's not part of the runtimes, store it for later printing by
3040 Dump_Source_File_Names.
3041
3042 2009-05-06 Javier Miranda <miranda@adacore.com>
3043
3044 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3045 documentation and add reference to the GNAT user guide for further
3046 details.
3047
3048 2009-05-06 Javier Miranda <miranda@adacore.com>
3049
3050 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3051 also wrong examples that use extension aggregates.
3052
3053 2009-05-06 Albert Lee <lee@adacore.com>
3054
3055 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3056 of Msg_Iovlen_T for VMS.
3057
3058 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3059
3060 PR ada/38874
3061 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3062
3063 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3064
3065 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3066 box-defaulted operator in an instantiation, when the type of the
3067 operands is not directly visible.
3068
3069 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3070
3071 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3072 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3073 analysis of the ancestor part. Remove prohibition against limited
3074 interpretations of the ancestor expression in the case of Ada 2005.
3075 Revise error message in overloaded case, adding a message to cover
3076 the Ada 2005 case.
3077
3078 2009-04-29 Thomas Quinot <quinot@adacore.com>
3079
3080 * xoscons.adb: Minor reformatting
3081
3082 2009-04-29 Bob Duff <duff@adacore.com>
3083
3084 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3085 attribute_definition_clauses for the following attributes when the
3086 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3087 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3088 missing Read attribute on remote types).
3089
3090 * gnat_ugn.texi: Document the change, and add a stern warning.
3091
3092 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3093
3094 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3095 disabled not just for the current scope, but for the innermost dynamic
3096 scope as well.
3097
3098 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3099
3100 * gcc-interface/Make-lang.in: Update dependencies
3101
3102 2009-04-29 Vincent Celier <celier@adacore.com>
3103
3104 * prj-part.adb: Minor comment update
3105
3106 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3107
3108 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3109 box-initialized records with discriminated subcomponents that are
3110 constrained by discriminants of enclosing components. New subsidiary
3111 procedures Add_Discriminant_Values, Propagate_Discriminants.
3112
3113 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3114
3115 * g-socket.adb: Code clean up.
3116
3117 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3118
3119 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3120 function entity, to cover the case of a parameterless function call
3121 that has not been resolved.
3122
3123 2009-04-29 Robert Dewar <dewar@adacore.com>
3124
3125 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3126 reformatting and comment updates.
3127
3128 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3129
3130 * gnat_ugn.texi: Update some documentation about interfacing with C++
3131 Mention -fkeep-inline-functions.
3132
3133 * gnat_ugn.texi: Minor edits
3134
3135 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3136
3137 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3138 for a defaulted component of an enclosing aggregate, inherit the type
3139 from the component declaration of the enclosing type.
3140
3141 2009-04-29 Albert Lee <lee@adacore.com>
3142
3143 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3144 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3145 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3146 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3147 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3148 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3149 type for the Msg_Iovlen field.
3150
3151 2009-04-29 Vincent Celier <celier@adacore.com>
3152
3153 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3154 Source_File_Index_Table entries for the source, to avoid crash when
3155 reporting an error.
3156
3157 * gnatcmd.adb (Test_If_Relative_Path): Use
3158 Makeutl.Test_If_Relative_Path.
3159
3160 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3161 Including_RTS is True.
3162
3163 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3164 Including_RTS defaulted to False.
3165
3166 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3167 a default value.
3168
3169 2009-04-29 Javier Miranda <miranda@adacore.com>
3170
3171 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3172
3173 2009-04-29 Javier Miranda <miranda@adacore.com>
3174
3175 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3176 associated with dyamically tagged expressions if the expression
3177 initializing a tagged type corresponds with a non default CPP
3178 constructor.
3179 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3180 of limited type objects.
3181
3182 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3183 when a CPP constructor is called in an assignment. Disable also the
3184 error message associated with dyamically tagged expressions if the
3185 exporession initializing a tagged type corresponds with a non default
3186 CPP constructor.
3187
3188 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3189 non-default C++ constructors.
3190
3191 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3192
3193 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3194 non-default constructors.
3195 (Init_Proc): Add support for non-default constructors.
3196
3197 * exp_disp.adb (Set_Default_Constructor): Removed.
3198 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3199 but extending its functionality to handle non-default constructors.
3200
3201 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3202 constructors. Minor code cleanup removing unrequired label and goto
3203 statement.
3204
3205 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3206 constructors.
3207 (Build_Init_Statements): Add support for non-default constructors.
3208 (Expand_N_Object_Declaration): Add support for non-default constructors.
3209 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3210 to Set_CPP_Constructors.
3211
3212 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3213 non-default constructors.
3214 Required to handle its use in build-in-place statements.
3215
3216 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3217 pragma for non-default C++ constructors and the new compiler support
3218 that allows the use of these constructors in record components, limited
3219 aggregates, and extended return statements.
3220
3221 2009-04-29 Vincent Celier <celier@adacore.com>
3222
3223 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3224 project extending an abstract project.
3225
3226 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3227
3228 * targparm.ads: Fix oversight.
3229
3230 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3231
3232 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3233 derivation when necessary, to find the user-subprogram that is actally
3234 being overridden.
3235
3236 2009-04-29 Robert Dewar <dewar@adacore.com>
3237
3238 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3239 components
3240
3241 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3242
3243 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3244 primitive operation, rather than source line of synchronized type, when
3245 building the wrapper for a primitive operation that overrides an
3246 operation inherited from a progenitor, to improve the error message on
3247 duplicate declarations.
3248
3249 * sem_ch3.adb (Process_Full_View): Use new signature of
3250 Build_Wrapper_Spec.
3251
3252 2009-04-29 Robert Dewar <dewar@adacore.com>
3253
3254 * prj-nmsc.ads: Minor reformatting
3255
3256 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3257
3258 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3259 expression on the existing parent If statement.
3260
3261 2009-04-29 Robert Dewar <dewar@adacore.com>
3262
3263 * prj-proc.adb, prj.ads: Minor reformatting
3264
3265 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3266
3267 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3268 existing parent If statement on the newly created one.
3269
3270 2009-04-29 Emmanuel Briot <briot@adacore.com>
3271
3272 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3273 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3274 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3275 (Set_In_Configuration, In_Configuration): Removed.
3276 Replaced by an extra parameter Is_Config_File in several parameter to
3277 avoid global variables to store the state of the parser.
3278
3279 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3280
3281 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3282 with_clauses generated for the same unit through rtsfind, and that
3283 appear in the context of different units.
3284
3285 * rtsfind.adb: New attribute First_Implicit_With, component of the
3286 Unit_Record that stores information about a unit loaded through rtsfind.
3287
3288 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3289
3290 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3291 (other conditions permitting), so that abstract stream subprograms will
3292 be declared for them.
3293
3294 2009-04-29 Bob Duff <duff@adacore.com>
3295
3296 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
3297
3298 * g-expect.ads: Minor comment fixes.
3299
3300 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3301
3302 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
3303 dispatching operation is a body without previous spec, update the list
3304 of primitive operations to ensure that cross-reference information is
3305 up-to-date.
3306
3307 2009-04-29 Albert Lee <lee@adacore.com>
3308
3309 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3310 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3311 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
3312 (GNAT.Sockets.Thin.C_Readv,
3313 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
3314 (GNAT.Sockets.Thin.C_Recvmsg,
3315 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
3316 sendmsg(2).
3317 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
3318 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
3319
3320 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3321
3322 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
3323 operation is a body without previous spec, update the list of
3324 primitive operations to ensure that cross-reference information is
3325 up-to-date.
3326
3327 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
3328 new compilation unit node for the instance declaration, keep the
3329 context items of the original unit on it, so that the context of the
3330 instance body only holds the context inherited from the generic body.
3331
3332 2009-04-29 Bob Duff <duff@adacore.com>
3333
3334 * sem_res.adb: Minor comment fix.
3335
3336 2009-04-29 Thomas Quinot <quinot@adacore.com>
3337
3338 * sem_elim.adb: Minor reformatting
3339
3340 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3341
3342 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
3343 predefined unit, allow arbitrary number of components in static
3344 aggregate, to ensure that the same level of constant folding applies
3345 for Ada 95 and Ada 05 versions of the file.
3346
3347 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3348
3349 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
3350 information: no need for full scope check.
3351 (Eliminate_Error): Do not emit error in a generic context.
3352
3353 2009-04-29 Ed Falis <falis@adacore.com>
3354
3355 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
3356 VxWorks 653 POS does not support rmdir.
3357
3358 2009-04-29 Matteo Bordin <bordin@adacore.com>
3359
3360 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
3361 results are printed.
3362
3363 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3364
3365 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
3366 unused assignment.
3367
3368 2009-04-29 Thomas Quinot <quinot@adacore.com>
3369
3370 * make.adb: Minor reformatting.
3371 Minor code reorganization throughout.
3372
3373 2009-04-29 Matteo Bordin <bordin@adacore.com>
3374
3375 * s-stausa.ads: Changed visibility of type Task_Result: moved to
3376 public part to give application visibility over it.
3377 This is for future improvement and to build a public API on top of it.
3378 Changed record components name of type Task_Result to reflect the new
3379 way of reporting.
3380
3381 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
3382 reporting Stack usage.
3383
3384 * gnat_ugn.texi: Update doc of stack usage report.
3385
3386 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
3387
3388 * Makefile.rtl: Add new run-time files.
3389
3390 2009-04-29 Pascal Obry <obry@adacore.com>
3391
3392 * initialize.c: Do not expand quoted arguments.
3393
3394 2009-04-29 Emmanuel Briot <briot@adacore.com>
3395
3396 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
3397
3398 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
3399 Prj.Ultimate_Extending_Project_Of
3400
3401 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3402
3403 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
3404 Amendment type, add the with_clause for Finalization.List_Controller
3405 only if the current context is a package body.
3406
3407 2009-04-29 Thomas Quinot <quinot@adacore.com>
3408
3409 * sem_ch12.adb: Minor reformatting
3410
3411 * sem_aggr.adb: Minor reformatting
3412
3413 * sem_ch6.adb, sem_cat.ads: Minor reformatting
3414
3415 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
3416
3417 2009-04-29 Quentin Ochem <ochem@adacore.com>
3418
3419 * prj.ads (Source_Id): Now general pointer type.
3420
3421 2009-04-29 Thomas Quinot <quinot@adacore.com>
3422
3423 * exp_ch7.adb, rtsfind.adb: Minor reformatting
3424
3425 * sem_res.adb: Minor reformatting
3426
3427 2009-04-29 Thomas Quinot <quinot@adacore.com>
3428
3429 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
3430 operands is static only if it is a predefined concatenation operator.
3431
3432 * sem_util.adb: Minor reformatting
3433
3434 * sem_ch12.adb (Save_References): When propagating semantic information
3435 from generic copy back to generic template, for the case of an
3436 identifier that has been rewritten to an explicit dereference whose
3437 prefix is either an object name or a parameterless funcion call
3438 denoting a global object or function, properly capture the denoted
3439 global entity: perform the corresponding rewriting in the template,
3440 and point the rewritten identifier to the correct global entity (not
3441 to the associated identifier in the generic copy).
3442
3443 2009-04-29 Robert Dewar <dewar@adacore.com>
3444
3445 * rtsfind.adb, prj-env.adb: Minor reformatting
3446 Minor code reorganization
3447
3448 2009-04-29 Emmanuel Briot <briot@adacore.com>
3449
3450 * make.adb: Fix comment
3451
3452 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
3453 is given as argument, as might happen in gnatmake.
3454
3455 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3456
3457 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
3458 an abstract operation of a progenitor is not properly overridden by an
3459 operation of a derived synchronized type.
3460
3461 2009-04-29 Robert Dewar <dewar@adacore.com>
3462
3463 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
3464 prj-proc.adb: Minor reformatting
3465 Minor code reorganization
3466
3467 2009-04-29 Bob Duff <duff@adacore.com>
3468
3469 * exp_ch7.adb (Build_Final_List): For an access type that designates a
3470 Taft Amendment type, if the access type needs finalization, make sure
3471 the implicit with clause for List_Controller occurs on the package spec.
3472
3473 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
3474 with's created for the pseudo-children of Text_IO and friends. In
3475 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
3476 Ada.Text_IO.Integer_IO both with-ing each other.
3477
3478 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
3479 oddball cases when pragma Extend_System is used.
3480
3481 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
3482 the case where a package spec instantiates a generic whose body with's
3483 this package, so Walk_Library_Items won't complain about cyclic with's.
3484
3485 2009-04-29 Emmanuel Briot <briot@adacore.com>
3486
3487 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
3488 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
3489 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
3490 (Project_Id): now a real pointer to Project_Data, instead of an index
3491 into the Projects_Table. This simplifies the API significantly, avoiding
3492 extra lookups in this table and the need to pass the Project_Tree_Ref
3493 parameter in several cases
3494
3495 2009-04-29 Nicolas Setton <setton@adacore.com>
3496
3497 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
3498 darwin.
3499
3500 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
3501
3502 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
3503 back kludge.
3504
3505 2009-04-24 Robert Dewar <dewar@adacore.com>
3506
3507 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
3508 clean.adb: Minor reformatting.
3509 Minor code reorganization and message improvement.
3510
3511 2009-04-24 Emmanuel Briot <briot@adacore.com>
3512
3513 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
3514 (Alternate_Languages): now implemented as a malloc-ed list rather
3515 than through a table.
3516
3517 2009-04-24 Thomas Quinot <quinot@adacore.com>
3518
3519 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
3520 accurately handle cases such as "lit" & "lit" and
3521 "lit" & static_string_constant
3522
3523 2009-04-24 Emmanuel Briot <briot@adacore.com>
3524
3525 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3526 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
3527 removed. Lists of projects are now implemented via standard malloc
3528 rather than through the table.
3529
3530 2009-04-24 Thomas Quinot <quinot@adacore.com>
3531
3532 * sem_ch12.adb: Minor reformatting
3533
3534 * g-trasym.adb: Minor reformatting
3535
3536 * exp_ch6.adb: Minor reformatting
3537
3538 2009-04-24 Robert Dewar <dewar@adacore.com>
3539
3540 * layout.adb (Layout_Type): For packed array type, copy unset
3541 size/alignment fields from the referenced Packed_Array_Type.
3542
3543 2009-04-24 Bob Duff <duff@adacore.com>
3544
3545 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
3546 longer needed after sem_ch12 changes.
3547
3548 * sem.adb (Walk_Library_Items): Include with's in some debugging
3549 printouts.
3550
3551 2009-04-24 Emmanuel Briot <briot@adacore.com>
3552
3553 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
3554 only ever using the Project field.
3555
3556 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3557
3558 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
3559 Body_Required on the generated compilation node. The new node is linked
3560 to its body, but both share the same file, so we do not set this flag
3561 on the new unit so as not to create a spurious dependency on a
3562 non-existent body in the ali file for the instance.
3563
3564 2009-04-24 Robert Dewar <dewar@adacore.com>
3565
3566 * make.adb: Minor reformatting
3567
3568 2009-04-24 Emmanuel Briot <briot@adacore.com>
3569
3570 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
3571 Add_Source): merge some code between those. In particular change where
3572 file normalization is done to avoid a few extra calls to
3573 Canonicalize_File_Name. This also removes the need for passing
3574 Current_Dir in a number of subprograms.
3575
3576 2009-04-24 Bob Duff <duff@adacore.com>
3577
3578 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
3579 False, assign the correct unit to the Cunit field of the new table
3580 entry. We want the spec unit, not the body unit.
3581
3582 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
3583 interface for these.
3584 (Maybe_Add_With): Check whether we're trying to a with on the current
3585 unit, and avoid creating such directly self-referential with clauses.
3586 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
3587 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
3588 and matches existing comments in the spec.
3589
3590 * sem.adb (Walk_Library_Items): Add various special cases to make the
3591 assertions pass.
3592
3593 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
3594 instead of Parent (N), for uniformity.
3595
3596 2009-04-24 Robert Dewar <dewar@adacore.com>
3597
3598 * errout.ads: Minor reformatting
3599
3600 2009-04-24 Emmanuel Briot <briot@adacore.com>
3601
3602 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
3603 behavior when the project includes sources from multiple languages
3604
3605 2009-04-24 Vincent Celier <celier@adacore.com>
3606
3607 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
3608 is a language other than Ada declared.
3609
3610 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
3611 Imported_First set to True.
3612
3613 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3614
3615 * sem_res.adb: additional optimization to inhibit creation of
3616 redundant transient scopes.
3617
3618 2009-04-24 Bob Duff <duff@adacore.com>
3619
3620 * rtsfind.ads: Minor comment fix
3621
3622 2009-04-24 Emmanuel Briot <briot@adacore.com>
3623
3624 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
3625 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
3626 basically doing the same work (for explicit or implicit sources).
3627 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
3628 role. Rewritten to share some code (testing that all explicit sources
3629 have been found) between ada_only and multi_language modes.
3630
3631 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
3632
3633 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
3634 for CLI imported types.
3635 (Analyze_Pragma): Allow CIL or Java imported functions returning
3636 access-to-subprogram types.
3637
3638 2009-04-24 Emmanuel Briot <briot@adacore.com>
3639
3640 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
3641 (Project_Data.Dir_Path): field removed, since it can be computed
3642 directly from .Directory, and is needed only once when processing the
3643 project is buildgpr.adb or make.adb
3644
3645 2009-04-24 Robert Dewar <dewar@adacore.com>
3646
3647 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
3648 rtsfind.adb: Minor reformatting.
3649 Minor code reorganization
3650
3651 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3652
3653 * mlib-prj.adb: Use friendlier english identifier.
3654
3655 * gnatcmd.adb, make.adb: Use better english identifiers.
3656
3657 2009-04-24 Robert Dewar <dewar@adacore.com>
3658
3659 * clean.adb: Minor reformatting
3660
3661 2009-04-24 Robert Dewar <dewar@adacore.com>
3662
3663 * einfo.adb (OK_To_Rename): New flag
3664
3665 * einfo.ads (OK_To_Rename): New flag
3666
3667 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
3668 OK_To_Rename set.
3669
3670 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
3671
3672 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
3673 OK_To_Rename.
3674
3675 2009-04-24 Emmanuel Briot <briot@adacore.com>
3676
3677 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
3678 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
3679 field removed. This is not a property of the
3680 project, just a boolean used to traverse the project tree, and storing
3681 it in the structure prevents doing multiple traversal in parallel.
3682 (Project_Data.Checked): also removed, since it was playing the same role
3683 as Seen when we had two nested loops, and this is no longer necessary
3684 (For_All_Imported_Projects): removed, since in fact there was already
3685 the equivalent in For_Every_Project_Imported. The latter was rewritten
3686 to use a local hash table instead of Project_Data.Seen
3687 Various loops were rewritten to use For_Every_Project_Imported, thus
3688 removing the need for Project_Data.Seen. This avoids a lot of code
3689 duplication
3690
3691 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3692
3693 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
3694 statements, even though the actual of the call is a concatenation,
3695 because the argument is static, and we want to preserve warning
3696 messages about sequences of code statements that are not marked
3697 volatile.
3698
3699 * sem_warn.adb: remove obsolete comment about warning being obsolete
3700
3701 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
3702 requeued and the delay has expired while within the accept statement
3703 that executes the requeue, do not perform the requeue and indicate that
3704 the timed call has been aborted.
3705
3706 2009-04-24 Emmanuel Briot <briot@adacore.com>
3707
3708 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3709 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
3710 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
3711 since they can be computed from the above.
3712
3713 2009-04-24 Vincent Celier <celier@adacore.com>
3714
3715 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
3716
3717 * prj-env.adb: Move all global variables to the private part of the
3718 project tree data.
3719 Access these new components instead of the global variables no longer
3720 in existence.
3721 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
3722 components that were previously global variables.
3723
3724 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
3725 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
3726 parameter.
3727
3728 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
3729 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
3730
3731 * prj.adb (Initialize): Do not call Prj.Env.Initialize
3732 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
3733 components in the private part of the project tree data.
3734
3735 * prj.ads (Private_Project_Tree_Data): new components moved from
3736 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
3737 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
3738 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
3739
3740 2009-04-24 Vincent Celier <celier@adacore.com>
3741
3742 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
3743
3744 * prj-nmsc.adb (Check_Library): No error for imports by shared library
3745 projects, when --unchecked-shared-lib-imports is used.
3746
3747 2009-04-24 Robert Dewar <dewar@adacore.com>
3748
3749 * sem_ch7.adb: Minor reformatting
3750
3751 2009-04-24 Tristan Gingold <gingold@adacore.com>
3752
3753 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
3754 mach thread id.
3755
3756 2009-04-24 Emmanuel Briot <briot@adacore.com>
3757
3758 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
3759 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
3760 (For_All_Imported_Projects): new procedure
3761 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
3762 above rather than duplicating code.
3763
3764 2009-04-24 Emmanuel Briot <briot@adacore.com>
3765
3766 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3767 (Source_Id, Source_Data): use a real list to store sources rather than
3768 using an external table to store the elements. This makes code more
3769 efficient and more readable.
3770
3771 2009-04-24 Emmanuel Briot <briot@adacore.com>
3772
3773 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
3774 (Source_Iterator): new type.
3775 This removes the need for having the sources on three different
3776 lists at the project tree, project and language level. They are now
3777 on a single list.
3778
3779 2009-04-24 Emmanuel Briot <briot@adacore.com>
3780
3781 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
3782
3783 2009-04-24 Ed Schonberg <schonberg@adacore.com>
3784
3785 * sem_warn.adb: Add comment on obsolete warning
3786
3787 2009-04-24 Arnaud Charlet <charlet@adacore.com>
3788
3789 * s-tassta.adb (Create_Task): Fix violation of locking rule.
3790
3791 2009-04-24 Emmanuel Briot <briot@adacore.com>
3792
3793 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
3794 to Language_Ptr to better reflect its new implementation.
3795 (Project_Data.First_Languages_Processing): renamed to Languages now
3796 that the field with that name is no longer used
3797 (Project_Data.Languages): removed, no longer used, and duplicates
3798 information already available through First_Language_Processing.
3799 (Prj.Language_Index): now an actual pointer, instead of an index into
3800 a table. This makes the list somewhat more obvious, but more importantly
3801 removes the need to pass a pointer to the project_tree_data in a few
3802 places, and makes accessing the attributes of a languages more
3803 efficient.
3804
3805 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3806 Thomas Quinot <quinot@adacore.com>
3807
3808 * fe.h (Set_Identifier_Casing): Add const to second parameter.
3809 * gcc-interface/misc.c (internal_error_function): Make copy of return
3810 from pp_formatted_text before assigning BUFFER to it.
3811 (gnat_init): Likewise for main_input_filename and gnat_argv.
3812 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
3813
3814 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3815
3816 * ttypes.ads (Target_Double_Float_Alignment): New variable.
3817 (Target_Double_Scalar_Alignment): Likewise.
3818 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
3819 (Get_Double_Float_Alignment): New imported function.
3820 (Get_Double_Scalar_Alignment): Likewise.
3821 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
3822 the alignment of "double" floating-point types and "double" or larger
3823 scalar types, as parameterized by Target_Double_Float_Alignment and
3824 Target_Double_Scalar_Alignment respectively.
3825 * gcc-interface/gigi.h (double_float_alignment): Declare.
3826 (double_scalar_alignment): Likewise.
3827 (is_double_float_or_array): Likewise.
3828 (is_double_scalar_or_array): Likewise.
3829 (get_target_double_float_alignment): Likewise.
3830 (get_target_double_scalar_alignment): Likewise.
3831 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
3832 (get_target_strict_alignment): ...this.
3833 (get_target_double_float_alignment): New function.
3834 (get_target_double_scalar_alignment): Likewise.
3835 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3836 Test the presence of an alignment clause for under-aligned integer
3837 types. Take into account specific caps for the alignment of "double"
3838 floating-point types and "double" or larger scalar types, as
3839 parameterized by Target_Double_Float_Alignment and
3840 Target_Double_Scalar_Alignment respectively.
3841 (validate_alignment): Likewise.
3842 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
3843 (gigi): Initialize double_float_alignment and double_scalar_alignment.
3844 * gcc-interface/utils.c (double_float_alignment): New global variable.
3845 (double_scalar_alignment): Likewise.
3846 (is_double_float_or_array): New predicate.
3847 (is_double_scalar_or_array): Likewise.
3848
3849 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3850
3851 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
3852 the conditional expression only if it is common to both arms.
3853
3854 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3855
3856 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
3857 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
3858 arguments to build_allocator.
3859 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
3860 Remove code handling special allocator and assert its uselessness.
3861
3862 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
3863
3864 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
3865 alignment is specified, do not promote that of the component type
3866 beyond it.
3867 <E_Array_Subtype>: Likewise.
3868
3869 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3870
3871 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
3872 * sinfo.ads (Object Declaration): Likewise.
3873 (Assignment Statement): Likewise.
3874 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
3875 Do not force Is_True_Constant to false on the temporary.
3876 (Freeze_Entity): Do not force Is_True_Constant to false on names on
3877 the RHS of object declarations.
3878 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
3879 New case. Return 1 if the object is atomic.
3880 <N_Assignment_Statement>: Likewise.
3881
3882 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3883
3884 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
3885 For packed array types, make the original array type a parallel type
3886 for the modular type and its JM wrapper if the type is bit-packed.
3887 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
3888 record type for packed array types. Remove kludge.
3889
3890 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3891
3892 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
3893 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3894 Use front-end predicates to compute signedness and precision.
3895 <E_String_Literal_Subtype>: Fold range type.
3896 Make sure to set longest_float_type_node to a scalar type.
3897 (elaborate_entity): Use consistent Constraint_Error spelling.
3898 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
3899 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
3900 output for the modulus, if any.
3901 <ENUMERAL_TYPE>: Likewise for the RM size.
3902 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
3903 spelling.
3904 * gcc-interface/utils.c (finish_record_type): Really test the alignment
3905 of BLKmode bit-fields to compute their addressability.
3906 (create_index_type): Adjust comments.
3907 (create_param_decl): Create the biased subtype manually.
3908 * gcc-interface/utils2.c (build_component_ref): Use consistent
3909 Constraint_Error spelling.
3910
3911 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3912
3913 * gcc-interface/cuintp.c: Clean up include directives.
3914 * gcc-interface/targtyps.c: Likewise.
3915 * gcc-interface/decl.c: Likewise.
3916 * gcc-interface/misc.c: Likewise.
3917 * gcc-interface/trans.c: Likewise.
3918 * gcc-interface/utils.c: Likewise.
3919 * gcc-interface/utils2.c: Likewise.
3920 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
3921
3922 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3923
3924 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
3925 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
3926 (SET_DECL_LANG_SPECIFIC): Likewise.
3927 Reorder macros.
3928 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3929 Update comment about use of build_range_type.
3930 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
3931 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
3932 check for other cases of overloading.
3933 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
3934 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
3935 Use size_int in lieu of build_int_cst.
3936 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
3937 build_range_type.
3938
3939 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
3942 type is an enumeral or a boolean type, change it to an integer type
3943 with the same mode and signedness.
3944
3945 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
3946
3947 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
3948 for an external constant whose initializer is not absolute.
3949
3950 2009-04-22 Taras Glek <tglek@mozilla.com>
3951
3952 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
3953 * gcc-interface/trans.c: Likewise.
3954 * gcc-interface/utils.c: Likewise.
3955
3956 2009-04-22 Ed Schonberg <schonberg@adacore.com>
3957
3958 * sem_res.adb: Create block around procedure call when actual is a
3959 concatenation.
3960
3961 2009-04-22 Thomas Quinot <quinot@adacore.com>
3962
3963 * s-soflin.ads: Fix typos
3964
3965 2009-04-22 Vincent Celier <celier@adacore.com>
3966
3967 * prj-env.adb: Minor comment change
3968
3969 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
3970 Get_Name_String with No_File.
3971
3972 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
3973 cannot be created even when not in verbose mode.
3974
3975 2009-04-22 Emmanuel Briot <briot@adacore.com>
3976
3977 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
3978 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
3979 Multi_Language modes, to avoid code duplication.
3980 (Project_Data.Include_Language): Removed.
3981
3982 2009-04-22 Vincent Celier <celier@adacore.com>
3983
3984 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
3985 the temporary file cannot be created, indicating the directory when the
3986 creation was attempted.
3987
3988 2009-04-22 Emmanuel Briot <briot@adacore.com>
3989
3990 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
3991 the language names, not their indices.
3992
3993 2009-04-22 Emmanuel Briot <briot@adacore.com>
3994
3995 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
3996 (Source_Data.Language_Name): Field removed.
3997
3998 2009-04-22 Emmanuel Briot <briot@adacore.com>
3999
4000 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4001 Two fields removed.
4002
4003 2009-04-22 Emmanuel Briot <briot@adacore.com>
4004
4005 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4006 separate_suffix to the same value as the body_suffix.
4007
4008 2009-04-22 Robert Dewar <dewar@adacore.com>
4009
4010 * prj.adb: Minor code reorganization
4011 Code clean up.
4012
4013 * prj-proc.adb: Minor code reorganization, clean up.
4014
4015 * prj-nmsc.adb: Minor reformatting
4016 Minor code reorganization
4017
4018 * gnat_ugn.texi: Add to doc on strict aliasing
4019
4020 2009-04-22 Pascal Obry <obry@adacore.com>
4021
4022 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4023 SpinCount.
4024
4025 * s-tasini.adb: Minor reformatting.
4026
4027 * s-tassta.adb: Minor reformatting.
4028
4029 2009-04-22 Emmanuel Briot <briot@adacore.com>
4030
4031 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4032 smaller subprograms.
4033 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4034 other Check_Naming_Schemes functions that plays a totally different
4035 role.
4036 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4037 extracted from the above. These were partially rewritten to avoid
4038 unnecessary code and temporary variables.
4039 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4040 and Get_Unit (which for now still exist since they contain mode-specific
4041 code)
4042
4043 2009-04-22 Emmanuel Briot <briot@adacore.com>
4044
4045 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4046 Remove duplicated code.
4047 (Canonical_Case_File_Name): new subprogram
4048 (Check_And_Normalize_Unit_Names): new subprogram
4049 (Write_Attr): new subprogram
4050 Better sharing of code
4051 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4052 split Check_Naming and help find duplicated code
4053 (Check_Common): new subprogram, sharing code between ada_only and
4054 multi_language mode.
4055 (Naming_Data.Dot_Repl_Loc): field removed
4056
4057 2009-04-22 Emmanuel Briot <briot@adacore.com>
4058
4059 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4060 Minor refactoring to reduce the size of
4061 Process_Sources_In_Multi_Language_Mode.
4062 Avoid extra copied of Source_Data, which we found in the past could be
4063 quite slow.
4064 (Mark_Excluded_Sources): new subprogram.
4065 (Remove_Locally_Removed_Files_From_Units): merged into the above
4066 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4067 and allow better sharing of code between multi_lang and ada_only modes
4068 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4069
4070 2009-04-22 Emmanuel Briot <briot@adacore.com>
4071
4072 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4073 Removed, since unused.
4074
4075 2009-04-22 Vincent Celier <celier@adacore.com>
4076
4077 * prj-attr.adb: New single project level attribute
4078 Separate_Run_Path_Options.
4079
4080 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4081 attribute Seperate_Run_Path_Options.
4082
4083 * prj.ads: (Project_Configuration): New Boolean component
4084 Separate_Run_Path_Options, defaulted to False.
4085
4086 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4087
4088 2009-04-22 Robert Dewar <dewar@adacore.com>
4089
4090 * sem_type.adb: Minor reformatting
4091
4092 * mlib.adb: Minor reformatting
4093
4094 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4095 syntax error.
4096
4097 2009-04-22 Nicolas Setton <setton@adacore.com>
4098
4099 * link.c: Add flag __gnat_separate_run_path_options.
4100
4101 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4102
4103 * mlib.ads (Separate_Run_Path_Options): Declare.
4104
4105 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4106 switch per directory, rather than one "rpath" switch listing all
4107 directories.
4108
4109 * gnatlink.adb (Process_Binder_File): Likewise.
4110
4111 * make.adb (Gnatmake): Likewise.
4112
4113 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4114
4115 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4116 Add a call to Move_Final_List when the target of the assignment is a
4117 return object that needs finalization and the expression is a
4118 controlled build-in-place function.
4119
4120 2009-04-22 Vincent Celier <celier@adacore.com>
4121
4122 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4123 Including_Libraries set to True.
4124
4125 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4126
4127 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4128 create a unit table entry for the subprogram declaration created for a
4129 child suprogram body that has no separate specification.
4130
4131 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4132 subprogram body, call Make_Child_Decl_Unit.
4133
4134 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4135 table can only be the created specification of a child subprogram body
4136 that is the main unit, which has not been entered in the table yet.
4137
4138 * errout.adb (Output_Messages): Ignore created specification of a
4139 child subprogram body to prevent repeated listing of error messages.
4140
4141 * gnat1drv.adb (gnat1drv): The generated specification for a child
4142 subprogram body does not generate code.
4143
4144 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4145
4146 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4147 since this unit is now part of bootstrap units, so must use Ada 95
4148 syntax only.
4149
4150 2009-04-22 Thomas Quinot <quinot@adacore.com>
4151
4152 * a-tasatt.adb: Minor reformatting
4153
4154 2009-04-22 Bob Duff <duff@adacore.com>
4155
4156 * s-stalib.ads: Remove "with System;" since we're inside System, so
4157 it's unnecessary.
4158
4159 2009-04-22 Vincent Celier <celier@adacore.com>
4160
4161 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4162 the source record, as there may be a dependency file even if no object
4163 file is created.
4164
4165 2009-04-22 Robert Dewar <dewar@adacore.com>
4166
4167 * lib-load.adb: Minor reformatting
4168
4169 * lib-load.ads: Minor reformatting
4170
4171 * sinfo.ads: Minor reformatting
4172
4173 2009-04-22 Bob Duff <duff@adacore.com>
4174
4175 * exp_pakd.adb: Minor comment fixes.
4176
4177 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4178 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4179 include units containing instantiations, as well as units that are
4180 generic instantiations.
4181
4182 * sem.adb: Include dependents and corresponding specs/bodies in the
4183 unit walk.
4184
4185 * gcc-interface/Make-lang.in:
4186 sem now depends on s-bitops, because of the packed array of Booleans.
4187
4188 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4189
4190 * gcc-interface/ada-tree.def: Fix formatting nits.
4191 (REGION_STMT): Delete.
4192 (HANDLER_STMT): Likewise.
4193 * gcc-interface/ada-tree.h: Fix formatting nits.
4194 (IS_STMT): Delete.
4195 (REGION_STMT_BODY): Likewise.
4196 (REGION_STMT_HANDLE): Likewise.
4197 (REGION_STMT_BLOCK): Likewise.
4198 (HANDLER_STMT_ARG): Likewise.
4199 (HANDLER_STMT_LIST): Likewise.
4200 (HANDLER_STMT_BLOCK): Likewise.
4201 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4202 (fp_size_to_prec): Likewise.
4203 (largest_move_alignment): Delete.
4204 (gnat_compute_largest_alignment): Likewise.
4205 Fix minor nits.
4206 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4207 Remove redundant code.
4208 <E_Array_Type>: Remove redundant assert.
4209 <E_Array_Subtype>: Exit early from index computation in pathological
4210 cases.
4211 Rewrite conditional assignment.
4212 (make_type_from_size): Likewise.
4213 * gcc-interface/misc.c (largest_move_alignment): Delete.
4214 (gnat_finish_incomplete_decl): Likewise.
4215 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4216 (asm_out_file): Likewise
4217 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4218 (gnat_dwarf_name): Move around.
4219 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4220 (gigi): Remove call to gnat_compute_largest_alignment.
4221 * utils.c (create_field_decl): Rewrite conditional assignment.
4222 Fix minor nits.
4223
4224 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4225
4226 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4227 on entry. Defer common processing for types. Reorder and clean up.
4228 Compute the equivalent GNAT node and the default size for types only.
4229 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4230 <E_Access_Type>: For an unconstrained designated type, do not pretend
4231 that a dummy type is always made.
4232 <all> Fix nits in comments.
4233 (validate_size): Fix formatting nits and comments.
4234 (set_rm_size): Likewise.
4235 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4236 passed to TARGET_PROMOTE_PROTOTYPES hook.
4237
4238 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4239
4240 * fe.h (Get_External_Name): Declare.
4241 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4242 (concat_name): ...this.
4243 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4244 gnu_entity_name and adjust for above renaming.
4245 <E_Access_Type>: Use create_concat_name to get the name of the various
4246 types associated with unconstrained array types.
4247 (make_aligning_type): Adjust for above renaming.
4248 (maybe_pad_type): Likewise.
4249 (components_to_record): Likewise. Use get_identifier_with_length for
4250 the encoding of the variant.
4251 (get_entity_name): Use get_identifier_with_length.
4252 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4253 Do not fiddle with Name_Buffer.
4254 (concat_id_with_name): Rename to...
4255 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4256 with Name_Buffer.
4257 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4258 above renaming.
4259
4260 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4261
4262 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4263 license notices.
4264
4265 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4266
4267 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4268
4269 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4270
4271 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4272 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4273 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4274 Remove useless support code for packed array types and assert its
4275 uselessness.
4276 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4277 adjust for TYPE_RM_SIZE change.
4278 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4279 of Associated_Node_For_Itype accessor for packed array types.
4280 (make_packable_type): Likewise.
4281 (maybe_pad_type): Likewise.
4282 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4283 TYPE_RM_SIZE change.
4284 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4285 (rm_size): Fix nits in comments. Rework conditional statements.
4286 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4287 change.
4288 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4289 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4290 appropriate function to initialize the size_type_node. Adjust for
4291 TYPE_RM_SIZE change.
4292
4293 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4294
4295 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
4296 for imported subprograms.
4297
4298 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4299
4300 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
4301 constant objects covered by 13.3(19) volatile.
4302
4303 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4304
4305 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
4306 of dummy fat pointer types to the debug back-end.
4307
4308 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4309
4310 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
4311 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
4312 before wrapping it up in the record type. Do not overwrite the
4313 Ada size of the record type with the Esize.
4314
4315 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4316
4317 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
4318 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
4319 if the conversion is on the LHS of an assignment and a no-op.
4320 <all> Do not convert the result to the result type if the Parent
4321 node is such a conversion.
4322
4323 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4324
4325 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
4326 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
4327 of types with unknown discriminants.
4328 (substitute_in_type): Rewrite and restrict to formal substitutions.
4329 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
4330 (update_pointer_to): Update comment.
4331
4332 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4333
4334 * sem_ch8.adb (Use_One_Package): In an instance, if two
4335 potentially_use_visible and non-overloadable homonyms are available
4336 from the actuals of distinct formal packages, retain the current one,
4337 which was visible in the generic, to prevent spurious visibility
4338 errors.
4339 (End_Use_Package): Restore use_visibility when needed.
4340
4341 2009-04-20 Sergey Rybin <rybin@adacore.com>
4342
4343 * gnat_ugn.texi, vms_data.ads: Update doc.
4344
4345 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4346
4347 * gcc-interface/Make-lang.in: Update dependencies
4348
4349 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
4350 Windows.
4351
4352 2009-04-20 Robert Dewar <dewar@adacore.com>
4353
4354 * checks.ads: Fix documentation of range check handling
4355
4356 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4357
4358 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
4359 a redundant use_type clause.
4360
4361 2009-04-20 Robert Dewar <dewar@adacore.com>
4362
4363 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
4364 this attribute can be evaluated at compile time.
4365 (Eval_Attribute, case Range_Length): Same improvement
4366
4367 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
4368
4369 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4370
4371 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
4372 for better handling of null procedures.
4373 (Check_Overriding_Indicator): Do not emit a warning on a missing
4374 overriding indicator on an operator when the type of which the operator
4375 is a primitive is private.
4376
4377 2009-04-20 Bob Duff <duff@adacore.com>
4378
4379 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
4380 debugging output.
4381
4382 2009-04-20 Robert Dewar <dewar@adacore.com>
4383
4384 * sem_attr.adb: Minor reformatting
4385
4386 * gnatcmd.adb: Minor reformatting
4387
4388 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4389
4390 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
4391 overloaded and one interpretation matches the context, label the
4392 operand with the type of first formal.
4393
4394 2009-04-20 Bob Duff <duff@adacore.com>
4395
4396 * debug.ads: Minor comment fix.
4397
4398 * debug.adb: Minor comment fixes.
4399
4400 2009-04-20 Javier Miranda <miranda@adacore.com>
4401
4402 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
4403
4404 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
4405
4406 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
4407 is expanded into a call to Raise_Exception, avoid passing the
4408 exception-name'identity in runtimes in which this argument
4409 is not used.
4410
4411 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
4412
4413 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
4414 generated bindings for cil.
4415
4416 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4417
4418 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
4419 discriminants, collect components from the Underlying_Record_View,
4420 which will be used in the expansion of the aggregate into assignments.
4421
4422 * sem_ch3.adb: Do not label derived type with unknown discriminants as
4423 having a private declaration.
4424
4425 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4426
4427 * exp_util.adb (Expand_Subtype_From_Expr): use the
4428 underlying_record_view when available, to create the proper constrained
4429 subtype for an object of a derived type with unknown discriminants.
4430
4431 2009-04-20 Javier Miranda <miranda@adacore.com>
4432
4433 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
4434 formals that have pragma unreferenced.
4435
4436 2009-04-20 Pascal Obry <obry@adacore.com>
4437
4438 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
4439 Remove all calls to To_Lower_If_Case_Insensitive to preserve
4440 the pathname original casing.
4441
4442 2009-04-20 Robert Dewar <dewar@adacore.com>
4443
4444 * g-trasym.adb: Minor reformatting
4445
4446 * s-os_lib.adb: Minor reformatting
4447
4448 * sem.adb: Minor reformatting
4449 Minor code reorganization
4450
4451 * sem_ch3.adb: Minor reformatting
4452
4453 * sem_ch4.adb: Minor reformatting
4454
4455 * sem_ch8.adb: Minor reformatting
4456
4457 * sem_type.adb: Minor reformatting
4458
4459 2009-04-20 Javier Miranda <miranda@adacore.com>
4460
4461 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
4462 generated by derivations of tagged types use the aliased subprogram a
4463 reference to locate their controlling type.
4464
4465 2009-04-20 Tristan Gingold <gingold@adacore.com>
4466
4467 * g-trasym.adb: Set size of result buffer before calling
4468 convert_address.
4469
4470 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4471
4472 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
4473 to a function returning an array can be interpreted as a call with
4474 defaulted parameters whose result is indexed, take into account the
4475 types of all the indices of the array result type.
4476
4477 2009-04-20 Pascal Obry <obry@adacore.com>
4478
4479 * a-direct.adb, s-os_lib.adb: Minor reformatting.
4480
4481 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4482
4483 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
4484 null exclusion qualifiers for object renaming declarations.
4485
4486 2009-04-20 Nicolas Roche <roche@adacore.com>
4487
4488 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
4489 unsigned long long. So compare local_time and utc_time before computing
4490 the difference.
4491
4492 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4493
4494 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4495 of the Underlying_Record_View before that of the derived type.
4496
4497 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
4498 with unknown discriminants with regard to the parent subtype.
4499
4500 2009-04-20 Bob Duff <duff@adacore.com>
4501
4502 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
4503 that are not included. This is necessary if the main unit is a generic
4504 instantiation.
4505
4506 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
4507 because it doesn't work if -gnatn is used.
4508
4509 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4510
4511 * rtsfind.adb (RTE, RTE_Record_Component): In
4512 Configurable_Run_Time_Mode, do not enable front-end inlining.
4513
4514 2009-04-20 Thomas Quinot <quinot@adacore.com>
4515
4516 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
4517 System.Address_To_Access_Conversions.
4518
4519 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4520
4521 * sem.adb: Guard against ill-formed subunits.
4522
4523 2009-04-20 Bob Duff <duff@adacore.com>
4524
4525 * output.adb (Flush_Buffer): Do not indent blank lines.
4526 (Ignore_Output): New procedure for output suppression.
4527
4528 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4529
4530 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
4531 when it is positive. This avoids a potential constraint error raised
4532 by the conversion to Natural.
4533
4534 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4535
4536 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
4537 involves a target that has a specified address, don't set Forward_OK
4538 and Backward_OK to False if the rhs is an aggregate, since overlap
4539 can't occur.
4540
4541 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4542
4543 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
4544 in an object renaming declaration when the expected type is an
4545 anonymous access type.
4546
4547 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
4548 ambiguity when one interpretation is an anonymous access type and the
4549 other is a named access type, and the context itself is anonymous
4550
4551 2009-04-20 Thomas Quinot <quinot@adacore.com>
4552
4553 * einfo.ads: Minor comment rewording
4554
4555 * sem_aggr.adb: Minor comment rewording
4556
4557 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
4558
4559 2009-04-20 Pascal Obry <obry@adacore.com>
4560
4561 * adaint.c (__gnat_is_readable_file): Check for file existence
4562 when not using ACL (always the case on remote drives).
4563
4564 2009-04-20 Robert Dewar <dewar@adacore.com>
4565
4566 * sinfo.ads: Minor comment fixes
4567
4568 * exp_disp.adb: Minor reformatting
4569
4570 * gnat1drv.adb: Minor reformatting
4571
4572 * output.adb: Minor reformatting
4573
4574 * s-vxwext-kernel.ads: Minor reformatting
4575
4576 * sem.ads: Minor reformatting
4577
4578 * sem.adb: Minor reformatting
4579
4580 * sem_elim.adb: Minor reformatting
4581
4582 * uname.ads: Minor reformatting
4583
4584 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4585
4586 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
4587 a small dope of 4 words to the adjustment to the stack pointer.
4588
4589 2009-04-20 Thomas Quinot <quinot@adacore.com>
4590
4591 * xoscons.adb: generate C header s-oscons.h in
4592 addition to s-oscons.ads.
4593
4594 * socket.c: On VMS, use s-oscons.h.
4595
4596 * sem_ch3.adb: Minor reformatting
4597
4598 * exp_ch9.adb: Minor reformatting
4599
4600 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4601
4602 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
4603 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
4604 (call_to_gnu): Likewise.
4605
4606 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4607
4608 * gcc-interface/trans.c (gigi): Declare the name of the compilation
4609 unit as the first global name at the very beginning.
4610
4611 2009-04-20 Thomas Quinot <quinot@adacore.com>
4612
4613 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
4614 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
4615 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
4616 since HP-UX supports neither inet_aton nor inet_pton (altough the
4617 latter is part of the Single UNIX Specification!).
4618 So reorganize code, and share C implementation based on inet_addr(3)
4619 with VMS (instead of having a VMS specific Ada implementation in
4620 g-socthi-vms.adb).
4621
4622 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4623
4624 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
4625 to return the object file name saved by Set_Object_Output_File_Name.
4626
4627 2009-04-20 Emmanuel Briot <briot@adacore.com>
4628
4629 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
4630 for the standard command line, when argc has been modified since the
4631 start of the application.
4632
4633 2009-04-20 Thomas Quinot <quinot@adacore.com>
4634
4635 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
4636 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
4637
4638 2009-04-20 Bob Duff <duff@adacore.com>
4639
4640 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
4641 pragma Debug.
4642
4643 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4644
4645 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
4646 subprogram as Eliminated when source operation is.
4647 (Expand_N_Protected_Type_Declaration): Generate protected and
4648 unprotected specs for the internal operations, even if the source
4649 operation is eliminated.
4650
4651 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4652
4653 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
4654 Predefined_Primitive_Bodies): Do not create the declarations and bodies
4655 of the primitive subprograms associated with dispatching select
4656 statements when the runtime is in configurable mode.
4657
4658 2009-04-20 Ed Falis <falis@adacore.com>
4659
4660 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
4661
4662 2009-04-20 Thomas Quinot <quinot@adacore.com>
4663
4664 * s-oscons-tmplt.c: Add support for generating a dummy version of
4665 s-oscons.ads providing all possible constants.
4666
4667 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
4668
4669 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
4670 ANSI version (not the UNICODE version) of WSAStringToAddress.
4671
4672 2009-04-20 Pascal Obry <obry@adacore.com>
4673
4674 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
4675 allocated for the security descriptor and make sure all
4676 handles are closed before leaving this procedure.
4677
4678 2009-04-20 Javier Miranda <miranda@adacore.com>
4679
4680 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
4681 (Set_Is_Underlying_Record_View): New subprogram
4682
4683 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
4684 private types with unknown discriminants use the underlying record view
4685 if available.
4686
4687 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
4688 underlying record view in the full view of private types whose parent
4689 has unknown discriminants.
4690 (Build_Derived_Record_Type): Avoid generating the class-wide entity
4691 associated with an underlying record view.
4692 (Derived_Type_Declaration): Avoid deriving parent primitives in
4693 underlying record views.
4694
4695 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
4696 records with unknown discriminants.
4697
4698 * sem_type.adb (Covers): Handle underlying record views.
4699 (Is_Ancestor): Add support for underlying record views.
4700
4701 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
4702 dispatching call if the type of the target object is tagged and has
4703 unknown discriminants.
4704
4705 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
4706 unknown discriminants.
4707
4708 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
4709 tables for internally built underlying record views.
4710
4711 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
4712 empty list of component associations.
4713
4714 2009-04-20 Thomas Quinot <quinot@adacore.com>
4715
4716 * sem_ch10.adb: Minor reformatting
4717
4718 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
4719 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
4720 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
4721 standard inet_pton API (and emulate it on platforms that do not
4722 support it).
4723 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
4724 DECC$INET_ADDR, imported in Ada.
4725 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
4726 implementation provided by GNAT runtime.
4727 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
4728 Windows.
4729
4730 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4731
4732 * gnat_ugn.texi: Add documentation for -fno-ivopts.
4733
4734 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4735
4736 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
4737 with_clause if it is the main unit.
4738
4739 2009-04-20 Thomas Quinot <quinot@adacore.com>
4740
4741 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
4742 (no behaviour change): Use Append instead of Increment_Last followed
4743 by assignment.
4744
4745 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4746
4747 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
4748 declarations of all primitives associated with dispatching asynchronous,
4749 conditional and timed selects when dispaching calls are forbidden and
4750 select statements are not allowed (such as in Ravenscar).
4751 (Predefined_Primitive_Bodies): Ditto for bodies.
4752
4753 * exp_disp.ad (Make_DT): Do not create and populate the
4754 Select_Specific_Data of the dispatch table when dispatching calls are
4755 forbidden and select statements are not allowed (such as in Ravenscar).
4756
4757 2009-04-20 Robert Dewar <dewar@adacore.com>
4758
4759 * a-tifiio.adb: Minor reformatting
4760
4761 2009-04-20 Thomas Quinot <quinot@adacore.com>
4762
4763 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
4764 other C library functions, report *failure* with a zero status, and
4765 success with a non-zero status.
4766
4767 2009-04-20 Bob Duff <duff@adacore.com>
4768
4769 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
4770 (Semantics): After analyzing each unit, Append it to the
4771 Comp_Unit_List, if appropriate.
4772
4773 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
4774 purposes.
4775 (Gnat1drv): Correct comment regarding Back_End_Mode.
4776
4777 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4778
4779 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
4780
4781 2009-04-20 Thomas Quinot <quinot@adacore.com>
4782
4783 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4784 output.adb, output.ads, s-taprop-hpux-dce.adb,
4785 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
4786 reformatting.
4787
4788 2009-04-20 Thomas Quinot <quinot@adacore.com>
4789
4790 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
4791 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
4792 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
4793 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
4794 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
4795 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
4796
4797 * debug.adb: Fix typo
4798
4799 * gnat_rm.texi: Minor doc fix.
4800
4801 * sem_ch7.adb, freeze.adb: Minor reformatting
4802
4803 2009-04-20 Thomas Quinot <quinot@adacore.com>
4804
4805 * g-socket.ads: Add new constants:
4806 Loopback_Inet_Addr
4807 Unspecified_Group_Inet_Addr
4808 All_Hosts_Group_Inet_Addr
4809 All_Routers_Group_Inet_Addr
4810
4811 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
4812 ERANGE (Result too large).
4813 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
4814 propagation of errno to caller.
4815
4816 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
4817
4818 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
4819 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
4820 Leap_Second_Times.
4821
4822 2009-04-20 Gary Dismukes <dismukes@adacore.com>
4823
4824 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
4825 checking for references to eliminated subprograms that should be
4826 flagged.
4827 (Eliminate_Error_Message): Update comment to say "references" rather
4828 than "calls" (since attribute cases are handled here as well).
4829
4830 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
4831 checking for references to eliminated subprograms that should be
4832 flagged. Add with and use of Sem and Sem_Util.
4833
4834 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
4835 Add with and use of Sem_Elim.
4836
4837 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
4838 applied to eliminated subprograms.
4839 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
4840 eliminated subprograms.
4841 Add with and use of Sem_Elim.
4842
4843 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
4844 to eliminated subprograms, now handled during Resolve_Call.
4845 Remove with and use of Sem_Elim.
4846
4847 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
4848 testing Is_Eliminated, for proper handling of primitive derived from
4849 eliminated subprograms.
4850
4851 2009-04-20 Vincent Celier <celier@adacore.com>
4852
4853 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
4854 has been declared (Library_GCC or Linker'Driver), for the driver name.
4855
4856 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
4857 Linker'Driver is, use Linker'Driver as the shared library linker.
4858 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
4859 Library_GCC is declared.
4860 (Check_Library_Attributes): Set up the shared linker driver: either
4861 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
4862 declared.
4863
4864 2009-04-20 Thomas Quinot <quinot@adacore.com>
4865
4866 * g-socket.ads (Send_Socket): Fix misleading comment.
4867
4868 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4869
4870 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
4871 ASIS mode.
4872
4873 2009-04-20 Geert Bosch <bosch@adacore.com>
4874
4875 * a-tifiio.adb (Put): Avoid generating too many digits for certain
4876 fixed types with smalls that are neither integer or the reciprocal
4877 of an integer.
4878
4879 2009-04-20 Bob Duff <duff@adacore.com>
4880
4881 * uname.ads: Minor comment fix.
4882
4883 * types.ads: Minor comment fix.
4884
4885 2009-04-20 Pascal Obry <obry@adacore.com>
4886
4887 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
4888 avoid warning. At the same time fix a memory leak.
4889
4890 * osint.adb (Get_Libraries_From_Registry): Properly free memory
4891 returned by the above routine.
4892
4893 2009-04-20 Robert Dewar <dewar@adacore.com>
4894
4895 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
4896 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
4897 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
4898 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
4899
4900 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
4901
4902 2009-04-20 Pascal Obry <obry@adacore.com>
4903
4904 * initialize.c (__gnat_initialize): Add braces to kill warning.
4905
4906 * adaint.c: Minor reformatting, remove trailing spaces.
4907
4908 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4909
4910 * gcc-interface/Make-lang.in: Update dependencies.
4911
4912 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4913
4914 * adaint.h (__gnat_lwp_self): Declare on Linux.
4915
4916 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
4917
4918 2009-04-20 Robert Dewar <dewar@adacore.com>
4919
4920 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
4921 front-end part of -fpreserve-control-flow switch.
4922
4923 2009-04-20 Bob Duff <duff@adacore.com>
4924
4925 * rtsfind.adb: Minor comment fix
4926
4927 2009-04-20 Robert Dewar <dewar@adacore.com>
4928
4929 * exp_aggr.adb: Minor reformatting
4930 Minor code reorganization (use Nkind_In)
4931
4932 * g-socket.adb: Minor reformatting
4933
4934 * g-socket.ads: Minor comment fix
4935
4936 * s-auxdec.ads: Minor comment and organization update.
4937
4938 * s-auxdec-vms_64.ads: Minor comment and organization update.
4939
4940 * sem_ch10.adb: Minor addition of ??? comment
4941
4942 * sem_disp.adb: Minor reformatting
4943
4944 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4945
4946 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
4947 list a caller of an inlined subprogram, if the caller itself is not
4948 called.
4949
4950 2009-04-20 Pascal Obry <obry@adacore.com>
4951
4952 * adaint.c: Disable use of ACL on network drives.
4953
4954 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4955
4956 * gnat_ugn.texi: Add examples.
4957
4958 2009-04-20 Thomas Quinot <quinot@adacore.com>
4959
4960 * g-socket.ads (Abort_Selector): Clarify documentation.
4961
4962 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4963
4964 * opt.ads (Inspector_Mode): Update documentation of this flag.
4965
4966 2009-04-20 Thomas Quinot <quinot@adacore.com>
4967
4968 * g-socket.ads: Minor reformatting
4969
4970 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
4971 consider S_resolvLib error codes since we only use the hostLib wrappers.
4972
4973 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4974
4975 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
4976 of the Underlying_Record_View after that of the derived type.
4977
4978 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4979
4980 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
4981 in inspector mode.
4982
4983 2009-04-20 Javier Miranda <miranda@adacore.com>
4984
4985 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
4986
4987 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
4988 documentation.
4989
4990 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
4991
4992 * sem_disp.adb
4993 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
4994 in internally built overriding subprograms.
4995
4996 2009-04-20 Doug Rupp <rupp@adacore.com>
4997
4998 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
4999
5000 * s-auxdec.ads: Likewise
5001
5002 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5003
5004 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5005 type by an interface.
5006
5007 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5008 minimze difference in expanded tree when compiled as spec of the main
5009 unit, or as a spec in the context of another unit.
5010
5011 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5012
5013 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5014 (localtime_tzoff): This routine no longer accepts an actual of type
5015 tm_Pointer.
5016 (UTC_Time_Offset): Remove local variable Secs_TM.
5017
5018 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5019 actual of type struct tm*. Add local variable of type struct tm for all
5020 targets that provide localtime_r and need to invoke it.
5021
5022 2009-04-20 Thomas Quinot <quinot@adacore.com>
5023
5024 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5025 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5026 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5027
5028 2009-04-20 Robert Dewar <dewar@adacore.com>
5029
5030 * sem_ch3.adb: Minor reformatting
5031
5032 * lib-load.adb: Minor reformatting
5033
5034 * sem_ch4.adb: Minor reformatting
5035
5036 2009-04-20 Robert Dewar <dewar@adacore.com>
5037
5038 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5039 (equal values => False).
5040
5041 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5042
5043 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5044 to null procedures can be inlined unconditionally.
5045
5046 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5047
5048 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5049 non-addressable parameter passed by reference, do not convert the
5050 actual if its type is already the nominal type, unless it is of
5051 self-referential size.
5052
5053 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5054
5055 * gnat_ugn.texi: Fix typos.
5056
5057 2009-04-20 Robert Dewar <dewar@adacore.com>
5058
5059 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5060 Validate_Unchecked_Warnings to suppress warnings about size or
5061 alignment or extra bits if either type involved has pragma Warnings
5062 (Off) set for the type entity.
5063
5064 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5065
5066 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5067 a builtin type and give it a name.
5068
5069 2009-04-17 Diego Novillo <dnovillo@google.com>
5070
5071 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5072 (LANG_HOOKS_EXPAND_EXPR): Remove.
5073
5074 2009-04-17 Robert Dewar <dewar@adacore.com>
5075
5076 * sem_ch3.adb: Minor reformatting
5077
5078 2009-04-17 Pascal Obry <obry@adacore.com>
5079
5080 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5081
5082 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5083
5084 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5085 illegal constraints on type derived from formal discrete types.
5086
5087 2009-04-17 Thomas Quinot <quinot@adacore.com>
5088
5089 PR ada/35953
5090
5091 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5092 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5093 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5094 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5095 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5096 Replace calls to send(2) with equivalent sendto(2) calls.
5097 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5098 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5099 report an error in that case. Factor code common to the two versions
5100 (datagram and stream) in common routine Stream_Write.
5101
5102 2009-04-17 Robert Dewar <dewar@adacore.com>
5103
5104 * exp_disp.adb: Minor reformatting
5105 Minor code reorganization (use Nkind_In)
5106
5107 * prepcomp.adb: Minor reformatting
5108
5109 * sem_ch3.adb: Minor reformatting
5110
5111 * sem_res.adb: Minor comment addition
5112
5113 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5114 for address clause
5115
5116 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5117 setting Is_Referenced
5118
5119 * types.ads: Minor reformatting
5120
5121 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5122
5123 * gnat_ugn.texi: Initial documentation on binding generator.
5124
5125 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5126
5127 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5128 type extensions whose parent is a type with unknown discriminants.
5129
5130 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5131 aggregate has unknown discriminants, use the Underlying_Record_View to
5132 obtain the discriminants of the ancestor part.
5133
5134 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5135 Underlying_Record_Views share the dispatching information of the
5136 original record extension.
5137
5138 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5139 discriminants, propagate dispach table information to the
5140 Underlying_Record_View.
5141
5142 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5143 discriminants and declaration is not a completion, generate
5144 Underlying_Record_View to provide proper discriminant information to
5145 the front-end and to gigi.
5146
5147 2009-04-17 Robert Dewar <dewar@adacore.com>
5148
5149 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5150 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5151 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5152 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5153 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5154 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5155 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5156 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5157 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5158 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5159 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5160 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5161 s-conca3.ads: Remove unneeded pragma Warnings
5162
5163 2009-04-17 Robert Dewar <dewar@adacore.com>
5164
5165 * g-moreex.adb: Add comments.
5166
5167 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5168
5169 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5170 Warnings (Off)
5171
5172 * prepcomp.adb: Add ??? comment
5173
5174 * a-tasatt.adb: Minor reformatting
5175
5176 * g-trasym-vms-alpha.adb: Add ??? comment
5177
5178 * g-trasym-vms-ia64.adb: Add ??? comment
5179
5180 * xoscons.adb: Minor reformatting
5181
5182 * s-tassta.adb: Minor reformatting
5183
5184 * s-scaval.adb: Add ??? comment
5185
5186 * stand.ads: Minor code clean up (remove junk with of Namet)
5187
5188 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5189 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5190 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5191 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5192 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5193 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5194 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5195 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5196 Warnings off pragmas.
5197
5198 2009-04-17 Pascal Obry <obry@adacore.com>
5199
5200 * initialize.c: Fix test for reallocating the arguments array.
5201
5202 2009-04-17 Geert Bosch <bosch@adacore.com>
5203
5204 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5205 conversion truncate only for decimal fixed point types.
5206
5207 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5208
5209 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5210 reinitialized.
5211
5212 2009-04-17 Robert Dewar <dewar@adacore.com>
5213
5214 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5215 Backwards_OK if either operand has an address clause.
5216
5217 2009-04-17 Pascal Obry <obry@adacore.com>
5218
5219 * initialize.c: Code clean up, use realloc.
5220
5221 2009-04-17 Pascal Obry <obry@adacore.com>
5222
5223 * initialize.c: Do not get Unicode command line if Unicode support not
5224 activated.
5225 Add support for wildcard expansion for Unicode parameters on Win32.
5226
5227 * mingw32.h: Add missing macros when Unicode support not activated.
5228
5229 2009-04-17 Javier Miranda <miranda@adacore.com>
5230
5231 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5232 avoid generating code that references the Current_Master
5233 when compiling without tasks.
5234
5235 2009-04-17 Vincent Celier <celier@adacore.com>
5236
5237 * prj-attr.adb: New project level attribute Target
5238
5239 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5240 attribute Target
5241
5242 * prj.ads (Project_Configuration): New component Target
5243
5244 2009-04-17 Thomas Quinot <quinot@adacore.com>
5245
5246 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5247 case for the case of an aggregate component, the attach call for the
5248 result is actually needed.
5249
5250 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5251 an array aggregate must be disabled if the component type requires
5252 controlled actions.
5253
5254 * exp_ch3.adb: Minor reformatting
5255
5256 2009-04-17 Bob Duff <duff@adacore.com>
5257
5258 * output.ads (Indent,Outdent): New procedures for indenting the output.
5259 (Write_Char): Correct comment -- LF _is_ allowed.
5260
5261 * output.adb (Indent,Outdent): New procedures for indenting the output.
5262 Keep track of the indentation level, and make sure it doesn't get too
5263 high.
5264 (Flush_Buffer): Insert spaces at the beginning of each line, if
5265 indentation level is nonzero.
5266 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5267 indentation level.
5268 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5269 "Next_Col := 1;". Flush_Buffer does that.
5270
5271 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5272 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5273 relevant analysis routines, and calls Indent/Outdent to make the
5274 indentation reflect the nesting level. Add "helper" routines, since
5275 otherwise lots of "return;" statements would skip the debugging output.
5276
5277 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5278
5279 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5280 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5281 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5282
5283 2009-04-17 Thomas Quinot <quinot@adacore.com>
5284
5285 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5286
5287 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5288
5289 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5290 clause in a unit that is a package body or a subunit, when the previous
5291 clause appears in a spec or a parent.
5292
5293 2009-04-17 Thomas Quinot <quinot@adacore.com>
5294
5295 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
5296
5297 * exp_ch7.adb: Minor reformatting
5298
5299 2009-04-17 Bob Duff <duff@adacore.com>
5300
5301 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
5302 allocator, check that the expression of the qualified expression obeys
5303 the constraints of the subtype of the qualified expression.
5304
5305 2009-04-17 Thomas Quinot <quinot@adacore.com>
5306
5307 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
5308
5309 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5310
5311 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
5312 aggregate, using context imposed by subtype mark in allocator.
5313
5314 2009-04-17 Pascal Obry <obry@adacore.com>
5315
5316 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
5317
5318 2009-04-17 Nicolas Roche <roche@adacore.com>
5319
5320 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
5321 argument length.
5322
5323 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5324
5325 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
5326 cover both calls and attribute references ("call" => "reference").
5327
5328 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5329
5330 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
5331 type for which Storage_Size is set to 0 is legal in a pure unit.
5332
5333 2009-04-17 Thomas Quinot <quinot@adacore.com>
5334
5335 * exp_ch7.adb: Minor reformatting
5336
5337 2009-04-17 Robert Dewar <dewar@adacore.com>
5338
5339 * restrict.adb (Check_Restriction_No_Dependence): Don't check
5340 restriction if outside main extended source unit.
5341
5342 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
5343 for parents of child units as well as the child unit itself.
5344
5345 2009-04-17 Bob Duff <duff@adacore.com>
5346
5347 * checks.ads: Minor comment fix
5348
5349 * exp_aggr.ads: Minor comment fix
5350
5351 2009-04-17 Nicolas Roche <roche@adacore.com>
5352
5353 * adaint.c: Improve cross compiler detection and handling.
5354
5355 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5356
5357 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
5358
5359 2009-04-17 Pascal Obry <obry@adacore.com>
5360
5361 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
5362 CurrentCodePage.
5363
5364 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
5365 value when no encoding form paramter is set on Text_IO services.
5366
5367 * adaint.c: CurrentCodePage new variable on Windows.
5368 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5369 ones.
5370
5371 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
5372 ones.
5373
5374 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
5375 environment variable value. Default is UTF-8.
5376
5377 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
5378 fopen and freopen encoding parameter is now set to Unspecified.
5379 The default value is in this case UTF-8 (as it was before) but
5380 use the new macros that convert to/from the code page set
5381 at runtime (CurrentCodePage).
5382
5383 * s-fileio.adb: When no encoding specified use Unspecified value.
5384
5385 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5386
5387 * atree.adb, atree.ads: Remove dead code.
5388
5389 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5390
5391 * gcc-interface/Make-lang.in: Update dependencies.
5392
5393 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5394
5395 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
5396 illegal uses of incomplete types in formal parts and return types.
5397
5398 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
5399 access to subprograms.
5400
5401 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
5402 Taft-amendment types as the return type of an access_to_function type.
5403
5404 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5405 type for access_to_subprograms. The check is performed on package exit.
5406
5407 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5408
5409 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
5410
5411 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
5412
5413 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
5414
5415 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
5416 semantic units, because the handling of itypes in the copied tree
5417 requires semantic information that does not belong in atree.
5418
5419 2009-04-17 Robert Dewar <dewar@adacore.com>
5420
5421 * par-ch6.adb: Minor reformatting
5422
5423 * prj.adb: Minor reformatting
5424
5425 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5426
5427 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
5428 on protected subprogram bodies, so exclude the case where Pf_Flags is
5429 Pf_Decl_Pbod from the error check.
5430
5431 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
5432 indicators on subprograms in protected bodies, and proceed with parsing
5433 the subprogram.
5434
5435 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
5436 subprograms from the check for primitiveness on subprograms with
5437 overriding indicators.
5438 (Check_Overriding_Indicator): Include protected subprograms in the
5439 style check for missing overriding indicators.
5440
5441 2009-04-17 Tristan Gingold <gingold@adacore.com>
5442
5443 * init.c: Fix stack checking for x86 Darwin.
5444
5445 2009-04-17 Vincent Celier <celier@adacore.com>
5446
5447 * prj-attr.adb: New project level attribute Object_File_Suffix
5448 (<language>).
5449
5450 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
5451 object file name
5452 (Process_Compiler): Process attribute Object_File_Suffix
5453
5454 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
5455 platform suffix, when specified.
5456
5457 * prj.ads (Language_Config): New component Object_File_Suffix,
5458 defaulted to No_Name.
5459 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
5460
5461 * snames.ads-tmpl: New standard name Object_File_Suffix
5462
5463 2009-04-17 Robert Dewar <dewar@adacore.com>
5464
5465 * gnat_rm.texi: Add documentation about No_Streams restriction
5466
5467 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
5468 attributes when checking No_Streams restriction.
5469
5470 2009-04-17 Thomas Quinot <quinot@adacore.com>
5471
5472 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
5473
5474 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
5475 missing calls to RE_Request_Destroy to deallocate request objects after
5476 use.
5477
5478 2009-04-17 Nicolas Setton <setton@adacore.com>
5479
5480 * link.c: Fix support for passing a response file under Darwin.
5481
5482 2009-04-17 Emmanuel Briot <briot@adacore.com>
5483
5484 * prj.adb (Free): new subprogram.
5485
5486 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5487
5488 * sem_ch3.adb: additional initialization on incomplete subtypes.
5489
5490 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
5491 part and one of the formals is an incomplete tagged type, attach to
5492 list of private dependends of the type for later validation.
5493
5494 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
5495 primitive operations of a Taft-amendmment type.
5496
5497 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
5498 type. The check is performed on package exit, possibly after the
5499 subprogram is frozen.
5500
5501 2009-04-17 Vincent Celier <celier@adacore.com>
5502
5503 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
5504 before looking for source directories, but make sure that there are nil
5505 if they are not explicitely declared and there is explicitely no
5506 sources in the project.
5507
5508 2009-04-17 Pascal Obry <obry@adacore.com>
5509
5510 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
5511
5512 * init.c: Fix minor typo and style fix.
5513
5514 2009-04-17 Robert Dewar <dewar@adacore.com>
5515
5516 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
5517
5518 * sem_attr.adb (Analyze_Attribute, case Address): Use
5519 PE_Address_Of_Intrinsic.
5520
5521 * types.ads: Add PE_Address_Of_Intrinsic
5522
5523 * types.h: Add PE_Address_Of_Intrinsic
5524
5525 2009-04-17 Nicolas Setton <setton@adacore.com>
5526
5527 * gcc-interface/Makefile.in: Under darwin, build shared libraries
5528 with install_name starting with "@rpath/".
5529
5530 2009-04-17 Nicolas Setton <setton@adacore.com>
5531
5532 * link.c: Add darwin section
5533
5534 2009-04-16 Robert Dewar <dewar@adacore.com>
5535
5536 * g-pehage.adb: Minor reformatting
5537
5538 * sem_ch12.adb: Minor reformatting
5539
5540 * exp_dist.adb: Minor reformatting
5541
5542 * bindgen.adb: Minor style fixes.
5543
5544 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5545
5546 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
5547 indexed components to the case where the prefix is a static string
5548 literal.
5549
5550 2009-04-16 Javier Miranda <miranda@adacore.com>
5551
5552 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
5553 objects avoid any further expansion of the expression initializing the
5554 object.
5555
5556 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5557
5558 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
5559 that hides an outer homograph, make that homograph invisible when
5560 analyzing the actuals, to to prevent illegal direct visibility on it.
5561
5562 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5563
5564 * g-pehage.adb (Initialize): Fix off-by-one error.
5565
5566 2009-04-16 Tristan Gingold <gingold@adacore.com>
5567
5568 * init.c: Detect real stack overflow on Darwin.
5569
5570 * system-darwin-x86.ads: Use stack probing on darwin x86.
5571
5572 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5573
5574 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
5575 take the address of an intrinsic subprogram.
5576
5577 2009-04-16 Arnaud Charlet <charlet@adacore.com>
5578
5579 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
5580 for the targets where GNAT.Traceback.Symbolic is not supported.
5581
5582 2009-04-16 Vincent Celier <celier@adacore.com>
5583
5584 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
5585
5586 * g-trasym.ads: Update comments.
5587
5588 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5589
5590 * tracebak.c (STOP_FRAME): Verify validity of the current address
5591 before dereferencing.
5592
5593 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5594
5595 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
5596 the original location of the index expressions and the index subtypes,
5597 to prevent spurious out-of-scope references in gigi.
5598
5599 2009-04-16 Tristan Gingold <gingold@adacore.com>
5600
5601 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
5602 Add support for stack checking on darwin.
5603
5604 2009-04-16 Vincent Celier <celier@adacore.com>
5605
5606 * prj-attr.adb: New attribute Runtime_Source_Dir
5607
5608 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
5609 attribute Runtime_Source_Dir.
5610 (Check_Naming_Schemes): Give default values to out parameters to avoid
5611 invalid data.
5612
5613 * prj.ads (Language_Config): New component Runtime_Source_Dir
5614
5615 * snames.ads-tmpl: New standard name Runtime_Source_Dir
5616
5617 2009-04-16 Pascal Obry <obry@adacore.com>
5618
5619 * adaint.h, adaint.c (__gnat_rmdir): New routine.
5620 Simple wrapper routines used to convert to proper encoding on
5621 Windows.
5622
5623 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
5624
5625 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
5626 twice.
5627
5628 2009-04-16 Pascal Obry <obry@adacore.com>
5629
5630 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
5631
5632 2009-04-16 Thomas Quinot <quinot@adacore.com>
5633
5634 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
5635 integrated preprocessor.
5636
5637 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
5638 (Initialize): Split into two subprograms, Initialize (to be called
5639 prior to compiler command line processing) and Setup_Hooks (to be called
5640 later on when the first source file is loaded).
5641
5642 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
5643 Add call to Prep.Initialize.
5644
5645 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
5646 to Prep.Setup_Hooks.
5647
5648 2009-04-16 Pascal Obry <obry@adacore.com>
5649
5650 * adaint.h, adaint.c (__gnat_chdir): New routine.
5651 Simple wrapper routines used to convert to proper encoding on
5652 Windows.
5653
5654 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
5655
5656 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
5657
5658 2009-04-16 Quentin Ochem <ochem@adacore.com>
5659
5660 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
5661 of Source.Init.
5662
5663 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5664
5665 * a-convec.ads (Is_Empty): Mark inline.
5666
5667 2009-04-16 Nicolas Roche <roche@adacore.com>
5668
5669 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
5670
5671 2009-04-16 Thomas Quinot <quinot@adacore.com>
5672
5673 * prepcomp.adb: Minor reformatting
5674
5675 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
5676
5677 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
5678 Access_Subprogram types can also be imported.
5679 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
5680 names.
5681
5682 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5683
5684 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
5685 preserve homonym chain when the declaration is rewritten into a
5686 renaming declaration, in order to preserve visibility structure.
5687
5688 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
5689
5690 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
5691 taken into account for VM targets.
5692
5693 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
5694
5695 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
5696 Year_Week_In_Year.
5697 (Year_Week_In_Year): New routine which contains the original code from
5698 Week_In_Year. Add the missing special case for January 1st falling on
5699 a Monday.
5700
5701 2009-04-16 Thomas Quinot <quinot@adacore.com>
5702
5703 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
5704 actual type, use the base type to build the To_Any function.
5705 (Build_From_Any_Function): Remove junk, useless subtype conversion.
5706
5707 2009-04-16 Thomas Quinot <quinot@adacore.com>
5708
5709 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
5710 restrict.adb: Minor code reorganization (use
5711 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
5712
5713 2009-04-16 Bob Duff <duff@adacore.com>
5714
5715 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
5716 unused.
5717
5718 2009-04-16 Thomas Quinot <quinot@adacore.com>
5719
5720 * sem_ch4.adb: Minor reformatting
5721
5722 * adaint.c: Remove junk duplicated code.
5723
5724 * sem_ch3.adb: Minor reformatting
5725
5726 * exp_dist.adb: Minor comment rewording
5727
5728 2009-04-16 Robert Dewar <dewar@adacore.com>
5729
5730 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
5731 used together.
5732
5733 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5734
5735 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
5736 usable before calling Add_One_Interp, to resolve spurious ambiguities.
5737
5738 2009-04-16 Robert Dewar <dewar@adacore.com>
5739
5740 * Make-lang.in: Add entries for s-conca?.o
5741
5742 * Makefile.rtl: Add entries for s-conca?
5743
5744 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
5745 of concatenation expansion
5746
5747 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
5748 string cases instead of expanding assignments inline.
5749
5750 * opt.ads (Optimize_Size): New flag
5751
5752 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
5753 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
5754 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
5755 s-conca9.adb, s-conca9.ads: New file.
5756
5757 2009-04-16 Robert Dewar <dewar@adacore.com>
5758
5759 * exp_ch6.adb: Add comments
5760
5761 * rtsfind.ads: Add entries for s-conca? routines
5762
5763 2009-04-16 Arnaud Charlet <charlet@adacore.com>
5764
5765 * gcc-interface/Make-lang.in: Update dependencies.
5766
5767 * gcc-interface/Makefile.in: Update translation for vms.
5768
5769 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5770
5771 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
5772 and made global, to be used when installing parents of a child
5773 instance, to provide mappings for entities declared in formal packages
5774 of ancestor units. Now called from Install_Formal_Packages.
5775
5776 2009-04-16 Doug Rupp <rupp@adacore.com>
5777
5778 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
5779 notation for clarity.
5780
5781 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5782 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
5783 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
5784 (Initialize): Initialize Known_Tasks with Environment task.
5785
5786 * s-taskin.ads (Task_States): Move new states to end for the sake of
5787 GDB compatibility.
5788
5789 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
5790
5791 2009-04-16 Ed Schonberg <schonberg@adacore.com>
5792
5793 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
5794 operation has an inline pragma, propagate the flag to the internal
5795 unprotected subprogram.
5796
5797 2009-04-16 Doug Rupp <rupp@adacore.com>
5798
5799 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
5800 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
5801 s-taprop-hpux-dce.adb, s-taprop-posix.adb
5802 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
5803
5804 * s-taprop-vms.adb (Enter_Task): Likewise.
5805 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
5806
5807 * s-tassta.adb (Activate_Tasks): After task creation set state to
5808 Activating, vice Runnable. Initialize Known_Tasks, moved here from
5809 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
5810 Set state to Runnable after above.
5811 (Task_Wrapper): Set Debug_Event_Run. In exception block set
5812 Debug_Event_Terminated.
5813
5814 * s-taskin.ads (Task_States): Add new states Activiting and
5815 Activator_Delay_Sleep.
5816 (Bit_Array, Debug_Event_Array): New types.
5817 (Global_Task_Debug_Event_Set: New flag.
5818 (Common_ATCB): New field Debug_Events.
5819
5820 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
5821
5822 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
5823 Activator_Sleep.
5824
5825 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
5826 Activating and when Acceptor_Delay_Sleep.
5827
5828 * s-tasdeb.ads: Add constants for Debug_Events.
5829 (Debug_Event_Kind_Type): New subtype.
5830 (Signal_Debug_Event): New subprogram.
5831
5832 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
5833
5834 2009-04-16 Thomas Quinot <quinot@adacore.com>
5835
5836 * sem_elim.adb: Minor reformatting
5837
5838 * freeze.adb: Minor reformatting
5839
5840 * exp_ch4.adb: Minor reformatting
5841
5842 2009-04-16 Emmanuel Briot <briot@adacore.com>
5843
5844 * prj-nmsc.adb (Path_Name_Of): fix memory leak
5845
5846 2009-04-16 Robert Dewar <dewar@adacore.com>
5847
5848 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
5849
5850 2009-04-16 Vincent Celier <celier@adacore.com>
5851
5852 * fmap.adb (Initialize): Show the current line when the mapping file
5853 is detected as "incorrectly formatted".
5854
5855 2009-04-16 Robert Dewar <dewar@adacore.com>
5856
5857 * sem_ch12.adb: Minor reformatting
5858
5859 * sem_ch5.adb: Minor comment addition
5860
5861 * sem_util.adb: Minor reformatting
5862
5863 * sinput-p.adb: Minor reformatting
5864 Add missing pragma Warnings (On)
5865
5866 2009-04-16 Ed Falis <falis@adacore.com>
5867
5868 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
5869
5870 2009-04-16 Vincent Celier <celier@adacore.com>
5871
5872 * ali-util.adb: Minor comment spelling error fix
5873
5874 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
5875
5876 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
5877 generate an assignment loop in case of overlap.
5878
5879 2009-04-16 Olivier Hainque <hainque@adacore.com>
5880
5881 * gnat_ugn.texi (gnatmem description): Make it explicit that
5882 gnatmem is designed to work in association with static runtime
5883 library only.
5884
5885 2009-04-16 Thomas Quinot <quinot@adacore.com>
5886
5887 * sem_type.adb: Minor reformatting
5888
5889 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
5890
5891 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
5892 concerning return codes of gettimeofday and return value check.
5893
5894 2009-04-16 Ed Falis <falis@adacore.com>
5895
5896 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
5897 body can be renaming of imported routines.
5898
5899 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
5900
5901 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
5902 targeted fashion.
5903
5904 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5905
5906 * exp_ch9.adb: Comment improvements.
5907 (Build_Entry_Family_Name): Add parentheses around the index of a entry
5908 family member.
5909
5910 2009-04-15 Bob Duff <duff@adacore.com>
5911
5912 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
5913 "while X /= null loop" where X is unchanged inside the loop. We were
5914 not warning in this case, because of the pointers -- we feared that the
5915 loop variable could be updated via a pointer, if there are any pointers
5916 around the place. But that is impossible in this case.
5917
5918 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
5919 the case of dereferences. In X.all, X cannot be an l-value. We now
5920 catch that case (and implicit dereferences, too).
5921
5922 2009-04-15 Vincent Celier <celier@adacore.com>
5923
5924 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
5925
5926 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5927
5928 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
5929 From code reading.
5930 (Analyze_Package_Instantiation): If generic unit in child instance is
5931 the same as generic unit in parent instance, look for an outer homonym
5932 to locate the desired generic.
5933
5934 2009-04-15 Bob Duff <duff@adacore.com>
5935
5936 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
5937 warnings unless the loop comes from source, because checking generated
5938 loops is a waste of time, and makes it harder to debug
5939 Check_Infinite_Loop_Warning.
5940
5941 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
5942 tested in the while loop is a renaming, do not warn. Otherwise, we get
5943 false alarms, because it's usually renaming something that we can't
5944 deal with (an indexed component, a global variable, ...).
5945
5946 * gnat_rm.texi: Fix typo
5947
5948 2009-04-15 Thomas Quinot <quinot@adacore.com>
5949
5950 * sem_ch6.adb: Minor reformatting
5951
5952 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5953
5954 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
5955 immediate parent of the controlled function call is a component
5956 association.
5957
5958 2009-04-15 Ed Schonberg <schonberg@adacore.com>
5959
5960 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
5961 corresponding class-wide type is also in use.
5962
5963 2009-04-15 Thomas Quinot <quinot@adacore.com>
5964
5965 * frontend.adb: Minor comment fix
5966
5967 2009-04-15 Robert Dewar <dewar@adacore.com>
5968
5969 * gnatchop.adb (BOM_Length): New global variable
5970 (Write_Unit): Add new parameter Write_BOM
5971 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
5972 to Write_Unit
5973
5974 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
5975
5976 2009-04-15 Geert Bosch <bosch@adacore.com>
5977
5978 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
5979 (Backend_Overflow_Checks): Set to True.
5980
5981 2009-04-15 Gary Dismukes <dismukes@adacore.com>
5982
5983 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
5984 keyword is given in a record extension.
5985
5986 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
5987
5988 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
5989 of a controlled function call in the context of a record aggregate.
5990 This does not apply to array aggregates since the call will be expanded
5991 into assignments.
5992
5993 2009-04-15 Ed Falis <falis@adacore.com>
5994
5995 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
5996 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
5997 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
5998 s-osinte-vxworks* and s-vxwext*.
5999
6000 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6001
6002 * gcc-interface/Make-lang.in: Update dependencies.
6003
6004 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6005 and s-vxwext*.
6006
6007 2009-04-15 Robert Dewar <dewar@adacore.com>
6008
6009 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6010 of node for location for warning messages.
6011
6012 * gnatchop.adb: Minor reformatting
6013
6014 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6015
6016 * exp_ch6.adb: additional guard for renaming declarations for in
6017 parameters of an array type.
6018
6019 2009-04-15 Robert Dewar <dewar@adacore.com>
6020
6021 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6022 in case they were rewritten by expander (Force_Evaluation).
6023
6024 * targparm.adb (Get_Target_Parameters): Correct check for
6025 Suppress_Exception_Locations.
6026
6027 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6028
6029 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6030 inlined is of an array type that is not bit-packed, use a renaming
6031 declaration to capture its value, rather than a constant declaration.
6032
6033 2009-04-15 Robert Dewar <dewar@adacore.com>
6034
6035 * rtsfind.adb: Minor reformatting.
6036
6037 2009-04-15 Emmanuel Briot <briot@adacore.com>
6038
6039 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6040 Restore, and free the saved context.
6041
6042 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6043
6044 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6045 for illegal private extension from a synchronized interface parent in
6046 front of check for illegal limited extension so that limited extension
6047 from a synchronized interface will be rejected.
6048 (Check_Ifaces): Check that a private extension that has a synchronized
6049 interface as a progenitor must be explicitly declared synchronized.
6050 Also check that a record extension cannot derive from a synchronized
6051 interface.
6052
6053 2009-04-15 Pascal Obry <obry@adacore.com>
6054
6055 * adaint.h (__gnat_unlink): Add spec.
6056 (__gnat_rename): Likewise.
6057
6058 2009-04-15 Vincent Celier <celier@adacore.com>
6059
6060 * prj-nmsc.adb: Minor spelling error corrections in error messages
6061
6062 2009-04-15 Robert Dewar <dewar@adacore.com>
6063
6064 * sinfo.ads: Minor comment update
6065
6066 * opt.ads: Minor comment updates
6067
6068 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6069 modular type.
6070
6071 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6072
6073 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6074 that generates the code needed to update a dispatch table when a
6075 primitive operation is declared with a subprogram body without previous
6076 spec. Insertion of the generated code is responsibility of the caller.
6077 (Make_DT): When building static tables, append the code created by
6078 Register_Primitive to update a secondary table after it has been
6079 constructed.
6080
6081 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6082
6083 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6084 on an overriding operation that implements an interface operation only
6085 if not building static dispatch tables.
6086
6087 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6088
6089 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6090 does not cause overflow when converted to Duration. Use the safe value
6091 as the maximum allowable time delay..
6092
6093 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6094
6095 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6096 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6097 translated to "-j 2".
6098
6099 2009-04-15 Bob Duff <duff@adacore.com>
6100
6101 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6102 with_clauses, to avoid code duplication. Change this processing so we
6103 always add a with_clause on the main unit if needed.
6104
6105 2009-04-15 Pascal Obry <obry@adacore.com>
6106
6107 Add support for Win32 native encoding for delete/rename routines.
6108
6109 * adaint.c (__gnat_unlink): New routine.
6110 (__gnat_rename): New routine.
6111 Simple wrapper routines used to convert to proper encoding on
6112 Windows.
6113
6114 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6115 call to the C library.
6116
6117 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6118
6119 2009-04-15 Robert Dewar <dewar@adacore.com>
6120
6121 * s-tassta.adb: Minor reformatting
6122
6123 2009-04-15 Robert Dewar <dewar@adacore.com>
6124
6125 * frontend.adb (Frontend): Set proper default for
6126 Warn_On_Non_Local_Exception.
6127
6128 * opt.ads (Exception_Handler_Encountered): New flag
6129 (No_Warn_On_Non_Local_Exception): New flag
6130
6131 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6132
6133 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6134 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6135
6136 2009-04-15 Cyrille Comar <comar@adacore.com>
6137
6138 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6139 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6140 message when exception traces are active since it would generate
6141 redundant information.
6142 (Exception_Traces.Notify_Exception): put message output by a critical
6143 section to avoid unsynchronized output.
6144 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6145 section to avoid unsynchronized output.
6146
6147 2009-04-15 Emmanuel Briot <briot@adacore.com>
6148
6149 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6150 (Free): New subprogram.
6151
6152 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6153
6154 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6155 (Formatting_Operations.Time_Of): Change the way four year chunks of
6156 nanoseconds are added to the intermediate result.
6157
6158 2009-04-15 Nicolas Setton <setton@adacore.com>
6159
6160 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6161 does not need to wait for a carriage return.
6162
6163 2009-04-15 Tristan Gingold <gingold@adacore.com>
6164
6165 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6166 is set.
6167
6168 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6169
6170 * freeze.adb (Freeze_Entity): improve error message for improper use of
6171 incomplete types.
6172 Diagnose additional illegal uses of incomplete types in formal parts.
6173 appearing in formal parts.
6174
6175 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6176
6177 2009-04-15 Robert Dewar <dewar@adacore.com>
6178
6179 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6180
6181 2009-04-15 Nicolas Roche <roche@adacore.com>
6182
6183 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6184 current thread.
6185
6186 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6187
6188 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6189
6190 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6191
6192 * sem_ch4.adb: improve error message on exponentiation.
6193
6194 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6195
6196 * a-calend.adb: Move constant Epoch_Offset from package
6197 Conversion_Operations to top level.
6198 (Delay_Operations.To_Duration): Define a constant which represents
6199 "end of time" and use it as a guard against very distant delay dates.
6200 Protect the code against overflow when performing the origin shift to
6201 Unix time.
6202
6203 2009-04-15 Robert Dewar <dewar@adacore.com>
6204
6205 * sem_prag.adb: Minor reformatting.
6206
6207 * sem_type.adb: Minor reformatting
6208
6209 2009-04-15 Javier Miranda <miranda@adacore.com>
6210
6211 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6212 support to check eliminated subprograms.
6213
6214 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6215
6216 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6217 dispatching subprograms.
6218
6219 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6220 operations. Initialize with "null" the slots of eliminated dispaching
6221 primitives.
6222 (Write_DT): Add output for eliminated primitives.
6223
6224 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6225
6226 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6227
6228 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6229 the second is redundant, regardless of scopes.
6230
6231 2009-04-15 Vincent Celier <celier@adacore.com>
6232
6233 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6234 the object directory as when there are no sources, they may not be any
6235 object directory.
6236
6237 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6238 directory, when there are no exec directory.
6239
6240 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6241
6242 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6243 ambiguities, refine removal of universal interpretations from complex
6244 expressions with literal arguments, when some numeric operators have
6245 been declared abstract.
6246
6247 2009-04-15 Ed Falis <falis@adacore.com>
6248
6249 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6250 and backward compatibility for targets using probing for stack overflow
6251
6252 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6253
6254 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6255 after any declaration, including renaming declarations.
6256
6257 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6258
6259 * gcc-interface/Make-lang.in: Update dependencies.
6260
6261 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6262 Update xenomai target pairs.
6263
6264 2009-04-15 Javier Miranda <miranda@adacore.com>
6265
6266 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6267
6268 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6269 functions returning anonymous access to class-wide limited types. Mark
6270 also the containing scope as a task master.
6271
6272 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6273 limited-withed packages. Required to restore their visibility after
6274 processing packages associated with implicit with-clauses.
6275
6276 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6277 associated with return statements because this work is now done by
6278 Check_Anonymous_Return.
6279 (Build_Master): Code cleanup.
6280
6281 2009-04-15 Thomas Quinot <quinot@adacore.com>
6282
6283 * sem_warn.ads: Minor reformatting
6284
6285 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6286
6287 * sem_ch3.adb: better error message for illegal interfaces
6288
6289 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6290 formal is an incomplete type from a limited_with clause.
6291
6292 2009-04-15 Vincent Celier <celier@adacore.com>
6293
6294 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6295 Externally_Built indicating if the project is externally built. If it
6296 is, and --subdirs is specified, but the subdir does not exist, look
6297 for the specified directory, without the subdir.
6298
6299 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6300
6301 * a-tasatt.adb: Fix typo, plus minor reformatting
6302
6303 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
6304
6305 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
6306
6307 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6308
6309 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
6310 private extension whose parent is a synchronized interface carries an
6311 explicit synchronized keyword.
6312
6313 2009-04-15 Thomas Quinot <quinot@adacore.com>
6314
6315 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
6316 instantiate generic shared object package with the corresponding
6317 record type.
6318
6319 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6320
6321 * system-linux-sparc.ads: Remove obsolete entries.
6322
6323 2009-04-15 Thomas Quinot <quinot@adacore.com>
6324
6325 * s-tasuti.ads: Add ??? comment
6326
6327 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6328
6329 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
6330 type even if the designated type comes from a limited_with clause, to
6331 ensure that the symbol for the finalization list of the access type is
6332 created.
6333
6334 2009-04-10 Robert Dewar <dewar@adacore.com>
6335
6336 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
6337 for warning suppression.
6338
6339 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6340
6341 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
6342 identical, there is no redudancy to check.
6343
6344 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6345
6346 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
6347 calls initializing SS_Allocator (which is initialized in following
6348 code).
6349 (Expand_Simple_Function_Return): Add comment about False value for
6350 Comes_From_Source on secondary-stack allocator.
6351
6352 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
6353 (Build_Entry_Name): Add comment.
6354
6355 2009-04-10 Robert Dewar <dewar@adacore.com>
6356
6357 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
6358
6359 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
6360 bound tested, since this is now done more generally in Sem_Res.
6361
6362 * sem_res.adb (Resolve_Comparison_Op): Add call to
6363 Check_Lower_Bound_Tested.
6364 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
6365
6366 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
6367 (Low_Bound_Tested): New name for Low_Bound_Known flag
6368
6369 * exp_ch5.adb: Minor reformatting
6370
6371 * exp_ch4.adb:
6372 Add comments on copying the Comes_From_Source flag for allocators
6373
6374 * sinfo.ads:
6375 Add comments on copying the Comes_From_Source flag for allocators
6376
6377 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
6378 Comes_From_Source flag from old allocator to new one.
6379
6380 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6381
6382 * sem_ch6.ads: Address missing documentation query
6383
6384 2009-04-10 Vincent Celier <celier@adacore.com>
6385
6386 * prj-attr.adb:
6387 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
6388 and Response_File_Switches.
6389
6390 * prj-nmsc.adb (Process_Linker): Process new attributes
6391 Max_Command_Line_Length, Response_File_Format and
6392 Response_File_Switches.
6393
6394 * prj.ads (Response_File_Format): New enumeration type
6395 (Project_Configuration): New componants Max_Command_Line_Length,
6396 Resp_File_Format and Resp_File_Options.
6397
6398 * snames.ads-tmpl: Add new standard names for linking response files
6399 for gprbuild: GNU, None, Object_List, Option_List,
6400 Max_Command_Line_Length, Response_File_Format and
6401 Response_File_Switches.
6402
6403 2009-04-10 Geert Bosch <bosch@adacore.com>
6404
6405 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
6406 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
6407 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
6408 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
6409 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
6410 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
6411 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
6412 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
6413 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
6414 system-vxworks-arm.ads, system-vxworks-m68k.ads,
6415 system-vxworks-mips.ads, system-vxworks-ppc.ads,
6416 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
6417 (Backend_Overflow_Checks): Set to True.
6418
6419 2009-04-10 Thomas Quinot <quinot@adacore.com>
6420
6421 * exp_attr.adb: Minor reformatting
6422
6423 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6424
6425 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
6426 analyze the expression for a postcondition, even if the compiler mode
6427 is Generate_Code.
6428
6429 2009-04-10 Robert Dewar <dewar@adacore.com>
6430
6431 * sem_aux.adb: Minor reformatting
6432
6433 2009-04-10 Ed Falis <falis@adacore.com>
6434
6435 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
6436
6437 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
6438
6439 2009-04-10 Thomas Quinot <quinot@adacore.com>
6440
6441 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
6442 undocumented formal.
6443 Minor reformatting
6444
6445 * a-direio.ads: Fix typo in comment
6446
6447 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
6448 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
6449 Use uniform phrasing for comment at start of subprogram body.
6450
6451 * xsnamest.adb: Add note to explain why we use specific names for the
6452 newly generated files instead of generating snames.{ads,adb,h} directly
6453
6454 2009-04-10 Sergey Rybin <rybin@adacore.com>
6455
6456 * vms_data.ads:
6457 Add qualifier for new gnatstub option '--no-exception'
6458
6459 * gnat_ugn.texi:
6460 Add the description of the new gnatstub option '--no-exception'
6461
6462 2009-04-10 Robert Dewar <dewar@adacore.com>
6463
6464 * rtsfind.adb: Minor reformatting
6465
6466 2009-04-10 Thomas Quinot <quinot@adacore.com>
6467
6468 * sem_disp.adb: Minor reformatting.
6469 Add comment pointing to RM clause for the case of warning against a
6470 (failed) attempt at declaring a primitive operation elsewhere than in a
6471 package spec.
6472
6473 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6474
6475 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
6476 an actual for a previous formal package of the current instance.
6477
6478 2009-04-10 Bob Duff <duff@adacore.com>
6479
6480 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
6481 them first, rather than on the extended main unit.
6482
6483 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6484
6485 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
6486 specification of full view carries a null exclusion indicator, create
6487 an itype for it, to check for conformance with partial view.
6488
6489 2009-04-10 Bob Duff <duff@adacore.com>
6490
6491 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
6492
6493 * rtsfind.adb: Minor comment changes, and remove useless code.
6494
6495 * sinfo.ads: Add ??? comment.
6496
6497 2009-04-10 Vincent Celier <celier@adacore.com>
6498
6499 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
6500
6501 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6502
6503 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
6504 type is a synchronized type, retrieve tag information from the
6505 corresponding record, which has the dispatch table link.
6506
6507 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
6508
6509 * g-comlin.adb (Group_Analysis): Take care of switches that might be
6510 decomposed afterwards, but are present as-is in the command line
6511 configuration, and thus should be kept as-is.
6512
6513 2009-04-10 Robert Dewar <dewar@adacore.com>
6514
6515 * gnat_rm.texi: Document that postconditions are tested on implicit
6516 returns.
6517
6518 * sem_aux.adb: Minor reformatting
6519
6520 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6521
6522 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
6523 setting Etype.
6524
6525 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
6526 Null_Exclusion_In_Return_Present when an access-to-function type has a
6527 result type with an explicit not null.
6528
6529 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
6530 given on the result type, then create a null-excluding itype for the
6531 function.
6532
6533 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
6534 the case where a null exclusion is imposed on a named access type.
6535 (Analyze_Subprogram_Specification): Push and pop the scope of the
6536 function around the call to Analyze_Return_Type in the case of no
6537 formals, for consistency with handling when formals are present
6538 (Process_Formals does this). Ensures that any itype created for the
6539 return type will be associated with the proper scope.
6540
6541 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
6542 exclusion is given on a generic function's result type, then create a
6543 null-excluding itype for the generic function.
6544 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
6545 for an actual for a formal in object according to the setting on the
6546 formal. Ensures null exclusion checks are done when the association is
6547 elaborated.
6548
6549 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
6550 N_Access_Function_Definition.
6551
6552 * sinfo.adb: Add Get_ and Set_ operations for
6553 Null_Exclusion_In_Return_Present.
6554
6555 2009-04-10 Bob Duff <duff@adacore.com>
6556
6557 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
6558 call to the _Postconditions procedure in the case of implicit returns
6559 from analysis to expansion. This eliminates some duplicated code. Use
6560 the Postcondition_Proc to find the identity of this procedure during
6561 expansion.
6562
6563 2009-04-10 Robert Dewar <dewar@adacore.com>
6564
6565 * sem_ch6.adb: Minor code clean up.
6566
6567 * einfo.ads, sem_attr.adb: Minor comment fixes.
6568
6569 2009-04-10 Robert Dewar <dewar@adacore.com>
6570
6571 * sem_ch8.adb: Minor reformatting
6572
6573 2009-04-10 Robert Dewar <dewar@adacore.com>
6574
6575 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
6576 procedures.
6577
6578 * sem_ch6.adb: Minor code clean up.
6579
6580 2009-04-10 Robert Dewar <dewar@adacore.com>
6581
6582 * mlib-tgt-specific-xi.adb: Minor reformatting
6583
6584 2009-04-10 Bob Duff <duff@adacore.com>
6585
6586 * einfo.ads: Minor comment fixes
6587
6588 2009-04-10 Vincent Celier <celier@adacore.com>
6589
6590 * snames.ads-tmpl: Remove names that are no longer used in the
6591 Project Manager.
6592 Mark specifically those that are used only in gprbuild
6593
6594 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
6595
6596 * init.c: Adjust EH support code on Alpha/Tru64.
6597
6598 2009-04-10 Bob Duff <duff@adacore.com>
6599
6600 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
6601 procedure on every path that could return implicitly (not via a return
6602 statement) from a procedure.
6603
6604 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6605
6606 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
6607 valid scope for a task declarations and therefore for a master id.
6608
6609 2009-04-10 Robert Dewar <dewar@adacore.com>
6610
6611 * sem_aux.adb: Minor reformatting
6612
6613 2009-04-10 Vincent Celier <celier@adacore.com>
6614
6615 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
6616 True.
6617 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
6618 (Set_Obsolescent_Check): New procedure to change the value of
6619 Obsolescent_Check_Flag.
6620
6621 * scn.ads (Set_Obsolescent_Check): New procedure to control
6622 Obsolescent_Check.
6623
6624 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
6625 obsolescent features while preprocessing.
6626
6627 2009-04-10 Thomas Quinot <quinot@adacore.com>
6628
6629 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
6630 generated files on all platforms.
6631
6632 2009-04-10 Robert Dewar <dewar@adacore.com>
6633
6634 * sem_aux.adb: Minor reformatting
6635
6636 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6637
6638 * sem_ch3.adb (Access_Definition): Handle properly the case of a
6639 protected function with formals that returns an anonymous access type.
6640
6641 2009-04-10 Thomas Quinot <quinot@adacore.com>
6642
6643 * sem_disp.adb: Minor reformatting
6644
6645 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
6646
6647 * seh_init.c: Do not use the 32-bit specific implementation of
6648 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
6649 version TBD).
6650
6651 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6652
6653 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
6654 a '/' at the end so we better use the complete target name to determine
6655 whether it is a PowerPC 55xx target.
6656
6657 2009-04-10 Thomas Quinot <quinot@adacore.com>
6658
6659 * sem_eval.adb: Minor reformatting
6660
6661 2009-04-10 Thomas Quinot <quinot@adacore.com>
6662
6663 * snames.h, snames.ads, snames.adb: Remove files, now generated from
6664 templates.
6665
6666 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
6667 above.
6668
6669 * xsnamest.adb: New file.
6670
6671 * gcc-interface/Make-lang.in: New target for automated generation of
6672 snames.ads, snames.adb and snames.h
6673
6674 2009-04-10 Tristan Gingold <gingold@adacore.com>
6675
6676 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
6677 avoid compile time warnings.
6678 Do not add gcc/config in include search list while compiling the RTS.
6679 Pragma Thread_Local_Storage is available on any target.
6680
6681 2009-04-10 Bob Duff <duff@adacore.com>
6682
6683 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
6684
6685 2009-04-10 Tristan Gingold <gingold@adacore.com>
6686
6687 * init.c: Install signal handler on Darwin.
6688
6689 2009-04-10 Robert Dewar <dewar@adacore.com>
6690
6691 * sem_prag.adb: Minor reformatting
6692
6693 * exp_util.adb (Make_Non_Empty_Check): New function
6694 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
6695 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
6696
6697 2009-04-10 Arnaud Charlet <charlet@adacore.com>
6698
6699 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
6700
6701 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6702
6703 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
6704 tool prefix for AVR and PowerPC 55xx targets.
6705
6706 2009-04-10 Robert Dewar <dewar@adacore.com>
6707
6708 * sem_warn.adb (Within_Postcondition): New function
6709 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
6710
6711 2009-04-10 Robert Dewar <dewar@adacore.com>
6712
6713 * sem_warn.adb: Minor reformatting
6714
6715 * make.adb: Minor reformatting.
6716
6717 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6718
6719 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
6720 entity and the scope is a subprogram, retrieve the Sloc of the
6721 subprogram's body rather than using the sloc of the spec, for better
6722 line-stepping behavior in gdb.
6723 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
6724 controller, use the Sloc of the first declaration of the containing list
6725 rather than that of the node that triggered creation of the list
6726 controller.
6727
6728 2009-04-10 Vincent Celier <celier@adacore.com>
6729
6730 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
6731 to avoid gcc warning.
6732
6733 2009-04-10 Robert Dewar <dewar@adacore.com>
6734
6735 * g-comlin.adb: Add ??? comment
6736
6737 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6738
6739 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
6740 unreferenced entities for a package with no visible declarations.
6741
6742 2009-04-10 Robert Dewar <dewar@adacore.com>
6743
6744 * exp_ch9.adb: Minor reformatting
6745
6746 2009-04-10 Thomas Quinot <quinot@adacore.com>
6747
6748 * sem_prag.adb: Minor reformatting
6749
6750 2009-04-10 Vincent Celier <celier@adacore.com>
6751
6752 * prj-nmsc.adb:
6753 (Check_Library_Attributes): For a project qualified as a library project
6754 that is not a library project, indicate in the error message which
6755 attributes are missing (Library_Dir and/or Library_Name).
6756
6757 2009-04-10 Bob Duff <duff@adacore.com>
6758
6759 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
6760 generated nodes, because it might confuse various circuits in the FE.
6761
6762 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6763
6764 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
6765 of pragma. It will be recopied and analyzed when used in call to
6766 Create_Task.
6767
6768 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
6769 initialization operations and recognize use of it in procedure calls
6770 within init_procs.
6771
6772 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
6773 argument, because it may have side-effects.
6774
6775 * exp_ch2.adb: Remove obsolete comments on default functions
6776
6777 2009-04-10 Jose Ruiz <ruiz@adacore.com>
6778
6779 * adaint.c (RTX section): Do for RTX the same thing as we do for
6780 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
6781
6782 2009-04-10 Robert Dewar <dewar@adacore.com>
6783
6784 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
6785
6786 * sem_res.adb (Resolve_Call): Fix test for
6787 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
6788 a non-dynamic scope).
6789
6790 2009-04-10 Robert Dewar <dewar@adacore.com>
6791
6792 * make.adb: Add comment.
6793 Minor reformatting
6794
6795 2009-04-10 Nicolas Setton <setton@adacore.com>
6796
6797 * s-osprim-darwin.adb: New file.
6798
6799 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
6800
6801 2009-04-10 Thomas Quinot <quinot@adacore.com>
6802
6803 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
6804
6805 2009-04-09 Nick Clifton <nickc@redhat.com>
6806
6807 * adadecode.h: Change copyright header to refer to version
6808 3 of the GNU General Public License with version 3.1 of the
6809 GCC Runtime Library Exception and to point readers at the
6810 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
6811 page.
6812 * 9drpc.adb: Likewise.
6813 * a-assert.adb: Likewise.
6814 * a-astaco.adb: Likewise.
6815 * a-calari.adb: Likewise.
6816 * a-calcon.adb: Likewise.
6817 * a-calcon.ads: Likewise.
6818 * a-caldel.ads: Likewise.
6819 * a-calend-vms.adb: Likewise.
6820 * a-calend-vms.ads: Likewise.
6821 * a-calend.adb: Likewise.
6822 * a-calend.ads: Likewise.
6823 * a-calfor.adb: Likewise.
6824 * a-catizo.adb: Likewise.
6825 * a-cdlili.adb: Likewise.
6826 * a-cdlili.ads: Likewise.
6827 * a-cgaaso.adb: Likewise.
6828 * a-cgaaso.ads: Likewise.
6829 * a-cgarso.adb: Likewise.
6830 * a-cgcaso.adb: Likewise.
6831 * a-chacon.adb: Likewise.
6832 * a-chacon.ads: Likewise.
6833 * a-chahan.adb: Likewise.
6834 * a-chahan.ads: Likewise.
6835 * a-chlat9.ads: Likewise.
6836 * a-chtgke.adb: Likewise.
6837 * a-chtgke.ads: Likewise.
6838 * a-chtgop.adb: Likewise.
6839 * a-chtgop.ads: Likewise.
6840 * a-chzla1.ads: Likewise.
6841 * a-chzla9.ads: Likewise.
6842 * a-cidlli.adb: Likewise.
6843 * a-cidlli.ads: Likewise.
6844 * a-cihama.adb: Likewise.
6845 * a-cihama.ads: Likewise.
6846 * a-cihase.adb: Likewise.
6847 * a-cihase.ads: Likewise.
6848 * a-ciorma.adb: Likewise.
6849 * a-ciorma.ads: Likewise.
6850 * a-ciormu.adb: Likewise.
6851 * a-ciormu.ads: Likewise.
6852 * a-ciorse.adb: Likewise.
6853 * a-ciorse.ads: Likewise.
6854 * a-clrefi.adb: Likewise.
6855 * a-clrefi.ads: Likewise.
6856 * a-cohama.adb: Likewise.
6857 * a-cohama.ads: Likewise.
6858 * a-cohase.adb: Likewise.
6859 * a-cohase.ads: Likewise.
6860 * a-cohata.ads: Likewise.
6861 * a-coinve.adb: Likewise.
6862 * a-coinve.ads: Likewise.
6863 * a-colien.adb: Likewise.
6864 * a-colien.ads: Likewise.
6865 * a-colire.adb: Likewise.
6866 * a-colire.ads: Likewise.
6867 * a-comlin.adb: Likewise.
6868 * a-comlin.ads: Likewise.
6869 * a-convec.adb: Likewise.
6870 * a-convec.ads: Likewise.
6871 * a-coorma.adb: Likewise.
6872 * a-coorma.ads: Likewise.
6873 * a-coormu.adb: Likewise.
6874 * a-coormu.ads: Likewise.
6875 * a-coorse.adb: Likewise.
6876 * a-coorse.ads: Likewise.
6877 * a-coprnu.adb: Likewise.
6878 * a-coprnu.ads: Likewise.
6879 * a-crbltr.ads: Likewise.
6880 * a-crbtgk.adb: Likewise.
6881 * a-crbtgk.ads: Likewise.
6882 * a-crbtgo.adb: Likewise.
6883 * a-crbtgo.ads: Likewise.
6884 * a-crdlli.adb: Likewise.
6885 * a-crdlli.ads: Likewise.
6886 * a-cwila1.ads: Likewise.
6887 * a-cwila9.ads: Likewise.
6888 * a-decima.adb: Likewise.
6889 * a-decima.ads: Likewise.
6890 * a-diocst.adb: Likewise.
6891 * a-diocst.ads: Likewise.
6892 * a-direct.adb: Likewise.
6893 * a-direct.ads: Likewise.
6894 * a-direio.adb: Likewise.
6895 * a-direio.ads: Likewise.
6896 * a-dirval-mingw.adb: Likewise.
6897 * a-dirval-vms.adb: Likewise.
6898 * a-dirval.adb: Likewise.
6899 * a-dirval.ads: Likewise.
6900 * a-dynpri.adb: Likewise.
6901 * a-einuoc.adb: Likewise.
6902 * a-einuoc.ads: Likewise.
6903 * a-elchha.adb: Likewise.
6904 * a-elchha.ads: Likewise.
6905 * a-envvar.adb: Likewise.
6906 * a-excach.adb: Likewise.
6907 * a-except-2005.adb: Likewise.
6908 * a-except-2005.ads: Likewise.
6909 * a-except.adb: Likewise.
6910 * a-except.ads: Likewise.
6911 * a-excpol-abort.adb: Likewise.
6912 * a-excpol.adb: Likewise.
6913 * a-exctra.adb: Likewise.
6914 * a-exctra.ads: Likewise.
6915 * a-exetim-mingw.adb: Likewise.
6916 * a-exetim-mingw.ads: Likewise.
6917 * a-exexda.adb: Likewise.
6918 * a-exexpr-gcc.adb: Likewise.
6919 * a-exexpr.adb: Likewise.
6920 * a-exextr.adb: Likewise.
6921 * a-exstat.adb: Likewise.
6922 * a-filico.adb: Likewise.
6923 * a-filico.ads: Likewise.
6924 * a-finali.adb: Likewise.
6925 * a-finali.ads: Likewise.
6926 * a-interr.ads: Likewise.
6927 * a-intnam-aix.ads: Likewise.
6928 * a-intnam-darwin.ads: Likewise.
6929 * a-intnam-dummy.ads: Likewise.
6930 * a-intnam-freebsd.ads: Likewise.
6931 * a-intnam-hpux.ads: Likewise.
6932 * a-intnam-irix.ads: Likewise.
6933 * a-intnam-linux.ads: Likewise.
6934 * a-intnam-lynxos.ads: Likewise.
6935 * a-intnam-mingw.ads: Likewise.
6936 * a-intnam-rtems.ads: Likewise.
6937 * a-intnam-solaris.ads: Likewise.
6938 * a-intnam-tru64.ads: Likewise.
6939 * a-intnam-vms.ads: Likewise.
6940 * a-intnam-vxworks.ads: Likewise.
6941 * a-intsig.adb: Likewise.
6942 * a-intsig.ads: Likewise.
6943 * a-ngcefu.adb: Likewise.
6944 * a-ngcoar.adb: Likewise.
6945 * a-ngcoty.adb: Likewise.
6946 * a-ngcoty.ads: Likewise.
6947 * a-ngelfu.adb: Likewise.
6948 * a-ngrear.adb: Likewise.
6949 * a-ngrear.ads: Likewise.
6950 * a-nudira.adb: Likewise.
6951 * a-nudira.ads: Likewise.
6952 * a-nuflra.adb: Likewise.
6953 * a-nuflra.ads: Likewise.
6954 * a-numaux-darwin.adb: Likewise.
6955 * a-numaux-darwin.ads: Likewise.
6956 * a-numaux-libc-x86.ads: Likewise.
6957 * a-numaux-vxworks.ads: Likewise.
6958 * a-numaux-x86.adb: Likewise.
6959 * a-numaux-x86.ads: Likewise.
6960 * a-numaux.ads: Likewise.
6961 * a-rbtgso.adb: Likewise.
6962 * a-rbtgso.ads: Likewise.
6963 * a-reatim.ads: Likewise.
6964 * a-retide.adb: Likewise.
6965 * a-retide.ads: Likewise.
6966 * a-rttiev.adb: Likewise.
6967 * a-rttiev.ads: Likewise.
6968 * a-secain.adb: Likewise.
6969 * a-secain.ads: Likewise.
6970 * a-sequio.adb: Likewise.
6971 * a-sequio.ads: Likewise.
6972 * a-shcain.adb: Likewise.
6973 * a-shcain.ads: Likewise.
6974 * a-siocst.adb: Likewise.
6975 * a-siocst.ads: Likewise.
6976 * a-slcain.adb: Likewise.
6977 * a-slcain.ads: Likewise.
6978 * a-ssicst.adb: Likewise.
6979 * a-ssicst.ads: Likewise.
6980 * a-stboha.adb: Likewise.
6981 * a-stmaco.ads: Likewise.
6982 * a-storio.adb: Likewise.
6983 * a-strbou.adb: Likewise.
6984 * a-strbou.ads: Likewise.
6985 * a-stream.ads: Likewise.
6986 * a-strfix.adb: Likewise.
6987 * a-strhas.adb: Likewise.
6988 * a-strmap.adb: Likewise.
6989 * a-strmap.ads: Likewise.
6990 * a-strsea.adb: Likewise.
6991 * a-strsea.ads: Likewise.
6992 * a-strsup.adb: Likewise.
6993 * a-strsup.ads: Likewise.
6994 * a-strunb.adb: Likewise.
6995 * a-strunb.ads: Likewise.
6996 * a-ststio.adb: Likewise.
6997 * a-ststio.ads: Likewise.
6998 * a-stunau.adb: Likewise.
6999 * a-stunau.ads: Likewise.
7000 * a-stunha.adb: Likewise.
7001 * a-stwibo.adb: Likewise.
7002 * a-stwibo.ads: Likewise.
7003 * a-stwifi.adb: Likewise.
7004 * a-stwiha.adb: Likewise.
7005 * a-stwima.adb: Likewise.
7006 * a-stwima.ads: Likewise.
7007 * a-stwise.adb: Likewise.
7008 * a-stwise.ads: Likewise.
7009 * a-stwisu.adb: Likewise.
7010 * a-stwisu.ads: Likewise.
7011 * a-stwiun.adb: Likewise.
7012 * a-stwiun.ads: Likewise.
7013 * a-stzbou.adb: Likewise.
7014 * a-stzbou.ads: Likewise.
7015 * a-stzfix.adb: Likewise.
7016 * a-stzhas.adb: Likewise.
7017 * a-stzmap.adb: Likewise.
7018 * a-stzmap.ads: Likewise.
7019 * a-stzsea.adb: Likewise.
7020 * a-stzsea.ads: Likewise.
7021 * a-stzsup.adb: Likewise.
7022 * a-stzsup.ads: Likewise.
7023 * a-stzunb.adb: Likewise.
7024 * a-stzunb.ads: Likewise.
7025 * a-suteio.adb: Likewise.
7026 * a-suteio.ads: Likewise.
7027 * a-swbwha.adb: Likewise.
7028 * a-swmwco.ads: Likewise.
7029 * a-swunau.adb: Likewise.
7030 * a-swunau.ads: Likewise.
7031 * a-swuwha.adb: Likewise.
7032 * a-swuwti.adb: Likewise.
7033 * a-swuwti.ads: Likewise.
7034 * a-sytaco.adb: Likewise.
7035 * a-sytaco.ads: Likewise.
7036 * a-szbzha.adb: Likewise.
7037 * a-szmzco.ads: Likewise.
7038 * a-szunau.adb: Likewise.
7039 * a-szunau.ads: Likewise.
7040 * a-szuzha.adb: Likewise.
7041 * a-szuzti.adb: Likewise.
7042 * a-szuzti.ads: Likewise.
7043 * a-tags.adb: Likewise.
7044 * a-tags.ads: Likewise.
7045 * a-tasatt.ads: Likewise.
7046 * a-taside.adb: Likewise.
7047 * a-taside.ads: Likewise.
7048 * a-taster.adb: Likewise.
7049 * a-teioed.adb: Likewise.
7050 * a-teioed.ads: Likewise.
7051 * a-textio.adb: Likewise.
7052 * a-textio.ads: Likewise.
7053 * a-tiboio.adb: Likewise.
7054 * a-ticoau.adb: Likewise.
7055 * a-ticoau.ads: Likewise.
7056 * a-ticoio.adb: Likewise.
7057 * a-ticoio.ads: Likewise.
7058 * a-tideau.adb: Likewise.
7059 * a-tideau.ads: Likewise.
7060 * a-tideio.adb: Likewise.
7061 * a-tideio.ads: Likewise.
7062 * a-tienau.adb: Likewise.
7063 * a-tienau.ads: Likewise.
7064 * a-tienio.adb: Likewise.
7065 * a-tienio.ads: Likewise.
7066 * a-tifiio.adb: Likewise.
7067 * a-tifiio.ads: Likewise.
7068 * a-tiflau.adb: Likewise.
7069 * a-tiflau.ads: Likewise.
7070 * a-tiflio.adb: Likewise.
7071 * a-tiflio.ads: Likewise.
7072 * a-tigeau.adb: Likewise.
7073 * a-tigeau.ads: Likewise.
7074 * a-tiinau.adb: Likewise.
7075 * a-tiinau.ads: Likewise.
7076 * a-tiinio.adb: Likewise.
7077 * a-tiinio.ads: Likewise.
7078 * a-timoau.adb: Likewise.
7079 * a-timoau.ads: Likewise.
7080 * a-timoio.adb: Likewise.
7081 * a-timoio.ads: Likewise.
7082 * a-tiocst.adb: Likewise.
7083 * a-tiocst.ads: Likewise.
7084 * a-titest.adb: Likewise.
7085 * a-wichun.adb: Likewise.
7086 * a-wichun.ads: Likewise.
7087 * a-witeio.adb: Likewise.
7088 * a-witeio.ads: Likewise.
7089 * a-wtcoau.adb: Likewise.
7090 * a-wtcoau.ads: Likewise.
7091 * a-wtcoio.adb: Likewise.
7092 * a-wtcstr.adb: Likewise.
7093 * a-wtcstr.ads: Likewise.
7094 * a-wtdeau.adb: Likewise.
7095 * a-wtdeau.ads: Likewise.
7096 * a-wtdeio.adb: Likewise.
7097 * a-wtdeio.ads: Likewise.
7098 * a-wtedit.adb: Likewise.
7099 * a-wtedit.ads: Likewise.
7100 * a-wtenau.adb: Likewise.
7101 * a-wtenau.ads: Likewise.
7102 * a-wtenio.adb: Likewise.
7103 * a-wtenio.ads: Likewise.
7104 * a-wtfiio.adb: Likewise.
7105 * a-wtfiio.ads: Likewise.
7106 * a-wtflau.adb: Likewise.
7107 * a-wtflau.ads: Likewise.
7108 * a-wtflio.adb: Likewise.
7109 * a-wtflio.ads: Likewise.
7110 * a-wtgeau.adb: Likewise.
7111 * a-wtgeau.ads: Likewise.
7112 * a-wtinau.adb: Likewise.
7113 * a-wtinau.ads: Likewise.
7114 * a-wtinio.adb: Likewise.
7115 * a-wtmoau.adb: Likewise.
7116 * a-wtmoau.ads: Likewise.
7117 * a-wtmoio.adb: Likewise.
7118 * a-wtmoio.ads: Likewise.
7119 * a-wttest.adb: Likewise.
7120 * a-wwboio.adb: Likewise.
7121 * a-zchuni.adb: Likewise.
7122 * a-zchuni.ads: Likewise.
7123 * a-ztcoau.adb: Likewise.
7124 * a-ztcoau.ads: Likewise.
7125 * a-ztcoio.adb: Likewise.
7126 * a-ztcstr.adb: Likewise.
7127 * a-ztcstr.ads: Likewise.
7128 * a-ztdeau.adb: Likewise.
7129 * a-ztdeau.ads: Likewise.
7130 * a-ztdeio.adb: Likewise.
7131 * a-ztdeio.ads: Likewise.
7132 * a-ztedit.adb: Likewise.
7133 * a-ztedit.ads: Likewise.
7134 * a-ztenau.adb: Likewise.
7135 * a-ztenau.ads: Likewise.
7136 * a-ztenio.adb: Likewise.
7137 * a-ztenio.ads: Likewise.
7138 * a-ztexio.adb: Likewise.
7139 * a-ztexio.ads: Likewise.
7140 * a-ztfiio.adb: Likewise.
7141 * a-ztfiio.ads: Likewise.
7142 * a-ztflau.adb: Likewise.
7143 * a-ztflau.ads: Likewise.
7144 * a-ztflio.adb: Likewise.
7145 * a-ztflio.ads: Likewise.
7146 * a-ztgeau.adb: Likewise.
7147 * a-ztgeau.ads: Likewise.
7148 * a-ztinau.adb: Likewise.
7149 * a-ztinau.ads: Likewise.
7150 * a-ztinio.adb: Likewise.
7151 * a-ztmoau.adb: Likewise.
7152 * a-ztmoau.ads: Likewise.
7153 * a-ztmoio.adb: Likewise.
7154 * a-ztmoio.ads: Likewise.
7155 * a-zttest.adb: Likewise.
7156 * a-zzboio.adb: Likewise.
7157 * adadecode.c: Likewise.
7158 * adaint.c: Likewise.
7159 * adaint.h: Likewise.
7160 * alloc.ads: Likewise.
7161 * argv.c: Likewise.
7162 * arit64.c: Likewise.
7163 * atree.adb: Likewise.
7164 * atree.ads: Likewise.
7165 * aux-io.c: Likewise.
7166 * cal.c: Likewise.
7167 * casing.adb: Likewise.
7168 * casing.ads: Likewise.
7169 * cio.c: Likewise.
7170 * csets.adb: Likewise.
7171 * csets.ads: Likewise.
7172 * cstreams.c: Likewise.
7173 * ctrl_c.c: Likewise.
7174 * debug.adb: Likewise.
7175 * debug.ads: Likewise.
7176 * dec.ads: Likewise.
7177 * einfo.adb: Likewise.
7178 * einfo.ads: Likewise.
7179 * elists.adb: Likewise.
7180 * elists.ads: Likewise.
7181 * env.c: Likewise.
7182 * env.h: Likewise.
7183 * errno.c: Likewise.
7184 * exit.c: Likewise.
7185 * fe.h: Likewise.
7186 * final.c: Likewise.
7187 * fname.adb: Likewise.
7188 * fname.ads: Likewise.
7189 * g-allein.ads: Likewise.
7190 * g-alleve.adb: Likewise.
7191 * g-alleve.ads: Likewise.
7192 * g-altcon.adb: Likewise.
7193 * g-altcon.ads: Likewise.
7194 * g-altive.ads: Likewise.
7195 * g-alveop.adb: Likewise.
7196 * g-alveop.ads: Likewise.
7197 * g-alvety.ads: Likewise.
7198 * g-alvevi.ads: Likewise.
7199 * g-arrspl.adb: Likewise.
7200 * g-arrspl.ads: Likewise.
7201 * g-calend.ads: Likewise.
7202 * g-comlin.adb: Likewise.
7203 * g-debpoo.adb: Likewise.
7204 * g-debpoo.ads: Likewise.
7205 * g-eacodu-vms.adb: Likewise.
7206 * g-eacodu.adb: Likewise.
7207 * g-excact.adb: Likewise.
7208 * g-excact.ads: Likewise.
7209 * g-locfil.adb: Likewise.
7210 * g-os_lib.ads: Likewise.
7211 * g-rannum.adb: Likewise.
7212 * g-rannum.ads: Likewise.
7213 * g-regist.adb: Likewise.
7214 * g-regist.ads: Likewise.
7215 * g-signal.adb: Likewise.
7216 * g-signal.ads: Likewise.
7217 * g-soccon.ads: Likewise.
7218 * g-string.adb: Likewise.
7219 * g-string.ads: Likewise.
7220 * g-strspl.ads: Likewise.
7221 * g-timsta.adb: Likewise.
7222 * g-timsta.ads: Likewise.
7223 * g-trasym-vms-alpha.adb: Likewise.
7224 * g-trasym-vms-ia64.adb: Likewise.
7225 * g-utf_32.adb: Likewise.
7226 * g-utf_32.ads: Likewise.
7227 * g-wistsp.ads: Likewise.
7228 * g-zstspl.ads: Likewise.
7229 * gmem.c: Likewise.
7230 * gnatvsn.adb: Likewise.
7231 * gnatvsn.ads: Likewise.
7232 * gsocket.h: Likewise.
7233 * hostparm.ads: Likewise.
7234 * i-c.adb: Likewise.
7235 * i-cexten.ads: Likewise.
7236 * i-cobol.adb: Likewise.
7237 * i-cobol.ads: Likewise.
7238 * i-cpoint.adb: Likewise.
7239 * i-cpoint.ads: Likewise.
7240 * i-cpp.adb: Likewise.
7241 * i-cpp.ads: Likewise.
7242 * i-cstrea-vms.adb: Likewise.
7243 * i-cstrea.adb: Likewise.
7244 * i-cstrea.ads: Likewise.
7245 * i-cstrin.adb: Likewise.
7246 * i-cstrin.ads: Likewise.
7247 * i-forbla-darwin.adb: Likewise.
7248 * i-forbla-unimplemented.ads: Likewise.
7249 * i-forbla.adb: Likewise.
7250 * i-forbla.ads: Likewise.
7251 * i-forlap.ads: Likewise.
7252 * i-fortra.adb: Likewise.
7253 * i-pacdec.adb: Likewise.
7254 * i-pacdec.ads: Likewise.
7255 * i-vxwoio.adb: Likewise.
7256 * i-vxwoio.ads: Likewise.
7257 * indepsw-aix.adb: Likewise.
7258 * indepsw-gnu.adb: Likewise.
7259 * indepsw-mingw.adb: Likewise.
7260 * indepsw.adb: Likewise.
7261 * indepsw.ads: Likewise.
7262 * init.c: Likewise.
7263 * initialize.c: Likewise.
7264 * interfac.ads: Likewise.
7265 * krunch.adb: Likewise.
7266 * krunch.ads: Likewise.
7267 * lib-list.adb: Likewise.
7268 * lib-sort.adb: Likewise.
7269 * lib.adb: Likewise.
7270 * lib.ads: Likewise.
7271 * link.c: Likewise.
7272 * math_lib.adb: Likewise.
7273 * memtrack.adb: Likewise.
7274 * mingw32.h: Likewise.
7275 * mkdir.c: Likewise.
7276 * namet-sp.adb: Likewise.
7277 * namet-sp.ads: Likewise.
7278 * namet.adb: Likewise.
7279 * namet.ads: Likewise.
7280 * nlists.adb: Likewise.
7281 * nlists.ads: Likewise.
7282 * opt.adb: Likewise.
7283 * opt.ads: Likewise.
7284 * output.adb: Likewise.
7285 * output.ads: Likewise.
7286 * raise-gcc.c: Likewise.
7287 * raise.c: Likewise.
7288 * raise.h: Likewise.
7289 * repinfo.adb: Likewise.
7290 * repinfo.ads: Likewise.
7291 * repinfo.h: Likewise.
7292 * rident.ads: Likewise.
7293 * s-addima.adb: Likewise.
7294 * s-addima.ads: Likewise.
7295 * s-addope.adb: Likewise.
7296 * s-addope.ads: Likewise.
7297 * s-arit64.adb: Likewise.
7298 * s-arit64.ads: Likewise.
7299 * s-assert.adb: Likewise.
7300 * s-assert.ads: Likewise.
7301 * s-asthan-vms-alpha.adb: Likewise.
7302 * s-asthan.adb: Likewise.
7303 * s-asthan.ads: Likewise.
7304 * s-atacco.adb: Likewise.
7305 * s-atacco.ads: Likewise.
7306 * s-auxdec-empty.adb: Likewise.
7307 * s-auxdec-empty.ads: Likewise.
7308 * s-auxdec-vms_64.ads: Likewise.
7309 * s-auxdec.adb: Likewise.
7310 * s-auxdec.ads: Likewise.
7311 * s-bitops.adb: Likewise.
7312 * s-bitops.ads: Likewise.
7313 * s-boarop.ads: Likewise.
7314 * s-carsi8.adb: Likewise.
7315 * s-carsi8.ads: Likewise.
7316 * s-carun8.adb: Likewise.
7317 * s-carun8.ads: Likewise.
7318 * s-casi16.adb: Likewise.
7319 * s-casi16.ads: Likewise.
7320 * s-casi32.adb: Likewise.
7321 * s-casi32.ads: Likewise.
7322 * s-casi64.adb: Likewise.
7323 * s-casi64.ads: Likewise.
7324 * s-casuti.ads: Likewise.
7325 * s-caun16.adb: Likewise.
7326 * s-caun16.ads: Likewise.
7327 * s-caun32.adb: Likewise.
7328 * s-caun32.ads: Likewise.
7329 * s-caun64.adb: Likewise.
7330 * s-caun64.ads: Likewise.
7331 * s-chepoo.ads: Likewise.
7332 * s-crc32.adb: Likewise.
7333 * s-crc32.ads: Likewise.
7334 * s-crtl.ads: Likewise.
7335 * s-direio.adb: Likewise.
7336 * s-direio.ads: Likewise.
7337 * s-dsaser.ads: Likewise.
7338 * s-except.adb: Likewise.
7339 * s-except.ads: Likewise.
7340 * s-exctab.adb: Likewise.
7341 * s-exctab.ads: Likewise.
7342 * s-exnint.adb: Likewise.
7343 * s-exnint.ads: Likewise.
7344 * s-exnllf.adb: Likewise.
7345 * s-exnllf.ads: Likewise.
7346 * s-exnlli.adb: Likewise.
7347 * s-exnlli.ads: Likewise.
7348 * s-expint.adb: Likewise.
7349 * s-expint.ads: Likewise.
7350 * s-explli.adb: Likewise.
7351 * s-explli.ads: Likewise.
7352 * s-expllu.adb: Likewise.
7353 * s-expllu.ads: Likewise.
7354 * s-expmod.adb: Likewise.
7355 * s-expmod.ads: Likewise.
7356 * s-expuns.adb: Likewise.
7357 * s-expuns.ads: Likewise.
7358 * s-fatflt.ads: Likewise.
7359 * s-fatgen.adb: Likewise.
7360 * s-fatgen.ads: Likewise.
7361 * s-fatlfl.ads: Likewise.
7362 * s-fatllf.ads: Likewise.
7363 * s-fatsfl.ads: Likewise.
7364 * s-ficobl.ads: Likewise.
7365 * s-fileio.adb: Likewise.
7366 * s-fileio.ads: Likewise.
7367 * s-filofl.ads: Likewise.
7368 * s-finimp.adb: Likewise.
7369 * s-finimp.ads: Likewise.
7370 * s-finroo.adb: Likewise.
7371 * s-finroo.ads: Likewise.
7372 * s-fishfl.ads: Likewise.
7373 * s-fore.adb: Likewise.
7374 * s-fore.ads: Likewise.
7375 * s-fvadfl.ads: Likewise.
7376 * s-fvaffl.ads: Likewise.
7377 * s-fvagfl.ads: Likewise.
7378 * s-gearop.adb: Likewise.
7379 * s-gearop.ads: Likewise.
7380 * s-gecobl.adb: Likewise.
7381 * s-gecobl.ads: Likewise.
7382 * s-gecola.adb: Likewise.
7383 * s-gecola.ads: Likewise.
7384 * s-gerebl.adb: Likewise.
7385 * s-gerebl.ads: Likewise.
7386 * s-gerela.adb: Likewise.
7387 * s-gerela.ads: Likewise.
7388 * s-geveop.adb: Likewise.
7389 * s-geveop.ads: Likewise.
7390 * s-gloloc.adb: Likewise.
7391 * s-gloloc.ads: Likewise.
7392 * s-hibaen.ads: Likewise.
7393 * s-imenne.adb: Likewise.
7394 * s-imenne.ads: Likewise.
7395 * s-imgbiu.adb: Likewise.
7396 * s-imgbiu.ads: Likewise.
7397 * s-imgboo.adb: Likewise.
7398 * s-imgboo.ads: Likewise.
7399 * s-imgcha.adb: Likewise.
7400 * s-imgcha.ads: Likewise.
7401 * s-imgdec.adb: Likewise.
7402 * s-imgdec.ads: Likewise.
7403 * s-imgenu.adb: Likewise.
7404 * s-imgenu.ads: Likewise.
7405 * s-imgint.adb: Likewise.
7406 * s-imgint.ads: Likewise.
7407 * s-imgllb.adb: Likewise.
7408 * s-imgllb.ads: Likewise.
7409 * s-imglld.adb: Likewise.
7410 * s-imglld.ads: Likewise.
7411 * s-imglli.adb: Likewise.
7412 * s-imglli.ads: Likewise.
7413 * s-imgllu.adb: Likewise.
7414 * s-imgllu.ads: Likewise.
7415 * s-imgllw.adb: Likewise.
7416 * s-imgllw.ads: Likewise.
7417 * s-imgrea.adb: Likewise.
7418 * s-imgrea.ads: Likewise.
7419 * s-imguns.adb: Likewise.
7420 * s-imguns.ads: Likewise.
7421 * s-imgwch.adb: Likewise.
7422 * s-imgwch.ads: Likewise.
7423 * s-imgwiu.adb: Likewise.
7424 * s-imgwiu.ads: Likewise.
7425 * s-inmaop-dummy.adb: Likewise.
7426 * s-inmaop-vms.adb: Likewise.
7427 * s-inmaop.ads: Likewise.
7428 * s-interr-hwint.adb: Likewise.
7429 * s-interr-sigaction.adb: Likewise.
7430 * s-interr-vms.adb: Likewise.
7431 * s-interr.adb: Likewise.
7432 * s-interr.ads: Likewise.
7433 * s-intman-dummy.adb: Likewise.
7434 * s-intman-mingw.adb: Likewise.
7435 * s-intman-posix.adb: Likewise.
7436 * s-intman-solaris.adb: Likewise.
7437 * s-intman-vms.adb: Likewise.
7438 * s-intman-vms.ads: Likewise.
7439 * s-intman-vxworks.adb: Likewise.
7440 * s-intman-vxworks.ads: Likewise.
7441 * s-intman.ads: Likewise.
7442 * s-io.adb: Likewise.
7443 * s-io.ads: Likewise.
7444 * s-linux-alpha.ads: Likewise.
7445 * s-linux-hppa.ads: Likewise.
7446 * s-linux.ads: Likewise.
7447 * s-maccod.ads: Likewise.
7448 * s-mantis.adb: Likewise.
7449 * s-mantis.ads: Likewise.
7450 * s-mastop-irix.adb: Likewise.
7451 * s-mastop.adb: Likewise.
7452 * s-mastop.ads: Likewise.
7453 * s-memcop.ads: Likewise.
7454 * s-memory-mingw.adb: Likewise.
7455 * s-memory.adb: Likewise.
7456 * s-memory.ads: Likewise.
7457 * s-os_lib.ads: Likewise.
7458 * s-oscons-tmplt.c: Likewise.
7459 * s-osinte-aix.adb: Likewise.
7460 * s-osinte-darwin.adb: Likewise.
7461 * s-osinte-freebsd.adb: Likewise.
7462 * s-osinte-irix.adb: Likewise.
7463 * s-osinte-lynxos-3.adb: Likewise.
7464 * s-osinte-rtems.ads: Likewise.
7465 * s-osinte-tru64.adb: Likewise.
7466 * s-osinte-vxworks-kernel.adb: Likewise.
7467 * s-osinte-vxworks.adb: Likewise.
7468 * s-osprim-mingw.adb: Likewise.
7469 * s-osprim-posix.adb: Likewise.
7470 * s-osprim-solaris.adb: Likewise.
7471 * s-osprim-unix.adb: Likewise.
7472 * s-osprim-vms.adb: Likewise.
7473 * s-osprim-vms.ads: Likewise.
7474 * s-osprim-vxworks.adb: Likewise.
7475 * s-osprim.ads: Likewise.
7476 * s-pack03.adb: Likewise.
7477 * s-pack03.ads: Likewise.
7478 * s-pack05.adb: Likewise.
7479 * s-pack05.ads: Likewise.
7480 * s-pack06.adb: Likewise.
7481 * s-pack06.ads: Likewise.
7482 * s-pack07.adb: Likewise.
7483 * s-pack07.ads: Likewise.
7484 * s-pack09.adb: Likewise.
7485 * s-pack09.ads: Likewise.
7486 * s-pack10.adb: Likewise.
7487 * s-pack10.ads: Likewise.
7488 * s-pack11.adb: Likewise.
7489 * s-pack11.ads: Likewise.
7490 * s-pack12.adb: Likewise.
7491 * s-pack12.ads: Likewise.
7492 * s-pack13.adb: Likewise.
7493 * s-pack13.ads: Likewise.
7494 * s-pack14.adb: Likewise.
7495 * s-pack14.ads: Likewise.
7496 * s-pack15.adb: Likewise.
7497 * s-pack15.ads: Likewise.
7498 * s-pack17.adb: Likewise.
7499 * s-pack17.ads: Likewise.
7500 * s-pack18.adb: Likewise.
7501 * s-pack18.ads: Likewise.
7502 * s-pack19.adb: Likewise.
7503 * s-pack19.ads: Likewise.
7504 * s-pack20.adb: Likewise.
7505 * s-pack20.ads: Likewise.
7506 * s-pack21.adb: Likewise.
7507 * s-pack21.ads: Likewise.
7508 * s-pack22.adb: Likewise.
7509 * s-pack22.ads: Likewise.
7510 * s-pack23.adb: Likewise.
7511 * s-pack23.ads: Likewise.
7512 * s-pack24.adb: Likewise.
7513 * s-pack24.ads: Likewise.
7514 * s-pack25.adb: Likewise.
7515 * s-pack25.ads: Likewise.
7516 * s-pack26.adb: Likewise.
7517 * s-pack26.ads: Likewise.
7518 * s-pack27.adb: Likewise.
7519 * s-pack27.ads: Likewise.
7520 * s-pack28.adb: Likewise.
7521 * s-pack28.ads: Likewise.
7522 * s-pack29.adb: Likewise.
7523 * s-pack29.ads: Likewise.
7524 * s-pack30.adb: Likewise.
7525 * s-pack30.ads: Likewise.
7526 * s-pack31.adb: Likewise.
7527 * s-pack31.ads: Likewise.
7528 * s-pack33.adb: Likewise.
7529 * s-pack33.ads: Likewise.
7530 * s-pack34.adb: Likewise.
7531 * s-pack34.ads: Likewise.
7532 * s-pack35.adb: Likewise.
7533 * s-pack35.ads: Likewise.
7534 * s-pack36.adb: Likewise.
7535 * s-pack36.ads: Likewise.
7536 * s-pack37.adb: Likewise.
7537 * s-pack37.ads: Likewise.
7538 * s-pack38.adb: Likewise.
7539 * s-pack38.ads: Likewise.
7540 * s-pack39.adb: Likewise.
7541 * s-pack39.ads: Likewise.
7542 * s-pack40.adb: Likewise.
7543 * s-pack40.ads: Likewise.
7544 * s-pack41.adb: Likewise.
7545 * s-pack41.ads: Likewise.
7546 * s-pack42.adb: Likewise.
7547 * s-pack42.ads: Likewise.
7548 * s-pack43.adb: Likewise.
7549 * s-pack43.ads: Likewise.
7550 * s-pack44.adb: Likewise.
7551 * s-pack44.ads: Likewise.
7552 * s-pack45.adb: Likewise.
7553 * s-pack45.ads: Likewise.
7554 * s-pack46.adb: Likewise.
7555 * s-pack46.ads: Likewise.
7556 * s-pack47.adb: Likewise.
7557 * s-pack47.ads: Likewise.
7558 * s-pack48.adb: Likewise.
7559 * s-pack48.ads: Likewise.
7560 * s-pack49.adb: Likewise.
7561 * s-pack49.ads: Likewise.
7562 * s-pack50.adb: Likewise.
7563 * s-pack50.ads: Likewise.
7564 * s-pack51.adb: Likewise.
7565 * s-pack51.ads: Likewise.
7566 * s-pack52.adb: Likewise.
7567 * s-pack52.ads: Likewise.
7568 * s-pack53.adb: Likewise.
7569 * s-pack53.ads: Likewise.
7570 * s-pack54.adb: Likewise.
7571 * s-pack54.ads: Likewise.
7572 * s-pack55.adb: Likewise.
7573 * s-pack55.ads: Likewise.
7574 * s-pack56.adb: Likewise.
7575 * s-pack56.ads: Likewise.
7576 * s-pack57.adb: Likewise.
7577 * s-pack57.ads: Likewise.
7578 * s-pack58.adb: Likewise.
7579 * s-pack58.ads: Likewise.
7580 * s-pack59.adb: Likewise.
7581 * s-pack59.ads: Likewise.
7582 * s-pack60.adb: Likewise.
7583 * s-pack60.ads: Likewise.
7584 * s-pack61.adb: Likewise.
7585 * s-pack61.ads: Likewise.
7586 * s-pack62.adb: Likewise.
7587 * s-pack62.ads: Likewise.
7588 * s-pack63.adb: Likewise.
7589 * s-pack63.ads: Likewise.
7590 * s-parame-ae653.ads: Likewise.
7591 * s-parame-hpux.ads: Likewise.
7592 * s-parame-rtems.adb: Likewise.
7593 * s-parame-vms-alpha.ads: Likewise.
7594 * s-parame-vms-ia64.ads: Likewise.
7595 * s-parame-vms-restrict.ads: Likewise.
7596 * s-parame-vxworks.adb: Likewise.
7597 * s-parame-vxworks.ads: Likewise.
7598 * s-parame.adb: Likewise.
7599 * s-parame.ads: Likewise.
7600 * s-parint.adb: Likewise.
7601 * s-parint.ads: Likewise.
7602 * s-pooglo.adb: Likewise.
7603 * s-pooglo.ads: Likewise.
7604 * s-pooloc.adb: Likewise.
7605 * s-pooloc.ads: Likewise.
7606 * s-poosiz.adb: Likewise.
7607 * s-poosiz.ads: Likewise.
7608 * s-powtab.ads: Likewise.
7609 * s-proinf-irix-athread.adb: Likewise.
7610 * s-proinf-irix-athread.ads: Likewise.
7611 * s-proinf.adb: Likewise.
7612 * s-proinf.ads: Likewise.
7613 * s-purexc.ads: Likewise.
7614 * s-rannum.adb: Likewise.
7615 * s-rannum.ads: Likewise.
7616 * s-restri.adb: Likewise.
7617 * s-restri.ads: Likewise.
7618 * s-rident.ads: Likewise.
7619 * s-rpc.adb: Likewise.
7620 * s-rpc.ads: Likewise.
7621 * s-scaval.adb: Likewise.
7622 * s-scaval.ads: Likewise.
7623 * s-secsta.adb: Likewise.
7624 * s-secsta.ads: Likewise.
7625 * s-sequio.adb: Likewise.
7626 * s-sequio.ads: Likewise.
7627 * s-shasto.adb: Likewise.
7628 * s-shasto.ads: Likewise.
7629 * s-soflin.adb: Likewise.
7630 * s-soflin.ads: Likewise.
7631 * s-solita.adb: Likewise.
7632 * s-solita.ads: Likewise.
7633 * s-sopco3.adb: Likewise.
7634 * s-sopco3.ads: Likewise.
7635 * s-sopco4.adb: Likewise.
7636 * s-sopco4.ads: Likewise.
7637 * s-sopco5.adb: Likewise.
7638 * s-sopco5.ads: Likewise.
7639 * s-stache.adb: Likewise.
7640 * s-stache.ads: Likewise.
7641 * s-stalib.adb: Likewise.
7642 * s-stalib.ads: Likewise.
7643 * s-stausa.adb: Likewise.
7644 * s-stausa.ads: Likewise.
7645 * s-stchop-limit.ads: Likewise.
7646 * s-stchop-rtems.adb: Likewise.
7647 * s-stchop-vxworks.adb: Likewise.
7648 * s-stchop.adb: Likewise.
7649 * s-stchop.ads: Likewise.
7650 * s-stoele.adb: Likewise.
7651 * s-stoele.ads: Likewise.
7652 * s-stopoo.adb: Likewise.
7653 * s-stopoo.ads: Likewise.
7654 * s-stratt.adb: Likewise.
7655 * s-stratt.ads: Likewise.
7656 * s-strcom.adb: Likewise.
7657 * s-strcom.ads: Likewise.
7658 * s-string.adb: Likewise.
7659 * s-string.ads: Likewise.
7660 * s-strops.adb: Likewise.
7661 * s-strops.ads: Likewise.
7662 * s-strxdr.adb: Likewise.
7663 * s-ststop.adb: Likewise.
7664 * s-ststop.ads: Likewise.
7665 * s-taasde.adb: Likewise.
7666 * s-taasde.ads: Likewise.
7667 * s-tadeca.adb: Likewise.
7668 * s-tadeca.ads: Likewise.
7669 * s-tadert.adb: Likewise.
7670 * s-tadert.ads: Likewise.
7671 * s-taenca.adb: Likewise.
7672 * s-taenca.ads: Likewise.
7673 * s-taprob.ads: Likewise.
7674 * s-taprop-dummy.adb: Likewise.
7675 * s-taprop-hpux-dce.adb: Likewise.
7676 * s-taprop-irix.adb: Likewise.
7677 * s-taprop-linux.adb: Likewise.
7678 * s-taprop-lynxos.adb: Likewise.
7679 * s-taprop-mingw.adb: Likewise.
7680 * s-taprop-posix.adb: Likewise.
7681 * s-taprop-solaris.adb: Likewise.
7682 * s-taprop-tru64.adb: Likewise.
7683 * s-taprop-vms.adb: Likewise.
7684 * s-taprop-vxworks.adb: Likewise.
7685 * s-taprop.ads: Likewise.
7686 * s-tarest.adb: Likewise.
7687 * s-tarest.ads: Likewise.
7688 * s-tasdeb.adb: Likewise.
7689 * s-tasdeb.ads: Likewise.
7690 * s-tasinf-irix.ads: Likewise.
7691 * s-tasinf-linux.adb: Likewise.
7692 * s-tasinf-linux.ads: Likewise.
7693 * s-tasinf-mingw.adb: Likewise.
7694 * s-tasinf-mingw.ads: Likewise.
7695 * s-tasinf-solaris.adb: Likewise.
7696 * s-tasinf-solaris.ads: Likewise.
7697 * s-tasinf-tru64.ads: Likewise.
7698 * s-tasinf.adb: Likewise.
7699 * s-tasinf.ads: Likewise.
7700 * s-tasini.adb: Likewise.
7701 * s-tasini.ads: Likewise.
7702 * s-taskin.adb: Likewise.
7703 * s-taskin.ads: Likewise.
7704 * s-taspri-dummy.ads: Likewise.
7705 * s-taspri-hpux-dce.ads: Likewise.
7706 * s-taspri-mingw.ads: Likewise.
7707 * s-taspri-solaris.ads: Likewise.
7708 * s-taspri-tru64.ads: Likewise.
7709 * s-taspri-vms.ads: Likewise.
7710 * s-taspri-vxworks.ads: Likewise.
7711 * s-tasque.adb: Likewise.
7712 * s-tasque.ads: Likewise.
7713 * s-tasren.adb: Likewise.
7714 * s-tasren.ads: Likewise.
7715 * s-tasres.ads: Likewise.
7716 * s-tassta.adb: Likewise.
7717 * s-tassta.ads: Likewise.
7718 * s-tasuti.adb: Likewise.
7719 * s-tasuti.ads: Likewise.
7720 * s-tfsetr-default.adb: Likewise.
7721 * s-tfsetr-vxworks.adb: Likewise.
7722 * s-tpinop.adb: Likewise.
7723 * s-tpinop.ads: Likewise.
7724 * s-tpoben.adb: Likewise.
7725 * s-tpoben.ads: Likewise.
7726 * s-tpobop.adb: Likewise.
7727 * s-tpobop.ads: Likewise.
7728 * s-tpopde-vms.adb: Likewise.
7729 * s-tpopde-vms.ads: Likewise.
7730 * s-tpopsp-lynxos.adb: Likewise.
7731 * s-tpopsp-posix-foreign.adb: Likewise.
7732 * s-tpopsp-posix.adb: Likewise.
7733 * s-tpopsp-solaris.adb: Likewise.
7734 * s-tpopsp-vxworks.adb: Likewise.
7735 * s-tporft.adb: Likewise.
7736 * s-tposen.adb: Likewise.
7737 * s-tposen.ads: Likewise.
7738 * s-traceb.adb: Likewise.
7739 * s-traceb.ads: Likewise.
7740 * s-traces-default.adb: Likewise.
7741 * s-traces.adb: Likewise.
7742 * s-traces.ads: Likewise.
7743 * s-traent-vms.adb: Likewise.
7744 * s-traent-vms.ads: Likewise.
7745 * s-traent.adb: Likewise.
7746 * s-traent.ads: Likewise.
7747 * s-trafor-default.adb: Likewise.
7748 * s-trafor-default.ads: Likewise.
7749 * s-tratas-default.adb: Likewise.
7750 * s-tratas.adb: Likewise.
7751 * s-tratas.ads: Likewise.
7752 * s-unstyp.ads: Likewise.
7753 * s-utf_32.adb: Likewise.
7754 * s-utf_32.ads: Likewise.
7755 * s-vaflop-vms-alpha.adb: Likewise.
7756 * s-vaflop.adb: Likewise.
7757 * s-vaflop.ads: Likewise.
7758 * s-valboo.adb: Likewise.
7759 * s-valboo.ads: Likewise.
7760 * s-valcha.adb: Likewise.
7761 * s-valcha.ads: Likewise.
7762 * s-valdec.adb: Likewise.
7763 * s-valdec.ads: Likewise.
7764 * s-valenu.adb: Likewise.
7765 * s-valenu.ads: Likewise.
7766 * s-valint.adb: Likewise.
7767 * s-valint.ads: Likewise.
7768 * s-vallld.adb: Likewise.
7769 * s-vallld.ads: Likewise.
7770 * s-vallli.adb: Likewise.
7771 * s-vallli.ads: Likewise.
7772 * s-valllu.adb: Likewise.
7773 * s-valllu.ads: Likewise.
7774 * s-valrea.adb: Likewise.
7775 * s-valrea.ads: Likewise.
7776 * s-valuns.adb: Likewise.
7777 * s-valuns.ads: Likewise.
7778 * s-valuti.adb: Likewise.
7779 * s-valuti.ads: Likewise.
7780 * s-valwch.adb: Likewise.
7781 * s-valwch.ads: Likewise.
7782 * s-veboop.adb: Likewise.
7783 * s-veboop.ads: Likewise.
7784 * s-vector.ads: Likewise.
7785 * s-vercon.adb: Likewise.
7786 * s-vercon.ads: Likewise.
7787 * s-vmexta.adb: Likewise.
7788 * s-vmexta.ads: Likewise.
7789 * s-vxwext-kernel.ads: Likewise.
7790 * s-vxwext-rtp.adb: Likewise.
7791 * s-vxwext-rtp.ads: Likewise.
7792 * s-vxwext.ads: Likewise.
7793 * s-vxwork-arm.ads: Likewise.
7794 * s-vxwork-m68k.ads: Likewise.
7795 * s-vxwork-mips.ads: Likewise.
7796 * s-vxwork-ppc.ads: Likewise.
7797 * s-vxwork-sparcv9.ads: Likewise.
7798 * s-vxwork-x86.ads: Likewise.
7799 * s-wchcnv.adb: Likewise.
7800 * s-wchcnv.ads: Likewise.
7801 * s-wchcon.adb: Likewise.
7802 * s-wchcon.ads: Likewise.
7803 * s-wchjis.adb: Likewise.
7804 * s-wchjis.ads: Likewise.
7805 * s-wchstw.adb: Likewise.
7806 * s-wchstw.ads: Likewise.
7807 * s-wchwts.adb: Likewise.
7808 * s-wchwts.ads: Likewise.
7809 * s-widboo.adb: Likewise.
7810 * s-widboo.ads: Likewise.
7811 * s-widcha.adb: Likewise.
7812 * s-widcha.ads: Likewise.
7813 * s-widenu.adb: Likewise.
7814 * s-widenu.ads: Likewise.
7815 * s-widlli.adb: Likewise.
7816 * s-widlli.ads: Likewise.
7817 * s-widllu.adb: Likewise.
7818 * s-widllu.ads: Likewise.
7819 * s-widwch.adb: Likewise.
7820 * s-widwch.ads: Likewise.
7821 * s-win32.ads: Likewise.
7822 * s-winext.ads: Likewise.
7823 * s-wwdcha.adb: Likewise.
7824 * s-wwdcha.ads: Likewise.
7825 * s-wwdenu.adb: Likewise.
7826 * s-wwdenu.ads: Likewise.
7827 * s-wwdwch.adb: Likewise.
7828 * s-wwdwch.ads: Likewise.
7829 * scans.adb: Likewise.
7830 * scans.ads: Likewise.
7831 * seh_init.c: Likewise.
7832 * sfn_scan.adb: Likewise.
7833 * sinfo.adb: Likewise.
7834 * sinfo.ads: Likewise.
7835 * sinput.adb: Likewise.
7836 * sinput.ads: Likewise.
7837 * snames.adb: Likewise.
7838 * snames.ads: Likewise.
7839 * socket.c: Likewise.
7840 * stand.adb: Likewise.
7841 * stand.ads: Likewise.
7842 * stringt.adb: Likewise.
7843 * stringt.ads: Likewise.
7844 * sysdep.c: Likewise.
7845 * system-aix.ads: Likewise.
7846 * system-darwin-ppc.ads: Likewise.
7847 * system-darwin-x86.ads: Likewise.
7848 * system-darwin-x86_64.ads: Likewise.
7849 * system-freebsd-x86.ads: Likewise.
7850 * system-hpux-ia64.ads: Likewise.
7851 * system-hpux.ads: Likewise.
7852 * system-irix-n32.ads: Likewise.
7853 * system-irix-n64.ads: Likewise.
7854 * system-irix-o32.ads: Likewise.
7855 * system-linux-alpha.ads: Likewise.
7856 * system-linux-hppa.ads: Likewise.
7857 * system-linux-ia64.ads: Likewise.
7858 * system-linux-mips.ads: Likewise.
7859 * system-linux-mipsel.ads: Likewise.
7860 * system-linux-ppc.ads: Likewise.
7861 * system-linux-ppc64.ads: Likewise.
7862 * system-linux-s390.ads: Likewise.
7863 * system-linux-s390x.ads: Likewise.
7864 * system-linux-sh4.ads: Likewise.
7865 * system-linux-sparc.ads: Likewise.
7866 * system-linux-sparcv9.ads: Likewise.
7867 * system-linux-x86.ads: Likewise.
7868 * system-linux-x86_64.ads: Likewise.
7869 * system-lynxos-ppc.ads: Likewise.
7870 * system-lynxos-x86.ads: Likewise.
7871 * system-mingw-x86_64.ads: Likewise.
7872 * system-mingw.ads: Likewise.
7873 * system-rtems.ads: Likewise.
7874 * system-solaris-sparc.ads: Likewise.
7875 * system-solaris-sparcv9.ads: Likewise.
7876 * system-solaris-x86.ads: Likewise.
7877 * system-solaris-x86_64.ads: Likewise.
7878 * system-tru64.ads: Likewise.
7879 * system-vms-ia64.ads: Likewise.
7880 * system-vms-zcx.ads: Likewise.
7881 * system-vms.ads: Likewise.
7882 * system-vms_64.ads: Likewise.
7883 * system-vxworks-arm.ads: Likewise.
7884 * system-vxworks-m68k.ads: Likewise.
7885 * system-vxworks-mips.ads: Likewise.
7886 * system-vxworks-ppc.ads: Likewise.
7887 * system-vxworks-sparcv9.ads: Likewise.
7888 * system-vxworks-x86.ads: Likewise.
7889 * system.ads: Likewise.
7890 * table.adb: Likewise.
7891 * table.ads: Likewise.
7892 * targext.c: Likewise.
7893 * targparm.ads: Likewise.
7894 * tree_in.adb: Likewise.
7895 * tree_in.ads: Likewise.
7896 * tree_io.adb: Likewise.
7897 * tree_io.ads: Likewise.
7898 * types.adb: Likewise.
7899 * types.ads: Likewise.
7900 * uintp.adb: Likewise.
7901 * uintp.ads: Likewise.
7902 * uname.adb: Likewise.
7903 * uname.ads: Likewise.
7904 * urealp.adb: Likewise.
7905 * urealp.ads: Likewise.
7906 * vx_stack_info.c: Likewise.
7907 * widechar.adb: Likewise.
7908 * widechar.ads: Likewise.
7909 * exp_attr.adb: Change copyright header to refer to version
7910 3 of the GNU General Public License and to point readers at the
7911 COPYING3 file and the FSF's license web page.
7912 * sem.adb: Likewise.
7913 * sem_attr.ads: Likewise.
7914 * freeze.adb: Likewise.
7915 * freeze.ads: Likewise.
7916 * errout.ads: Likewise.
7917 * erroutc.adb: Likewise.
7918 * exp_ch11.ads: Likewise.
7919
7920 2009-04-09 Jakub Jelinek <jakub@redhat.com>
7921
7922 * config-lang.in: Change copyright header to refer to version
7923 3 of the GNU General Public License and to point readers at the
7924 COPYING3 file and the FSF's license web page.
7925 * gcc-interface/trans.c: Likewise.
7926 * gnathtml.pl: Likewise.
7927 * gcc-interface/ada.h: Likewise. Remove runtime exception.
7928 * gcc-interface/gigi.h: Likewise.
7929 * gcc-interface/misc.c: Likewise.
7930 * gcc-interface/targtyps.c: Likewise.
7931
7932 2009-04-09 Nicolas Setton <setton@adacore.com>
7933
7934 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
7935
7936 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
7937 struct_timeval.
7938
7939 2009-04-09 Bob Duff <duff@adacore.com>
7940
7941 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
7942 internally-generated nodes related to select statements to avoid
7943 confusing the debugger.
7944
7945 2009-04-09 Pascal Obry <obry@adacore.com>
7946
7947 * make.adb: Ensure that all linker arguments are duplicated.
7948
7949 2009-04-09 Robert Dewar <dewar@adacore.com>
7950
7951 * sem_ch5.adb: Minor reformatting
7952
7953 2009-04-09 Vincent Celier <celier@adacore.com>
7954
7955 * vms_data.ads:
7956 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
7957 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
7958 New qualifier /LXDEBUG=nnn for -gnatDnnn
7959 For H820-010
7960
7961 * gnat_ugn.texi:
7962 Update documentation for VMS qualifiers equivalent to -gnatGnn and
7963 -gnatDnn
7964
7965 2009-04-09 Nicolas Setton <setton@adacore.com>
7966
7967 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
7968 to match layout of siginfo_t in sys/signal.h.
7969
7970 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
7971
7972 2009-04-09 Thomas Quinot <quinot@adacore.com>
7973
7974 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
7975
7976 2009-04-09 Nicolas Setton <setton@adacore.com>
7977
7978 * s-oscons-tmplt.c: Allow long lines in the generated spec.
7979 Add generation of Darwin-specific constants needed when binding to the
7980 pthread library.
7981
7982 2009-04-09 Robert Dewar <dewar@adacore.com>
7983
7984 * checks.adb:
7985 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
7986 when no invalid values exist, Avoid duplicate read of atomic variable.
7987
7988 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
7989 (Standard_Unsigned): Set Is_Known_Valid
7990
7991 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
7992 subtype declaration if no constraint.
7993 (Set_Modular_Size): Set Is_Known_Valid if appropriate
7994 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
7995
7996 2009-04-09 Robert Dewar <dewar@adacore.com>
7997
7998 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
7999 switch.ads: for numeric switches, an optional equal sign is always
8000 allowed.
8001
8002 2009-04-09 Vincent Celier <celier@adacore.com>
8003
8004 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8005 the case of file names is not significant.
8006
8007 2009-04-09 Vincent Celier <celier@adacore.com>
8008
8009 * errout.adb: Remove dependency on package Style
8010
8011 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8012 moved to Stylesw.
8013
8014 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8015 Styleg.
8016
8017 * errutil.adb, par.adb: Import Stylesw
8018
8019 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8020
8021 * opt.ads: Fix typos.
8022
8023 2009-04-09 Robert Dewar <dewar@adacore.com>
8024
8025 * einfo.adb: Minor reformatting
8026
8027 2009-04-09 Robert Dewar <dewar@adacore.com>
8028
8029 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8030 units.
8031
8032 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8033
8034 2009-04-09 Robert Dewar <dewar@adacore.com>
8035
8036 * g-comver.adb: Minor reformatting.
8037
8038 2009-04-09 Thomas Quinot <quinot@adacore.com>
8039
8040 * lib-load.ads (Load_Unit): Update documentation.
8041
8042 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8043
8044 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8045 named in a with_clause, retain the with_clause to preserve a
8046 limited_with indication.
8047
8048 2009-04-09 Robert Dewar <dewar@adacore.com>
8049
8050 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8051 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8052 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8053 possible to replace an OR of two separate tests.
8054
8055 2009-04-09 Robert Dewar <dewar@adacore.com>
8056
8057 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8058 Maximum_Messages.
8059
8060 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8061 warning status as well.
8062
8063 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8064
8065 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8066 Maximum_Messages.
8067
8068 * bindusg.adb, usage.adb: Update line for -gnatm switch
8069
8070 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8071 -mnn binder switch.
8072
8073 2009-04-09 Robert Dewar <dewar@adacore.com>
8074
8075 * sem_ch10.adb: Minor reformatting.
8076
8077 2009-04-09 Bob Duff <duff@adacore.com>
8078
8079 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8080 Set Sloc of generated nodes for calls to Undefer_Aborts and
8081 Save_Occurrence to No_Location, so the debugger ignores them and
8082 therefore does not jump back and forth when single stepping.
8083
8084 2009-04-09 Robert Dewar <dewar@adacore.com>
8085
8086 * switch-b.adb: Minor reformatting.
8087
8088 2009-04-09 Robert Dewar <dewar@adacore.com>
8089
8090 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8091 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8092 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8093 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8094 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8095 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8096 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8097 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8098 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8099 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8100 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8101
8102 2009-04-09 Robert Dewar <dewar@adacore.com>
8103
8104 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8105
8106 * atree.h: Add Elist26
8107
8108 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8109 backends.
8110
8111 2009-04-09 Javier Miranda <miranda@adacore.com>
8112
8113 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8114 retrieve from the Dispatch_Table_Wrappers list the external name.
8115 Addition of documentation.
8116 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8117 used to export secondary dispatch tables (in the previous version of
8118 the frontend only primary dispatch tables were exported). Addition of
8119 documentation.
8120 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8121 dispatch table of a given tagged type.
8122 (Make_Tags): Modified to import secondary dispatch tables.
8123
8124 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8125 (Constant_Redeclaration): Code cleanup.
8126
8127 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8128 Dispatch_Table_Wrappers. Update documentation.
8129
8130 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8131 Renamed to Dispatch_Table_Wrappers.
8132
8133 * sem_util.adb (Collect_Interface_Components): Improve handling of
8134 private types.
8135
8136 * atree.ads (Elist26, Set_Elist26): New subprograms
8137
8138 * atree.adb (Elist26, Set_Elist26): New subprograms
8139
8140 2009-04-09 Javier Miranda <miranda@adacore.com>
8141
8142 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8143 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8144 tagged types.
8145
8146 2009-04-09 Robert Dewar <dewar@adacore.com>
8147
8148 * s-direio.adb: Minor reformatting
8149
8150 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8151
8152 2009-04-09 Robert Dewar <dewar@adacore.com>
8153
8154 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8155
8156 2009-04-09 Pascal Obry <obry@adacore.com>
8157
8158 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8159 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8160 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8161 a-filico.ads: Add some missing overriding keywords.
8162
8163 2009-04-09 Pascal Obry <obry@adacore.com>
8164
8165 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8166 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8167 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8168 reformatting.
8169
8170 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8171
8172 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8173 missing overriding indicator if the new declaration is not seen as
8174 primitive.
8175
8176 2009-04-09 Thomas Quinot <quinot@adacore.com>
8177
8178 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8179 overflows in computation of bounds.
8180
8181 2009-04-09 Pascal Obry <obry@adacore.com>
8182
8183 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8184 typos in comment.
8185
8186 2009-04-09 Robert Dewar <dewar@adacore.com>
8187
8188 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8189 restriction No_Streams
8190
8191 * gnat_rm.texi: Clarify No_Streams restriction
8192
8193 * g-socket.adb: Minor reformatting.
8194
8195 2009-04-09 Thomas Quinot <quinot@adacore.com>
8196
8197 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8198
8199 2009-04-09 Geert Bosch <bosch@adacore.com>
8200
8201 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8202 (Set_Result): Likewise.
8203 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8204 conversion, as required by RM 4.6(31).
8205
8206 2009-04-08 Robert Dewar <dewar@adacore.com>
8207
8208 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8209 suppressed.
8210
8211 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8212 resolution steps.
8213
8214 2009-04-08 Robert Dewar <dewar@adacore.com>
8215
8216 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8217 No_Local_Allocators restriction preventing local instantiation.
8218
8219 2009-04-08 Thomas Quinot <quinot@adacore.com>
8220
8221 * sem_eval.adb: Minor comment fix
8222
8223 2009-04-08 Thomas Quinot <quinot@adacore.com>
8224
8225 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8226 New limited controlled type used to automate the initialization and
8227 finalization of the sockets implementation.
8228 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8229
8230 2009-04-08 Vincent Celier <celier@adacore.com>
8231
8232 * prj-attr.adb: New read-only project-level attribute Project_Dir
8233
8234 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8235 read-only attribute of the same name.
8236 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8237 (Recursive_Process): Ditto
8238
8239 * snames.adb: Add new standard name Project_Dir
8240
8241 * snames.ads: Add new standard name Project_Dir
8242
8243 2009-04-08 Thomas Quinot <quinot@adacore.com>
8244
8245 * checks.adb: Minor reformatting
8246
8247 2009-04-08 Vincent Celier <celier@adacore.com>
8248
8249 * vms_data.ads: Add documentation for new style keyword
8250 OVERRIDING_INDICATORS
8251
8252 2009-04-08 Robert Dewar <dewar@adacore.com>
8253
8254 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8255 spec is in the current unit.
8256
8257 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8258
8259 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8260 presence of entity.
8261
8262 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8263
8264 2009-04-08 Vincent Celier <celier@adacore.com>
8265
8266 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8267
8268 2009-04-08 Thomas Quinot <quinot@adacore.com>
8269
8270 * checks.ads: Minor reformatting
8271
8272 2009-04-08 Robert Dewar <dewar@adacore.com>
8273
8274 * gnat_rm.texi: Update documentation of pragma Obsolescent
8275
8276 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8277 be omitted, and allow Entity parameter to be omitted.
8278
8279 2009-04-08 Thomas Quinot <quinot@adacore.com>
8280
8281 * exp_util.adb: Minor comment fix
8282
8283 2009-04-08 Robert Dewar <dewar@adacore.com>
8284
8285 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8286
8287 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8288 argument with no identifier following one that has an identifier. Was
8289 missed in some cases.
8290
8291 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8292 identifier.
8293 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8294
8295 * snames.adb: Add Name_Policy
8296
8297 * snames.ads: Add Name_Policy
8298
8299 2009-04-08 Robert Dewar <dewar@adacore.com>
8300
8301 * gnat_rm.texi: Minor reformatting
8302
8303 * par-ch2.adb: Minor reformatting
8304
8305 2009-04-08 Robert Dewar <dewar@adacore.com>
8306
8307 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
8308
8309 2009-04-08 Robert Dewar <dewar@adacore.com>
8310
8311 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
8312 properly in the presence of Remote_Types or Remote_Call_Interface.
8313
8314 * sem_util.adb: Add comment.
8315
8316 2009-04-08 Robert Dewar <dewar@adacore.com>
8317
8318 * ug_words: Add /ASSUME_VALID for -gnatB
8319
8320 * vms_data.ads: Add /ASSUME_VALID for -gnatB
8321
8322 * sem_cat.adb: Add clarifying commment
8323
8324 * a-direio.ads (Bytes): Make sure value is non-zero
8325
8326 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8327
8328 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
8329 that does not come from source, check for a rewritten function call in
8330 prefixed notation before other forms of rewriting.
8331
8332 2009-04-08 Robert Dewar <dewar@adacore.com>
8333
8334 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
8335 these are now obsolescent units used only for bootrapping with an
8336 older compiler.
8337
8338 2009-04-08 Robert Dewar <dewar@adacore.com>
8339
8340 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
8341
8342 * sem_ch3.adb: Minor comment updates
8343
8344 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8345
8346 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
8347 that come from source.
8348
8349 2009-04-08 Tristan Gingold <gingold@adacore.com>
8350
8351 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
8352 * gcc-interface/decl.c (prepend_attributes): New case
8353 Pragma_Thread_Local_Storage.
8354 * gcc-interface/utils.c (process_attributes): New case
8355 ATTR_THREAD_LOCAL_STORAGE.
8356
8357 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8358
8359 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
8360 by the back-end if it contains a call to a subprogram without a
8361 previous spec that is declared in the same unit.
8362
8363 * errout.ads: Update comments on uses of dirs
8364
8365 2009-04-08 Robert Dewar <dewar@adacore.com>
8366
8367 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
8368
8369 2009-04-08 Tristan Gingold <gingold@adacore.com>
8370
8371 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
8372 variables.
8373 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
8374
8375 2009-04-08 Vincent Celier <celier@adacore.com>
8376
8377 * prj-nmsc.adb:
8378 (Add_Source): Add the mapping of the unit name to source file name in
8379 the Unit_Sources_HT hash table, if the unit name is not null.
8380
8381 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
8382
8383 * prj.ads (Unit_Sources_Htable): New hash table instantiation
8384 (Project_Tree_Data): New component Unit_Sources_HT
8385
8386 2009-04-08 Thomas Quinot <quinot@adacore.com>
8387
8388 * sem_ch8.adb: Minor reformatting.
8389 Minor code reorganization.
8390
8391 2009-04-08 Robert Dewar <dewar@adacore.com>
8392
8393 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
8394 snames.ads, freeze.adb, par-prag.adb: Add implementation of
8395 pragma Thread_Local_Storage, setting new flag
8396 Has_Pragma_Thread_Local_Storage in corresponding entities.
8397
8398 2009-04-08 Emmanuel Briot <briot@adacore.com>
8399
8400 * prj.ads: Update comment on switches file
8401
8402 * prj-nmsc.adb: Code clean up. Use renaming clauses.
8403
8404 2009-04-08 Robert Dewar <dewar@adacore.com>
8405
8406 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
8407
8408 2009-04-08 Thomas Quinot <quinot@adacore.com>
8409
8410 * ali-util.adb: Minor comment fix
8411
8412 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8413
8414 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
8415 appears in a context clause, and the enclosing package is mentioned in
8416 a limited_with_clause.
8417 (Use_One_Type): Reject clause if type is still incomplete.
8418
8419 2009-04-08 Emmanuel Briot <briot@adacore.com>
8420
8421 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
8422 avoid copies of Source_Data variables when possible, since these
8423 involve calls to memcpy() which are done too many times.
8424
8425 2009-04-08 Robert Dewar <dewar@adacore.com>
8426
8427 * exp_ch4.adb (Expand_Concatenate): Clean up code
8428
8429 2009-04-07 Thomas Quinot <quinot@adacore.com>
8430
8431 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
8432 type for the case of concatenating a constrained array indexed by an
8433 enumeration type.
8434
8435 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8436
8437 * sem_ch6.adb (Check_Conformance): when checking conformance of an
8438 operation that overrides an abstract operation inherited from an
8439 interface, return False if only one of the controlling formals is an
8440 access parameter.
8441
8442 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8443
8444 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
8445 mandated by AI05-105.
8446
8447 2009-04-07 Vincent Celier <celier@adacore.com>
8448
8449 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
8450
8451 2009-04-07 Thomas Quinot <quinot@adacore.com>
8452
8453 * usage.adb: Minor fix in usage message.
8454
8455 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
8456 match declaration; the correct subtype is Node_Id, not Entity_Id,
8457 because the expected node kind is an identifier, not a defining
8458 identifier.
8459
8460 * switch-c.adb: Minor reformatting.
8461
8462 * uintp.adb: Minor reformatting.
8463
8464 2009-04-07 Robert Dewar <dewar@adacore.com>
8465
8466 * exp_ch13.adb: Minor reformatting
8467
8468 2009-04-07 Robert Dewar <dewar@adacore.com>
8469
8470 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
8471 against missing parent.
8472
8473 2009-04-07 Thomas Quinot <quinot@adacore.com>
8474
8475 * xoscons.adb: Minor reformatting
8476
8477 2009-04-07 Robert Dewar <dewar@adacore.com>
8478
8479 * rtsfind.ads: Remove obsolete string concatenation entries
8480
8481 2009-04-07 Robert Dewar <dewar@adacore.com>
8482
8483 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
8484
8485 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8486
8487 * sem_ch10.adb (Check_Body_Required): Handle properly imported
8488 subprograms.
8489
8490 2009-04-07 Gary Dismukes <dismukes@adacore.com>
8491
8492 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
8493 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
8494 is of a scalar or string type then suppress the setting of the
8495 expression to Empty.
8496
8497 * freeze.adb (Warn_Overlay): Also emit the warnings about default
8498 initialization for the cases of scalar and string objects when
8499 Init_Or_Norm_Scalars is True.
8500
8501 2009-04-07 Bob Duff <duff@adacore.com>
8502
8503 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
8504
8505 2009-04-07 Bob Duff <duff@adacore.com>
8506
8507 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
8508 Form parameter of Text_Translation=No allows binary mode for Text_IO
8509 files.
8510
8511 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
8512
8513 2009-04-07 Javier Miranda <miranda@adacore.com>
8514
8515 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
8516 processing the bounds for bit packed arrays or VM target machines.
8517
8518 2009-04-07 Thomas Quinot <quinot@adacore.com>
8519
8520 * g-sothco.ads (Int_Access): Remove extraneous access type (use
8521 anonymous access instead).
8522 (Get_Socket_From_Set): Fix incorrectly reverted formals
8523 Last and Socket to match the underlying C routine.
8524
8525 * g-socket.adb, g-socket.ads
8526 (Get): Use named parameter associations instead of positional ones in
8527 call go Get_Socket_From_Set, since this routine has two formals of the
8528 same type.
8529 (Image): New procedure.
8530
8531 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8532 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
8533 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
8534 for type of Arg formal.
8535
8536 * sem_warn.adb: Minor reformatting
8537
8538 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8539
8540 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
8541 over record components.
8542
8543 2009-04-07 Nicolas Roche <roche@adacore.com>
8544
8545 * gsocket.h:
8546 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
8547 has disappeared between VxWorks 6.4 and VxWorks 6.5
8548 In RTP mode use time.h instead of times.h
8549
8550 2009-04-07 Robert Dewar <dewar@adacore.com>
8551
8552 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
8553
8554 2009-04-07 Kevin Pouget <pouget@adacore.com>
8555
8556 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
8557 expanded code for constrained types.
8558
8559 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8560
8561 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
8562 AI05-105: in an object renaming declaration, anonymousness is a name
8563 resolution rule.
8564
8565 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
8566
8567 2009-04-07 Arnaud Charlet <charlet@adacore.com>
8568
8569 * g-comlin.adb (Expansion): Fix old regression: also return directory
8570 names when matching.
8571
8572 2009-04-07 Robert Dewar <dewar@adacore.com>
8573
8574 * exp_ch4.adb:
8575 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
8576 (Expand_Concatenate): New name for Expand_Concatenate_String which has
8577 been rewritten to handle all types.
8578 (Expand_Concatenate_Other): Remove
8579
8580 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8581
8582 * lib-xref.adb (Generate_Reference): A default subprogram in an
8583 instance appears within the tree for the instance, but generates an
8584 implicit reference in the ALI.
8585
8586 2009-04-07 Javier Miranda <miranda@adacore.com>
8587
8588 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
8589 derived type that has discriminants, propagate the list of interfaces
8590 to the corresponding new base type. In addition, propagate also
8591 attribute Limited_Present (found working in this patch).
8592
8593 2009-04-07 Robert Dewar <dewar@adacore.com>
8594
8595 * exp_ch4.adb: Rewrite concatenation expansion.
8596
8597 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8598
8599 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
8600 relevant to packages.
8601
8602 2009-04-07 Robert Dewar <dewar@adacore.com>
8603
8604 * sem_attr.adb: Minor reformatting
8605
8606 * sem_ch6.adb: Minor reformatting
8607
8608 2009-04-07 Tristan Gingold <gingold@adacore.com>
8609
8610 * socket.c: Add more protections against S_resolvLib_ macros.
8611
8612 2009-04-07 Thomas Quinot <quinot@adacore.com>
8613
8614 * sem_attr.adb: Minor reformatting
8615
8616 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8617
8618 * sem_ch6.adb (New_Overloaded_Entity): New predicate
8619 Is_Overriding_Alias to handle properly types that inherit two homonym
8620 operations that have distinct dispatch table entries.
8621
8622 2009-04-07 Emmanuel Briot <briot@adacore.com>
8623
8624 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
8625 looking for the end of a parenthesis group
8626
8627 2009-04-07 Tristan Gingold <gingold@adacore.com>
8628
8629 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
8630
8631 * socket.c Don't use resolvLib_ macros if not defined.
8632
8633 2009-04-07 Robert Dewar <dewar@adacore.com>
8634
8635 * g-socket.adb: Minor reformatting.
8636
8637 * g-socthi-mingw.adb: Minor reformatting
8638
8639 * g-sothco.ads: Minor reformatting
8640
8641 * exp_ch4.adb:
8642 (Expand_Concatenate_String): Complete rewrite to generate efficient code
8643 inline instead of relying on external library routines.
8644
8645 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
8646 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
8647 obsolescent
8648
8649 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8650
8651 * sem_attr.adb:
8652 (Eval_Attribute): for attributes of array objects that are not strings,
8653 attributes are not static if nominal subtype of object is unconstrained.
8654
8655 2009-04-07 Ed Schonberg <schonberg@adacore.com>
8656
8657 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
8658 operations for a type T in an instance do not override each other,
8659 when T is derived from a formal private type, the corresponding
8660 operations inherited by a type derived from T outside
8661 of the instance do not override each other either.
8662
8663 2009-04-07 Robert Dewar <dewar@adacore.com>
8664
8665 (Osint.Fail): Change calling sequence to have one string arg
8666 (Make.Make_Failed): Same change
8667 All callers are adjusted to use concatenation
8668
8669 2009-04-07 Robert Dewar <dewar@adacore.com>
8670
8671 * exp_ch4.adb: Fix documentation typo
8672
8673 2009-04-07 Robert Dewar <dewar@adacore.com>
8674
8675 * tbuild.ads: Minor reformatting
8676
8677 2009-04-07 Javier Miranda <miranda@adacore.com>
8678
8679 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
8680 when compiling under ZFP runtime.
8681
8682 2009-04-07 Robert Dewar <dewar@adacore.com>
8683
8684 * g-comlin.adb: Minor reformatting
8685
8686 2009-04-07 Thomas Quinot <quinot@adacore.com>
8687
8688 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8689 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
8690 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
8691 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
8692
8693 2009-04-07 Robert Dewar <dewar@adacore.com>
8694
8695 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
8696
8697 * opt.ads (Sprint_Line_Limit): New parameter
8698
8699 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
8700
8701 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
8702
8703 * usage.adb: Output information for -gnatGnn -gnatDnn
8704
8705 2009-04-07 Robert Dewar <dewar@adacore.com>
8706
8707 * make.adb: Minor reformatting
8708
8709 2009-04-07 Robert Dewar <dewar@adacore.com>
8710
8711 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
8712
8713 2009-04-07 Robert Dewar <dewar@adacore.com>
8714
8715 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
8716
8717 2009-04-07 Robert Dewar <dewar@adacore.com>
8718
8719 * checks.adb:
8720 Remove Assume_Valid parameter from In_Subrange_Of calls
8721
8722 * sem_eval.adb:
8723 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
8724 (Is_In_Range): Remove incorrect use of Assume_Valid
8725 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
8726
8727 * sem_eval.ads:
8728 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
8729 (Is_In_Range): Documentation cleanup
8730 (Is_Out_Of_Range): Documentation cleanup
8731
8732 * gnat_rm.texi:
8733 Add documentation for Assume_No_Invalid_Values pragma
8734
8735 * sem_ch12.adb: Minor reformatting
8736
8737 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
8738
8739 * sem_prag.adb: Improve error message.
8740
8741 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
8742 LF/CR no longer recognized as line terminator
8743
8744 * switch.ads: Minor documentation improvement
8745
8746 * vms_data.ads: Minor reformatting
8747
8748 2009-04-07 Robert Dewar <dewar@adacore.com>
8749
8750 * checks.adb (Determine_Range): Add Assume_Valid parameter
8751
8752 * checks.ads (Determine_Range): Add Assume_Valid parameter
8753
8754 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
8755 Is_Null_Loop to suppress warnings in a loop body.
8756
8757 * exp_ch4.adb:
8758 (Rewrite_Comparison): Major rewrite to accomodate invalid values
8759
8760 * exp_ch5.adb:
8761 (Expand_N_Loop_Statement): Delete loop known not to execute
8762
8763 * opt.ads:
8764 (Assume_No_Invalid_Values): Now set to False, and as documented, this
8765 fully enables the proper handling of invalid values.
8766
8767 * sem_attr.adb:
8768 New calling sequence for Is_In_Range
8769
8770 * sem_ch5.adb:
8771 (Analyze_Iteration_Scheme): Accomodate possible invalid values
8772 in determining if a loop range is null.
8773
8774 * sem_eval.adb:
8775 (Is_In_Range): Add Assume_Valid parameter
8776 (Is_Out_Of_Range): Add Assume_Valid_Parameter
8777 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
8778 also to do more accurate and complete range analysis, catching more
8779 cases.
8780
8781 * sem_eval.ads:
8782 (Is_In_Range): Add Assume_Valid parameter
8783 (Is_Out_Of_Range): Add Assume_Valid_Parameter
8784
8785 * sem_util.adb:
8786 New calling sequence for Is_In_Range
8787
8788 * sinfo.adb:
8789 (Suppress_Loop_Warnings): New flag
8790
8791 * sinfo.ads:
8792 (Is_Null_Loop): Update documentation
8793 (Suppress_Loop_Warnings): New flag
8794
8795 * gnat_ugn.texi: Document -gnatB switch
8796
8797 2009-04-07 Arnaud Charlet <charlet@adacore.com>
8798
8799 * gnatvsn.ads: Bump version number.
8800
8801 2009-04-07 Thomas Quinot <quinot@adacore.com>
8802
8803 * exp_ch3.adb: Minor rewording (comments)
8804
8805 2009-04-07 Robert Dewar <dewar@adacore.com>
8806
8807 * exp_disp.adb: Minor reformatting
8808
8809 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8810
8811 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
8812 underlying type.
8813 * gcc-interface/trans.c (lvalue_required_p): Likewise.
8814
8815 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8816
8817 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
8818 Do not convert the result. Remove obsolete comment.
8819
8820 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8821
8822 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
8823 DECL_CONTEXT.
8824 (Subprogram_Body_to_gnu): Fix pasto.
8825
8826 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8827
8828 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
8829 (void_type_decl_node): Remove.
8830 (init_gigi_decls): Likewise.
8831 (gnat_install_builtins): Declare.
8832 (record_builtin_type): Likewise.
8833 (create_type_stub_decl): Likewise.
8834 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
8835 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
8836 artificial.
8837 <E_Array_Subtype>: Use the index types, not only their name, in the
8838 record giving the names of the bounds, if any.
8839 For a packed array type, make it artificial only if the base type
8840 was artificial as well. Remove redundant statement.
8841 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
8842 dummy types.
8843 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
8844 (rest_of_type_decl_compilation_no_defer): Likewise.
8845 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
8846 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
8847 and use create_type_stub_decl to build it.
8848 (gnat_pushdecl): Rewrite condition.
8849 (gnat_install_builtins): Remove bogus declaration.
8850 (record_builtin_type): New function.
8851 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
8852 of types.
8853 (create_type_stub_decl): New function.
8854 (create_type_decl): Assert that the type is not dummy. If the type
8855 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
8856 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
8857 (build_vms_descriptor): Likewise.
8858 (init_gigi_decls): Delete and move bulk of code to...
8859 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
8860 (emit_range_check): Add gnat_node parameter.
8861 (emit_index_check): Likewise.
8862 (emit_check): Likewise.
8863 (build_unary_op_trapv): Likewise.
8864 (build_binary_op_trapv): Likewise.
8865 (convert_with_check): Likewise.
8866 (Attribute_to_gnu): Adjust calls for above changes.
8867 (call_to_gnu): Likewise.
8868 (gnat_to_gnu): Likewise.
8869 (assoc_to_constructor): Likewise.
8870 (pos_to_constructor): Likewise.
8871 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
8872 (process_type): Do not create TYPE_DECL for dummy types.
8873
8874 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8875
8876 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
8877 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
8878 * gcc-interface/utils.c: Fix comments.
8879
8880 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8881
8882 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
8883 move around.
8884 (gnat_to_gnu_type): Move around.
8885 (get_unpadded_type): Likewise.
8886 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
8887 Tidy comments.
8888
8889 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
8890
8891 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
8892 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
8893 (call_to_gnu): Invoke it instead of manually checking.
8894
8895 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
8896
8897 * gcc-interface/utils.c (finish_record_type): Force structural equality
8898 checks if the record type is discriminated.
8899
8900 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
8901
8902 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
8903 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
8904 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
8905 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
8906 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
8907 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
8908 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
8909
8910 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
8911
8912 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
8913 of TREE_CONSTANT_OVERFLOW.
8914
8915 2009-03-30 Joseph Myers <joseph@codesourcery.com>
8916
8917 PR rtl-optimization/323
8918 * gcc-interface/misc.c (gnat_post_options): Set
8919 flag_excess_precision_cmdline. Give an error for
8920 -fexcess-precision=standard for processors where the option is
8921 significant.
8922
8923 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8924
8925 PR c/39323
8926 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
8927 on bit_align.
8928
8929 2009-03-11 Olivier Hainque <hainque@adacore.com>
8930
8931 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
8932 checks processing, remove unintended TREE_TYPE walk on index type.
8933
8934 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
8935
8936 PR ada/39264
8937 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
8938 call make_packable_type on fat pointer types.
8939 <E_Array_Subtype>: Likewise.
8940 <E_Record_Subtype>: Call make_packable_type on all record types
8941 except for fat pointer types.
8942 (make_packable_type): Likewise.
8943 (gnat_to_gnu_field): Likewise.
8944
8945 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
8946
8947 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
8948 EH_MECHANISM change made on 2007-12-06.
8949
8950 2009-02-26 Andreas Schwab <schwab@suse.de>
8951
8952 PR ada/39172
8953 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
8954 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
8955 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
8956 (AWK): Substitute.
8957 (target_cpu_default): Substitute.
8958
8959 2009-02-25 Laurent GUERBY <laurent@guerby.net>
8960
8961 PR ada/39221
8962 * a-teioed.adb (Expand): Fix Result overflow.
8963
8964 2009-02-25 Laurent GUERBY <laurent@guerby.net>
8965
8966 * gcc-interface/Makefile.in: Fix multilib handling for
8967 sparc64-linux.
8968
8969 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8970
8971 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
8972
8973 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
8974
8975 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
8976
8977 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
8978
8979 * gcc-interface/deftarg.c: Remove.
8980
8981 2009-02-10 Olivier Hainque <hainque@adacore.com>
8982 Eric Botcazou <ebotcazou@adacore.com>
8983
8984 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
8985 (copy_alias_set): Rename into...
8986 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
8987 underlying array of unconstrained arrays for the new type as well.
8988 If the old and new alias sets don't conflict, make one a subset of
8989 the other as per the OP parameter.
8990 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
8991 <E_Record_Type>: Do not copy the alias set for derived types.
8992 For all types, make the alias set of derived types a superset of
8993 that of their parent type.
8994 (make_aligning_type): Adjust calls to copy_alias_set.
8995 (make_packable_type): Likewise.
8996 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
8997 Check for alias set conflict instead of strict equality to issue the
8998 warning.
8999
9000 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9001
9002 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9003 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9004 (copy_alias_set): Assert that arrays have the same aliasing settings.
9005 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9006
9007 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9008
9009 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9010 Set TYPE_NONALIASED_COMPONENT on the array type.
9011
9012 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9013
9014 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9015
9016 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9017
9018 * gcc-interface/Makefile.in: Fix multilib handling for
9019 powerpc64-linux.
9020
9021 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9022
9023 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9024 only useless conversions around renamed objects.
9025
9026 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9027
9028 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9029 the _Tag field before any discriminants in the field list.
9030 (components_to_record): Remove obsolete comment.
9031
9032
9033 \f
9034 Copyright (C) 2009 Free Software Foundation, Inc.
9035
9036 Copying and distribution of this file, with or without modification,
9037 are permitted in any medium without royalty provided the copyright
9038 notice and this notice are preserved.