]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
* exp_ch4.adb, opt.ads: Minor editing.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
bded454f
RD
12009-04-16 Robert Dewar <dewar@adacore.com>
2
3 * Makefile.rtl: Add entries for s-conca?
4
5 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6 of concatenation expansion
7
8 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
9 string cases instead of expanding assignments inline.
10
11 * opt.ads (Optimize_Size): New flag
12
13 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
14 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
15 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
16 s-conca9.adb, s-conca9.ads: New file.
17
4a3b249c
RD
182009-04-16 Robert Dewar <dewar@adacore.com>
19
20 * exp_ch6.adb: Add comments
21
22 * rtsfind.ads: Add entries for s-conca? routines
23
14814170
AC
242009-04-15 Arnaud Charlet <charlet@adacore.com>
25
26 * gcc-interface/Make-lang.in: Update dependencies.
27
28 * gcc-interface/Makefile.in: Update translation for vms.
29
3204b9cd
AC
302009-04-16 Ed Schonberg <schonberg@adacore.com>
31
32 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
33 and made global, to be used when installing parents of a child
34 instance, to provide mappings for entities declared in formal packages
35 of ancestor units. Now called from Install_Formal_Packages.
36
372009-04-16 Doug Rupp <rupp@adacore.com>
38
39 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
40 notation for clarity.
41
42 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
43 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
44 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
45 (Initialize): Initialize Known_Tasks with Environment task.
46
47 * s-taskin.ads (Task_States): Move new states to end for the sake of
48 GDB compatibility.
49
50 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
51
f17f3601
ES
522009-04-16 Ed Schonberg <schonberg@adacore.com>
53
54 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
55 operation has an inline pragma, propagate the flag to the internal
56 unprotected subprogram.
57
5e44c5ea
DR
582009-04-16 Doug Rupp <rupp@adacore.com>
59
60 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
61 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
62 s-taprop-hpux-dce.adb, s-taprop-posix.adb
63 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
64
65 * s-taprop-vms.adb (Enter_Task): Likewise.
66 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
67
68 * s-tassta.adb (Activate_Tasks): After task creation set state to
69 Activating, vice Runnable. Initialize Known_Tasks, moved here from
70 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
71 Set state to Runnable after above.
72 (Task_Wrapper): Set Debug_Event_Run. In exception block set
73 Debug_Event_Terminated.
74
75 * s-taskin.ads (Task_States): Add new states Activiting and
76 Activator_Delay_Sleep.
77 (Bit_Array, Debug_Event_Array): New types.
78 (Global_Task_Debug_Event_Set: New flag.
79 (Common_ATCB): New field Debug_Events.
80
81 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
82
83 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
84 Activator_Sleep.
85
86 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
87 Activating and when Acceptor_Delay_Sleep.
88
89 * s-tasdeb.ads: Add constants for Debug_Events.
90 (Debug_Event_Kind_Type): New subtype.
91 (Signal_Debug_Event): New subprogram.
92
93 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
94
205c14b0
TQ
952009-04-16 Thomas Quinot <quinot@adacore.com>
96
97 * sem_elim.adb: Minor reformatting
98
99 * freeze.adb: Minor reformatting
100
101 * exp_ch4.adb: Minor reformatting
102
b4763f5c
AC
1032009-04-16 Emmanuel Briot <briot@adacore.com>
104
105 * prj-nmsc.adb (Path_Name_Of): fix memory leak
106
1072009-04-16 Robert Dewar <dewar@adacore.com>
108
109 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
110
1112009-04-16 Vincent Celier <celier@adacore.com>
112
113 * fmap.adb (Initialize): Show the current line when the mapping file
114 is detected as "incorrectly formatted".
115
1162009-04-16 Robert Dewar <dewar@adacore.com>
117
118 * sem_ch12.adb: Minor reformatting
119
120 * sem_ch5.adb: Minor comment addition
121
122 * sem_util.adb: Minor reformatting
123
124 * sinput-p.adb: Minor reformatting
125 Add missing pragma Warnings (On)
126
0c72247e
AC
1272009-04-16 Ed Falis <falis@adacore.com>
128
129 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
130
1312009-04-16 Vincent Celier <celier@adacore.com>
132
133 * ali-util.adb: Minor comment spelling error fix
134
014caddb
EB
1352009-04-16 Eric Botcazou <ebotcazou@adacore.com>
136
137 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
138 generate an assignment loop in case of overlap.
139
b2ed7a03
AC
1402009-04-16 Olivier Hainque <hainque@adacore.com>
141
142 * gnat_ugn.texi (gnatmem description): Make it explicit that
143 gnatmem is designed to work in association with static runtime
144 library only.
145
1462009-04-16 Thomas Quinot <quinot@adacore.com>
147
148 * sem_type.adb: Minor reformatting
149
1502009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
151
152 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
153 concerning return codes of gettimeofday and return value check.
154
1552009-04-16 Ed Falis <falis@adacore.com>
156
157 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
158 body can be renaming of imported routines.
159
1602009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
161
162 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
163 targeted fashion.
164
8a912a6e
AC
1652009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
166
167 * exp_ch9.adb: Comment improvements.
168 (Build_Entry_Family_Name): Add parentheses around the index of a entry
169 family member.
170
1712009-04-15 Bob Duff <duff@adacore.com>
172
173 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
174 "while X /= null loop" where X is unchanged inside the loop. We were
175 not warning in this case, because of the pointers -- we feared that the
176 loop variable could be updated via a pointer, if there are any pointers
177 around the place. But that is impossible in this case.
178
179 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
180 the case of dereferences. In X.all, X cannot be an l-value. We now
181 catch that case (and implicit dereferences, too).
182
1832009-04-15 Vincent Celier <celier@adacore.com>
184
185 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
186
1872009-04-15 Ed Schonberg <schonberg@adacore.com>
188
189 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
190 From code reading.
191 (Analyze_Package_Instantiation): If generic unit in child instance is
192 the same as generic unit in parent instance, look for an outer homonym
193 to locate the desired generic.
194
4a13695c
AC
1952009-04-15 Bob Duff <duff@adacore.com>
196
197 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
198 warnings unless the loop comes from source, because checking generated
199 loops is a waste of time, and makes it harder to debug
200 Check_Infinite_Loop_Warning.
201
202 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
203 tested in the while loop is a renaming, do not warn. Otherwise, we get
204 false alarms, because it's usually renaming something that we can't
205 deal with (an indexed component, a global variable, ...).
206
207 * gnat_rm.texi: Fix typo
208
2092009-04-15 Thomas Quinot <quinot@adacore.com>
210
211 * sem_ch6.adb: Minor reformatting
212
c3b36d48
AC
2132009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
214
215 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
216 immediate parent of the controlled function call is a component
217 association.
218
2192009-04-15 Ed Schonberg <schonberg@adacore.com>
220
221 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
222 corresponding class-wide type is also in use.
223
2242009-04-15 Thomas Quinot <quinot@adacore.com>
225
226 * frontend.adb: Minor comment fix
227
1f07382d
AC
2282009-04-15 Robert Dewar <dewar@adacore.com>
229
230 * gnatchop.adb (BOM_Length): New global variable
231 (Write_Unit): Add new parameter Write_BOM
232 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
233 to Write_Unit
234
235 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
236
2372009-04-15 Geert Bosch <bosch@adacore.com>
238
239 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
240 (Backend_Overflow_Checks): Set to True.
241
2422009-04-15 Gary Dismukes <dismukes@adacore.com>
243
244 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
245 keyword is given in a record extension.
246
2472009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
248
249 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
250 of a controlled function call in the context of a record aggregate.
251 This does not apply to array aggregates since the call will be expanded
252 into assignments.
253
2542009-04-15 Ed Falis <falis@adacore.com>
255
256 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
257 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
3405870d
EF
258 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
259 s-osinte-vxworks* and s-vxwext*.
1f07382d 260
6cc60200
AC
2612009-04-15 Arnaud Charlet <charlet@adacore.com>
262
263 * gcc-interface/Make-lang.in: Update dependencies.
264
265 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
266 and s-vxwext*.
267
f66d46ec
AC
2682009-04-15 Robert Dewar <dewar@adacore.com>
269
270 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
271 of node for location for warning messages.
272
273 * gnatchop.adb: Minor reformatting
274
2752009-04-15 Ed Schonberg <schonberg@adacore.com>
276
277 * exp_ch6.adb: additional guard for renaming declarations for in
278 parameters of an array type.
279
bafc9e1d
AC
2802009-04-15 Robert Dewar <dewar@adacore.com>
281
282 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
283 in case they were rewritten by expander (Force_Evaluation).
284
285 * targparm.adb (Get_Target_Parameters): Correct check for
286 Suppress_Exception_Locations.
287
2882009-04-15 Ed Schonberg <schonberg@adacore.com>
289
290 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
291 inlined is of an array type that is not bit-packed, use a renaming
292 declaration to capture its value, rather than a constant declaration.
293
443614e3
AC
2942009-04-15 Robert Dewar <dewar@adacore.com>
295
296 * rtsfind.adb: Minor reformatting.
297
2982009-04-15 Emmanuel Briot <briot@adacore.com>
299
300 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
301 Restore, and free the saved context.
302
3032009-04-15 Gary Dismukes <dismukes@adacore.com>
304
305 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
306 for illegal private extension from a synchronized interface parent in
307 front of check for illegal limited extension so that limited extension
308 from a synchronized interface will be rejected.
309 (Check_Ifaces): Check that a private extension that has a synchronized
310 interface as a progenitor must be explicitly declared synchronized.
311 Also check that a record extension cannot derive from a synchronized
312 interface.
313
991395ab
AC
3142009-04-15 Pascal Obry <obry@adacore.com>
315
316 * adaint.h (__gnat_unlink): Add spec.
317 (__gnat_rename): Likewise.
318
3192009-04-15 Vincent Celier <celier@adacore.com>
320
321 * prj-nmsc.adb: Minor spelling error corrections in error messages
322
3232009-04-15 Robert Dewar <dewar@adacore.com>
324
325 * sinfo.ads: Minor comment update
326
327 * opt.ads: Minor comment updates
328
329 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
330 modular type.
331
3322009-04-15 Ed Schonberg <schonberg@adacore.com>
333
334 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
335 that generates the code needed to update a dispatch table when a
336 primitive operation is declared with a subprogram body without previous
337 spec. Insertion of the generated code is responsibility of the caller.
338 (Make_DT): When building static tables, append the code created by
339 Register_Primitive to update a secondary table after it has been
340 constructed.
341
342 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
343
344 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
345 on an overriding operation that implements an interface operation only
346 if not building static dispatch tables.
347
3482009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
349
350 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
351 does not cause overflow when converted to Duration. Use the safe value
352 as the maximum allowable time delay..
353
3542009-04-15 Jerome Lambourg <lambourg@adacore.com>
355
356 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
357 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
358 translated to "-j 2".
359
3602009-04-15 Bob Duff <duff@adacore.com>
361
362 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
363 with_clauses, to avoid code duplication. Change this processing so we
364 always add a with_clause on the main unit if needed.
365
55cc1a05
AC
3662009-04-15 Pascal Obry <obry@adacore.com>
367
368 Add support for Win32 native encoding for delete/rename routines.
369
370 * adaint.c (__gnat_unlink): New routine.
371 (__gnat_rename): New routine.
372 Simple wrapper routines used to convert to proper encoding on
373 Windows.
374
375 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
376 call to the C library.
377
378 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
379
3802009-04-15 Robert Dewar <dewar@adacore.com>
381
382 * s-tassta.adb: Minor reformatting
383
1f6821b4
AC
3842009-04-15 Robert Dewar <dewar@adacore.com>
385
386 * frontend.adb (Frontend): Set proper default for
387 Warn_On_Non_Local_Exception.
388
389 * opt.ads (Exception_Handler_Encountered): New flag
390 (No_Warn_On_Non_Local_Exception): New flag
391
392 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
393
394 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
395 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
396
3972009-04-15 Cyrille Comar <comar@adacore.com>
398
399 * s-tassta.adb, a-exextr.adb, a-elchha.adb
400 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
401 message when exception traces are active since it would generate
402 redundant information.
403 (Exception_Traces.Notify_Exception): put message output by a critical
404 section to avoid unsynchronized output.
405 (Trace_Unhandled_Exception_In_Task): put message output by a critical
406 section to avoid unsynchronized output.
407
4082009-04-15 Emmanuel Briot <briot@adacore.com>
409
410 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
411 (Free): New subprogram.
412
8aec446b
AC
4132009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
414
415 * a-calend.adb: Add new constant Nanos_In_Four_Years.
416 (Formatting_Operations.Time_Of): Change the way four year chunks of
417 nanoseconds are added to the intermediate result.
418
4192009-04-15 Nicolas Setton <setton@adacore.com>
420
421 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
422 does not need to wait for a carriage return.
423
4242009-04-15 Tristan Gingold <gingold@adacore.com>
425
426 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
427 is set.
428
4292009-04-15 Ed Schonberg <schonberg@adacore.com>
430
431 * freeze.adb (Freeze_Entity): improve error message for improper use of
432 incomplete types.
433 Diagnose additional illegal uses of incomplete types in formal parts.
434 appearing in formal parts.
435
436 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
437
4382009-04-15 Robert Dewar <dewar@adacore.com>
439
440 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
441
442dd5fb
NR
4422009-04-15 Nicolas Roche <roche@adacore.com>
443
444 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
445 current thread.
446
447 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
448
449 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
450
61bee0e3
AC
4512009-04-15 Ed Schonberg <schonberg@adacore.com>
452
453 * sem_ch4.adb: improve error message on exponentiation.
454
4552009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
456
457 * a-calend.adb: Move constant Epoch_Offset from package
458 Conversion_Operations to top level.
459 (Delay_Operations.To_Duration): Define a constant which represents
460 "end of time" and use it as a guard against very distant delay dates.
461 Protect the code against overflow when performing the origin shift to
462 Unix time.
463
361effb1
AC
4642009-04-15 Robert Dewar <dewar@adacore.com>
465
466 * sem_prag.adb: Minor reformatting.
467
468 * sem_type.adb: Minor reformatting
469
4702009-04-15 Javier Miranda <miranda@adacore.com>
471
472 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
473 support to check eliminated subprograms.
474
475 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
476
477 * sem_elim.adb (Set_Eliminated): Add support for elimination of
478 dispatching subprograms.
479
480 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
481 operations. Initialize with "null" the slots of eliminated dispaching
482 primitives.
483 (Write_DT): Add output for eliminated primitives.
484
485 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
486
f7ca1d04
AC
4872009-04-15 Ed Schonberg <schonberg@adacore.com>
488
489 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
490 the second is redundant, regardless of scopes.
491
4922009-04-15 Vincent Celier <celier@adacore.com>
493
494 * prj-nmsc.adb (Get_Directories): Check for sources before checking
495 the object directory as when there are no sources, they may not be any
496 object directory.
497
498 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
499 directory, when there are no exec directory.
500
5012009-04-15 Ed Schonberg <schonberg@adacore.com>
502
503 * sem_type.adb (Remove_Conversions): In order to resolve spurious
504 ambiguities, refine removal of universal interpretations from complex
505 expressions with literal arguments, when some numeric operators have
506 been declared abstract.
507
5082009-04-15 Ed Falis <falis@adacore.com>
509
510 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
511 and backward compatibility for targets using probing for stack overflow
512
5132009-04-15 Ed Schonberg <schonberg@adacore.com>
514
515 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
516 after any declaration, including renaming declarations.
517
4bffd4e0
AC
5182009-04-15 Arnaud Charlet <charlet@adacore.com>
519
520 * gcc-interface/Make-lang.in: Update dependencies.
521
522 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
cbd8be94 523 Update xenomai target pairs.
4bffd4e0 524
a523b302
JM
5252009-04-15 Javier Miranda <miranda@adacore.com>
526
527 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
528
529 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
530 functions returning anonymous access to class-wide limited types. Mark
531 also the containing scope as a task master.
532
533 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
534 limited-withed packages. Required to restore their visibility after
535 processing packages associated with implicit with-clauses.
536
537 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
538 associated with return statements because this work is now done by
539 Check_Anonymous_Return.
540 (Build_Master): Code cleanup.
541
e358346d
AC
5422009-04-15 Thomas Quinot <quinot@adacore.com>
543
544 * sem_warn.ads: Minor reformatting
545
5462009-04-15 Ed Schonberg <schonberg@adacore.com>
547
548 * sem_ch3.adb: better error message for illegal interfaces
549
550 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
551 formal is an incomplete type from a limited_with clause.
552
a9872a59
VC
5532009-04-15 Vincent Celier <celier@adacore.com>
554
555 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
556 Externally_Built indicating if the project is externally built. If it
557 is, and --subdirs is specified, but the subdir does not exist, look
558 for the specified directory, without the subdir.
559
b8aadf01
AC
5602009-04-15 Gary Dismukes <dismukes@adacore.com>
561
562 * a-tasatt.adb: Fix typo, plus minor reformatting
563
564 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
565
566 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
567
5682009-04-15 Ed Schonberg <schonberg@adacore.com>
569
570 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
571 private extension whose parent is a synchronized interface carries an
572 explicit synchronized keyword.
573
a808ba1b
TQ
5742009-04-15 Thomas Quinot <quinot@adacore.com>
575
576 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
577 instantiate generic shared object package with the corresponding
578 record type.
579
e0568eec
AC
5802009-04-15 Arnaud Charlet <charlet@adacore.com>
581
582 * system-linux-sparc.ads: Remove obsolete entries.
583
5842009-04-15 Thomas Quinot <quinot@adacore.com>
585
586 * s-tasuti.ads: Add ??? comment
587
28450a75
ES
5882009-04-15 Ed Schonberg <schonberg@adacore.com>
589
590 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
591 type even if the designated type comes from a limited_with clause, to
592 ensure that the symbol for the finalization list of the access type is
593 created.
594
b0d3b11d
AC
5952009-04-10 Robert Dewar <dewar@adacore.com>
596
597 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
598 for warning suppression.
599
6002009-04-10 Ed Schonberg <schonberg@adacore.com>
601
602 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
603 identical, there is no redudancy to check.
604
6052009-04-10 Gary Dismukes <dismukes@adacore.com>
606
607 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
608 calls initializing SS_Allocator (which is initialized in following
609 code).
610 (Expand_Simple_Function_Return): Add comment about False value for
611 Comes_From_Source on secondary-stack allocator.
612
613 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
614 (Build_Entry_Name): Add comment.
615
fad0600d
AC
6162009-04-10 Robert Dewar <dewar@adacore.com>
617
618 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
619
620 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
621 bound tested, since this is now done more generally in Sem_Res.
622
623 * sem_res.adb (Resolve_Comparison_Op): Add call to
624 Check_Lower_Bound_Tested.
625 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
626
627 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
628 (Low_Bound_Tested): New name for Low_Bound_Known flag
629
630 * exp_ch5.adb: Minor reformatting
631
632 * exp_ch4.adb:
633 Add comments on copying the Comes_From_Source flag for allocators
634
635 * sinfo.ads:
636 Add comments on copying the Comes_From_Source flag for allocators
637
638 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
639 Comes_From_Source flag from old allocator to new one.
640
6412009-04-10 Ed Schonberg <schonberg@adacore.com>
642
643 * sem_ch6.ads: Address missing documentation query
644
6452009-04-10 Vincent Celier <celier@adacore.com>
646
647 * prj-attr.adb:
648 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
649 and Response_File_Switches.
650
651 * prj-nmsc.adb (Process_Linker): Process new attributes
652 Max_Command_Line_Length, Response_File_Format and
653 Response_File_Switches.
654
655 * prj.ads (Response_File_Format): New enumeration type
656 (Project_Configuration): New componants Max_Command_Line_Length,
657 Resp_File_Format and Resp_File_Options.
658
659 * snames.ads-tmpl: Add new standard names for linking response files
660 for gprbuild: GNU, None, Object_List, Option_List,
661 Max_Command_Line_Length, Response_File_Format and
662 Response_File_Switches.
663
6642009-04-10 Geert Bosch <bosch@adacore.com>
665
666 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
667 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
668 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
669 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
670 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
671 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
672 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
673 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
674 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
675 system-vxworks-arm.ads, system-vxworks-m68k.ads,
676 system-vxworks-mips.ads, system-vxworks-ppc.ads,
677 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
678 (Backend_Overflow_Checks): Set to True.
679
934a3a25
AC
6802009-04-10 Thomas Quinot <quinot@adacore.com>
681
682 * exp_attr.adb: Minor reformatting
683
6842009-04-10 Ed Schonberg <schonberg@adacore.com>
685
686 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
687 analyze the expression for a postcondition, even if the compiler mode
688 is Generate_Code.
689
ab8e1b35
RD
6902009-04-10 Robert Dewar <dewar@adacore.com>
691
692 * sem_aux.adb: Minor reformatting
693
2c880bdf
EF
6942009-04-10 Ed Falis <falis@adacore.com>
695
696 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
697
698 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
699
d8221f45
TQ
7002009-04-10 Thomas Quinot <quinot@adacore.com>
701
702 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
703 undocumented formal.
704 Minor reformatting
705
706 * a-direio.ads: Fix typo in comment
707
708 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
709 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
710 Use uniform phrasing for comment at start of subprogram body.
711
712 * xsnamest.adb: Add note to explain why we use specific names for the
713 newly generated files instead of generating snames.{ads,adb,h} directly
714
f559e62f
AC
7152009-04-10 Sergey Rybin <rybin@adacore.com>
716
717 * vms_data.ads:
718 Add qualifier for new gnatstub option '--no-exception'
719
720 * gnat_ugn.texi:
721 Add the description of the new gnatstub option '--no-exception'
722
7232009-04-10 Robert Dewar <dewar@adacore.com>
724
725 * rtsfind.adb: Minor reformatting
726
7272009-04-10 Thomas Quinot <quinot@adacore.com>
728
729 * sem_disp.adb: Minor reformatting.
730 Add comment pointing to RM clause for the case of warning against a
731 (failed) attempt at declaring a primitive operation elsewhere than in a
732 package spec.
733
7342009-04-10 Ed Schonberg <schonberg@adacore.com>
735
736 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
737 an actual for a previous formal package of the current instance.
738
e50e1c5e
AC
7392009-04-10 Bob Duff <duff@adacore.com>
740
741 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
742 them first, rather than on the extended main unit.
743
7442009-04-10 Ed Schonberg <schonberg@adacore.com>
745
746 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
747 specification of full view carries a null exclusion indicator, create
748 an itype for it, to check for conformance with partial view.
749
cb736868
AC
7502009-04-10 Bob Duff <duff@adacore.com>
751
752 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
753
754 * rtsfind.adb: Minor comment changes, and remove useless code.
755
756 * sinfo.ads: Add ??? comment.
757
7582009-04-10 Vincent Celier <celier@adacore.com>
759
760 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
761
8a78c50d
AC
7622009-04-10 Ed Schonberg <schonberg@adacore.com>
763
764 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
765 type is a synchronized type, retrieve tag information from the
766 corresponding record, which has the dispatch table link.
767
7682009-04-10 Jerome Lambourg <lambourg@adacore.com>
769
770 * g-comlin.adb (Group_Analysis): Take care of switches that might be
771 decomposed afterwards, but are present as-is in the command line
772 configuration, and thus should be kept as-is.
773
b66c3ff4
AC
7742009-04-10 Robert Dewar <dewar@adacore.com>
775
776 * gnat_rm.texi: Document that postconditions are tested on implicit
777 returns.
778
779 * sem_aux.adb: Minor reformatting
780
7812009-04-10 Gary Dismukes <dismukes@adacore.com>
782
783 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
784 setting Etype.
785
786 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
787 Null_Exclusion_In_Return_Present when an access-to-function type has a
788 result type with an explicit not null.
789
790 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
791 given on the result type, then create a null-excluding itype for the
792 function.
793
794 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
795 the case where a null exclusion is imposed on a named access type.
796 (Analyze_Subprogram_Specification): Push and pop the scope of the
797 function around the call to Analyze_Return_Type in the case of no
798 formals, for consistency with handling when formals are present
799 (Process_Formals does this). Ensures that any itype created for the
800 return type will be associated with the proper scope.
801
802 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
803 exclusion is given on a generic function's result type, then create a
804 null-excluding itype for the generic function.
805 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
806 for an actual for a formal in object according to the setting on the
807 formal. Ensures null exclusion checks are done when the association is
808 elaborated.
809
810 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
811 N_Access_Function_Definition.
812
813 * sinfo.adb: Add Get_ and Set_ operations for
814 Null_Exclusion_In_Return_Present.
815
5334d18f
BD
8162009-04-10 Bob Duff <duff@adacore.com>
817
818 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
819 call to the _Postconditions procedure in the case of implicit returns
820 from analysis to expansion. This eliminates some duplicated code. Use
821 the Postcondition_Proc to find the identity of this procedure during
822 expansion.
823
701b7fbb
RD
8242009-04-10 Robert Dewar <dewar@adacore.com>
825
826 * sem_ch6.adb: Minor code clean up.
827
828 * einfo.ads, sem_attr.adb: Minor comment fixes.
829
8302009-04-10 Robert Dewar <dewar@adacore.com>
831
832 * sem_ch8.adb: Minor reformatting
833
7ca78bba
RD
8342009-04-10 Robert Dewar <dewar@adacore.com>
835
836 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
837 procedures.
838
839 * sem_ch6.adb: Minor code clean up.
840
043ce308
AC
8412009-04-10 Robert Dewar <dewar@adacore.com>
842
843 * mlib-tgt-specific-xi.adb: Minor reformatting
844
8452009-04-10 Bob Duff <duff@adacore.com>
846
847 * einfo.ads: Minor comment fixes
848
8492009-04-10 Vincent Celier <celier@adacore.com>
850
851 * snames.ads-tmpl: Remove names that are no longer used in the
852 Project Manager.
853 Mark specifically those that are used only in gprbuild
854
8552009-04-10 Eric Botcazou <ebotcazou@adacore.com>
856
857 * init.c: Adjust EH support code on Alpha/Tru64.
858
8592009-04-10 Bob Duff <duff@adacore.com>
860
861 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
862 procedure on every path that could return implicitly (not via a return
863 statement) from a procedure.
864
8652009-04-10 Ed Schonberg <schonberg@adacore.com>
866
867 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
868 valid scope for a task declarations and therefore for a master id.
869
8702009-04-10 Robert Dewar <dewar@adacore.com>
871
872 * sem_aux.adb: Minor reformatting
873
8742009-04-10 Vincent Celier <celier@adacore.com>
875
876 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
877 True.
878 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
879 (Set_Obsolescent_Check): New procedure to change the value of
880 Obsolescent_Check_Flag.
881
882 * scn.ads (Set_Obsolescent_Check): New procedure to control
883 Obsolescent_Check.
884
885 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
886 obsolescent features while preprocessing.
887
550f4135
AC
8882009-04-10 Thomas Quinot <quinot@adacore.com>
889
890 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
891 generated files on all platforms.
892
8932009-04-10 Robert Dewar <dewar@adacore.com>
894
895 * sem_aux.adb: Minor reformatting
896
8972009-04-10 Ed Schonberg <schonberg@adacore.com>
898
899 * sem_ch3.adb (Access_Definition): Handle properly the case of a
900 protected function with formals that returns an anonymous access type.
901
9022009-04-10 Thomas Quinot <quinot@adacore.com>
903
904 * sem_disp.adb: Minor reformatting
905
9062009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
907
908 * seh_init.c: Do not use the 32-bit specific implementation of
909 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
910 version TBD).
911
9122009-04-10 Jose Ruiz <ruiz@adacore.com>
913
914 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
915 a '/' at the end so we better use the complete target name to determine
916 whether it is a PowerPC 55xx target.
917
3996951a
TQ
9182009-04-10 Thomas Quinot <quinot@adacore.com>
919
920 * sem_eval.adb: Minor reformatting
921
b62a90f2
AC
9222009-04-10 Thomas Quinot <quinot@adacore.com>
923
924 * snames.h, snames.ads, snames.adb: Remove files, now generated from
925 templates.
926
927 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
928 above.
929
930 * xsnamest.adb: New file.
931
932 * gcc-interface/Make-lang.in: New target for automated generation of
933 snames.ads, snames.adb and snames.h
934
62298c61
TG
9352009-04-10 Tristan Gingold <gingold@adacore.com>
936
937 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
938 avoid compile time warnings.
939 Do not add gcc/config in include search list while compiling the RTS.
940 Pragma Thread_Local_Storage is available on any target.
941
3764bb00
BD
9422009-04-10 Bob Duff <duff@adacore.com>
943
944 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
945
b3b9865d
AC
9462009-04-10 Tristan Gingold <gingold@adacore.com>
947
948 * init.c: Install signal handler on Darwin.
949
9502009-04-10 Robert Dewar <dewar@adacore.com>
951
952 * sem_prag.adb: Minor reformatting
953
954 * exp_util.adb (Make_Non_Empty_Check): New function
955 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
956 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
957
9582009-04-10 Arnaud Charlet <charlet@adacore.com>
959
960 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
961
9622009-04-10 Jose Ruiz <ruiz@adacore.com>
963
964 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
965 tool prefix for AVR and PowerPC 55xx targets.
966
9672009-04-10 Robert Dewar <dewar@adacore.com>
968
969 * sem_warn.adb (Within_Postcondition): New function
970 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
971
c5288c90
AC
9722009-04-10 Robert Dewar <dewar@adacore.com>
973
974 * sem_warn.adb: Minor reformatting
975
976 * make.adb: Minor reformatting.
977
9782009-04-10 Gary Dismukes <dismukes@adacore.com>
979
980 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
981 entity and the scope is a subprogram, retrieve the Sloc of the
982 subprogram's body rather than using the sloc of the spec, for better
983 line-stepping behavior in gdb.
984 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
985 controller, use the Sloc of the first declaration of the containing list
986 rather than that of the node that triggered creation of the list
987 controller.
988
2844b330
AC
9892009-04-10 Vincent Celier <celier@adacore.com>
990
991 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
992 to avoid gcc warning.
993
9942009-04-10 Robert Dewar <dewar@adacore.com>
995
996 * g-comlin.adb: Add ??? comment
997
9982009-04-10 Ed Schonberg <schonberg@adacore.com>
999
1000 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
1001 unreferenced entities for a package with no visible declarations.
1002
10032009-04-10 Robert Dewar <dewar@adacore.com>
1004
1005 * exp_ch9.adb: Minor reformatting
1006
be21e9d8
AC
10072009-04-10 Thomas Quinot <quinot@adacore.com>
1008
1009 * sem_prag.adb: Minor reformatting
1010
10112009-04-10 Vincent Celier <celier@adacore.com>
1012
1013 * prj-nmsc.adb:
1014 (Check_Library_Attributes): For a project qualified as a library project
1015 that is not a library project, indicate in the error message which
1016 attributes are missing (Library_Dir and/or Library_Name).
1017
4a7dedcb
BD
10182009-04-10 Bob Duff <duff@adacore.com>
1019
1020 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
1021 generated nodes, because it might confuse various circuits in the FE.
1022
4017021b
AC
10232009-04-10 Ed Schonberg <schonberg@adacore.com>
1024
1025 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
1026 of pragma. It will be recopied and analyzed when used in call to
1027 Create_Task.
1028
1029 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
1030 initialization operations and recognize use of it in procedure calls
1031 within init_procs.
1032
1033 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
1034 argument, because it may have side-effects.
1035
1036 * exp_ch2.adb: Remove obsolete comments on default functions
1037
10382009-04-10 Jose Ruiz <ruiz@adacore.com>
1039
1040 * adaint.c (RTX section): Do for RTX the same thing as we do for
1041 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
1042
24357840
RD
10432009-04-10 Robert Dewar <dewar@adacore.com>
1044
1045 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
1046
1047 * sem_res.adb (Resolve_Call): Fix test for
1048 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
1049 a non-dynamic scope).
1050
4f64abad
AC
10512009-04-10 Robert Dewar <dewar@adacore.com>
1052
1053 * make.adb: Add comment.
1054 Minor reformatting
1055
10562009-04-10 Nicolas Setton <setton@adacore.com>
1057
1058 * s-osprim-darwin.adb: New file.
1059
1060 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
1061
10622009-04-10 Thomas Quinot <quinot@adacore.com>
1063
1064 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
1065
748086b7
JJ
10662009-04-09 Nick Clifton <nickc@redhat.com>
1067
1068 * adadecode.h: Change copyright header to refer to version
1069 3 of the GNU General Public License with version 3.1 of the
1070 GCC Runtime Library Exception and to point readers at the
1071 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
1072 page.
1073 * 9drpc.adb: Likewise.
1074 * a-assert.adb: Likewise.
1075 * a-astaco.adb: Likewise.
1076 * a-calari.adb: Likewise.
1077 * a-calcon.adb: Likewise.
1078 * a-calcon.ads: Likewise.
1079 * a-caldel.ads: Likewise.
1080 * a-calend-vms.adb: Likewise.
1081 * a-calend-vms.ads: Likewise.
1082 * a-calend.adb: Likewise.
1083 * a-calend.ads: Likewise.
1084 * a-calfor.adb: Likewise.
1085 * a-catizo.adb: Likewise.
1086 * a-cdlili.adb: Likewise.
1087 * a-cdlili.ads: Likewise.
1088 * a-cgaaso.adb: Likewise.
1089 * a-cgaaso.ads: Likewise.
1090 * a-cgarso.adb: Likewise.
1091 * a-cgcaso.adb: Likewise.
1092 * a-chacon.adb: Likewise.
1093 * a-chacon.ads: Likewise.
1094 * a-chahan.adb: Likewise.
1095 * a-chahan.ads: Likewise.
1096 * a-chlat9.ads: Likewise.
1097 * a-chtgke.adb: Likewise.
1098 * a-chtgke.ads: Likewise.
1099 * a-chtgop.adb: Likewise.
1100 * a-chtgop.ads: Likewise.
1101 * a-chzla1.ads: Likewise.
1102 * a-chzla9.ads: Likewise.
1103 * a-cidlli.adb: Likewise.
1104 * a-cidlli.ads: Likewise.
1105 * a-cihama.adb: Likewise.
1106 * a-cihama.ads: Likewise.
1107 * a-cihase.adb: Likewise.
1108 * a-cihase.ads: Likewise.
1109 * a-ciorma.adb: Likewise.
1110 * a-ciorma.ads: Likewise.
1111 * a-ciormu.adb: Likewise.
1112 * a-ciormu.ads: Likewise.
1113 * a-ciorse.adb: Likewise.
1114 * a-ciorse.ads: Likewise.
1115 * a-clrefi.adb: Likewise.
1116 * a-clrefi.ads: Likewise.
1117 * a-cohama.adb: Likewise.
1118 * a-cohama.ads: Likewise.
1119 * a-cohase.adb: Likewise.
1120 * a-cohase.ads: Likewise.
1121 * a-cohata.ads: Likewise.
1122 * a-coinve.adb: Likewise.
1123 * a-coinve.ads: Likewise.
1124 * a-colien.adb: Likewise.
1125 * a-colien.ads: Likewise.
1126 * a-colire.adb: Likewise.
1127 * a-colire.ads: Likewise.
1128 * a-comlin.adb: Likewise.
1129 * a-comlin.ads: Likewise.
1130 * a-convec.adb: Likewise.
1131 * a-convec.ads: Likewise.
1132 * a-coorma.adb: Likewise.
1133 * a-coorma.ads: Likewise.
1134 * a-coormu.adb: Likewise.
1135 * a-coormu.ads: Likewise.
1136 * a-coorse.adb: Likewise.
1137 * a-coorse.ads: Likewise.
1138 * a-coprnu.adb: Likewise.
1139 * a-coprnu.ads: Likewise.
1140 * a-crbltr.ads: Likewise.
1141 * a-crbtgk.adb: Likewise.
1142 * a-crbtgk.ads: Likewise.
1143 * a-crbtgo.adb: Likewise.
1144 * a-crbtgo.ads: Likewise.
1145 * a-crdlli.adb: Likewise.
1146 * a-crdlli.ads: Likewise.
1147 * a-cwila1.ads: Likewise.
1148 * a-cwila9.ads: Likewise.
1149 * a-decima.adb: Likewise.
1150 * a-decima.ads: Likewise.
1151 * a-diocst.adb: Likewise.
1152 * a-diocst.ads: Likewise.
1153 * a-direct.adb: Likewise.
1154 * a-direct.ads: Likewise.
1155 * a-direio.adb: Likewise.
1156 * a-direio.ads: Likewise.
1157 * a-dirval-mingw.adb: Likewise.
1158 * a-dirval-vms.adb: Likewise.
1159 * a-dirval.adb: Likewise.
1160 * a-dirval.ads: Likewise.
1161 * a-dynpri.adb: Likewise.
1162 * a-einuoc.adb: Likewise.
1163 * a-einuoc.ads: Likewise.
1164 * a-elchha.adb: Likewise.
1165 * a-elchha.ads: Likewise.
1166 * a-envvar.adb: Likewise.
1167 * a-excach.adb: Likewise.
1168 * a-except-2005.adb: Likewise.
1169 * a-except-2005.ads: Likewise.
1170 * a-except.adb: Likewise.
1171 * a-except.ads: Likewise.
1172 * a-excpol-abort.adb: Likewise.
1173 * a-excpol.adb: Likewise.
1174 * a-exctra.adb: Likewise.
1175 * a-exctra.ads: Likewise.
1176 * a-exetim-mingw.adb: Likewise.
1177 * a-exetim-mingw.ads: Likewise.
1178 * a-exexda.adb: Likewise.
1179 * a-exexpr-gcc.adb: Likewise.
1180 * a-exexpr.adb: Likewise.
1181 * a-exextr.adb: Likewise.
1182 * a-exstat.adb: Likewise.
1183 * a-filico.adb: Likewise.
1184 * a-filico.ads: Likewise.
1185 * a-finali.adb: Likewise.
1186 * a-finali.ads: Likewise.
1187 * a-interr.ads: Likewise.
1188 * a-intnam-aix.ads: Likewise.
1189 * a-intnam-darwin.ads: Likewise.
1190 * a-intnam-dummy.ads: Likewise.
1191 * a-intnam-freebsd.ads: Likewise.
1192 * a-intnam-hpux.ads: Likewise.
1193 * a-intnam-irix.ads: Likewise.
1194 * a-intnam-linux.ads: Likewise.
1195 * a-intnam-lynxos.ads: Likewise.
1196 * a-intnam-mingw.ads: Likewise.
1197 * a-intnam-rtems.ads: Likewise.
1198 * a-intnam-solaris.ads: Likewise.
1199 * a-intnam-tru64.ads: Likewise.
1200 * a-intnam-vms.ads: Likewise.
1201 * a-intnam-vxworks.ads: Likewise.
1202 * a-intsig.adb: Likewise.
1203 * a-intsig.ads: Likewise.
1204 * a-ngcefu.adb: Likewise.
1205 * a-ngcoar.adb: Likewise.
1206 * a-ngcoty.adb: Likewise.
1207 * a-ngcoty.ads: Likewise.
1208 * a-ngelfu.adb: Likewise.
1209 * a-ngrear.adb: Likewise.
1210 * a-ngrear.ads: Likewise.
1211 * a-nudira.adb: Likewise.
1212 * a-nudira.ads: Likewise.
1213 * a-nuflra.adb: Likewise.
1214 * a-nuflra.ads: Likewise.
1215 * a-numaux-darwin.adb: Likewise.
1216 * a-numaux-darwin.ads: Likewise.
1217 * a-numaux-libc-x86.ads: Likewise.
1218 * a-numaux-vxworks.ads: Likewise.
1219 * a-numaux-x86.adb: Likewise.
1220 * a-numaux-x86.ads: Likewise.
1221 * a-numaux.ads: Likewise.
1222 * a-rbtgso.adb: Likewise.
1223 * a-rbtgso.ads: Likewise.
1224 * a-reatim.ads: Likewise.
1225 * a-retide.adb: Likewise.
1226 * a-retide.ads: Likewise.
1227 * a-rttiev.adb: Likewise.
1228 * a-rttiev.ads: Likewise.
1229 * a-secain.adb: Likewise.
1230 * a-secain.ads: Likewise.
1231 * a-sequio.adb: Likewise.
1232 * a-sequio.ads: Likewise.
1233 * a-shcain.adb: Likewise.
1234 * a-shcain.ads: Likewise.
1235 * a-siocst.adb: Likewise.
1236 * a-siocst.ads: Likewise.
1237 * a-slcain.adb: Likewise.
1238 * a-slcain.ads: Likewise.
1239 * a-ssicst.adb: Likewise.
1240 * a-ssicst.ads: Likewise.
1241 * a-stboha.adb: Likewise.
1242 * a-stmaco.ads: Likewise.
1243 * a-storio.adb: Likewise.
1244 * a-strbou.adb: Likewise.
1245 * a-strbou.ads: Likewise.
1246 * a-stream.ads: Likewise.
1247 * a-strfix.adb: Likewise.
1248 * a-strhas.adb: Likewise.
1249 * a-strmap.adb: Likewise.
1250 * a-strmap.ads: Likewise.
1251 * a-strsea.adb: Likewise.
1252 * a-strsea.ads: Likewise.
1253 * a-strsup.adb: Likewise.
1254 * a-strsup.ads: Likewise.
1255 * a-strunb.adb: Likewise.
1256 * a-strunb.ads: Likewise.
1257 * a-ststio.adb: Likewise.
1258 * a-ststio.ads: Likewise.
1259 * a-stunau.adb: Likewise.
1260 * a-stunau.ads: Likewise.
1261 * a-stunha.adb: Likewise.
1262 * a-stwibo.adb: Likewise.
1263 * a-stwibo.ads: Likewise.
1264 * a-stwifi.adb: Likewise.
1265 * a-stwiha.adb: Likewise.
1266 * a-stwima.adb: Likewise.
1267 * a-stwima.ads: Likewise.
1268 * a-stwise.adb: Likewise.
1269 * a-stwise.ads: Likewise.
1270 * a-stwisu.adb: Likewise.
1271 * a-stwisu.ads: Likewise.
1272 * a-stwiun.adb: Likewise.
1273 * a-stwiun.ads: Likewise.
1274 * a-stzbou.adb: Likewise.
1275 * a-stzbou.ads: Likewise.
1276 * a-stzfix.adb: Likewise.
1277 * a-stzhas.adb: Likewise.
1278 * a-stzmap.adb: Likewise.
1279 * a-stzmap.ads: Likewise.
1280 * a-stzsea.adb: Likewise.
1281 * a-stzsea.ads: Likewise.
1282 * a-stzsup.adb: Likewise.
1283 * a-stzsup.ads: Likewise.
1284 * a-stzunb.adb: Likewise.
1285 * a-stzunb.ads: Likewise.
1286 * a-suteio.adb: Likewise.
1287 * a-suteio.ads: Likewise.
1288 * a-swbwha.adb: Likewise.
1289 * a-swmwco.ads: Likewise.
1290 * a-swunau.adb: Likewise.
1291 * a-swunau.ads: Likewise.
1292 * a-swuwha.adb: Likewise.
1293 * a-swuwti.adb: Likewise.
1294 * a-swuwti.ads: Likewise.
1295 * a-sytaco.adb: Likewise.
1296 * a-sytaco.ads: Likewise.
1297 * a-szbzha.adb: Likewise.
1298 * a-szmzco.ads: Likewise.
1299 * a-szunau.adb: Likewise.
1300 * a-szunau.ads: Likewise.
1301 * a-szuzha.adb: Likewise.
1302 * a-szuzti.adb: Likewise.
1303 * a-szuzti.ads: Likewise.
1304 * a-tags.adb: Likewise.
1305 * a-tags.ads: Likewise.
1306 * a-tasatt.ads: Likewise.
1307 * a-taside.adb: Likewise.
1308 * a-taside.ads: Likewise.
1309 * a-taster.adb: Likewise.
1310 * a-teioed.adb: Likewise.
1311 * a-teioed.ads: Likewise.
1312 * a-textio.adb: Likewise.
1313 * a-textio.ads: Likewise.
1314 * a-tiboio.adb: Likewise.
1315 * a-ticoau.adb: Likewise.
1316 * a-ticoau.ads: Likewise.
1317 * a-ticoio.adb: Likewise.
1318 * a-ticoio.ads: Likewise.
1319 * a-tideau.adb: Likewise.
1320 * a-tideau.ads: Likewise.
1321 * a-tideio.adb: Likewise.
1322 * a-tideio.ads: Likewise.
1323 * a-tienau.adb: Likewise.
1324 * a-tienau.ads: Likewise.
1325 * a-tienio.adb: Likewise.
1326 * a-tienio.ads: Likewise.
1327 * a-tifiio.adb: Likewise.
1328 * a-tifiio.ads: Likewise.
1329 * a-tiflau.adb: Likewise.
1330 * a-tiflau.ads: Likewise.
1331 * a-tiflio.adb: Likewise.
1332 * a-tiflio.ads: Likewise.
1333 * a-tigeau.adb: Likewise.
1334 * a-tigeau.ads: Likewise.
1335 * a-tiinau.adb: Likewise.
1336 * a-tiinau.ads: Likewise.
1337 * a-tiinio.adb: Likewise.
1338 * a-tiinio.ads: Likewise.
1339 * a-timoau.adb: Likewise.
1340 * a-timoau.ads: Likewise.
1341 * a-timoio.adb: Likewise.
1342 * a-timoio.ads: Likewise.
1343 * a-tiocst.adb: Likewise.
1344 * a-tiocst.ads: Likewise.
1345 * a-titest.adb: Likewise.
1346 * a-wichun.adb: Likewise.
1347 * a-wichun.ads: Likewise.
1348 * a-witeio.adb: Likewise.
1349 * a-witeio.ads: Likewise.
1350 * a-wtcoau.adb: Likewise.
1351 * a-wtcoau.ads: Likewise.
1352 * a-wtcoio.adb: Likewise.
1353 * a-wtcstr.adb: Likewise.
1354 * a-wtcstr.ads: Likewise.
1355 * a-wtdeau.adb: Likewise.
1356 * a-wtdeau.ads: Likewise.
1357 * a-wtdeio.adb: Likewise.
1358 * a-wtdeio.ads: Likewise.
1359 * a-wtedit.adb: Likewise.
1360 * a-wtedit.ads: Likewise.
1361 * a-wtenau.adb: Likewise.
1362 * a-wtenau.ads: Likewise.
1363 * a-wtenio.adb: Likewise.
1364 * a-wtenio.ads: Likewise.
1365 * a-wtfiio.adb: Likewise.
1366 * a-wtfiio.ads: Likewise.
1367 * a-wtflau.adb: Likewise.
1368 * a-wtflau.ads: Likewise.
1369 * a-wtflio.adb: Likewise.
1370 * a-wtflio.ads: Likewise.
1371 * a-wtgeau.adb: Likewise.
1372 * a-wtgeau.ads: Likewise.
1373 * a-wtinau.adb: Likewise.
1374 * a-wtinau.ads: Likewise.
1375 * a-wtinio.adb: Likewise.
1376 * a-wtmoau.adb: Likewise.
1377 * a-wtmoau.ads: Likewise.
1378 * a-wtmoio.adb: Likewise.
1379 * a-wtmoio.ads: Likewise.
1380 * a-wttest.adb: Likewise.
1381 * a-wwboio.adb: Likewise.
1382 * a-zchuni.adb: Likewise.
1383 * a-zchuni.ads: Likewise.
1384 * a-ztcoau.adb: Likewise.
1385 * a-ztcoau.ads: Likewise.
1386 * a-ztcoio.adb: Likewise.
1387 * a-ztcstr.adb: Likewise.
1388 * a-ztcstr.ads: Likewise.
1389 * a-ztdeau.adb: Likewise.
1390 * a-ztdeau.ads: Likewise.
1391 * a-ztdeio.adb: Likewise.
1392 * a-ztdeio.ads: Likewise.
1393 * a-ztedit.adb: Likewise.
1394 * a-ztedit.ads: Likewise.
1395 * a-ztenau.adb: Likewise.
1396 * a-ztenau.ads: Likewise.
1397 * a-ztenio.adb: Likewise.
1398 * a-ztenio.ads: Likewise.
1399 * a-ztexio.adb: Likewise.
1400 * a-ztexio.ads: Likewise.
1401 * a-ztfiio.adb: Likewise.
1402 * a-ztfiio.ads: Likewise.
1403 * a-ztflau.adb: Likewise.
1404 * a-ztflau.ads: Likewise.
1405 * a-ztflio.adb: Likewise.
1406 * a-ztflio.ads: Likewise.
1407 * a-ztgeau.adb: Likewise.
1408 * a-ztgeau.ads: Likewise.
1409 * a-ztinau.adb: Likewise.
1410 * a-ztinau.ads: Likewise.
1411 * a-ztinio.adb: Likewise.
1412 * a-ztmoau.adb: Likewise.
1413 * a-ztmoau.ads: Likewise.
1414 * a-ztmoio.adb: Likewise.
1415 * a-ztmoio.ads: Likewise.
1416 * a-zttest.adb: Likewise.
1417 * a-zzboio.adb: Likewise.
1418 * adadecode.c: Likewise.
1419 * adaint.c: Likewise.
1420 * adaint.h: Likewise.
1421 * alloc.ads: Likewise.
1422 * argv.c: Likewise.
1423 * arit64.c: Likewise.
1424 * atree.adb: Likewise.
1425 * atree.ads: Likewise.
1426 * aux-io.c: Likewise.
1427 * cal.c: Likewise.
1428 * casing.adb: Likewise.
1429 * casing.ads: Likewise.
1430 * cio.c: Likewise.
1431 * csets.adb: Likewise.
1432 * csets.ads: Likewise.
1433 * cstreams.c: Likewise.
1434 * ctrl_c.c: Likewise.
1435 * debug.adb: Likewise.
1436 * debug.ads: Likewise.
1437 * dec.ads: Likewise.
1438 * einfo.adb: Likewise.
1439 * einfo.ads: Likewise.
1440 * elists.adb: Likewise.
1441 * elists.ads: Likewise.
1442 * env.c: Likewise.
1443 * env.h: Likewise.
1444 * errno.c: Likewise.
1445 * exit.c: Likewise.
1446 * fe.h: Likewise.
1447 * final.c: Likewise.
1448 * fname.adb: Likewise.
1449 * fname.ads: Likewise.
1450 * g-allein.ads: Likewise.
1451 * g-alleve.adb: Likewise.
1452 * g-alleve.ads: Likewise.
1453 * g-altcon.adb: Likewise.
1454 * g-altcon.ads: Likewise.
1455 * g-altive.ads: Likewise.
1456 * g-alveop.adb: Likewise.
1457 * g-alveop.ads: Likewise.
1458 * g-alvety.ads: Likewise.
1459 * g-alvevi.ads: Likewise.
1460 * g-arrspl.adb: Likewise.
1461 * g-arrspl.ads: Likewise.
1462 * g-calend.ads: Likewise.
1463 * g-comlin.adb: Likewise.
1464 * g-debpoo.adb: Likewise.
1465 * g-debpoo.ads: Likewise.
1466 * g-eacodu-vms.adb: Likewise.
1467 * g-eacodu.adb: Likewise.
1468 * g-excact.adb: Likewise.
1469 * g-excact.ads: Likewise.
1470 * g-locfil.adb: Likewise.
1471 * g-os_lib.ads: Likewise.
1472 * g-rannum.adb: Likewise.
1473 * g-rannum.ads: Likewise.
1474 * g-regist.adb: Likewise.
1475 * g-regist.ads: Likewise.
1476 * g-signal.adb: Likewise.
1477 * g-signal.ads: Likewise.
1478 * g-soccon.ads: Likewise.
1479 * g-string.adb: Likewise.
1480 * g-string.ads: Likewise.
1481 * g-strspl.ads: Likewise.
1482 * g-timsta.adb: Likewise.
1483 * g-timsta.ads: Likewise.
1484 * g-trasym-vms-alpha.adb: Likewise.
1485 * g-trasym-vms-ia64.adb: Likewise.
1486 * g-utf_32.adb: Likewise.
1487 * g-utf_32.ads: Likewise.
1488 * g-wistsp.ads: Likewise.
1489 * g-zstspl.ads: Likewise.
1490 * gmem.c: Likewise.
1491 * gnatvsn.adb: Likewise.
1492 * gnatvsn.ads: Likewise.
1493 * gsocket.h: Likewise.
1494 * hostparm.ads: Likewise.
1495 * i-c.adb: Likewise.
1496 * i-cexten.ads: Likewise.
1497 * i-cobol.adb: Likewise.
1498 * i-cobol.ads: Likewise.
1499 * i-cpoint.adb: Likewise.
1500 * i-cpoint.ads: Likewise.
1501 * i-cpp.adb: Likewise.
1502 * i-cpp.ads: Likewise.
1503 * i-cstrea-vms.adb: Likewise.
1504 * i-cstrea.adb: Likewise.
1505 * i-cstrea.ads: Likewise.
1506 * i-cstrin.adb: Likewise.
1507 * i-cstrin.ads: Likewise.
1508 * i-forbla-darwin.adb: Likewise.
1509 * i-forbla-unimplemented.ads: Likewise.
1510 * i-forbla.adb: Likewise.
1511 * i-forbla.ads: Likewise.
1512 * i-forlap.ads: Likewise.
1513 * i-fortra.adb: Likewise.
1514 * i-pacdec.adb: Likewise.
1515 * i-pacdec.ads: Likewise.
1516 * i-vxwoio.adb: Likewise.
1517 * i-vxwoio.ads: Likewise.
1518 * indepsw-aix.adb: Likewise.
1519 * indepsw-gnu.adb: Likewise.
1520 * indepsw-mingw.adb: Likewise.
1521 * indepsw.adb: Likewise.
1522 * indepsw.ads: Likewise.
1523 * init.c: Likewise.
1524 * initialize.c: Likewise.
1525 * interfac.ads: Likewise.
1526 * krunch.adb: Likewise.
1527 * krunch.ads: Likewise.
1528 * lib-list.adb: Likewise.
1529 * lib-sort.adb: Likewise.
1530 * lib.adb: Likewise.
1531 * lib.ads: Likewise.
1532 * link.c: Likewise.
1533 * math_lib.adb: Likewise.
1534 * memtrack.adb: Likewise.
1535 * mingw32.h: Likewise.
1536 * mkdir.c: Likewise.
1537 * namet-sp.adb: Likewise.
1538 * namet-sp.ads: Likewise.
1539 * namet.adb: Likewise.
1540 * namet.ads: Likewise.
1541 * nlists.adb: Likewise.
1542 * nlists.ads: Likewise.
1543 * opt.adb: Likewise.
1544 * opt.ads: Likewise.
1545 * output.adb: Likewise.
1546 * output.ads: Likewise.
1547 * raise-gcc.c: Likewise.
1548 * raise.c: Likewise.
1549 * raise.h: Likewise.
1550 * repinfo.adb: Likewise.
1551 * repinfo.ads: Likewise.
1552 * repinfo.h: Likewise.
1553 * rident.ads: Likewise.
1554 * s-addima.adb: Likewise.
1555 * s-addima.ads: Likewise.
1556 * s-addope.adb: Likewise.
1557 * s-addope.ads: Likewise.
1558 * s-arit64.adb: Likewise.
1559 * s-arit64.ads: Likewise.
1560 * s-assert.adb: Likewise.
1561 * s-assert.ads: Likewise.
1562 * s-asthan-vms-alpha.adb: Likewise.
1563 * s-asthan.adb: Likewise.
1564 * s-asthan.ads: Likewise.
1565 * s-atacco.adb: Likewise.
1566 * s-atacco.ads: Likewise.
1567 * s-auxdec-empty.adb: Likewise.
1568 * s-auxdec-empty.ads: Likewise.
1569 * s-auxdec-vms_64.ads: Likewise.
1570 * s-auxdec.adb: Likewise.
1571 * s-auxdec.ads: Likewise.
1572 * s-bitops.adb: Likewise.
1573 * s-bitops.ads: Likewise.
1574 * s-boarop.ads: Likewise.
1575 * s-carsi8.adb: Likewise.
1576 * s-carsi8.ads: Likewise.
1577 * s-carun8.adb: Likewise.
1578 * s-carun8.ads: Likewise.
1579 * s-casi16.adb: Likewise.
1580 * s-casi16.ads: Likewise.
1581 * s-casi32.adb: Likewise.
1582 * s-casi32.ads: Likewise.
1583 * s-casi64.adb: Likewise.
1584 * s-casi64.ads: Likewise.
1585 * s-casuti.ads: Likewise.
1586 * s-caun16.adb: Likewise.
1587 * s-caun16.ads: Likewise.
1588 * s-caun32.adb: Likewise.
1589 * s-caun32.ads: Likewise.
1590 * s-caun64.adb: Likewise.
1591 * s-caun64.ads: Likewise.
1592 * s-chepoo.ads: Likewise.
1593 * s-crc32.adb: Likewise.
1594 * s-crc32.ads: Likewise.
1595 * s-crtl.ads: Likewise.
1596 * s-direio.adb: Likewise.
1597 * s-direio.ads: Likewise.
1598 * s-dsaser.ads: Likewise.
1599 * s-except.adb: Likewise.
1600 * s-except.ads: Likewise.
1601 * s-exctab.adb: Likewise.
1602 * s-exctab.ads: Likewise.
1603 * s-exnint.adb: Likewise.
1604 * s-exnint.ads: Likewise.
1605 * s-exnllf.adb: Likewise.
1606 * s-exnllf.ads: Likewise.
1607 * s-exnlli.adb: Likewise.
1608 * s-exnlli.ads: Likewise.
1609 * s-expint.adb: Likewise.
1610 * s-expint.ads: Likewise.
1611 * s-explli.adb: Likewise.
1612 * s-explli.ads: Likewise.
1613 * s-expllu.adb: Likewise.
1614 * s-expllu.ads: Likewise.
1615 * s-expmod.adb: Likewise.
1616 * s-expmod.ads: Likewise.
1617 * s-expuns.adb: Likewise.
1618 * s-expuns.ads: Likewise.
1619 * s-fatflt.ads: Likewise.
1620 * s-fatgen.adb: Likewise.
1621 * s-fatgen.ads: Likewise.
1622 * s-fatlfl.ads: Likewise.
1623 * s-fatllf.ads: Likewise.
1624 * s-fatsfl.ads: Likewise.
1625 * s-ficobl.ads: Likewise.
1626 * s-fileio.adb: Likewise.
1627 * s-fileio.ads: Likewise.
1628 * s-filofl.ads: Likewise.
1629 * s-finimp.adb: Likewise.
1630 * s-finimp.ads: Likewise.
1631 * s-finroo.adb: Likewise.
1632 * s-finroo.ads: Likewise.
1633 * s-fishfl.ads: Likewise.
1634 * s-fore.adb: Likewise.
1635 * s-fore.ads: Likewise.
1636 * s-fvadfl.ads: Likewise.
1637 * s-fvaffl.ads: Likewise.
1638 * s-fvagfl.ads: Likewise.
1639 * s-gearop.adb: Likewise.
1640 * s-gearop.ads: Likewise.
1641 * s-gecobl.adb: Likewise.
1642 * s-gecobl.ads: Likewise.
1643 * s-gecola.adb: Likewise.
1644 * s-gecola.ads: Likewise.
1645 * s-gerebl.adb: Likewise.
1646 * s-gerebl.ads: Likewise.
1647 * s-gerela.adb: Likewise.
1648 * s-gerela.ads: Likewise.
1649 * s-geveop.adb: Likewise.
1650 * s-geveop.ads: Likewise.
1651 * s-gloloc.adb: Likewise.
1652 * s-gloloc.ads: Likewise.
1653 * s-hibaen.ads: Likewise.
1654 * s-imenne.adb: Likewise.
1655 * s-imenne.ads: Likewise.
1656 * s-imgbiu.adb: Likewise.
1657 * s-imgbiu.ads: Likewise.
1658 * s-imgboo.adb: Likewise.
1659 * s-imgboo.ads: Likewise.
1660 * s-imgcha.adb: Likewise.
1661 * s-imgcha.ads: Likewise.
1662 * s-imgdec.adb: Likewise.
1663 * s-imgdec.ads: Likewise.
1664 * s-imgenu.adb: Likewise.
1665 * s-imgenu.ads: Likewise.
1666 * s-imgint.adb: Likewise.
1667 * s-imgint.ads: Likewise.
1668 * s-imgllb.adb: Likewise.
1669 * s-imgllb.ads: Likewise.
1670 * s-imglld.adb: Likewise.
1671 * s-imglld.ads: Likewise.
1672 * s-imglli.adb: Likewise.
1673 * s-imglli.ads: Likewise.
1674 * s-imgllu.adb: Likewise.
1675 * s-imgllu.ads: Likewise.
1676 * s-imgllw.adb: Likewise.
1677 * s-imgllw.ads: Likewise.
1678 * s-imgrea.adb: Likewise.
1679 * s-imgrea.ads: Likewise.
1680 * s-imguns.adb: Likewise.
1681 * s-imguns.ads: Likewise.
1682 * s-imgwch.adb: Likewise.
1683 * s-imgwch.ads: Likewise.
1684 * s-imgwiu.adb: Likewise.
1685 * s-imgwiu.ads: Likewise.
1686 * s-inmaop-dummy.adb: Likewise.
1687 * s-inmaop-vms.adb: Likewise.
1688 * s-inmaop.ads: Likewise.
1689 * s-interr-hwint.adb: Likewise.
1690 * s-interr-sigaction.adb: Likewise.
1691 * s-interr-vms.adb: Likewise.
1692 * s-interr.adb: Likewise.
1693 * s-interr.ads: Likewise.
1694 * s-intman-dummy.adb: Likewise.
1695 * s-intman-mingw.adb: Likewise.
1696 * s-intman-posix.adb: Likewise.
1697 * s-intman-solaris.adb: Likewise.
1698 * s-intman-vms.adb: Likewise.
1699 * s-intman-vms.ads: Likewise.
1700 * s-intman-vxworks.adb: Likewise.
1701 * s-intman-vxworks.ads: Likewise.
1702 * s-intman.ads: Likewise.
1703 * s-io.adb: Likewise.
1704 * s-io.ads: Likewise.
1705 * s-linux-alpha.ads: Likewise.
1706 * s-linux-hppa.ads: Likewise.
1707 * s-linux.ads: Likewise.
1708 * s-maccod.ads: Likewise.
1709 * s-mantis.adb: Likewise.
1710 * s-mantis.ads: Likewise.
1711 * s-mastop-irix.adb: Likewise.
1712 * s-mastop.adb: Likewise.
1713 * s-mastop.ads: Likewise.
1714 * s-memcop.ads: Likewise.
1715 * s-memory-mingw.adb: Likewise.
1716 * s-memory.adb: Likewise.
1717 * s-memory.ads: Likewise.
1718 * s-os_lib.ads: Likewise.
1719 * s-oscons-tmplt.c: Likewise.
1720 * s-osinte-aix.adb: Likewise.
1721 * s-osinte-darwin.adb: Likewise.
1722 * s-osinte-freebsd.adb: Likewise.
1723 * s-osinte-irix.adb: Likewise.
1724 * s-osinte-lynxos-3.adb: Likewise.
1725 * s-osinte-rtems.ads: Likewise.
1726 * s-osinte-tru64.adb: Likewise.
1727 * s-osinte-vxworks-kernel.adb: Likewise.
1728 * s-osinte-vxworks.adb: Likewise.
1729 * s-osprim-mingw.adb: Likewise.
1730 * s-osprim-posix.adb: Likewise.
1731 * s-osprim-solaris.adb: Likewise.
1732 * s-osprim-unix.adb: Likewise.
1733 * s-osprim-vms.adb: Likewise.
1734 * s-osprim-vms.ads: Likewise.
1735 * s-osprim-vxworks.adb: Likewise.
1736 * s-osprim.ads: Likewise.
1737 * s-pack03.adb: Likewise.
1738 * s-pack03.ads: Likewise.
1739 * s-pack05.adb: Likewise.
1740 * s-pack05.ads: Likewise.
1741 * s-pack06.adb: Likewise.
1742 * s-pack06.ads: Likewise.
1743 * s-pack07.adb: Likewise.
1744 * s-pack07.ads: Likewise.
1745 * s-pack09.adb: Likewise.
1746 * s-pack09.ads: Likewise.
1747 * s-pack10.adb: Likewise.
1748 * s-pack10.ads: Likewise.
1749 * s-pack11.adb: Likewise.
1750 * s-pack11.ads: Likewise.
1751 * s-pack12.adb: Likewise.
1752 * s-pack12.ads: Likewise.
1753 * s-pack13.adb: Likewise.
1754 * s-pack13.ads: Likewise.
1755 * s-pack14.adb: Likewise.
1756 * s-pack14.ads: Likewise.
1757 * s-pack15.adb: Likewise.
1758 * s-pack15.ads: Likewise.
1759 * s-pack17.adb: Likewise.
1760 * s-pack17.ads: Likewise.
1761 * s-pack18.adb: Likewise.
1762 * s-pack18.ads: Likewise.
1763 * s-pack19.adb: Likewise.
1764 * s-pack19.ads: Likewise.
1765 * s-pack20.adb: Likewise.
1766 * s-pack20.ads: Likewise.
1767 * s-pack21.adb: Likewise.
1768 * s-pack21.ads: Likewise.
1769 * s-pack22.adb: Likewise.
1770 * s-pack22.ads: Likewise.
1771 * s-pack23.adb: Likewise.
1772 * s-pack23.ads: Likewise.
1773 * s-pack24.adb: Likewise.
1774 * s-pack24.ads: Likewise.
1775 * s-pack25.adb: Likewise.
1776 * s-pack25.ads: Likewise.
1777 * s-pack26.adb: Likewise.
1778 * s-pack26.ads: Likewise.
1779 * s-pack27.adb: Likewise.
1780 * s-pack27.ads: Likewise.
1781 * s-pack28.adb: Likewise.
1782 * s-pack28.ads: Likewise.
1783 * s-pack29.adb: Likewise.
1784 * s-pack29.ads: Likewise.
1785 * s-pack30.adb: Likewise.
1786 * s-pack30.ads: Likewise.
1787 * s-pack31.adb: Likewise.
1788 * s-pack31.ads: Likewise.
1789 * s-pack33.adb: Likewise.
1790 * s-pack33.ads: Likewise.
1791 * s-pack34.adb: Likewise.
1792 * s-pack34.ads: Likewise.
1793 * s-pack35.adb: Likewise.
1794 * s-pack35.ads: Likewise.
1795 * s-pack36.adb: Likewise.
1796 * s-pack36.ads: Likewise.
1797 * s-pack37.adb: Likewise.
1798 * s-pack37.ads: Likewise.
1799 * s-pack38.adb: Likewise.
1800 * s-pack38.ads: Likewise.
1801 * s-pack39.adb: Likewise.
1802 * s-pack39.ads: Likewise.
1803 * s-pack40.adb: Likewise.
1804 * s-pack40.ads: Likewise.
1805 * s-pack41.adb: Likewise.
1806 * s-pack41.ads: Likewise.
1807 * s-pack42.adb: Likewise.
1808 * s-pack42.ads: Likewise.
1809 * s-pack43.adb: Likewise.
1810 * s-pack43.ads: Likewise.
1811 * s-pack44.adb: Likewise.
1812 * s-pack44.ads: Likewise.
1813 * s-pack45.adb: Likewise.
1814 * s-pack45.ads: Likewise.
1815 * s-pack46.adb: Likewise.
1816 * s-pack46.ads: Likewise.
1817 * s-pack47.adb: Likewise.
1818 * s-pack47.ads: Likewise.
1819 * s-pack48.adb: Likewise.
1820 * s-pack48.ads: Likewise.
1821 * s-pack49.adb: Likewise.
1822 * s-pack49.ads: Likewise.
1823 * s-pack50.adb: Likewise.
1824 * s-pack50.ads: Likewise.
1825 * s-pack51.adb: Likewise.
1826 * s-pack51.ads: Likewise.
1827 * s-pack52.adb: Likewise.
1828 * s-pack52.ads: Likewise.
1829 * s-pack53.adb: Likewise.
1830 * s-pack53.ads: Likewise.
1831 * s-pack54.adb: Likewise.
1832 * s-pack54.ads: Likewise.
1833 * s-pack55.adb: Likewise.
1834 * s-pack55.ads: Likewise.
1835 * s-pack56.adb: Likewise.
1836 * s-pack56.ads: Likewise.
1837 * s-pack57.adb: Likewise.
1838 * s-pack57.ads: Likewise.
1839 * s-pack58.adb: Likewise.
1840 * s-pack58.ads: Likewise.
1841 * s-pack59.adb: Likewise.
1842 * s-pack59.ads: Likewise.
1843 * s-pack60.adb: Likewise.
1844 * s-pack60.ads: Likewise.
1845 * s-pack61.adb: Likewise.
1846 * s-pack61.ads: Likewise.
1847 * s-pack62.adb: Likewise.
1848 * s-pack62.ads: Likewise.
1849 * s-pack63.adb: Likewise.
1850 * s-pack63.ads: Likewise.
1851 * s-parame-ae653.ads: Likewise.
1852 * s-parame-hpux.ads: Likewise.
1853 * s-parame-rtems.adb: Likewise.
1854 * s-parame-vms-alpha.ads: Likewise.
1855 * s-parame-vms-ia64.ads: Likewise.
1856 * s-parame-vms-restrict.ads: Likewise.
1857 * s-parame-vxworks.adb: Likewise.
1858 * s-parame-vxworks.ads: Likewise.
1859 * s-parame.adb: Likewise.
1860 * s-parame.ads: Likewise.
1861 * s-parint.adb: Likewise.
1862 * s-parint.ads: Likewise.
1863 * s-pooglo.adb: Likewise.
1864 * s-pooglo.ads: Likewise.
1865 * s-pooloc.adb: Likewise.
1866 * s-pooloc.ads: Likewise.
1867 * s-poosiz.adb: Likewise.
1868 * s-poosiz.ads: Likewise.
1869 * s-powtab.ads: Likewise.
1870 * s-proinf-irix-athread.adb: Likewise.
1871 * s-proinf-irix-athread.ads: Likewise.
1872 * s-proinf.adb: Likewise.
1873 * s-proinf.ads: Likewise.
1874 * s-purexc.ads: Likewise.
1875 * s-rannum.adb: Likewise.
1876 * s-rannum.ads: Likewise.
1877 * s-restri.adb: Likewise.
1878 * s-restri.ads: Likewise.
1879 * s-rident.ads: Likewise.
1880 * s-rpc.adb: Likewise.
1881 * s-rpc.ads: Likewise.
1882 * s-scaval.adb: Likewise.
1883 * s-scaval.ads: Likewise.
1884 * s-secsta.adb: Likewise.
1885 * s-secsta.ads: Likewise.
1886 * s-sequio.adb: Likewise.
1887 * s-sequio.ads: Likewise.
1888 * s-shasto.adb: Likewise.
1889 * s-shasto.ads: Likewise.
1890 * s-soflin.adb: Likewise.
1891 * s-soflin.ads: Likewise.
1892 * s-solita.adb: Likewise.
1893 * s-solita.ads: Likewise.
1894 * s-sopco3.adb: Likewise.
1895 * s-sopco3.ads: Likewise.
1896 * s-sopco4.adb: Likewise.
1897 * s-sopco4.ads: Likewise.
1898 * s-sopco5.adb: Likewise.
1899 * s-sopco5.ads: Likewise.
1900 * s-stache.adb: Likewise.
1901 * s-stache.ads: Likewise.
1902 * s-stalib.adb: Likewise.
1903 * s-stalib.ads: Likewise.
1904 * s-stausa.adb: Likewise.
1905 * s-stausa.ads: Likewise.
1906 * s-stchop-limit.ads: Likewise.
1907 * s-stchop-rtems.adb: Likewise.
1908 * s-stchop-vxworks.adb: Likewise.
1909 * s-stchop.adb: Likewise.
1910 * s-stchop.ads: Likewise.
1911 * s-stoele.adb: Likewise.
1912 * s-stoele.ads: Likewise.
1913 * s-stopoo.adb: Likewise.
1914 * s-stopoo.ads: Likewise.
1915 * s-stratt.adb: Likewise.
1916 * s-stratt.ads: Likewise.
1917 * s-strcom.adb: Likewise.
1918 * s-strcom.ads: Likewise.
1919 * s-string.adb: Likewise.
1920 * s-string.ads: Likewise.
1921 * s-strops.adb: Likewise.
1922 * s-strops.ads: Likewise.
1923 * s-strxdr.adb: Likewise.
1924 * s-ststop.adb: Likewise.
1925 * s-ststop.ads: Likewise.
1926 * s-taasde.adb: Likewise.
1927 * s-taasde.ads: Likewise.
1928 * s-tadeca.adb: Likewise.
1929 * s-tadeca.ads: Likewise.
1930 * s-tadert.adb: Likewise.
1931 * s-tadert.ads: Likewise.
1932 * s-taenca.adb: Likewise.
1933 * s-taenca.ads: Likewise.
1934 * s-taprob.ads: Likewise.
1935 * s-taprop-dummy.adb: Likewise.
1936 * s-taprop-hpux-dce.adb: Likewise.
1937 * s-taprop-irix.adb: Likewise.
1938 * s-taprop-linux.adb: Likewise.
1939 * s-taprop-lynxos.adb: Likewise.
1940 * s-taprop-mingw.adb: Likewise.
1941 * s-taprop-posix.adb: Likewise.
1942 * s-taprop-solaris.adb: Likewise.
1943 * s-taprop-tru64.adb: Likewise.
1944 * s-taprop-vms.adb: Likewise.
1945 * s-taprop-vxworks.adb: Likewise.
1946 * s-taprop.ads: Likewise.
1947 * s-tarest.adb: Likewise.
1948 * s-tarest.ads: Likewise.
1949 * s-tasdeb.adb: Likewise.
1950 * s-tasdeb.ads: Likewise.
1951 * s-tasinf-irix.ads: Likewise.
1952 * s-tasinf-linux.adb: Likewise.
1953 * s-tasinf-linux.ads: Likewise.
1954 * s-tasinf-mingw.adb: Likewise.
1955 * s-tasinf-mingw.ads: Likewise.
1956 * s-tasinf-solaris.adb: Likewise.
1957 * s-tasinf-solaris.ads: Likewise.
1958 * s-tasinf-tru64.ads: Likewise.
1959 * s-tasinf.adb: Likewise.
1960 * s-tasinf.ads: Likewise.
1961 * s-tasini.adb: Likewise.
1962 * s-tasini.ads: Likewise.
1963 * s-taskin.adb: Likewise.
1964 * s-taskin.ads: Likewise.
1965 * s-taspri-dummy.ads: Likewise.
1966 * s-taspri-hpux-dce.ads: Likewise.
1967 * s-taspri-mingw.ads: Likewise.
1968 * s-taspri-solaris.ads: Likewise.
1969 * s-taspri-tru64.ads: Likewise.
1970 * s-taspri-vms.ads: Likewise.
1971 * s-taspri-vxworks.ads: Likewise.
1972 * s-tasque.adb: Likewise.
1973 * s-tasque.ads: Likewise.
1974 * s-tasren.adb: Likewise.
1975 * s-tasren.ads: Likewise.
1976 * s-tasres.ads: Likewise.
1977 * s-tassta.adb: Likewise.
1978 * s-tassta.ads: Likewise.
1979 * s-tasuti.adb: Likewise.
1980 * s-tasuti.ads: Likewise.
1981 * s-tfsetr-default.adb: Likewise.
1982 * s-tfsetr-vxworks.adb: Likewise.
1983 * s-tpinop.adb: Likewise.
1984 * s-tpinop.ads: Likewise.
1985 * s-tpoben.adb: Likewise.
1986 * s-tpoben.ads: Likewise.
1987 * s-tpobop.adb: Likewise.
1988 * s-tpobop.ads: Likewise.
1989 * s-tpopde-vms.adb: Likewise.
1990 * s-tpopde-vms.ads: Likewise.
1991 * s-tpopsp-lynxos.adb: Likewise.
1992 * s-tpopsp-posix-foreign.adb: Likewise.
1993 * s-tpopsp-posix.adb: Likewise.
1994 * s-tpopsp-solaris.adb: Likewise.
1995 * s-tpopsp-vxworks.adb: Likewise.
1996 * s-tporft.adb: Likewise.
1997 * s-tposen.adb: Likewise.
1998 * s-tposen.ads: Likewise.
1999 * s-traceb.adb: Likewise.
2000 * s-traceb.ads: Likewise.
2001 * s-traces-default.adb: Likewise.
2002 * s-traces.adb: Likewise.
2003 * s-traces.ads: Likewise.
2004 * s-traent-vms.adb: Likewise.
2005 * s-traent-vms.ads: Likewise.
2006 * s-traent.adb: Likewise.
2007 * s-traent.ads: Likewise.
2008 * s-trafor-default.adb: Likewise.
2009 * s-trafor-default.ads: Likewise.
2010 * s-tratas-default.adb: Likewise.
2011 * s-tratas.adb: Likewise.
2012 * s-tratas.ads: Likewise.
2013 * s-unstyp.ads: Likewise.
2014 * s-utf_32.adb: Likewise.
2015 * s-utf_32.ads: Likewise.
2016 * s-vaflop-vms-alpha.adb: Likewise.
2017 * s-vaflop.adb: Likewise.
2018 * s-vaflop.ads: Likewise.
2019 * s-valboo.adb: Likewise.
2020 * s-valboo.ads: Likewise.
2021 * s-valcha.adb: Likewise.
2022 * s-valcha.ads: Likewise.
2023 * s-valdec.adb: Likewise.
2024 * s-valdec.ads: Likewise.
2025 * s-valenu.adb: Likewise.
2026 * s-valenu.ads: Likewise.
2027 * s-valint.adb: Likewise.
2028 * s-valint.ads: Likewise.
2029 * s-vallld.adb: Likewise.
2030 * s-vallld.ads: Likewise.
2031 * s-vallli.adb: Likewise.
2032 * s-vallli.ads: Likewise.
2033 * s-valllu.adb: Likewise.
2034 * s-valllu.ads: Likewise.
2035 * s-valrea.adb: Likewise.
2036 * s-valrea.ads: Likewise.
2037 * s-valuns.adb: Likewise.
2038 * s-valuns.ads: Likewise.
2039 * s-valuti.adb: Likewise.
2040 * s-valuti.ads: Likewise.
2041 * s-valwch.adb: Likewise.
2042 * s-valwch.ads: Likewise.
2043 * s-veboop.adb: Likewise.
2044 * s-veboop.ads: Likewise.
2045 * s-vector.ads: Likewise.
2046 * s-vercon.adb: Likewise.
2047 * s-vercon.ads: Likewise.
2048 * s-vmexta.adb: Likewise.
2049 * s-vmexta.ads: Likewise.
2050 * s-vxwext-kernel.ads: Likewise.
2051 * s-vxwext-rtp.adb: Likewise.
2052 * s-vxwext-rtp.ads: Likewise.
2053 * s-vxwext.ads: Likewise.
2054 * s-vxwork-arm.ads: Likewise.
2055 * s-vxwork-m68k.ads: Likewise.
2056 * s-vxwork-mips.ads: Likewise.
2057 * s-vxwork-ppc.ads: Likewise.
2058 * s-vxwork-sparcv9.ads: Likewise.
2059 * s-vxwork-x86.ads: Likewise.
2060 * s-wchcnv.adb: Likewise.
2061 * s-wchcnv.ads: Likewise.
2062 * s-wchcon.adb: Likewise.
2063 * s-wchcon.ads: Likewise.
2064 * s-wchjis.adb: Likewise.
2065 * s-wchjis.ads: Likewise.
2066 * s-wchstw.adb: Likewise.
2067 * s-wchstw.ads: Likewise.
2068 * s-wchwts.adb: Likewise.
2069 * s-wchwts.ads: Likewise.
2070 * s-widboo.adb: Likewise.
2071 * s-widboo.ads: Likewise.
2072 * s-widcha.adb: Likewise.
2073 * s-widcha.ads: Likewise.
2074 * s-widenu.adb: Likewise.
2075 * s-widenu.ads: Likewise.
2076 * s-widlli.adb: Likewise.
2077 * s-widlli.ads: Likewise.
2078 * s-widllu.adb: Likewise.
2079 * s-widllu.ads: Likewise.
2080 * s-widwch.adb: Likewise.
2081 * s-widwch.ads: Likewise.
2082 * s-win32.ads: Likewise.
2083 * s-winext.ads: Likewise.
2084 * s-wwdcha.adb: Likewise.
2085 * s-wwdcha.ads: Likewise.
2086 * s-wwdenu.adb: Likewise.
2087 * s-wwdenu.ads: Likewise.
2088 * s-wwdwch.adb: Likewise.
2089 * s-wwdwch.ads: Likewise.
2090 * scans.adb: Likewise.
2091 * scans.ads: Likewise.
2092 * seh_init.c: Likewise.
2093 * sfn_scan.adb: Likewise.
2094 * sinfo.adb: Likewise.
2095 * sinfo.ads: Likewise.
2096 * sinput.adb: Likewise.
2097 * sinput.ads: Likewise.
2098 * snames.adb: Likewise.
2099 * snames.ads: Likewise.
2100 * socket.c: Likewise.
2101 * stand.adb: Likewise.
2102 * stand.ads: Likewise.
2103 * stringt.adb: Likewise.
2104 * stringt.ads: Likewise.
2105 * sysdep.c: Likewise.
2106 * system-aix.ads: Likewise.
2107 * system-darwin-ppc.ads: Likewise.
2108 * system-darwin-x86.ads: Likewise.
2109 * system-darwin-x86_64.ads: Likewise.
2110 * system-freebsd-x86.ads: Likewise.
2111 * system-hpux-ia64.ads: Likewise.
2112 * system-hpux.ads: Likewise.
2113 * system-irix-n32.ads: Likewise.
2114 * system-irix-n64.ads: Likewise.
2115 * system-irix-o32.ads: Likewise.
2116 * system-linux-alpha.ads: Likewise.
2117 * system-linux-hppa.ads: Likewise.
2118 * system-linux-ia64.ads: Likewise.
2119 * system-linux-mips.ads: Likewise.
2120 * system-linux-mipsel.ads: Likewise.
2121 * system-linux-ppc.ads: Likewise.
2122 * system-linux-ppc64.ads: Likewise.
2123 * system-linux-s390.ads: Likewise.
2124 * system-linux-s390x.ads: Likewise.
2125 * system-linux-sh4.ads: Likewise.
2126 * system-linux-sparc.ads: Likewise.
2127 * system-linux-sparcv9.ads: Likewise.
2128 * system-linux-x86.ads: Likewise.
2129 * system-linux-x86_64.ads: Likewise.
2130 * system-lynxos-ppc.ads: Likewise.
2131 * system-lynxos-x86.ads: Likewise.
2132 * system-mingw-x86_64.ads: Likewise.
2133 * system-mingw.ads: Likewise.
2134 * system-rtems.ads: Likewise.
2135 * system-solaris-sparc.ads: Likewise.
2136 * system-solaris-sparcv9.ads: Likewise.
2137 * system-solaris-x86.ads: Likewise.
2138 * system-solaris-x86_64.ads: Likewise.
2139 * system-tru64.ads: Likewise.
2140 * system-vms-ia64.ads: Likewise.
2141 * system-vms-zcx.ads: Likewise.
2142 * system-vms.ads: Likewise.
2143 * system-vms_64.ads: Likewise.
2144 * system-vxworks-arm.ads: Likewise.
2145 * system-vxworks-m68k.ads: Likewise.
2146 * system-vxworks-mips.ads: Likewise.
2147 * system-vxworks-ppc.ads: Likewise.
2148 * system-vxworks-sparcv9.ads: Likewise.
2149 * system-vxworks-x86.ads: Likewise.
2150 * system.ads: Likewise.
2151 * table.adb: Likewise.
2152 * table.ads: Likewise.
2153 * targext.c: Likewise.
2154 * targparm.ads: Likewise.
2155 * tree_in.adb: Likewise.
2156 * tree_in.ads: Likewise.
2157 * tree_io.adb: Likewise.
2158 * tree_io.ads: Likewise.
2159 * types.adb: Likewise.
2160 * types.ads: Likewise.
2161 * uintp.adb: Likewise.
2162 * uintp.ads: Likewise.
2163 * uname.adb: Likewise.
2164 * uname.ads: Likewise.
2165 * urealp.adb: Likewise.
2166 * urealp.ads: Likewise.
2167 * vx_stack_info.c: Likewise.
2168 * widechar.adb: Likewise.
2169 * widechar.ads: Likewise.
2170 * exp_attr.adb: Change copyright header to refer to version
2171 3 of the GNU General Public License and to point readers at the
2172 COPYING3 file and the FSF's license web page.
2173 * sem.adb: Likewise.
2174 * sem_attr.ads: Likewise.
2175 * freeze.adb: Likewise.
2176 * freeze.ads: Likewise.
2177 * errout.ads: Likewise.
2178 * erroutc.adb: Likewise.
2179 * exp_ch11.ads: Likewise.
2180
21812009-04-09 Jakub Jelinek <jakub@redhat.com>
2182
2183 * config-lang.in: Change copyright header to refer to version
2184 3 of the GNU General Public License and to point readers at the
2185 COPYING3 file and the FSF's license web page.
2186 * gcc-interface/trans.c: Likewise.
2187 * gnathtml.pl: Likewise.
2188 * gcc-interface/ada.h: Likewise. Remove runtime exception.
2189 * gcc-interface/gigi.h: Likewise.
2190 * gcc-interface/misc.c: Likewise.
2191 * gcc-interface/targtyps.c: Likewise.
2192
dd8cfe3a
AC
21932009-04-09 Nicolas Setton <setton@adacore.com>
2194
2195 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
2196
2197 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
2198 struct_timeval.
2199
22002009-04-09 Bob Duff <duff@adacore.com>
2201
2202 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
2203 internally-generated nodes related to select statements to avoid
2204 confusing the debugger.
2205
22062009-04-09 Pascal Obry <obry@adacore.com>
2207
2208 * make.adb: Ensure that all linker arguments are duplicated.
2209
59f3dd0a
AC
22102009-04-09 Robert Dewar <dewar@adacore.com>
2211
2212 * sem_ch5.adb: Minor reformatting
2213
22142009-04-09 Vincent Celier <celier@adacore.com>
2215
2216 * vms_data.ads:
2217 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
2218 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
2219 New qualifier /LXDEBUG=nnn for -gnatDnnn
2220 For H820-010
2221
2222 * gnat_ugn.texi:
2223 Update documentation for VMS qualifiers equivalent to -gnatGnn and
2224 -gnatDnn
2225
22262009-04-09 Nicolas Setton <setton@adacore.com>
2227
2228 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
2229 to match layout of siginfo_t in sys/signal.h.
2230
2231 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
2232
22332009-04-09 Thomas Quinot <quinot@adacore.com>
2234
2235 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
2236
22372009-04-09 Nicolas Setton <setton@adacore.com>
2238
2239 * s-oscons-tmplt.c: Allow long lines in the generated spec.
2240 Add generation of Darwin-specific constants needed when binding to the
2241 pthread library.
2242
22432009-04-09 Robert Dewar <dewar@adacore.com>
2244
2245 * checks.adb:
2246 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
2247 when no invalid values exist, Avoid duplicate read of atomic variable.
2248
2249 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
2250 (Standard_Unsigned): Set Is_Known_Valid
2251
2252 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
2253 subtype declaration if no constraint.
2254 (Set_Modular_Size): Set Is_Known_Valid if appropriate
2255 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
2256
f7d7bb51
AC
22572009-04-09 Robert Dewar <dewar@adacore.com>
2258
2259 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
2260 switch.ads: for numeric switches, an optional equal sign is always
2261 allowed.
2262
22632009-04-09 Vincent Celier <celier@adacore.com>
2264
2265 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
2266 the case of file names is not significant.
2267
c75c4293
AC
22682009-04-09 Vincent Celier <celier@adacore.com>
2269
2270 * errout.adb: Remove dependency on package Style
2271
2272 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
2273 moved to Stylesw.
2274
2275 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
2276 Styleg.
2277
2278 * errutil.adb, par.adb: Import Stylesw
2279
22802009-04-09 Arnaud Charlet <charlet@adacore.com>
2281
2282 * opt.ads: Fix typos.
2283
22842009-04-09 Robert Dewar <dewar@adacore.com>
2285
2286 * einfo.adb: Minor reformatting
2287
e7aea0fa
RD
22882009-04-09 Robert Dewar <dewar@adacore.com>
2289
2290 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
2291 units.
2292
2293 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
2294
1c383b4c
AC
22952009-04-09 Robert Dewar <dewar@adacore.com>
2296
2297 * g-comver.adb: Minor reformatting.
2298
22992009-04-09 Thomas Quinot <quinot@adacore.com>
2300
2301 * lib-load.ads (Load_Unit): Update documentation.
2302
23032009-04-09 Ed Schonberg <schonberg@adacore.com>
2304
2305 * lib-load.adb (Load_Unit): When loading the parent of a child unit
2306 named in a with_clause, retain the with_clause to preserve a
2307 limited_with indication.
2308
d7ba4df4
RD
23092009-04-09 Robert Dewar <dewar@adacore.com>
2310
2311 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
2312 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
2313 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
2314 possible to replace an OR of two separate tests.
2315
923e6ff3
RD
23162009-04-09 Robert Dewar <dewar@adacore.com>
2317
2318 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
2319 Maximum_Messages.
2320
2321 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
2322 warning status as well.
2323
2324 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
2325
2326 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
2327 Maximum_Messages.
2328
2329 * bindusg.adb, usage.adb: Update line for -gnatm switch
2330
2331 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
2332 -mnn binder switch.
2333
23342009-04-09 Robert Dewar <dewar@adacore.com>
2335
2336 * sem_ch10.adb: Minor reformatting.
2337
beb50807
AC
23382009-04-09 Bob Duff <duff@adacore.com>
2339
2340 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
2341 Set Sloc of generated nodes for calls to Undefer_Aborts and
2342 Save_Occurrence to No_Location, so the debugger ignores them and
2343 therefore does not jump back and forth when single stepping.
2344
23452009-04-09 Robert Dewar <dewar@adacore.com>
2346
2347 * switch-b.adb: Minor reformatting.
2348
a4100e55
RD
23492009-04-09 Robert Dewar <dewar@adacore.com>
2350
2351 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
2352 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
2353 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
2354 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
2355 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
2356 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
2357 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
2358 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
2359 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
2360 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
2361 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
2362
f17889b3
RD
23632009-04-09 Robert Dewar <dewar@adacore.com>
2364
2365 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
2366
2367 * atree.h: Add Elist26
2368
2369 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
2370 backends.
2371
b16d9747
JM
23722009-04-09 Javier Miranda <miranda@adacore.com>
2373
2374 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
2375 retrieve from the Dispatch_Table_Wrappers list the external name.
2376 Addition of documentation.
2377 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
2378 used to export secondary dispatch tables (in the previous version of
2379 the frontend only primary dispatch tables were exported). Addition of
2380 documentation.
2381 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
2382 dispatch table of a given tagged type.
2383 (Make_Tags): Modified to import secondary dispatch tables.
2384
2385 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
2386 (Constant_Redeclaration): Code cleanup.
2387
2388 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
2389 Dispatch_Table_Wrappers. Update documentation.
2390
2391 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
2392 Renamed to Dispatch_Table_Wrappers.
2393
2394 * sem_util.adb (Collect_Interface_Components): Improve handling of
2395 private types.
2396
2397 * atree.ads (Elist26, Set_Elist26): New subprograms
2398
2399 * atree.adb (Elist26, Set_Elist26): New subprograms
2400
59262ebb
AC
24012009-04-09 Javier Miranda <miranda@adacore.com>
2402
2403 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
2404 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
2405 tagged types.
2406
24072009-04-09 Robert Dewar <dewar@adacore.com>
2408
2409 * s-direio.adb: Minor reformatting
2410
2411 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
2412
fa969310
AC
24132009-04-09 Robert Dewar <dewar@adacore.com>
2414
2415 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
2416
24172009-04-09 Pascal Obry <obry@adacore.com>
2418
2419 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
2420 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
2421 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
2422 a-filico.ads: Add some missing overriding keywords.
2423
3c25856a
AC
24242009-04-09 Pascal Obry <obry@adacore.com>
2425
2426 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
2427 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
2428 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
2429 reformatting.
2430
24312009-04-09 Ed Schonberg <schonberg@adacore.com>
2432
2433 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
2434 missing overriding indicator if the new declaration is not seen as
2435 primitive.
2436
76c597a1
AC
24372009-04-09 Thomas Quinot <quinot@adacore.com>
2438
2439 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
2440 overflows in computation of bounds.
2441
24422009-04-09 Pascal Obry <obry@adacore.com>
2443
2444 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
2445 typos in comment.
2446
95b89f1b
AC
24472009-04-09 Robert Dewar <dewar@adacore.com>
2448
2449 * sem_attr.adb (Check_Stream_Attribute): Check violation of
2450 restriction No_Streams
2451
2452 * gnat_rm.texi: Clarify No_Streams restriction
2453
2454 * g-socket.adb: Minor reformatting.
2455
24562009-04-09 Thomas Quinot <quinot@adacore.com>
2457
2458 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
2459
24602009-04-09 Geert Bosch <bosch@adacore.com>
2461
2462 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
2463 (Set_Result): Likewise.
2464 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
2465 conversion, as required by RM 4.6(31).
2466
3d5952be
AC
24672009-04-08 Robert Dewar <dewar@adacore.com>
2468
2469 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
2470 suppressed.
2471
2472 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
2473 resolution steps.
2474
24752009-04-08 Robert Dewar <dewar@adacore.com>
2476
2477 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
2478 No_Local_Allocators restriction preventing local instantiation.
2479
24802009-04-08 Thomas Quinot <quinot@adacore.com>
2481
2482 * sem_eval.adb: Minor comment fix
2483
24842009-04-08 Thomas Quinot <quinot@adacore.com>
2485
2486 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
2487 New limited controlled type used to automate the initialization and
2488 finalization of the sockets implementation.
2489 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
2490
24912009-04-08 Vincent Celier <celier@adacore.com>
2492
2493 * prj-attr.adb: New read-only project-level attribute Project_Dir
2494
2495 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
2496 read-only attribute of the same name.
2497 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
2498 (Recursive_Process): Ditto
2499
2500 * snames.adb: Add new standard name Project_Dir
2501
2502 * snames.ads: Add new standard name Project_Dir
2503
b568955d
AC
25042009-04-08 Thomas Quinot <quinot@adacore.com>
2505
2506 * checks.adb: Minor reformatting
2507
25082009-04-08 Vincent Celier <celier@adacore.com>
2509
2510 * vms_data.ads: Add documentation for new style keyword
2511 OVERRIDING_INDICATORS
2512
25132009-04-08 Robert Dewar <dewar@adacore.com>
2514
2515 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
2516 spec is in the current unit.
2517
ed57136d
AC
25182009-04-08 Ed Schonberg <schonberg@adacore.com>
2519
2520 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
2521 presence of entity.
2522
2523 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
2524
25252009-04-08 Vincent Celier <celier@adacore.com>
2526
2527 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
2528
25292009-04-08 Thomas Quinot <quinot@adacore.com>
2530
2531 * checks.ads: Minor reformatting
2532
25332009-04-08 Robert Dewar <dewar@adacore.com>
2534
2535 * gnat_rm.texi: Update documentation of pragma Obsolescent
2536
2537 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
2538 be omitted, and allow Entity parameter to be omitted.
2539
ef7c5692
AC
25402009-04-08 Thomas Quinot <quinot@adacore.com>
2541
2542 * exp_util.adb: Minor comment fix
2543
25442009-04-08 Robert Dewar <dewar@adacore.com>
2545
2546 * g-socket.ads: Fix bad syntax in pragma Obsolescent
2547
2548 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
2549 argument with no identifier following one that has an identifier. Was
2550 missed in some cases.
2551
2552 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
2553 identifier.
2554 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
2555
2556 * snames.adb: Add Name_Policy
2557
2558 * snames.ads: Add Name_Policy
2559
0c7f5241
RD
25602009-04-08 Robert Dewar <dewar@adacore.com>
2561
2562 * gnat_rm.texi: Minor reformatting
2563
2564 * par-ch2.adb: Minor reformatting
2565
ae8c7d87
RD
25662009-04-08 Robert Dewar <dewar@adacore.com>
2567
2568 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
2569
ff69f95a
RD
25702009-04-08 Robert Dewar <dewar@adacore.com>
2571
2572 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
2573 properly in the presence of Remote_Types or Remote_Call_Interface.
2574
2575 * sem_util.adb: Add comment.
2576
2db15b1d
AC
25772009-04-08 Robert Dewar <dewar@adacore.com>
2578
2579 * ug_words: Add /ASSUME_VALID for -gnatB
2580
2581 * vms_data.ads: Add /ASSUME_VALID for -gnatB
2582
2583 * sem_cat.adb: Add clarifying commment
2584
2585 * a-direio.ads (Bytes): Make sure value is non-zero
2586
25872009-04-08 Ed Schonberg <schonberg@adacore.com>
2588
2589 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
2590 that does not come from source, check for a rewritten function call in
2591 prefixed notation before other forms of rewriting.
2592
25932009-04-08 Robert Dewar <dewar@adacore.com>
2594
2595 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
2596 these are now obsolescent units used only for bootrapping with an
2597 older compiler.
2598
94fd3dc6
AC
25992009-04-08 Robert Dewar <dewar@adacore.com>
2600
2601 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
2602
2603 * sem_ch3.adb: Minor comment updates
2604
26052009-04-08 Ed Schonberg <schonberg@adacore.com>
2606
2607 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
2608 that come from source.
2609
40a14772
TG
26102009-04-08 Tristan Gingold <gingold@adacore.com>
2611
cac9d8d6
EB
2612 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
2613 * gcc-interface/decl.c (prepend_attributes): New case
2614 Pragma_Thread_Local_Storage.
2615 * gcc-interface/utils.c (process_attributes): New case
2616 ATTR_THREAD_LOCAL_STORAGE.
2617
46ff89f3
AC
26182009-04-08 Ed Schonberg <schonberg@adacore.com>
2619
2620 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
2621 by the back-end if it contains a call to a subprogram without a
2622 previous spec that is declared in the same unit.
2623
2624 * errout.ads: Update comments on uses of dirs
2625
26262009-04-08 Robert Dewar <dewar@adacore.com>
2627
2628 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
2629
812f574f
AC
26302009-04-08 Tristan Gingold <gingold@adacore.com>
2631
2632 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
2633 variables.
2634 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
2635
26362009-04-08 Vincent Celier <celier@adacore.com>
2637
2638 * prj-nmsc.adb:
2639 (Add_Source): Add the mapping of the unit name to source file name in
2640 the Unit_Sources_HT hash table, if the unit name is not null.
2641
2642 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
2643
2644 * prj.ads (Unit_Sources_Htable): New hash table instantiation
2645 (Project_Tree_Data): New component Unit_Sources_HT
2646
4c8a5bb8
AC
26472009-04-08 Thomas Quinot <quinot@adacore.com>
2648
2649 * sem_ch8.adb: Minor reformatting.
2650 Minor code reorganization.
2651
26522009-04-08 Robert Dewar <dewar@adacore.com>
2653
2654 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
2655 snames.ads, freeze.adb, par-prag.adb: Add implementation of
2656 pragma Thread_Local_Storage, setting new flag
2657 Has_Pragma_Thread_Local_Storage in corresponding entities.
2658
ecc4ddde
AC
26592009-04-08 Emmanuel Briot <briot@adacore.com>
2660
2661 * prj.ads: Update comment on switches file
2662
2663 * prj-nmsc.adb: Code clean up. Use renaming clauses.
2664
26652009-04-08 Robert Dewar <dewar@adacore.com>
2666
2667 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
2668
26692009-04-08 Thomas Quinot <quinot@adacore.com>
2670
2671 * ali-util.adb: Minor comment fix
2672
26732009-04-08 Ed Schonberg <schonberg@adacore.com>
2674
2675 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
2676 appears in a context clause, and the enclosing package is mentioned in
2677 a limited_with_clause.
2678 (Use_One_Type): Reject clause if type is still incomplete.
2679
a29262fd
AC
26802009-04-08 Emmanuel Briot <briot@adacore.com>
2681
2682 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
2683 avoid copies of Source_Data variables when possible, since these
2684 involve calls to memcpy() which are done too many times.
2685
26862009-04-08 Robert Dewar <dewar@adacore.com>
2687
2688 * exp_ch4.adb (Expand_Concatenate): Clean up code
2689
a2dc5812
AC
26902009-04-07 Thomas Quinot <quinot@adacore.com>
2691
2692 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
2693 type for the case of concatenating a constrained array indexed by an
2694 enumeration type.
2695
26962009-04-07 Ed Schonberg <schonberg@adacore.com>
2697
2698 * sem_ch6.adb (Check_Conformance): when checking conformance of an
2699 operation that overrides an abstract operation inherited from an
2700 interface, return False if only one of the controlling formals is an
2701 access parameter.
2702
27032009-04-07 Ed Schonberg <schonberg@adacore.com>
2704
2705 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
2706 mandated by AI05-105.
2707
27082009-04-07 Vincent Celier <celier@adacore.com>
2709
2710 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
2711
27122009-04-07 Thomas Quinot <quinot@adacore.com>
2713
2714 * usage.adb: Minor fix in usage message.
2715
2716 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
2717 match declaration; the correct subtype is Node_Id, not Entity_Id,
2718 because the expected node kind is an identifier, not a defining
2719 identifier.
2720
2721 * switch-c.adb: Minor reformatting.
2722
2723 * uintp.adb: Minor reformatting.
2724
27252009-04-07 Robert Dewar <dewar@adacore.com>
2726
2727 * exp_ch13.adb: Minor reformatting
2728
0ac73189
AC
27292009-04-07 Robert Dewar <dewar@adacore.com>
2730
2731 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
2732 against missing parent.
2733
27342009-04-07 Thomas Quinot <quinot@adacore.com>
2735
2736 * xoscons.adb: Minor reformatting
2737
27382009-04-07 Robert Dewar <dewar@adacore.com>
2739
2740 * rtsfind.ads: Remove obsolete string concatenation entries
2741
27422009-04-07 Robert Dewar <dewar@adacore.com>
2743
2744 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
2745
27462009-04-07 Ed Schonberg <schonberg@adacore.com>
2747
2748 * sem_ch10.adb (Check_Body_Required): Handle properly imported
2749 subprograms.
2750
27512009-04-07 Gary Dismukes <dismukes@adacore.com>
2752
2753 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
2754 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
2755 is of a scalar or string type then suppress the setting of the
2756 expression to Empty.
2757
2758 * freeze.adb (Warn_Overlay): Also emit the warnings about default
2759 initialization for the cases of scalar and string objects when
2760 Init_Or_Norm_Scalars is True.
2761
1732c156
AC
27622009-04-07 Bob Duff <duff@adacore.com>
2763
2764 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
2765
27662009-04-07 Bob Duff <duff@adacore.com>
2767
2768 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
2769 Form parameter of Text_Translation=No allows binary mode for Text_IO
2770 files.
2771
2772 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
2773
27742009-04-07 Javier Miranda <miranda@adacore.com>
2775
2776 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
2777 processing the bounds for bit packed arrays or VM target machines.
2778
f16d05d9
AC
27792009-04-07 Thomas Quinot <quinot@adacore.com>
2780
2781 * g-sothco.ads (Int_Access): Remove extraneous access type (use
2782 anonymous access instead).
2783 (Get_Socket_From_Set): Fix incorrectly reverted formals
2784 Last and Socket to match the underlying C routine.
2785
ad1536a1 2786 * g-socket.adb, g-socket.ads
f16d05d9
AC
2787 (Get): Use named parameter associations instead of positional ones in
2788 call go Get_Socket_From_Set, since this routine has two formals of the
2789 same type.
ad1536a1 2790 (Image): New procedure.
f16d05d9
AC
2791
2792 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2793 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
2794 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
2795 for type of Arg formal.
2796
2797 * sem_warn.adb: Minor reformatting
2798
27992009-04-07 Ed Schonberg <schonberg@adacore.com>
2800
2801 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
2802 over record components.
2803
28042009-04-07 Nicolas Roche <roche@adacore.com>
2805
2806 * gsocket.h:
2807 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
2808 has disappeared between VxWorks 6.4 and VxWorks 6.5
2809 In RTP mode use time.h instead of times.h
2810
28112009-04-07 Robert Dewar <dewar@adacore.com>
2812
2813 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
2814
28152009-04-07 Kevin Pouget <pouget@adacore.com>
2816
2817 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
2818 expanded code for constrained types.
2819
28202009-04-07 Ed Schonberg <schonberg@adacore.com>
2821
2822 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
2823 AI05-105: in an object renaming declaration, anonymousness is a name
2824 resolution rule.
2825
2826 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
2827
28282009-04-07 Arnaud Charlet <charlet@adacore.com>
2829
2830 * g-comlin.adb (Expansion): Fix old regression: also return directory
2831 names when matching.
2832
2fc05e3d
AC
28332009-04-07 Robert Dewar <dewar@adacore.com>
2834
2835 * exp_ch4.adb:
2836 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
2837 (Expand_Concatenate): New name for Expand_Concatenate_String which has
2838 been rewritten to handle all types.
2839 (Expand_Concatenate_Other): Remove
2840
28412009-04-07 Ed Schonberg <schonberg@adacore.com>
2842
2843 * lib-xref.adb (Generate_Reference): A default subprogram in an
2844 instance appears within the tree for the instance, but generates an
2845 implicit reference in the ALI.
2846
fdac1f80
AC
28472009-04-07 Javier Miranda <miranda@adacore.com>
2848
2849 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
2850 derived type that has discriminants, propagate the list of interfaces
2851 to the corresponding new base type. In addition, propagate also
2852 attribute Limited_Present (found working in this patch).
2853
28542009-04-07 Robert Dewar <dewar@adacore.com>
2855
2856 * exp_ch4.adb: Rewrite concatenation expansion.
2857
8dbd1460
AC
28582009-04-07 Ed Schonberg <schonberg@adacore.com>
2859
2860 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
2861 relevant to packages.
2862
28632009-04-07 Robert Dewar <dewar@adacore.com>
2864
2865 * sem_attr.adb: Minor reformatting
2866
2867 * sem_ch6.adb: Minor reformatting
2868
2ddc2000
AC
28692009-04-07 Tristan Gingold <gingold@adacore.com>
2870
2871 * socket.c: Add more protections against S_resolvLib_ macros.
2872
28732009-04-07 Thomas Quinot <quinot@adacore.com>
2874
2875 * sem_attr.adb: Minor reformatting
2876
28772009-04-07 Ed Schonberg <schonberg@adacore.com>
2878
2879 * sem_ch6.adb (New_Overloaded_Entity): New predicate
2880 Is_Overriding_Alias to handle properly types that inherit two homonym
2881 operations that have distinct dispatch table entries.
2882
06a16f58
AC
28832009-04-07 Emmanuel Briot <briot@adacore.com>
2884
2885 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
2886 looking for the end of a parenthesis group
2887
28882009-04-07 Tristan Gingold <gingold@adacore.com>
2889
2890 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
2891
2892 * socket.c Don't use resolvLib_ macros if not defined.
2893
df46b832
AC
28942009-04-07 Robert Dewar <dewar@adacore.com>
2895
2896 * g-socket.adb: Minor reformatting.
2897
2898 * g-socthi-mingw.adb: Minor reformatting
2899
2900 * g-sothco.ads: Minor reformatting
2901
2902 * exp_ch4.adb:
2903 (Expand_Concatenate_String): Complete rewrite to generate efficient code
2904 inline instead of relying on external library routines.
2905
2906 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
2907 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
2908 obsolescent
2909
29102009-04-07 Ed Schonberg <schonberg@adacore.com>
2911
2912 * sem_attr.adb:
2913 (Eval_Attribute): for attributes of array objects that are not strings,
2914 attributes are not static if nominal subtype of object is unconstrained.
2915
29162009-04-07 Ed Schonberg <schonberg@adacore.com>
2917
2918 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
2919 operations for a type T in an instance do not override each other,
2920 when T is derived from a formal private type, the corresponding
2921 operations inherited by a type derived from T outside
2922 of the instance do not override each other either.
2923
3dd9959c
AC
29242009-04-07 Robert Dewar <dewar@adacore.com>
2925
2926 (Osint.Fail): Change calling sequence to have one string arg
2927 (Make.Make_Failed): Same change
2928 All callers are adjusted to use concatenation
2929
29302009-04-07 Robert Dewar <dewar@adacore.com>
2931
2932 * exp_ch4.adb: Fix documentation typo
2933
29342009-04-07 Robert Dewar <dewar@adacore.com>
2935
2936 * tbuild.ads: Minor reformatting
2937
29382009-04-07 Javier Miranda <miranda@adacore.com>
2939
2940 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
2941 when compiling under ZFP runtime.
2942
29432009-04-07 Robert Dewar <dewar@adacore.com>
2944
2945 * g-comlin.adb: Minor reformatting
2946
29472009-04-07 Thomas Quinot <quinot@adacore.com>
2948
2949 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2950 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2951 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
2952 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
2953
dcd8728b
RD
29542009-04-07 Robert Dewar <dewar@adacore.com>
2955
2956 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
2957
2958 * opt.ads (Sprint_Line_Limit): New parameter
2959
2960 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
2961
2962 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
2963
2964 * usage.adb: Output information for -gnatGnn -gnatDnn
2965
29662009-04-07 Robert Dewar <dewar@adacore.com>
2967
2968 * make.adb: Minor reformatting
2969
29702009-04-07 Robert Dewar <dewar@adacore.com>
2971
2972 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
2973
29742009-04-07 Robert Dewar <dewar@adacore.com>
2975
2976 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
2977
c27f2f15
RD
29782009-04-07 Robert Dewar <dewar@adacore.com>
2979
2980 * checks.adb:
2981 Remove Assume_Valid parameter from In_Subrange_Of calls
2982
2983 * sem_eval.adb:
2984 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2985 (Is_In_Range): Remove incorrect use of Assume_Valid
2986 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
2987
2988 * sem_eval.ads:
2989 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2990 (Is_In_Range): Documentation cleanup
2991 (Is_Out_Of_Range): Documentation cleanup
2992
2993 * gnat_rm.texi:
2994 Add documentation for Assume_No_Invalid_Values pragma
2995
2996 * sem_ch12.adb: Minor reformatting
2997
2998 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
2999
3000 * sem_prag.adb: Improve error message.
3001
3002 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
3003 LF/CR no longer recognized as line terminator
3004
3005 * switch.ads: Minor documentation improvement
3006
3007 * vms_data.ads: Minor reformatting
3008
c800f862
RD
30092009-04-07 Robert Dewar <dewar@adacore.com>
3010
3011 * checks.adb (Determine_Range): Add Assume_Valid parameter
3012
3013 * checks.ads (Determine_Range): Add Assume_Valid parameter
3014
3015 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
3016 Is_Null_Loop to suppress warnings in a loop body.
3017
3018 * exp_ch4.adb:
3019 (Rewrite_Comparison): Major rewrite to accomodate invalid values
3020
3021 * exp_ch5.adb:
3022 (Expand_N_Loop_Statement): Delete loop known not to execute
3023
3024 * opt.ads:
3025 (Assume_No_Invalid_Values): Now set to False, and as documented, this
3026 fully enables the proper handling of invalid values.
3027
3028 * sem_attr.adb:
3029 New calling sequence for Is_In_Range
3030
3031 * sem_ch5.adb:
3032 (Analyze_Iteration_Scheme): Accomodate possible invalid values
3033 in determining if a loop range is null.
3034
3035 * sem_eval.adb:
3036 (Is_In_Range): Add Assume_Valid parameter
3037 (Is_Out_Of_Range): Add Assume_Valid_Parameter
3038 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
3039 also to do more accurate and complete range analysis, catching more
3040 cases.
3041
3042 * sem_eval.ads:
3043 (Is_In_Range): Add Assume_Valid parameter
3044 (Is_Out_Of_Range): Add Assume_Valid_Parameter
3045
3046 * sem_util.adb:
3047 New calling sequence for Is_In_Range
3048
3049 * sinfo.adb:
3050 (Suppress_Loop_Warnings): New flag
3051
3052 * sinfo.ads:
3053 (Is_Null_Loop): Update documentation
3054 (Suppress_Loop_Warnings): New flag
3055
3056 * gnat_ugn.texi: Document -gnatB switch
3057
9d00840d
AC
30582009-04-07 Arnaud Charlet <charlet@adacore.com>
3059
3060 * gnatvsn.ads: Bump version number.
3061
5f143024
AC
30622009-04-07 Thomas Quinot <quinot@adacore.com>
3063
3064 * exp_ch3.adb: Minor rewording (comments)
3065
30662009-04-07 Robert Dewar <dewar@adacore.com>
3067
3068 * exp_disp.adb: Minor reformatting
3069
d5859bf4
EB
30702009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3071
3072 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
3073 underlying type.
3074 * gcc-interface/trans.c (lvalue_required_p): Likewise.
3075
c86f07f6
EB
30762009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3077
3078 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
3079 Do not convert the result. Remove obsolete comment.
3080
2d5be6c1
EB
30812009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3082
3083 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
3084 DECL_CONTEXT.
3085 (Subprogram_Body_to_gnu): Fix pasto.
3086
10069d53
EB
30872009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3088
3089 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
3090 (void_type_decl_node): Remove.
3091 (init_gigi_decls): Likewise.
3092 (gnat_install_builtins): Declare.
3093 (record_builtin_type): Likewise.
3094 (create_type_stub_decl): Likewise.
3095 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
3096 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
3097 artificial.
3098 <E_Array_Subtype>: Use the index types, not only their name, in the
3099 record giving the names of the bounds, if any.
3100 For a packed array type, make it artificial only if the base type
3101 was artificial as well. Remove redundant statement.
3102 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
3103 dummy types.
3104 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
3105 (rest_of_type_decl_compilation_no_defer): Likewise.
3106 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
3107 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
3108 and use create_type_stub_decl to build it.
3109 (gnat_pushdecl): Rewrite condition.
3110 (gnat_install_builtins): Remove bogus declaration.
3111 (record_builtin_type): New function.
3112 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
3113 of types.
3114 (create_type_stub_decl): New function.
3115 (create_type_decl): Assert that the type is not dummy. If the type
3116 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
3117 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
3118 (build_vms_descriptor): Likewise.
3119 (init_gigi_decls): Delete and move bulk of code to...
3120 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
3121 (emit_range_check): Add gnat_node parameter.
3122 (emit_index_check): Likewise.
3123 (emit_check): Likewise.
3124 (build_unary_op_trapv): Likewise.
3125 (build_binary_op_trapv): Likewise.
3126 (convert_with_check): Likewise.
3127 (Attribute_to_gnu): Adjust calls for above changes.
3128 (call_to_gnu): Likewise.
3129 (gnat_to_gnu): Likewise.
3130 (assoc_to_constructor): Likewise.
3131 (pos_to_constructor): Likewise.
3132 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
3133 (process_type): Do not create TYPE_DECL for dummy types.
3134
229077b0
EB
31352009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3136
1e17ef87
EB
3137 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
3138 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
3139 * gcc-interface/utils.c: Fix comments.
3140
31412009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3142
3143 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
3144 move around.
229077b0
EB
3145 (gnat_to_gnu_type): Move around.
3146 (get_unpadded_type): Likewise.
1e17ef87
EB
3147 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
3148 Tidy comments.
229077b0 3149
aa1aa786
EB
31502009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3151
3152 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
3153 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
3154 (call_to_gnu): Invoke it instead of manually checking.
3155
63787194
EB
31562009-04-04 Eric Botcazou <ebotcazou@adacore.com>
3157
3158 * gcc-interface/utils.c (finish_record_type): Force structural equality
3159 checks if the record type is discriminated.
3160
d236ace7
EB
31612009-03-31 Eric Botcazou <ebotcazou@adacore.com>
3162
3163 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
3164 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
3165 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
3166 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
3167 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
3168 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
3169 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
3170
bd9f68e0
PB
31712009-03-30 Paolo Bonzini <bonzini@gnu.org>
3172
d7be99f1
EB
3173 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
3174 of TREE_CONSTANT_OVERFLOW.
bd9f68e0 3175
8ce94e44
JM
31762009-03-30 Joseph Myers <joseph@codesourcery.com>
3177
3178 PR rtl-optimization/323
3179 * gcc-interface/misc.c (gnat_post_options): Set
3180 flag_excess_precision_cmdline. Give an error for
3181 -fexcess-precision=standard for processors where the option is
3182 significant.
3183
d9223014
L
31842009-03-27 H.J. Lu <hongjiu.lu@intel.com>
3185
3186 PR c/39323
3187 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
3188 on bit_align.
3189
76761bbd
OH
31902009-03-11 Olivier Hainque <hainque@adacore.com>
3191
3192 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
3193 checks processing, remove unintended TREE_TYPE walk on index type.
3194
39ae51e0
EB
31952009-03-01 Eric Botcazou <ebotcazou@adacore.com>
3196
3197 PR ada/39264
3198 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
3199 call make_packable_type on fat pointer types.
3200 <E_Array_Subtype>: Likewise.
3201 <E_Record_Subtype>: Call make_packable_type on all record types
3202 except for fat pointer types.
3203 (make_packable_type): Likewise.
3204 (gnat_to_gnu_field): Likewise.
3205
7d01864f
EB
32062009-02-28 Eric Botcazou <ebotcazou@adacore.com>
3207
3208 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
67901d32 3209 EH_MECHANISM change made on 2007-12-06.
7d01864f 3210
a760c977
AS
32112009-02-26 Andreas Schwab <schwab@suse.de>
3212
4c354194 3213 PR ada/39172
a760c977 3214 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
a760c977
AS
3215 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
3216 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
3217 (AWK): Substitute.
3218 (target_cpu_default): Substitute.
3219
054efbba
LG
32202009-02-25 Laurent GUERBY <laurent@guerby.net>
3221
975a4fd6 3222 PR ada/39221
a760c977
AS
3223 * a-teioed.adb (Expand): Fix Result overflow.
3224
2692d7f5
LG
32252009-02-25 Laurent GUERBY <laurent@guerby.net>
3226
a760c977
AS
3227 * gcc-interface/Makefile.in: Fix multilib handling for
3228 sparc64-linux.
3229
ea675ec3
RO
32302009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3231
3232 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
3233
e98c0739
L
32342009-02-18 H.J. Lu <hongjiu.lu@intel.com>
3235
3236 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
3237
70f5fc7c
EB
32382009-02-16 Eric Botcazou <ebotcazou@adacore.com>
3239
3240 * gcc-interface/deftarg.c: Remove.
3241
794511d2 32422009-02-10 Olivier Hainque <hainque@adacore.com>
e98c0739 3243 Eric Botcazou <ebotcazou@adacore.com>
794511d2
EB
3244
3245 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
3246 (copy_alias_set): Rename into...
3247 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
3248 underlying array of unconstrained arrays for the new type as well.
3249 If the old and new alias sets don't conflict, make one a subset of
3250 the other as per the OP parameter.
3251 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
3252 <E_Record_Type>: Do not copy the alias set for derived types.
3253 For all types, make the alias set of derived types a superset of
3254 that of their parent type.
3255 (make_aligning_type): Adjust calls to copy_alias_set.
3256 (make_packable_type): Likewise.
3257 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
3258 Check for alias set conflict instead of strict equality to issue the
3259 warning.
3260
c3734896
EB
32612009-02-09 Eric Botcazou <ebotcazou@adacore.com>
3262
3263 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3264 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
3265 (copy_alias_set): Assert that arrays have the same aliasing settings.
3266 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
3267
9a58d4d2
EB
32682009-02-08 Eric Botcazou <ebotcazou@adacore.com>
3269
3270 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3271 Set TYPE_NONALIASED_COMPONENT on the array type.
3272
d0ec4c99
LG
32732009-01-31 Laurent GUERBY <laurent@guerby.net>
3274
3275 * gcc-interface/Makefile.in: Fix mipsel linux handling.
a760c977 3276
4dcb8fd1
JJ
32772009-01-16 Jakub Jelinek <jakub@redhat.com>
3278
3279 * gcc-interface/Makefile.in: Fix multilib handling for
3280 powerpc64-linux.
3281
3b9c1abd
EB
32822009-01-12 Eric Botcazou <ebotcazou@adacore.com>
3283
3284 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
3285 only useless conversions around renamed objects.
3286
13318d2f
EB
32872009-01-11 Eric Botcazou <ebotcazou@adacore.com>
3288
3289 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
3290 the _Tag field before any discriminants in the field list.
3291 (components_to_record): Remove obsolete comment.
3292
6f9f0ce3
JJ
32932008-12-09 Jakub Jelinek <jakub@redhat.com>
3294
3295 PR ada/38450
3296 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
3297 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
3298 Likewise.
3299
9ff4a9da 33002008-12-05 Sebastian Pop <sebastian.pop@amd.com>
250d2fb5
JJ
3301
3302 PR bootstrap/38262
3303 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
3304
f9805f52
EB
33052008-11-29 Eric Botcazou <ebotcazou@adacore.com>
3306
3307 PR ada/30827
3308 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
3309
2ddc34ba
EB
33102008-11-27 Eric Botcazou <ebotcazou@adacore.com>
3311
3312 * gcc-interface/decl.c: Fix various nits.
3313
58612565
EB
33142008-11-20 Eric Botcazou <ebotcazou@adacore.com>
3315
3316 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
3317
e66e5d9e
EB
33182008-11-16 Eric Botcazou <ebotcazou@adacore.com>
3319
3320 PR ada/38127
d74b4b00
EB
3321 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
3322 special-case boolean types. Propagate the name.
e66e5d9e
EB
3323 * gcc-interface/targtyps.c: Tweak comment.
3324
7348f18c
GB
33252008-11-15 Geert Bosch <bosch@adacore.com>
3326
3327 * gcc-interface/trans.c (emit_check): Put back a final save_expr
3328 to prevent exponential expansion during gimplification.
3329
708bceb7
EB
33302008-11-15 Eric Botcazou <ebotcazou@adacore.com>
3331
3332 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
3333
a5b8aacd
EB
33342008-11-15 Eric Botcazou <ebotcazou@adacore.com>
3335
3336 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
3337 initialized to a static constant to be statically allocated even if
3338 they are of a padding type, provided the original type also has
3339 constant size.
3340
4364e851
LG
33412008-11-15 Laurent Guerby <laurent@guerby.net>
3342
3343 PR ada/37993
3344 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3345 on darwin.
3346 * system-darwin-x86_64.ads: New file.
3347
255e5b04
OH
33482008-11-13 Olivier Hainque <hainque@adacore.com>
3349
3350 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
3351 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
3352 are explicit to the middle-end. Tidy.
3353
82d3b03a
EB
33542008-11-09 Eric Botcazou <ebotcazou@adacore.com>
3355
3356 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
3357 (MINUS_NOMOD_EXPR): Likewise.
3358 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
3359 unreachable.
3360 <PLUS_NOMOD_EXPR>: New case.
3361 <MINUS_NOMOD_EXPR>: Likewise.
3362 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
3363 assignment statement instead of using an increment operator.
3364
f5026442
RO
33652008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3366
3367 * system-irix-n64.ads: New file.
3368 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
3369 multilibs.
3370
33712008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3372
3373 PR ada/37681
3374 * system-solaris-x86_64.ads: New file.
3375 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
3376
7fee6a39 33772008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
e98c0739 3378 Eric Botcazou <ebotcazou@adacore.com>
7fee6a39
BZ
3379
3380 PR ada/34289
3381 * lib.ads: (Enable_Switch_Storing): Declare.
3382 * lib.adb: (Enable_Switch_Storing): New procedure.
3383 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
3384 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
3385 (Display): Never display -gnatea
3386 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
3387
9ed0e483
TQ
33882008-11-07 Thomas Quinot <quinot@adacore.com>
3389
3390 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
3391 for empty range in original base type, not converted result type.
3392
58e94443
GB
33932008-11-07 Geert Bosch <bosch@adacore.com>
3394
3395 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
3396 and result for call to __gnat_mulv64.
3397
a7c43bbc
EB
33982008-11-07 Eric Botcazou <ebotcazou@adacore.com>
3399
3400 * gcc-interface/trans.c: Fix formatting nits.
3401
2575024c
GB
34022008-11-07 Geert Bosch <bosch@adacore.com>
3403
3404 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
3405 overflow check for constant result.
3406
4ae39383
GB
34072008-11-07 Geert Bosch <bosch@adacore.com>
3408
3409 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
3410 overflow check for addition/subtraction if neither operand is constant.
3411
6818f0fc
EB
34122008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3413
3414 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
3415 files for the target-dependent part of the runtime.
3416 (SPARC/Linux): Likewise.
3417
8d3323de
EB
34182008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3419
3420 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
3421 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
3422 purposes.
3423
baf6e6a8
EB
34242008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3425
3426 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
3427 in GC memory.
3428
8b659f79
EB
34292008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3430
3431 PR ada/19419
3432 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
3433 Generate a call to memmove for an assignment between overlapping
3434 array slices.
3435
358ef7fb
AK
34362008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3437
3438 PR target/37977
3439 * gcc-interface/Makefile.in: Add multilib handling for
3440 s390-linux and s390x-linux.
3441
7134e605
JJ
34422008-10-24 Jakub Jelinek <jakub@redhat.com>
3443
3444 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
3445 check-acats-subtargets and check-gnat-subtargets.
3446 (check_acats_targets): New variable.
3447 (check-acats-subtargets, check-acats%): New targets.
3448 (check-acats): If -j is used and CHAPTERS is empty, run the testing
3449 in multiple make goals, possibly parallel, and afterwards run
3450 dg-extract-results.sh to merge the sum and log files.
3451
82f7c45f
GB
34522008-10-17 Geert Bosch <bosch@adacore.com>
3453
3454 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
3455 to use only a single check instead of three, and avoid unnecessary
3456 COMPOUND_EXPR.
3457 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
3458 creating more opportunities for optimizations.
3459
0adef32b
JJ
34602008-10-13 Jakub Jelinek <jakub@redhat.com>
3461
3462 PR middle-end/37601
3463 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
3464 NULL TYPE_DOMAIN.
3465
9cf18af8
EB
34662008-10-07 Eric Botcazou <ebotcazou@adacore.com>
3467
3468 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
3469 dealing with volatileness to after code dealing with renaming.
3470
e84319a3
EB
34712008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3472
3473 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
3474 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
3475
afcea859
EB
34762008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3477
3478 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
3479 (unchecked_convert): Use it to disable problematic folding with
3480 VIEW_CONVERT_EXPR in the general case. Always disable it for the
3481 special VIEW_CONVERT_EXPR built for integral types and cope with
3482 its addressability issues by preserving the first conversion.
3483
9e81dbc7
AS
34842008-10-01 Andreas Schwab <schwab@suse.de>
3485
3486 * system-linux-ppc64.ads: New file.
3487 * gcc-interface/Makefile.in: Add multilib handling for
3488 powerpc-linux.
3489
bb3da4f2
EB
34902008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3491
3492 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
3493 to that of ptr_mode instead of word_mode.
3494
8f5730b9
EB
34952008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3496
3497 PR ada/5911
3498 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
3499
3ca37eb7
ST
35002008-09-25 Samuel Tardieu <sam@rfc1149.net>
3501
3502 PR ada/37641
3503 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
3504 instead of deprecated FILE_WRITE_PROPERTIES.
3505
22868cbf
OH
35062008-09-22 Olivier Hainque <hainque@adacore.com>
3507
3508 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
3509 are never assigned, volatile entities are not constant for code
3510 generation purposes.
3511
7193e639
LG
35122008-09-21 Laurent Guerby <laurent@guerby.net>
3513
9e81dbc7 3514 PR ada/5911
7193e639
LG
3515 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3516 and sparc.
3517 * system-linux-sparcv9.ads: New file.
9e81dbc7 3518
7fda1596
EB
35192008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3520
3521 * exp_dbug.ads: Document new convention for the XVZ variable.
3522 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
3523 debug info if necessary for the type padding the component type.
3524 <E_Array_Subtype>: Likewise.
3525 (maybe_pad_type): Emit the XVZ variable in units.
3526 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
3527 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
3528 on statements generated to initialize the parameter attributes cache.
3529 Set the source line of the end label of the body on the special return
3530 statement built for a procedure with copy-in copy-out parameters.
3531
d84b344a
EB
35322008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3533
3534 PR ada/37585
3535 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
3536 inlined external functions if they contain a nested function not
3537 declared inline.
3538
4db26d6c
JH
35392008-09-18 Jan Hubicka <jh@suse.cz>
3540
3541 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
3542 (end_subprog_body): Do not set DECL_INLINE.
3543
03e74118
PR
35442008-09-17 Pascal Rigaux <pixel@mandriva.com>
3545
3546 PR ada/21327
3547 * gnat_ugn.texi: Use proper format in direntry.
3548
6a7a3f31
EB
35492008-09-15 Eric Botcazou <ebotcazou@adacore.com>
3550
3551 * gcc-interface/trans.c (gigi): Declare the name of the compilation
3552 unit as the first global name.
3553
f67894ed
JH
35542008-09-14 Jan Hubicka <jh@suse.cz>
3555
6a7a3f31 3556 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
f67894ed 3557
16b05213
RW
35582008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3559
3560 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
3561 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
3562 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
3563 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
3564 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
3565 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
3566 gcc-interface/gigi.h, gcc-interface/trans.c,
3567 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
3568 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
3569 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
3570 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
3571 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
3572 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3573 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
3574 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
3575 comments.
3576 * gnathtml.pl: Fix typos.
3577
1011d8a2
JS
35782008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
3579
3580 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
3581 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
3582 layer. RTEMS binds to OS provided adapter routines so there are
3583 no modifications to s-osinte-rtems.adb.
3584
e5c73177
AC
35852008-09-09 Arnaud Charlet <charlet@adacore.com>
3586 Joel Sherrill <joel.sherrill@oarcorp.com>
3587
3588 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
3589
3590 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
3591
3592 * s-interr-hwint.adb: New file.
3593
3594 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
3595 needed by s-interr-hwint.adb.
3596
3597 * s-osinte-vxworks-kernel.adb: New file.
3598
56cc5928
JS
35992008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3600
3601 * s-stchop-rtems.adb: Add file missed in early commit. Already
3602 referenced in gcc-interface/Makefile.in.
3603
21bacb7e
TQ
36042008-08-30 Thomas Quinot <quinot@adacore.com>
3605
3606 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
3607 be built even without a separate libada directory.
3608
5b2da948
AC
36092008-08-22 Arnaud Charlet <charlet@adacore.com>
3610
3611 * lib-xref.ads: Fix typo in subprogram reference definition.
3612
36132008-08-22 Robert Dewar <dewar@adacore.com>
3614
c9f1fdfe
RD
3615 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
3616 to avoid warning.
5b2da948 3617
c9f1fdfe 3618 * g-trasym.adb: Ditto
5b2da948
AC
3619
3620 * s-utf_32.adb (Get_Category): Fix obvious typo
3621
3622 * s-wwdcha.adb: Minor code reorganization
3623 Remove dead code
3624
4351c21b
AC
36252008-08-22 Robert Dewar <dewar@adacore.com>
3626
3627 * checks.adb (Determine_Range): Deal with values that might be invalid
3628
e5c73177
AC
3629 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
3630 configuration switches.
4351c21b
AC
3631
3632 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
3633
3634 * sem_prag.adb: Implement pragma Assume_No_Default_Values
3635
3636 * snames.adb, snames.ads, snames.h:
3637 Add entries for pragma Assume_No_Invalid_Values
3638
3639 * switch-c.adb: Add processing for -gnatB switch
3640
3641 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
3642
36432008-08-22 Javier Miranda <miranda@adacore.com>
3644
3645 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
3646 init procedure all the expanded code associated with the spec of
3647 task types and protected types.
3648
2743d81d
AC
36492008-08-22 Gary Dismukes <dismukes@adacore.com>
3650
3651 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
3652 component expression copies rather than directly setting Etype and
3653 Is_Static_Expression.
3654
36552008-08-22 Gary Dismukes <dismukes@adacore.com>
3656
3657 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
3658 private types to allow for types derived from a private type with
3659 preelaborable initialization, but return False for a private extension
3660 (unless it has the pragma).
3661
36622008-08-22 Robert Dewar <dewar@adacore.com>
3663
3664 * opt.ads: Minor code reorganization (put entries in alpha order)
3665
a5ad3248
AC
36662008-08-22 Pascal Obry <obry@adacore.com>
3667
3668 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
3669 spawn.
3670
6eca32ba
GB
36712008-08-22 Geert Bosch <bosch@adacore.com>
3672
3673 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
3674 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
3675
1c7717c3
AC
36762008-08-22 Doug Rupp <rupp@adacore.com>
3677
3678 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
3679 __gnat_set_features.
3680
3681 * init.c
3682 (__gnat_set_features): New function.
3683 (__gnat_features_set): New tracking variable.
3684 (__gl_no_malloc_64): New feature global variable
3685
36862008-08-22 Ed Schonberg <schonberg@adacore.com>
3687
3688 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
3689 use_type_clause in an instance.
3690
36912008-08-22 Bob Duff <duff@adacore.com>
3692
3693 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
3694
36952008-08-22 Robert Dewar <dewar@adacore.com>
3696
3697 * exp_ch6.adb: Minor reformatting
3698
3699 * exp_ch7.adb: Minor reformatting
3700
3701 * exp_ch7.ads: Put routines in proper alpha order
3702
3703 * exp_dist.adb: Minor reformatting
3704
37052008-08-22 Vincent Celier <celier@adacore.com>
3706
3707 * prj.ads: Minor comment update
3708
37092008-08-22 Robert Dewar <dewar@adacore.com>
3710
3711 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
3712
37132008-08-22 Ed Schonberg <schonberg@adacore.com>
3714
3715 * exp_tss.adb:
3716 (Base_Init_Proc): For a protected subtype, use the base type of the
3717 corresponding record to locate the propoer initialization procedure.
3718
37192008-08-22 Robert Dewar <dewar@adacore.com>
3720
3721 * checks.adb:
3722 (In_Subrange_Of): New calling sequence
3723 (Determine_Range): Prepare for new processing using base type
3724
3725 * exp_ch4.adb:
3726 (Compile_Time_Compare): Use new calling sequence
3727
3728 * exp_ch5.adb:
3729 (Compile_Time_Compare): Use new calling sequence
3730
3731 * sem_eval.adb:
3732 (Compile_Time_Compare): New calling sequence allows dealing with
3733 invalid values.
3734 (In_Subrange_Of): Ditto
3735
3736 * sem_eval.ads:
3737 (Compile_Time_Compare): New calling sequence allows dealing with
3738 invalid values.
3739 (In_Subrange_Of): Ditto
3740
37412008-08-22 Pascal Obry <obry@adacore.com>
3742
3743 * adaint.c: Fix possible race condition on win32_wait().
3744
048e5cef
BD
37452008-08-22 Bob Duff <duff@adacore.com>
3746
3747 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
3748 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
3749 exp_intr.adb, exp_ch3.adb: Rename:
3750 Exp_Ch7.Controlled_Type => Needs_Finalization
3751 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
3752 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
3753 Has_Controlled_Parts
3754 (Has_Some_Controlled_Component): Fix bug in array case.
3755
da2f5d14
AC
37562008-08-22 Robert Dewar <dewar@adacore.com>
3757
3758 * sem_ch8.adb: Minor reformatting
3759
37602008-08-22 Kevin Pouget <pouget@adacore.com>
3761
3762 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
3763 Shared_Var_Close procedure specifications from package spec to package body.
3764
3765 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
3766 RE_Shared_Var_WOpen entries.
3767
3768 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
3769 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
3770
37712008-08-22 Eric Botcazou <ebotcazou@adacore.com>
3772
3773 * init.c: adjust EH support code on Alpha/Tru64 as well.
3774
3775 * raise-gcc.c: Add back a couple of comments.
3776
37772008-08-22 Ed Schonberg <schonberg@adacore.com>
3778
3779 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
3780 involved and the return type is class-wide, use the type of the expression
3781 for the generated access type. Suppress useless discriminant checks on the
3782 allocator.
3783
37842008-08-22 Bob Duff <duff@adacore.com>
3785
3786 * exp_ch7.adb: Minor comment fix
3787
3788 * exp_ch6.ads: Minor comment fix
3789
1dcdbfab
AC
37902008-08-22 Thomas Quinot <quinot@adacore.com>
3791
3792 * sem_ch8.adb: Minor reformatting
3793 Minor code reorganization (introduce subprogram to factor duplicated
3794 code).
3795
37962008-08-22 Sergey Rybin <rybin@adacore.com>
3797
3798 * gnat_ugn.texi: Change the description of gnatcheck default rule
3799 settings.
3800
38012008-08-22 Eric Botcazou <ebotcazou@adacore.com>
3802
3803 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
3804 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
3805 do not adjust the PC anymore.
3806 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
3807 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
3808
3809 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
3810 instead of _Unwind_GetIP.
3811
38122008-08-22 Gary Dismukes <dismukes@adacore.com>
3813
3814 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
3815 with a range is transformed into a positional aggregate, any copied
3816 component literals should be marked Is_Static_Expression.
3817
3818 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
3819 not being known at at compile time when Configurable_Run_Time_Mode is
3820 true.
3821
38222008-08-22 Robert Dewar <dewar@adacore.com>
3823
3824 * exp_attr.adb:
3825 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
3826 Read or Input attribute.
3827
0d4aed99
AC
38282008-08-22 Ed Schonberg <schonberg@adacore.com>
3829
3830 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
3831 clauses in related units is redundant, if one of the units is a package
3832 instantiation, use its instance_spec to determine which unit is the
3833 ancestor of the other.
3834
38352008-08-22 Javier Miranda <miranda@adacore.com>
3836
3837 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
3838 attributes add missing support to handle designated types that come
3839 from the limited view.
3840
3841 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
3842
38432008-08-22 Sergey Rybin <rybin@adacore.com>
3844
3845 * vms_data.ads: Add entry for new gnatcheck -mNNN option
3846
3847 * gnat_ugn.texi: Add description for gnatcheck option '-m'
3848
5d41bf55
AC
38492008-08-22 Sergey Rybin <rybin@adacore.com>
3850
3851 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
3852 acoording to the latest changes in the metric rule interface
3853
38542008-08-22 Vincent Celier <celier@adacore.com>
3855
3856 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
3857 (Check): Check if the file names registered in the ALI file for the
3858 spec, the body and each of the subunits are the ones expected.
3859
38602008-08-22 Robert Dewar <dewar@adacore.com>
3861
3862 * g-catiio.adb: Code cleanup.
3863
9299a27c
AC
38642008-08-20 Vincent Celier <celier@adacore.com>
3865
3866 * make.adb (Gnatmake): Remove extra space in version line
3867
3868 * ali.adb:
3869 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
3870 as the name may already have been entered in the table by the Project
3871 Manager.
3872
38732008-08-20 Jose Ruiz <ruiz@adacore.com>
3874
3875 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
3876 weak symbols so we use the version provided by MaRTE when available.
3877
38782008-08-20 Emmanuel Briot <briot@adacore.com>
3879
3880 * g-catiio.ads, g-catiio.adb:
3881 (Value): Avoid an unnecessary system call to Clock in most cases.
3882 This call is only needed when only the time is provided in the string,
3883 and ignored in all other cases. This is more efficient.
3884
38852008-08-20 Eric Botcazou <ebotcazou@adacore.com>
3886
3887 * raise-gcc.c: Fix formatting nits.
3888
5e5dc75a
RD
38892008-08-20 Robert Dewar <dewar@adacore.com>
3890
3891 * sem_ch13.adb:
3892 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
3893 non-existing component clause.
3894
3895 * exp_ch5.adb: Minor reformatting
3896
3897 * g-comlin.adb: Minor reformatting
3898
3899 * make.adb: Minor reformatting
3900
3901 * prj-proc.adb: Minor reformatting
3902
3903 * stylesw.ads: Minor reformatting
3904
235f4375
AC
39052008-08-20 Vincent Celier <celier@adacore.com>
3906
3907 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
3908 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
3909 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
3910 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
3911 and a switch is not recognized by gnatmake.
3912 (Gnatmake): Implement new scheme for gnatmake switches and global
3913 compilation switches.
3914 (Switches_Of): Try successively Switches (<file name>),
3915 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
3916
39172008-08-20 Ed Schonberg <schonberg@adacore.com>
3918
3919 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
3920 implement style check that overriding operations are explicitly marked
3921 at such.
3922
3923 * style.ads (Missing_Overriding): new procedure that provides interface
3924 to previous one.
3925
3926 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
3927 that the declaration or body of overriding operations carries an
3928 explicit overriding indicator.
3929
3930 * sem_ch8.adb
3931 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
3932 explicit indicator should be present.
3933
3934 * sem_ch6.adb (Verify_Overriding_Indicator,
3935 Check_Overriding_Indicator): If operation is overriding, check whether
3936 declaration and/or body of subprogram should be present
3937
7486d8e0
AC
39382008-08-20 Vincent Celier <celier@adacore.com>
3939
3940 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
3941 gprbuild when casing is MixedCase, whatever the casing of the letters
3942 in the file name.
3943
39442008-08-20 Gary Dismukes <dismukes@adacore.com>
3945
3946 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
3947 creating dummy init proc.
3948 (Requires_Init_Proc): Return False in the case No_Default_Initialization
3949 is in force and the type does not have associated default
3950 initialization. Move test of Is_Public (with tests of restrictions
3951 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
3952 for default initialization.
3953
39542008-08-20 Jerome Lambourg <lambourg@adacore.com>
3955
3956 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
3957 of any alias or prefix but having attached parameters (as \"-O2\").
3958
fe5dbc2c
AC
39592008-08-20 Robert Dewar <dewar@adacore.com>
3960
3961 * s-fileio.adb: Minor reformatting
3962
39632008-08-20 Thomas Quinot <quinot@adacore.com>
3964
3965 * exp_strm.adb (Build_Elementary_Input_Call,
3966 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
3967 selects the stream attribute routines for long float types.
3968
39692008-08-20 Vincent Celier <celier@adacore.com>
3970
3971 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
3972
3973 * prj.ads (Array_Data): Add a component Location
3974
39752008-08-20 Ed Schonberg <schonberg@adacore.com>
3976
3977 * sem_prag.adb:
3978 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
3979 argument for ASIS and navigation use.
3980
39812008-08-20 Ed Schonberg <schonberg@adacore.com>
3982
3983 * einfo.ads: Add comment.
3984
39852008-08-20 Bob Duff <duff@adacore.com>
3986
3987 * sem_eval.ads: Minor comment fix.
3988
39892008-08-20 Bob Duff <duff@adacore.com>
3990
3991 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
3992 folding. We were folding things like "False and then ...", but not
3993 "X and then ..." where X is a constant whose value is known at compile
3994 time.
3995
39962008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
3997
3998 * exp_ch5.adb (Controlled_Type): New routine.
3999 (Expand_N_Extended_Return_Statement): When generating a move of the
4000 final list in extended return statements, check the type of the
4001 function and in the case of double expanded return statements, the type
4002 of the returned object.
4003 (Expand_Simple_Function_Return): Perform an interface conversion when
4004 the type of the returned object is an interface and the context is an
4005 extended return statement.
4006
40072008-08-20 Ed Schonberg <schonberg@adacore.com>
4008
4009 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
4010 and the full view is visible, set flag on full view as well.
4011
40122008-08-20 Thomas Quinot <quinot@adacore.com>
4013
4014 * g-comlin.adb: Minor reformatting
4015 Minor code reorganization.
4016
4017 * freeze.adb: Minor reformatting
4018
40192008-08-20 Vincent Celier <celier@adacore.com>
4020
4021 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
4022 source of another project.
4023
40242008-08-20 Pascal Obry <obry@adacore.com>
4025
4026 * s-os_lib.ads: Minor reformatting.
4027
c4075a15
AC
40282008-08-20 Arnaud Charlet <charlet@adacore.com>
4029
4030 * gnatvsn.ads: Minor reformatting.
4031
0dd8a0b1
AC
40322008-08-20 Arnaud Charlet <charlet@adacore.com>
4033
4034 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
4035 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
4036 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
4037 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
4038 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
4039 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
4040 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
4041 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
4042 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
4043 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
4044 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
4045 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
4046 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
4047 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
4048 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
4049 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
4050 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
4051 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
4052 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
4053 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
4054 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
4055 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
4056 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
4057 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
4058 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
4059 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
4060 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
4061 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
4062 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
4063 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
4064 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
4065 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
4066 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
4067 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
4068 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
4069 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
4070 s-poosiz.adb, link.c: Fix copyright notice.
4071
f4857d6e
AC
40722008-08-20 Arnaud Charlet <charlet@adacore.com>
4073
4074 * g-comlin.ads: Update comments.
4075
8b4261b3
AC
40762008-08-20 Ed Schonberg <schonberg@adacore.com>
4077
4078 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
4079
40802008-08-20 Gary Dismukes <dismukes@adacore.com>
4081
4082 * exp_ch11.adb:
4083 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
4084 Make_Implicit_Exception_Handler when rewriting an exception handler with
4085 a choice parameter, and pass the handler's Sloc instead of that of the
4086 handled sequence of statements. Make_Implicit_Exception_Handler sets the
4087 Sloc to No_Location (unless debugging generated code), which we don't
4088 want for the case of a user handler.
4089
c6084ae0
AC
40902008-08-20 Robert Dewar <dewar@adacore.com>
4091
4092 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
9e81dbc7 4093
c6084ae0
AC
4094 * sem_ch13.adb:
4095 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
4096 now labeled as info msgs, not warnings.
4097
4098 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
4099
4100 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
4101
4102 * a-textio.adb: Remove redundant test.
4103
4104 * a-witeio.adb: Minor code reorganization
4105 Remove redundant test found working on another issue
4106
4107 * a-ztexio.adb: Minor code reorganization
4108 Remove redundant test found working on another issue
4109
41102008-08-20 Thomas Quinot <quinot@adacore.com>
4111
4112 * s-fileio.adb (Open) Use C helper function to determine whether a
4113 given errno value corresponds to a "file not found" error.
4114
4115 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
4116
41172008-08-20 Jose Ruiz <ruiz@adacore.com>
4118
4119 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
4120 to get access to the per-task errno variable.
4121 (__set_errno for MaRTE): Do not redefine this function here since it is
4122 already defined in MaRTE.
4123
41242008-08-20 Tristan Gingold <gingold@adacore.com>
4125
4126 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
4127
6e7f835f
AC
41282008-08-20 Robert Dewar <dewar@adacore.com>
4129
4130 * freeze.adb: Minor reformatting
4131
4132 * g-comlin.adb: Minor reformatting
4133
4134 * g-socket.adb: Minor reformatting
4135
4136 * g-socthi-mingw.adb: Minor reformatting
4137
4138 * g-stheme.adb: Minor reformatting
4139
2af92e28
ES
41402008-08-20 Ed Schonberg <schonberg@adacore.com>
4141
4142 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
4143 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
4144 confusion between partial and full views of an ancestor of the context
4145 type when the parent is a private extension declared in a parent unit,
4146 and full views are available for the context type.
4147
79a14178 41482008-08-18 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 4149 Robert Dewar <dewar@adacore.com>
79a14178
ST
4150
4151 PR ada/30827
4152 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
4153 version string.
4154 Move comment in the right place.
4155 * g-comver.adb (Version): Look for a zero-termination in
4156 addition to a closing parenthesis.
4157
b9b2405f
ST
41582008-08-18 Samuel Tardieu <sam@rfc1149.net>
4159
4160 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
4161 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
4162 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
4163 Is_Package_Or_Generic_Package instead of hand-crafted tests.
4164
51c16e29
ST
41652008-08-18 Samuel Tardieu <sam@rfc1149.net>
4166
4167 PR ada/15808
4168 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
4169 as well.
4170
c8bbc9ef
AL
41712008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4172
4173 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
4174
e650b83a
EB
41752008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4176
4177 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
4178 for back-copy statements in lieu of that of the actual.
4179
b38f3813
EB
41802008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4181
4182 PR ada/20548
4183 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
12f89f6c 4184 setjmp test consistently. Adjust for new behavior of flag_stack_check.
b38f3813 4185 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
12f89f6c 4186 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
b38f3813 4187
2d14501c
ST
41882008-08-13 Samuel Tardieu <sam@rfc1149.net>
4189
4190 PR ada/36777
4191 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
4192 * sem_attr.adb (Check_Type): The current instance of a protected
4193 object is not a type name.
4194 (Analyze_Access_Attribute): Accept instances of protected objects.
4195 (Analyze_Attribute, Attribute_Address clause): Ditto.
4196 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
4197 the prefix as being the current instance if needed.
4198
62641193
DS
41992008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
4200
0490fbb8
EB
4201 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
4202 Remove duplicate s-win32.o. Add s-winext.o.
62641193 4203
2a04ce75
DS
42042008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
4205
4206 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
4207 with SOSC.SOCK__STREAM.
4208 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
4209 SOSC.MSG_OOB.
4210
269b85b7
JS
42112008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4212
4213 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
4214 * gsocket.h, socket.c: Update to support RTEMS.
4215 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
4216
abcbd24c 42172008-08-10 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 4218 Robert Dewar <dewar@adacore.com>
abcbd24c
ST
4219
4220 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
4221 left argument even when right argument is 0.
4222 (Expand_N_Op_Mod): Ditto when right argument is 1.
4223 (Expand_N_Op_Multiply): Ditto when any argument is 0.
4224 (Expand_N_Op_Rem): Ditto when right argument is 1.
4225
98e48a7f
MLI
42262008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4227
4228 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
4229 by warn_unused.
9e81dbc7 4230
70d904ca
ES
42312008-08-08 Ed Schonberg <schonberg@adacore.com>
4232
4233 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
4234 from Freeze_Entity. Used to generate cross-reference information for
4235 types declared in generic packages.
4236
cfb53555
TQ
42372008-08-08 Thomas Quinot <quinot@adacore.com>
4238
4239 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
4240 compatibility shim.
4241
a3ea9137
AC
42422008-08-08 Thomas Quinot <quinot@adacore.com>
4243
4244 * gsocket.h:
4245 On Windows, include <errno.h> and redefine only selected errno values
4246 from their <winsock2.h> definitions.
4247
4248 * s-osinte-freebsd.ads: Minor reformatting
4249
4250 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
4251
4252 * g-soccon.ads: New file.
4253
4254 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
4255 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
4256 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
4257 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
4258 unit, to allow building software that depends on this internal unit
4259 with both older and newer compilers.
4260
42612008-08-08 Robert Dewar <dewar@adacore.com>
4262
4263 * s-strxdr.adb: Minor reformatting
4264
42652008-08-08 Bob Duff <duff@adacore.com>
4266
4267 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
4268 checking for integer operations (including division by zero)", which
4269 is wrong -- divide by zero is not part of overflow checking.
4270 Also added misc clarification about what check-suppression means.
4271
4272 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
4273
42742008-08-08 Jerome Lambourg <lambourg@adacore.com>
4275
4276 * g-comlin.adb (Add_Switch): Handle addition of switches at the
4277 begining of the command line.
4278 (Append, Add): Renaming of Append to Add as this now allows addition
4279 at the begining of the list.
9e81dbc7 4280
a3ea9137
AC
4281 * g-comlin.ads (Add_Switch): Handle addition of switches at the
4282 begining of the command line.
4283
42842008-08-08 Thomas Quinot <quinot@adacore.com>
4285
4286 * g-sercom.ads:
4287 (Name): Document application scope (only legacy PC serial ports on
4288 Linux and Windows).
4289
15d2e2d4
TQ
42902008-08-08 Thomas Quinot <quinot@adacore.com>
4291
4292 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
4293 previous change, not needed after all.
4294
51e4c4b9
AC
42952008-08-08 Ed Schonberg <schonberg@adacore.com>
4296
4297 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
4298 exclusion indicator is present
4299
43002008-08-08 Robert Dewar <dewar@adacore.com>
4301
4302 * g-comlin.adb: Minor code reorganization
4303 Minor reformatting
4304
4305 * g-comlin.ads: Minor reformatting
4306
4307 * s-fileio.adb: Minor reformatting
4308
4309 * sem_attr.adb: Minor code reorganization (use Nkind_In)
4310 Minor reformatting
4311
6f371a2e
ST
43122008-08-06 Samuel Tardieu <sam@rfc1149.net>
4313
4314 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
4315 with s-oscons-tmplt.i.
4316
6a69bcf4
ST
43172008-08-06 Samuel Tardieu <sam@rfc1149.net>
4318
4319 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
4320
ef9e1eff
AC
43212008-08-06 Ed Schonberg <schonberg@adacore.com>
4322
4323 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
4324 of incomplete type.
4325
4326 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
4327 of a formal parameter of an incomplete type. Improve error message for
4328 other improper uses of incomplete types.
4329
43302008-08-06 Robert Dewar <dewar@adacore.com>
4331
4332 * gnat_ugn.texi: Clarify -gnato documentation
4333
43342008-08-06 Thomas Quinot <quinot@adacore.com>
4335
4336 * gcc-interface/Makefile.in,
4337 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
4338 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
4339 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
4340 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
4341 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
4342 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
4343 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
4344 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
4345 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
4346 Remove GNAT.Sockets.Constants. This internal package is replaced by
4347 System.OS_Constants.
4348
e93d146b
TQ
43492008-08-06 Thomas Quinot <quinot@adacore.com>
4350
4351 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
4352 Remove obsolete targets referencing gen-soccon
4353 When generating s-oscons.ads, use a file name that includes the
4354 THREAD_KIND, to ensure that the (potentially different) version from a
4355 previous build with a different threads flavour does not get reused.
4356
c6aecf3b
AC
43572008-08-06 Thomas Quinot <quinot@adacore.com>
4358
4359 * sem_res.adb: Minor reformatting
4360
4361 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
4362 only when the operating system reports a non-existing file or directory
4363 (ENOENT), otherwise raise Name_Error.
4364
4365 * exp_ch11.adb: Minor reformatting
4366
43672008-08-06 Ed Schonberg <schonberg@adacore.com>
4368
4369 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
4370 incomplete, add the access_to_subprogram type to the list of private
4371 dependents only if the incomplete type will be completed in the current
4372 scope.
4373 (Build_Discriminant_Constraints): If the type of the discriminant is
4374 access_to_variable, reject a constraint that is access_to_constant.
4375
6594c0f3
AC
43762008-08-06 Thomas Quinot <quinot@adacore.com>
4377
4378 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
4379 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
4380 g-sttsne-dummy.ads: New files.
4381
4382 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
4383 with pragma Unimplemented_Unit for sockets packages on Nucleus.
4384
43852008-08-06 Pascal Obry <obry@adacore.com>
4386
4387 * adaint.c: Another fix for ACL support on Windows.
4388
43892008-08-06 Javier Miranda <miranda@adacore.com>
4390
4391 * exp_disp (Expand_Interface_Actuals): Adds missing support for
4392 expansion of calls to subprograms using selected components.
4393
43942008-08-06 Ed Schonberg <schonberg@adacore.com>
4395
4396 * sem_res.adb (Resolve_Call): Use base type to determine whether a
4397 dereference is needed because a subtype of an access_to_subprogram is
4398 simply an access-subtype
4399
44002008-08-06 Jerome Lambourg <lambourg@adacore.com>
4401
4402 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
4403 parameters, always specify the expected separator.
4404
f9325b03
AC
44052008-08-06 Thomas Quinot <quinot@adacore.com>
4406
4407 * xnmake.adb: Use new XUtil package for platform independent text
4408 output.
4409
44102008-08-06 Vincent Celier <celier@adacore.com>
4411
4412 * gnat_ugn.texi: Document compiler switch -gnateG
4413
44142008-08-06 Quentin Ochem <ochem@adacore.com>
4415
4416 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
4417 in the case of an empty pattern size.
4418 (Compute_Result): Do not do any computation in the case of an empty
4419 pattern size.
4420 (Report_Result): Fixed computation of the overflow guard.
4421
44222008-08-06 Ed Schonberg <schonberg@adacore.com>
4423
4424 * g-awk.adb (Finalize): Do not use directly objects of the type in the
4425 finalization routine to prevent elaboration order anomalies in new
4426 finalization scheme.
4427
44282008-08-06 Ed Schonberg <schonberg@adacore.com>
4429
4430 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
4431 declaration for the same type.
4432
44332008-08-06 Thomas Quinot <quinot@adacore.com>
4434
4435 * sem.adb: Minor rewording (comment)
4436
44372008-08-06 Jerome Lambourg <lambourg@adacore.com>
4438
4439 * g-comlin.adb (Define_Switch, Get_Switches): New.
4440 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
4441 ungrouping switches.
4442 (For_Each_Simple_Switch): Allow more control over parameters handling.
4443 This generic method now allows ungrouping of switches with parameters
4444 and switches with more than one letter after the prefix.
4445 (Set_Command_Line): Take care of switches that are prefixed with a
4446 switch handling parameters without delimiter (-gnatya and -gnaty3 for
4447 example).
4448 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
4449 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
4450 the operation.
4451 (Start, Alias_Switches, Group_Switches): Take care of parameters
4452 possibly present inside a group.
4453
4454 * g-comlin.ads (Define_Switch): New method used to define a list of
4455 expected switches, that are necessary for correctly ungrouping switches
4456 with more that one character after the prefix.
4457 (Get_Switches): Method that builds a getopt string from the list of
4458 switches as set previously by Define_Switch.
4459 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
4460 status of the operation. Also allow the removal of switches with
4461 parameters only.
4462 (Command_Line_Configuration_Record): Maintain a list of expected
4463 switches.
4464
f0a631aa
DR
44652008-08-06 Doug Rupp <rupp@adacore.com>
4466
4467 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
4468 TARGET_MALLOC64 clear.
4469
4470 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
4471 if TARGET_MALLOC64 clear.
4472
4473 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
4474 (TARGET_MALLC64): New macro. Default to clear.
4475
31fcb30f
DR
44762008-08-06 Doug Rupp <rupp@adacore.com>
4477
4478 * gcc-interface/utils2.c (snames.h) Include
4479 (TARGET_ABI_OPEN_VMS): Initialize.
4480 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
4481 for Convention C.
4482
ea08fcdc
AC
44832008-08-06 Ed Schonberg <schonberg@adacore.com>
4484
4485 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
4486 null exclusion in a discriminant declaration
4487
4488 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
4489 indicators when type is not an access type.
4490
4491 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
4492 indicators when type is not an access type.
4493
44942008-08-06 Javier Miranda <miranda@adacore.com>
4495
4496 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
4497 with the target interface before expanding the code of the interface
4498 conversion.
4499
aecf0203
AC
45002008-08-05 Ed Schonberg <schonberg@adacore.com>
4501
4502 * freeze.adb:
4503 (Freeze_Entity): A deferred constant does not violate the restriction
9e81dbc7 4504 No_Default_Initialization,
aecf0203
AC
4505
4506 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
4507 can carry a null exclusion indicator, and on which an error may be
4508 posted if the indicator is redundant.
4509
4510 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
4511 does not apply to a subtype mark that already excludes null.
4512
4513 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
4514 exclusion does not apply to a subtype mark that already excludes null.
4515
45162008-08-05 Thomas Quinot <quinot@adacore.com>
4517
4518 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
4519
45202008-08-05 Doug Rupp <rupp@adacore.com>
4521
4522 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
4523
434d3cf1
AC
45242008-08-05 Thomas Quinot <quinot@adacore.com>
4525
4526 * gsocket.h: Make this file includable in a Nucleus environment, which
4527 does not support sockets.
4528
4529 * socket.c: Remove Nucleus-specific hack.
4530
45312008-08-05 Pascal Obry <obry@adacore.com>
4532
4533 * adaint.c: Remove support for readable attribute on vxworks and nucleus
4534
45352008-08-05 Ed Schonberg <schonberg@adacore.com>
4536
4537 * sem_attr.adb:
4538 (Analyze_Attribute, case 'Result): handle properly the case where some
4539 operand of the expression in a post-condition generates a transient
4540 block.
4541
4542 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
4543 right-hand side when it is an anonymous access_to_subprogram, to force
4544 static accessibility check when needed.
4545
49331b42
AC
45462008-08-05 Sergey Rybin <rybin@adacore.com>
4547
4548 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
4549 rule according to the change in the rule option.
4550 Add documentation for -gnatw.b/-gnatw.B
4551
45522008-08-05 Robert Dewar <dewar@adacore.com>
4553
4554 * ug_words: Add entries for -gnatw.b/-gnatw.B
4555
4556 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
4557
21f560ba
VC
45582008-08-05 Vincent Celier <celier@adacore.com>
4559
4560 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
4561 (File).
9e81dbc7 4562
21f560ba
VC
4563 * a-ztdeio.adb: Ditto.
4564
43540ec6
AC
45652008-08-05 Pascal Obry <obry@adacore.com>
4566
4567 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
4568 readable attribute.
4569
45702008-08-05 Vincent Celier <celier@adacore.com>
4571
4572 * s-wchwts.adb:
4573 (Wide_String_To_String): Returns a String with the same 'First as its
4574 parameter S.
4575 (Wide_Wide_String_To_String): Ditto
9e81dbc7 4576
43540ec6
AC
4577 * s-wchwts.ads:
4578 (Wide_String_To_String): Document that the lowest index of the returned
4579 String is equal to S'First.
4580
2d4d7e29
TQ
45812008-08-05 Thomas Quinot <quinot@adacore.com>
4582
4583 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
4584
4585 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
4586 s-oscons.ads
4587
4ae23b62
AC
45882008-08-05 Robert Dewar <dewar@adacore.com>
4589
4590 * opt.ads (Warn_On_Biased_Representation): New flag
9e81dbc7 4591
4ae23b62
AC
4592 * sem_ch13.adb:
4593 (Analyze_Attribute_Definition_Clause): Issue warning when biased
4594 representation is required.
4595 (Minimum_Size): Don't allow biasing if enum rep clause case
9e81dbc7 4596
4ae23b62
AC
4597 * sem_warn.adb:
4598 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
4599 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
9e81dbc7 4600
4ae23b62
AC
4601 * usage.adb: Add lines for -gnatw.b/B switches
4602
46032008-08-05 Pascal Obry <obry@adacore.com>
4604
4605 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
4606
4607 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
4608
46092008-08-05 Thomas Quinot <quinot@adacore.com>
4610
4611 * socket.c: Minor reformatting.
4612
ba3fa650
AC
46132008-08-05 Robert Dewar <dewar@adacore.com>
4614
4615 * sem_ch3.adb: Minor reformatting
4616
4617 * prj-nmsc.adb: Minor reformatting
4618
46192008-08-05 Ed Schonberg <schonberg@adacore.com>
4620
4621 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
4622 visibility check on the component type if the simple test fails.
4623
c775e4a1
AC
46242008-08-05 Jose Ruiz <ruiz@adacore.com>
4625
4626 * init.c (__gnat_install_handler for linux): If we are building the
4627 Xenomai run time then we need to do two additional things: avoid
4628 memory swapping and transform the Linux environment task into a native
4629 Xenomai task.
4630
4631 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
4632 time): Use interface to Xenomai native skin and avoid linux-specific
4633 way of setting CPU affinity.
4634 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
4635
46362008-08-05 Bob Duff <duff@adacore.com>
4637
4638 * checks.ads: Minor comment fix
4639
46402008-08-05 Thomas Quinot <quinot@adacore.com>
4641
4642 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
4643 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
4644 CS8.
4645
46462008-08-05 Robert Dewar <dewar@adacore.com>
4647
4648 * mlib.adb: Minor code reorganization
4649 Minor reformatting
4650
4651 * make.adb: Minor reformatting
4652
4653 * prj-attr.ads: Minor reformatting
4654
4655 * s-os_lib.adb: Minor reformatting
4656
4657 * s-fileio.adb: Minor code reorganization
4658 Minor reformatting
4659
4660 * prj.ads: Minor reformatting
4661
46622008-08-05 Bob Duff <duff@adacore.com>
4663
4664 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
4665 unresolved initial value of "null", because it causes implicitly
4666 generated "=" operators to be ambiguous, and because this type should
4667 not be passed to gigi.
4668
0df218a9
AC
46692008-08-05 Vincent Celier <celier@adacore.com>
4670
4671 * mlib.adb: Update comments.
4672
4673 * make.adb (Switches_Of): Check for Switches (others), before checking
4674 for Default_Switches ("Ada").
4675 (Gnatmake): Use Builder'Switches (others) in preference to
4676 Builder'Default_Switches ("Ada") if there are several mains.
4677
4678 * prj-attr-pm.adb:
4679 (Add_Attribute): Add component Others_Allowed in Attribute_Record
4680 aggregate.
4681
4682 * prj-attr.adb:
4683 Add markers to indicates that attributes Switches allow others as index
4684 (Others_Allowed_For): New Boolean function, returning True for
4685 attributes with the mark.
4686 (Initialize): Recognize optional letter 'O' as the marker for
4687 associative array attributes where others is allowed as the index.
4688
4689 * prj-attr.ads:
4690 (Others_Allowed_For): New Boolean function
4691 (Attribute_Record): New Boolean component Others_Allowed
9e81dbc7 4692
0df218a9
AC
4693 * prj-dect.adb:
4694 (Parse_Attribute_Declaration): For associative array attribute where
4695 others is allowed as the index, allow others as an index.
4696
4697 * prj-nmsc.adb:
4698 (Process_Binder): Skip associative array attributes with index others
4699 (Process_Compiler): Ditto
4700
4701 * prj-util.adb:
4702 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
4703 index is All_Other_Names.
4704
4705 * prj.ads:
4706 (All_Other_Names): New constant
4707
4708 * prj-proc.adb:
4709 (Process_Declarative_Items): Skip associative array attribute when index
4710 is reserved word "others".
4711
47122008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
4713
4714 * gen-oscons.c: Adapt for VMS where termios.h is not available.
4715
c7d920ad
TQ
47162008-08-05 Thomas Quinot <quinot@adacore.com>
4717
4718 * a-rttiev.adb: Minor reformatting (comments)
4719
4720 * gen-soccon.c: Rename to gen-oscons.c
4721
4722 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
4723 GNAT.Sockets.Constants.
4724 Add new constants for GNAT.Serial_Communications and System.File_IO.
4725
8b79ad42
AC
47262008-08-05 Javier Miranda <miranda@adacore.com>
4727
4728 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
4729 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
4730 implementation of this routine has been simplified.
4731
47322008-08-05 Pascal Obry <obry@adacore.com>
4733
4734 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
4735 Set_Read_Only Win32 implementation.
4736
99e81db6
TQ
47372008-08-05 Thomas Quinot <quinot@adacore.com>
4738
4739 * exp_strm.adb: Minor reformatting (comments)
4740
4741 * sem_ch12.adb: Minor reformatting.
4742
dce86910
AC
47432008-08-05 Robert Dewar <dewar@adacore.com>
4744
4745 * sem_ch3.adb: Minor reformatting
4746
4747 * checks.adb: Minor reformatting
4748
47492008-08-05 Thomas Quinot <quinot@adacore.com>
4750
4751 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
4752 restriction on Prefix.
4753
47542008-08-05 Jerome Lambourg <lambourg@adacore.com>
4755
4756 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
4757 methods needed to handle switch sections when building a command line.
4758 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
4759 Current_Section): New public methods or methods modified to handle
4760 building command lines with sections.
4761 (Set_Command_Line): Take into account sections when analysing a switch
4762 string.
4763 (Start): Sort the switches by sections before iterating the command line
4764 elements.
9e81dbc7 4765
dce86910
AC
4766 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
4767 Is_New_Section, Current_Section): New methods or methods modified to
4768 handle building command lines with sections.
4769
47702008-08-05 Ed Schonberg <schonberg@adacore.com>
4771
4772 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
4773 discriminants, indicate that the corresponding object declaration has
4774 no initialization, to prevent spurious warnings when the access type is
4775 null-excluding.
4776
47772008-08-05 Ed Schonberg <schonberg@adacore.com>
4778
4779 * sem_res.adb (Resolve_Call): If this is a call to the predefined
4780 Abort_Task, warn if the call appears within a protected operation.
4781
52fb73c2
AC
47822008-08-04 Robert Dewar <dewar@adacore.com>
4783
4784 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
4785
47862008-08-04 Ed Schonberg <schonberg@adacore.com>
4787
4788 * sem_ch3.adb:
4789 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
4790 anonymous access to protected subprogram that is the return type of the
4791 specification of a subprogram body.
4792
4793 * sem_ch6.adb:
4794 (Analyze_Subprogram_Body): if the return type is an anonymous access to
4795 subprogram, freeze it now to prevent access anomalies in the back-end.
4796
4797 * exp_ch9.adb: Minor code cleanup.
4798 Make sure that new declarations are inserted into the tree before
4799 analysis (from code reading).
4800
48012008-08-04 Robert Dewar <dewar@adacore.com>
4802
4803 * exp_ch5.adb:
4804 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
4805 at point of return.
4806
367a9e66
AC
48072008-08-04 Thomas Quinot <quinot@adacore.com>
4808
4809 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
4810
48112008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4812
4813 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
4814
48152008-08-04 Javier Miranda <miranda@adacore.com>
4816
4817 * sem_prag.adb (Process_Convention): Add missing support for
4818 N_Private_Extension_Declaration nodes.
4819
48202008-08-04 Robert Dewar <dewar@adacore.com>
4821
4822 * exp_ch4.adb: Minor reformatting
4823
a07c3593
AC
48242008-08-04 Pascal Obry <obry@adacore.com>
4825
4826 * adaint.h: Add missing prototype.
4827
4828 * adaint.c: Refine support for Windows file attributes.
4829
48302008-08-04 Robert Dewar <dewar@adacore.com>
4831
4832 * sem_res.adb:
4833 (Valid_Conversion): Catch case of designated types having different
4834 sizes, even though they statically match.
4835
48362008-08-04 Javier Miranda <miranda@adacore.com>
4837
4838 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
4839 added in previous patch to handle access to subprograms.
4840
48412008-08-04 Robert Dewar <dewar@adacore.com>
4842
4843 * freeze.adb:
4844 (Freeze_Entity): Only check No_Default_Initialization restriction for
4845 constructs that come from source
4846
48472008-08-04 Thomas Quinot <quinot@adacore.com>
4848
4849 * exp_ch6.adb: Minor comment fix.
4850
4851 * sem_ch4.adb: Minor reformatting.
4852
d559d5c6
AC
48532008-08-04 Robert Dewar <dewar@adacore.com>
4854
4855 * sem_res.adb: (Large_Storage_Type): Improve previous change.
4856
48572008-08-04 Pascal Obry <obry@adacore.com>
4858
4859 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
4860 file attributes.
4861
b1c11e0e
JM
48622008-08-04 Javier Miranda <miranda@adacore.com>
4863
4864 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
4865 for N_Formal_Object_Declaration nodes. Adding kludge required by
4866 First_Formal to provide its functionality with access to functions.
4867 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
4868 for anonymous access types returned by functions.
4869
4870 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
4871 conversion of null-excluding access types (required only once to force
4872 the generation of the required runtime check).
4873
4874 * sem_type.adb (Covers): minor reformating
4875
4876 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
4877 with internally generated nodes. Avoid generating the error inside init
4878 procs.
4879
4880 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
4881 (Resolve_Null): Generate the null-excluding check in case of assignment
4882 to a null-excluding object.
4883 (Valid_Conversion): Add missing support for anonymous access to
4884 subprograms.
4885
4886 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
4887 anonymous access types whose designated type is an itype. This case
4888 occurs with anonymous access to protected subprograms types.
4889 (Analyze_Return_Type): Add missing support for anonymous access to
4890 protected subprogram.
4891
4892 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
4893 subprograms addition of missing check on matching convention. Required
4894 to properly handle access to protected subprogram types.
4895
4896 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
4897 null excluding access types.
4898
b282ab37
AC
48992008-08-04 Ed Schonberg <schonberg@adacore.com>
4900
4901 * sem_ch12.adb: Add comments
4902
4903 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
4904 access type and the allocator is not initialized, warn rather than
4905 reporting an error.
4906
49072008-08-04 Robert Dewar <dewar@adacore.com>
4908
4909 * exp_ch4.adb: Minor reformatting
4910
4911 * exp_dist.adb: Minor reformatting
4912
4913 * g-comlin.adb: Minor reformatting
4914
49152008-08-04 Gary Dismukes <dismukes@adacore.com>
4916
4917 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
4918 target to the type of the aggregate in the case where the target object
4919 is class-wide.
4920
4921 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
4922 result type is class-wide and inherently limited, and the expression
4923 has a specific type, create a return object of the specific type, for
4924 more efficient handling of returns of build-in-place aggregates (avoids
4925 conversions of the class-wide return object to the specific type on
4926 component assignments).
4927
4928 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
4929 about a type mismatch for a class-wide function with a return object
4930 having a specific type when the object declaration doesn't come from
4931 source. Such an object can result from the expansion of a simple return.
4932
49332008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4934
4935 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
4936
4937 * gcc-interface/Makefile.in: Use 64bit-specific system files when
4938 compiling for 64bit windows.
4939
54838d1f
AC
49402008-08-04 Jerome Lambourg <lambourg@adacore.com>
4941
4942 * g-comlin.adb (Group_Switches): Preserve the switch order when
4943 grouping and allow switch grouping of switches with more than one
4944 character extension (e.g. gnatw.x).
4945 (Args_From_Expanded): Remove this now obsolete method.
4946
49472008-08-04 Ed Schonberg <schonberg@adacore.com>
4948
4949 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
4950 chain at once, to ensure that type is properly decorated for back-end,
4951 when allocator appears within a loop.
4952
49532008-08-04 Kevin Pouget <pouget@adacore.com>
4954
4955 * snames.h, snames.adb, snames.ads:
4956 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
4957
4958 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
4959 Build_To_Any_Call and Build_TypeCode_Call procedures.
4960
4961 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
4962
4963 * rtsfind.ads: Add corresponding names.
4964
4965 * tbuild.adb: Update prefix restrictions to allow '_' character.
4966
819fad69
AC
49672008-08-04 Doug Rupp <rupp@adacore.com>
4968
4969 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
4970 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
4971 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
4972 use it. Calculate pointer range overflow using 64bit types.
4973
49742008-08-04 Ed Schonberg <schonberg@adacore.com>
4975
4976 * sem_ch3.adb (Access_Definition): A formal object declaration is a
4977 legal context for an anonymous access to subprogram.
4978
4979 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
4980 indirect call, report success to the caller to include possible
4981 interpretation.
4982
4983 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
4984 check when the type
4985 of the extended return is an anonymous access_to_subprogram type.
4986
4987 * sem_res.adb:
4988 (Resolve_Call): Insert a dereference if the type of the subprogram is an
4989 access_to_subprogram and the context requires its return type, and a
4990 dereference has not been introduced previously.
4991
49922008-08-04 Arnaud Charlet <charlet@adacore.com>
4993
4994 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
4995 gnatcheck support in GPS.
4996
49972008-08-04 Vincent Celier <celier@adacore.com>
4998
4999 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
5000 requested
5001
a037f912
VC
50022008-08-04 Vincent Celier <celier@adacore.com>
5003
5004 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
5005 variable, but don't check the resulting value as it has no impact on
5006 the processing.
9e81dbc7 5007
a037f912
VC
5008 * opt.ads:
5009 (Generate_Processed_File): New Boolean flag, set to True in the compiler
5010 when switch -gnateG is used.
9e81dbc7 5011
a037f912
VC
5012 * prep.adb:
5013 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
5014 when the source is modified by the preprocessor and there is no
5015 preprocessing errors.
9e81dbc7 5016
a037f912 5017 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
9e81dbc7 5018
a037f912
VC
5019 * sinput-l.adb:
5020 (Load_File): Output the result of preprocessing if the source text was
5021 modified.
9e81dbc7 5022
a037f912 5023 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
9e81dbc7 5024
a037f912 5025 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
9e81dbc7 5026
a037f912 5027 * ug_words: Add VMS equivalent for -gnateG
9e81dbc7 5028
a037f912
VC
5029 * vms_data.ads:
5030 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
5031
bdc33a55
AC
50322008-08-04 Doug Rupp <rupp@adacore.com>
5033
5034 * gcc-interface/utils2.c:
5035 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
5036 in 32bit descriptor.
5037
50382008-08-04 Robert Dewar <dewar@adacore.com>
5039
5040 * par-ch10.adb: Minor reformatting
5041
5042 * i-cobol.adb: Minor reformatting.
5043
50442008-08-04 Ed Schonberg <schonberg@adacore.com>
5045
5046 * sem_ch3.adb (Access_Definition): Create an itype reference for an
5047 anonymous access return type of a regular function that is not a
5048 compilation unit.
5049
50502008-08-04 Vincent Celier <celier@adacore.com>
5051
5052 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
9e81dbc7 5053
bdc33a55 5054 * snames.adb: New standard name Global_Compilation_Switches
9e81dbc7 5055
bdc33a55
AC
5056 * snames.ads: New standard name Global_Compilation_Switches
5057
5058 * make.adb: Correct spelling error in comment
5059
50602008-08-04 Arnaud Charlet <charlet@adacore.com>
5061
5062 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
5063 target.
5064
50652008-08-04 Thomas Quinot <quinot@adacore.com>
5066
5067 * sem_ch10.adb: Minor comment fix.
5068
fc1b906a
AC
50692008-08-04 Robert Dewar <dewar@adacore.com>
5070
5071 * restrict.adb: Improved messages for restriction warnings
5072
5073 * restrict.ads: Improved messages for restriction messages
5074
5075 * s-rident.ads (Profile_Name): Add No_Profile
5076
50772008-08-04 Robert Dewar <dewar@adacore.com>
5078
5079 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
5080
50812008-08-04 Robert Dewar <dewar@adacore.com>
5082
5083 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
5084
50852008-08-04 Vincent Celier <celier@adacore.com>
5086
5087 * prj-proc.adb:
5088 (Copy_Package_Declarations): When inheriting package Naming from a
5089 project being extended, do not inherit source exception names.
5090
50912008-08-04 Ed Schonberg <schonberg@adacore.com>
5092
5093 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
5094 list of declaration to find previous subprogram, do not go to the
5095 original node of a generic unit.
5096
d2143736
EB
50972008-08-02 Eric Botcazou <ebotcazou@adacore.com>
5098
5099 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
5100 New case. Convert BOOLEAN_TYPE operation to the default integer type.
5101
a981c964
EB
51022008-08-01 Eric Botcazou <ebotcazou@adacore.com>
5103
5104 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
5105 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
5106 and adjust for above renaming.
5107 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
5108 gnu_expr_alt_type parameter. Convert the expression to it instead
5109 of changing its type in place.
5110 (build_function_stub): Adjust call to above function.
5111
8df2e902
EB
51122008-08-01 Eric Botcazou <ebotcazou@adacore.com>
5113
5114 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
5115 code. Do not get full definition of deferred constants with address
5116 clause for a use. Do not ignore deferred constant definitions with
5117 address clause. Ignore constant definitions already marked with the
5118 error node.
5119 <object>: Remove obsolete comment. For a deferred constant with
5120 address clause, get the initializer from the full view.
5121 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
5122 Rework and remove obsolete comment.
5123 <N_Object_Declaration>: For a deferred constant with address clause,
5124 mark the full view with the error node.
5125 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
5126 formatting nits.
5127
585df50b
AC
51282008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
5129
5130 * rtsfind.ads: Add block IO versions of stream routines for Strings.
9e81dbc7 5131
585df50b
AC
5132 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
5133 sem_prag.adb, snames.adb, snames.ads, snames.h,
5134 par-prag.adb: Undo previous stream related changes.
9e81dbc7 5135
585df50b 5136 * s-rident.ads: Add new restriction No_Stream_Optimizations.
9e81dbc7 5137
585df50b
AC
5138 * s-ststop.ads, s-ststop.adb: Comment reformatting.
5139 Define enumeration type to designate different IO mechanisms.
5140 Enchance generic package Stream_Ops_Internal to include an
5141 implementation of Input and Output.
5142
5143 * exp_attr.adb (Find_Stream_Subprogram): If restriction
5144 No_Stream_Optimization is active, choose the default byte IO
5145 implementations of stream attributes for Strings.
5146 Otherwise use the corresponding block IO version.
5147
2eee5152 51482008-08-01 Olivier Hainque <hainque@adacore.com>
9e81dbc7 5149
585df50b
AC
5150 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
5151 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
5152
51532008-08-01 Robert Dewar <dewar@adacore.com>
5154
5155 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
5156 convert plain identifier into defining identifier.
2eee5152 5157
2b747305
AC
51582008-08-01 Robert Dewar <dewar@adacore.com>
5159
5160 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
5161 warnings
5162
5163 * lib-xref.adb: Add error defense.
5164
51652008-08-01 Bob Duff <duff@adacore.com>
5166
5167 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
5168
0c246603
AC
51692008-08-01 Gary Dismukes <dismukes@adacore.com>
5170
5171 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
5172 correct accessibility levels. In the "when others" case, retrieve the
5173 access level of the Etype of Prev rather than Prev_Orig, because the
5174 original exression has not always been analyzed.
5175
51762008-08-01 Robert Dewar <dewar@adacore.com>
5177
5178 * prj-nmsc.adb: Minor reformatting
5179
5180 * sem_ch4.adb: Minor reformatting
5181 Minor code reorganization
5182
5183 * prj.ads: Minor reformatting
5184
5185 * s-os_lib.adb: Minor reformatting
5186
5187 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
5188 half encodings
5189
5190 * scans.ads: Minor reformatting.
5191
5192 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
5193 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
5194
5195 * sem_res.adb:
5196 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5197
5198 * sem_ch12.adb: Minor comment reformatting
5199
5200 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
5201 keyword
5202
1cb17b78
AC
52032008-08-01 Robert Dewar <dewar@adacore.com>
5204
5205 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
5206 generating code
5207
52082008-08-01 Ed Schonberg <schonberg@adacore.com>
5209
5210 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
5211 converted is a real literal and the target type has static bounds,
5212 perform the conversion exactly to prevent floating-point anomalies on
5213 some targets.
5214
52152008-08-01 Vincent Celier <celier@adacore.com>
5216
5217 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
9e81dbc7 5218
1cb17b78 5219 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
9e81dbc7 5220
1cb17b78
AC
5221 * prj.adb (Object_Exist_For): Use Object_Generated, not
5222 Objects_Generated that is removed and was never modified anyway.
5223
5224 * prj.ads:
5225 (Path_Syntax_Kind): New enumeration type
5226 (Language_Config): New component Path_Syntax, defaulted to Host.
5227 Components PIC_Option and Objects_Generated removed, as they are not
5228 used.
5229
5230 * snames.adb: New standard name Path_Syntax
9e81dbc7 5231
1cb17b78
AC
5232 * snames.ads: New standard name Path_Syntax
5233
52342008-08-01 Vincent Celier <celier@adacore.com>
5235
5236 * mlib-utl.adb:
5237 (Adalib_Path): New variable to store the path of the adalib directory
5238 when procedure Specify_Adalib_Dir is called.
5239 (Lib_Directory): If Adalib_Path is not null, return its value
5240 (Specify_Adalib_Dir): New procedure
9e81dbc7 5241
1cb17b78
AC
5242 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
5243
52442008-08-01 Ed Schonberg <schonberg@adacore.com>
5245
5246 * sem_prag.adb:
5247 (Check_Precondition_Postcondition): If not generating code, analyze the
5248 expression in a postcondition that appears in a subprogram body, so that
5249 it is properly decorated for ASIS use.
5250
52512008-08-01 Gary Dismukes <dismukes@adacore.com>
5252
5253 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
5254 Orig_Prev to Prev in the case where the actual is N_Function_Call or
5255 N_Identifier. This was interfering with other cases that are rewritten
5256 as N_Identifier, such as allocators, resulting in passing of the wrong
5257 accessibility level, and based on testing this code is apparently no
5258 longer needed at all.
5259
52602008-08-01 Ed Schonberg <schonberg@adacore.com>
5261
5262 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
5263 procedure call whose prefix
5264 is a parameterless function call that returns an access_to_procedure.
5265
d1b4f87d
AC
52662008-08-01 Jose Ruiz <ruiz@adacore.com>
5267
5268 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
5269 for RTX. Adding a suffix that is incremented at each iteration.
5270
52712008-08-01 Robert Dewar <dewar@adacore.com>
5272
5273 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
5274 Raise_Exception
5275
52762008-08-01 Jerome Lambourg <lambourg@adacore.com>
5277
5278 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
5279 paths, which are authorized by Windows but can lead to errors when used
5280 elsewhere.
5281
cfb02ad1
AC
52822008-08-01 Ed Schonberg <schonberg@adacore.com>
5283
5284 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
5285 a pending instantiation for the body of a subprogram that is to be
5286 inlined.
5287
5288 * sem_ch12.adb:
5289 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
5290
5291 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
5292 create a pending instance for its body, so that calls to the subprogram
5293 can be inlined by the back-end.
5294
52952008-08-01 Jose Ruiz <ruiz@adacore.com>
5296
5297 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
5298 rts-rtx-w32).
5299
e1bb4e71
AC
53002008-08-01 Robert Dewar <dewar@adacore.com>
5301
5302 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
5303
53042008-08-01 Doug Rupp <rupp@adacore.com>
5305
5306 * gnat_rm.texi: Document new mechanism Short_Descriptor.
9e81dbc7 5307
e1bb4e71
AC
5308 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
5309 mechanism values.
5310
5311 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5312 mechanism and Short_Descriptor mechanism values.
5313
5314 * snames.adb (preset_names): Add short_descriptor entry.
5315
5316 * snames.ads: Add Name_Short_Descriptor.
5317
5318 * types.h: Add new By_Short_Descriptor mechanism values.
5319
5320 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5321 mechanism and Short_Descriptor mechanism values.
5322
5323 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
5324 values.
5325 (Descriptor_Codes): Modify range for new mechanism values.
5326
5327 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
5328 mechanism values.
5329
5330 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
5331 (gnat_to_gnu_param): Handle By_Short_Descriptor.
5332
5333 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
5334 (build_vms_descriptor32): New prototype.
5335 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
5336
5337 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
5338 argument in call fill_vms_descriptor.
5339
5340 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
5341 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
9e81dbc7 5342 (build_vms_descriptor): Renamed from build_vms_descriptor64.
e1bb4e71
AC
5343 (convert_vms_descriptor32): New function.
5344 (convert_vms_descriptor64): New function.
5345 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
5346 descriptors.
5347
5348 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
5349 no longer needed.
5350
53512008-08-01 Jose Ruiz <ruiz@adacore.com>
5352
5353 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
5354 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
5355 name.
5356
bca3ab79
AC
53572008-08-01 Jose Ruiz <ruiz@adacore.com>
5358
5359 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
5360 current directory so only fully qualified names are allowed.
5361
53622008-08-01 Robert Dewar <dewar@adacore.com>
5363
5364 * gnat_ugn.texi:
5365 Minor editing, remove uncomfortable use of semicolon
5366
5367 * s-ststop.adb: Add some ??? comments
5368
5369 * sem_ch10.adb: Minor reformatting
5370
5371 * snames.ads:
5372 Minor comment fixes, some pragmas were not properly
5373 categorized in the comments, documentation change only
5374
5375 * xref_lib.adb: Minor reformatting
5376
5377 * sinput.adb: Minor reformatting
5378
5379 * gnatchop.adb: Minor reformatting
5380
5381 * sem_util.ads: Minor reformatting.
5382
5383 * opt.ads: Minor documentation fix
5384
5385 * scng.adb: Minor reformatting
5386
5387 * prj-part.adb: Update comments
5388
53892008-08-01 Ed Schonberg <schonberg@adacore.com>
5390
5391 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
5392 tagged synchronized type, use corresponding record type.
5393
53942008-08-01 Doug Rupp <rupp@adacore.com>
5395
5396 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
5397 dummy transfer address for debugging.
9e81dbc7 5398
bca3ab79
AC
5399 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
5400
5401 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
5402
4c5a0615
EB
54032008-07-31 Eric Botcazou <ebotcazou@adacore.com>
5404
5405 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
5406 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
5407
964771d9
AC
54082008-07-31 Pascal Obry <obry@adacore.com>
5409
5410 * prj-nmsc.adb: Keep Object and Exec directory casing.
5411
54122008-07-31 Jose Ruiz <ruiz@adacore.com>
5413
5414 * system-rtx-rtss.ads
5415 Change the default stack size. It is important to set the commit part.
9e81dbc7 5416
964771d9
AC
5417 * s-taprop-rtx.adb
5418 (Initialize): Get the clock resolution.
5419 (RT_Resolution): Return the clock resolution that is indicated by the
5420 system.
5421
5422 * s-parame-vxworks.adb
5423 Document that this body is used for RTX in RTSS (kernel) mode.
5424
5425 * gcc-interface/Makefile.in
5426 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
5427 s-parame-vxworks.adb body in order to have reasonable stack sizes in
5428 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
5429 cannot ask for too big values.
5430
54312008-07-31 Robert Dewar <dewar@adacore.com>
5432
5433 * exp_aggr.adb: Minor reformatting
5434
5435 * makeutl.adb: Minor reformatting
5436
5437 * prj-env.adb: Minor reformatting
5438
1e0f7ffb
AC
54392008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5440
5441 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
5442 tagged type is completed by a concurrent type.
5443
54442008-07-31 Gary Dismukes <dismukes@adacore.com>
5445
5446 * sem_aggr.adb:
5447 (Resolve_Record_Aggregate): Bypass error that a type without
5448 components must have a "null record" aggregate when compiling for Ada
5449 2005, since it's legal to give an aggregate of form (others => <>)
5450 for such a type.
5451
fa4bc5ab
AC
54522008-07-31 Javier Miranda <miranda@adacore.com>
5453
5454 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
5455 handle synchronized types. Required to handle well the object.operation
5456 notation applied to synchronized types.
5457
54582008-07-31 Quentin Ochem <ochem@adacore.com>
5459
5460 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
5461 anymore - just used internally.
5462 Added handling of very small tasks - when the theoretical size is
5463 already full at the point of the call.
5464 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
5465 not need to be added to the result.
5466
54672008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5468
5469 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
5470 corresponding spec is a primitive wrapper. Update comment.
5471
54722008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5473
5474 * bindgen.adb Comment reformatting. Update the list of run-time globals.
5475 (Gen_Adainit_Ada): Add the declaration, import and value set for
5476 configuration flag Canonical_Streams.
5477 (Gen_Adainit_C): Add the declaration and initial value of external
5478 symbol __gl_canonical_streams.
9e81dbc7 5479
fa4bc5ab 5480 * init.c: Update the list of global values computed by the binder.
9e81dbc7 5481
fa4bc5ab 5482 * opt.ads: Add flag Canonical_Streams.
9e81dbc7 5483
fa4bc5ab
AC
5484 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
5485 semantically handled pragmas.
9e81dbc7 5486
fa4bc5ab
AC
5487 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
5488 (Analyze_Pragma): Add case for pragma Canonical_Streams.
9e81dbc7 5489
fa4bc5ab 5490 * snames.adb: Add character value for name Canonical_Streams.
9e81dbc7 5491
fa4bc5ab
AC
5492 * snames.ads:
5493 Add Name_Canonical_Streams to the list of configuration pragmas.
5494 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
9e81dbc7 5495
fa4bc5ab 5496 * snames.h: Add a definition for Pragma_Canonical_Streams.
9e81dbc7 5497
fa4bc5ab
AC
5498 * s-ststop.adb:
5499 Add a flag and import to seize the value of external symbol
5500 __gl_canonical_streams. Update comment and initial value of constant
5501 Use_Block_IO.
9e81dbc7 5502
fa4bc5ab 5503 * gnat_rm.texi: Add section of pragma Canonical_Streams.
9e81dbc7 5504
fa4bc5ab
AC
5505 * gnat_ugn.texi:
5506 Add pragma Canonical_Streams to the list of configuration pragmas.
5507
55082008-07-31 Ed Schonberg <schonberg@adacore.com>
5509
5510 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
5511 has the form A.B.C and B is a unit renaming, analyze its compilation
5512 unit and add a with_clause on A.b to the context.
5513
f32b9cd1
AC
55142008-07-31 Vincent Celier <celier@adacore.com>
5515
5516 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
5517 return the empty string, instead of raising Constraint_Error.
5518
55192008-07-31 Gary Dismukes <dismukes@adacore.com>
5520
5521 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
9e81dbc7 5522
f32b9cd1
AC
5523 * checks.adb (Apply_Accessibility_Check): Insert the check on
5524 Insert_Node.
9e81dbc7 5525
f32b9cd1
AC
5526 * exp_attr.adb:
5527 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
5528 to new parameter Insert_Node on call to Apply_Accessibility_Check.
5529 Necessary to distinguish the insertion node because the dereferenced
5530 formal may come from a rename, but the check must be inserted in
5531 front of the attribute.
9e81dbc7 5532
f32b9cd1
AC
5533 * exp_ch4.adb:
5534 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
5535 call to Apply_Accessibility_Check.
5536 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
5537 on call to Apply_Accessibility_Check.
5538 Minor reformatting
5539
55402008-07-31 Javier Miranda <miranda@adacore.com>
5541
5542 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
5543 types when the candidate type is a synchronized type.
9e81dbc7 5544
f32b9cd1
AC
5545 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
5546 types, and complete management of synchronized types adding missing
5547 code to handle formal that is a synchronized type.
9e81dbc7 5548
f32b9cd1
AC
5549 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
5550 are not available and cause the compiler to blowup. Found compiling
5551 test with switch -gnatc
9e81dbc7 5552
f32b9cd1
AC
5553 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
5554 Has_Correct_Formal_Mode plus code cleanup.
5555
e92c92b2
AC
55562008-07-31 Bob Duff <duff@adacore.com>
5557
5558 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
5559 recognized as two end-of-lines, but it should be just one.
5560
55612008-07-31 Thomas Quinot <quinot@adacore.com>
5562
5563 * exp_ch9.adb: Minor reformatting
5564
5565 * tbuild.ads: Fix several occurrences of incorrectly referring to
5566 Name_Find as Find_Name.
5567
55682008-07-31 Ed Schonberg <schonberg@adacore.com>
5569
5570 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
5571 and the context is an object declaration with non-static bounds, treat
5572 the aggregate as non-static.
5573
55742008-07-31 Vincent Celier <celier@adacore.com>
5575
5576 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
5577 Move back spec of Parse_Single_Project to body, as it is not called
5578 outside of package Prj.Part.
5579 (Project_Data): Remove components Linker_Name, Linker_Path and
5580 Minimum_Linker_Options as they are no longer set.
5581 Remove function There_Are_Ada_Sources from package Prj and move code
5582 in the only place it was used, in Prj.Env.Set_Ada_Paths.
5583
ee5d7272
AC
55842008-07-31 Arnaud Charlet <charlet@adacore.com>
5585
5586 * mlib-utl.ads: Fix typo.
5587
55882008-07-31 Robert Dewar <dewar@adacore.com>
5589
5590 * sem_ch12.adb: Minor reformatting
5591
55922008-07-31 Sergey Rybin <rybin@adacore.com>
5593
5594 * gnat_ugn.texi: Change the description of the
5595 Overly_Nested_Control_Structures: now the rule always requires a
5596 positive parameter for '+R' option
5597
55982008-07-31 Thomas Quinot <quinot@adacore.com>
5599
5600 * g-pehage.adb: Minor reformatting
5601
56022008-07-31 Pascal Obry <obry@adacore.com>
5603
5604 * s-finimp.ads: Minor reformatting.
5605
56062008-07-31 Vincent Celier <celier@adacore.com>
5607
5608 * s-regexp.ads: Minor comment fix
5609
56102008-07-31 Arnaud Charlet <charlet@adacore.com>
5611
5612 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
5613 so that we can compile this file successfully with -gnatc.
5614
56152008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5616
5617 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
5618 of the type when looking for stream subprograms for type String,
5619 Wide_String and Wide_Wide_String.
9e81dbc7 5620
ee5d7272
AC
5621 * s-ststop.adb: Change the initialization expression of constant
5622 Use_Block_IO.
5623
56242008-07-31 Geert Bosch <bosch@adacore.com>
5625
5626 * arit64.c:
5627 New file implementing __gnat_mulv64 signed integer multiplication with
5628 overflow checking
5629
5630 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
5631
5632 * gcc-interface/gigi.h:
5633 (standard_types): Add ADT_mulv64_decl
5634 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
5635
5636 * gcc-interface/utils.c:
5637 (init_gigi_decls): Add initialization of mulv64_decl
5638
5639 * gcc-interface/trans.c:
5640 (build_unary_op_trapv): New function
5641 (build_binary_op_trapv): New function
5642 (gnat_to_gnu): Use the above functions instead of
5643 build_{unary,binary}_op
5644
5645 * gcc-interface/Makefile.in
5646 (LIBGNAT_SRCS): Add arit64.c
5647 (LIBGNAT_OBJS): Add arit64.o
5648
56492008-07-31 Vincent Celier <celier@adacore.com>
5650
5651 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
5652 Linker'Default_Switches are declared. Warn if they are declared.
5653
56542008-07-31 Ed Schonberg <schonberg@adacore.com>
5655
5656 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
5657 Insert_Actions to place the pointer declaration in the code, rather
5658 than Insert_Before_And_Analyze, so that insertions of temporaries are
5659 kept in the proper order when transient scopes are present.
5660
5661
b38c3c9e
AC
56622008-07-31 Robert Dewar <dewar@adacore.com>
5663
5664 * einfo.adb (Spec_PPC): Now defined for generic subprograms
9e81dbc7 5665
b38c3c9e 5666 * einfo.ads (Spec_PPC): Now defined for generic subprograms
9e81dbc7 5667
b38c3c9e
AC
5668 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
5669 subprogram case
5670
56712008-07-31 Vincent Celier <celier@adacore.com>
5672
5673 * s-os_lib.adb: Minor comment fix
5674
56752008-07-31 Ed Schonberg <schonberg@adacore.com>
5676
5677 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
5678 transfer pre/postconditions from generic copy to original tree, so that
5679 they will appear in each instance.
5680 (Process_PPCs): Do not transform postconditions into a procedure in a
5681 generic context, to prevent double expansion of check pragmas.
9e81dbc7 5682
b38c3c9e
AC
5683 * sem_attr.adb: In an instance, the prefix of the 'result attribute
5684 can be the renaming of the
5685 current instance, so check validity of the name accordingly.
5686
024238a2
AC
56872008-07-31 Robert Dewar <dewar@adacore.com>
5688
5689 * mlib-utl.ads: Minor reformatting
5690
56912008-07-31 Ed Schonberg <schonberg@adacore.com>
5692
5693 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
5694 from context. This attribute must be usable in Ada95 mode.
5695 The attribute can appear in the body of a function marked
5696 Inline_Always, but in this case the postocondition is not enforced.
9e81dbc7 5697
024238a2
AC
5698 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
5699 of an inlined call pre- and postconditions are legal
5700
57012008-07-31 Vincent Celier <celier@adacore.com>
5702
5703 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
5704 were for gprmake only
5705
57062008-07-31 Robert Dewar <dewar@adacore.com>
5707
5708 * gnat_ugn.texi: Update -gnatN documentation.
5709
5710 * gnat_rm.texi: Add note about pre/postcondition
5711 pragmas not checked in conjunction with front-end inlining.
5712
035b2a77
AC
57132008-07-31 Robert Dewar <dewar@adacore.com>
5714
5715 * g-pehage.adb, g-pehage.ads: Minor reformatting
5716
57172008-07-31 Arnaud Charlet <charlet@adacore.com>
5718
5719 * mlib-utl.ads, prj-makr.ads: Add comments.
5720
636b71b9
AL
57212008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5722
9e81dbc7 5723 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
636b71b9
AL
5724 [WINDOWS]: Add s-winext.o.
5725
01ddebf2
EB
57262008-07-30 Eric Botcazou <ebotcazou@adacore.com>
5727
5728 PR ada/36554
5729 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
5730 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
5731 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
5732 Set precision to 1 for subtype of BOOLEAN_TYPE.
5733 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
5734 (make_type_from_size): Deal with BOOLEAN_TYPE.
5735 * gcc-interface/misc.c (gnat_print_type): Likewise.
5736 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
5737 Set boolean_type_node as its translation in the table, as well
5738 as boolean_false_node for False and boolean_true_node for True.
5739 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
5740 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
5741 (create_param_decl): Deal with BOOLEAN_TYPE.
5742 (build_vms_descriptor): Likewise.
5743 (build_vms_descriptor64): Likewise.
5744 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
5745
2a9cc4de
AC
57462008-07-30 Robert Dewar <dewar@adacore.com>
5747
5748 * exp_ch9.adb: Minor reformatting
5749
5750 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
5751 if no primitive operation is found.
5752
5753 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
5754
5755 * sem_ch8.adb: Minor reformatting
5756
57572008-07-30 Laurent Pautet <pautet@adacore.com>
5758
5759 * g-pehage.adb:
5760 Remove a limitation on the length of the words handled by the minimal
5761 perfect hash function generator.
5762
5763 * g-pehage.ads:
5764 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
5765 Fix some typos.
5766
5cc6fa41
AC
57672008-07-30 Robert Dewar <dewar@adacore.com>
5768
5769 * gnatlink.adb: Minor reformatting
5770
57712008-07-30 Thomas Quinot <quinot@adacore.com>
5772
5773 * rtsfind.adb (Check_RPC): Check version consistency even when not
5774 generating RCI stubs. Provide more detailed error message in case of
5775 mismatch.
5776
57772008-07-30 Ed Schonberg <schonberg@adacore.com>
5778
5779 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
5780 as a actual in an instance, check for a missing attribute to prevent
5781 program_error on an illegal program.
9e81dbc7 5782
5cc6fa41
AC
5783 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
5784 error if primitive is not found, so that exception can be handled
5785 elsewhere on illegal programs.
5786
57872008-07-30 Robert Dewar <dewar@adacore.com>
5788
5789 * uintp.adb (UI_GCD): Fix potential overflow
5790
57912008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
5792
5793 * einfo.adb: Flag245 is now used.
5794 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
5795 check to include functions.
5796 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5797 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
5798 include functions.
5799 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
5800 to the list of displayed flags.
5801
5802 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
5803 Wrapped_Entity. These two flags are now present in functions.
5804 New flag Is_Private_Primitive.
5805 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
5806
5807 * exp_ch9.adb:
5808 (Build_Wrapper_Bodies): New subprogram.
5809 (Build_Wrapper_Body): The spec and body have been moved to in
5810 Build_Wrapper_ Bodies. Code cleanup.
5811 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
5812 Wrappers are now generated for primitives declared between the private
5813 and full view of a concurrent type that implements an interface.
5814 (Build_Wrapper_Specs): New subprogram.
5815 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
5816 creation mechanism with a call to Build_Wrapper_Bodies.
5817 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
5818 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
5819 (Expand_N_Task_Body): Replace the wrapper body creation
5820 mechanism with a call to Build_Wrapper_Bodies.
5821 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
5822 creation mechanism with a call to Build_Wrapper_Specs.
5823 (Is_Private_Primitive_Subprogram): New subprogram.
5824 (Overriding_Possible): Code cleanup.
5825 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
5826
5827 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
5828
5829 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
5830 (Process_Full_View): Build wrapper specs for all primitives
5831 that belong to a private view completed by a concurrent type
5832 implementing an interface.
9e81dbc7 5833
5cc6fa41
AC
5834 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
5835 is a primitive of a
5836 concurrent type with a private view that implements an interface, try to
5837 find the proper spec.
5838 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
5839 primitive if the type of its first parameter is a non-generic tagged
5840 private type.
5841 (Analyze_Subprogram_Specification): Code reformatting.
5842 (Disambiguate_Spec): New routine.
5843 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
5844 (Is_Private_Concurrent_Primitive): New routine.
5845
5846 * sem_ch6.ads:
5847 (Find_Corresponding_Spec): Add a formal to control the output of errors.
5848
6ca2b0a0
DR
58492008-07-30 Doug Rupp <rupp@adacore.com>
5850
5851 * gigi.h (build_vms_descriptor64): New function prototype.
5852 (fill_vms_descriptor): Modified function prototype.
5853
5854 * utils.c (build_vms_descriptor64): New function.
5855
5856 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
5857
5858 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
5859 argument.
5860
5861 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
5862 64bit and 32bit descriptor and save the 64bit version as an alternate
5863 TREE_TYPE in the parameter.
5864 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
5865 thin pointer.
5866
5867 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
5868
002b2ad6
AC
58692008-07-30 Robert Dewar <dewar@adacore.com>
5870
5871 * make.adb: Minor reformatting
5872
5873 * mlib-utl.adb: Minor reformatting
5874
5875 * osint.ads: Minor reformatting
5876
58772008-07-30 Jose Ruiz <ruiz@adacore.com>
5878
5879 * adaint.c
5880 (__gnat_file_exists): Do not use __gnat_stat for RTX.
5881 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
5882 avoid the use of this symbol from libgcc.a in RTX kernel mode.
5883
5884 * cio.c
5885 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
5886 the function RtPrintf for console output.
9e81dbc7 5887
002b2ad6 5888 * argv.c Do not use the environ variable for RTX.
9e81dbc7 5889
002b2ad6
AC
5890 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
5891 been moved before the call to Osint.Add_Default_Search_Dirs in order
5892 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
5893 from the appropriate run time.
9e81dbc7 5894
002b2ad6
AC
5895 * targparm.ads
5896 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
5897 target is a RTSS module for RTX.
9e81dbc7 5898
002b2ad6
AC
5899 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
5900 RTX_RTSS_Kernel_Module
5901 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
5902
5903 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
5904 exception handling mechanism for Windows and RTX in Win32 mode, but
5905 not for RTX in kernel mode (RTSS).
5906 (LIBGNAT_SRCS): Remove ada.h
5907
00afcaa0
PB
59082008-07-30 Paolo Bonzini <bonzini@gnu.org>
5909
5910 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
5911 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5912 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
5913 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
5914 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
5915 ALL_ADA_CFLAGS): Remove.
5916 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
5917 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
5918 (GCC_CFLAGS): Remove X_CFLAGS.
5919 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
5920 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
5921 (ADA_CFLAGS): Substitute.
5922
a7dafa20
LG
59232008-07-30 Laurent Guerby <laurent@guerby.net>
5924
9e81dbc7
AS
5925 PR ada/5911
5926 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
5927 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
5928 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
5929 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
5930 by stamp-gnatlib2-rts.
5931
70b1e376
RW
59322008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5933
5934 PR documentation/15479
5935 * gnat-style.texi: Remove AdaCore copyright statement and GPL
5936 statement for GNAT. Add @copying stanza, use it. Update to
5937 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
5938 title as Front-Cover Text.
5939 * gnat_rm.texi: Likewise.
5940 * gnat_ugn.texi: Likewise.
5941
343eba42
JH
59422008-07-29 Jan Hubicka <jh@suse.cz>
5943
5944 * trans.c (process_inlined_subprograms): Remove tree_really_inline
5945 check.
5946
ebf5ba04
AC
59472008-07-29 Arnaud Charlet <charlet@adacore.com>
5948
5949 * gcc-interface: New directory.
5950
5951 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
5952 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
5953 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
5954 to gcc-interface subdirectory.
5955
46897370
AL
59562008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5957
5958 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
5959
e90acd93
JH
59602008-07-28 Jan Hubicka <jh@suse.cz>
5961
5962 * misc.c (gnat_post_options): Do not set flag_no_inline.
5963
726a989a
RB
59642008-07-28 Richard Guenther <rguenther@suse.de>
5965
5966 Merge from gimple-tuples-branch.
5967
5968 2008-07-22 Olivier Hainque <hainque@adacore.com>
5969
5970 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
5971 this is called for an elab proc to be discarded if empty.
5972 * utils.c (end_subprog_body): Honor ELAB_P.
5973 (build_function_stub): Adjust call to end_subprog_body.
5974 * trans.c (Subprogram_Body_to_gnu): Likewise.
5975 (gigi): Reorganize processing of elab procs to prevent
5976 gimplifying twice, using the new end_subprog_body argument.
5977
5978 2008-07-19 Richard Guenther <rguenther@suse.de>
5979
5980 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
5981 (utils.o): Likewise.
5982 * trans.c: Include tree-iterator.h.
5983 (gnat_gimplify_expr): Adjust prototype. Fix typo.
5984 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
5985 (set_expr_location_from_node): Likewise.
5986 (gigi): Tuplify.
5987 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
5988 of GENERIC_NEXT.
5989 * utils.c: Include tree-iterator.h.
5990 * gigi.h (gnat_gimplify_expr): Adjust prototype.
5991
5992 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
5993
5994 * trans.c: Include gimple.h instead of tree-gimple.h.
5995 * utils.c: Same.
5996
5997 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
5998
5999 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
6000
8ae3959e 60012008-07-25 Jan Hubicka <jh@suse.cz>
7e8b322a 6002
8ae3959e
EB
6003 * utils.c (end_subprog_body): Remove inline trees check.
6004 * misc.c (gnat_post_options): Do not set flag_inline_trees.
7e8b322a 6005
4a7bb85b
RO
60062008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6007
6008 * raise-gcc.c: Move tsystem.h before tm.h.
6009
ec45d105
AC
60102008-07-20 Arnaud Charlet <charlet@adacore.com>
6011
6012 * gnathtml.pl: New file.
6013
95331614 60142008-07-19 Olivier Hainque <hainque@adacore.com>
8ae3959e 6015
95331614
OH
6016 * targtyps.c (get_target_default_allocator_alignment): Use
6017 MALLOC_ABI_ALIGNMENT.
6018
dd7ac716
OH
60192008-07-17 Olivier Hainque <hainque@adacore.com>
6020
6021 * adaint.c (__MINGW32__ section): Include ctype.h and define
6022 a fallback ISALPHA if IN_RTS.
9e81dbc7 6023 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
dd7ac716 6024
a7a46bb2
OH
60252008-07-17 Olivier Hainque <hainque@adacore.com>
6026
6027 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
6028 argument, to apply to references in addition to definitions. Prevent
6029 setting TREE_STATIC on externals.
6030 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
6031
66bfd481
RW
60322008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6033
6034 PR documentation/15479
6035 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
6036 Replace backets around optional parameters with @ovar
6037 where possible, use @r{[}, @r{]} otherwise.
6038 Replace some @r, @i, and @emph with @var where appropriate.
6039
7a803dd8
EB
60402008-07-02 Eric Botcazou <ebotcazou@adacore.com>
6041
6042 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
6043
7d71283c
KG
60442008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6045
6046 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
6047 -Wc++-compat warnings.
6048 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
6049 __gnat_locate_exec_on_path): Likewise.
6050 * decl.c (annotate_value): Likewise.
6051 * misc.c (gnat_handle_option): Likewise.
6052 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
6053 post_error_ne_tree): Likewise.
6054
d9338c67
EB
60552008-06-27 Eric Botcazou <ebotcazou@adacore.com>
6056
6057 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
6058 version of its type, attempt to first convert its elements.
6059
b4b010ad
CP
60602008-06-26 Chris Proctor <chrisp_42@bigpond.com>
6061
6062 * Makefile.in: Fix *86 kfreebsd target specific pairs.
6063
0ee61065
ST
60642008-06-25 Samuel Tardieu <sam@rfc1149.net>
6065
6066 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
6067
324ed5a6
EB
60682008-06-24 Eric Botcazou <ebotcazou@adacore.com>
6069
6070 * utils2.c (known_alignment): Derive the alignment from pointed-to
6071 types only if it is otherwise unknown.
6072 <INTEGER_CST>: Tidy.
6073 <MULT_EXPR>: Likewise.
6074 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
6075 that of the base.
6076
2d31e498
JDA
60772008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6078
6079 PR ada/36573
6080 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
6081
6ccde948
RW
60822008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6083
6084 * gnat_rm.texi (Implementation Defined Characteristics)
6085 (Standard Library Routines): Use @smallexample for indented
6086 text. Drop Indentation outside examples.
6087 * gnat_ugn.texi: Likewise.
6088
d8612af2
OH
60892008-06-13 Olivier Hainque <hainque@adacore.com>
6090
6091 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
6092 if undefined.
6093 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
6094 realignment with force_align_arg_pointer attribute on foreign
6095 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
9e81dbc7 6096
ca789c7f
OH
60972008-06-13 Olivier Hainque <hainque@adacore.com>
6098
6099 * utils.c (rest_of_record_type_compilation): When computing
6100 encodings for the components of a variable size type, early
6101 strip conversions on the current position expression to make
6102 sure it's shape is visible. Use remove_conversions for this
6103 purpose.
6104
1dd4a3e6
EB
61052008-06-12 Eric Botcazou <ebotcazou@adacore.com>
6106
6107 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
6108 constrained subtype of a discriminated type, discard the fields that
6109 are beyond its limits according to its size.
6110
12ae9b26
OH
61112008-06-10 Olivier Hainque <hainque@adacore.com>
6112
6113 * utils.c (create_subprog_decl): If this is for the 'main' entry
6114 point according to the asm name, redirect main_identifier_node.
6115
912cb442
EB
61162008-06-09 Eric Botcazou <ebotcazou@adacore.com>
6117
6118 * decl.c (components_to_record): Adjust the packedness for the
6119 qualified union as well.
6120
4a598c32
AC
61212008-06-09 Arnaud Charlet <charlet@adacore.com>
6122
6123 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
6124 checks non fatal.
6125
4b92fd3c
ST
61262008-06-07 Samuel Tardieu <sam@rfc1149.net>
6127
6128 * sem_res.adb (Large_Storage_Type): A type is large if it
6129 requires as many bits as Positive to store its values and its
6130 bounds are known at compile time.
6131 * sem_ch13.adb (Minimum_Size): Note that this function returns
6132 0 if the size is not known at compile time.
6133
968c8001
OH
61342008-06-06 Nicolas Setton <setton@adacore.com>
6135 Olivier Hainque <hainque@adacore.com>
6136
6137 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
6138 attribute, parallel descriptive type attached to another
6139 type for debug info generation purposes.
6140 * utils.c (add_parallel_type): New function, register
6141 parallel type to be attached to a type.
6142 (get_parallel_type): New function, fetch a registered
6143 parallel type, if any.
6144 (rest_of_record_type_compilation): Register the parallel
6145 type we make for variable size records.
6146 * gigi.h (add_parallel_type, get_parallel_type): Declare.
6147 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
6148 parallel debug types we make.
6149 * trans.c (extract_encoding, decode_name): New functions.
6150 (gigi): If the DWARF attribute extensions are available, setup
6151 to use them.
6152 * lang.opt: Register language specific processing request
6153 for -gdwarf+.
6154 * misc.c (gnat_dwarf_extensions): New global variable. How much
6155 do we want of our DWARF extensions. 0 by default.
6156 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
6157 (gnat_post_options): Map gnat_dwarf_extensions to the
6158 commonuse_gnu_debug_info_extensions for later processing.
9e81dbc7 6159
b30199b8
ST
61602008-06-04 Samuel Tardieu <sam@rfc1149.net>
6161
6162 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
6163
30783513
RW
61642008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6165
6166 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
6167 * gnat_ugn.texi (Style Checking)
6168 (Adding the Results of Compiler Checks to gnatcheck Output)
6169 (Example of Binder Output File): Fix typos.
6170 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
6171 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
6172 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
6173 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
6174 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
6175 sinfo.ads, utils.c: Fix typos in comments.
6176 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
6177
fb8368fd
AC
61782008-05-29 Thomas Quinot <quinot@adacore.com>
6179
6180 * sem_eval.adb: Minor reformatting
6181
61822008-05-29 Ed Schonberg <schonberg@adacore.com>
6183
6184 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
6185 is abstract, do not apply abstractness check on subprogram if this is
6186 a renaming declaration.
6187
61882008-05-29 Arnaud Charlet <charlet@adacore.com>
6189
6190 PR ada/864
6191 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
6192 allow recognition of program suffix in addition to prefix.
9e81dbc7 6193
fb8368fd 6194 * gnatchop.adb (Locate_Executable): Add support for prefix.
9e81dbc7 6195
fb8368fd
AC
6196 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
6197 mlib-utl.adb: Adjust calls to Program_Name.
6198
fff3f472
AC
61992008-05-29 Robert Dewar <dewar@adacore.com>
6200
6201 * sem_ch3.adb: Minor reformatting
6202 * sem_prag.adb: Minor reformatting
6203 * sem_res.adb: Minor reformatting
6204 * sinput-p.ads: Minor reformatting
6205
62062008-05-29 Javier Miranda <miranda@adacore.com>
6207
6208 * sem_util.adb:
6209 (Abstract_Interface_List): Add missing support for full type-declaration
6210 associated with synchronized types.
6211
62122008-05-29 Robert Dewar <dewar@adacore.com>
6213
6214 * sem_eval.adb (Is_Same_Value): Take care of several more cases
6215
acca98c0
AC
62162008-05-28 Ed Schonberg <schonberg@adacore.com>
6217
6218 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
6219 access type, wrap the expression in a conversion to force an
6220 accessibility check.
6221
6222 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
6223 accessibility checks even when expansion is disabled in order to
6224 generate messages in the presence of previous errors or in
6225 semantics-only mode.
6226
62272008-05-28 Eric Botcazou <ebotcazou@adacore.com>
6228
6229 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
6230 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
6231
62322008-05-28 Vincent Celier <celier@adacore.com>
6233
6234 PR ada/34446
6235 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
6236 preprocessing expressions
6237
62382008-05-28 Vincent Celier <celier@adacore.com>
6239
6240 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
6241 for preprocessing
9e81dbc7 6242
acca98c0
AC
6243 * sinput-p.ads: Minor comment update and reformatting
6244
62452008-05-28 Ed Schonberg <schonberg@adacore.com>
6246
6247 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
6248 type has a deeper level than any master only when it is the type of an
6249 access parameter.
6250
8250171b
AC
62512008-05-28 Javier Miranda <miranda@adacore.com>
6252
6253 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
6254
62552008-05-28 Javier Miranda <miranda@adacore.com>
6256
6257 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
6258 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
6259 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
6260 Add code that was previously located in
6261 Find_Overridden_Synchronized_Primitive because it is only used here.
6262
62632008-05-28 Sergey Rybin <rybin@adacore.com>
6264
6265 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
6266 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
6267
00ea9517
RD
62682008-05-28 Robert Dewar <dewar@adacore.com>
6269
6270 * restrict.ads:
6271 Add missing restrictions, and properly label all GNAT defined ones
9e81dbc7 6272
00ea9517
RD
6273 * rtsfind.ads:
6274 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
6275 Add entry for Ada.Task_Termination.Set_Specific_Handler
6276 Add entry for Ada.Task_Termination.Specific_Handler
9e81dbc7 6277
00ea9517
RD
6278 * s-rident.ads:
6279 Add missing restrictions and properly mark all gnat defined ones
9e81dbc7 6280
00ea9517
RD
6281 * sem_ch3.adb:
6282 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
9e81dbc7 6283
00ea9517
RD
6284 * sem_res.adb:
6285 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
6286
6287 * gnat_rm.texi: Add missing restrictions, and properly label all
6288 GNAT defined ones
6289
62902008-05-28 Robert Dewar <dewar@adacore.com>
6291
6292 * restrict.adb:
6293 (Check_Restriction): violation of restriction No_Finalization is
6294 treated as a serious error to stop expansion
6295
62962008-05-28 Robert Dewar <dewar@adacore.com>
6297
6298 * exp_util.adb: Minor reformatting
6299 * exp_util.ads: Minor reformatting.
6300
0b795892
AC
63012008-05-28 Arnaud Charlet <charlet@adacore.com>
6302
6303 * Make-lang.in: Remove gprmake.
6304
6305 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
6306
5840819a
AC
63072008-05-28 Ed Schonberg <schonberg@adacore.com>
6308
6309 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
6310 improper progenitor names, and avoid cascaded errors.
6311
63122008-05-28 Robert Dewar <dewar@adacore.com>
6313
6314 * gnat_rm.texi: Add note on Old giving warning when applied to constant
6315
6316 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
6317 a constant
6318
63192008-05-28 Robert Dewar <dewar@adacore.com>
6320
6321 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
6322 size
6323
63242008-05-28 Robert Dewar <dewar@adacore.com>
6325
6326 * exp_ch5.adb:
6327 (Expand_Simple_Function_Return): Copy unaligned result into temporary
6328
8c3dd7a8
JM
63292008-05-28 Javier Miranda <miranda@adacore.com>
6330
6331 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
6332 for user-defined predefined primitives.
9e81dbc7 6333
8c3dd7a8
JM
6334 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
6335 (Find_Overridden_Synchronized_Primitive): Ditto.
6336
6337 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
6338
35b80405
AC
63392008-05-27 Arnaud Charlet <charlet@adacore.com>
6340
6341 * a-ststio.adb, s-direio.adb:
6342 Further code clean up of previous change.
6343 Update comments.
6344
63452008-05-27 Vincent Celier <celier@adacore.com>
6346
6347 * prj-nmsc.adb: Minor reformatting
6348
63492008-05-27 Bob Duff <duff@adacore.com>
6350
6351 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
6352 untagged private type with a tagged full type, where the full type has
6353 a self reference, create the corresponding class-wide type early, in
6354 case the self reference is "access T'Class".
6355
63562008-05-27 Ed Schonberg <schonberg@adacore.com>
6357
6358 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
6359 tasks and context is an object declaration. create master entity before
6360 expansion.
6361
63622008-05-27 Robert Dewar <dewar@adacore.com>
6363
6364 * mlib-prj.adb: Minor reformatting
6365
6366 * prj-part.adb: Minor reformatting
6367
6368 * prj.ads: Minor reformatting
6369
6370 * exp_ch3.adb: Minor reformatting.
6371
6372 * sem_ch3.ads: Minor reformatting
6373
6374 * sem_eval.adb: Minor reformatting
6375
d5c998a9
AC
63762008-05-27 Vincent Celier <celier@adacore.com>
6377
6378 * gnatcmd.adb:
6379 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
6380
63812008-05-27 Ed Schonberg <schonberg@adacore.com>
6382
6383 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
6384 tasks, create an activation chain now, before the expansion into
6385 assignments and build-in-place calls that require the presence of an
6386 activation chain.
6387 (Backend_Processing_Possible): If the component type is inherently
6388 limited, the aggregate must be expanded into individual built-in-place
6389 assignments.
6390
6391 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
6392 determine whether an allocation extra parameter must be built, to
6393 handle case of a private type whose full type is a discriminated type
6394 with defaults.
6395
63962008-05-27 Bob Duff <duff@adacore.com>
6397
6398 * gnat_rm.texi:
6399 Document the new behavior regarding trampolines.
6400
64012008-05-27 Arnaud Charlet <charlet@adacore.com>
6402
6403 * a-direio.adb, a-sequio.adb: Replace address clause by
6404 unrestricted_access, simpler and compatible with .NET.
6405
64062008-05-27 Vincent Celier <celier@adacore.com>
6407
6408 * prj-part.adb:
6409 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
6410 a project file, so that symbolic links are not resolved.
6411
64122008-05-27 Arnaud Charlet <charlet@adacore.com>
6413
6414 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
6415 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
6416 portable across GNAT targets, since this kind of address clause is not
6417 supported by VM back-ends (.NET/JGNAT).
6418
79d2a727
AC
64192008-05-27 Arnaud Charlet <charlet@adacore.com>
6420
6421 * bindgen.adb: Update comments.
9e81dbc7 6422
79d2a727
AC
6423 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
6424
64252008-05-27 Vincent Celier <celier@adacore.com>
6426
6427 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
6428 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
6429 mlib-tgt.adb, prj-env.adb, prj-env.ads:
6430 (Path_Information): New record type
6431 Use component of type Path_Information when there are two paths, one in
6432 canonical format and one in display format.
6433 Update the project manager to these new components.
6434
0f99f391
AC
64352008-05-27 Robert Dewar <dewar@adacore.com>
6436
6437 * makeutl.adb: Minor reformatting
6438 * prj-nmsc.adb: Minor reformatting
6439 * s-stausa.adb: Minor reformatting
6440 * s-stausa.ads: Minor reformatting
6441 * sem_ch6.adb: Minor reformatting
6442
64432008-05-27 Thomas Quinot <quinot@adacore.com>
6444
6445 * sem_res.adb: Minor comment fixes
6446
d18af35f
AC
64472008-05-27 Thomas Quinot <quinot@adacore.com>
6448
6449 * makeutl.adb: Minor code reorganization
6450
6451 * exp_aggr.adb: Add ??? comment
6452 Fix typo
6453
6454 * exp_ch6.adb: Minor reformatting
6455
64562008-05-27 Quentin Ochem <ochem@adacore.com>
6457
6458 * s-stausa.adb (Initialize): Updated result initialization, and
6459 initialization of environment stack.
6460 (Fill_Stack): Improved computation of the pattern zone, taking into
6461 account already filled at the calling point.
6462 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
6463 Measure and Overflow_Guard.
6464 (Report_Result): Fixed computation of the result using new fields of
6465 Stack_Analyzer.
9e81dbc7 6466
d18af35f
AC
6467 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
6468 params by more explicit Stack_Size / Max_Pattern_Size params.
6469 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
6470 Added Stack_Used_When_Filling field.
6471 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
6472 Min_Measure and Max_Measure fields.
9e81dbc7 6473
d18af35f
AC
6474 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
6475
64762008-05-27 Vincent Celier <celier@adacore.com>
6477
6478 * prj-nmsc.adb:
6479 (Check_File): Make sure that a unit that replaces the same unit in a
6480 project being extended is properly processed.
6481
64822008-05-27 Ed Schonberg <schonberg@adacore.com>
6483
6484 * sem_ch3.adb:
6485 (Get_Discr_Value): Remove obsolete code that failed to find the value
6486 of a discriminant for an inherited task component appearing in a type
6487 extension.
6488
64892008-05-27 Thomas Quinot <quinot@adacore.com>
6490
6491 (System.File_IO.{Close, Delete, Reset}):
6492 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
9e81dbc7 6493
d18af35f
AC
6494 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
6495 Pass File parameter by reference.
6496
aeff280b
AC
64972008-05-27 Vincent Celier <celier@adacore.com>
6498
6499 * prj-nmsc.adb:
6500 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
6501 sources of the same project that have the same object file name.
6502 (Find_Explicit_Sources): Always remove a source exception that was not
6503 found.
6504
65052008-05-27 Thomas Quinot <quinot@adacore.com>
6506
6507 * sem_ch3.adb: Minor reformatting
6508
65092008-05-27 Ed Schonberg <schonberg@adacore.com>
6510
6511 * sem_ch6.adb:
6512 (Is_Interface_Conformant): Handle properly a primitive operation that
6513 overrides an interface function with a controlling access result.
6514 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
6515 inherited and overriding operations, omit as well the conformance check
6516 on result types, to prevent spurious errors.
6517
65182008-05-27 Vincent Celier <celier@adacore.com>
6519
6520 * makeutl.ads, makeutl.adb:
6521 (Set_Location): New procedure
6522 (Get_Location): New function
6523 (Update_Main): New procedure
6524
7bf402c1
AC
65252008-05-27 Vincent Celier <celier@adacore.com>
6526
6527 * prj-nmsc.adb:
6528 (Check_Library): Allow standard project to be extended as a static
6529 library project.
6530 (Get_Mains): Do not inherit attribute Main in an extending library
6531 project.
6532
65332008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6534
6535 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
6536 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
6537 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
6538 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
6539 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
6540 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
6541 * system-mingw.ads (Always_Compatible_Rep): Likewise.
6542 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
6543 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
6544 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
9e81dbc7 6545
52268145
AC
65462008-05-27 Ed Schonberg <schonberg@adacore.com>
6547
6548 * sem_attr.adb: add guard to previous patch.
6549
65502008-05-27 Ed Schonberg <schonberg@adacore.com>
6551
6552 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
6553 a synchronized tagged type, do not attempt to build dispatch table for
6554 full view. The table is built for the corresponding record type, which
6555 has its own declaration.
6556
65572008-05-27 Gary Dismukes <dismukes@adacore.com>
6558
6559 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
6560 to the known type entity E, rather than setting it to Any_Type. Fixes
6561 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
6562 for objects whose type had an illegal constraint.
6563
65642008-05-27 Vincent Celier <celier@adacore.com>
6565
6566 * gnat_ugn.texi:
6567 Add succinct documentation for attribute Excluded_Source_List_File
6568
65692008-05-27 Vincent Celier <celier@adacore.com>
6570
6571 * prj-attr.adb: Add new project level attribute Map_File_Option
9e81dbc7 6572
52268145 6573 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
9e81dbc7 6574
52268145
AC
6575 * prj.ads: Minor reformatting and comment update
6576 (Project_Configuration): New component Map_File_Option
9e81dbc7 6577
52268145 6578 * snames.adb: New standard name Map_File_Option
9e81dbc7 6579
52268145
AC
6580 * snames.ads: New standard name Map_File_Option
6581
65822008-05-27 Vincent Celier <celier@adacore.com>
6583
6584 * xsnames.adb: Remove unused variable Oname
6585
65862008-05-27 Doug Rupp <rupp@adacore.com>
6587
6588 * exp_ch6.adb:
6589 (Expand_N_Function_Call): Fix comments. Minor reformatting.
6590
6591 * exp_vfpt.ads:
6592 (Expand_Vax_Foreign_Return): Fix comments.
6593
65942008-05-27 Thomas Quinot <quinot@adacore.com>
6595
6596 * exp_dist.adb: Minor reformating
6597
094d7cfa
AC
65982008-05-26 Gary Dismukes <dismukes@adacore.com>
6599
6600 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
6601 No_Default_Initialization, which is now delayed until the freeze point
6602 of the object. Add a comment about deferral of the check.
9e81dbc7 6603
094d7cfa
AC
6604 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
6605 on objects is moved here.
6606
66072008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6608
6609 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
6610 (Compare_Array_S16): Adjust for above change.
6611 * s-casi32.adb (Uword): Likewise.
6612 (Compare_Array_S32): Likewise.
6613 * s-casi64.adb (Uword): Likewise.
6614 (Compare_Array_S64): Likewise.
6615 * s-caun16.adb (Uhalf): Likewise.
6616 (Compare_Array_U16): Likewise.
6617 * s-caun32.adb (Uword): Likewise.
6618 (Compare_Array_U32): Likewise.
6619 * s-caun64.adb (Uword): Likewise.
6620 (Compare_Array_U64): Likewise.
9e81dbc7 6621
094d7cfa
AC
66222008-05-26 Robert Dewar <dewar@adacore.com>
6623
6624 * exp_ch6.adb: Add ??? comment for previous change
6625
6626 * exp_vfpt.adb: Minor reformatting
6627
6628 * exp_vfpt.ads: Add ??? comment for last change
6629
6630 * sem_attr.adb: Add some ??? comments for previous change
6631
6632 * s-vaflop.ads: Add comments for previous change
6633
66342008-05-26 Doug Rupp <rupp@adacore.com>
6635
6636 * s-vaflop-vms-alpha.adb:
6637 Remove System.IO use clause, to prevent spurious ambiguities when
6638 package is access through rtsfind.
6639
66402008-05-26 Sergey Rybin <rybin@adacore.com>
6641
6642 * tree_io.ads (ASIS_Version_Number): Update because of the changes
6643 made in front-end
6644
9019f3fc
AC
66452008-05-26 Ed Schonberg <schonberg@adacore.com>
6646
6647 * sem_attr.adb:
6648 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
6649 converted to S (A)'address only if A .. B is known to be a non-null
6650 range.
6651
66522008-05-26 Doug Rupp <rupp@adacore.com>
6653
6654 * s-vaflop.adb:
6655 (Return_D, Return_F, Return_G): New functions.
6656
6657 * s-vaflop.ads:
6658 (Return_D, Return_F, Return_G): New functions.
6659
6660 * exp_vfpt.adb:
6661 (Expand_Vax_Foreign_Return): New procedure
6662
6663 * exp_vfpt.ads:
6664 (Expand_Vax_Foreign_Return): New procedure
6665
6666 * rtsfind.ads:
6667 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
6668 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
6669
6670 * exp_ch6.adb:
6671 Import Exp_Vfpt
6672 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
6673
6674 * s-vaflop-vms-alpha.adb:
6675 (Return_D, Return_F, Return_G): New functions.
6676
66772008-05-26 Gary Dismukes <dismukes@adacore.com>
6678
6679 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
6680 init proc entity when there is actual default initialization associated
6681 with the component type, to avoid spurious errors on objects of scalar
6682 array types that are marked Is_Public when No_Default_Initialization
6683 applies.
6684
d693e39d
TQ
66852008-05-26 Thomas Quinot <quinot@adacore.com>
6686
6687 * rtsfind.ads, rtsfind.adb:
6688 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
6689 (Check_RPC): Support per-PCS-kind API versioning.
9e81dbc7 6690
d693e39d
TQ
6691 exp_dist.ads, exp_dist.adb:
6692 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
6693 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
6694 library function Get_RACW.
6695 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
6696 library function Get_Reference.
6697 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
6698 through an intermediate Any.
6699 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
6700 going through an intermediate Any.
9e81dbc7 6701
d693e39d
TQ
6702 * sem_dist.adb: Minor reformatting.
6703
ad89bc8d
AC
67042008-05-26 Javier Miranda <miranda@adacore.com>
6705
6706 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
6707 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6708 (Is_Internal): Adding documentation on internal entities that have
6709 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
6710
6711 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
6712 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
6713 Added assertion to force entities with this attribute to have
6714 attribute Is_Internal set to True.
6715 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
6716
6717 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
6718 renamed as Derive_Progenitor_Subprograms. In addition, its code is
6719 a new implementation.
6720 (Add_Interface_Tag_Components): Remove special management of
6721 synchronized interfaces.
6722 (Analyze_Interface_Declaration): Minor reformating
6723 (Build_Derived_Record_Type): Minor reformating
6724 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
6725 predefined primitive inherited from interface type because the body of
6726 internally generated predefined primitives of tagged types are generated
6727 later by Freeze_Type
6728 (Derive_Subprogram): Avoid generating an internal name if the parent
6729 subprogram overrides an interface primitive.
6730 (Derive_Subprograms): New implementation that keeps separate the
6731 management of tagged types not implementing interfaces, from tagged
6732 types that implement interfaces.
6733 (Is_Progenitor): New implementation.
6734 (Process_Full_View): Add documentation
6735 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
6736 by call to Derive_Progenitor_Subprograms.
6737
6738 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
6739 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6740 Skip_Controlling_Formals.
6741
6742 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
6743 (Check_Conventions): New implementation. Remove local subprogram
6744 Skip_Check. Remove formal Search_From of routine Check_Convention.
6745 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
6746 Skip_Controlling_Formals.
6747 (New_Overloaded_Entity): Enable addition of predefined dispatching
6748 operations.
6749
6750 * sem_disp.ads
6751 (Find_Primitive_Covering_Interface): New subprogram.
6752
6753 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
6754 the task body procedure as a primitive of the corresponding tagged
6755 type.
6756 (Check_Operation_From_Private_Type): Avoid adding twice an entity
6757 to the list of primitives.
6758 (Find_Primitive_Covering_Interface): New subprogram.
6759 (Override_Dispatching_Operation): Add documentation.
6760
6761 * sem_type.adb (Covers): Minor reformatings
6762
6763 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
6764 Collect_Interfaces.
6765 Rename formal.
6766 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
6767 (Implements_Interface): New subprogram.
6768 (Is_Parent): Removed.
6769 (Primitive_Names_Match): New subprogram.
6770 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6771 (Ultimate_Alias): New subprogram.
6772
6773 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
6774 Collect_Interfaces.
6775 Remove special management for synchronized types. Rename formal. Remove
6776 internal subprograms Interface_Present_In_Parent and Add_Interface.
6777 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
6778 on non-record types by code to return false in such case.
6779 (Implements_Interface): New subprogram.
6780 (Is_Parent): Removed. No special management is now required for
6781 synchronized types covering interfaces.
6782 (Primitive_Names_Match): New subprogram.
6783 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
6784 (Ultimate_Alias): New subprogram.
6785
6786 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
6787 Add internal entities associated with secondary dispatch tables to
6788 the list of tagged type primitives that are not interfaces.
6789 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
6790 (Make_Predefined_Primitive_Specs): Code reorganization to improve
6791 the management of predefined equality operator. In addition, if
6792 the type has an equality function corresponding with a primitive
6793 defined in an interface type, the inherited equality is abstract
6794 as well, and no body can be created for it.
6795
6796 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
6797 exp_util to exp_disp.
6798 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
6799 an entity corresponds with one of the predefined primitives required
6800 to implement interfaces.
6801 Update copyright notice.
6802
6803 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
6804 final check on abstract subprograms all the primitives associated with
6805 interface primitives because they must be visible in the public and
6806 private part.
6807 (Write_DT): Use Find_Dispatching_Type to locate the name of the
6808 interface type. This allows the use of this routine, for debugging
6809 purposes, when the tagged type is not fully decorated.
6810 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
6811 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
6812 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
6813 entity corresponds with one of the predefined primitives required to
6814 implement interfaces.
6815
6816 * exp_util.adb (Find_Interface_ADT): New implementation
6817 (Find_Interface): Removed.
6818
6819 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
6820 list of interfaces associated with nodes
6821 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
6822
68232008-05-26 Thomas Quinot <quinot@adacore.com>
6824
6825 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
6826 condition for assignment to temporary.
6827
c878b2ef
AC
68282008-05-26 Ed Schonberg <schonberg@adacore.com>
6829
6830 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
6831 checks on the upper bound if the index type is a modular type, to
6832 prevent wrap-around computations when size is close to upper bound of
6833 type.
6834
68352008-05-26 Robert Dewar <dewar@adacore.com>
6836
6837 * sem_ch3.adb: Minor reformatting
6838
39281edf
AC
68392008-05-26 Ed Schonberg <schonberg@adacore.com>
6840
6841 * sem_ch12.adb (Remove_Parent): Use specification of instance
6842 to retrieve generic parent,
6843 to handle properly the case where the instance is a child unit.
6844 Add guard to handle properly wrapper packages.
6845 Minor reformatting
6846
68472008-05-26 Thomas Quinot <quinot@adacore.com>
6848
6849 * sinfo.ads: Minor reformatting
6850
68512008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
6852
6853 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
6854 Generate a tag check when the result subtype of a function, defined by
6855 an access definition, designates a specific tagged type.
6856 (Make_Tag_Check): New routine.
6857
d6ca724c
AC
68582008-05-26 Arnaud Charlet <charlet@adacore.com>
6859
6860 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
6861
c654b659
EB
68622008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6863
6864 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
6865 (builtin_decl_for): Likewise.
6866 * trans.c (gigi): Likewise.
6867 * utils.c (def_builtin_1): Fix formatting.
6868
1c331d2d
AC
68692008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
6870
6871 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
6872 Create the statements which map a string name to protected or task
6873 entry indix.
6874
6875 * exp_ch9.adb: Add with and use clause for Stringt.
6876 Minor code reformatting.
6877 (Build_Entry_Names): New routine.
6878 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
6879 for flag Build_Entry_Names which controls the allocation of the data
6880 structure for the string names of entries.
6881
6882 * exp_ch9.ads (Build_Entry_Names): New subprogram.
6883
6884 * exp_util.adb (Entry_Names_OK): New function.
6885
6886 * exp_util.ads (Entry_Names_OK): New function.
6887
6888 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
6889 enumerations RE_Id and RE_Unit_Table.
6890
6891 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
6892 (Free_Entry_Names_Array): New routine.
6893
6894 * s-taskin.ads: Comment reformatting.
6895 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
6896 Add component Entry_Names to record Ada_Task_Control_Block.
6897 (Free_Entry_Names_Array): New routine.
6898
6899 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
6900 dynamically allocate an array
6901 of string pointers. This structure holds string entry names.
6902 (Free_Entry_Names): New routine.
6903 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
6904 (Set_Entry_Names): New routine.
6905
6906 * s-tassta.ads:
6907 (Create_Task): Add formal Build_Entry_Names. The flag is used to
6908 control the allocation of the data structure which stores entry names.
6909 (Set_Entry_Name): New routine.
6910
6911 * s-tpoben.adb:
6912 Add with and use clause for Ada.Unchecked_Conversion.
6913 (Finalize): Deallocate the entry names array.
6914 (Free_Entry_Names): New routine.
6915 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
6916 create an array of string pointers to hold the entry names.
6917 (Set_Entry_Name): New routine.
6918
6919 * s-tpoben.ads:
6920 Add field Entry_Names to record Protection_Entries.
6921 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
6922 (Set_Entry_Name): New routine.
6923
69242008-05-26 Vincent Celier <celier@adacore.com>
6925
6926 * prj-nmsc.adb:
6927 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
6928
6929 * prj.ads:
6930 (Project_Configuration): New component Shared_Lib_Driver
6931
69322008-05-26 Ed Schonberg <schonberg@adacore.com>
6933
6934 * inline.adb:
6935 (Cleanup_Scopes): For a protected operation, transfer finalization list
6936 to protected body subprogram, to force cleanup actions when needed.
6937
69382008-05-26 Robert Dewar <dewar@adacore.com>
6939
6940 * sem_cat.adb: Minor reformatting
6941
6942 * gnatname.adb: Minor reformatting
6943
6944 * osint.ads: Minor reformatting
6945
6946 * s-carun8.ads: Minor reformatting
6947
6948 * g-heasor.ads: Minor comment fix (unit is now pure)
6949
69502008-05-26 Robert Dewar <dewar@adacore.com>
6951
6952 * exp_ch2.adb:
6953 (Expand_Current_Value): Properly type generated integer literal
6954
69552008-05-26 Sergey Rybin <rybin@adacore.com>
6956
6957 * gnat_ugn.texi: Add description for the new gnatcheck rule -
6958 Separate_Numeric_Error_Handlers.
6959
69602008-05-26 Pascal Obry <obry@adacore.com>
6961
6962 * sem_aggr.adb: Minor reformatting.
6963
69642008-05-26 Jose Ruiz <ruiz@adacore.com>
6965
6966 * s-osinte-aix.adb:
6967 (To_Target_Priority): Setting the time slice value to 0 or greater sets
6968 the scheduling policy to FIFO within priorities or round-robin
6969 respectively.
6970 Hence, the priority must be set in this case to the one selected by the
6971 user.
9e81dbc7 6972
1c331d2d
AC
69732008-05-26 Ed Schonberg <schonberg@adacore.com>
6974
6975 * sem_ch12.adb:
6976 (Remove_Parent): If the enclosing scope is an instance whose generic
6977 parent is declared within some parent scope of the just completed
6978 instance, make full views of the entities in that parent visible, when
6979 applicable.
9e81dbc7 6980
a28e8f45
KT
69812008-05-26 Kai Tietz <kai.tietz@onevision.com>
6982
6983 * mingw32.h (STD_MINGW): Set to true for target w64.
6984
3651f7ad
EB
69852008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6986
6987 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
6988 instead of TREE_STATIC on the ADDR_EXPR.
6989
58272d79
EB
69902008-05-24 Eric Botcazou <ebotcazou@adacore.com>
6991
6992 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
6993 (Sloc_to_locus): Do not overwrite known GCC locations when translating
6994 GNAT standard locations.
6995
4c8125f4
EB
69962008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6997
6998 * gigi.h (mark_visited): Declare.
6999 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
7000 only the topmost node of expressions.
b86c6d94 7001 (elaborate_expression_1): Look deeper for read-only variables.
4c8125f4
EB
7002 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
7003 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
7004 (mark_visited_r): New function.
7005
d1ba4e42
AC
70062008-05-23 Vincent Celier <celier@adacore.com>
7007
b86c6d94 7008 * snames.adb: New standard name Excluded_Source_List_File.
d1ba4e42 7009
b86c6d94 7010 * snames.ads: New standard name Excluded_Source_List_File.
d1ba4e42 7011
b86c6d94 7012 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
d1ba4e42 7013
b86c6d94 7014 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
d1ba4e42
AC
7015 Get excluded sources from
7016 file indicated by attribute Excluded_Source_List_File, when present and
7017 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
7018
70192008-05-23 Robert Dewar <dewar@adacore.com>
7020
7021 * exp_dist.adb: Minor reformatting
7022
70232008-05-23 Ed Schonberg <schonberg@adacore.com>
7024
7025 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
7026 slice, convert it to an indexed component, which is equivalent, more
7027 efficient, and usable even if the slice itself is not addressable.
7028
70292008-05-23 Olivier Hainque <hainque@adacore.com>
7030
7031 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
7032 convention also allows access to named compiler built-in subprograms
7033 such as the GCC __builtin family.
7034
ffd0dd6c
AC
70352008-05-23 Vincent Celier <celier@adacore.com>
7036
7037 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
7038 sep. If there are several possibilities, choose the one with the
7039 longer prefix.
7040
70412008-05-23 Vincent Celier <celier@adacore.com>
7042
7043 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
7044 back end switches when executable specified with --GCC= is same as
7045 default, even if there are additional options.
7046
7047 * gnat_ugn.texi:
7048 Document when the back end switches from the ALI file are taken into
7049 account when gnatlink is invoked with --GCC=
7050
70512008-05-23 Thomas Quinot <quinot@adacore.com>
7052
7053 * s-os_lib.adb:
7054 (copy_File): Do not open destination file if source file is unreadable.
7055
3fda3252
EB
70562008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7057
7058 * utils.c (handle_type_generic_attribute): Adjust to accept
7059 fixed arguments before an elipsis.
7060
92c708d2
TQ
70612008-05-21 Thomas Quinot <quinot@adacore.com>
7062
7063 * g-sothco.ads, g-sothco.adb: New files.
7064
93a7c573
AC
70652008-05-20 Thomas Quinot <quinot@adacore.com>
7066
7067 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
7068
7069 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
7070 Add missing "with" of Ada.Unchecked_Conversion
7071
9e81dbc7
AS
7072 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
7073 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
7074 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7075 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
7076 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7077 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
93a7c573
AC
7078 Move common code out of GNAT.Sockets.Thin implementations and into
7079 Thin_Common.
7080 New constant SIZEOF_fd_set
7081 New flag Has_Sockaddr_Len
7082 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7083
7084 * g-stsifd-sockets.adb
7085 (Create): Remove call to Set_Length; use Set_Family to set the family
7086 and (on appropriate platforms) length fields in struct sockaddr.
7087
9e81dbc7
AS
7088 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
7089 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
93a7c573
AC
7090 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
7091 Move common code out of GNAT.Sockets.Thin implementations and into
7092 Thin_Common.
7093
9e81dbc7 7094 * g-socket.ads, g-socket.adb:
93a7c573
AC
7095 Move common code out of GNAT.Sockets.Thin implementations and into
7096 Thin_Common.
7097 (Connect_Socket, Accept_Socket): Provide new versions of these two
7098 routines that operate with a user specified timeout.
7099 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
7100 this is now handled automatically by Set_Family on platforms that
7101 require it.
7102
9e81dbc7 7103 * gen-soccon.c:
93a7c573
AC
7104 Move common code out of GNAT.Sockets.Thin implementations and into
7105 Thin_Common.
7106 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
7107 this constant to 0 (not -1) because we use it to initialize an
7108 unsigned_char value.
7109 Align values for numeric constants only.
7110 Handle the case of systems that do not support AF_INET6.
7111 New constant SIZEOF_fd_set
7112 New flag Has_Sockaddr_Len
7113 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7114
7115 * gsocket.h: New flag Has_Sockaddr_Len
7116 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7117
71182008-05-20 Santiago Uruena <uruena@adacore.com>
7119
7120 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
7121
71222008-05-20 Arnaud Charlet <charlet@adacore.com>
7123
7124 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
7125 the underlying issue with malloc/free has been fixed. Remove associated
7126 comments.
7127 Minor reformatting.
7128 Related to PR ada/24533
7129
71302008-05-20 Robert Dewar <dewar@adacore.com>
7131
7132 * ali.adb: Correct casing of ASCII.NUL
7133
7134 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
7135 properly.
7136
71372008-05-20 Robert Dewar <dewar@adacore.com>
7138 Gary Dismukes <dismukes@adacore.com>
7139
7140 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
7141 overflow if result converted to wider integer type.
7142 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
7143 discriminated types when discriminant checks are suppressed.
7144
71452008-05-20 Vincent Celier <celier@adacore.com>
7146
7147 * cstand.adb (Print_Standard): Issue the correct Size clause for type
7148 Wide_Wide_Character.
7149
71502008-05-20 Tristan Gingold <gingold@adacore.com>
7151
7152 * decl.c: Do not emit a variable for a object that has an address
7153 representation clause whose value is known at compile time.
7154 When a variable has an address clause whose value is known at compile
7155 time, refer to this variable by using directly the address instead of
7156 dereferencing a pointer.
7157
71582008-05-20 Robert Dewar <dewar@adacore.com>
7159
7160 PR ada/30740
7161 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
7162 subtypes, always False for non-modular types.
7163 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
7164 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
7165 for Shared_Storage package.
7166 (Is_RACW_Stub_Type): New entity flag.
7167
7168 * exp_ch4.adb
7169 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
7170 case where we have a modular type with a non-binary modules.
7171 Comments reformattings.
7172
7173 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
7174 all types.
7175
71762008-05-20 Javier Miranda <miranda@adacore.com>
7177
7178 * exp_aggr.adb
7179 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
7180 tests did not covered the case in which the type of the aggregate has
7181 no progenitors but some its parents has progenitors.
7182
71832008-05-20 Gary Dismukes <dismukes@adacore.com>
7184 Hristian Kirtchev <kirtchev@adacore.com>
7185
7186 * exp_ch3.adb
7187 (Expand_N_Object_Declaration): Correct the condition which triggers the
7188 generation of a call to Displace when initializing a class-wide object.
7189 (Build_Dcheck_Functions): Build discriminant-checking for null variants
7190 when Frontend_Layout_On_Target is true to ensure that they're available
7191 for calling when a record variant size function is built in Layout.
7192
71932008-05-20 Ed Schonberg <schonberg@adacore.com>
7194
7195 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7196 procedure for a derived type retrieve the discriminant values from the
7197 parent using the corresponding discriminant.
7198 (Expand_N_Assignment_Statement): Skip generation of implicit
7199 if-statement associated with controlled types if we are
7200 compiling with restriction No_Finalization.
7201
72022008-05-20 Vincent Celier <celier@adacore.com>
7203
7204 * prj.adb (Hash (Project_Id)): New function
7205 (Project_Empty): Add new component Interfaces_Defined
7206
7207 * prj.ads (Source_Data): New component Object_Linked
7208 (Language_Config): New components Object_Generated and Objects_Linked
7209 (Hash (Project_Id)): New function
7210 (Source_Data): New Boolean components In_Interfaces and
7211 Declared_In_Interfaces.
7212 (Project_Data): New Boolean component Interfaces_Defined
7213
9e81dbc7 7214 * prj-attr.adb:
93a7c573
AC
7215 New project level attribute Object_Generated and Objects_Linked
7216 Add new project level attribute Interfaces
7217
7218 * prj-dect.adb: Use functions Present and No throughout
7219 (Parse_Variable_Declaration): If a string type is specified as a simple
7220 name and is not found in the current project, look for it also in the
7221 ancestors of the project.
7222
9e81dbc7 7223 * prj-makr.adb:
93a7c573
AC
7224 Replace procedure Make with procedures Initialize, Process and Finalize
7225 to implement H414-023: process different directories with different
7226 patterns.
7227 Use functions Present and No throughout
7228
9e81dbc7 7229 * prj-makr.ads:
93a7c573
AC
7230 Replace procedure Make with procedures Initialize, Process and Finalize
7231
7232 * prj-nmsc.adb
7233 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
7234 the language configuration.
7235 (Process_Project_Level_Array_Attributes): Process new attributes
7236 Object_Generated and Object_Linked.
7237 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
7238 False, to indicate that the erreor/warning is a continuation.
7239 (Check): Call Report_No_Sources with Contnuation = True after the first
7240 call.
7241 (Error_Msg): Process successively contnuation character and warning
7242 character.
7243 (Find_Explicit_Sources): Check that all declared sources have been found
7244 (Check_File): Indicate in hash table Source_Names when a declared source
7245 is found.
7246 (Check_File): Set Other_Part when found
7247 (Find_Explicit_Sources): In multi language mode, check if all exceptions
7248 to the naming scheme have been found. For Ada, report an error if an
7249 exception has not been found. Otherwise, disregard the exception.
7250 (Check_Interfaces): New procedure
7251 (Add_Source): When Other_Part is defined, set mutual pointers in spec
7252 and body.
7253 (Check): In multi-language mode, call Check_Interfaces
7254 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
7255 for an excluded source.
7256 (Remove_Source): A source replacing a source in the interfaces is also
7257 in the interfaces.
7258
7259 * prj-pars.adb: Use function Present
7260
7261 * prj-part.adb: Use functions Present and No throughout
7262 (Parse_Single_Project): Set the parent project for child projects
7263 (Create_Virtual_Extending_Project): Register project with no qualifier
7264 (Parse_Single_Project): Allow an abstract project to be extend several
7265 times. Do not allow an abstract project to extend a non abstract
7266 project.
7267
7268 * prj-pp.adb: Use functions Present and No throughout
7269 (Print): Take into account the full associative array attribute
7270 declarations.
7271
7272 * prj-proc.adb: Use functions Present and No throughout
7273 (Expression): Call itself with the same From_Project_Node for the
7274 default value of an external reference.
7275
7276 * prj-strt.adb: Use functions Present and No throughout
7277 (Parse_Variable_Reference): If a variable is specified as a simple name
7278 and is not found in the current project, look for it also in the
7279 ancestors of the project.
7280
7281 * prj-tree.ads, prj-tree.adb (Present): New function
7282 (No): New function
7283 Use functions Present and No throughout
7284 (Parent_Project_Of): New function
7285 (Set_Parent_Project_Of): New procedure
7286
9e81dbc7 7287 * snames.ads, snames.adb:
93a7c573
AC
7288 Add new standard names Object_Generated and Objects_Linked
7289
72902008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7291
7292 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
7293 and the derived type are of the same kind.
7294 (Expand_Call): Generate type conversions for actuals of
7295 record or array types when the parent and the derived types differ in
7296 size and/or packed status.
7297
72982008-05-20 Javier Miranda <miranda@adacore.com>
7299 Ed Schonberg <schonberg@adacore.com>
7300
7301 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
7302 generating dispatch tables of locally defined tagged types statically.
7303 Remove implicit if-statement that is no longer required.
7304 (Expand_Dispatching_Call): If this is a call to an instance of the
7305 generic dispatching constructor, the type of the first argument may be
7306 a subtype of Tag, so always use the base type to recognize this case.
7307
73082008-05-20 Thomas Quinot <quinot@adacore.com>
7309
7310 * exp_dist.adb
7311 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
7312 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
7313 assigning NULL into the result, to avoid a spurious warning.
7314 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
7315 is not frozen.
7316 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
7317 type.
7318 (Build_From_Any_Function, Build_To_Any_Function,
7319 Build_TypeCode_Function): For a type that has user-specified stream
7320 attributes, use an opaque sequence of octets as the representation.
7321
73222008-05-20 Kevin Pouget <pouget@adacore.com>
7323
7324 * exp_smem.ads, exp_smem.adb: Construction of access and assign
7325 routines has been replaced by an instantiation of
7326 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
7327 shared variable declaration.
7328 Calls to access and assign routines have been replaced by calls to
7329 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
7330 instantiated package.
9e81dbc7 7331
93a7c573
AC
7332 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
7333 It identifies the new generic package added in s-shasto.
7334
7335 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
7336 is instantiated for each shared passive variable. It provides
7337 supporting procedures called upon each read or write access by the
7338 expanded code.
7339
7340 * sem_attr.adb:
7341 For this runtime unit (always compiled in GNAT mode), we allow
7342 stream attributes references for limited types for the case where
7343 shared passive objects are implemented using stream attributes,
7344 which is the default in GNAT's persistent storage implementation.
7345
73462008-05-20 Ed Schonberg <schonberg@adacore.com>
7347
7348 * freeze.adb
7349 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
7350 convention from its base type, do not set the type to that of integer,
7351 because it may inherit a size clause.
7352 Warn on a size clause with a size different
7353 from that of Integer, if the type has convention C.
7354
73552008-05-20 Vincent Celier <celier@adacore.com>
7356
7357 * gnatname.adb
7358 (Scan_Args): Rewrite to take into account new switch --and to separate
7359 arguments into sections.
7360 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
7361 section, then Finalize.
7362
73632008-05-20 Tristan Gingold <gingold@adacore.com>
7364
7365 * init.c: Enable stack probing on ppc-linux.
7366
7367 * tracebak.c: Add symbolic traceback for ppc-linux.
7368
7369 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
7370
73712008-05-20 Arnaud Charlet <charlet@adacore.com>
7372
7373 * Makefile.in
7374 (common-tools): New rule, to avoid parallel build failure on gnat tools.
7375 Reenable parallel builds on this Makefile.
7376
7377 * Make-lang.in: Update dependencies.
7378
73792008-05-20 Robert Dewar <dewar@adacore.com>
7380
7381 * opt.ads (Treat_Restrictions_As_Warnings): New switch
7382
7383 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
7384 Treat_Restrictions_As_Warnings.
7385
7386 * switch-c.adb: Recognize new switch -gnatr
7387
7388 * usage.adb: Add line for -gnatr
7389
73902008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7391
7392 * par-ch3.adb
7393 (P_Access_Definition): Change the error message when parsing "access
7394 all" in Ada 95 mode. The message no longer forces the user to recompile
7395 in 05 mode only to discover that anonymous access types are not allowed
7396 to have "all".
7397
73982008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7399
7400 * par-ch9.adb
7401 (P_Protected): Update the error message on missing "-gnat05" switch when
7402 using interfaces in conjunction with protected types. Remove the
7403 incorrect error message associated with the presence of "private" after
7404 a "with".
7405
74062008-05-20 Ed Schonberg <schonberg@adacore.com>
7407
7408 * sem_aggr.adb: Update comments.
7409 Improve previous change for PR ada/17985
7410
74112008-05-20 Thomas Quinot <quinot@adacore.com>
7412
7413 * sem_cat.adb
7414 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
7415 the visible part of the spec of a remote types unit.
7416 (Validate_Remote_Access_Object_Type_Declaration):
7417 New local subprogram Is_Valid_Remote_Object_Type, replaces
7418 Is_Recursively_Limited_Private.
7419 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
7420 non-controlling formals (and the return type, even though this is not
7421 explicit in the standard) must support external streaming.
7422 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
7423 as above for of RAS types and RCI subprograms. (The return type is not
7424 checked yet).
7425 Update comments related to RACWs designating limited interfaces per
7426 ARG ruling on AI05-060.
7427
7428 * sem_util.ads, sem_util.adb
7429 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
7430 Is_Remote_Call_Interface to identify RACW types in a stable and
7431 consistent way. We used to rely in this predicate on the privateness of
7432 the designated type and its ancestors, but depending on the currently
7433 visible private parts, this caused false negatives. We now uniformly
7434 rely on checks made at the point where the RACW type is declared.
7435 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
7436
74372008-05-20 Javier Miranda <miranda@adacore.com>
7438 Ed Schonberg <schonberg@adacore.com>
7439 Hristian Kirtchev <kirtchev@adacore.com>
7440
7441 * sem_ch3.adb
7442 (Analyze_Object_Declaration): Fix over-conservative condition
7443 restricting use of predefined assignment with tagged types that have
7444 convention CPP.
7445 (Analyze_Object_Declaration): Relax the check regarding deferred
7446 constants declared in scopes other than packages since they can be
7447 completed with pragma Import.
7448 Add missing escaping of all-caps word 'CPP' in error messages.
7449 (Build_Discriminated_Subtype): Do not inherit representation clauses
7450 from parent type if subtype already carries them, because they are
7451 inherited earlier during derivation and already include those that may
7452 come from a partial view.
7453
7454 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
7455 Check the declarations of a subprogram body for proper deferred
7456 constant completion.
7457
7458 * sem_ch7.ads, sem_ch7.adb
7459 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
7460
74612008-05-20 Ed Schonberg <schonberg@adacore.com>
7462 Thomas Quinot <quinot@adacore.com>
7463
7464 * sem_ch4.adb
7465 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
7466 F is a parameterless function that returns an array, and S is a subtype
7467 mark.
7468 (Analyze_Call): Insert dereference when the prefix is a parameterless
7469 function that returns an access to subprogram and the call has
7470 parameters.
7471 Reject a non-overloaded call whose name resolves to denote
7472 a primitive operation of the stub type generated to support a remote
7473 access-to-class-wide type.
7474
74752008-05-20 Ed Schonberg <schonberg@adacore.com>
7476
7477 * sem_ch8.adb
7478 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
7479 when there is a use clause for the same entity in the context.
7480 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
7481 created for a stream attribute of an abstract type or interface type.
7482
74832008-05-20 Thomas Quinot <quinot@adacore.com>
7484
7485 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
7486 subprogram.
7487
7488 * sem_type.adb
7489 (Add_One_Interp): Ignore any interpretation that is a primitive
7490 operation of an RACW stub type (these primitives are only executed
7491 through dispatching, never through static calls).
7492 (Collect_Interps): When only one interpretation has been found, set N's
7493 Entity and Etype to that interpretation, otherwise Entity and Etype may
7494 still refer to an interpretation that was ignored by Add_One_Interp,
7495 in which case would end up with being marked as not overloaded but with
7496 an Entity attribute not pointing to its (unique) correct interpretation.
7497
74982008-05-20 Ed Schonberg <schonberg@adacore.com>
7499
7500 * sem_eval.adb
7501 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
7502 denotes the whole array of its prefix.
7503
75042008-05-20 Robert Dewar <dewar@adacore.com>
7505
7506 * sem_res.adb (Resolve_Op_Not): Warn on double negation
7507
75082008-05-20 Ed Schonberg <schonberg@adacore.com>
7509
7510 * sprint.adb
7511 (Print_Itype): Do not modify the sloc of the component type of a
7512 (packed) array itype, because it is an unrelated type whose source
7513 location is independent of the point of creation of the itype itself.
7514
75152008-05-20 Thomas Quinot <quinot@adacore.com>
7516
7517 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
7518 Append.
7519
75202008-05-20 Robert Dewar <dewar@adacore.com>
7521 Vincent Celier <celier@adacore.com>
7522
7523 * vms_data.ads: Add entry for -gnatr
7524 Put GNAT SYNC section in proper alpha order
7525 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
7526
7527 * gnat_ugn.texi: Add documentation for new gnatname switch --and
7528 Update the style checks section
7529 Add documentation of -gnatr
7530 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
7531 subsection the explanation how compiler checks should be disabled for
7532 gnatcheck.
7533 Update the list of Ada 95 reserved words used by in the project language
7534 Add documentation for project qualifiers.
7535 Document that abstract projects may be extended by different projects in
7536 the same project tree.
7537 Add documentation for gnatmake switch -d
7538
7539 * ug_words: Add -gnatyy VMS equivalence string.
7540 Add entry for -gnatr
7541
75422008-05-20 Bob Duff <duff@adacore.com>
7543
7544 * a-rttiev.adb
7545 (Set_Handler): Remove code from both of these that implements
7546 RM-D.15(15/2), because it causes a race condition and potential
7547 deadlock.
7548 (Process_Queued_Events): Add comment explaining "exception when others
7549 => null". Add clarifying ".all", even though implicit .all is legal
7550 here.
7551
75522008-05-20 Arnaud Charlet <charlet@adacore.com>
7553
7554 * s-winext.ads: Replace representation clause by pragma Pack. Gives
7555 equivalent representation, but has the advantage of allowing
7556 compilation of this file under 64 bits platforms.
7557
7558 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
7559
7560 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
7561
9e81dbc7 7562 * adaint.c:
93a7c573
AC
7563 Don't define dummy implementation of convert_addresses on ppc-linux.
7564
75652008-05-20 Ed Schonberg <schonberg@adacore.com>
7566
7567 * exp_ch7.adb
7568 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
7569 if expression is aggregate component.
7570
75712008-05-20 Robert Dewar <dewar@adacore.com>
7572
7573 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
7574 sem_ch12.adb: Update comments. Minor reformatting.
7575
7576 * exp_ch2.adb: Typo
7577
7578 * s-unstyp.ads: Fixed some typos in comments.
7579
1b686dc4
AC
75802008-05-20 Arnaud Charlet <charlet@adacore.com>
7581
7582 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
7583 type/constant.
7584
7585 * g-socthi-vxworks.ads: Update to latest socket changes.
7586
7587 * a-caldel-vms.adb: Resync with a-caldel spec.
7588
6357e162
AC
7589 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
7590 Update comments.
7591
74c11a6c
EB
75922008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7593
7594 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
7595 for dummy types pointed to by the converted pointer types.
7596
f730e42f
EB
75972008-05-15 Eric Botcazou <ebotcazou@adacore.com>
7598
7599 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
7600 of records and unions.
7601 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
7602
eaa2f8c7 76032008-05-14 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 7604 Robert Dewar <dewar@adacore.com>
eaa2f8c7
ST
7605
7606 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
7607 restrictions to the prefix of 'Old.
7608 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
7609 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
7610 variables.
7611
f80cddcb
EB
76122008-05-13 Eric Botcazou <ebotcazou@adacore.com>
7613
7614 PR ada/24880
7615 PR ada/26635
7616 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
7617 expression to an integral type with lower precision, use NOP_EXPR
7618 directly in a couple of special cases.
7619
ea0a7f39 76202008-05-12 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 7621 Ed Schonberg <schonberg@adacore.com>
ea0a7f39
ST
7622
7623 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
7624 constraint expressions.
7625
751d1520
TB
76262008-05-12 Tomas Bily <tbily@suse.cz>
7627
ea0a7f39
ST
7628 * utils2.c (known_alignment, contains_save_expr_p)
7629 (gnat_mark_addressable): Use CASE_CONVERT.
7630 * decl.c (annotate_value): Likewise.
7631 * trans.c (maybe_stabilize_reference): Likewise.
7632 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
7633 * utils.c (rest_of_record_type_compilation): Likewise.
7634 * trans.c (protect_multiple_eval, Attribute_to_gnu)
7635 (protect_multiple_eval): Likewise.
751d1520 7636
a1b66071
AS
76372008-05-08 Andreas Schwab <schwab@suse.de>
7638
7639 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
7640 DECL_IS_PURE to DECL_PURE_P.
7641
bba74577
EB
76422008-05-05 Eric Botcazou <ebotcazou@adacore.com>
7643
7644 * decl.c (maybe_pad_type): Add ??? comment.
7645
8f85525e
EB
76462008-05-03 Eric Botcazou <ebotcazou@adacore.com>
7647
7648 * decl.c (components_to_record): Zero the alignment of the qualified
7649 union built for the variant part upon creating it.
7650
88f36b7e
EB
76512008-05-03 Eric Botcazou <ebotcazou@adacore.com>
7652
7653 * decl.c (maybe_pad_type): Try to get a form of the type with integral
7654 mode even if the alignment is not a factor of the original size. But
7655 make sure to create the inner field with the original size. Reorder.
7656 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
7657 record as always addressable.
7658 * utils.c (convert): Deal specially with conversions between original
7659 and packable versions of a record type.
7660 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
7661 recognizing an assignment between padded objects.
7662
8665c7ca
EB
76632008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7664
7665 * decl.c (make_packable_type): Resize the last component to its RM size
7666 only if it is of an aggregate type.
7667 * trans.c (call_to_gnu): Fix nit in comment.
7668 (gnat_to_gnu): Likewise.
7669
ea342909
ST
76702008-04-30 Samuel Tardieu <sam@rfc1149.net>
7671
7672 * Makefile.in: Adapt sh4-linux target.
7673
af4133b2
ST
76742008-04-29 Ed Schonberg <schonberg@adacore.com>
7675
7676 PR ada/35792
7677 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
7678 tagged type by an untagged protected or task type.
7679
805100b5 76802008-04-28 Eric Botcazou <ebotcazou@adacore.com>
9e81dbc7 7681 Tristan Gingold <gingold@adacore.com>
805100b5
EB
7682
7683 PR ada/36007
7684 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
7685 of aliased objects with an unconstrained nominal subtype.
7686 Cap the promotion to the effective alignment of the word mode.
7687
99c2eec1
RW
76882008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7689
7690 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
7691 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
7692 Use '&&' instead of ';'.
7693
22a81267
OH
76942008-04-24 Olivier Hainque <hainque@adacore.com>
7695
7696 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
7697 doesn't require signed arithmetic anymore.
7698
51eed280
PB
76992008-04-23 Paolo Bonzini <bonzini@gnu.org>
7700
7701 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
7702 (call_to_gnu): Don't set TREE_INVARIANT.
7703 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
7704
d9126ef8
JS
77052008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
7706
7707 * s-osinte-rtems.adb: Add sigalstack function.
7708 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
7709 function. Add Alternate_Stack and Alternate_Stack_Size.
7710 Add missing process_shared field to pthread_condattr_t
7711 and change ss_low_priority to int from timespec.
7712
0a58c87e
ST
77132008-04-22 Samuel Tardieu <sam@rfc1149.net>
7714
7715 * i-forbla.adb: Link against -llapack and -lblas by default
7716 instead of the private -lgnalasup.
7717
009890be
OH
77182008-04-21 Olivier Hainque <hainque@adacore.com>
7719
7720 Access to most C builtins from Ada
7721 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
7722 (handle_pure_attribute, handle_novops_attribute,
7723 handle_nonnull_attribute, handle_sentinel_attribute,
7724 handle_noreturn_attribute, handle_malloc_attribute,
7725 handle_type_generic_attribute): New attribute handlers, from C fe.
7726 (gnat_internal_attribute_table): Map the new handlers.
7727 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
7728 (init_gigi_decls): ... here.
7729 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
7730 Move to a section dedicated to builtins processing.
7731 (build_void_list_node, builtin_type_for_size): New functions.
7732 (def_fn_type, get_nonnull_operand): Likewise.
7733 (install_builtin_elementary_type, install_builtin_function_types,
7734 install_builtin_attributes): Likewise.
7735 (fake_attribute_handler): Fake handler for attributes we don't
7736 support in Ada.
7737 (def_builtin_1): New function, worker for DEF_BUILTIN.
7738 (install_builtin_functions): New function.
7739 (gnat_install_builtins): Move to the builtins processing section.
7740 Now calling the newly introduced installers.
7741
e871a873
EB
77422008-04-20 Eric Botcazou <ebotcazou@adacore.com>
7743
7744 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
7745 constant objects, but not exceptions.
7746 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
7747 compatibility test.
7748 * utils.c (create_var_decl_1): Likewise.
7749 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
7750 the type when copying to padded object and the source is a constructor.
7751
98ae7998
EB
77522008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7753
7754 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
7755 alignment, reset it to zero if it would end up not being greater
7756 than that of the type.
7757
3569056b
EB
77582008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7759
7760 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
7761 the padded type has a variable size.
7762
9a089d8b
EB
77632008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7764
7765 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
7766 target pointer mechanism as soon as the size is not constant.
7767
0cb5c2a7
EB
77682008-04-18 Eric Botcazou <ebotcazou@adacore.com>
7769
7770 * gigi.h (create_var_decl_1): Declare.
7771 (create_var_decl): Turn into a macro invoking create_var_decl_1.
7772 (create_true_var_decl): Likewise.
7773 * utils.c (create_var_decl_1): Make global and reorder parameters.
7774 (create_var_decl): Delete.
7775 (create_true_var_decl): Likewise.
7776
90d6701e
EB
77772008-04-17 Eric Botcazou <ebotcazou@adacore.com>
7778
7779 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
7780 objects by default.
7781 * fe.h (Debug_Flag_Dot_A): Delete.
7782 * debug.adb (-gnatd.a): Update documentation.
7783
35485e12
ST
77842008-04-17 Samuel Tardieu <sam@rfc1149.net>
7785
7786 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
7787 "not null" parameter.
7788
111c1cd9
ST
77892008-04-17 Samuel Tardieu <sam@rfc1149.net>
7790
7791 * g-socket.adb: Add a message "IPv6 not supported" to the
7792 Socket_Error exception.
7793
35c91e05
ST
77942008-04-16 Samuel Tardieu <sam@rfc1149.net>
7795
7796 PR ada/29015
7797 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
7798 the type is known instead of the underlying type.
7799
b48a6531
ST
78002008-04-15 Ed Schonberg <schonberg@adacore.com>
7801
7802 PR ada/22387
7803 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7804 procedure for a derived type retrieve the discriminant values from
7805 the parent using the corresponding discriminant.
7806
462c31ef 78072008-04-15 Samuel Tardieu <sam@rfc1149.net>
9e81dbc7 7808 Gary Dismukes <dismukes@adacore.com>
462c31ef
ST
7809
7810 PR ada/28733
7811 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
7812 which is not an entity (and hence not a package).
7813 (End_Use_Package): Ditto.
7814
8abe457a
ST
78152008-04-15 Ed Schonberg <schonberg@adacore.com>
7816
7817 PR ada/16086
7818 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
7819 protected operation that matches the signature, not only an entry, a
7820 regular subprogram or a literal.
7821
29f4754f
EB
78222008-04-15 Eric Botcazou <ebotcazou@adacore.com>
7823
7824 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
7825 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
7826 if a size or alignment is specified. Do not take into account
7827 alignment promotions for the computation of the object's size.
7828 <type>: Call maybe_pad_type only if a size or alignment is specified.
7829 (maybe_pad_type): Really reuse the RM_Size of the original type if
7830 requested.
7831 * trans.c (Attribute_to_gnu): Fix a couple of nits.
7832 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
7833 statements. Use the padded view of the type when copying between
7834 padded objects of the same underlying type.
7835
f3d0f304
RW
78362008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7837
7838 * vms_data.ads: Fix typo in constant.
7839 * gen-soccon.c: Fix typo in error string.
7840 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
7841 Fix typos.
7842 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
7843 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
7844 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
7845 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
7846 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
7847 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
7848 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
7849 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
7850 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
7851 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
7852 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
7853 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
7854 sinfo.ads: Fix typos in comments.
7855
2efcad9f
RD
78562008-04-14 Robert Dewar <dewar@adacore.com>
7857
7858 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
7859 to every non-object and change error message.
7860
8f3723e0
RD
78612008-04-14 Robert Dewar <dewar@adacore.com>
7862
7863 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
7864 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
7865 directly.
7866
32f7efe1
ST
78672008-04-14 Samuel Tardieu <sam@rfc1149.net>
7868
7869 PR ada/18680
7870 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
7871 apply pragma Linker_Section on type.
7872
b039b10e
ST
78732008-04-14 Samuel Tardieu <sam@rfc1149.net>
7874
7875 PR ada/16098
7876 * sem_prag.adb (Error_Pragma_Ref): New.
7877 (Process_Convention): Specialized message for non-local
7878 subprogram renaming. Detect the problem in homonyms as well.
7879
cb572b75
ST
78802008-04-14 Samuel Tardieu <sam@rfc1149.net>
7881
7882 PR ada/15915
7883 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
7884 * sem_ch12.adb (Instantiate_Object): Use it.
7885 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
7886 storage pool denotes a variable as per RM 13.11(15).
7887
17972da7
ST
78882008-04-14 Samuel Tardieu <sam@rfc1149.net>
7889
7890 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
7891 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
7892
57f80aa9
RE
78932008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
7894
7895 PR ada/20822
7896 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
7897 line endings even on non-Unix platforms.
7898
9ff231e2
ST
78992008-04-14 Samuel Tardieu <sam@rfc1149.net>
7900
7901 PR ada/35050
7902 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
7903 renaming information.
7904
9e81dbc7 79052008-04-13 Samuel Tardieu <sam@rfc1149.net>
92d4508a
ST
7906
7907 PR ada/17985
7908 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
7909 itself.
7910
12a13f01
RW
79112008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7912
3354f96d
RW
7913 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
7914 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
7915 snames.ads, sprint.adb, stand.ads, stringt.ads,
7916 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
7917 switch.ads, sysdep.c, table.adb, table.ads,
7918 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
7919 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
7920 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
7921 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
7922 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
7923 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
7924 Fix comment typos.
7925
f3d57416
RW
7926 * sem_ch10.adb, sem_ch10.ads,
7927 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
7928 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
7929 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7930 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
7931 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
7932 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
7933 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
7934 sem_warn.ads: Fix comment typos.
7935
12a13f01
RW
7936 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
7937 s-soflin.ads, s-stalib.ads, s-stausa.adb,
7938 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
7939 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7940 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
7941 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7942 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
7943 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
7944 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
7945 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
7946 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
7947 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
7948 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
7949 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
7950 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
7951 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
7952 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7953 sem_cat.adb, sem_cat.ads: Fix comment typos.
7954
2b699ab1
JS
79552008-04-12 Joel Sherrill <joel@oarcorp.com>
7956
7957 PR ada/35825
7958 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
7959
1e273538
AC
79602008-04-12 Arnaud Charlet <charlet@adacore.com>
7961
7962 * s-linux-hppa.ads: Fix syntax errors.
7963
276e95ca
RW
79642008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7965
7966 * gnat_ugn.texi: Fix typos.
7967 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
7968 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
7969 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
7970 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
7971 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
7972 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
7973 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
7974 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
7975 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
7976 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
7977 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
7978 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
7979 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
7980 s-osinte-darwin.ads, s-osinte-freebsd.ads,
7981 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
7982 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7983 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
7984 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
7985 s-parame-hpux.ads, s-parame-vms-alpha.ads,
7986 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
7987 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
7988 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
7989 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
7990 s-rident.ads: Fix comment typos.
7991
ce4e59c4
ST
79922008-04-09 Samuel Tardieu <sam@rfc1149.net>
7993
7994 PR ada/28305
7995 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
7996 environment if generic instance is a top-level one.
7997
6d21c8af
DR
79982008-04-09 Doug Rupp <rupp@adacore.com>
7999
8000 * decl.c (validate_size): Set minimum size for fat pointers same as
8001 access types. Code clean ups.
8002
8003 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
8004 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
8005
8006 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
8007
8008 * s-crtl.ads (malloc32) New function, alias for malloc
8009 (realloc32) New function, alias for realloc
8010
8011 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
8012
8013 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
8014 allocator size is 32 and default pointer size is 64.
8015 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
8016 lhs type if smaller, whatever the modes.
8017
8018 * gigi.h (malloc32_decl): New macro definition
8019
8020 * utils.c (init_gigi_decls): New malloc32_decl
8021 Various code clean ups.
8022
8023 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
8024 Task_Address vice System.Address.
8025
8026 * s-taspri-vms.ads: Import System.Aux_DEC
8027 (Task_Address): New subtype of System.Aux_DEC.Short_Address
8028 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
8029
8030 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
8031 Task_Address vice System.Address.
8032
8033 * s-inmaop-vms.adb: Import System.Task_Primitives
8034 (To_Address): Unchecked convert to Task_Address vice System.Address
8035
8036 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
8037 expires now.
8038 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
8039 (To_Address) Unchecked convert to Task_Address vice System.Address
8040
8041 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
8042
8043 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
8044
581edf92
EB
80452008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8046
8047 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
8048 (fdesc_type_node): Define.
8049 (null_fdesc_node): Likewise.
8050 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
8051 uses descriptors for vtables and the type comes from a dispatch table,
8052 return the descriptor type.
8053 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
8054 uses descriptors for vtables and the type comes from a dispatch table,
8055 build a descriptor in the static case and copy the existing one in the
8056 non-static case.
8057 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
8058 the type is a pointer-to-subprogram coming from a dispatch table,
8059 return the null descriptor.
8060 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
8061 vtables, the source type is the descriptor type and the target type
8062 is a pointer type, first build the pointer.
8063 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
8064 build the descriptor type and the null descriptor.
8065
e1da2b17
EB
80662008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8067
8068 * decl.c (prepend_attributes): Fix typo.
8069 * trans.c (Pragma_to_gnu): Likewise.
8070 * utils.c (gnat_genericize): Likewise.
8071
2b3dffa6 80722008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9e81dbc7 8073 Richard Kenner <kenner@adacore.com>
2b3dffa6
EB
8074
8075 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
8076 * decl.c (gnat_to_gnu_entity): Adjust for above change.
8077 <E_Record_Type>: Try to get a better form of the component for
8078 packing, even if it has an integral mode.
8079 <E_Record_Subtype>: Likewise.
8080 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
8081 exception suppressing the final conversion between record types.
8082
ba3f46d0
EB
80832008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8084
8085 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
8086 alignment for space, promote the alignment of non-scalar variables with
8087 no size and alignment.
8088 * gigi.h (gnat_types_compatible_p): Declare.
8089 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
8090 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
8091 * utils.c (gnat_types_compatible_p) : New predicate.
8092 (convert): Use it throughout to test for cases where a mere view
8093 conversion is sufficient.
8094 * utils2.c (build_binary_op): Minor tweaks.
8095 (build_unary_op): Likewise.
8096
373140ef
EB
80972008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8098
8099 * decl.c (adjust_packed): Expand comment.
8100
ea081ad7
AC
81012008-04-08 Arnaud Charlet <charlet@adacore.com>
8102
8103 * s-tasuti.ads: Use Task_Address instead of System.Address.
8104
8105 * makeutl.adb (Path_Or_File_Name): New function
8106
8107 * nlists.ads, itypes.ads: Update comments.
8108
8109 * s-crtl.ads (malloc32, realloc32): New functions.
8110
8111 * s-auxdec.ads (Short_Address_Size): New constant.
8112
8113 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
8114
8115 * s-ststop.ads, s-ststop.adb: New file.
8116
8117 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
8118 Minor reformatting.
8119
d563d3f0
AC
81202008-04-08 Pascal Obry <obry@adacore.com>
8121
8122 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
8123 (Stop_Bits_Number): New type.
8124 (Parity_Check): Likewise.
8125 (Set): Add parameter to set the number of stop bits and
8126 the parity. Parameter timeout is now a duration instead
8127 of a plain integer.
8128
8129 * g-sercom-linux.adb:
8130 Implement the stop bits and parity support for GNU/Linux.
8131 Fix handling of timeout, it must be given in tenth of seconds.
9e81dbc7 8132
d563d3f0
AC
8133 * g-sercom-mingw.adb:
8134 Implement the stop bits and parity support for Windows.
8135 Use new s-win32.ads unit instead of declaring Win32 services
8136 directly into this body.
8137 Update handling of timeout as now a duration.
8138
8139 * s-win32.ads, s-winext.ads: New files.
8140
81412008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8142 Arnaud Charlet <charlet@adacore.com>
8143
8144 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
8145
8146 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
8147 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
8148
8149 * s-osinte-lynxos-3.ads,
8150 (Alternate_Stack): Remove when not needed. Simplify declaration
8151 otherwise.
8152 (Alternate_Stack_Size): New constant.
8153
8154 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
8155 'Unrestricted_Access.
8156
8157 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
8158 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
8159 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
8160 s-osinte-solaris.ads, s-osinte-vms.ads
8161 (SA_ONSTACK): New constant.
8162 (stack_t): New record type.
8163 (sigaltstack): New imported function.
8164 (Alternate_Stack): New imported variable.
8165 (Alternate_Stack_Size): New constant.
8166
8167 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
8168
8169 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
ea081ad7
AC
8170 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
8171 s-taspri-vms.ads (Task_Address): New subtype of System.Address
d563d3f0
AC
8172 (Task_Address_Size): New constant size of System.Address
8173 (Alternate_Stack_Size): New constant.
8174
8175 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
8176 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
8177 Establish the alternate stack if the platform makes use of n alternate
8178 signal stack for stack overflows.
8179 (Create_Task): Take into account the alternate stack in the stack size.
8180 (Initialize): Save the address of the alternate stack into the ATCB for
8181 the environment task.
8182 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
8183
ea081ad7 8184 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
d563d3f0
AC
8185
8186 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
8187
9e81dbc7 8188 * s-intman-posix.adb:
d563d3f0
AC
8189 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
8190 alternate signal stack for stack overflows.
8191
8192 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
8193 x86-64, adjust the saved value of the stack pointer if the signal was
8194 raised by a stack checking probe.
8195 (HP-UX section): Use global __gnat_alternate_stack as signal handler
8196 stack and only for SIGSEGV.
8197 (Linux section): Likewise on x86 and x86-64.
8198 [VxWorks section]
8199 (__gnat_map_signal): Now static.
8200 (__gnat_error_handler): Not static any more.
8201 (__gnat_adjust_context_for_raise): New function. Signal context
8202 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
8203 propagation circuitry.
8204 (__gnat_error_handler): Second argument of a sigaction handler is a
8205 pointer, not an int, and is unused.
8206 Adjust signal context before mapping to exception.
8207 Install signal handlers for LynxOS case.
8208
8209 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
8210 (Task_Id): Set size to Task_Address_Size
8211 (To_Task_id): Unchecked convert from Task_Address vice System.Address
8212 (To_Address): Unchecked convert to Task_Address vice System.Address
8213
8214 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
8215 address into the ATCB if the platform makes use of an alternate signal
8216 stack for stack overflows.
8217 (Free_Task): Add call to Finalize_Attributes_Link.
8218 Add argument Relative_Deadline to pass the value specified for
8219 the task. This is not yet used for any target.
8220
8221 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
8222 the value specified for the task.
8223
82242008-04-08 Arnaud Charlet <charlet@adacore.com>
8225
8226 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
8227 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
8228 s-vxwext-rtp.adb): New files.
8229
9e81dbc7 8230 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
d563d3f0
AC
8231 Minor updates to accomodate changes above.
8232
82332008-04-08 Pascal Obry <obry@adacore.com>
8234
8235 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
8236 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
8237 Use new s-win32.ads unit instead of declaration
8238 from s-osinte-mingw.ads.
9e81dbc7 8239
d563d3f0
AC
8240 * s-osinte-mingw.ads:
8241 Move all non tasking based interface to s-win32.ads.
9e81dbc7 8242
d563d3f0
AC
8243 * s-osprim-mingw.adb:
8244 Remove duplicated declarations and use s-win32.ads
8245 unit instead.
8246
82472008-04-08 Vincent Celier <celier@adacore.com>
8248 Arnaud Charlet <charlet@adacore.com>
8249
8250 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
8251 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
8252 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
8253 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8254 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
8255
8256 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
8257 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
8258 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
8259 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
8260 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
8261 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
8262 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
8263 mlib-tgt-specific-mingw.adb: New names.
8264
9e81dbc7 8265 * Makefile.in:
d563d3f0
AC
8266 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
8267 Get rid of gnatbl.
8268 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
8269 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
8270 Minor updates for VMS
8271
ea081ad7
AC
8272 * gnatbl.c: Removed.
8273
d563d3f0
AC
82742008-04-08 Thomas Quinot <quinot@adacore.com>
8275
8276 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
8277 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
8278 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
8279 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
8280 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
8281 ASCII.NUL throughout.
8282
82832008-04-08 Arnaud Charlet <charlet@adacore.com>
8284 Matthew Heaney <heaney@adacore.com>
8285
8286 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
8287 renaming.
8288
9e81dbc7 8289 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
d563d3f0
AC
8290 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
8291 to convention for non-RM specs.
8292 Add descriptive header, and documented each operation
8293 document each operation
8294
82952008-04-08 Robert Dewar <dewar@adacore.com>
8296 Bob Duff <duff@adacore.com>
8297 Gary Dismukes <dismukes@adacore.com>
8298 Ed Schonberg <schonberg@adacore.com>
8299
8300 * alloc.ads: Add entries for Obsolescent_Warnings table
8301
8302 * einfo.ads, einfo.adb: Minor reformatting.
8303 (Is_Discriminal): New subprogram.
8304 (Is_Prival): New subprogram.
8305 (Is_Protected_Component): New subprogram.
8306 (Is_Protected_Private): Removed.
8307 (Object_Ref, Set_Object_Ref): Removed.
8308 (Prival, Set_Prival): Change assertion.
8309 (Privals_Chain, Set_Privals_Chain): Removed.
8310 (Prival_Link, Set_Prival_Link): New subprogram.
8311 (Protected_Operation, Set_Protected_Operation): Removed.
8312 (Protection_Object, Set_Protection_Object): New subprogram.
8313 (Write_Field17_Name): Remove case for Object_Ref.
8314 (Write_Field20_Name): Add case for Prival_Link.
8315 (Write_Field22_Name): Remove case for Protected_Operation,
8316 Privals_Chain.
8317 Add case for Protection_Object.
8318 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
8319 so clients
8320 (Overlays_Constant): New flag
8321 (Is_Constant_Object): New predicate
8322 (Is_Standard_Character_Type): New predicate
8323 (Optimize_Alignment_Space): New flag
8324 (Optimize_Alignment_Time): New flag
8325 (Has_Postconditions): New flag
8326 (Obsolescent_Warrning): Field removed
8327 (Spec_PPC_List): New field
8328 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
8329 subprograms to get and set the relative deadline associated to a task.
8330
8331 * exp_attr.adb (May_Be_External_Call): Account for the case where the
8332 Access attribute is part of a named parameter association.
8333 (Expand_Access_To_Protected_Op): Test for the attribute occurring
8334 within an init proc and use that directly as the scope rather than
8335 traversing up to the protected operation's enclosing scope. Only apply
8336 assertion on Is_Open_Scopes in the case the scope traversal is done.
8337 For the init proc case use the address of the first formal (_init) as
8338 the protected object reference.
8339 Implement Invalid_Value attribute
8340 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
8341 contents of the dispatch table there is no need to duplicate the
8342 itypes associated with record types (i.e. the implicit full view
8343 of private types).
8344 Implement Enum_Val attribute
8345 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
8346 within _Postconditions procedure
8347 (Expand_N_Attribute_Reference, case Result): Implement new attribute
8348
8349 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
8350 a return statement calls a function that is not available in
8351 configurable runtime.
8352 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
8353 (Expand_Non_Function_Return): Generate call to _Postconditions proc
8354 (Expand_Simple_Function_Return): Ditto
8355
8356 * frontend.adb: Add call to Sem_Aux.Initialize
8357
8358 * sem_aux.ads, sem_aux.adb: New file.
8359
8360 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
8361 Add new Pragma_Relative_Deadline.
8362 Add support for pragmas Check and Check_Policy
8363
8364 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
8365 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
8366 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
8367 missing check because they are not allowed in CPP tagged types.
8368 Add Sure parameter to Note_Possible_Modification calls
8369 Add implementation of Invalid_Value attribute
8370 Implement new attribute Has_Tagged_Values
8371 Implement Enum_Val attribute
8372 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
8373 generated attributes.
8374 (Analyze_Attribute, case Result): If prefix of the attribute is
8375 overloaded, it always resolves to the enclosing function.
8376 (Analyze_Attribute, case Result): Properly deal with analysis when
8377 Postconditions are not active.
8378 (Resolve_Attribute, case Result): Properly deal with appearence during
8379 preanalysis in spec.
8380 Add processing for attribute Result
8381
8382 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
8383 for operators.
8384 (Analyze_Subprogram_Body): Install private_with_clauses when the body
8385 acts as a spec.
8386 (Check_Inline_Pragma): recognize an inline pragma that appears within
8387 the subprogram body to which it applies.
8388 (Analyze_Function_Return): Check that type of the expression of a return
8389 statement in a function with a class-wide result is not declared at a
8390 deeper level than the function.
8391 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
8392 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
8393 user- defined operators.
8394 (Install_Formals): Moved to spec to allow use from Sem_Prag for
8395 analysis of precondition/postcondition pragmas.
8396 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
8397 Last_Formal, along with lots of comments on what this is about
8398 (Analyze_Subprogram_Body): Fix case where we move entities from the
8399 spec to the body when there are no body entities (now possible with
8400 precondition and postcondition pragmas).
8401 (Process_PPCs): New procedure
8402 (Analyze_Subprogram_Body): Add call to Process_PPCs
8403
8404 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
8405 clause.
8406 (Pop_Scope): Restore Check_Policy_List on scope exit
8407 (Push_Scope): Save Check_Policy_List on scope entry
8408 Change name In_Default_Expression => In_Spec_Expression
8409 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8410 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8411 (Analyze_Object_Renaming): Allow 'Reference as object
8412 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
8413 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
8414 of restriction identifier.
8415 Add Sure parameter to Note_Possible_Modication calls
8416
8417 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
8418 Don't check for primitive operations when calling Rep_Item_Too_Late.
8419 (Process_Import_Or_Interface): Do not place flag on formal
8420 subprograms.
8421 (Analyze_Pragma, case Export): If the entity is a deferred constant,
8422 propagate information to full view, which is the one elaborated by the
8423 back-end.
8424 (Make_Inline): the pragma is effective if it applies to an internally
8425 generated subprogram declaration for a body that carries the pragma.
8426 (Analyze_Pragma, case Optimize_Alignment): Set new flag
8427 Optimize_Alignment_Local.
8428 (Analyze_PPC_In_Decl_Part): New procedure
8429 (Get_Pragma_Arg): Moved to outer level
8430 (Check_Precondition_Postcondition): Change to allow new visibility
8431 rules for package spec
8432 (Analyze_Pragma, case Check_Policy): Change placement rules to be
8433 same as pragma Suppress/Unsuppress.
8434 Change name In_Default_Expression => In_Spec_Expression
8435 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8436 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8437 (Check_Precondition_Postcondition): Do proper visibility preanalysis
8438 for the case of these pragmas appearing in the spec.
8439 (Check_Enabled): New function
8440 (Initialize): New procedure
8441 (Tree_Read): New procedure
8442 (Tree_Write): New procedure
8443 (Check_Precondition_Postcondition): New procedure
8444 Implement pragmas Check and Check_Policy
8445 Merge Assert processing with Check
8446
8447 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
8448 New warning flag -gnatw.e
8449
8450 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
8451 returning whether a task (or main procedure) has a pragma
8452 Relative_Deadline.
8453 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
8454 (or main procedure) has a pragma Relative_Deadline.
8455 Add Next_Pragma field to N_Pragma node
8456 (PPC_Enabled): New flag
8457 (Next_Pragma): Now used for Pre/Postcondition processing
8458
8459 * snames.h, snames.ads, snames.adb: New standard name
8460 Inherit_Source_Path
8461 Add entry for 'Invalid_Value attribute
8462 Add entry for new attribute Has_Tagged_Values
8463 Add entry for Enum_Val attribute
8464 Add new standard names Aggregate, Configuration and Library.
8465 Add _Postconditions
8466 Add _Result
8467 Add Pragma_Precondition
8468 Add Pragma_Postcondition
8469 Add Attribute_Result
8470 New standard name Archive_Builder_Append_Option
8471 (Preset_Names): Add _relative_deadline and relative_deadline definitions
8472 There was also a missing non_preemptive_within_priorities.
8473 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
8474 Relative_Deadline.
8475 Add support for pragmas Check and Check_Policy
8476
8477 * tree_gen.adb: Call Sem_Aux.Tree_Write
8478
8479 * tree_in.adb: Call Sem_Aux.Tree_Read
8480
8481 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
8482 sequence
8483
8484 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
8485 sequence
8486
8487 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
8488 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
8489 Relative_Deadline.
8490 (Expand_Pragma_Check): New procedure
8491
8492 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
8493 buffer.
8494
8495 * sinfo.adb (PPC_Enabled): New flag
8496
84972008-04-08 Robert Dewar <dewar@adacore.com>
8498 Gary Dismukes <dismukes@adacore.com>
8499 Javier Miranda <miranda@adacore.com>
8500 Ed Schonberg <schonberg@adacore.com>
8501
8502 * fe.h: Remove global Optimize_Alignment flag, no longer used
8503
8504 * layout.adb: Test Optimize_Alignment flags rather than global switch
8505
8506 * lib.ads, lib.adb: New OA_Setting field in library record
8507
8508 * lib-load.adb: New OA_Setting field in library record
8509
8510 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
8511 units mentioned in limited_with_ clauses in the ali file, with an
8512 'Y' marker.
8513 New Ox fields in U line
8514
8515 * opt.adb: New flag Optimize_Alignment_Local
8516 (Check_Policy_List[_Config]): New flags
8517
8518 * opt.ads (Invalid_Value_Used): New flag
8519 New switch Optimize_Alignment_Local
8520 (Warn_On_Parameter_Order): New flag
8521 (Check_Policy_List[_Config]): New flags
8522
8523 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
8524 limited_with clauses.
8525 New data structures for Optimize_Alignment
8526
8527 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
8528 New procedure
8529 (Check_Consistent_Optimize_Alignment): Rework for new structure
8530 (Check_Consistent_Restrictions): Fix incorrect error message
8531
8532 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
8533 created class-wide type (to the Parent field of the specific type).
8534 (Install_Siblings): Handle properly private_with_clauses on subprogram
8535 bodies and on generic units.
8536 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
8537 illegal limited_with_clause that names a non-existent package.
8538 (Check_Body_Required): Determine whether a unit named a limited_with
8539 clause needs a body.
8540 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
8541 Capture Optimize_Alignment settings to set new OA_Setting field in
8542 library record.
8543 (Build_Limited_Views): Include task and protected type declarations.
8544
8545 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
8546 case of a possible constant redeclaration where the current object is
8547 an entry index constant.
8548 (Analyze_Object_Declaration): Generate an error in case of CPP
8549 class-wide object initialization.
8550 (Analyze_Object_Declaration): Add extra information on warnings for
8551 declaration of unconstrained objects.
8552 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
8553 conflicts with the setting of Stored_Constraint in the case where the
8554 access type entity has already been created as an E_Incomplete_Type due
8555 to a limited with clause.
8556 Use new Is_Standard_Character_Type predicate
8557 (Analyze_Object_Declaration): Apply access_constant check only after
8558 expression has been resolved, given that it may be overloaded with
8559 several access types.
8560 (Constant_Redeclaration): Additional legality checks for deferred
8561 constant declarations tha involve anonymous access types and/or null
8562 exclusion indicators.
8563 (Analyze_Type_Declaration): Set Optimize_Alignment flags
8564 (Analyze_Subtype_Declaration): Ditto
8565 (Analyze_Object_Declaration): Ditto
8566 (Analyze_Object_Declaration): Don't count tasks in generics
8567 Change name In_Default_Expression => In_Spec_Expression
8568 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8569 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8570 (Process_Discriminants): Additional check for illegal use of default
8571 expressions in access discriminant specifications in a type that is not
8572 explicitly limited.
8573 (Check_Abstract_Overriding): If an inherited function dispaches on an
8574 access result, it must be overridden, even if the type is a null
8575 extension.
8576 (Derive_Subprogram): The formals of the derived subprogram have the
8577 names and defaults of the parent subprogram, even if the type is
8578 obtained from the actual subprogram.
8579 (Derive_Subprogram): In the presence of interfaces, a formal of an
8580 inherited operation has the derived type not only if it descends from
8581 the type of the formal of the parent operation, but also if it
8582 implements it. This is relevant for the renamings created for the
8583 primitive operations of the actual for a formal derived type.
8584 (Is_Progenitor): New predicate, to determine whether the type of a
8585 formal in the parent operation must be replaced by the derived type.
8586
8587 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
8588 predicate recursive to handle components that have a user-defined
8589 Initialize procedure. Handle controlled derived types whose ancestor
8590 has a user-defined Initialize procedured.
8591 (Note_Possible_Modification): Add Sure parameter, generate warning if
8592 sure modification of constant
8593 Use new Is_Standard_Character_Type predicate
8594 (Find_Parameter_Type): when determining whether a protected operation
8595 implements an interface operation, retrieve the type of the formal from
8596 the entity when the formal is an access parameter or an
8597 anonymous-access-to-subprogram.
8598 Move Copy_Parameter_List to sem_util, for use when building stubbed
8599 subprogram bodies.
8600 (Has_Access_Values): Tagged types now return False
8601 (Within_HSS_Or_If): New procedure
8602 (Set_Optimize_Alignment_Flags): New procedure
8603 Change name In_Default_Expression => In_Spec_Expression
8604 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8605 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8606
86072008-04-08 Tristan Gingold <gingold@adacore.com>
8608
8609 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
8610
86112008-04-08 Tristan Gingold <gingold@adacore.com>
8612
8613PR ada/10768
8614
8615 * cuintp.c: Fix 16 bits issue for AVR.
8616 On AVR, integer is 16 bits, so it can't be used to do math with
8617 Base (=32768).
8618 So use long_integer instead.
8619
86202008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8621
8622 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
8623 System.OS_Primitives.
8624 Change type of various constants, parameters and local variables from
8625 Time to representation type OS_Time.
8626 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
8627 Remove the declaration of constant Mili_F from several routines. New
8628 body for internal package Conversions_Operations.
8629 (Time_Of): Add default parameters for several formals.
8630
8631 * a-caldel.adb: Minor reformatting
8632
8633 * a-calend.ads, a-calend.adb: New body for internal package
8634 Conversions_Operations.
8635 (Time_Of): Add default parameters for several formals.
8636
8637 * Makefile.rtl: Add a-ststop
8638 Add Ada.Calendar.Conversions to the list of runtime files.
8639 Add g-timsta
8640
8641 * a-calcon.adb, a-calcon.ads: New files.
8642
86432008-04-08 Jose Ruiz <ruiz@adacore.com>
8644 Tristan Gingold <gingold@adacore.com>
8645
8646 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
8647 (Install_Restricted_Handlers): New procedure
8648 which is a simplified version of Install_Handlers that does not store
8649 previously installed.
8650
8651 * s-interr-vxworks.adb: Fix ACATS cxc3001
8652 On VxWorks interrupts can't be detached.
8653 (Install_Restricted_Handlers): New procedure.
8654
8655 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
8656 procedure.
8657
86582008-04-08 Olivier Hainque <hainque@adacore.com>
8659
8660 * s-intman-vxworks.ads, s-intman-vxworks.adb
8661 (Map_And_Raise_Exception): Remove. Was an import of only part of the
8662 required services already implemented elsewhere.
8663 (Notify_Exception): Delete body, import __gnat_error_handler instead.
8664 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
8665 argument passed to the handler, which we need for ZCX propagation
8666 purposes.
8667
86682008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8669
8670 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
8671
8672 * g-timsta.adb, g-timsta.ads: New files.
8673
86742008-04-08 Robert Dewar <dewar@adacore.com>
8675
8676 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
8677 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
8678 (Raise_Exception_Always): Fix documentation accordingly
8679
86802008-04-08 Robert Dewar <dewar@adacore.com>
8681
8682 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
8683 Stream_Convert)
8684
8685 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
8686 FOnly
8687
86882008-04-08 Javier Miranda <miranda@adacore.com>
8689 Robert Dewar <dewar@adacore.com>
8690 Ed Schonberg <schonberg@adacore.com>
8691
8692 * a-tags.adb (Register_Interface_Offset): New subprogram.
8693 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
8694 (To_Predef_Prims_Table_Ptr): Removed.
8695 (Acc_Size): Removed.
8696 (To_Acc_Size): Removed.
8697 (Parent_Size): Modified to the call the subprogram returning the size of
8698 the parent by means of the new TSD component Size_Func.
8699
8700 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
8701 (DT_Offset_To_Top_Offset): New constant value that is used to generate
8702 code referencing the Offset_To_Top component of the dispatch table's
8703 prologue.
8704 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
8705 use of 'address to initialize dispatch table slots.
8706 (Size_Func): New component of the TSD. Used by the run-time to call the
8707 size primitive of the tagged type.
8708
8709 * checks.adb (Apply_Access_Check): Avoid check when accessing the
8710 Offset_To_Top component of a dispatch table.
8711 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
8712 deferred constant declaration. do not add a null expression, to prevent
8713 spurious errors when full declaration is analyzed.
8714 (Apply_Discriminant_Check): If both discriminant constraints share a
8715 node which is not static but has no side effects, do not generate a
8716 check for that discriminant.
8717 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
8718 subexpr, since the prefix of an attribute is a name.
8719
8720 * checks.ads: Fix nit in comment.
8721
8722 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
8723 and body of predefined primitives in case of CPP tagged type
8724 derivations.
8725 (Freeze_Type): Deal properly with no storage pool case
8726 (Make_Predefined_Primitive_Specs): Generate specification of abstract
8727 primitive Deep_Adjust if a nonlimited interface is derived from a
8728 limited interface.
8729 (Build_Dcheck_Functions): Create discriminant-checking functions only
8730 for variants that have some component(s).
8731 (Build_Slice_Assignment): In expanded code for slice assignment, handle
8732 properly the case where the slice bounds extend to the last value of the
8733 underlying representation.
8734 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
8735 (Is_Variable_Size_Record): An array component has a static size if
8736 index bounds are enumeration literals.
8737
8738 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
8739 an external tag has been specified for the type.
8740 (Building_Static_DT): Add missing support for private types.
8741 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
8742 to the entity associated with the parent of Typ. This is done to
8743 avoid wrong access when the parent is a private type.
8744 (Expand_Interface_Conversion): Improve error message when the
8745 configurable runtime has no support for dynamic interface conversion.
8746 (Expand_Interface_Thunk): Add missing support to interface types in
8747 configurable runtime.
8748 (Expand_Dispatching_Call): remove obsolete code.
8749 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
8750 ensure that all subtypes and aggregates associated with dispatch
8751 tables have the attribute Is_Dispatch_Table_Entity set to true.
8752 (Register_Primitive): Rename one variable to improve code reading.
8753 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
8754 of the pointer to the 'size primitive in the TSD.
8755
8756 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
8757 (RE_Offset_To_Top_Ptr): New entity.
8758 (RE_Register_Interface_Offset): New entity.
8759 (RE_Set_Dynamic_Offset_To_Top): New entity.
8760 (RE_Set_Offset_To_Top): Removed entity.
8761 (RE_Prim_Ptr): New entity
8762 (RE_Size_Func): New entity
8763 (RE_Size_Ptr): New entity
8764 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
8765 (Ada_Dispatching_Child): Define this new subrange.
8766 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
8767 RE_Time_Span, and RE_Time_Span_Zero).
8768 (RE_Unit_Table): Add new required run-time calls
8769
8770 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
8771 children.
8772
8773 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
8774 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
8775 initializes the Offset_To_Top component of a dispatch table.
8776 (Build_Predef_Prims): Removed.
8777 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
8778 its actual code.
8779 (Build_Set_Size_Function): New subprogram.
8780
8781 * exp_ch13.adb: Do not generate storage variable for storage_size zero
8782 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
8783
87842008-04-08 Robert Dewar <dewar@adacore.com>
8785
8786 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
8787 computing Fore when Exp > 0
8788
87892008-04-08 Robert Dewar <dewar@adacore.com>
8790
8791 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
8792
8793 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
8794 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
8795
8796 * fmap.adb: Remove Big_String declarations (now in Types)
8797 (No_Mapping_File): New Boolean global variable
8798 (Initialize): When mapping file cannot be read, set No_Mapping_File to
8799 False.
8800 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
8801 tables were empty before adding entries, open the mapping file
8802 with Truncate = True, instead of delete/re-create.
8803
8804 * fname-sf.adb: Remove Big_String declarations (now in Types)
8805
8806 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
9e81dbc7 8807 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
d563d3f0
AC
8808 big pointer types
8809
8810 * table.ads: Add for Table_Ptr'Storage_Size use 0
8811
8812 * types.ads: Add Big_String declarations
8813 Add Size_Clause of zero for big pointer types
8814
88152008-04-08 Vincent Celier <celier@adacore.com>
8816
8817 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
8818 (Usage): Add line for switch --subdirs=
8819 Add new switch -eL, to follow symbolic links when processing project
8820 files.
8821
8822 * gnatcmd.adb: Process switches -eL and --subdirs=
8823 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
8824 Program_Name to get proper tool names when AAMP_On_Target is set.
8825 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
8826 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
8827 Osint.Program_Name).
8828
8829 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
8830 (Usage): Add lines for switches -eL and --subdirs=
8831
8832 * makeusg.adb: Add line for switch --subdirs=
8833
9e81dbc7 8834 * prj.ads:
d563d3f0
AC
8835 (Source_Data): New Boolean component Compiled, defaulted to True
8836 (Empty_File_Name: New global variable in private part, initialized in
8837 procedure Initialize.
8838 (Subdirs_Option): New constant string
8839 (Subdirs): New String_Ptr global variable
8840 (Language_Config): New component Include_Compatible_Languages
8841 (Project_Qualifier): New type for project qualifiers
8842 (Project_Data): New component Qualifier
8843 (Project_Configuration): New component Archive_Builder_Append_Option
8844
8845 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
8846 another imported project indicate the name of this imported project.
8847 (Check_File): When a unit is in two project files, indicate the project
8848 names and the paths of the source files for each project.
8849 (Add_Source): Set Compiled to False if compiler driver is empty. Only
8850 set object, dependency and switches file names if Compiled is True.
8851 (Process_Compiler): Allow the empty string for value of attribute Driver
8852 (Get_Directories): When Subdirs is not null and Object_Dir is not
8853 specified, locate and create if necessary the actual object dir.
8854 (Locate_Directory): When Subdirs is not empty and Create is not the
8855 empty string, locate and create if necessary the actual directory
8856 as a subdirectory of directory Name.
8857 (Check_Library_Attributes.Check_Library): Allow a project where the only
8858 "sources" are header files of file based languages to be imported by
8859 library projects, in multi-language mode (gprbuild).
8860 (Check_Library_Attributes.Check_Library): In multi-language mode
8861 (gprbuild), allow a library project to import a project with no
8862 sources, even when this is not declared explicitly.
8863 (Check_If_Externally_Built): A virtual project extending an externally
8864 built project is also externally built.
8865 (Check_Library_Attributes): For a virtual project extending a library
8866 project, inherit the library directory.
8867 (Process_Project_Level_Array_Attributes): Process new attribute
8868 Inherit_Source_Path.
8869 For projects with specified qualifiers "standard", "library" or
8870 "abstract", check that the project conforms to the qualifier.
8871 (Process_Project_Level_Simple_Attributes): Process new attribute
8872 Archive_Builder_Append_Option.
8873
8874 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
8875 (Normalize_Compiler_Switches): Only keep compiler switches that are
8876 passed to gnat1 by the gcc driver and that are stored in the ALI file
8877 by gnat1.
8878 Do not take into account switc -save-temps
8879
8880 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
8881 gprmake is called with -eL.
8882 (Scan_Arg): Recognize switch -eL
8883 (Usage): Add line for switch -eL
8884
8885 * prj.adb (Initialize): Initialize Empty_File_Name
8886 (Project_Empty): New component Qualifier
8887
8888 * prj-attr.ads, prj-attr.adb: New project level attribute
8889 Inherit_Source_Path.
8890 New project level attribute Archive_Builder_Append_Option
8891
8892 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
8893
8894 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
8895 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
8896 upward compatibility.
8897
8898 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
8899 each Trying ..." on different lines.
8900 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
8901 is "configuration" when not in configuration. Fail when in configuration
8902 when a specified qualifier is other than "configuration".
8903
8904 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
8905 full associative array together.
8906 (Recursive_Process): Put the project qualifier in the project data
9e81dbc7 8907
d563d3f0
AC
8908 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
8909 (Set_Project_Qualifier_Of): New procedure
8910
89112008-04-08 Robert Dewar <dewar@adacore.com>
8912
8913 * errout.ads: Update comments for new handling of info: messages
8914
8915 * erroutc.adb (Matches): New procedure
8916 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
8917 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
8918 info messages as well as style messages.
8919
8920 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
8921
8922 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
8923 subprograms.
8924 (Check_A_Call): Special "info: " warnings now have ? in the text
8925 (Elab_Warning): Use info message in static case
8926
89272008-04-08 Ed Schonberg <schonberg@adacore.com>
8928
8929 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
8930 whether an array aggregate with static bounds and scalar components
8931 should be expanded into a static constant.
8932
89332008-04-08 Gary Dismukes <dismukes@adacore.com>
8934 Ed Schonberg <schonberg@adacore.com>
8935 Robert Dewar <dewar@adacore.com>
8936
8937 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
8938 Has_Stream_Attribute_ Definition when checking for available stream
8939 attributes on parameters of a limited type in Ada 2005. Necessary for
8940 proper recognition of visible stream attribute clauses.
8941 (Has_Stream_Attribute_Definition): If the type is derived from a
8942 private type, then use the derived type's underlying type for checking
8943 whether it has stream attributes.
8944 (Validate_Object_Declaration): The check for a user-defined Initialize
8945 procedure applies also to types with controlled components or a
8946 controlled ancestor.
8947 Reject an object declaration in a preelaborated unit if the type is a
8948 controlled type with an overriding Initialize procedure.
8949 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
8950 checking when the parent of a dereference is a selected component and
8951 the name has not been analyzed.
8952
8953 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
8954 prefixes that are invalid explicit dereferences of remote
8955 access-to-class-wide values, first checking whether the selected
8956 component is a prefixed form of call to a tagged operation.
8957 (Analyze_Call): Remove code that issues an error for limited function
8958 calls in illegal contexts, as we now support all of the contexts that
8959 were forbidden here.
8960 Allow a function call that returns a task.and appears as the
8961 prefix of a selected component.
8962 (Analyze_Reference): Give error message if we try to make a 'Reference
8963 for an object that is atomic/aliased without its type having the
8964 corresponding attribute.
8965 (Analyze_Call): Remove condition checking for attributes to allow
8966 calls to functions with inherently limited results as prefixes of
8967 attributes. Remove related comment about Class attributes.
8968 (Analyze_Selected_Component): If the prefix is a remote type, check
8969 whether this is a prefixed call before reporting an error.
8970 (Complete_Object_Operation): If the controlling formal is an access to
8971 variable reject an actual that is a constant or an access to one.
8972 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8973 primitive operations from base type.
8974
8975 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
8976 build-in-place
8977 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8978 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
8979 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8980 (Expand_N_Slice): Test for prefix that is a build-in-place function call
8981 and call Make_Build_In_Place_Call_In_Anonymous_Context.
8982 (Analyze_Call): Remove code that issues an error for limited function
8983 calls in illegal contexts, as we now support all of the contexts that
8984 were forbidden here.
8985 New calling sequence for Get_Simple_Init_Val
8986 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
8987 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
8988
89892008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8990 Ed Schonberg <schonberg@adacore.com>
8991 Robert Dewar <dewar@adacore.com>
8992
8993 * exp_ch2.adb: Minor reformatting.
8994 (Expand_Entry_Index_Parameter): Set the type of the identifier.
8995 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
8996 (Expand_Protected_Component): New routine.
8997 (Expand_Protected_Private): Removed.
8998 Add Sure parameter to Note_Possible_Modification calls
8999
9000 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
9001 generated subprogram declaration must inherit the overriding indicator
9002 from the instantiation node.
9003 (Validate_Access_Type_Instance): If the designated type of the actual is
9004 a limited view, use the available view in all cases, not only if the
9005 type is an incomplete type.
9006 (Instantiate_Object): Actual is illegal if the formal is null-excluding
9007 and the actual subtype does not exclude null.
9008 (Process_Default): Handle properly abstract formal subprograms.
9009 (Check_Formal_Package_Instance): Handle properly defaulted formal
9010 subprograms in a partially parameterized formal package.
9011 Add Sure parameter to Note_Possible_Modification calls
9012 (Validate_Derived_Type_Instance): if the formal is non-limited, the
9013 actual cannot be limited.
9014 (Collect_Previous_Instances): Generate instance bodies for subprograms
9015 as well.
9016
9017 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
9018 try to set RM_Size.
9019 Add Sure parameter to Note_Possible_Modification calls
9020 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
9021 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
9022 constant overlaid by variable and issue warning.
9023 Use new Is_Standard_Character_Type predicate
9024 (Analyze_Record_Representation_Clause): Check that the specified
9025 Last_Bit is not less than First_Bit - 1.
9026 (Analyze_Attribute_Definition_Clause, case Address): Check for
9027 self-referential address clause
9028
9029 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
9030 detection mechanism when the lhs is a prival.
9031 (Analyze_Assignment): Call Check_Unprotected_Access to detect
9032 assignment of a pointer to protected data, to an object declared
9033 outside of the protected object.
9034 (Analyze_Loop_Statement): Check for unreachable code after loop
9035 Add Sure parameter to Note_Possible_Modication calls
9036 Protect analysis from previous syntax error such as a scope mismatch
9037 or a missing begin.
9038 (Analyze_Assignment_Statement): The assignment is illegal if the
9039 left-hand is an interface.
9040
ea081ad7
AC
9041 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
9042 violation of restriction No_Implicit_Conditionals
d563d3f0
AC
9043 Add Sure parameter to Note_Possible_Modication calls
9044 Use new Is_Standard_Character_Type predicate
9045 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
9046 call as operator. Fixes problems (e.g. validity checking) which
9047 come from the result looking as though it does not come from source).
9048 (Resolve_Call): Check case of name in named parameter if style checks
9049 are enabled.
9050 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
9051 from the checking that such calls should not occur from an entry body.
9052 (Resolve_Call): If the return type of an Inline_Always function
9053 requires the secondary stack, create a transient scope for the call
9054 if the body of the function is not available for inlining.
9055 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
9056 that are actuals for in-out formals.
9057 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
9058 primitive operations from base type.
9059 (Analyze_Selected_Component): If the context is a call to a protected
9060 operation the parent may be an indexed component prior to expansion.
9061 (Resolve_Actuals): If an actual is of a protected subtype, use its
9062 base type to determine whether a conversion to the corresponding record
9063 is needed.
9064 (Resolve_Short_Circuit): Handle pragma Check
9065
9066 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
9067 Use new Is_Standard_Character_Type predicate
9068 (Eval_Relational_Op): Catch more cases of string comparison
9069
90702008-04-08 Robert Dewar <dewar@adacore.com>
9071 Gary Dismukes <dismukes@adacore.com>
9072
9073 * s-rident.ads: Add No_Default_Initialization restriction
9074
9e81dbc7 9075 * exp_tss.adb:
d563d3f0
AC
9076 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
9077 (Set_TSS): Handle No_Default_Initialization case
9078
9079 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
9080 No_Default_Initialization
9081 (Expand_N_Subprogram_Body): Remove redundant initialization of out
9082 parameters when Normalize_Scalars is active.
9083 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
9084 Fix casing error in formal parameter name in call
9085 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
9086 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9087 dispatching call on VM targets.
9088
90892008-04-08 Gary Dismukes <dismukes@adacore.com>
9090 Thomas Quinot <quinot@adacore.com>
9091
9092 * exp_ch7.adb (Find_Final_List): Change the test for generating a
9093 selected component from an access type's Associated_Final_Chain to
9094 check for the presence of that field, rather than assuming it exists
9095 for all named access types.
9096 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
9097 procedure to call at the end of the generated cleanup procedure.
9098 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
9099 and an At_End_Proc already exists in the handled sequence of statements
9100 for which cleanup actions are being expanded, the original cleanup
9101 action must be preserved.
9102
91032008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9104 Ed Schonberg <schonberg@adacore.com>
9105 Robert Dewar <dewar@adacore.com>
9106 Gary Dismukes <dismukes@adacore.com>
9107
9108 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
9109 Build_Unprotected_Subprogram_Body): Generate debug info for
9110 declarations related to the handling of private data in task and
9111 protected types.
9112 (Debug_Private_Data_Declarations): New subprogram.
9113 (Install_Private_Data_Declarations): Remove all debug info flagging.
9114 This is now done by Debug_Private_Data_Declarations at the correct
9115 stage of expansion.
9116 (Build_Simple_Entry_Call): If the task name is a function call, expand
9117 the prefix into an object declaration, and make the surrounding block a
9118 task master.
9119 (Build_Master_Entity): An internal block is a master if it wraps a call.
9120 Code reformatting, update comments. Code clean up.
9121 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
9122 (Replicate_Entry_Formals): If the formal is an access parameter or
9123 anonymous access to subprogram, copy the original tree to create new
9124 entities for the formals of the subprogram.
9125 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
9126 for tasks to store the value passed using pragma Relative_Deadline.
9127 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
9128 run-time call to create a task.
9129 (Build_Wrapper_Spec): If the controlling argument of the interface
9130 operation is an access parameter with a non-null indicator, use the
9131 non-null indicator on the wrapper.
9132
9133 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
9134 present, which it may not be in the case where the type entity is an
9135 incomplete view brought in by a limited with.
9136 (Analyze_Task_Type): Only retrieve the full view when present, which it
9137 may not be in the case where the type entity is an incomplete view brought
9138 in by a limited with.
9139 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
9140 private components of a protected type, to prevent the generation of freeze
9141 nodes for which there is no proper scope of elaboration.
9142
9143 * exp_util.ads, exp_util.adb
9144 (Remove_Side_Effects): If the expression is a function call that returns a
9145 task, expand into a declaration to invoke the build_in_place machinery.
9146 (Find_Protection_Object): New routine.
9147 (Remove_Side_Effects): Also make a copy of the value
9148 for attributes whose result is of an elementary type.
9149 (Silly_Boolean_Array_Not_Test): New procedure
9150 (Silly_Boolean_Array_Xor_Test): New procedure
9151 (Is_Volatile_Reference): New function
9152 (Remove_Side_Effects): Use Is_Volatile_Reference
9153 (Possible_Bit_Aligned_Component): Handle slice case properly
9154
9155 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
9156 case test to Exp_Util
9157 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
9158
91592008-04-08 Thomas Quinot <quinot@adacore.com>
9160
9161 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
9162 in call
9163 (Add_RACW_Features): When processing an RACW in another unit than the
9164 main unit, set Body_Decls to No_List to indicate that the bodies of
9165 the type's TSS must not be generated.
9166 (GARLIC_Support.Add_RACW_Read_Attribute,
9167 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
9168 Body_Decls is No_List.
9169 (PolyORB_Support.Add_RACW_Read_Attribute,
9170 PolyORB_Support.Add_RACW_Write_Attribute,
9171 PolyORB_Support.Add_RACW_From_Any,
9172 PolyORB_Support.Add_RACW_To_Any,
9173 PolyORB_Support.Add_RACW_TypeCode): Same.
9174 (Transmit_As_Unconstrained): New function.
9175 (Build_Ordered_Parameters_List): Use the above to order parameters.
9176 (GARLIC_Support.Build_General_Calling_Stubs):
9177 Use the above to determine which parameters to unmarshall using 'Input
9178 at the point where their temporary is declared (as opposed to later on
9179 with a 'Read call).
9180 (PolyORB_Support.Build_General_Calling_Stubs):
9181 Use the above to determine which parameters to unmarshall using From_Any
9182 at the point where their temporary is declared (as opposed to later on
9183 with an assignment).
9184
91852008-04-08 Ed Schonberg <schonberg@adacore.com>
9186
9187 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
9188 an Input function for an access type, do not perform default
9189 initialization on the local variable that receives the value, to
9190 prevent spurious warnings when the type is null-excluding.
9191
91922008-04-08 Robert Dewar <dewar@adacore.com>
9193 Ed Schonberg <schonberg@adacore.com>
9194
9195 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
9196 units.
9197 (Size_Known): Generic formal scalar types have known at compile
9198 time size, so remove check.
9199 Fix casing error in formal parameter name in call
9200 (Freeze_Subprogram): If the subprogram is a user-defined operator,
9201 recheck its overriding indication.
9202
92032008-04-08 Vincent Celier <celier@adacore.com>
9204
9205 * gnat1drv.adb: Send all messages indicating an error to standard error
9206
92072008-04-08 Robert Dewar <dewar@adacore.com>
9208
9209 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
9210 (List_Applicable_Restrictions): Do not list existing restrictions
9211
92122008-04-08 Thomas Quinot <quinot@adacore.com>
9213
9214 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
9215 add a pointer to generic sockets literature
9216 do not mention that the given example is "typical" usage.
9217 Remove obsolete comment about multicast not being supported on Windows.
9218 (Connect_Socket): Make Server mode IN rather than IN OUT
9219 since this formal is never modified.
9220
92212008-04-08 Robert Dewar <dewar@adacore.com>
9222
9223 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
9224 the declaration for some different entity.
9225 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
9226 list is precent (following the parent subtype indication), display
9227 appropriate "and" keyword.
9228
9229 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
9230 Remove unnecessary calls to Init_Size_Align and Init_Esize.
9231 Add notes on use of Parent field of an Itype
9232
92332008-04-08 Ed Schonberg <schonberg@adacore.com>
9234 Robert Dewar <dewar@adacore.com>
9235 Gary Dismukes <dismukes@adacore.com>
9236
9237 * lib-xref.adb (Is_On_LHS): Remove dead code
9238 (Output_Overriden_Op): If the overridden operation is itself inherited,
9239 list the ancestor operation, which is the one whose body or absstract
9240 specification is actually being overridden. For source navigation
9241 purposes.
9242
9243 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
9244 operation is primitive for the type.
9245 (Declare_Inherited_Private_Subprograms): If the new operation overrides
9246 an inherited private subprogram, set properly the Overridden_Operation
9247 attribute, for better cross-reference information.
9248 (Analyze_Package_Specification): Do late analysis of spec PPCs
9249 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
9250 properly the full view and underlying full views of a private type in a
9251 child unit, whose full view is derived from a private type in a parent
9252 unit, and whose own full view becomes visible in the child body.
9253
9254 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
9255 primitive operation after the type has been frozen, add an explicit
9256 reference to the type and the operation, because other primitive
9257 references have been emitted already.
9258 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9259 dispatching call on VM targets.
9260
92612008-04-08 Vincent Celier <celier@adacore.com>
9262 Thomas Quinot <quinot@adacore.com>
9263
9264 * make.adb: (Gnatmake_Called): Remove, no longer necessary
9265 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
9266 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
9267 (Insert_Project_Sources): Take into account index in multi-unit source
9268 files.
9269 After building a library project, delete all temporary files.
9270 (Initialize): Reset current output after parsing project file.
9271 (Collect_Arguments_And_Compile): Never insert in the queue the sources
9272 of library projects that are externally built.
9273 Put file name in error and inform messages if -df is used
9274 (Display): If invoked with -d7, do not display path names, but only
9275 file names.
9276
9277 * makeutl.ads (Path_Or_File_Name): New function
9278 (Path_Or_File_Name): New function
9279
92802008-04-08 Arnaud Charlet <charlet@adacore.com>
9281
9282 * Make-lang.in: Disable warnings during first stage of bootstrap
9283 Get rid of gnatbl.
9284 Update dependencies.
9285
92862008-04-08 Vincent Celier <celier@adacore.com>
9287
9288 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
9289 case to decide if ALI object file is included in library.
9290 (Build_Library): Never attempt to build a library if the project is
9291 externally built.
9292
92932008-04-08 Thomas Quinot <quinot@adacore.com>
9294
9295 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
9296 (No_List) is defined to return Empty.
9297
92982008-04-08 Jose Ruiz <ruiz@adacore.com>
9299
9300 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
9301 documentation.
9302 Update comments.
9303 (Read_Default_Search_Dirs): Do not consider spaces as path separators
9304 because spaces may be part of legal paths.
9305
93062008-04-08 Robert Dewar <dewar@adacore.com>
9307
9308 * par-ch11.adb (P_Exception_Handler): Check indentation level for
9309 handler
9310
93112008-04-08 Ed Schonberg <schonberg@adacore.com>
9312
9313 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
9314 in a type declaration, if this is not an interface declaration or
9315 private type extension.
9316
93172008-04-08 Vincent Celier <celier@adacore.com>
9318
9319 * prj-util.adb (Executable_Of): New String parameter Language. When
9320 Ada_Main is False and Language is not empty, attempt to remove the body
9321 suffix or the spec suffix of the language to get the base of the
9322 executable file name.
9323 (Put): New Boolean parameter Lower_Case, defauilted to False. When
9324 Lower_Case is True, put the value in lower case in the name list.
9325 (Executable_Of): If there is no executable suffix in the configuration,
9326 then do not modify Executable_Extension_On_Target.
9327
9328 * prj-util.ads (Executable_Of): New String parameter Language,
9329 defaulted to the empty string.
9330 (Put): New Boolean parameter Lower_Case, defauilted to False
9331
93322008-04-08 Robert Dewar <dewar@adacore.com>
9333
9334 * scng.adb (Scan_Identifier): Handle case of identifier starting with
9335 wide character using UTF-8 encoding.
9336
93372008-04-08 Javier Miranda <miranda@adacore.com>
9338
9339 * sem.adb (Analyze): Consider case in which we analyze an empty node
9340 that was generated by a call to a runtime function that is not
9341 available under the configurable runtime.
9342
9343 * sem.ads (Inside_Freezing_Actions): New flag.
9344 (Save_Check_Policy_List): New field in scope stack entry
9345
93462008-04-08 Ed Schonberg <schonberg@adacore.com>
9347 Robert Dewar <dewar@adacore.com>
9348
9349 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
9350 the ancestor part of an extension aggregate for a limited type.
9351 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
9352 enumeration index bounds.
9353 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
9354 when array is too short.
9355 (Check_Expr_OK_In_Limited_Aggregate): Move function
9356 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
9357 change name).
9358 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
9359 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
9360 component associations.
9361 (Check_Non_Limited_Type): Moved to outer level and renamed.
9362 (Resolve_Record_Aggregate): In an extension aggregate, an association
9363 with a box initialization can only designate a component of the
9364 extension, not a component inherited from the given ancestor
9365
9366 * sem_case.adb: Use new Is_Standard_Character_Type predicate
9367
93682008-04-08 Robert Dewar <dewar@adacore.com>
9369
9370 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
9371 negative scale
9372 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
9373 Properly handle case where Aft > Scale and input number is less than
9374 one.
9375
93762008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9377
9378 * s-stoele.ads, s-soflin.ads: Move the location of
9379 Dummy_Communication_Block from System.Storage_Elements to
9380 System.Soft_Links.
9381
9382 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
9383 emulate Communication_Block in certain scenarios.
9384
93852008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9386
9387 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
9388 subprogram.
9389 Add new subtype S_WWC, unchecked conversion routines From_WWC and
9390 To_WWC.
9391 (I_WWC, O_WWC): New routines for input and output of
9392 Wide_Wide_Character.
9393
93942008-04-08 Robert Dewar <dewar@adacore.com>
9395
9396 * stringt.adb (Write_String_Table_Entry): Handle wide characters
9397 properly
9398
93992008-04-08 Robert Dewar <dewar@adacore.com>
9400
9401 * styleg.adb (Check_Comment): Allow special char after -- in
9402 non-end-of-line case
9403
94042008-04-08 Robert Dewar <dewar@adacore.com>
9405
9406 * stylesw.adb: Implement -gnaty + - y options
9407 (Set_GNAT_Style_Check_Options): Includ I in style check string
9408
9409 * stylesw.ads: Add comments for new style switch options
9410
94112008-04-08 Sergey Rybin <rybin@adacore.com>
9412
9413 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
9414 to the set of the GNAT components needed by ASIS.
9415
94162008-04-08 Bob Duff <duff@adacore.com>
9417
9418 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
9419
94202008-04-08 Tristan Gingold <gingold@adacore.com>
9421
9422 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
9423 Improve error message generation.
9424
94252008-04-08 Vincent Celier <celier@adacore.com>
9426
9427 * a-direct.adb (Start_Search): Check for Name_Error before checking for
9428 Use_Error, as specified in the RM. Check if directory is open and raise
9429 Use_Error if it is not.
9430
94312008-04-08 Vincent Celier <celier@adacore.com>
9432 Robert Dewar <dewar@adacore.com>
9433
9434 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
9435 AAMP_On_Target is set.
9436
9437 * vms_data.ads: Add NOxxx to style check switch list
9438 Add entry COMPONENTS for -gnatVe
9439 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
9440 (/SUBDIRS=).
9441 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
9442 Add qualifiers for gnatmetric coupling options
9443 Add note that -gnata enables all checks
9444 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
9445 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
9446 New warning flag -gnatw.e
9447
9448 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
9449 Add entry for -gnatyN (forgotten before)
9450 Line for new warning switch -gnatw.p
9451 New warning flag -gnatw.e
9452
9453 * gnat_ugn.texi: Add documentation fpr project file switch -aP
9454 Document -gnaty - + y
9455 Replace occurences of "package specification" with "package spec"
9456 Define preprocessing symbols in documentation of gnatprep
9457 Clarify reason for distinguishing overflow checking
9458 Add documentation for project-aware tool switches -eL and --subdirs=
9459 Complete list of configuration pragmas
9460 Specify that, even when gnatmake switch -x is used, mains on the command
9461 line need to be sources of project files.
9462 Editing of gnatcheck/gnatmetric doc.
9463 Add documentation for -gnatw.p/-gnatw.P
9464 Add missing documentation for -fno-inline-functions.
9465 Add documentation for -gnatw.e
9466
9467 * gnat_rm.texi: Add documentation for No_Default_Initialization
9468 Replace occurences of "package specification" with "package spec"
9469 Document use of * in Warnings Off string
9470 Update documentation of alignment/component clauses.
9471 Add documentation for Invalid_Value
9472 Document new consistency rule for Optimize_Alignment
9473 Add documentation for Precondition and Postcondition pragmas
9474 Add documentation for Check and Check_Policy pragmas
9475 Document new Enum_Val attribute
9476 Remove requirement for static string in pragma Assert
9477 Add documentation on GNAT.Time_Stamp
9478
9479 * ug_words: add entry for -gnatVe
9480 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
9481 Add entry for -gnatw.e
9482
9483 * debug.adb: Add missing documentation for d.a flag
9484 Document new -gnatd.a switch.
9485 Add documentation for new gnatmake debug switch -df
9486
94872008-04-08 Thomas Quinot <quinot@adacore.com>
9488
9489 * gen-soccon.c: Bump year in copyright notices.
9490
9491 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
9492
94932008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9494
9495 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
9496 Minor reformatting.
9497
94982008-04-08 Robert Dewar <dewar@adacore.com>
9499 Bob Duff <duff@adacore.com>
9500
9501 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
9502 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
9503
9504 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
9505
9506 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
9507
9508 * g-trasym.ads: Minor comment improvements
9509
9510 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
9511
9512 * a-sequio.ads, a-direio.ads: improve message for tagged type
9513
9514 * a-strunb.ads: Minor reformatting
9515
9516 * a-tifiio.adb: Minor reformatting
9517
9518 * atree.adb (Fix_Parents): Use clearer names for formals
9519 Cleanup and simplify code
9520 Use named notation in calls
9521
9522 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
9523 confusing calls
9524
9525 * uintp.adb: Used named notation for some confusing calls
9526
9527 * bindusg.adb: Minor change in one line of output
9528
9529 * cstand.adb: Minor reformatting of src representation of Standard
9530
9531 * a-assert.ads: Add comment.
9532
9533 * g-decstr.adb: Fix bad indentation
9534
9535 * expander.ads, expander.adb: Code clean up.
9536
9537 * sem_dist.ads: Minor comment improvement
9538
9539 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
9540 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
9541
9542 * i-cstrin.adb: Fix casing error in formal parameter name in call
9543
95442008-04-08 Ed Schonberg <schonberg@adacore.com>
9545
9546 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
9547 mentioned in limited_with_clauses to do create semantic dependencies
9548 even though they appear in the ali file.
9549
95502008-04-08 Emmanuel Briot <briot@adacore.com>
9551
9552 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
9553 statement.
9554 (Get_Configuration): New subprogram.
9555
9556 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
9557 These optional parameters help preserve the casing of the project's name
9558 when pretty-printing.
9559
95602008-04-08 Jerome Lambourg <lambourg@adacore.com>
9561 Arnaud Charlet <charlet@adacore.com>
9562
9563 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
9564 then use __gnat_set_exit_status to report the returned status code.
9565
9566 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
9567 messages on .NET, since some constructs of the language are not
9568 properly supported.
9569
9570 * gnatlink.adb (Gnatlink): In case the command line is too long for the
9571 .NET linker, gnatlink now concatenate all .il files and pass this to
9572 ilasm.
9573
d8ec5bf2 95742008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9e81dbc7 9575 Xavier Grave <grave@ipno.in2p3.fr>
d8ec5bf2
AJ
9576
9577 * Makefile.in: Add make ifeq define for mips/mipsel support.
9e81dbc7 9578 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
d8ec5bf2
AJ
9579 system-linux-mips.ads: New files.
9580
7437c8d4
AJ
95812008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9582
9e81dbc7 9583 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
7437c8d4
AJ
9584 detect systems using GNU libc.
9585 * gsocket.h: ditto.
9586 * socket.c: ditto.
9587 * adaint.c: ditto.
9588 * link.c: ditto.
9589
1dab7b35
AJ
95902008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9591
9e81dbc7 9592 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
1dab7b35
AJ
9593 constant constant for sysconf call.
9594 (bit_field): New packed boolean type used by cpu_set_t.
9595 (cpu_set_t): New type corresponding to the C type with
9596 the same name. Note that on the Ada side we use a bit
9597 field array for the affinity mask. There is not need
9598 for the C macro for setting individual bit.
9599 (pthread_setaffinity_np): New imported routine.
9600 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
9601 on GNU/kFreeBSD.
9602
39fcde8f
EB
96032008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9604
9605 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
9606
9dd9bf80
EB
96072008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9608
9609 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
9610 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
9611 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
9612 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
9613 Return by Depressed Stack Pointer.
9614
2d091b12
EB
96152008-04-06 Eric Botcazou <ebotcazou@adacore.com>
9616
9617 * decl.c (is_variable_size): Do not unconditionally return false
9618 on non-strict alignment platforms.
9619
1bde5bc4
EB
96202008-04-06 Eric Botcazou <ebotcazou@adacore.com>
9621
9622 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
9623 used to process all the variants of the specified type.
9624 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
9625 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
9626 (rest_of_type_decl_compilation): Likewise.
9627 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
9628
9ff420f1
PB
96292008-04-03 Paolo Bonzini <bonzini@gnu.org>
9630
1bde5bc4
EB
9631 * gigi.h (insert_block): Kill.
9632 * utils.c (insert_block): Kill.
9ff420f1 9633
bf1e48d1
EB
96342008-04-02 Eric Botcazou <ebotcazou@adacore.com>
9635
9636 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
9637 type has self-referential size, get the size from the initializing
9638 expression directly if it is also a constant whose nominal type
9639 has self-referential size.
9640
a6a0635e
JDA
96412008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9642
51e5c7b5
JDA
9643 PR ada/33688
9644 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
9645
a6a0635e
JDA
9646 PR ada/33857
9647 * env.c: Always include crt_externs.h if __APPLE__ is defined.
9648 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
9649
4d22f5b1
AJ
96502008-04-01 Andreas Jaeger <aj@suse.de>
9651
9652 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
9653 IP_PKTINFO.
9654
dec55d76
RW
96552008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9656
9657 * g-table.adb, g-tasloc.adb, g-traceb.ads,
9658 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
9659 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
9660 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
9661 gnatlink.adb, gnatmem.adb, gprep.adb,
9662 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
9663 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
9664 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
9665 lib-xref.ads, lib.adb, link.c, live.ads,
9666 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
9667 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
9668 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
9669 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
9670 namet.adb, namet.h, nlists.adb, nlists.ads,
9671 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
9672 osint-c.ads, osint.adb, osint.ads, output.ads,
9673 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
9674 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
9675 par-endh.adb, par-labl.adb, par-prag.adb,
9676 par-sync.adb, par-tchk.adb, par-util.adb,
9677 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
9678 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
9679 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
9680 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
9681
5a864002
EB
96822008-03-31 Eric Botcazou <ebotcazou@adacore.com>
9683
9684 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
9685 size if it has overflowed.
9686
2566855a 96872008-03-31 Olivier Hainque <hainque@adacore.com>
9e81dbc7 9688 Eric Botcazou <ebotcazou@adacore.com>
2566855a
OH
9689
9690 * utils2.c (find_common_type): Document assumption on t1/t2 vs
9691 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
9692
e14c931f
RW
96932008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9694
9695 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
9696 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
9697 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9698 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
9699 exp_tss.ads, exp_util.adb, exp_util.ads,
9700 exp_vfpt.adb, freeze.adb, freeze.ads,
9701 frontend.adb, g-alleve.adb, g-altcon.adb,
9702 g-altive.ads, g-alveop.ads, g-alvevi.ads,
9703 g-arrspl.adb, g-busorg.ads, g-calend.adb,
9704 g-calend.ads, g-casuti.ads, g-cgideb.adb,
9705 g-comlin.adb, g-comlin.ads, g-curexc.ads,
9706 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
9707 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
9708 g-dyntab.adb, g-encstr.ads, g-excact.ads,
9709 g-except.ads, g-expect.ads, g-heasor.adb,
9710 g-hesora.adb, g-hesorg.adb, g-htable.ads,
9711 g-locfil.ads, g-md5.adb, g-md5.ads,
9712 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
9713 g-pehage.adb, g-pehage.ads, g-regexp.adb,
9714 g-regexp.ads, g-regpat.adb, g-regpat.ads,
9715 g-soccon-aix.ads, g-soccon-darwin.ads,
9716 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
9717 g-soccon-hpux.ads, g-soccon-irix.ads,
9718 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
9719 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
9720 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
9721 g-soccon-solaris.ads, g-soccon-tru64.ads,
9722 g-soccon-vms.ads, g-soccon-vxworks.ads,
9723 g-soccon.ads, g-socket.adb, g-socket.ads,
9724 g-socthi-mingw.adb, g-socthi-vms.adb,
9725 g-socthi-vxworks.adb, g-soliop-mingw.ads,
9726 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
9727 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
9728 typos.
9729
2bc894d9
EB
97302008-03-27 Eric Botcazou <ebotcazou@adacore.com>
9731
9732 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
9733 if the procedure is imported.
9734
640bd0bf
AC
97352008-03-26 Arnaud Charlet <charlet@adacore.com>
9736
9737 * adaint.c: Fix warnings.
9738
0afae63b
AC
97392008-03-26 Arnaud Charlet <charlet@adacore.com>
9740
9741 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
9742
afc5f979
AC
97432008-03-26 Arnaud Charlet <charlet@adacore.com>
9744
9745 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
9746 Fix problem of status check for null file
9747
c5d31169
AC
97482008-03-26 Arnaud Charlet <charlet@adacore.com>
9749
9750 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
9751 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
9752 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
9753 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
9754 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
9755 comments.
9756
b501b251
AC
97572008-03-26 Thomas Quinot <quinot@adacore.com>
9758
2bc894d9 9759 PR ada/33688
b501b251
AC
9760 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
9761 Get_Socket_Option): Add support for Receive_Packet_Info.
9762
9763 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
9764 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
9765 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
9766 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
9767 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
9768 new constants SO_REUSEPORT and IP_PKTINFO
9769
97702008-03-26 Robert Dewar <dewar@adacore.com>
9771
9772 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
9773 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
9774 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
9775 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
9776 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
9777 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
9778 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
9779 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9780 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
9781 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
9782 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9783 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
9784 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
9785 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
9786 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
9787 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
9788 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
9789 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
9790 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
9791 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
9792 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
9793 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
9794 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
9795 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
9796 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
9797 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
9798 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
9799 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
9800 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
9801 s-tasloc.adb: Minor reformatting.
9802 Update comments.
9803 Remove "used for" sections from comments.
9804
98052008-03-26 Robert Dewar <dewar@adacore.com>
9806
9807 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9808 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9809 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9810 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9811 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9812 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9813 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9814 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9815 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9816 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9817 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9818 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9819 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9820 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9821 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9822 double spaced if it fits on one line and otherwise single spaced.
9823
98242008-03-26 Arnaud Charlet <charlet@adacore.com>
9825
9e81dbc7
AS
9826 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
9827 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
b501b251
AC
9828 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
9829 or task info if the thread could not be created.
9830
98312008-03-26 Arnaud Charlet <charlet@adacore.com>
9832
9833 * gnatvsn.ads (Library_Version): Bump to 4.4.
9834 (Current_Year): Bump to 2008.
9835
98362008-03-26 Robert Dewar <dewar@adacore.com>
9837
9838 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
9839
9840 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
9841
9842 * debug.adb: Add debug flags d.r and d.v
9843 Add debug flag .T (Optimize_Alignment (Time))
9844 Add debug flag .S (Optimize_Alignment (Space))
9845
9846 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
9847 depending on setting of relevant debug flags.
9848 Replace use of Warnings_Off by Has_Warnings_Off
9849 (Freeze_Entity): In circuit for warning on suspicious convention
9850 actuals, do not give warning if subprogram has same entity as formal
9851 type, or if subprogram does not come from source.
9852 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
9853 if Optimize_Alignment set to Space.
9854
9855 * frontend.adb: Add call to Sem_Warn.Initialize
9856 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
9857 Reset Optimize_Alignment mode from debug switches .S and .T
9858
9859 * layout.adb (Layout_Composite_Object): Rewritten for
9860 Optimize_Aligment pragma.
9861
9862 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
9863 mode.
9864
9865 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
9866
9867 * par-prag.adb (N_Pragma): Chars field removed, use Chars
9868 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
9869 this change. Add entry for pragma Optimize_Alignment
9870
9871 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
9872 (Pragma_Identifier (..
9873 instead, adjustments throughout to accomodate this change.
9874 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
9875 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
9876 Add implementation of pragma Optimize_Alignment
9877
98782008-03-26 Vincent Celier <celier@adacore.com>
9879
9880 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
9881 Improve memory usage to avoid use of stack.
9882
98832008-03-26 Robert Dewar <dewar@adacore.com>
9884
9885 * a-teioed.ads: Correct value of Default_Fill
9886
9887 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
9888
98892008-03-26 Robert Dewar <dewar@adacore.com>
9890
9891 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
9892 with Current_Output (introduce Self).
9893
98942008-03-26 Robert Dewar <dewar@adacore.com>
9895
9896 * checks.adb (Ensure_Valid): Capture valid status if possible
9897 (eliminate checks)
9898
98992008-03-26 Robert Dewar <dewar@adacore.com>
9900
9901 * stand.ads: Deal with reordering of package standard declarations
9902
9903 * cstand.adb: Put package Standard declarations in proper order
9904
99052008-03-26 Robert Dewar <dewar@adacore.com>
9906
9907 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
9908 (Pragma_Identifier (.. instead.
9909 (OK_To_Reorder_Components): New flag
9910 (Has_Entries): Code cleanup.
9911 (Warnings_Off_Used): New flag
9912 (Warnings_Off_Used_Unmodified): New flag
9913 (Warnings_Off_Used_Unreferenced): New flag
9914 (Has_Warnings_Off): New function
9915 (Has_Unmodified): New function
9916 (Has_Unreferenced): New function
9917 (Is_Trivial_Subprogram): New flag
9918 (Is_Static_Dispatch_Table_Entity): New attribute.
9919 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
9920 (more consistent with other similar names)
9921 (Access_Subprogram_Type): New classification function
9922
99232008-03-26 Robert Dewar <dewar@adacore.com>
9924
9925 * errout.ads: Document new !! insertion sequence
9926
9927 * errout.adb (N_Pragma): Chars field removed, use Chars
9928 (Pragma_Identifier (.. instead.
9929 Replace use of Warnings_Off by Has_Warnings_Off
9930 (Error_Msg_Internal): Don't delete warning ending in !!
9931
99322008-03-26 Robert Dewar <dewar@adacore.com>
9933
9934 * par.adb (Check_No_Right_Paren): Removed no longer used
9935
9936 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
9937 (Pragma_Identifier (.. instead.
9938
9939 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
9940
9941 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
9942 par-ch4.adb: Minor improvements in error recovery and messages.
9943
9944 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
9945 non-serious
9946
9947 * par-ch9.adb: Minor improvements in error recovery and messages
9948 (P_Protected): Better error recovery for "protected type x;"
9949
9950 * par-util.adb: Minor improvements in error recovery and messages
9951 (Check_No_Right_Paren): Removed no longer used
9952
99532008-03-26 Ed Schonberg <schonberg@adacore.com>
9954
9955 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
9956 that the prefix of an attribute is the type of the aggregate being
9957 expanded.
9958
99592008-03-26 Javier Miranda <miranda@adacore.com>
9960 Robert Dewar <dewar@adacore.com>
9961
9962 * exp_attr.adb (N_Pragma): Chars field removed.
9963 (Expand_N_Attribute_Reference): If the designated type associated with
9964 attribute 'Unrestricted_Access is a subprogram entity then replace it
9965 by an E_Subprogram_Type itype.
9966 Implement attribute Old
9967
9968 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
9969
9970 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
9971 Replace call to
9972 New_Internal_Entity by call to Create_Itype to centralize calls
9973 building itypes, ad propagate the convention of the designated
9974 subprogram. In addition, disable the machinery cleaning constant
9975 indications from all entities in current scope when 'Unrestricted_Access
9976 corresponds with a node initializing a dispatch table slot.
9977 (Analyze_Attribute): Parameterless attributes returning a string or a
9978 type will not be called with improper arguments, so we can remove junk
9979 code that was dealing with this case.
9980 Implement attribute Old
9981
9982 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
9983 Add entry for pragma Optimize_Alignment
9984 New standard names Sync and Synchronize
9985
99862008-03-26 Robert Dewar <dewar@adacore.com>
9987 Arnaud Charlet <charlet@adacore.com>
9988
9989 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
9990 stmt.
9991 (No_Exception_Propagation_Active): New function.
9992 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9993 Update comments, and review all uses of No_Exception_Propagation, which
9994 are now correct and in sync with what gigi expects.
9995
9996 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
9997 function.
9998 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9999 Update comments, and review all uses of No_Exception_Propagation, which
10000 are now correct and in sync with what gigi expects.
10001
100022008-03-26 Ed Schonberg <schonberg@adacore.com>
10003
10004 * sem_ch3.adb (Access_Definition): If the access type is the return
10005 result of a protected function, create an itype reference for it
10006 because usage will be in an inner scope from the point of declaration.
10007 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
10008 OK_To_Reorder_Components.
10009 (Make_Index): If an overloaded range includes a universal integer
10010 interpretation, resolve to Standard.Integer.
10011 (Analyze_Subtype_Indication): Copy Convention to subtype
10012 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
10013 limited an synchronized progenitors in type declaration and private
10014 extension declarations.
10015
10016 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
10017 protected subprogram body, determine proper scope from subprogram
10018 declaration.
10019
100202008-03-26 Robert Dewar <dewar@adacore.com>
10021
10022 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
10023 No_Run_Time_Mode
10024
100252008-03-26 Gary Dismukes <dismukes@adacore.com>
10026
10027 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
10028 of a heap allocator for a limited unconstrained function return when
10029 resstriction No_Allocators is active.
10030 (Analyze_Allocator): The restriction No_Allocators is now only checked
10031 on allocators that have Comes_From_Source set, as per RM-H.4(7).
10032
10033 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
10034 of a heap allocator for a limited unconstrained function return when
10035 resstriction No_Allocators is active.
10036 (Analyze_Allocator): The restriction No_Allocators is now only checked
10037 on allocators that have Comes_From_Source set, as per RM-H.4(7).
10038 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
10039 operands are fixed-point types, the universal_fixed predefined operation
10040 is used, regardless of whether the operand type (s) have a primitive
10041 operation of the same name.
10042
100432008-03-26 Javier Miranda <miranda@adacore.com>
10044
10045 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
10046 Is_Static_Dispatch_Table
10047 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
10048 to Exchange_Declarations to exchange the private and full-view. Bug
10049 found working in this issue.
10050 (Expand_Dispatching_Call): Propagate the convention of the subprogram
10051 to the subprogram pointer type.
10052 (Make_Secondary_DT): Replace generation of Prim'Address by
10053 Address (Prim'Unrestricted_Access)
10054 (Make_DT): Replace generation of Prim'Address by
10055 Address (Prim'Unrestricted_Access)
10056 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
10057 simple call form for single entry.
10058 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
10059 tables of predefined primitives).
10060 (Make_Secondary_DT): Add support to handle access to dispatch tables of
10061 predefined primitives.
10062 (Make_Tags): Add entities to Access_Dispatch_Table associated with
10063 access to dispatch tables containing predefined primitives.
10064
10065 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
10066 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
10067 this change.
10068 (Register_Predefined_DT_Entry): Updated to handle the new contents
10069 of attribute Access_Disp_Table (pointers to dispatch tables containing
10070 predefined primitives).
10071
10072 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
10073 subprogram.
10074 (Find_Interface_ADT): Updated to skip the new contents of attribute
10075 Access_Dispatch_Table (pointers to dispatch tables containing predefined
10076 primitives).
10077
10078 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
10079 concurrent types.
10080 (Set_Convention): Use new function Is_Access_Subprogram_Type
10081 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
10082 Access_Dispatch_Table (pointers to dispatch tables containing predefined
10083 primitives).
10084
10085 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
10086 expanded code avoiding calls to Build_Predef_Prims.
10087 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
10088 call to Build_Get_Predefined_Prim_Op_Address.
10089
100902008-03-26 Javier Miranda <miranda@adacore.com>
10091
10092 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
10093 subprogram Corresponding_Runtime_Package to know the runtime package
10094 that will provide support to a given protected type.
10095
10096 * exp_ch9.adb (Add_Private_Declarations,
10097 Build_Protected_Subprogram_Call,
10098 Build_Protected_Entry, Build_Simple_Entry_Call,
10099 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
10100 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
10101 cleanup using the new centralized subprogram Corresponding_Runtime
10102 Package to know the runtime package that provides support to
10103 a given protected type.
10104
101052008-03-26 Ed Schonberg <schonberg@adacore.com>
10106
10107 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
10108 assignment is within the initialization procedure for a packed array,
10109 and Initialize_Scalars is enabled, compile right-hand side with checks
10110 off, because the value is purposely out of range.
10111
101122008-03-26 Vincent Celier <celier@adacore.com>
10113
10114 * gnatcmd.adb: Add processing for GNAT SYNC
10115
10116 * vms_conv.ads: (Command_Type): Add command Sync
10117
10118 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
10119
10120 * vms_data.ads: Add entries for -gnatw.w
10121 Add qualifier for gnatstub --header-file option
10122 Add switches for GNAT SYNC
10123
10124 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
10125 (Add_Package_Name): New procedure
10126 (Package_Name_List): New function
10127 (Initialize): Add known package names to the list
10128 (Register_New_Package): Add the new package name to the list
10129
101302008-03-26 Robert Dewar <dewar@adacore.com>
10131
10132 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
10133 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
10134 Raise_Exception by "raise with" construct.
10135
101362008-03-26 Pascal Obry <obry@adacore.com>
10137
10138 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
10139 supported platforms.
9e81dbc7 10140
b501b251 10141 * Makefile.rtl: Add g-sercom.o.
9e81dbc7 10142
b501b251 10143 * impunit.adb: Add g-sercom.adb.
9e81dbc7 10144
b501b251
AC
10145 * s-crtl.ads (open): New routine.
10146 (close): Likewise.
10147 (write): Likewise.
9e81dbc7 10148
b501b251
AC
10149 * s-osinte-mingw.ads (BYTE): New type.
10150 (CHAR): Likewise.
10151 (OVERLAPPED): Likewise.
10152 (GENERIC_READ): New constant.
10153 (GENERIC_WRITE): Likewise.
10154 (OPEN_EXISTING): Likewise.
10155 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
10156 type instead.
10157 (CreateFile): New routine.
10158 (WriteFile): Likewise.
10159 (ReadFile): Likewise.
10160 (CloseHandle): Move next to the other file oriented routines.
10161
10162 * g-sercom.ads: New unit.
10163
10164 * g-sercom.adb: Default implementation, calls to this unit will raise
10165 a program error exception.
9e81dbc7 10166
b501b251
AC
10167 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
10168 GNU/Linux implementations.
10169
101702008-03-26 Robert Dewar <dewar@adacore.com>
10171
10172 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
10173
10174 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
10175 unchecked conversion for different conventions only for subprogram
10176 pointers or on VMS.
10177
101782008-03-26 Vincent Celier <celier@adacore.com>
10179
10180 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
10181 to check if the specified object file is correct.
10182
101832008-03-26 Thomas Quinot <quinot@adacore.com>
10184
10185 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
10186 Comes_From_Source to exclude primitives from being checked. We want to
10187 exclude predefined primitives only, so use the appropriate specific
10188 predicate. Also, flag a formal parameter of an anonymous
10189 access-to-subprogram type as illegal for a primitive operation of a
10190 remote access to class-wide type.
10191
101922008-03-26 Vincent Celier <celier@adacore.com>
10193
10194 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
10195 known, check if it may be a missspelling of a known package name. In
10196 not verbose, not mode, issue warnings only if the package name is a
10197 possible misspelling.
10198 In verbose mode, always issue a warning for a not known package name,
10199 plus a warning if the name is a misspelling of a known package name.
10200
10201 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
10202 limited withs or limited withs are parse during one call.
10203 (Parse_Single_Project): Post parse context clause in two passes: non
10204 limited withs before current project and limited withs after current
10205 project.
10206
10207 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
10208 project with the name With_Name, even if it is only extended indirectly.
10209 (Recursive_Process): Process projects in order: first single withs, then
10210 current project, then limited withs.
10211
10212 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
10213 project with the name With_Name, even if it is only extended indirectly.
10214
102152008-03-26 Robert Dewar <dewar@adacore.com>
10216
10217 * scn.adb (Initialize_Scanner): Format messages belong on standard error
10218
102192008-03-26 Ed Schonberg <schonberg@adacore.com>
10220
10221 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
10222 a generic subprogram that is imported, do not attempt to compile
10223 non-existent body.
10224
10225 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
10226 imported, do not generate a raise_program_error for the non-existent
10227 body.
10228 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
10229 perform minimal name resolution on the generic to avoid spurious
10230 warnings.
10231 (Find_Actual_Type): the designated type of the actual in a child unit
10232 may be declared in a parent unit without being an actual.
10233
102342008-03-26 Robert Dewar <dewar@adacore.com>
10235
10236 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
10237 * sinfo.ads, sinfo.adb (From_At_End): New flag
10238
102392008-03-26 Ed Schonberg <schonberg@adacore.com>
10240
10241 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
10242 operations that have an interface parameter.
10243 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
10244 Don't treat No_Return call as raise.
10245
10246 * sem_disp.adb (Check_Dispatching_Operations): apply check for
10247 non-primitive interface primitives to access parameters, not to all
10248 parameters of an access type.
10249
102502008-03-26 Ed Schonberg <schonberg@adacore.com>
10251
10252 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
10253 declarations of a parent unit are made visible when compiling a child
10254 instance, the parent is not a hidden open scope, even though it may
10255 contain other pending instance.
9e81dbc7 10256
b501b251
AC
10257 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
10258 hidden open scope for some child instance, it does affect the
10259 visibility status of other stach entries.
10260 (Analyze_Object_Renaming): Check that a class-wide object cannot be
10261 renamed as an object of a specific type.
10262
102632008-03-26 Robert Dewar <dewar@adacore.com>
10264
10265 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
10266 recursion and raise SE directly.
10267 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
10268 set for formal type for IN mode parameter.
10269
102702008-03-26 Robert Dewar <dewar@adacore.com>
10271
10272 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
10273 (Initialize): New procedure
10274 (Output_Warnings_Off_Warnings): New procedure
10275 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
10276 (Output_Non_Modifed_In_Out_Warnings): Ditto
10277 (Warn_On_Unreferenced_Entity): Ditto
10278
102792008-03-26 Vincent Celier <celier@adacore.com>
10280
10281 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
10282 readable.
10283
102842008-03-26 Matthew Heaney <heaney@adacore.com>
10285
9e81dbc7 10286 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
b501b251
AC
10287 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
10288 Marked with clauses as private, and controlled operations as overriding
10289
102902008-03-26 Robert Dewar <dewar@adacore.com>
10291
10292 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
10293
102942008-03-26 Robert Dewar <dewar@adacore.com>
10295
10296 * back_end.adb, back_end.ads: Minor reformatting
10297
10298 * bindgen.adb: Minor clarification of comments
10299
10300 * fname.ads: Minor comment fixes
10301
10302 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
10303 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
10304
10305 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
10306 xsnames.adb: Remove warnings off pragma no longer needed
10307
10308 * a-catizo.ads, a-calari.ads, a-calfor.adb,
10309 a-calfor.ads: Fix header.
10310
103112008-03-26 Tristan Gingold <gingold@adacore.com>
10312
10313 * init.c: Do not adjust pc for HPARITH on alpha/vms.
10314
103152008-03-26 Robert Dewar <dewar@adacore.com>
10316
10317 * lib-xref.adb: (OK_To_Set_Reference): New function
10318 (Generate_Reference): Don't set referenced from occurrence in Warnings,
10319 Unmodified, or Unreferenced pragma
10320
103212008-03-26 Robert Dewar <dewar@adacore.com>
10322
10323 * alloc.ads: Add entries for Warnings_Off_Pragmas table
10324
103252008-03-26 GNAT Script <nobody@adacore.com>
10326
10327 * Make-lang.in: Makefile automatically updated
10328
103292008-03-26 Robert Dewar <dewar@adacore.com>
10330
10331 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
10332 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
10333 removed, use Chars (Pragma_Identifier (.. instead, adjustments
10334 throughout to accomodate this change.
10335
10336 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
10337
10338 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
10339 Einfo.Set_Needs_Debug_Info)
10340
103412008-03-26 Robert Dewar <dewar@adacore.com>
10342
10343 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
10344 Add description for the new gnatstub option '--header-file'
10345 clarification of -gnatwz/-gnatwZ
10346 Add a "Irix-Specific Considerations" section to document the need to
10347 set LD_LIBRARY_PATH when using the default shared runtime library.
10348 Added documentation for both gcov and gprof.
10349
10350 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
10351 messages that are not suppressed when clients are compiled.
10352 Add documentation of s-pooglo s-pooloc
10353 Document the new GNAT.Serial_Communications API.
10354 Add documentation for 'Old attribute
10355 Add description of pragma Optimize_Alignment
10356
10357 * ug_words: Add entries for -gnatw.w -gnatw.W
10358
10359 * usage.adb: Add line for -gnatw.w (warn on warnings off)
10360
3a9634be
EB
103612008-03-25 Eric Botcazou <ebotcazou@adacore.com>
10362
10363 Revert
10364 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10365 PR ada/35186
10366 * decl.c (maybe_pad_type): Avoid padding an integral type when
10367 bumping its alignment is sufficient.
10368
53b308f6
AC
103692008-03-25 Arnaud Charlet <charlet@adacore.com>
10370
10371 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
10372 Fix wrong formatting (lines too long)
10373
8fc789c8
RW
103742008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10375
10376 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
10377 a-calend-vms.adb, a-calend.adb, a-calend.ads,
10378 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
10379 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
10380 a-cohama.ads, a-comlin.ads, a-coorse.adb,
10381 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
10382 a-except-2005.ads, a-except.adb, a-except.ads,
10383 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
10384 a-exextr.adb, a-filico.ads, a-finali.ads,
10385 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
10386 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
10387 a-sequio.ads, a-strbou.ads, a-strfix.adb,
10388 checks.adb, exp_ch3.adb, exp_ch4.adb,
10389 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
10390 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
10391 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
10392 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
10393 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
10394
15f6d6e7
RD
103952008-03-24 Robert Dewar <dewar@adacore.com>
10396
10397 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
10398 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
10399 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
10400 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
10401 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
10402 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
10403 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10404 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
10405 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
10406 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
10407 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
10408 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
10409 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
10410 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
10411 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10412 double spaced if it fits on one line and otherwise single spaced.
10413
b2e74434
RW
104142008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10415
10416 PR documentation/15479
10417 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
10418 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
10419 (doc/gnat_ugn.info): Renamed from ...
10420 (doc/gnat_ugn_unw.info): ... this.
10421 (doc/gnat_ugn.dvi): Renamed from ...
10422 (doc/gnat_ugn_unw.dvi): ... this.
10423 (doc/gnat_ugn.pdf): Renamed from ...
10424 (doc/gnat_ugn_unw.pdf): ... this.
10425 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
10426 Adjusted.
10427 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
10428 unconditionally to gnat_ugn.info. Fix cross references to the
10429 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
10430 and GNU make manuals to be proper texinfo links.
10431 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
10432
f4351641
OH
104332008-03-21 Olivier Hainque <hainque@adacore.com>
10434
10435 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
10436 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
10437
10c5d1a0
EB
104382008-03-21 Eric Botcazou <ebotcazou@adacore.com>
10439
10440 * trans.c (addressable_p): Add notes on addressability issues.
10441
457b629a 104422008-03-21 Olivier Hainque <hainque@adacore.com>
9e81dbc7 10443 Ed Schonberg <schonberg@adacore.com>
457b629a
OH
10444
10445 * trans.c (addressable_p): Accept COND_EXPR when both arms
10446 are addressable.
10447 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
10448 (call_to_gnu): Do not use name reference in the error message
10449 for a misaligned by_reference_parameter. The actual may be a
10450 general expression.
10451
ac5dc795
PB
104522008-03-18 Paolo Bonzini <bonzini@gnu.org>
10453
e1da2b17
EB
10454 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10455
79f34d07
RW
104562008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10457
10458 * gnat_rm.texi (Implementation Defined Characteristics)
10459 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
10460 appropriate.
10461 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
10462 (Switches for gnatchop, Installing a library): Likewise.
10463
e1e7141c
EB
104642008-03-10 Eric Botcazou <ebotcazou@adacore.com>
10465
10466 * trans.c (emit_range_check): Do not emit the check if the base type
10467 of the expression is the type against which its range must be checked.
10468
892f6e65
EB
104692008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10470
10471 * decl.c (maybe_pad_type): Use value_factor_p.
10472
7934d781
EB
104732008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10474
10475 * lang.opt (nostdlib): Move around.
10476 * misc.c (gnat_handle_option): Fix formatting.
10477 (gnat_dwarf_name): Move around.
10478 * trans.c (Case_Statement_to_gnu): Fix formatting.
10479 (gnat_to_gnu): Likewise.
10480 * utils.c (aggregate_type_contains_array_p): Likewise.
10481 (create_subprog_decl): Likewise.
10482
8f5893ab
EB
104832008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10484
10485 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
10486 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
10487
ba436c3b
EB
104882008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10489
10490 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
10491 BIGGEST_ALIGNMENT when capping the alignment of records with
10492 strict alignment and size clause.
10493
6ab36dac
EB
104942008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10495
10496 * lang-specs.h: Pass -gnatwa if -Wall is passed.
10497 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
10498 and -Wuninitialized.
10499 (gnat_post_options): Clear warn_unused_parameter.
10500
8853cb0b
EB
105012008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10502
10503 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
10504 aligned bit-fields, bumping the alignment of the record type if deemed
10505 profitable.
10506 (value_factor_p): Return false instead of 0.
10507
66abe22c
EB
105082008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10509
10510 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
10511 for scalar types with small alignment.
10512
563569be
EB
105132008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10514
10515 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
10516 from that of the front-end's end label.
10517 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
10518 from that of the loop label.
10519
b49a1a1e
EB
105202008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10521
10522 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
10523 comment for the packed array type case.
10524 * utils.c (build_template): Use a loop to strip padding or
10525 containing records for justified modular types.
10526
fd5c81e9
EB
105272008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10528
10529 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
10530 large alignments specified for types.
10531 (validate_alignment): Minor cleanup.
10532
7f42aa36
EB
105332008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10534
10535 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
10536 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
10537 the component for packing, if possible, as well as if a component
10538 size clause is specified.
10539 <E_Record_Subtype>: For an array type used to implement a packed
10540 array, get the component type from the original array type.
10541 Try to get a smaller form of the component for packing, if possible,
10542 as well as if a component size clause is specified.
10543 (round_up_to_align): New function.
10544 (make_packable_type): Add in_record parameter.
10545 For a padding record, preserve the size. If not in_record and the
10546 size is too large for an integral mode, attempt to shrink the size
10547 by lowering the alignment.
10548 Ditch the padding bits of the last component.
10549 Compute sizes and mode manually, and propagate the RM size.
10550 Return a BLKmode record type if its size has shrunk.
10551 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
10552 Use Original_Array_Type to retrieve the type in case of an error.
10553 Adjust call to make_packable_type.
10554 (gnat_to_gnu_field): Likewise.
10555 (concat_id_with_name): Minor tweak.
10556 * trans.c (larger_record_type_p): New predicate.
10557 (call_to_gnu): Compute the nominal type of the object only if the
10558 parameter is by-reference. Do the conversion actual type -> nominal
10559 type if the nominal type is a larger record.
10560 (gnat_to_gnu): Do not require integral modes on the source type to
10561 avoid the conversion for types with identical names.
10562 (addressable_p): Add gnu_type parameter. If it is specified, do not
10563 return true if the expression is not addressable in gnu_type.
10564 Adjust recursive calls.
10565 * utils.c (finish_record_type): Remove dead code.
10566
2f76571e
EB
105672008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10568
10569 PR ada/35186
10570 * decl.c (maybe_pad_type): Avoid padding an integral type when
10571 bumping its alignment is sufficient.
10572
4d0e4612
RW
105732008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10574
ad6b5b00
RW
10575 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
10576 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
10577 statement.
10578 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
10579 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
10580 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
10581 code output strings.
10582 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
10583 system-vms_64.ads: Fix typos in ada source code comments.
10584 * sinfo-cn.adb: Remove incomplete sentence.
10585
4d0e4612
RW
10586 PR documentation/15479
10587 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
10588
acf6b7ab
ST
105892008-02-27 Samuel Tardieu <sam@rfc1149.net>
10590
10591 PR ada/22255
10592 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
10593
f5c064ab
ST
105942008-02-27 Samuel Tardieu <sam@rfc1149.net>
10595
10596 PR ada/34799
10597 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10598 that underlying type is present.
10599
2d593c86
TT
106002008-02-26 Tom Tromey <tromey@redhat.com>
10601
10602 * misc.c (internal_error_function): Remove test of
10603 USE_MAPPED_LOCATION.
10604 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
10605 (Sloc_to_locus): Remove old location code.
10606
443b3472
RW
106072008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10608
8dd07840
RW
10609 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
10610 `i.e.' by adding comma or `@:' as appropriate.
10611 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
10612 plain characters `C', use `@samp{C}'.
10613 * gnat_ugn.texi (File Naming Rules, About gnatkr)
10614 (Krunching Method): Likewise.
10615
443b3472
RW
10616 * gnat_ugn.texi (Conventions): List environment variables and
10617 metasyntactic variables.
10618 (Compiling Programs): Fix notation of metasyntactic variables.
10619 Add @file where appropriate. Use @file for file extensions,
10620 @samp for strings.
10621 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
10622 instead of @file, @env instead of @code.
10623
9538dfb9
RW
106242008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10625
d488f6ea
RW
10626 PR documentation/15479
10627 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
10628 and `...' with `@dots{}' or `@enddots{}'.
10629
1992bbd9
RW
10630 PR documentation/15479
10631 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
10632 use @command instead of @code, @option instead of @samp or @code,
10633 @code instead of @var, @samp instead of @file.
10634
9538dfb9
RW
10635 PR documentation/15479
10636 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
10637 in Makefile rules, by using `&&' rather than `;'.
10638
e69044cb
RW
106392008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10640
10641 PR documentation/15479
10642 * gnat_ugn.texi: In non-code, avoid space before colon.
10643 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
10644 (Examples of gnatxref Usage): Use @command{vi} instead of
10645 @file{vi}.
10646 (Character Set Control): Do not use @code for UTF-8.
10647 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
10648 use @code for IEEE.
10649 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
10650 sample.
10651 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
10652
9e94c78f 106532008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
6a333ca0
JS
10654
10655 PR ada/35143
10656 * env.c: Add __rtems__ to if defined.
10657 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
10658 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
10659 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
10660 pragma Convention as required.
10661 * gsocket.h: Make compile in and out of RTS.
10662 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
10663 Use g-soccon-rtems.ads.
10664 * g-soccon-rtems.ads, system-rtems.ads: New files.
10665
72fb133f
KG
106662008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10667
10668 PR other/35107
10669 * Make-lang.in (gnat1): Add $(GMPLIBS).
10670
8fa07a56
EB
106712008-01-26 Eric Botcazou <ebotcazou@adacore.com>
10672
10673 * decl.c (components_to_record): Improve comment.
10674
0bf38239
EB
106752008-01-22 Eric Botcazou <ebotcazou@adacore.com>
10676
10677 * decl.c (components_to_record): Do not reuse the empty union type
10678 if there is a representation clause on the record.
10679 * trans.c (addressable_p): Return true for INTEGER_CST.
10680
461d6eb3
EB
106812008-01-21 Eric Botcazou <ebotcazou@adacore.com>
10682
10683 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
10684 in pointer arithmetics.
10685 * utils2.c (build_allocator): Likewise.
10686
9328dd57
EB
106872008-01-17 Eric Botcazou <ebotcazou@adacore.com>
10688
10689 * utils.c (build_function_stub): Properly build the call expression.
10690
052cec9b
EB
106912008-01-14 Eric Botcazou <ebotcazou@adacore.com>
10692
10693 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
10694 before converting the expression to the type of the object.
10695 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
10696 Stabilize constructors for special wrapping types.
10697
08ffbdad
EB
106982008-01-13 Eric Botcazou <ebotcazou@adacore.com>
10699
9e94c78f 10700 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6bf4cbe8 10701 when necessary. Merge some conditional statements. Update comments.
08ffbdad
EB
10702 Rename unchecked_convert_p local variable to suppress_type_conversion.
10703 Do not suppress conversions in the In case.
10704 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
10705 into account on non strict-alignment platforms.
10706
7219c2c7
EB
107072008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10708
10709 * utils.c (aggregate_type_contains_array_p): New predicate.
10710 (create_field_decl): In a packed record, force byte alignment
10711 for fields without specified position that contain an array.
10712
52ef2874
EB
107132008-01-12 Eric Botcazou <ebotcazou@adacore.com>
10714
10715 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
10716
3fa87ef8
JDA
107172008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
10718
10719 PR ada/34466
10720 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
10721 sysconf call.
10722 (bit_field): New packed boolean type used by cpu_set_t.
10723 (cpu_set_t): New type corresponding to the C type with
10724 the same name. Note that on the Ada side we use a bit
10725 field array for the affinity mask. There is not need
10726 for the C macro for setting individual bit.
10727 (pthread_setaffinity_np): New imported routine.
10728
9e94c78f 107292008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
e0658eda
TK
10730
10731 PR ada/34647
10732 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10733 on OpenBSD as is done on other BSD systems.
10734
10735 PR ada/34645
10736 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
10737 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
10738 I/O.
10739
10740 PR ada/34644
10741 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
10742 clearenv().
10743
10744 PR ada/34646
10745 * init.c (__gnat_error_handler, __gnat_install_handler,
10746 __gnat_init_float): Define for OpenBSD.
10747
10748 * initialize.c (__gnat_initialize): Define for OpenBSD.
10749
18bc9cca
ST
107502007-12-27 Samuel Tardieu <sam@rfc1149.net>
10751
10752 PR ada/34553
10753 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
10754 instead of mktemp() or tmpnam() on NetBSD.
10755
f0bf503e
EB
107562007-12-23 Eric Botcazou <ebotcazou@adacore.com>
10757
10758 * trans.c (call_to_gnu): Make the temporary for non-addressable
10759 In parameters passed by reference.
10760 (addressable_p): Return true for STRING_CST and CALL_EXPR.
10761
7469b7bc
AC
107622007-12-19 Robert Dewar <dewar@adacore.com>
10763
9e81dbc7 10764 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7469b7bc
AC
10765 Add pragma Warnings (Off) for unassigned IN OUT arguments
10766
10767 * sem_warn.adb (Output_Reference): Suppress messages for internal names
10768 (Check_References): Extensive changes to tune up warnings
10769 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
10770 (Has_Pragma_Unmodifed_Check_Spec): New function
10771 (Check_References): Implement pragma Unmodified
10772 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
10773
10774 * par-prag.adb: Dummy entry for pragma Unmodified
10775
10776 * sem_prag.adb: Implement pragma Unmodified
10777
10778 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
10779 (Proc_Next_Component_Or_Discriminant): Fix typo.
10780 Update comments.
10781
10782 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
10783 Unmodified.
10784 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
10785 because the former already takes care of discarding the result.
10786 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
10787 Add comment.
10788
10789 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
10790
107912007-12-19 Eric Botcazou <ebotcazou@adacore.com>
10792
10793 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
10794 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10795 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
10796 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
10797 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10798 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10799 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10800 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10801 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10802 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
10803 (Dynamic_Trampolines_Used): Delete.
10804
10805 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
10806 Turn on stack probing mechanism on LynxOS.
10807
108082007-12-19 Bob Duff <duff@adacore.com>
10809
10810 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
10811 the resulting tail recursion by hand. This prevents running out of
10812 memory on deeply nested concatenations, since Field2 is where the left
10813 operand of concatenations is stored.
10814 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
10815 clarify that it can only return OK or Abandon.
10816
10817 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
10818 operand by iteration, in order to avoid running out of memory on
10819 deeply-nested concatenations. Use the Parent pointer to get back up the
10820 tree.
10821 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
10822 Resolve_Op_Concat_Rest): New procedures split out of
10823 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
10824 clearer.
10825
10826 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
10827 Traverse_Func, because the former already takes care of discarding the
10828 result.
10829
10830 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
10831 because the former already takes care of discarding the result.
10832 (Remove_Warning_Messages): Use appropriate subtype for Status and
9e81dbc7 10833 Discard
7469b7bc
AC
10834
108352007-12-19 Ed Schonberg <schonberg@adacore.com>
10836
10837 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
10838 discriminants forces expansion of the aggregate into assignments.
10839 (Init_Record_Controller): If the type of the aggregate is untagged and
10840 is not inherently limited, the record controller is not limited either.
10841
108422007-12-19 Robert Dewar <dewar@adacore.com>
10843
10844 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
10845 handling compile time known size of record or array (case of front end
10846 layout active, e.g. in GNAAMP).
10847
108482007-12-19 Javier Miranda <miranda@adacore.com>
10849
10850 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
10851 that forces the construction of static dispatch tables in case of
10852 record subtypes.
10853
108542007-12-19 Robert Dewar <dewar@adacore.com>
10855
10856 * exp_ch9.adb (Null_Statements): Moved to library level
10857 (Trivial_Accept_OK): New function
10858 (Expand_Accept_Declaration): Use Trivial_Accept_OK
10859 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
10860
108612007-12-19 Robert Dewar <dewar@adacore.com>
10862
10863 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
10864 in complex case where array is Volatile.
10865
108662007-12-19 Ed Schonberg <schonberg@adacore.com>
10867
10868 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
10869 properly the Ada2005 rules concerning when the current instance of a
10870 record type is aliased.
10871
108722007-12-19 Ed Schonberg <schonberg@adacore.com>
10873
10874 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
10875 mangled declaration
10876 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
10877 declarations.
10878 (P_Variant_Part): Cleaner patch for parenthesized discriminant
10879
108802007-12-19 Vincent Celier <celier@adacore.com>
10881
10882 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
10883 package is not known
10884
10885 * prj-attr.ads (Unknown_Package): New constant
10886 Do not crash when an unknown package is in several projects
10887
10888 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
10889 ignored
10890
10891 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
10892 existing package Language_Processing.
10893
108942007-12-19 Ed Schonberg <schonberg@adacore.com>
10895 Gary Dismukes <dismukes@adacore.com>
44914a04 10896 Samuel Tardieu <sam@rfc1149.net>
7469b7bc
AC
10897
10898 PR ada/15803, ada/15805
10899 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
10900 illegal access subtypes when there is a constrained partial view.
10901 (Check_For_Premature_Usage): New procedure inside
10902 Access_Subprogram_Declaration for checking that an access-to-subprogram
10903 type doesn't reference its own name within any formal parameters or
10904 result type (including within nested anonymous access types).
10905 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
10906 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
10907 context is an access_to_variable, the expression cannot be an
10908 access_to_constant.
10909
109102007-12-19 Bob Duff <duff@adacore.com>
10911
10912 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
10913 (Analyze_Concatenation): Use iteration instead of recursion in order
10914 to avoid running out of stack space for deeply nested concatenations.
10915
109162007-12-19 Ed Schonberg <schonberg@adacore.com>
10917 Gary Dismukes <dismukes@adacore.com>
10918
10919 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
10920 whose renamed entity is a subprogram that requires overriding.
10921 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
10922 issuing an error for premature usage and issue a message that says
10923 'type' rather than 'object'.
10924
109252007-12-19 Gary Dismukes <dismukes@adacore.com>
10926
10927 PR ada/34149
10928 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
10929 presence of a statically tagged operand (Present (Static_Tag)) with
10930 test for Indeterm_Ancestor_Call when determining whether to propagate
10931 the static tag to tag-indeterminate operands (which forces dispatching
10932 on such calls).
10933 (Check_Controlling_Formals): Ada2005, access parameters can have
10934 defaults.
10935 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
10936 not insert subprogram in list of primitive operations if already there.
10937
109382007-12-19 Tristan Gingold <gingold@adacore.com>
10939
10940 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
10941 global variable.
10942
109432007-12-19 Thomas Quinot <quinot@adacore.com>
10944
10945 Part of PR ada/33688
10946 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
10947 datagram info on Linux.
10948
109492007-12-19 Vincent Celier <celier@adacore.com>
10950
10951 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
10952 that the source path name is always found in the dependencies.
10953
109542007-12-19 Robert Dewar <dewar@adacore.com>
10955
10956 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
10957 Fix name of Wide_Wide_Latin_1/9 file names
10958 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
10959 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
10960 Add missing documentation for Ada.Command_Line.Response_File
10961 Update list of warning letters for Warnings pragma
10962 Add documentation for pragma Unmodified
10963
43779dea
ST
109642007-12-19 Samuel Tardieu <sam@rfc1149.net>
10965
10966 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
10967
5287c2bc
AC
109682007-12-17 Arnaud Charlet <charlet@adacore.com>
10969
10970 * s-vxwork-alpha.ads: Removed, no longer used.
10971
6343804d
JJ
109722007-12-15 Jakub Jelinek <jakub@redhat.com>
10973
10974 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
10975
3958c9c8
ST
109762007-12-13 Samuel Tardieu <sam@rfc1149.net>
10977
10978 PR ada/34360
10979 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
10980 mlib-tgt-specific.adb.
10981
78185974
BD
109822007-12-13 Bob Duff <duff@adacore.com>
10983
10984 * trans.c (Attribute_to_gnu): Check for violations of the
10985 No_Implicit_Dynamic_Code restriction. This checking used to be done in
10986 the front end, but is moved here so we can make it more accurate.
10987
e9b54d64
AC
109882007-12-13 Pascal Obry <obry@adacore.com>
10989
10990 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
10991 version is provided for older GNU/Linux distribution not
10992 supporting thread affinity sets.
9e81dbc7 10993
e9b54d64
AC
10994 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
10995 call.
10996 (bit_field): New packed boolean type used by cpu_set_t.
10997 (cpu_set_t): New type corresponding to the C type with
10998 the same name. Note that on the Ada side we use a bit
10999 field array for the affinity mask. There is not need
11000 for the C macro for setting individual bit.
11001 (pthread_setaffinity_np): New imported routine.
9e81dbc7 11002
e9b54d64
AC
11003 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
11004 no null.
11005 (Create_Task): Set the processor affinity mask if information
11006 is present.
9e81dbc7 11007
e9b54d64 11008 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
9e81dbc7 11009
e9b54d64
AC
110102007-12-13 Robert Dewar <dewar@adacore.com>
11011
9e81dbc7
AS
11012 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11013 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
11014 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
e9b54d64
AC
11015 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
11016 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
9e81dbc7
AS
11017 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
11018 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
e9b54d64
AC
11019 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
11020 for subprogram pointers.
11021
11022 * g-ctrl_c.adb: New file.
11023
11024 * g-ctrl_c.ads (Install_Handler): New body.
11025
11026 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
11027 instead of obsolete function Is_Always_Inlined.
11028 (Freeze_Entity): check for tagged type in imported C subprogram
11029 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
11030 (Freeze_Entity): check for convention Ada subprogram pointer in
11031 imported C subprogram.
11032 (Freeze_Fixed_Point_Type): In the case of a base type where the low
11033 bound would be chopped off and go from negative to zero, force
11034 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
11035 bound) so that the size computation for the base type will take
11036 negative values into account.
11037
110382007-12-13 Eric Botcazou <ebotcazou@adacore.com>
11039 Bob Duff <duff@adacore.com>
11040 Tristan Gingold <gingold@adacore.com>
11041
9e81dbc7
AS
11042 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
11043 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11044 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
11045 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
11046 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
11047 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11048 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
e9b54d64 11049 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
9e81dbc7 11050 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
e9b54d64
AC
11051 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
11052 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
11053 (Always_Compatible_Rep): New flag to control trampolines globally.
11054 (Dynamic_Trampolines_Used): New flag for implementing the
11055 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
11056 and not yet set correctly for some targets).
11057
11058 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
11059 Simply indirectly call s-stchop when a task is created.
11060
9e81dbc7 11061 * ali.ads:
e9b54d64
AC
11062 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
11063 appears as an argument (entries A) in an ALI file.
11064
11065 * fe.h (Stack_Check_Limits): Declare new target parameter.
11066 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
11067
11068 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
11069 This variable is declared in C to be sure not subject to elaboration
11070 code.
11071 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
11072 Storage_Error.
11073
11074 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
11075 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
11076
11077 * s-stchop.ads: Add comments.
11078
11079 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
11080 limit method of stack checking.
11081
11082 * s-stchop-limit.ads: New file.
11083
110842007-12-13 Robert Dewar <dewar@adacore.com>
11085
9e81dbc7
AS
11086 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
11087 a-cihama.adb, g-awk.adb,
e9b54d64
AC
11088 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
11089 warnings
11090
11091 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
11092
11093 * sem.adb: Update handling of assigned value/unreferenced warnings
11094
11095 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
11096
11097 * lib-xref.ads: Improve documentation for k xref type
11098
9e81dbc7 11099 * lib-xref.adb:
e9b54d64
AC
11100 Update handling of assigned value/unreferenced warnings
11101 (Generate_Reference): Warning for reference to entity for which a
11102 pragma Unreferenced has been given should be unconditional.
11103 If the entity is a discriminal, mark the original
11104 discriminant as referenced.
11105
11106 * sem_warn.ads, sem_warn.adb
11107 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
11108 no entities referenced in package
11109 (Check_One_Unit): Don't give message about no entities referenced in
11110 a package if a pragma Unreferenced has appeared.
11111 Handle new warning flag -gnatw.a/-gnatw.A
11112 Update handling of assigned value/unreferenced warnings
11113
11114 * atree.h: Add flags up to Flag247
11115 (Flag231): New macro.
11116
111172007-12-13 Jose Ruiz <ruiz@adacore.com>
11118
11119 * adaint.h: (__gnat_plist_init): Not defined for RTX.
11120
11121 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
11122 RTX systems.
11123
11124 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
11125 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
11126 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
11127 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
11128
9e81dbc7 11129 * mingw32.h:
e9b54d64
AC
11130 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
11131
11132 * sysdep.c (winflush_function for RTX): Procedure that does nothing
11133 since we only have problems with Windows 95/98, which are not
11134 supported by RTX.
11135 (__gnat_ttyname): Return the empty string on Nucleus, just as
11136 done on vxworks.
11137
111382007-12-13 Robert Dewar <dewar@adacore.com>
11139
9e81dbc7 11140 * a-textio.adb, a-textio.ads:
e9b54d64
AC
11141 Extensive changes to private part for wide character encoding
11142
11143 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
11144 (Look_Ahead): Fix mishandling of encoded sequences
11145 Move declaration of Wch_Con to private part (should not be visible)
11146
11147 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
11148 UTF-8. Probably this is never used, but if it is, brackets is
11149 clearly correct.
11150
11151 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
11152 setting wide character encoding for no main program case and when
11153 encoding is specified using -W?
11154 Initialize stack limit of environment task if stack limit method of
11155 stack checking is enabled.
11156 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
11157 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
11158 (Get_Main_Unit_Name): New function.
11159 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
11160 (Gen_Output_File): Set Bind_Main_Program to True for .NET
11161
11162 * bindusg.adb: Add line for -Wx switch
11163
11164 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
11165 Add comments
11166 Add new useful constant WC_Longest_Sequences
11167
11168 * switch-b.adb: Clean up handling of -Wx switch
11169 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11170
11171 * switch-c.adb: -gnatg activates warning on assertion errors
11172 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11173
11174 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
11175
111762007-12-13 Robert Dewar <dewar@adacore.com>
11177 Ed Schonberg <schonberg@adacore.com>
11178
11179 * a-ngcoty.adb: New pragma Fast_Math
11180
11181 * opt.adb: New pragma Fast_Math
11182
9e81dbc7 11183 * par-prag.adb:
e9b54d64
AC
11184 Add Implemented_By_Entry to the list of pragmas which do not require any
11185 special processing.
11186 (Favor_Top_Level): New pragma.
11187 New pragma Fast_Math
11188
11189 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
11190 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11191 Expand_Allocator_Expression): Take into account VM_Target
11192 (Expand_Attribute, case 'Identity): Handle properly the case where
11193 the prefix is a task interface.
11194 New pragma Fast_Math
11195
11196 * par.adb (Next_Token_Is): New function
11197 (P_Pragma): Add Skipping parameter
11198 (U_Left_Paren): New procedure
11199 (U_Right_Paren): New procedure
11200 New pragma Fast_Math
11201
11202 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
11203 subunit
11204 New pragma Fast_Math
11205
11206 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
11207 Implemented_By_Entry.
11208 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
11209 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
11210 items, since it can apply to more than one overloadable entity. Set
11211 new flag Has_Pragma_Inline_Always for Inline_Always case.
11212 (Analyze_Pragma, case Complex_Representation): Improve error message.
11213 (Analyze_Pragma, case Assert): When assertions are disabled build the
11214 rewritten code with Sloc of expression rather than pragma, so new
11215 warning about failing is not deleted.
11216 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
11217 protected types and update error message to reflect that. Test whether
11218 the protected type is allowed for the pragma (an error is issued if the
11219 type has any entries, or components that do not have preelaborable
11220 initialization).
11221 New pragma Fast_Math
11222 (Analyze_Pragma, case No_Return): Handle generic instance
11223
9e81dbc7 11224 * snames.h, snames.ads, snames.adb:
e9b54d64
AC
11225 Add new predefined name for interface primitive _Disp_Requeue.
11226 New pragma Fast_Math
11227
11228 * a-tags.ads, a-tags.adb: New calling sequence for
11229 String_To_Wide_[Wide_]String
11230 (Secondary_Tag): New subprogram.
11231
11232 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
11233 from Exp_Attr
11234 New calling sequence for String_To_Wide_[Wide_]String
11235 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
11236 the use of the secondary stack for image routines.
11237
11238 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
11239 calling sequence for String_To_Wide_[Wide_]String
11240
11241 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
11242 Ada 95 mode
11243 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
11244 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11245
11246 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
11247 (P_Formal_Part): Use Skipping parameter in P_Pragma call
11248 to improve error recovery
11249
11250 * par-util.adb (Next_Token_Is): New function
11251 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
11252
11253 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
11254 semicolon if missing
11255 (P_Pragma): Implement new Skipping parameter
11256 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11257 Fix location of flag for unrecognized pragma message
11258
11259 * par-tchk.adb (U_Left_Paren): New procedure
11260 (U_Right_Paren): New procedure
11261
112622007-12-13 Geert Bosch <bosch@adacore.com>
11263
9e81dbc7 11264 * a-tifiio.adb:
e9b54d64
AC
11265 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
11266 the second or later Scaled_Divide would omit leading zeroes,
11267 resulting in too few digits produced and a Layout_Error as result.
11268 (Put): Initialize Pos.
11269
112702007-12-13 Robert Dewar <dewar@adacore.com>
11271
11272 atree.ads, atree.adb (Flag231..Flag247): New functions
11273 (Set_Flag231..Set_Flag247): New procedures
11274 (Basic_Set_Convention): Rename Set_Convention to be
11275 Basic_Set_Convention
11276 (Nkind_In): New functions
11277 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11278
11279 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
11280 instead
11281 of obsolete function Is_Always_Inlined
11282 (Register_Predefined_DT_Entry): Initialize slots of the second
11283 secondary dispatch table.
11284 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11285 (Expand_N_Function_Call): Remove special provision for stack checking.
11286
11287 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
11288 Include _Disp_Requeue in the list of predefined operations.
11289 (Find_Interface_ADT): Modified to fulfill the new specification.
11290 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11291
9e81dbc7 11292 * par-ch4.adb, nlists.ads, nlists.adb:
e9b54d64
AC
11293 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11294
11295 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
11296 Fix location of flag for unrecognized pragma message
11297
11298 * sem_ch7.adb: Use Nkind_In
11299
113002007-12-13 Vincent Celier <celier@adacore.com>
11301
9e81dbc7 11302 * opt.ads:
e9b54d64
AC
11303 Indicate what flags are used by the Project Manager, gprbuild and
11304 gprclean.
11305 (Opt.Follow_Links_For_Dirs): New flag
11306 (Warn_On_Assertion_Failure): New flag
11307 (Wide_Character_Encoding_Method_Specified): New flag
11308 (Suppress_All_Inlining): New switch set by -fno-inline
11309 (Real_VMS_Target): New flag
11310 New pragma Fast_Math
11311
113122007-12-13 Robert Dewar <dewar@adacore.com>
11313
11314 * back_end.adb: Recognize -fno-inline
11315
113162007-12-13 Robert Dewar <dewar@adacore.com>
11317
11318 * checks.adb: Fix optimization problem with short-circuited form
11319
113202007-12-13 Bob Duff <duff@adacore.com>
11321
11322 * clean.adb (Usage): Add line for -aP
11323 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
11324 with a parameter "procedure Usage", instead of passing a pointer to a
11325 procedure. This is to eliminate trampolines (since the Usage procedure
11326 is often nested in a main procedure, and it would be inconvenient to
11327 unnest it).
11328
11329 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
11330 to be generic, with a parameter "procedure Callback (...)", instead of
11331 passing a pointer to a procedure. This is to eliminate trampolines
11332 (since the Callback procedure is usually nested).
11333
9e81dbc7 11334 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
e9b54d64
AC
11335 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
11336 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
11337
11338 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
11339 Use the generic Heap_Sort_G instead of Heap_Sort_A.
11340
113412007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11342
11343 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
11344 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
11345 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
11346 (Renamed_In_Spec): New flag
11347 (Has_Pragma_Inline_Always): New flag
11348 Add missing doc for pragma Obsolescent_Warning
11349 Add missing doc for 17 additional unused flags (230-247)
11350 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
11351 Alphabetize with clauses.
11352 Separate Is_Thunk and Has_Thunks flags
11353 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
11354 (Related_Interface): Renamed to Related_Type.
11355 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
11356 (Set_Is_Flag): Restrict the assertion.
11357
113582007-12-13 Vincent Celier <celier@adacore.com>
11359
11360 * errout.adb (Output_Source_Line): Do not keep a trailing space after
11361 the source line number if the source line is empty.
11362
113632007-12-13 Geert Bosch <bosch@adacore.com>
11364
11365 * eval_fat.adb (Decompose_Int): Handle argument of zero.
11366 (Compose): Remove special casing of zero.
11367 (Exponent): Likewise.
11368 (Fraction): Likewise.
11369 (Machine): Likewise.
11370 (Decompose): Update comment.
11371
113722007-12-13 Ed Schonberg <schonberg@adacore.com>
11373
11374 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
11375 limited ancestor part, initialize controllers of enclosing record
11376 before expanding ancestor aggregate.
11377 (Gen_Assign): If a component of the aggregate is box-initialized, add
11378 code to call Initialize if the component is controlled, and explicit
11379 assignment of null if the component is an access type.
11380
11381 Handle properly aggregates for limited types that appear in object
11382 declarations when the aggregate contains controlled values such as
11383 protected types.
11384 When expanding limited aggregates into individual components, do not
11385 call Adjust on controlled components that are limited.
11386
113872007-12-13 Ed Schonberg <schonberg@adacore.com>
11388
11389 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
11390
113912007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11392
11393 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
11394 predefined primitive _Disp_Requeue.
11395 (Make_Predefined_Primitive_Specs): Create the spec for predefined
11396 primitive _Disp_Requeue.
11397 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
11398 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
11399 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
11400 an interface type. In case of limited interfaces we now declare all the
11401 predefined primitives associated with synchronized interfaces as
11402 abstract.
11403 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
11404 declarations.
11405 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
11406 tagged type is an interface type and there is no user-defined equality
11407 function.
11408 Add also bodies of predefined primitives associated with synchronized
11409 interfaces.
11410 (Freeze_Record_Type): Do not build bodies of predefined primitives of
11411 interface types because they are now defined abstract.
11412 Add missing documentation.
11413 (Expand_Record_Controller): Update occurrence of Related_Interface
11414 to Related_Type.
11415 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
11416 (Expand_N_Object_Declaration): Take into account VM_Target when handling
11417 class wide interface object declaration.
11418 (Expand_Previous_Access_Type): Do not create a duplicate master entity
11419 if the access type already has one.
11420 (Expand_N_Object_Declaration): Defend against attempt to validity check
11421 generic types. Noticed for -gnatVcf specified with previous errors.
11422
114232007-12-13 Arnaud Charlet <charlet@adacore.com>
11424
11425 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11426 Expand_Allocator_Expression): Take into account VM_Target
11427
11428 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
11429 secondary stack when VM_Target /= No_VM
11430
114312007-12-13 Javier Miranda <miranda@adacore.com>
11432 Ed Schonberg <schonberg@adacore.com>
11433
11434 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
11435 Is_Complation_Unit by Is_Library_Level_Entity in the code
11436 that decides if the static dispatch tables need to be built.
11437 (Wrap_Transient_Declaration): Do not generate a finalization call if
11438 this is a renaming declaration and the renamed object is a component
11439 of a controlled type.
11440
114412007-12-13 Gary Dismukes <dismukes@adacore.com>
11442
11443 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
11444 In the case where the renamed subprogram is a dereference, call
11445 Force_Evaluation on the prefix.
11446
114472007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11448 Ed Schonberg <schonberg@adacore.com>
11449
11450 * exp_ch9.adb (Expand_N_Asynchronous_Select,
11451 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
11452 comment reformatting.
11453 (Set_Privals): Inherit aliased flag from formal. From code reading.
11454 (Build_Simple_Entry_Call): Out parameters of an access type are passed
11455 by copy and initialized from the actual. This includes entry parameters.
11456 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
11457 and Ada 2005 models of requeue.
11458 (Null_Statements): Still connsider do-end block null if it contains
11459 Unreferenced and Warnings pragmas.
11460 (Expand_N_Accept_Statement): Do not optimize away null do end if
11461 dispatching policy is other than defaulted.
11462 (Expand_N_Timed_Entry_Call): When the triggering statement is a
11463 dispatching call, manually analyze the delay statement.
11464 (Find_Parameter_Type): Move subprogram to Sem_Util.
11465
114662007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11467 Javier Miranda <miranda@adacore.com>
11468
11469 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
11470 _Disp_Requeue occupies dispatch table slot number 15. Move
11471 _Disp_Timed_Select to slot 16.
11472 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
11473 generate the spec and body of _Disp_Reqeueue.
11474 (Make_DT): Build and initialize the second dispatch table.
11475 Handle initialization of RC_Offset when the parent
11476 is a private type with variable size components.
11477 (Make_Secondary_DT): Complete documentation. Add support to
11478 initialize the second dispatch table.
11479 (Make_Tags): Generate the tag of the second dispatch table.
11480 (Register_Primitive): Add support to register primitives in the
11481 second dispatch table.
11482
114832007-12-13 Pascal Obry <obry@adacore.com>
11484
11485 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
11486 Windows. This signal is used by gnatmake to kill child processes for
11487 example.
11488
114892007-12-13 Javier Miranda <miranda@adacore.com>
11490
11491 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11492 support for generic dispatching constructor calls in which we need to
11493 locate the tag of a secondary dispatch table associated with an
11494 interface type to properly dispatch the call.
11495 (Expand_N_Attribute_Reference [case Address],
11496 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
11497 handling of VM targets.
11498
114992007-12-13 Robert Dewar <dewar@adacore.com>
11500 Ed Schonberg <schonberg@adacore.com>
11501
11502 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
11503 assert fail
11504
11505 * ug_words: Add entries for -gnatw.a -gnatw.A
11506
11507 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
11508 literal is a subtype with non-static constraints, use the base type of
11509 the context as the base of the string subtype, to prevent type
11510 mismatches in gigi.
11511 (Resolve_Actuals): If the actual is an entity name, generate a
11512 reference before the actual is resolved and expanded, to prevent
11513 spurious warnings on formals of enclosing protected operations.
11514 (Analyze_Overloaded_Selected_Component): If type of prefix if
11515 class-wide, use visible components of base type.
11516 (Resolve_Selected_Component): Ditto.
11517 (Resolve_Short_Circuit): Detect case of pragma Assert argument
11518 evaluating to False, and issue warning message.
11519
11520 * usage.adb: Add lines for -gnatw.a and -gnatw.A
11521
115222007-12-13 Emmanuel Briot <briot@adacore.com>
11523
11524 * g-calend.ads (No_Time): New constant, to represent an uninitialized
11525 time value
11526
11527 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
11528 formats.
11529 (Month_Name_To_Number): New subprogram
11530
11531 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
11532 letter to upper-case.
11533
115342007-12-13 Robert Dewar <dewar@adacore.com>
11535 Ed Schonberg <schonberg@adacore.com>
11536
11537 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
11538
11539 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
11540 context is a limited view, use non-limited view when available. If the
11541 non-limited view is an unconstrained array, this enforces consistency
11542 requirements in 3.10.2 (27).
11543 (Layout_Type): For an access type whose designated type is a limited
11544 view, examine its declaration to determine if it is an unconstrained
11545 array, and size the access type accordingly.
11546 (Layout_Type): Do not force 32-bits for convention c subprogram
11547 pointers in -gnatdm mode, only if real vms target.
11548
11549 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
11550 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11551 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
11552 violations of the No_Implicit_Dynamic_Code restriction.
11553 (Resolve_Attribute, case 'Access): If designated type of context is a
11554 limited view, use non-limited view when available. If the non-limited
11555 view is an unconstrained array, this enforces consistency requirements
11556 in 3.10.2 (27).
11557 (Layout_Type): For an access type whose designated type is a limited
11558 view, examine its declaration to determine if it is an unconstrained
11559 array, and size the access type accordingly.
11560
115612007-12-13 Vincent Celier <celier@adacore.com>
11562
11563 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
11564 object directory of main project does not exist.
11565 On VMS, correctly set then environment variable for the source
11566 directories.
11567
115682007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11569
11570 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
11571 set to True this procedure will create the value of type REG_EXPAND_SZ.
11572 It was only possible to create REG_SZ values before.
11573
115742007-12-13 Robert Dewar <dewar@adacore.com>
11575
11576 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
11577 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
11578 namet-sp.adb, namet-sp.ads: New files.
11579
11580 * g-speche.adb: Use generic routine in g-spchge
11581
9e81dbc7 11582 * s-wchcnv.ads, s-wchcnv.adb:
e9b54d64
AC
11583 Minor code cleanup (make formal type consistent with spec)
11584
11585 * namet.adb: Update comments.
11586
11587 * par-endh.adb (Evaluate_End_Entry): Use new
11588 Namet.Sp.Is_Bad_Spelling_Of function
11589
11590 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
11591
11592 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
11593 ancestor is an access type initialized with a box, set its type
11594 explicitly, for use in subsequent expansion.
11595 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
11596 function
11597
115982007-12-13 Robert Dewar <dewar@adacore.com>
11599
11600 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
11601 access Vstring)
11602
116032007-12-13 Robert Dewar <dewar@adacore.com>
11604
11605 * inline.adb (Back_End_Cannot_Inline): Use new flag
11606 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11607
11608 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
11609 Has_Pragma_Inline_Always instead.
11610 of obsolete function Is_Always_Inlined
11611 (Build_Body_To_Inline): Same change
11612 (Cannot_Inline): Same change
11613 Do not give warning on exception raise in No_Return function
11614
11615 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
11616 component has two inconsistent component clauses in the same record
11617 representation clause, favor the message that complains about
11618 duplication rather than inconsistency.
11619 Update comments.
11620 (Record_Representation_Clause): Do not warn on missing component
11621 clauses for inherited components of a type extension.
11622 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
11623 an overloadable item if it is a pragma that can apply to multiple
11624 overloadable entities (e.g. Inline) because a pragma cannot be on
11625 more than one chain at a time.
11626 (Validate_Unchecked_Conversion): Add code to warn on unchecked
11627 conversion where one of the operands is Ada.Calendar.Time.
11628 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
11629 For now, ignore Component_Size clause on VM targets, as done for
11630 pragma Pack.
11631
116322007-12-13 Emmanuel Briot <briot@adacore.com>
11633 Vincent Celier <celier@adacore.com>
11634
11635 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
11636 string
11637 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
11638 prj.ads
11639 (Hash): Move instantiation of System.HTable.Hash from spec to body
11640 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
11641 systems, since we do not need to recompute the Name_Id for the canonical
11642 file name.
11643 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11644 as a parameter. This parameter is in fact always "ada" in all calls, and
11645 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
11646 while loading a project with 40000 files
11647
11648 * prj-attr.adb: Fix name of attribute Dependency_Driver
11649 Change the kind of indexing for attribute Root
11650
11651 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
11652 variables already declared, in case constructions.
11653
11654 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
11655 Current_Object_Path_File to No_Path.
11656
11657 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
11658 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
11659
11660 * prj-makr.adb: new parameter Current_Dir
11661
11662 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
11663 Ada sources when language is not Ada.
11664 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11665 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
11666 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
11667 (Locate_Directory): Always resolve links when computing Canonical_Path
11668 (Look_For_Sources): Make sure that Name_Buffer contains the file name
11669 in Source_Files before checking for the presence of a directory
11670 separator.
11671 Optimize calls to Name_Find when on case sensitive systems.
11672 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
11673 as a parameter.
11674 (Prj.Nmsc.Check): new parameter Current_Dir
11675 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
11676 cannot be empty and the spec suffix cannot be the same as the body or
11677 separate suffix.
11678 (Get_Unit): When a file name can be of several unit kinds (spec, body or
11679 subunit), always consider the longest suffix.
11680 (Check_Configuration): Do not issue an error if there is no compiler
11681 for a language. Just issue a warning and ignore the sources for the
11682 language.
11683 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
11684 not empty.
11685 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
11686 (Unit_Exceptions): New hash table
11687 (Check_Naming_Schemes): Check if a file that could be a unit because of
11688 the naming scheme is not in fact a source because there is an exception
11689 for the unit.
11690 (Look_For_Sources): Put the unit exceptions in hash table
11691 Unit_Exceptions
11692 (Get_Unit_Exceptions): Give initial value No_Source to local variable
11693 Other_Part to avoid exception when code is compiled with validity
11694 checking.
11695 (Get_Sources_From_File): Check that there is no directory information
11696 in the file names.
11697 (Look_For_Sources): Check that there is no directory information in the
11698 list of file names in Source_Files.
11699 (Look_For_Sources): In multi-language mode, do not allow exception file
11700 names that are excluded.
11701 (Excluded_Sources_Htable): New hash table
11702 (Search_Directories.Check_File): New procedure to simplify
11703 Search_Directories.
11704 (Search_Directories): Do not consider excluded sources
11705 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
11706 Search_Directories.
11707 (Get_Exceptions): Set component Lang_Kind of Source_Data
11708 (Get_Unit_Exceptions): Ditto
11709 (Search_Directories): Ditto
11710
11711 * prj-pars.adb: new parameter Current_Dir
11712
9e81dbc7 11713 * prj-part.ads, prj-part.adb:
e9b54d64
AC
11714 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
11715 (Opt.Follow_Links_For_Dirs): New flag
11716 (Project_Path_Name_Of): Cache information returned by this routine as
11717 Locate_Regular_File is a costly routine. The code to output a log
11718 information and the effective call to Locate_Regular_File is now
11719 factorized into a routine (code clean-up).
11720 (Parse, Parse_Single_Project): new parameter Current_Dir
11721 When main project file cannot be found, indicate in the error
11722 message the project path that was used to do the search.
11723
11724 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
11725 (Prj.Proc.Process*): new parameter Current_Dir
11726
11727 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
11728
117292007-12-13 Bob Duff <duff@adacore.com>
11730
11731 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
11732 procedure to be called from the back end to check the
11733 No_Implicit_Dynamic_Code restriction.
11734
117352007-12-13 Arnaud Charlet <charlet@adacore.com>
11736
11737 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
11738 Fixes another case where RTE_Available_Call was ignored instead of being
11739 taken into account.
11740 (Load_Fail): Ditto.
11741
11742 * rtsfind.ads: Add new entries.
11743
117442007-12-13 Robert Dewar <dewar@adacore.com>
11745
11746 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
11747 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
11748
11749 * scn.adb: Implement BOM recognition
11750
117512007-12-13 Thomas Quinot <quinot@adacore.com>
11752 Ed Schonberg <schonberg@adacore.com>
11753
11754 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
11755 subprogram body that acts as its own spec may not have a non-private
11756 WITH clause on a private sibling.
11757 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
11758 child unit is a renaming, create an implicit with_clause on that
11759 parent, and not on the unit it renames, to prevent visibility errors
11760 in the current unit.
11761
117622007-12-13 Ed Schonberg <schonberg@adacore.com>
11763
11764 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
11765 renaming declaration, use the Slocs of the formal parameters from the
11766 declaration of the formal subprogram when creating the formal parameter
11767 entities in the renaming declaration.
11768 (Analyze_Formal_Type_Declaration): Change the placement of the error
11769 message concerning illegal known discriminants. It is now posted on the
11770 type rather than on the first discriminant. This change ensures early
11771 error report.
11772 (Freeze_Subprogram_Body): If the generic subprogram is nested within
11773 the package body that contains the instance, do not generate an
11774 out-of-place freeze node for the enclosing package.
11775 (Collect_Previous_Instantiations): Ignore internal instantiations
11776 generated for formal packages.
11777 (Validate_Derived_Type_Instance): Add a check that when a formal
11778 derived type is Known_To_Have_Preelab_Init then the actual type must
11779 have preelaborable initialization, and issue an error when this
11780 condition is violated.
11781
117822007-12-13 Robert Dewar <dewar@adacore.com>
11783
11784 * s-imenne.adb, s-imenne.ads: New files.
11785
9e81dbc7
AS
11786 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
11787 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
11788 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
11789 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
e9b54d64
AC
11790 s-imgwch.ads: New calling sequence for Image routines to avoid sec
11791 stack usage.
11792
117932007-12-13 Javier Miranda <miranda@adacore.com>
11794 Ed Schonberg <schonberg@adacore.com>
11795
11796 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
11797 generation of spurious error if parent is an interface type; caused
11798 because predefined primitive bodies will be generated later by
11799 Freeze_Record_Type.
11800 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
11801 flag.
11802 (Derive_Subprograms): Handle derivations of predefined primitives
11803 after all the user-defined primitives to ensure that they are
11804 found in proper order in instantiations.
11805 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
11806 of Related_Interface to Related_Type.
11807 (Record_Type_Declaration): Minor reordering of calls to decorate the
11808 Tag component because the entity must have set its Ekind attribute
11809 before setting its Is_Tag attribute.
11810 (Analyze_Subtype_Declaration): In the case of subtypes with
11811 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
11812
118132007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11814 Ed Schonberg <schonberg@adacore.com>
11815
11816 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
11817 statement to the list of contexts where a selected component with a
11818 concurrent tagged type prefix should yield a primitive operation.
11819 (Find_Primitive_Operation): Handle case of class-wide types.
11820 (Analyze_Overloaded_Selected_Component): If type of prefix is
11821 class-wide, use visible components of base type.
11822 (Resolve_Selected_Component): Ditto.
11823 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
11824 formal of a generic subprogram. find candidate interpretations by
11825 scanning the list of generic formal declarations.:
11826 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
11827 type from a limited_with_clause, and the full view is available, use it
11828 for subsequent semantic checks.
11829 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
11830 (Find_Primitive_Operation): New function.
11831 (Analyze_Overloaded_Selected_Component): insert explicit dereference
11832 only once if several interpretations of the prefix yield an access type.
11833 (Try_Object_Operation): Code and comment cleanup.
11834 (Analyze_Selected_Component): Reorder local variables. Minot comment and
11835 code reformatting. When the type of the prefix is tagged concurrent, a
11836 correct interpretation might be available in the primitive and
11837 class-wide operations of the type.
11838
118392007-12-13 Robert Dewar <dewar@adacore.com>
11840 Ed Schonberg <schonberg@adacore.com>
11841
11842 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
11843 renaming entry as subprogram using rename-as-body if subprogram spec
11844 frozen.
11845 (Use_One_Type): The clause is legal on an access type whose designated
11846 type has a limited view.
11847 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11848 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
11849 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
11850 operation denoted by a selected component.
11851 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
11852 it can be an expression, possibly overloaded, that returns a task or
11853 an access to one.
11854
118552007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11856 Gary Dismukes <dismukes@adacore.com>
11857
11858 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
11859 requeue statement is dispatching. Do not emit an error when the name is
11860 not an entry and the context is a dispatching select. Add code to
11861 perform subtype conformance between the formals of the current entry
11862 and those of the target interface primitive.
11863 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
11864 Timed_Entry_Call): Analyze the triggering statement as the first step of
11865 the processing. If this is a dispatching select, postpone the analysis
11866 of all select statements until the Expander transforms the select. This
11867 approach avoids generating duplicate identifiers after the Expander has
11868 replicated some of the select statements. In case the Expander is
11869 disabled, perform regular analysis.
11870 (Check_Triggering_Statement): New routine.
11871 (Analyze_Requeue): Exclude any interpretations that are not entries when
11872 checking overloaded names in a requeue. Also test type conformance for
11873 matching interpretations rather than requiring subtype conformance at
11874 that point to conform with the RM's resolution rule for requeues.
11875
118762007-12-13 Ed Schonberg <schonberg@adacore.com>
11877
11878 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
11879 inherited operation is a defaulted tag-indeterminate call, and there is
11880 a statically tagged actual, use the static tag as a controlling actual
11881 for the defaulted actual.
11882
118832007-12-13 Geert Bosch <bosch@adacore.com>
11884
11885 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
11886 context, so do not call Check_Non_Static_Context.
11887
118882007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11889
11890 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
11891 whether formal E is an entity which may have parameters.
11892
118932007-12-13 Bob Duff <duff@adacore.com>
11894 Javier Miranda <miranda@adacore.com>
11895 Robert Dewar <dewar@adacore.com>
11896
11897 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
11898 (Set_Convention): New procedure to set the Convention flag, and in
11899 addition make sure the Favor_Top_Level flag is kept in sync (all
11900 foreign-language conventions require Favor_Top_Level = True).
11901 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
11902 to Related_Type.
11903 (Collect_Interfaces_Info): Minor update to handle the two secondary
11904 dispatch tables. Update occurrence of Related_Interface to Related_Type.
11905 (Generate_Parent_Ref): Add parameter to specify entity to check
11906 (Is_Preelaborable_Expression): Allow the name of a discriminant to
11907 initialize a component of a type with preelaborable initialization.
11908 This includes the case of a discriminal used in such a context.
11909 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
11910 latest Ada 2005 rules about renaming and 'Access of
11911 discriminant-dependent components.
11912 (Check_Nested_Access): Add handling when there are no enclosing
11913 subprograms (e.g. case of a package body).
11914 (Find_Parameter_Type): Factor routine from several other compiler files.
11915 Remove routine from Find_Overridden_Synchronized_Primitive.
11916
119172007-12-13 Thomas Quinot <quinot@adacore.com>
11918
11919 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
11920 an invalid access to an uninitialized slot in the
11921 Source_File_Index_Table.
11922
119232007-12-13 Thomas Quinot <quinot@adacore.com>
11924
11925 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
11926
119272007-12-13 Bob Duff <duff@adacore.com>
11928
11929 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
11930 access-to-subprogram types in this package.
11931
119322007-12-13 Olivier Hainque <hainque@adacore.com>
11933
11934 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
11935 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
11936 Stack_Overlay_Address and document that we are using an internal
11937 abstraction.
11938 (Byte_Size, Unsigned_32_Size): Remove, now useless.
11939 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
11940 consistently throughout the various implementation pieces.
11941
11942 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
11943 overlay we are using to fill the stack area with patterns.
11944 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
11945 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
11946 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
11947
119482007-12-13 Robert Dewar <dewar@adacore.com>
11949
11950 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
11951
119522007-12-13 Arnaud Charlet <charlet@adacore.com>
11953
9e81dbc7 11954 * s-tassta.adb:
e9b54d64
AC
11955 (Create_Task): Take into account tasks created by foreign threads.
11956 Code clean up: use constants instead of hard coded values.
11957
119582007-12-13 Robert Dewar <dewar@adacore.com>
11959
11960 * styleg.adb (Check_Comment): More liberal rules for comment placement
11961
119622007-12-13 Olivier Hainque <hainque@adacore.com>
11963
11964 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
11965 of Procedure Value instead of Frame Pointer as the invocation
11966 identifier associated with the instruction pointer in each traceback
11967 entry.
11968
11969 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
11970 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
11971 Pointer as the invocation identifier passed to tbk$symbolize.
11972
11973 * s-traent-vms.ads, s-traent-vms.adb
11974 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
11975 Procedure Value instead of Frame Pointer as the invocation identifier
11976 passed to tbk$symbolize.
11977
119782007-12-13 Robert Dewar <dewar@adacore.com>
11979
9e81dbc7 11980 * tbuild.ads, tbuild.adb:
e9b54d64
AC
11981 Fix location of flag for unrecognized pragma message
11982
119832007-12-13 Robert Dewar <dewar@adacore.com>
11984
11985 * treepr.ads, treepr.adb: (pl): implement use of positive value
11986 shorthands
11987
119882007-12-13 Robert Dewar <dewar@adacore.com>
11989
11990 * xeinfo.adb: Remove warnings
11991 * xnmake.adb: Remove warnings
11992 * xsinfo.adb: Remove warnings
11993 * xtreeprs.adb: Remove warnings
11994 * xsnames.adb: Remove warnings
11995
11996 * a-ngcoar.adb: Fix typo.
11997 * s-interr.adb: Minor reformatting
11998 * env.c: Minor reformatting.
11999 * g-bytswa.adb: Minor reformatting.
12000 * g-rannum.ads: Minor documentation improvements
12001 * s-tasinf-mingw.adb: Minor header fix
12002 * a-clrefi.adb: Minor reformatting
12003 * g-sttsne.ads: Minor documentation improvement
12004 * g-sttsne-locking.ads: Minor documentation improvement
12005 * g-soliop-solaris.ads: Minor documentation improvement
12006 * g-soliop-mingw.ads: Minor documentation improvement
12007 * g-soliop.ads: Minor documentation improvement
12008 * exp_aggr.ads: Minor reformatting
12009 * debug.adb: Add documentation for the gprbuild debug flags
12010 * exp_ch2.adb: Use Nkind_In to simplify code throughout
12011 * exp_pakd.adb: Minor reformatting
12012
12013 * g-altive.ads, g-alleve.adb: Remove assertions.
12014 Add comment about minor differences between targets regarding
12015 floating-point operations.
12016
12017 * g-thread.adb: Remove pragma unreferenced.
12018 * lib.ads: Minor reformatting
12019 * par-ch9.adb: Minor reformatting of error messages
12020 * sem_case.adb: Minor reformatting
12021 * s-fileio.adb: Minor reformattinng
12022 * s-vmexta.ads: Minor typo
9e81dbc7 12023 * vxaddr2line.adb:
e9b54d64
AC
12024 Take into account 'Success' value as per new GNAT warning.
12025
120262007-12-13 Vincent Celier <celier@adacore.com>
12027
12028 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
12029 even on Windows
12030
120312007-12-13 Robert Dewar <dewar@adacore.com>
12032 Bob Duff <duff@adacore.com>
12033
12034 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
12035 Document that suffixes may be terminations of each others
12036 Add doc for -gnatw.a and -gnatw.A
12037 Document gnatbind -Wx switch
12038 Document BOM recognition
12039 Document pragma Implemented_By_Entry.
12040 Document new units.
12041
12042 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
12043 Add doc for pragma Unreferenced suppressing no entities referenced msg
12044 Add documentation of GNAT.Directory_Operations.Iteration
12045 Add documentation of GNAT.Random_Numbers
12046 Add documentation for pragma Shared.
12047 Correct documentation for Bit_Order
12048 Add documentation for the Pool_Address attribute.
12049 Fix and improve documentation of pragma machine_attribute.
12050 New pragma Fast_Math
12051 Document BOM recognition
12052
12053 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
12054 Add /Wide_Character_Encoding for binder
12055 Add qualifier for the new gnatpp option --no-separate-loop-then
12056
120572007-12-13 Matthew Heaney <heaney@adacore.com>
12058
12059 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
12060 which generic formal operations are called for each operation.
12061
120622007-12-13 Olivier Hainque <hainque@adacore.com>
12063
12064 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
12065 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
12066
120672007-12-13 Emmanuel Briot <briot@adacore.com>
12068
12069 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
12070 Reference_Dir unless we actually need it.
12071
120722007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
12073 Tristan Gingold <gingold@adacore.com>
12074
12075 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
12076
12077 * s-osprim-vms.adb,
12078 a-calend-vms.adb: Remove pragma warning off and add pragma
12079 unreferenced.
12080
120812007-12-13 Robert Dewar <dewar@adacore.com>
12082
12083 * impunit.adb: Add entries for missing units
12084
12085 * Makefile.rtl: Add new run-time units.
12086
12087 * Make-lang.in: Update dependencies.
12088
120892007-12-13 Bob Duff <duff@adacore.com>
12090
12091 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
12092 types, set Can_Use_Internal_Rep appropriately, based on
12093 Always_Compatible_Rep_On_Target.
12094
120952007-12-13 Gary Dismukes <dismukes@adacore.com>
12096 Arnaud Charlet <charlet@adacore.com>
12097
12098 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
12099 it to the front end and setting the aamp_target environment variable
12100 to the switch's argument to ensure that gnaampbind and gnaamplink will
12101 take the specified library into account.
12102 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
12103 target, since the CIL compiler supports an "object" file (.il files).
12104
121052007-12-13 Vincent Celier <celier@adacore.com>
12106
12107 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
12108 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
12109
121102007-12-13 Geert Bosch <bosch@adacore.com>
12111
9e81dbc7 12112 * s-parame-vxworks.adb:
e9b54d64
AC
12113 Update comments to reflect usage of this package by Nucleus.
12114
121152007-12-13 Arnaud Charlet <charlet@adacore.com>
12116
12117 * i-vxwork.ads: Kill new warning on Convention C, since changing the
12118 spec would break code.
12119
12120 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
12121
12122 * system-vxworks-alpha.ads: Removed.
12123
e74a122e
EB
121242007-12-10 Eric Botcazou <ebotcazou@adacore.com>
12125
12126 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
12127
5320014a
ST
121282007-12-09 Samuel Tardieu <sam@rfc1149.net>
12129
12130 PR ada/34366
12131 * sem_ch3.adb (Designates_T): New function.
12132 (Mentions_T): Factor reusable part of the logic into Designates_T.
12133 Consider non-access parameters and access and non-access result.
12134 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
12135 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
12136
12137 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
12138
da746f77
LB
121392007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
12140
9d651736 12141 PR ada/34361
da746f77
LB
12142 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
12143 the new implementation of target-specific calls.
12144
ebe0660b
OH
121452007-12-07 Olivier Hainque <hainque@adacore.com>
12146
12147 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
12148 the designated full view, only follow a second level Full_View link
12149 for Non_Limited_Views of from_limited_with references.
9e81dbc7 12150
2eb160f2
ST
121512007-12-07 Samuel Tardieu <sam@rfc1149.net>
12152
12153 PR ada/15805
12154 * sem_ch6.adb (Process_Formals): Prevent an access type formal
12155 to be initialized with an access to constant object.
12156
9cc11b58
ST
12157 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
12158 when an access to constant is used to initialize an access
12159 value.
12160
72f69ddf
ST
12161 PR ada/21346
12162 * a-direct.adb (Compose): Containing_Directory can be an empty string.
12163
5a2fe31a
OH
121642007-12-07 Olivier Hainque <hainque@adacore.com>
12165
12166 PR ada/34173
12167 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
12168 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
12169 this is from an alignment clause on the GNAT entity.
12170 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
12171 to distinguish the case where we set it from the type's alignment.
12172 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
12173 whether this alignment was set from an explicit alignment clause.
12174
4039fb35
EB
121752007-12-06 Eric Botcazou <ebotcazou@adacore.com>
12176
12177 * decl.c (make_packable_type): Revert last change.
12178 (gnat_to_gnu_field): Avoid setting size and position multiple times.
12179 * utils.c (finish_record_type): Retrieve the real name of the type.
12180
0ec479dc
EB
121812007-12-05 Eric Botcazou <ebotcazou@adacore.com>
12182
12183 * trans.c (lvalue_required_p): Take base node directly instead
12184 of its parent. Rename second parameter to 'gnu_type'.
12185 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
12186 <N_Slice>: Likewise.
12187 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
12188 Adjust calls to lvalue_required_p.
12189
07c7262e
ST
121902007-12-05 Samuel Tardieu <sam@rfc1149.net>
12191
12192 PR ada/21489
12193 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
12194 parameters of an entry call.
12195
9e94c78f 121962007-12-03 Robert Dewar <dewar@adacore.com>
9e81dbc7 12197 Samuel Tardieu <sam@rfc1149.net>
403fd939
RD
12198
12199 PR ada/34287
12200 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
12201 of variables declared in a library-level package.
9e81dbc7 12202
0bcb4d2a
ST
122032007-12-02 Samuel Tardieu <sam@rfc1149.net>
12204
12205 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
12206 of Empty_String'Unchecked_Access.
12207
dd9c642a
ST
12208 * Makefile.in: Add support for sh4-linux.
12209
12210 * system-linux-sh4.ads: New file.
12211
35330114
KB
122122007-12-01 Kostik Belousov <kostikbel@ukr.net>
12213
12214 PR ada/33722
12215 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
12216 and its argument must not be free()ed.
12217
a6dcb051
EB
122182007-11-29 Eric Botcazou <ebotcazou@adacore.com>
12219
12220 * decl.c (make_packable_type): Retrieve the real name of the type.
12221 (maybe_pad_type): Simplify similar code.
12222
39a97416
ST
122232007-11-28 Samuel Tardieu <sam@rfc1149.net>
12224
a6968b8b 12225 PR ada/15804
39a97416
ST
12226 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
12227 than an identifier is used after "case" in a variant_part.
12228
b99dfeb3 12229 PR ada/17318
9c5a3a8d
ST
12230 * par-ch4.adb (Is_Parameterless_Attribute): New map.
12231 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
12232 attribute name or not depending on the new map.
12233
12234 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
12235 returning a string or a type will not be called with improper
12236 arguments.
12237
12238 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
12239
12240 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
12241
5a218498
ST
12242 PR ada/32792
12243 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
12244 Signal an error when attribute argument is a fixed-point value of
12245 an unknown type.
12246
7bde4677
ST
12247 PR ada/22559
12248 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
12249 a derived ordinary fixed point type.
12250
12251 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
12252 RM_Size when a Small clause is found.
12253
182e0d71
AK
122542007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
12255
9e81dbc7
AS
12256 PR 34081/C++
12257 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
12258 Pass 'false' for the new allocate_struct_function parameter.
12259 * utils.c (build_function_stub): Likewise.
182e0d71 12260
87caf699
RG
122612007-11-25 Richard Guenther <rguenther@suse.de>
12262
4039fb35 12263 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
87caf699
RG
12264 (gnat_poplevel): Likewise.
12265
f1c8c7ee
EB
122662007-11-25 Eric Botcazou <ebotcazou@adacore.com>
12267
12268 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
12269 strict alignment, no alignment clause and a known static size, cap
12270 the type alignment to the greatest power of 2 factor of the size.
12271 (gnat_to_gnu_field): If the field has a component clause, is aliased
12272 or of a type with strict alignment, require that its size be equal to
12273 that of the type.
12274 (validate_size): Use the type size as the minimum size for a type with
12275 strict alignment.
12276
bb1f5840
ST
122772007-11-23 Samuel Tardieu <sam@rfc1149.net>
12278
12279 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
12280 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
12281 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
12282 Use 'Access instead of 'Unchecked_Access in second and third
12283 arguments of pthread_sigmask.
12284
5102fac5
EB
122852007-11-23 Eric Botcazou <ebotcazou@adacore.com>
12286
12287 * decl.c (ceil_alignment): New function.
12288 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
12289 (make_packable_type): Likewise.
12290
1fa4dfc6
OH
122912007-11-22 Olivier Hainque <hainque@adacore.com>
12292
12293 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
12294 to fit in 80 columns.
12295
9e94c78f 122962007-11-21 Aurelien Jarno <aurelien@aurel32.net>
5f45b299
AJ
12297
12298 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
12299 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
12300
7634135a
EB
123012007-11-19 Eric Botcazou <ebotcazou@adacore.com>
12302
12303 PR ada/34098
12304 * misc.c (gnat_adjust_rli): Delete.
12305 (gnat_init): Do not initialize the translation code here.
12306 Do not call set_lang_adjust_rli.
12307 * trans.c (init_code_table): Make static.
12308 (gnat_init_stmt_group): Delete.
12309 (gigi): Initialize the translation code entirely here.
12310 Emit debug info for the common types here instead of...
12311 * utils.c (gnat_init_decl_processing): ...here.
12312 * gigi.h (init_code_table): Delete.
12313 (gnat_init_stmt_group): Likewise.
12314
b2c3bcf4
OH
123152007-11-16 Olivier Hainque <hainque@adacore.com>
12316
12317 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
12318 retrieving an allocator return value from a super-aligned address from
12319 here to ...
12320 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
12321 expect a super-aligned address for a fat or thin pointer.
9e81dbc7 12322
a01e283f
EB
123232007-11-14 Eric Botcazou <ebotcazou@adacore.com>
12324
12325 * trans.c (call_to_gnu): Always set the source location on the call
12326 expression. If the function returns-by-target, also set it on the
12327 address expression.
12328
713c3145
ST
123292007-11-14 Samuel Tardieu <sam@rfc1149.net>
12330
356d8961 12331 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
713c3145
ST
12332 sections of non-supported Interix target.
12333
12334 * s-osinte-interix.ads: Removed.
12335
1e992e16
ST
12336 * i-cstrin.ads (chars_ptr): Make it a C convention type.
12337
0e506c4b
ST
123382007-11-13 Samuel Tardieu <sam@rfc1149.net>
12339
12340 * a-tasatt.adb: Add a comment at the beginning of the package
12341 explaining why in general 'Unchecked_Access must be used instead
12342 of 'Access.
12343
66beb09b
ST
12344 * sem_prag.adb (Process_Convention): Move the test for the
12345 entity on which the Convention pragma applies down to also
12346 forbid pragma Convention on enumeration literals reached
12347 through renamings.
12348
14678e46
ST
123492007-11-10 Samuel Tardieu <sam@rfc1149.net>
12350
12351 * a-tasatt.adb: Revert previous change for this file as it will
12352 generate an error when this package is instantiated from a
12353 local context.
12354
f9d806de
ST
123552007-11-07 Samuel Tardieu <sam@rfc1149.net>
12356
12357 * a-tasatt.adb: Type Wrapper should be declared in comment instead
12358 of already declared type Node_Access.
dcbd752d
ST
12359 Use 'Access instead of 'Unchecked_Access when applicable. Local
12360 lifetime is the one of the package.
12361 (Set_Value): W is allocated on the heap.
12362
12363 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
12364 applicable.
12365 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
12366 access type.
12367 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
12368 access type.
12369
12370 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
12371 applicable.
12372 (elaboration code): Timer_Queue lifetime is the one of the
12373 package.
f9d806de 12374
bc01690e
ST
12375 * tracebak.c (i386 alternative): Remove useless comparaison
12376 which is always false; LOWEST_ADDRESS is 0 and is never greater
12377 than an unsigned integer.
12378
d9c1dc68
ST
12379 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
12380 embedded check for "Ada_Version >= Ada_05".
12381
cb88a3ea
OH
123822007-11-07 Olivier Hainque <hainque@adacore.com>
12383
12384 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
12385 craft and expand comment.
12386
233a722b
EB
123872007-11-01 Eric Botcazou <ebotcazou@adacore.com>
12388
12389 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
12390
6d1e8bff
EB
123912007-10-23 Eric Botcazou <ebotcazou@adacore.com>
12392
12393 * misc.c (gnat_handle_option): Replace call to abort with
12394 call to gcc_unreachable.
12395 (gnat_init): Likewise.
12396 (gnat_expand_expr): Likewise.
12397 (fp_prec_to_size): Likewise.
12398 (fp_size_to_prec): Likewise.
12399
262e7125
RG
124002007-10-23 Richard Guenther <rguenther@suse.de>
12401
12402 PR bootstrap/33608
12403 * tracebak.c: #undef abort after including system.h.
12404
9e94c78f 124052007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
c8f499a9
DS
12406
12407 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
12408 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
12409 for win32 targets.
12410 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
12411
f0e1e807
AC
124122007-10-15 Eric Botcazou <ebotcazou@adacore.com>
12413
12414 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
12415 Set the protection status of the guard page based on the value of On.
12416
12417 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
12418
12419 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
12420 (Exit_Task): Pass False to Hide_Yellow_Zone.
12421
124222007-10-15 Robert Dewar <dewar@adacore.com>
12423
9e81dbc7 12424 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
f0e1e807 12425 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
9e81dbc7
AS
12426 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
12427 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
12428 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
12429 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
12430 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
12431 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
12432 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
f0e1e807 12433 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
9e81dbc7
AS
12434 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
12435 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
12436 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
12437 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
12438 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
f0e1e807
AC
12439 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
12440 Minor reformatting.
12441 Add Unreferenced and Warnings (Off) pragmas for cases of
12442 variables modified calls where they are IN OUT or OUT parameters and
12443 the resulting values are not subsequently referenced. In a few cases,
12444 we also remove redundant code found by the new warnings.
12445
9e81dbc7 12446 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
f0e1e807
AC
12447 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
12448 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
12449 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
12450 warning controlled by -gnatw.o that warns on cases of out parameter
12451 values being ignored.
12452
124532007-10-15 Geert Bosch <bosch@adacore.com>
12454
12455 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
12456
12457 * expect.c: Initial port to arm-mentor-nucleus.
12458 Use kill for __gnat_kill() on VMS.
12459
124602007-10-15 Emmanuel Briot <briot@adacore.com>
12461
12462 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
12463 value.
12464 (Xref_Record): Change type for Line, since in the case of a reference to
12465 a predefined entity (as happens for array index types), the line is set
12466 to 0.
12467 Add support for parsing multiple array index types info, or
12468 multiple inherited interfaces info. This information cannot be stored
12469 in Xref_Entity_Record, which only supports a single instance of Tref_*,
12470 and is therefore stored in the list of references instead. It has a
12471 special treatement later on in tools that use this information.
12472
124732007-10-15 Tristan Gingold <gingold@adacore.com>
12474
12475 * debug.adb: Document use of -gnatd.a and -gnatd.I
12476
12477 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
12478
124792007-10-15 Javier Miranda <miranda@adacore.com>
12480
12481 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
12482 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
12483 care of access to class-wide interface types plus removal of bizarre
12484 conversion of tagged object to access type (reported by Gary
12485 Dismukes). After this patch there is no need to perform any
12486 additional management on these nodes in Expand_Interface_Actuals.
12487
12488 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
12489 that handles use of 'Access and 'Unchecked_Access applied to
12490 actuals covering interface types. Such code is now
12491 centralized in Expand_N_Attribute_Reference.
12492
124932007-10-15 Ed Schonberg <schonberg@adacore.com>
12494
12495 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
12496 of tagged types whose ultimate ancestor is a CPP type.
12497 (Freeze_Array_Type): For a packed array type, generate an initialization
12498 procedure if the type is public, to handle properly a client that
12499 specifies Normalize_Scalars.
12500
125012007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12502
12503 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
12504 inside a generic body, retrieve the full view of the entry family
12505 discrete subtype if available.
12506
125072007-10-15 Thomas Quinot <quinot@adacore.com>
12508
12509 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
12510 attempt to generate stubs for hidden primitive operations.
12511
125122007-10-15 Vincent Celier <celier@adacore.com>
12513
12514 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
12515 returning None, used when there is no platform specific body for
12516 MLib.Tgt.Specific.
12517
125182007-10-15 Bob Duff <duff@adacore.com>
12519
12520 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
12521 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
12522 the generic Heap_Sort_G, in order to avoid trampolines.
12523
125242007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
12525 Jose Ruiz <ruiz@adacore.com>
12526
12527 * vx_stack_info.c: New file.
12528
12529 * i-forbla-unimplemented.ads: New file.
12530
12531 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
12532 for unsupported configurations; use it on VMS targets instead of the
12533 real one.
12534 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
12535 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
12536 used by VxWorks targets to have access to task-specific data and be
12537 able to extract the stack boundaries for stack checking.
12538 Use system-vms-ia64.ads on ivms.
12539
12540 * Make-lang.in: Update dependencies.
12541
12542 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
12543 (vx_stack_info.c).
12544
125452007-10-15 Vincent Celier <celier@adacore.com>
12546
12547 * snames.adb, snames.ads: Add new standard name runtime_library_dir
12548
12549 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
12550
12551 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
12552
12553 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
12554 the source is unknown.
12555
12556 * prj-ext.adb: Spelling error fix
12557
12558 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
12559 95 reserved word in its name.
12560 (Process_Project_Level_Array_Attributes): Process new attribute
12561 Runtime_Library_Dir.
12562
12563 * prj-part.adb (Parse_Single_Project): Do not check the name of the
12564 config project against the user project names.
12565
12566 * prj-proc.adb (Expression): In multi-language mode, indexes that do
12567 not include a dot are always case insensitive.
12568 (Process_Declarative_Items): Ditto
12569 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
12570 detected.
12571
12572 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
12573 True, compare both indexes in lower case.
12574
125752007-10-15 Robert Dewar <dewar@adacore.com>
12576
12577 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
12578
125792007-10-15 Gary Dismukes <dismukes@adacore.com>
12580
12581 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
12582 association for an access component, add an association with null as
12583 the expression. Remove testing for array subtypes and the setting in
12584 that case of Ctyp to the array component type, which prevented proper
12585 inclusion of an association for null-initialized arrays. Collapse
12586 condition that tests for array subtypes into just a test of
12587 Is_Partially_Initialized_Type (which already covers arrays anyway).
12588
125892007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12590
12591 * sem_ch12.adb: Minor code reformatting.
12592 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
12593 find the parent package which may have been hidden by local
12594 declarations.
12595
125962007-10-15 Gary Dismukes <dismukes@adacore.com>
12597
12598 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
12599 flag of derived concurrent types, taking into account the flag setting
12600 on the parent subtype and any new set of discriminants.
12601
126022007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12603
12604 * sem_ch4.adb: Minor code and comment reformatting.
12605 (Analyze_Allocator): When the designated type of an unconstrained
12606 allocator is a record with unknown discriminants or an array with
12607 unknown range bounds, emit a detailed error message depending on the
12608 compilation mode and whether the designated type is limited.
12609
126102007-10-15 Tristan Gingold <gingold@adacore.com>
12611
12612 * system-vms-ia64.ads: New file.
12613
12614 * system-vms_64.ads: Minor comment fix.
12615
126162007-10-15 Ed Schonberg <schonberg@adacore.com>
12617
12618 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
12619 body generated for a function with a controlling result that is a null
12620 extension, discard the generated body in favor of the current explicit
12621 one.
12622
126232007-10-15 Ed Schonberg <schonberg@adacore.com>
12624
12625 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
12626 examining its original form, to handle properly operator calls that
12627 have been rewritten.
12628
126292007-10-15 Olivier Hainque <hainque@adacore.com>
12630
12631 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
12632 instead of a procedure value in each traceback entry.
12633
12634 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
12635 instead of procedure value to TBK$SYMBOLIZE.
12636
12637 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
12638 field.
12639 (TB_Entry_For): Account for the PV/FP renaming.
12640
12641 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
12642 add comment.
12643 (Null_TB_Entry): Account for change of component name.
12644 (PV_For): Rename as FP_For.
12645
126462007-10-15 Tristan Gingold <gingold@adacore.com>
12647
12648 * trans.c (gnat_to_gnu): Remove the padding structure more often.
12649 This optimize assignment to over-aligned record.
12650
126512007-10-15 Emmanuel Briot <briot@adacore.com>
12652
12653 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
12654 interfaces.
12655
12656 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
12657 type, for dispatching calls.
12658
126592007-10-15 Vincent Celier <celier@adacore.com>
12660 Robert Dewar <dewar@adacore.com>
12661
12662 * gnat_ugn.texi: Add documentation for switches --version and --help
12663 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
12664 gnatxref, gnatfind, gnatls, and gnatclean.
12665 Document -gnatw.o.
12666 Mention attribute Excluded_Source_Dirs
12667 Replace obsolescent attribute Locally_Removed_Files with attribute
12668 Excluded_Source_Files.
12669 Improve documentation of -u (gnatbind)
12670 Document how to do reliable stack checking for the environmental task
12671 on iVMS.
12672
12673 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
12674 Document attribute Excluded_Source_Files and indicate that attribute
12675 Locally_Removed_Files is obsolescent.
12676
126772007-10-15 Thomas Quinot <quinot@adacore.com>
12678
12679 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
12680
9e81dbc7 12681 * gen-soccon.c:
f0e1e807
AC
12682 Update documentation to note that OpenVMS 8.3 or later must be used
12683 to generate g-soccon-vms.ads.
12684
12685 * atree.adb: Add ??? comment
12686
12687 * exp_util.adb: Minor reformatting.
12688 Add ??? comment in Kill_Dead_Code.
12689
126902007-10-15 Robert Dewar <dewar@adacore.com>
12691
12692 * errout.ads: Comment clarification
12693
12694 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
12695 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
12696
12697 * lib.ads: Comment update
12698
12699 * init.c: Minor reformatting.
12700
12701 * sem_attr.adb: Minor formatting
12702
12703 * osint-b.ads: Minor reformatting
12704
12705 * sem_ch9.adb: Implement -gnatd.I switch
12706
12707 * g-comlin.adb: (Start): Fix handling of empty command line.
12708
12709 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
12710 even when -rules follows the -cargs section.
12711
6524147c
OW
127122007-10-08 Ollie Wild <aaw@google.com>
12713
12714 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
12715 gnat_return_tree.
12716 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
12717 gnat_return_tree.
12718 (gnat_eh_runtime_type): Removed.
12719 (gnat_return_tree): New function.
12720
dff6abb2
BE
127212007-10-08 Ben Elliston <bje@au.ibm.com>
12722
12723 PR ada/33454
12724 Revert:
12725 2007-08-31 Ben Elliston <bje@au.ibm.com>
12726
12727 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
12728 when compiling for powerpc64-*-linux.
12729 * system-linux-ppc64.ads: New file.
12730
c3048783
EB
127312007-09-27 Eric Botcazou <ebotcazou@adacore.com>
12732
12733 Mapped location support
12734 * back_end.adb (Call_Back_End): Pass information about source
12735 files instead of units to gigi.
12736 * gigi.h (struct File_Info_Type): New.
12737 (gigi): Rename and change type of number_units parameter, change
12738 type of file_info_ptr parameter.
12739 * trans.c (number_files): New global variable.
12740 (gigi): Rename and change type of number_units parameter, change
12741 type of file_info_ptr parameter.
12742 If mapped location support is enabled, create the isomorphic mapping
12743 between source files and line maps.
12744 (Sloc_to_locus): If mapped location support is enabled, translate
12745 source location into mapped location.
12746 (annotate_with_node): Rename into set_expr_location_from_node.
12747 Call set_expr_location instead of annotate_with_locus.
12748 (Pragma_to_gnu): Adjust for above change.
12749 (Loop_Statement_to_gnu): Likewise.
12750 (call_to_gnu): Likewise.
12751 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
12752 (gnat_to_gnu): Likewise.
12753 (add_stmt_with_node): Likewise.
12754 (add_cleanup): Likewise.
12755 * utils.c (gnat_init_decl_processing): Do not set input_line.
12756
68b72a44
AC
127572007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12758
12759 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
12760 (Applicable_Use): Emit a warning when a package tries to use itself.
12761 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
12762 is already in use or the package where it is declared is in use or is
12763 declared in the current package.
12764 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
12765
12766 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
12767 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
12768 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
12769
127702007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12771
9e81dbc7 12772 * a-calend-vms.adb, a-calend.adb:
68b72a44
AC
12773 Add a section on leap seconds control along with two entities used to
12774 enable and disable leap seconds support. The array Leap_Second_Times is
12775 now constant and contains hard time values pre-generated. Remove
12776 all elaboration code used to populate the table of leap seconds.
12777
9e81dbc7 12778 * bindgen.adb:
68b72a44
AC
12779 Add entity Leap_Seconds_Support to the list of global run-time variables
12780 along with a comment on its usage and values.
12781 (Gen_Adainit_Ada): Add code to generate the declaration and import of
12782 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
12783 or one (enabled) depending on the presence of binder switch "-y".
12784 (Gen_Adainit_C): Add code to generate the declaration of external int
12785 __gl_leap_seconds_support. Set is value to zero (disabled) or one
12786 (enabled) depending on the presence of binder switch "-y".
12787
12788 * init.c: Add __gl_leap_seconds_support to the list of global values
12789 computed by the binder.
12790
127912007-09-26 Jerome Guitton <guitton@adacore.com>
12792
12793 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
12794 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
12795 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12796 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
12797
12798 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
12799
12800 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
12801 function which can be called by the debugger to interrupt the tasks of
12802 an Ada application asynchronously, as needed on VxWorks.
12803 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
12804
12805 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
12806 renamed from Stop_All_Tasks. Update comments.
12807 (Stop_All_tasks): New function declaration.
12808
128092007-09-26 Olivier Hainque <hainque@adacore.com>
12810
12811 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
12812 #include <utime.h> and #define GCC_RESOURCE_H before
12813 #include <sys/wait.h>.
12814 Add more protections in __gnat_translate_vms.
12815
12816 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
12817 #include <sys/wait.h>.
12818
128192007-09-26 Thomas Quinot <quinot@adacore.com>
12820 Sergey Rybin <rybin@adacore.com>
12821
12822 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
12823
12824 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12825 where it belongs.
12826
12827 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12828
12829 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
12830 where it belongs.
12831
12832 * sem_dist.ads: Minor comment fix
12833
12834 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
12835
128362007-09-26 Javier Miranda <miranda@adacore.com>
12837 Eric Botcazou <ebotcazou@adacore.com>
12838
9e81dbc7 12839 * a-tags.adb:
68b72a44
AC
12840 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
12841 indirection added to the HT_Link component of the TSD. This is required
12842 to statically allocate the TSD.
12843
9e81dbc7 12844 * a-tags.ads:
68b72a44
AC
12845 Minor reordering of the declarations in the private part. Required to
12846 add a level of indirection to the contents of the TSD component HT_Link.
12847 This is required to statically allocate the TSD.
12848
12849 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
12850 Is_Statically_Allocated set from constant objects.
12851 Do not make exported constants created by the compiler volatile.
12852 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
12853 as read-only.
12854
12855 * trans.c (Identifier_to_gnu): For constants, unshare initializers
12856 before returning them.
12857
12858 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
12859 public part of the package.
12860 (Make_DT): Move HT_Link component out of the TSD record. For this
12861 purpose Make_DT now declares a separate object that stores the
12862 HT_Link value, and initializes the TSD component with the address
12863 of this new object. The addition of this level of indirection is
12864 required to statically allocate the TSD because the TSD cannot
12865 have variable components.
12866 (Expand_Interface_Conversion): Improve the expanded code.
12867 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
12868
12869 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
12870 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
12871 if we are building static dispatch tables then we must not generate
12872 extra code to register the primitive because the dispatch table will
12873 be built at the end of the library package; otherwise we notify that
12874 we cannot build the static dispatch table.
12875
128762007-09-26 Robert Dewar <dewar@adacore.com>
12877
12878 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
12879 overlays.
12880
12881 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
12882 (Analyze_Record_Representation_Clause): Suppress junk warning for
12883 missing component clause.
12884 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
12885 tests for controlled type overlay to composites with controlled
12886 components.
12887 (Analyze_Record_Representation_Clause): Add reference for component name
12888
128892007-09-26 Javier Miranda <miranda@adacore.com>
12890 Gary Dismukes <dismukes@adacore.com>
12891
12892 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
12893 for thunks associated with interface types.
12894
12895 * einfo.ads: Improve documentatation of Is_Internal
12896 (Is_Thunk): New attribute applicable to subprograms. True for thunks
12897 associated with interface types.
12898 Extensive comment fixes regarding flags that appear in all entities. The
12899 documentation is now consistent for all such flags (there were a number
12900 of errors in the documentation in this regard).
12901
12902 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
12903
12904 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
12905 of these procedures are passed a function call that already has
12906 build-in-place actuals (testing new flag
12907 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
12908 the case where processing continues.
12909 (Expand_Call): If the call is generated from a thunk body then we
12910 propagate the extra actuals associated with the accessibility
12911 level of the access type actuals.
12912
12913 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
12914 of each extra formal of a protected operation to reference the
12915 corresponding extra formal of the subprogram denoted by the
12916 operation's Protected_Body_Subprogram.
9e81dbc7 12917
68b72a44
AC
12918 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
12919 N_Function_Call nodes.
12920
129212007-09-26 Robert Dewar <dewar@adacore.com>
12922
12923 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
12924
12925 * debug.adb: Add d.s flag.
12926
129272007-09-26 Gary Dismukes <dismukes@adacore.com>
12928
12929 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
12930 debug variable so that it won't be initialized when pragma
12931 Initialize_Scalars is in effect.
12932
129332007-09-26 Gary Dismukes <dismukes@adacore.com>
12934
12935 * freeze.adb (Freeze_Entity): Remove check for preelaborable
12936 initialization of a full view. This is moved to
12937 Analyze_Package_Specification.
12938
12939 * sem_ch7.adb (Analyze_Package_Specification): Add check for
12940 preelaborable initialization of a full view in entity loop.
12941 (Uninstall_Declarations): If entity is a use-visible compilation unit,
12942 its child units are use-visible only if they are visible child units.
12943
12944 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
12945 whether an expression can be used within a type declaration that
12946 requires preelaborable init.
12947 (Check_Components): Replace inline code that does partial checking for
12948 preelaborable default expressions with call to
12949 Is_Preelaborable_Expression.
12950 (Has_Preelaborable_Initialization): In the case of a generic actual
12951 subtype, (that is, Is_Generic_Actual is True), return the result of
12952 applying Has_Preelaborable_Initialization to the generic actual's base
12953 type.
12954
129552007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12956
12957 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
12958 call to Jan_1_Day _Of_Week to optimize its performance.
12959 (Is_Leap): Move the routine to the scope of Week_In_Year.
12960 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
12961 weekday on which January 1 falls of Year - 1 and Year + 1. This function
12962 avoids calling Time_Of and Split, thus making it more efficent.
12963 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
12964
12965 * g-calend.ads (Week_In_Year): Change comment to reflect new
12966 implementation.
12967
129682007-09-26 Emmanuel Briot <briot@adacore.com>
12969
12970 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
12971 Command_Line): New types
12972 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
12973 support for defining how switches can be grouped on a command line (as
12974 is the case for -gnatw... for GNAT), and how simple switches can be
12975 used as aliases for more complex switches (-gnatwa is same as
12976 -gnatwbcef...)
12977 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
12978 (Start, Current_*): New subprograms
12979 Added support for parsing an array of strings in addition to the real
12980 command line.
12981 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
12982 be moved from the body to the private part of the spec.
12983 (*): All subprograms now have an extra parameter with default value to
12984 specify which parser should be used. For backward compatibility, it
12985 defaults to parsing the command line of the application. They were also
12986 modified to properly handle cases where each of the argument does not
12987 start at index 1 (which is always true for Ada.Command_Line, but not
12988 when processing any Argument_List).
12989 (Free): New subprogram
12990 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
12991 Argument): New subprograms
12992 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
12993 special characters like ':', '=',... are now handled in a single place,
12994 which makes the code more extensible eventually.
12995 (Getopt, Full_Switch): When the switch was returned as part of the
12996 special character '*', make sure it is prepended by the switch character
12997 ('-' in general), so that the application knows whether "foo" or "-foo"
12998 was specified on the command line.
12999
130002007-09-26 Florian Villoing <villoing@adacore.com>
13001
13002 * g-dirope.adb (Remove_Dir): In case we are removing directories
13003 recursively, make sure that if an exception is raised during the
13004 processing, the current working directory is reset to its initial
13005 value before propagating the exception.
13006
130072007-09-26 Vincent Celier <celier@adacore.com>
13008
13009 * gnatbind.adb: If there are several ALI files specified and there is
13010 a main program to bind, the first ALI is expected to contain the main
13011 subprogram and the names of the binder generated files will be derived
13012 from the first ALI file name.
13013 (Gnatbind): Fix insertion character in invocation of Error_Msg
13014
130152007-09-26 Vincent Celier <celier@adacore.com>
13016
13017 * gnatcmd.adb (Check_Files): Do not include sources that have been
13018 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
13019
130202007-09-26 Ed Schonberg <schonberg@adacore.com>
13021
13022 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
13023 information about each of its index types, following the type
13024 reference for its component type.
13025
130262007-09-26 Vincent Celier <celier@adacore.com>
13027
13028 * make.adb: (Kill): New procedure (__gnat_kill imported)
13029 (Running_Compile, Outstanding_Compiles): Global variables that
13030 were previously local to procedure Compile_Sources.
13031 (Sigint_Intercepted): Send signal SIGINT to all outstanding
13032 compilation processes.
13033
13034 (Gnatmake): If project files are used, create the mapping of all the
13035 sources, so that the correct paths will be found.
13036
13037 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
13038
130392007-09-26 Vincent Celier <celier@adacore.com>
13040
13041 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
13042
13043 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
13044 Replace components Compiler_Min_Options and Binder_Min_Options with
13045 Compiler_Required_Switches and Binder_Required_Switches in record
13046 Language_Config.
13047 Remove components Default_Language and Config in Project_Tree_Data,
13048 no longer used.
13049
13050 * prj-attr.adb: New attributes Required_Switches (<language>) in
13051 packages Compiler and Binder.
13052
13053 * prj-nmsc.adb: Major rewrite of the processing of configuration
13054 attributes for gprbuild. No impact on GNAT tools.
13055
13056 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
13057 process configuration attributes: this is done in Prj.Nmsc.Check.
13058 (Recursive_Process): Make a full copy of packages inherited from project
13059 being extended, instead of a shallow copy.
13060 (Process_Project_Tree_Phase_1): New procedure
13061 (Process_Project_Tree_Phase_1): New procedure
13062 (Process): Implementation now uses the two new procedures
13063
13064 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
13065 from the project config, not the tree config that no longer exists.
13066
130672007-09-26 Vincent Celier <celier@adacore.com>
13068
13069 * Make-lang.in: Update dependencies..
13070
130712007-09-26 Vincent Celier <celier@adacore.com>
13072
13073 * osint.adb, osint.ads: Minor reformatting
13074
13075 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
13076
130772007-09-26 Gary Dismukes <dismukes@adacore.com>
13078
13079 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
13080 message to cite use of <> in aggregate component associations rather
13081 than wrongly indicating use of limited aggregates.
13082
130832007-09-26 Robert Dewar <dewar@adacore.com>
13084
13085 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
13086 Address_Taken.
13087
130882007-09-26 Ed Schonberg <schonberg@adacore.com>
13089
13090 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
13091 ancestor of the derived type, the operations are inherited from the
13092 primary dispatch table of the parent.
13093 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
13094 when the context is an explicit type conversion.
13095
130962007-09-26 Ed Schonberg <schonberg@adacore.com>
13097
13098 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
13099 rule for qualified expressions properly, to detect improper conversions
13100 and resolve some cases of overloading.
13101
131022007-09-26 Ed Schonberg <schonberg@adacore.com>
13103
13104 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
13105 proper kind of reference to the primitive operation, for better source
13106 navigation.
13107 (Valid_Conversion): A tagged conversion is legal if both operands are
13108 tagged.
13109
131102007-09-26 Robert Dewar <dewar@adacore.com>
13111
13112 * sem_warn.adb (Check_References): Catch more cases of unreferenced
13113 packages.
13114
131152007-09-26 Vincent Celier <celier@adacore.com>
13116
13117 * snames.adb, snames.ads: Change Include_Option to Include_Switches
13118
131192007-09-26 Robert Dewar <dewar@adacore.com>
13120
13121 * s-wchstw.adb: provide messages for run time unit exceptions
13122
13123 * a-witeio.adb: Minor reformatting
13124
13125 * exp_ch13.adb: Minor reformatting
13126
131272007-09-26 Sergey Rybin <rybin@adacore.com>
13128
13129 * vms_data.ads: Revise gnatmetric qualifiers.
13130 Add qualified for the new gnatbind option '-y'
13131
13132 * gnat_ugn.texi: Revise the gnatmetric section.
13133 Add entry for new gnatbind option '-y'.
13134
13135 * gnat_rm.texi: Minor spelling correction.
13136 Document restriction on overlaying controlled types
13137
131382007-09-26 Vincent Celier <celier@adacore.com>
13139
13140 * makegpr.adb (Link_Executables): Do not fail when the root project has
13141 no sources, but is an extending project.
13142
0a86bcc9
EB
131432007-09-25 Eric Botcazou <ebotcazou@adacore.com>
13144
13145 * trans.c: Fix misplaced #define.
13146
b235734c
EB
131472007-09-22 Eric Botcazou <ebotcazou@adacore.com>
13148
13149 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
13150 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
13151
97237784
OH
131522007-09-21 Olivier Hainque <hainque@adacore.com>
13153
13154 * utils.c (type_for_nonaliased_component_p): Return false for
13155 all AGGREGATE_TYPEs.
13156
2adde4ff
EB
131572007-09-17 Eric Botcazou <ebotcazou@adacore.com>
13158
13159 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
13160 object covered by 13.3(19) volatile.
13161
b693daa7
EB
131622007-09-12 Eric Botcazou <ebotcazou@adacore.com>
13163
13164 PR ada/26797
13165 PR ada/32407
13166 * utils.c (unchecked_convert): Use a subtype as the intermediate type
13167 in the special VIEW_CONVERT_EXPR case.
13168
82da9a90
AC
131692007-09-12 Robert Dewar <dewar@adacore.com>
13170
13171 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
13172
13173 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
13174 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
13175 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
13176 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
13177 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
13178 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
13179 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
160c5065 13180 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9e81dbc7
AS
13181 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
13182 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
13183 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
13184 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
13185 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
13186 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
13187 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
13188 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
82da9a90
AC
13189 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
13190 pragma Compiler_Unit and adds it to relevant library units.
13191
131922007-09-12 Ed Schonberg <schonberg@adacore.com>
13193
13194 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
13195 a box need not correspond to any component.
13196
131972007-09-12 Robert Dewar <dewar@adacore.com>
13198
13199 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
13200 the tasking version of the Ada run time when foreign threads are
13201 present and there are no explicit Ada tasks or tasking constructs.
13202
13203 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
13204
132052007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
13206
13207 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
13208 the usage of switch -y.
13209
13210 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
13211 when switch -y is present.
13212
13213 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
13214 leap seconds in Ada.Calendar and its children.
13215
132162007-09-12 Jose Ruiz <ruiz@adacore.com>
13217
13218 * a-extiti.ads (Timer): The discriminant is a "not null access
13219 constant" in the Reference Manual.
13220 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
13221
132222007-09-12 Robert Dewar <dewar@adacore.com>
13223
13224 * a-swuwha.adb: Remove junk RM header
13225
132262007-09-12 Vincent Celier <celier@adacore.com>
13227
13228 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
13229 indicator
13230
13231 * g-bytswa.ads: Minor reformatting
13232
132332007-09-12 Thomas Quinot <quinot@adacore.com>
13234
9e81dbc7 13235 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
82da9a90
AC
13236 Add new constant Thread_Blocking_IO, always True by default, set False
13237 on a per-runtime basis.
13238 (Need_Netdb_Buffer): New constant.
13239
132402007-09-12 Arnaud Charlet <charlet@adacore.com>
13241
13242 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
13243 Added renames for corresponding functions in System.Partition_Interface.
13244
132452007-09-12 Doug Rupp <rupp@adacore.com>
13246
13247 * Makefile.in: Remove VMS specific System.CRTL packages which are no
13248 longer needed.
13249
13250 * s-crtl-vms64.ads: Removed.
13251
09528ed9
OH
132522007-09-12 Olivier Hainque <hainque@adacore.com>
13253
13254 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
13255 with discriminant constraints, generalize the code for BIT_FIELDs
13256 to PACKED fields of constant size and propagate DECL_PACKED.
13257
fa89b6ec
EB
132582007-09-11 Eric Botcazou <ebotcazou@adacore.com>
13259
13260 * decl.c (array_type_has_nonaliased_component): New predicate.
13261 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
13262 set the TYPE_NONALIASED_COMPONENT flag on the type.
13263 <E_Array_Subtype>: Likewise.
13264 * gigi.h (type_for_nonaliased_component_p): Declare.
13265 * utils.c (type_for_nonaliased_component_p): New predicate.
13266 (create_field_decl): Invoke the above predicate to set the
13267 DECL_NONADDRESSABLE_P flag on the field.
13268
e18d6a15
JM
132692007-09-11 Javier Miranda <miranda@adacore.com>
13270
13271 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
13272 in library level record type entities if we are generating statically
13273 allocated dispatch tables.
13274
13275 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
13276 importing/exporting the _tag declaration by new code
13277 importing/exporting the dispatch table wrapper. This change allows us
13278 to statically allocate of the TSD.
13279 (Make_DT.Export_DT): New procedure.
13280 (Build_Static_DT): New function.
13281 (Has_DT): New function.
13282
13283 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
13284 True_Constant and Current_Value. Required to statically
13285 allocate the dispatch tables.
13286 (Check_Allocator): Make function iterative instead of recursive.
13287 Also return inner allocator node, when present, so that we do not have
13288 to look for that node again in the caller.
13289
9e94c78f 132902007-09-11 Jan Hubicka <jh@suse.cz>
e89d6010
JH
13291
13292 * misc.c (gnat_expand_body): Kill.
13293 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
13294
281b604e
AC
132952007-09-10 Robert Dewar <dewar@adacore.com>
13296
13297 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
13298 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13299 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13300 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
13301 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
13302 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
13303 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
13304 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
13305 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
13306 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
13307 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
13308 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
13309 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
13310 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
13311 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13312 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
13313 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
13314 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13315 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
13316 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
13317 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13318 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
13319 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
13320 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
13321 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
13322 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13323 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
13324 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
13325 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
13326 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
13327 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
13328 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
13329 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
13330 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
13331 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
13332 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
13333 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13334 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
13335 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
13336 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
13337 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
13338 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
13339 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13340 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
13341 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
13342 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
13343 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
13344 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
13345 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
13346 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
13347 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
13348 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
13349 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
13350 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
13351 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
13352 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
13353 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
13354 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13355 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
13356 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
13357 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
13358 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13359 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
13360 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
13361 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
13362 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
13363 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
13364 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
13365 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
13366 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
13367 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13368 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
13369 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
13370 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
13371 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
13372 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
13373 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
13374 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
13375 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
13376 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
13377 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
13378 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
13379 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
13380
133812007-09-10 Emmanuel Briot <briot@adacore.com>
13382
13383 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
13384 classes ("[]").
13385
133862007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
13387
13388 * adaint.c (__gnat_translate_vms): new function.
13389
133902007-09-10 Gary Dismukes <dismukes@adacore.com>
13391 Thomas Quinot <quinot@adacore.com>
13392
13393 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
13394 create an abstract subprogram in the case of 'Input. For 'Output we now
13395 create a real spec/body when the type is abstract, since it can
13396 potentially be called.
13397 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
13398 body for 'Output when the type is abstract (only the creation of the
13399 body for 'Input is excluded when the type is abstract).
13400 (Stream_Operation_OK): Add an additional condition in the return
13401 statement, so that False will be returned for TTS_Stream_Input if the
13402 associated tagged type is an abstract extension. Add comments for
13403 return statement.
13404 (Expand_N_Object_Declaration): For the case of a shared passive
13405 variable, insert init proc call only after the shared variable
13406 procedures have been processed, because the IP call needs to undergo
13407 shared passive variable reference expansion, which requires these
13408 procedures to be available (and elaborated).
13409
134102007-09-10 Vincent Celier <celier@adacore.com>
13411
13412 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
13413 parameter Runtime_Project.
13414
134152007-09-10 Ed Schonberg <schonberg@adacore.com>
13416
13417 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
13418 given a box association, the type of the component is discriminated,
13419 and the value of the discriminant is the discriminant of the enclosing
13420 type, retrieve its value from the aggregate itself, where it must have
13421 been supplied.
13422
13423 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
13424 to remove other spurious ambiguities on arithmetic operations involving
13425 literals and addresses, on systems where Address is a visible integer
13426 type, when the operator is called in functional notation.
13427 (Try_Primitive_Operation): Within an instance, a call in prefixed form
13428 is legal when the types match, even if the operation is currently
13429 hidden.
13430
134312007-09-10 Ed Schonberg <schonberg@adacore.com>
13432
13433 * sem_ch12.adb (Build_Local_Package): A formal package with no
13434 associations is legal if all formals have defaults. It is not
13435 equivalent to a formal declared with a box.
13436
134372007-09-10 Sergey Rybin <rybin@adacore.com>
13438
13439 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
13440
134412007-09-10 Sergey Rybin <rybin@adacore.com>
13442
13443 * gnat_ugn.texi: Add description of the new '-lratio' option
13444 Update 7.3.1 section about availability of the feature.
13445
134462007-09-10 Thomas Quinot <quinot@adacore.com>
13447
13448 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
13449 inserted node.
13450
134512007-09-10 Olivier Hainque <hainque@adacore.com>
13452
13453 * Makefile.in: (mips-irix section): Activate build of libgmem.
13454
a56955b1
EB
134552007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13456
13457 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
13458 x87 registers.
13459
c03550f6
EB
134602007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13461
13462 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
13463 a debug renaming declaration specially.
13464
79646678
EB
134652007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13466
13467 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
13468 which a constant renaming is treated as a normal object declaration.
13469 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
13470 the N_Indexed_Component case.
13471 <N_Indexed_Component>: Fall through to above case.
13472 <N_Object_Renaming_Declaration>: Return true for all composite types.
13473
d9e161ce
EB
134742007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13475
13476 * decl.c (make_packable_type): If the new type has been given BLKmode,
13477 try again to get an integral mode for it.
13478
0ab29e91 134792007-09-07 Eric Botcazou <ebotcazou@adacore.com>
6ef9a246 13480
0ab29e91 13481 Re-apply accidentally reverted change:
6ef9a246 13482
0ab29e91 13483 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6ef9a246 13484
0ab29e91 13485 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9e81dbc7 13486 get_action_description_for): Replace _Unwind_Word with _uleb128_t
0ab29e91 13487 and _Unwind_SWord with _sleb128_t.
4b459ae4 13488
38f1f8cb
EB
134892007-09-06 Eric Botcazou <ebotcazou@adacore.com>
13490
13491 * trans.c (convert_with_check): Update call to real_2expN.
13492
db2960f4
SL
134932007-09-05 Sandra Loosemore <sandra@codesourcery.com>
13494
13495 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
13496 * utils.c (end_subprog_body): Likewise.
13497
d70c0bd6
NC
134982007-09-03 Nick Clifton <nickc@redhat.com>
13499
13500 * Make-lang.in: Change copyright header to refer to version 3 of
13501 the GNU General Public License and to point readers at the
13502 COPYING3 file and the FSF's license web page.
13503 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
13504 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
13505 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
13506 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
13507 Likewise.
13508
8a26ebb6
AC
135092007-08-31 Vincent Celier <celier@adacore.com>
13510
13511 PR ada/4720
13512
9e81dbc7 13513 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8a26ebb6
AC
13514 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
13515 (Check_Version_And_Help): New procedure in package Switch to process
13516 switches --version and --help.
13517 Use Check_Version_And_Help in GNAT tools
13518
13519 * make.adb: Ditto.
13520 (Compile_Sources): Make sure that sources that are "excluded" are not
13521 compiled.
13522 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
13523 project file is used.
13524 (Version_Switch): Remove, moved to Switch
13525 (Help_Switch): Remove, moved to Switch
13526 (Display_Version): Remove, moved to Switch
13527
13528 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
13529 package Switch to process switches --version and --help.
13530 (Display_Version): New procedure
13531
13532 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
13533
135342007-08-31 Javier Miranda <miranda@adacore.com>
13535
13536 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
13537 internal tags.
13538
135392007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13540
13541 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
13542 (Mark_Non_Null): If the node for which we just generated an access check
13543 is a reference to an *in* parameter and the reference appears in the
13544 declarative part of a subprogram body, mark the node as known non null.
13545
135462007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13547
13548 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
13549 structure of E_Exception to reflect the new flag.
13550 (Is_Raised, Set_Is_Raised): New inlined routines.
13551 Update the usage of available flag to reflect the addition of Is_Raised.
13552 (Is_Raised, Set_Is_Raised): Bodies of new routines.
13553 (Write_Entity_Flags): Write the status of flag Is_Raised.
13554 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
13555 spurious ambiguities when integer literals appear in the context of an
13556 address type that is a visible integer type.
13557
13558 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
13559 exceptions never being raised.
13560 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
13561 explicitly raised.
13562
135632007-08-31 Javier Miranda <miranda@adacore.com>
13564
13565 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
13566 statement when compiling under restriction No_Exceptions_Proparation.
13567
135682007-08-31 Ed Schonberg <schonberg@adacore.com>
13569
13570 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
13571 initialization aggregate for the type, generate itype references for
13572 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
13573
135742007-08-31 Gary Dismukes <dismukes@adacore.com>
13575
13576 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
13577 library-level package renaming, pass the declaration associated with
13578 the renaming's special debug variable to Qualify_Entity_Names to ensure
13579 that its encoded name is properly qualified.
13580
13581 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
13582 occurring in the list of entities to qualify, and do not attempt to
13583 traverse an entity list in that case. Variables associated with
13584` library-level package renamings can now occur in the table.
13585
13586 * exp_dbug.ads: Revise documentation of the encoding for renaming
13587 declarations.
13588
135892007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13590
13591 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
13592 access type points to an unconstrained array.
13593
135942007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13595
9e81dbc7 13596 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8a26ebb6
AC
13597 conversion.
13598
13599 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
13600 simple redundant qualifications. The check is performed whenever the
13601 expression is a non-overloaded identifier.
13602 (Resolve_Type_Conversion): Enchance the redundant type conversion check
13603 to include loop parameters.
13604 (Valid_Conversion): Avoid generation of spurious error message.
13605
136062007-08-31 Bob Duff <duff@adacore.com>
13607
13608 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
13609 concatenations of string literals into a single literal, in order to
13610 avoid very deep recursion in the front end, which was causing stack
13611 overflow.
13612
13613 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
13614 string, and the right operand is a string literal (the case of "" &
13615 "..."), optimize by avoiding copying the right operand -- just use the
13616 value of the right operand directly.
13617
13618 * stringt.adb (Store_String_Chars): Optimize by growing the
13619 String_Chars table all at once, rather than appending characters one by
13620 one.
13621 (Write_String_Table_Entry): If the string to be printed is very long,
13622 just print the first few characters, followed by the length. Otherwise,
13623 doing "pn(n)" in the debugger can take an extremely long time.
13624
13625 * sem_prag.adb (Process_Interface_Name): Replace loop doing
13626 Store_String_Char with Store_String_Chars.
13627
136282007-08-31 Vincent Celier <celier@adacore.com>
13629
13630 * prj-attr.adb: Add new attribute Excluded_Source_Files
13631
13632 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
13633 Locally_Removed_Files.
13634
13635 * snames.ads, snames.adb: New standard name Excluded_Source_Files
13636
136372007-08-31 Ed Schonberg <schonberg@adacore.com>
13638
13639 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
13640 clauses of subunits, ignore limited_with_clauses that are illegal and
13641 have not been fully analyzed.
13642
136432007-08-31 Ed Schonberg <schonberg@adacore.com>
13644
13645 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
13646 flag, for effiency. It is called when analyzing arithmetic operators
13647 and also for actuals in calls that are universal_integers. The flag is
13648 set for the predefined type address, and for any type or subtype
13649 derived from it.
13650
13651 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
13652 Universal_Integer, when the formal is a descendent of address and the
13653 call appears in user code.
13654 (Analyze_Selected_Component): if the prefix is a private extension, the
13655 tag component is visible.
13656
13657 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
13658 entity flag.
13659
136602007-08-31 Robert Dewar <dewar@adacore.com>
13661
13662 * s-fileio.adb (Open): Normalize file name to lower case in non-case
13663 sensitive file name systems to avoid unexpected mismatch in Vista.
13664
136652007-08-31 Vincent Celier <celier@adacore.com>
13666
13667 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
13668
136692007-08-31 Vincent Celier <celier@adacore.com>
13670
13671 * symbols-vms.adb (Initialize): Read symbol files with continuation
13672 lines
13673 (Finalize): If symbol is long, split the line
13674
136752007-08-31 Vincent Celier <celier@adacore.com>
13676
13677 * fmap.ads: Minor comment updates
13678
136792007-08-31 GNAT Script <nobody@adacore.com>
13680
13681 * Make-lang.in: Makefile automatically updated
13682
136832007-08-31 Bob Duff <duff@adacore.com>
13684
13685 * sinfo.ads: Minor comment fix.
13686
136872007-08-31 Thomas Quinot <quinot@adacore.com>
13688
13689 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
13690 with implementation.
13691 Documentation cleanup only.
13692
136932007-08-31 Sergey Rybin <rybin@adacore.com>
13694
13695 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
13696 gnatpp '--separate-stmt-name' option.
13697 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
13698 option.
13699
13700 * gnat_ugn.texi: Add description for the new gnatpp
13701 '--separate-stmt-name' and '--use-on-new-line' options.
13702
22d2aa96
BE
137032007-08-31 Ben Elliston <bje@au.ibm.com>
13704
13705 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13706 when compiling for powerpc64-*-linux.
13707 * system-linux-ppc64.ads: New file.
13708
51743df8
KW
137092007-08-22 Krister Walfridsson <cato@df.lth.se>
13710
13711 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
13712 NetBSD.
13713
ac7d7749
KG
137142007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13715
13716 * misc.c (gnat_type_max_size): Constify.
13717
833eddff
AC
137182007-08-16 Gary Dismukes <dismukes@adacore.com>
13719
13720 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
13721 associated with Standard_Debug_Renaming_Type, to be used as the type of
13722 the special variables whose names provide debugger encodings for
13723 renaming declarations.
13724
13725 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
13726 (Set_Debug_Renaming_Link): Change to set Node25.
13727 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
13728 (Write_Field25_Name): Add case for E_Variable to output
13729 "Debug_Renaming_Link".
13730 (Write_Field23_Name): Correct the output string for "Limited_View".
13731
13732 * exp_dbug.adb: Add with and use of Tbuild.
13733 (Debug_Renaming_Declaration): Replace creation of an enumeration type
13734 and literal with creation of a variable of type
13735 Standard_Debug_Renaming_Type whose name encodes both the renamed object
13736 and the entity of the renaming declaration.
13737 (Qualify_Entity_Name): Add the delayed qualification of the entity name
13738 part of the name of a variable that has a Debug_Renaming_Link.
13739
13740 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
13741 special type to be associated with variables that provide debugger
13742 encodings for renaming declarations.
13743
137442007-08-16 Gary Dismukes <dismukes@adacore.com>
13745 Ed Schonberg <schonberg@adacore.com>
13746 Javier Miranda <miranda@adacore.com>
13747
13748 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
13749 ancestor part given by an aggregate to test for an unchecked conversion,
13750 since this can occur in some cases when the ancestor part is a function
13751 call, and we don't want to fall into the recursive call to this
13752 procedure in that case.
13753
13754 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
13755 stream attributes on limited types to account for user-specified
13756 attributes as well as whether Input (resp. Output) becomes available
13757 due to Read (resp. Write) being available for the type. Change Boolean
13758 variable to the more accurate name
13759 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
13760 double-"not" predicate at beginning of return statement to more
13761 understandable form.
13762
13763 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
13764 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
13765 in a block statement and use that as the first statement of the
13766 expanded return rather than incorrectly using the handled sequence as
13767 the first statement.
13768
13769 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
13770 operation, generate an explicit freeze node for it rather than
13771 generating extra formals, to ensure that gigi has the proper order of
13772 elaboration for anonymous subtypes in the signature of the subprograms.
13773 (Build_In_Place_Formal): Move assertion to beginning of loop.
13774 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
13775 applied to a function call (occurs for some cases of 'Input).
13776 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
13777 applied to a function call (occurs for some cases of 'Input).
13778
13779 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
13780 2005, generate an extended return statement enclosing the result object
13781 and 'Read call.
13782
13783 * freeze.adb (Freeze_Record_Type): Extend the current management of
13784 components that are access type with an allocator as default value: add
13785 missing support to the use of qualified expressions of the
13786 allocator (which also cause freezing of the designated type!)
13787 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
13788 dispatching operation, since extra formals may be needed by calls to
13789 build-in-place functions (such as stream 'Input).
13790
13791 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
13792 formals for 'Constrained and accessibility level in the case of a
13793 predefined dispatching operation.
13794
13795 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
13796 point, no need to find the parent node.
13797
137982007-08-16 Javier Miranda <miranda@adacore.com>
13799
13800 * exp_attr.adb (Attribute_Priority): Add missing support for entries
13801 and entry barriers.
13802
138032007-08-16 Javier Miranda <miranda@adacore.com>
13804
13805 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
13806 is not really required and can introduce regression with the debugger.
13807 The original problem is fixed with the patch written for checks.adb.
13808
138092007-08-16 Thomas Quinot <quinot@adacore.com>
13810
13811 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
13812 Range_Check on Allocated_Table.
13813
138142007-08-16 Vincent Celier <celier@adacore.com>
13815
13816 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
13817 Including_Non_Switch set to False.
13818 (Gnatmake): For the compiler, call Test_If_Relative_Path with
13819 Including_Non_Switch set to False.
13820
13821 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
13822 parameter Including_Non_Switch, defaulted to True. When
13823 Including_Non_Switch is False, options that are not switches and
13824 appear as relative path are not converted to absolute paths.
13825
138262007-08-16 Nicolas Roche <roche@adacore.com>
13827
13828 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
13829 makefiles
13830
13831 * Make-lang.in: Update dependencies
13832
138332007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
13834
13835 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
13836 currently inspected is a selected component, retrieve the entity of
13837 its selector.
13838 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
13839 from the immediate ancestor of Main_Unit_Entity.
13840 (Install_Limited_Withed_Unit): Do not install the limited view of
13841 package P if P is reachable through an ancestor chain from package C
13842 and C also has a with clause for P in its body.
13843 (Has_Limited_With_Clause): New routine.
13844 (Has_With_Clause): New routine.
13845
138462007-08-16 Ed Schonberg <schonberg@adacore.com>
13847
13848 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
13849 generic for an enclosing instance is a global reference, even though
13850 its scope is the enclosing instance.
13851
138522007-08-16 Gary Dismukes <dismukes@adacore.com>
13853 Javier Miranda <miranda@adacore.com>
13854
13855 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
13856 initialize a limited object.
13857 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
13858 13/2 and 14/2.
13859 Make sure Has_Complex_Representation is inherited by derived type.
13860
138612007-08-16 Robert Dewar <dewar@adacore.com>
13862
13863 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
13864 exception case
13865
138662007-08-16 Ed Schonberg <schonberg@adacore.com>
13867
13868 * sem_disp.adb (Check_Dispatching_Operation): If the operation
13869 implements an operation inherited from a progenitor interface, verify
13870 that they are subtype-conformant.
13871
138722007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
13873 Bob Duff <duff@adacore.com>
13874 Nicolas Setton <setton@adacore.com>
13875
13876 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
13877 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
13878 the statement which is being resolved comes from a predefined library
13879 unit, all non-predefined library interpretations are skipped.
13880 (Resolve_Op_Concat): If string concatenation was folded in the parser,
13881 but the "&" is user defined, give an error, because the folding would
13882 be wrong.
13883
13884 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
13885 the parser has folded a long sequence of concatenations of string
13886 literals.
13887
13888 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
13889 and "JMP_BUF" variables as artificial.
13890 (N_String_Literal): Do not use alloca for very long string literals. Use
13891 xmalloc/free instead. Otherwise the stack might overflow.
13892
13893 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
13894 compiler.
13895
138962007-08-16 Vincent Celier <celier@adacore.com>
13897
13898 * vms_conv.adb (Process_Argument): Ensure that project related options
13899 are not put in the -cargs section when using GNAT COMPILE.
13900
139012007-08-16 Robert Dewar <dewar@adacore.com>
13902
13903 * gnat_ugn.texi: Add note on preprocessing (output file not written)
13904
139052007-08-16 Thomas Quinot <quinot@adacore.com>
13906
13907 * a-tags.adb: Minor reformatting.
13908
139092007-08-16 Bob Duff <duff@adacore.com>
13910
13911 * sem_type.ads, sem_ch4.adb: Minor reformatting.
13912
ab6328d0
AC
139132007-08-14 Thomas Quinot <quinot@adacore.com>
13914
9e81dbc7 13915 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
ab6328d0
AC
13916 s-osinte-interix.ads, system-interix.ads: Removed.
13917
139182007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
13919
13920 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
13921 calls to Check_Within_Time_Bounds.
13922 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
13923 (Difference): Account for possible rounding of the resulting difference
13924
139252007-08-14 Robert Dewar <dewar@adacore.com>
13926
13927 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
13928 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
13929 s-osinte-solaris.adb, s-osinte-solaris.ads,
13930 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
13931
13932 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
13933 switch -gnatyS. Enable -gnatyS in GNAT style check mode
13934
139352007-08-14 Robert Dewar <dewar@adacore.com>
13936 Ed Schonberg <schonberg@adacore.com>
13937
9e81dbc7 13938 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
ab6328d0
AC
13939 Suppress unmodified in-out parameter warning in some cases
13940 This patch is a also fairly significant change to the way suppressible
13941 checks are handled.
13942
13943 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
13944 needed for access to concurrent record types generated by the expander.
13945 (Generate_Range_Check): When generating a temporary to capture the
13946 value of a conversion that requires a range check, set the type of the
13947 temporary before rewriting the node, so that the type is always
13948 properly placed for back-end use.
13949 (Apply_Float_Conversion_Check): Handle case where the conversion is
13950 truncating.
13951 (Get_Discriminal): Code reformatting. Climb the scope stack looking
13952 for a protected type in order to examine its discriminants.
13953
139542007-08-14 Robert Dewar <dewar@adacore.com>
13955 Gary Dismukes <dismukes@adacore.com>
13956 Ed Schonberg <schonberg@adacore.com>
13957 Thomas Quinot <quinot@adacore.com>
13958
9e81dbc7 13959 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
ab6328d0
AC
13960 a-stwisu.adb, a-strsup.adb: Fix warnings for range
13961 tests optimized out.
13962
13963 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
13964 (Get_Allocator_Final_List): For the case of an anonymous access type
13965 that has a specified Associated_Final_Chain, do not go up to the
13966 enclosing scope.
13967 (Expand_N_Type_Conversion): Test for the case of renamings of access
13968 parameters when deciding whether to apply a run-time accessibility
13969 check.
13970 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
13971 aggregate code before allocator, and ahead of declaration for
13972 temporary, to prevent access before elaboration when the allocator is
13973 an actual for an access parameter.
13974 (Expand_N_Type_Conversion): On an access type conversion involving an
13975 access parameter, do not apply an accessibility check when the
13976 operand's original node was an attribute other than 'Access. We now
13977 create access conversions for the expansion of 'Unchecked_Access and
13978 'Unrestricted_Access in certain cases and clearly accessibility should
13979 not be checked for those.
13980
13981 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
13982 includes a type conversion of a packed component that has been expanded,
13983 recover the original expression for the object, and use this expression
13984 in the post-call assignment statement, so that the assignment is made
13985 to the object and not to a back-end temporary.
13986 (Freeze_Subprogram): In case of primitives of tagged types not defined
13987 at the library level force generation of code to register the primitive
13988 in the dispatch table. In addition some code reorganization has been
13989 done to leave the implementation clear.
13990 (Expand_Call): When expanding an inherited implicit conversion,
13991 preserve the type of the inherited function after the intrinsic
13992 operation has been expanded.
13993
13994 * exp_ch2.ads, exp_ch2.adb
13995 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
13996 of an entry formal appearing in an assignment statement does not assign
13997 to the formal.
13998 (Expand_Current_Value): Instead of calling a routine to determine
13999 whether the prefix of an attribute reference should be optimized or
14000 not, prevent the optimization of such prefixes all together.
14001
14002 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
14003 component whose prefix is known to be of an access type is an implicit
14004 dereference and does not assign to the prefix.
14005
140062007-08-14 Ed Schonberg <schonberg@adacore.com>
14007 Robert Dewar <dewar@adacore.com>
14008
14009 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
14010 itype is visited, make an entry into table to link associated node and
14011 new itype.
14012 Add comments and correct harmless error in Build_NCT_Hash_Tables
14013 (Array_Aggr_Subtype): Associate each itype created for an index type to
14014 the corresponding range construct, and not to the aggregate itself. to
14015 maintain a one-to-one correspondence between itype and its associated
14016 node, to prevent errors when complex expression is copied.
14017 Fix mishandling of multiple levels of parens
14018
14019 * sem_aggr.adb: Create a limited view of an incomplete type, to make
14020 treatment of limited views uniform for all visible declarations in a
14021 limited_withed package.
14022 (New_Copy_Tree): If hash table is being used and itype is visited,
14023 make an entry into table to link associated node and new itype.
14024 (Resolve_Record_Aggregate): Do not add an others box association for a
14025 discriminated record component that has only discriminants, when there
14026 is a box association for the component itself.
14027
14028 * par-ch4.adb: Fix mishandling of multiple levels of parens
14029
140302007-08-14 Robert Dewar <dewar@adacore.com>
14031
14032 * comperr.adb: Fix problem with suppressing warning messages from gigi
14033
9e81dbc7 14034 * erroutc.ads, erroutc.adb, errout.ads,
ab6328d0
AC
14035 errout.adb (Write_Eol): Remove trailing spaces before writing the line
14036 (Write_Eol_Keep_Blanks): New procedure to write a line, including
14037 possible trailing spaces.
14038 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14039 Fix problem with suppressing warning messages from back end
14040 Improve handling of deleted warnings
14041
9e81dbc7 14042 * gnat1drv.adb:
ab6328d0
AC
14043 Fix problem with suppressing warning messages from back end
14044 Handle setting of Static_Dispatch_Tables flag.
14045
9e81dbc7 14046 * prepcomp.adb:
ab6328d0
AC
14047 Fix problem with suppressing warning messages from back end
14048
14049 * exp_intr.adb: Improve handling of deleted warnings
14050
140512007-08-14 Robert Dewar <dewar@adacore.com>
14052
14053 * debug.adb: Improve -gnatdI to cover all cases of serialization
14054 Add documentation of dZ, d.t
14055
14056 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
14057 serialization.
14058 (Sprint_Node_Actual): Generate new output associated with implicit
14059 importation and implicit exportation of object declarations.
14060
140612007-08-14 Ed Schonberg <schonberg@adacore.com>
14062 Robert Dewar <dewar@adacore.com>
14063 Javier Miranda <miranda@adacore.com>
14064 Gary Dismukes <dismukes@adacore.com>
14065
14066 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
14067 to make treatment of limited views uniform for all visible declarations
14068 in a limited_withed package.
14069 Improve warnings for in out parameters
14070 (Set_Related_Interaface/Related_Interface): Allow the use of this
14071 attribute with constants.
14072 (Write_Field26_Name): Handle attribute Related_Interface in constants.
14073 Warn on duplicate pragma Preelaborable_Initialialization
14074
14075 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
14076 generation of a freezing node to ensure proper management of null
14077 excluding access types in the backend.
14078 (Create_Extra_Formals): Test base type of the formal when checking for
14079 the need to add an extra accessibility-level formal. Pass the entity E
14080 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
14081 originally being done in a couple of cases), to ensure that the
14082 Extra_Formals list gets set on the entity E when the first entity is
14083 added.
14084 (Conforming_Types): Add missing calls to Base_Type to the code that
14085 handles anonymous access types. This is required to handle the
14086 general case because Process_Formals builds internal subtype entities
14087 to handle null-excluding access types.
14088 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14089 functions that need it, even when not marked Requires_Overriding.
14090 Improve warnings for in out parameters
14091 (Analyze_Function_Return): Warn for disallowed null return
14092 Warn on return from procedure with unset out parameter
14093 Ensure consistent use of # in error messages
14094 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
14095 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
14096 the implicit conversion of the expression done for anonymous access
14097 types. This is required to generate the code of the null excluding
14098 check (if required).
14099
14100 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
14101 A formal parameter is never publicly referenceable outside of its body.
14102 (Check_References): For an unreferenced formal parameter in an accept
14103 statement, use the same warning circuitry as for subprogram formal
14104 parameters.
14105 (Warn_On_Unreferenced_Entity): New subprogram, taken from
14106 Output_Unreferenced_Messages, containing the part of that routine that
14107 is now reused for entry formals as described above.
14108 (Goto_Spec_Entity): New function
14109 (Check_References): Do not give IN OUT warning for dispatching operation
14110 Improve warnings for in out parameters
14111 (Test_Ref): Check that the entity is not undefinite before calling
14112 Scope_Within, in order to avoid infinite loops.
14113 Warn on return from procedure with unset out parameter
14114 Improved warnings for unused variables
14115
141162007-08-14 Robert Dewar <dewar@adacore.com>
14117 Javier Miranda <miranda@adacore.com>
14118 Gary Dismukes <dismukes@adacore.com>
14119
14120 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
14121 (Expand_N_Attribute_Reference): Further unify the handling of the
14122 three forms of access attributes, using common code now for all three
14123 cases. Add a test for the case of applying an access attribute to
14124 an explicit dereference when the context is an access-to-interface
14125 type. In that case we need to apply the conversion to the prefix
14126 of the explicit dereference rather than the prefix of the attribute.
14127 (Attribute_Version, UET_Address): Set entity as internal to ensure
14128 proper dg output of implicit importation.
14129 (Expand_Access_To_Type): Removed.
14130 (Expand_N_Attribute_Reference): Merge the code from the three cases
14131 of access attributes, since the processing is largely identical for
14132 these cases. The substantive fix here is to process the case of a
14133 type name prefix (current instance case) before handling the case
14134 of interface prefixes.
14135
141362007-08-14 Thomas Quinot <quinot@adacore.com>
14137 Ed Schonberg <schonberg@adacore.com>
14138 Javier Miranda <miranda@adacore.com>
14139 Robert Dewar <dewar@adacore.com>
14140
14141 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
14142 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
14143 type that is an anonymous access to controlled object, establish
14144 an associated finalization chain to avoid corrupting the global
14145 finalization list when a dynamically allocated object designated
14146 by such a component is deallocated.
14147 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14148 functions that need it, even when not marked Requires_Overriding.
14149 (Initialize_Tag): Replace call to has_discriminants by call to
14150 Is_Variable_Size_Record in the circuitry that handles the
14151 initialization of secondary tags.
14152 (Is_Variable_Size_Record): New implementation.
14153 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
14154 Suppress_Initialization pragma for a derived type.
14155 (Is_Variable_Size_Record): New subprogram.
14156 (Build_Offset_To_Top_Functions): New implementation that simplifies the
14157 initial version of this routine and also fixes problems causing
14158 incomplete initialization of the table of interfaces.
14159 (Build_Init_Procedure): Improve the generation of code to initialize the
14160 the tag components of secondary dispatch tables.
14161 (Init_Secondary_Tags): New implementation that simplifies the previous
14162 version of this routine.
14163 (Make_DT): Add parameter to indicate when type has been frozen by an
14164 object declaration, for diagnostic purposes.
14165 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
14166 diagnose attemps to freeze a subprogram when some untagged type of its
14167 profile is a private type whose full view has not been analyzed yet.
14168 (Freeze_Array_Type): Generate init proc for packed array if either
14169 Initialize or Normalize_Scalars is set.
14170 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
14171 constructing the new profile, copy the null_exclusion indicator for each
14172 parameter, to ensure full conformance of the new body with the spec.
14173
14174 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
14175 Create wrappers for constructor functions that need it, even when not
14176 marked Requires_Overriding.
14177 (Covers): Handle properly designated types of anonymous access types,
14178 whose non-limited views are themselves incomplete types.
14179 (Add_Entry): Use an entity to store the abstract operation which hides
14180 an interpretation.
14181 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
14182 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
14183 initialization aggregate.
14184 (Function_Interp_May_Be_Hidden): Rename to
14185 Function_Interp_Has_Abstract_Op.
14186 (Has_Compatible_Type): Remove machinery that skips interpretations if
14187 they are labeled as potentially hidden by an abstract operator.
14188 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
14189 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
14190 (Write_Overloads): Output the abstract operator if present.
14191 (Add_Entry): Before inserting a new entry into the interpretation table
14192 for a node, determine whether the entry will be disabled by an abstract
14193 operator.
14194 (Binary_Op_Interp_May_Be_Hidden): New routine.
14195 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
14196 aggregate.
14197 (Function_Interp_May_Be_Hidden): New routine.
14198 (Has_Compatible_Type): Do not consider interpretations hidden by
14199 abstract operators when trying to determine whether two types are
14200 compatible.
14201 (Has_Hidden_Interp): New routine.
14202 (Set_May_Be_Hidden_Interp): New routine.
14203 (Write_Overloads): Write the status of flag May_Be_Hidden.
14204
142052007-08-14 Ed Schonberg <schonberg@adacore.com>
14206 Javier Miranda <miranda@adacore.com>
14207
14208 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
14209 types declared in the declarative part of a nested package body or in
14210 the proper body of a stub.
14211 (Set_All_DT_Position): Add missing check to avoid wrong assignation
14212 of the same dispatch table slot to renamed primitives.
14213 (Make_Select_Specific_Data_Table): Handle private types.
14214 (Tagged_Kind): Handle private types.
14215 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
14216 output of implicit importation and exportation.
14217 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
14218 first formal of the thunk is always associated with the controlling
14219 type. In addition perform the following code cleanup: remove formal
14220 Thunk_Alias which is no longer required, cleanup evaluation of the
14221 the controlling type, and update the documentation.
14222 Replace occurrence of Default_Prim_Op_Count by
14223 Max_Predef_Prims. Addition of compile-time check to verify
14224 that the value of Max_Predef_Prims is correct.
14225 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
14226 (Make_DT): Add parameter to indicate when type has been frozen by an
14227 object declaration, for diagnostic purposes.
14228 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
14229 construction of statically allocated dispatch tables.
14230 (Make_DT): In case of library-level tagged types export the declaration
14231 of the primary tag. Remove generation of tags (now done by Make_Tags).
14232 Additional modifications to handle non-static generation of dispatch
14233 tables. Take care of building tables for asynchronous interface types
14234 (Make_Tags): New subprogram that generates the entities associated with
14235 the primary and secondary tags of Typ and fills the contents of Access_
14236 Disp_Table. In case of library-level tagged types imports the forward
14237 declaration of the primary tag that will be declared later by Make_DT.
14238 (Expand_Interface_Conversion): In case of access types to interfaces
14239 replace an itype declaration by an explicit type declaration to avoid
14240 problems associated with the scope of such itype in transient blocks.
14241
142422007-08-14 Robert Dewar <dewar@adacore.com>
14243 Ed Schonberg <schonberg@adacore.com>
14244 Javier Miranda <miranda@adacore.com>
14245
9e81dbc7 14246 * exp_util.ads, exp_util.adb:
ab6328d0
AC
14247 This patch replaces a number of occurrences of explicit tests for N_Null
14248 with calls to Known_Null. This improves tracking of null values, since
14249 Known_Null also catches null constants, and variables currently known to
14250 be null, so we get better tracking.
14251 (Ensure_Defined): create an itype reference only in the scope of the
14252 itype.
14253 (Side_Effect_Free): A selected component of an access type that
14254 denotes a component with a rep clause must be treated as not
14255 side-effect free, because if it is part of a linked structure its
14256 value may be affected by a renaming.
14257 (Expand_Subtype_From_Expr): For limited objects initialized with build
14258 in place function calls, do nothing; otherwise we prematurely introduce
14259 an N_Reference node in the expression initializing the object, which
14260 breaks the circuitry that detects and adds the additional arguments to
14261 the called function. Bug found working in the new patch for statically
14262 allocated dispatch tables.
14263 (Is_Library_Level_Tagged_Type): New subprogram.
14264 (Remove_Side_Effects): If the expression of an elementary type is an
14265 operator treat as a function call.
14266 (Make_Literal_Range): If the index type of the array is not integer, use
14267 attributes properly to compute the constraint on the resulting aggregate
14268 which is a string.
14269
14270 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
14271 class-wide type whose base type is an incomplete private type, leave
14272 class-wide type unfrozen so that freeze nodes can be generated
14273 properly at a later point.
14274 (Freeze_Entity, array case): Handle case of pragma Pack and component
14275 size attributre clause for same array.
14276
142772007-08-14 Vincent Celier <celier@adacore.com>
14278
14279 * prj.ads, prj.adb: Update Project Manager to new attribute names for
14280 gprbuild.
14281 Allow all valid declarations in configuration project files
14282 (Reset): Initialize all tables and hash tables in the project tree data
14283 Major update of the Project Manager and of the project aware tools,
14284 including gprmake, so that the same sources in the GNAT repository
14285 can be used by gprbuild.
14286 (Slash_Id): Change type to be Path_Name_Type
14287 (Slash): Return a Path_Name_Type instead of a File_Name_Type
14288
14289 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
14290 gprbuild.
14291 Update Project Manager to new attribute names for ghprbuild
14292 Allow all valid declarations in configuration project files
14293 Major update of the Project Manager and of the project aware tools,
14294 including gprmake, so that the same sources in the GNAT repository
14295 can be used by gprbuild.
14296
9e81dbc7 14297 * prj-com.ads:
ab6328d0
AC
14298 Major update of the Project Manager and of the project aware tools,
14299 including gprmake, so that the same sources in the GNAT repository
14300 can be used by gprbuild.
14301
14302 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14303 insensitive flag for attributes with optional index.
14304 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14305 array attribute, put the index in lower case.
14306 Update Project Manager to new attribute names for ghprbuild
14307 Allow all valid declarations in configuration project files
14308 Major update of the Project Manager and of the project aware tools,
14309 including gprmake, so that the same sources in the GNAT repository
14310 can be used by gprbuild.
14311
9e81dbc7 14312 * prj-env.ads, prj-env.adb:
ab6328d0
AC
14313 Major update of the Project Manager and of the project aware tools,
14314 including gprmake, so that the same sources in the GNAT repository
14315 can be used by gprbuild.
14316 (Get_Reference): Change type of parameter Path to Path_Name_Type
14317
14318 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
14319 removing '-' from the path to start with the first character of the
14320 next directory.
14321 Major update of the Project Manager and of the project aware tools,
14322 including gprmake, so that the same sources in the GNAT repository
14323 can be used by gprbuild.
14324 Major update of the Project Manager and of the project aware tools,
14325 including gprmake, so that the same sources in the GNAT repository
14326 can be used by gprbuild.
14327
9e81dbc7 14328 * prj-nmsc.ads, prj-nmsc.adb:
ab6328d0
AC
14329 Update Project Manager to new attribute names for ghprbuild
14330 Allow all valid declarations in configuration project files
14331 (Search_Directories): Detect subunits that are specified with an
14332 attribute Body in package Naming. Do not replace a source/unit in the
14333 same project when the order of the source dirs are known. Detect
14334 duplicate sources/units in the same project when the order of the
14335 source dirs are not known.
14336 (Check_Ada_Name): Allow all identifiers that are not reserved words
14337 in Ada 95.
14338 Major update of the Project Manager and of the project aware tools,
14339 including gprmake, so that the same sources in the GNAT repository
14340 can be used by gprbuild.
14341 (Look_For_Sources): If the list of sources is empty, set the object
14342 directory of non extending project to nil.
14343 Change type of path name variables to be Path_Name_Type
14344 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
14345 otherwise creating missing directories will fail.
14346
9e81dbc7 14347 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
ab6328d0
AC
14348 prj-part.ads, prj-part.adb:
14349 Major update of the Project Manager and of the project aware tools,
14350 including gprmake, so that the same sources in the GNAT repository
14351 can be used by gprbuild.
14352
14353 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14354 insensitive flag for attributes with optional index.
14355 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14356 array attribute, put the index in lower case.
14357 (Parse_Variable_Reference): Allow the current project name to be used in
14358 the prefix of an attribute reference.
14359
14360 * prj-util.ads, prj-util.adb
14361 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
14362 defaulted to False. When True, always check against indexes in lower
14363 case.
14364
9e81dbc7 14365 * snames.ads, snames.h, snames.adb:
ab6328d0
AC
14366 Update Project Manager to new attribute names for gprbuild
14367 Allow all valid declarations in configuration project files
14368
143692007-08-14 Robert Dewar <dewar@adacore.com>
14370 Ed Schonberg <schonberg@adacore.com>
14371
14372 * opt.ads: Warning for non-local exception propagation now off by
14373 default
14374 New switch -gnatI to disable representation clauses
14375 Implement new pragma Implicit_Packing
14376
9e81dbc7 14377 * usage.adb:
ab6328d0
AC
14378 Warning for non-local exception propagation now off by default
14379 Add warning for unchecked conversion of pointers wi different
14380 conventions.
14381 New switch -gnatI to disable representation clauses
14382
14383 * usage.adb: new switch -gnatyS
14384
14385 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
14386 note that aggregates of anonymous array types are not flagged.
14387 -gnatwc now includes membership tests optimized away
14388 -gnatw.x warnings are now off by default
14389 Added conditional compilation Appendix
14390 Add documentation of -gnatI
14391 Add documentation for new -gnatyS style check
14392 Update documentation about SAL and auto-init on Windows.
14393
9e81dbc7 14394 * gnat_rm.texi:
ab6328d0
AC
14395 Add documentation for pragma Check_Name and 'Enabled attribute
14396 Document that Eliminate on dispatching operation is ignored
14397 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
14398 Document pragma Main
14399 Document pragma Implicit_Packing
14400
14401 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
14402 different conventions
14403 New switch -gnatI to disable representation clauses
14404
14405 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
14406 recognized, report the invalid characters including "-gnat" instead of
14407 just the first character in the switch.
14408 New switch -gnatI to disable representation clauses
14409 Set Warn_On_Object_Renames_Function true for -gnatg
14410
14411 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
14412 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
14413 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
14414 to switch -aP (add directory to project search dir).
14415
14416 * par-prag.adb: Implement new pragma Implicit_Packing
14417
14418 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
14419 type as having a non-standard representation, to force expansion on
14420 conversion to related types.
14421 (Analyze_Pragma): Warn on misspelled pragma
14422 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
14423 Ensure consistent use of # in error messages
14424 Implement pragma Implicit_Packing
14425
144262007-08-14 Olivier Hainque <hainque@adacore.com>
14427 Eric Botcazou <ebotcazou@adacore.com>
14428
14429 * targtyps.c (get_target_maximum_default_alignment): New function.
14430 Maximum alignment
14431 that the compiler might choose by default for a type or object.
14432 (get_target_default_allocator_alignment): New function. Alignment known
14433 to be honored by the target default allocator.
14434 (get_target_maximum_allowed_alignment): New function. Maximum alignment
14435 we might accept for any type or object on the target.
14436 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
14437
14438 * gigi.h (get_target_maximum_default_alignment): Declare new function.
14439 (get_target_default_allocator_alignment): Likewise.
14440 (get_target_maximum_allowed_alignment): Likewise.
14441
14442 PR ada/19037
14443 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
14444 result of a function call, first try to use a stabilized reference for
14445 a constant renaming too.
14446 (validate_alignment): Use target_maximum_allowed_alignment instead of
14447 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
14448 (gnat_to_gnu_entity): Use common nodes directly.
14449 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
14450 alignment and size for the object.
14451 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
14452 and N_Procedure_Call_Statement.
14453 (takes_address): Rename to lvalue_required_p, add third parameter
14454 'aliased' and adjust recursive calls.
14455 <N_Indexed_Component>: Update 'aliased' from the array type.
14456 <N_Selected_Component>: New case.
14457 <N_Object_Renaming_Declaration>: New Likewise.
14458 (Identifier_to_gnu): Adjust for above changes.
14459 (maybe_stabilize_reference) <CONST_DECL>: New case.
14460
14461 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
14462 between type variants.
14463 (build_simple_component_ref): Likewise.
14464 (build_call_alloc_dealloc): Use target_default_allocator_alignment
14465 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
14466 aligning type circuitry for allocations from the default storage pool.
14467 (build_allocator): Likewise.
14468 (build_simple_component_ref): Manually fold the reference for a
14469 constructor if the record type contains a template.
14470
14471 * utils.c (value_zerop): Delete.
14472 (gnat_init_decl_processing): Emit debug info for common types.
14473 (rest_of_record_type_compilation): If a union contains a field
14474 with a non-constant qualifier, treat it as variable-sized.
14475 (finish_record_type): Give the stub TYPE_DECL a name.
14476 (rest_of_record_type_compilation): Likewise.
14477 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
14478 types are equivalent array types.
14479 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
14480 even if the type is not passed by reference.
14481 (static_ctors, static_dtors): Delete.
14482 (end_subprog_body): Do not record constructors and destructors.
14483 (build_global_cdtor): Delete.
14484 (gnat_write_global_declarations): Do not call build_global_cdtor.
14485
0ab29e91 14486 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
ab6328d0
AC
14487 -fRTS=rtp is specified.
14488 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
14489 specified.
14490
14491 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
14492 of the personality function with SJLJ exceptions.
14493
9e81dbc7 14494 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
ab6328d0
AC
14495 the name of the personality function with SJLJ exceptions.
14496
144972007-08-14 Robert Dewar <dewar@adacore.com>
14498 Ed Schonberg <schonberg@adacore.com>
14499
14500 * par.ads, par.adb: Improve handling of extra right parens.
14501 (Par): Remove flag From_Limited_With_Clause.
14502
14503 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
14504 Improve handling of extra right parens.
14505
145062007-08-14 Robert Dewar <dewar@adacore.com>
14507
14508 * par-tchk.adb (TF_Semicolon): Improve error recovery
14509
145102007-08-14 Robert Dewar <dewar@adacore.com>
14511 Ed Schonberg <schonberg@adacore.com>
14512
14513 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
14514 enumeration type, mark all literals as referenced.
14515 (Eval_Attribute, case 'Image): If the argument is an enumeration
14516 literal and names are available, constant-fold but mark nevertheless as
14517 non-static.
14518 Clean up function names.
14519 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
14520 comment.
14521 (Requires_Simple_Name_Prefix): Removed.
14522
145232007-08-14 Robert Dewar <dewar@adacore.com>
14524 Ed Schonberg <schonberg@adacore.com>
14525
14526 * sem_ch11.adb: Improved warnings for unused variables
14527
14528 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
14529 is a synchronized interface, the derived type is limited.
14530 (Analyze_Object_Declaration): Mark the potential coextensions in the
14531 definition and expression of an object declaration node.
14532 (Build_Derived_Type): For the completion of a private type declaration
14533 with a derived type declaration, chain the parent type's representation
14534 items to the last representation item of the derived type (not the
14535 first one) if they are not present already.
14536 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
14537 object declaration of forward references to tags.
14538 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
14539 subprogram types can appear as access discriminants of synchronized
14540 types.
14541 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
14542 given in prefixed form as a selected component.
14543 (Process_Discriminants): If not all discriminants have defaults, place
14544 error message on a default that is present.
14545 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
14546 extend a synchronized tagged type.
14547 Improved warnings for unused variables
14548 (Is_Visible_Component): Fix a visibility hole on a component inherited
14549 by a private extension when parent is itself declared as a private
14550 extension, and the derivation is in a child unit.
14551 (Find_Hidden_Interface): Move spec from the package body.
14552
145532007-08-14 Robert Dewar <dewar@adacore.com>
14554 Ed Schonberg <schonberg@adacore.com>
14555
14556 * sem_ch5.adb: Improve warnings on redundant assignments
14557
14558 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
14559 parameter
14560 (Is_Synchronized_Tagged_Type): New subprogram that returns true
14561 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
14562 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
14563 is set to False. Improves handling of Known_[Not_]Null.
14564 (Wrong_Type): Special case address arithmetic attempt
14565 (Collect_Abstract_Interfaces): Add new formal to allow collecting
14566 abstract interfaces just using the partial view of private types.
14567 (Has_Abstract_Interfaces): Add new formal to allow checking types
14568 covering interfaces using the partial view of private types.
14569 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
14570 component still needs to be defined in this case, but is never
14571 initialized as VMs are using other dispatching mechanisms.
14572 (Abstract_Interface_List): For a protected type, use base type to get
14573 proper declaration.
14574 Improve warnings on redundant assignments
14575 (Is_Variable): Handle properly an implicit dereference of a prefixed
14576 function call.
14577 (Build_Actual_Subtype): If this is an actual subtype for an
14578 unconstrained formal parameter, use the sloc of the body for the new
14579 declaration, to prevent anomalises in the debugger.
14580
145812007-08-14 Robert Dewar <dewar@adacore.com>
14582
14583 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
14584 dispatching operation
14585
145862007-08-14 Ed Schonberg <schonberg@adacore.com>
14587 Gary Dismukes <dismukes@adacore.com>
14588
9e81dbc7 14589 * exp_aggr.ads,
ab6328d0
AC
14590 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
14591 expanded aggregate code before allocator, and ahead of declaration for
14592 temporary, to prevent access before elaboration when the allocator is
14593 an actual for an access parameter.
14594 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
14595 the TSD and the table of interfaces.
14596 (Convert_To_Assignments): Augment the test for delaying aggregate
14597 expansion for limited return statements to include the case of extended
14598 returns, to prevent creation of an unwanted transient scope.
14599 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
14600 (Expand_Array_Aggregate): Handle aggregates associated with
14601 statically allocated dispatch tables.
14602 (Expand_Record_Aggregate): Handle aggregates associated with
14603 statically allocated dispatch tables.
14604 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
14605 of anonymous access type.
14606
146072007-08-14 Ed Schonberg <schonberg@adacore.com>
14608
14609 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
14610 is a variable that renames a slice, use the variable itself in the
14611 expannsion when the renamed expression itself may be modified between
14612 the declaration of the renaming and the array assignment.
14613
146142007-08-14 Jerome Guitton <guitton@adacore.com>
14615
9e81dbc7
AS
14616 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
14617 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
ab6328d0
AC
14618 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
14619 New functions; dummy implementations.
14620
14621 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
14622 functions, used to implement the multi-tasks mode routines on VxWorks.
14623
14624 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
14625 New functions, thin
14626 binding to the VxWorks routines which have changed between VxWorks 5
14627 and 6.
14628 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
14629 which are not callable from a RTP.
14630
14631 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
14632 implemented for the multi-tasks mode on VxWorks 5 and 6.
14633
14634 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
14635
14636 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
14637 functions.
14638
146392007-08-14 Vincent Celier <celier@adacore.com>
14640
9e81dbc7 14641 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
ab6328d0 14642 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9e81dbc7
AS
14643 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
14644 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14645 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
ab6328d0
AC
14646 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
14647 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
14648 procedure.
14649 (Major_Id_Name): New function.
14650 mlib-tgt.ads/mlib.tgt.adb:
14651 (Library_Major_Minor_Id_Supported): New function, default returns True
14652 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
14653 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
14654 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
14655 Implementation of Library_Major_Minor_Id_Supported returns False
14656 clean.adb:
14657 (Clean_Library_Directory): If major/minor ids are supported, clean all
14658 library files.
14659 Major update of the Project Manager and of the project aware tools,
14660 including gprmake, so that the same sources in the GNAT repository
14661 can be used by gprbuild.
14662
146632007-08-14 Olivier Hainque <hainque@adacore.com>
14664
14665 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
14666 (GCC_ZCX_Support): Switch to True.
9e81dbc7 14667
ab6328d0
AC
14668 * s-intman-solaris.adb (Notify_Exception): Call
14669 Adjust_Context_For_Raise before raising, as expected for signal
14670 handlers in general.
9e81dbc7 14671
ab6328d0
AC
14672 * s-intman-posix.adb (Notify_Exception): Remove declaration of
14673 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
14674 to other implementation bodies.
9e81dbc7 14675
ab6328d0
AC
14676 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
14677 be visible by multiple implementation bodies.
9e81dbc7 14678
ab6328d0
AC
14679 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
14680 only for conditions coming from hardware.
14681 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
14682 adjustments to signal context prior to exception raise from signal
14683 handler.
14684 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
14685 mode.
14686 Solaris section: (__gnat_adjust_context_for_raise): New function.
14687 Implementation of the machine context adjustments to perform prior to
14688 raise from a signal handler. Version for both sparc and x86.
14689 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
14690 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
14691 prior to raising as expected for any handler, before possible nested
14692 faults to make sure all the contexts in a chain have been adjusted by
14693 the time we propagate.
14694
146952007-08-14 Pascal Obry <obry@adacore.com>
14696
14697 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
14698 (SYSTEM_INFO): New record.
14699 (SetThreadIdealProcessor): New imported routine needed for supporting
14700 task_info pragma on Windows.
14701
14702 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
14703 info can be applied to the current host.
14704 (Create_Task): Set the ideal processor if information is present.
14705
14706 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
14707 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
14708
147092007-08-14 Olivier Hainque <hainque@adacore.com>
14710
14711 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
14712 stack size and initial stack pointer value for a given task.
14713 (Enter_Task): Get the stack attributes of the task we are entering and
14714 let the stack checking engine know about them.
14715
14716 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
14717 Let the stack-checking engine know about the initial sp value and stack
14718 size associated with the current task.
14719 (Set_Stack_Info): If a stack base has been notified for the current
14720 task, honor it. Fallback to the previous less accurate method otherwise.
14721
14722 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
14723
147242007-08-14 Ed Schonberg <schonberg@adacore.com>
14725
14726 * sem_ch10.adb: Create a limited view of an incomplete type, to make
14727 treatment of limited views uniform for all visible declarations in a
14728 limited_withed package.
14729 Set flag indicating that a subprogram body for a child unit has a
14730 generated spec.
14731 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
14732 separate declaration, remove the unit name from visibility after
14733 compilation, so that environment is clean for subsequent compilations.
14734 (Install_Limited_Context_Clauses): Do not install a
14735 limited_private_with_clause unless the current unit is a body or a
14736 private child unit.
14737 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
14738 in the same fashion.
14739 (Install_Limited_Withed_Unit): Do not install a limited with clause if
14740 it applies to the declaration of the current package body.
14741 (Remove_Private_With_Clauses): If there is a regular with_clause for
14742 the unit, delete Private_With_Clause from context, to prevent improper
14743 hiding when processing subsequent nested packages and instantiations.
14744
147452007-08-14 Jose Ruiz <ruiz@adacore.com>
14746
14747 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
14748 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
14749 representing absolute path names.
14750 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
14751
14752 * cstreams.c (__gnat_full_name for VxWorks): Use
14753 __gnat_is_absolute_path to detect whether we need to add the current
14754 directory to normalize the path.
14755
147562007-08-14 Javier Miranda <miranda@adacore.com>
14757
9e81dbc7 14758 * a-tags.ads,
ab6328d0
AC
14759 a-tags.adb (Displace): Associate a message with the raised CE
14760 exception.
14761 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
14762 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
14763 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
14764 spec.
14765 (Default_Prim_Op_Count): Removed.
14766 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
14767 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
14768 Remove pragma Inline_Always.
14769
14770 * rtsfind.ads (Default_Prim_Op_Count): Removed
14771 (Max_Predef_Prims): New entity
14772 (RE_Expanded_Name): Removed
14773 (RE_HT_Link): Removed
14774 (RE_Iface_Tag): Remmoved
14775 (RE_Ifaces_Table): Removed
14776 (RE_Interfaces_Array): Removed
14777 (RE_Interface_Data_Element): Removed
14778 (RE_Nb_Ifaces): Removed
14779 (RE_RC_Offset): Removed
14780 (RE_Static_Offset_To_Top): Removed
14781
14782 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
14783 formal.
14784 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
14785 Prim_Op_Count by Max_Predef_Prims.
14786
147872007-08-14 Thomas Quinot <quinot@adacore.com>
14788 Vincent Celier <celier@adacore.com>
14789
14790 * binde.adb (Elab_All_Links): Remove unnecessary call to
14791 Generic_Separately_Compiled (if a unit satisfies this predicate, there
14792 won't be an associated Afile).
14793 (Elab_All_Links): Fail if a referenced unit cannot be found
14794
9e81dbc7 14795 * bindgen.adb:
ab6328d0
AC
14796 Fix comments in bindgen regarding consistency checks done in Bcheck:
14797 the checks are made across units within a partition, not across several
14798 partitions.
14799 Fix generation of C binder file for VxWorks.
14800
14801 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
14802 Generic_May_Lack_ALI, more descriptive of the current use of the
14803 predicate, and update documentation.
14804
14805 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
14806 reorganization and documentation update for the case of predefined
14807 library generics (for which we do not reference an Afile).
14808
148092007-08-14 Robert Dewar <dewar@adacore.com>
14810
14811 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
14812 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
14813 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
14814 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
14815 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
14816 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
14817 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
14818 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
14819 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
14820 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
14821 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
14822 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
14823 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
14824 g-altcon.adb: Minor reformatting
14825
14826 ada-tree.h: Delete empty line.
14827
14828 ali.ads: Minor reformatting
14829 Clarification of comments.
14830 Minor spelling correction
14831
14832 * exp_dbug.adb: Add Warnings Off to suppress new warning
14833
14834 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14835 formal
14836
14837 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
14838 value
14839
14840 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
14841
14842 * a-textio.ads: Reorder the standard input/output/error declarations
14843 for consistency.
14844
14845 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
14846
14847 * par-ch2.adb: Recognize RM specially in errout
14848 Change 'R'M to RM in all error messages
14849
14850 * scng.adb: Recognize RM specially in errout
14851
14852 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
14853 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
14854
14855 * s-direio.adb: Add missing routine header box.
14856
14857 * sem_attr.ads: Add ??? comments
14858
14859 * sem_eval.adb: Recognize RM specially in errout
14860 Change 'R'M to RM in all error messages
14861
14862 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
14863
14864 * s-tasinf.ads: Fix minor comment typo.
14865
14866 * a-cihama.adb: Minor comment addition
14867
14868 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
14869 formal
14870
14871 * s-tasinf-tru64.ads: Fix minor comment typo.
14872
14873 * itypes.ads: Comment update.
14874
14875 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
14876 anymore.
14877
14878 * argv.c: Added protection against null gnat_argv and gnat_envp.
14879
14880 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
14881 warning message when Tolerate_Consistency_Errors is True.
14882
14883 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
14884 Any_Id, as this subprogram is only applicable to *type* entities (it
14885 sets RM_Size). Instead initialize just Esize and Alignment.
14886
148872007-08-14 Bob Duff <duff@adacore.com>
14888
9e81dbc7
AS
14889 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
14890 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
14891 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
ab6328d0
AC
14892 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
14893 a-coorse.ads (Next): Applied pragma Inline.
14894 Make all Containers packages Remote_Types (unless they are already
14895 Pure).
14896 (Previous): applied pragma Inline
14897 (Elements_Type): is now a record instead of an array
14898
148992007-08-14 Thomas Quinot <quinot@adacore.com>
14900
14901 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
14902 of Set_Item.
14903 (Set_Item): When the new item is an element of the currently allocated
14904 table passed by reference, save a copy on the stack if we're going
14905 to reallocate. Also, in Table.Set_Item, make sure we test the proper
14906 variable to determine whether to call Set_Last.
14907
14908 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
14909 symbols-vms.adb, symbols-processing-vms-alpha.adb,
14910 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
14911 some occurrences of the pattern
14912 T.Increment_Last;
14913 T.Table (T.Last) := Value;
14914 with a cleaner call to
14915 T.Append (Value);
14916
149172007-08-14 Ed Schonberg <schonberg@adacore.com>
14918 Gary Dismukes <dismukes@adacore.com>
14919 Thomas Quinot <quinot@adacore.com>
14920
14921 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
14922 derived type with interface progenitors use the analyzed formal as the
14923 parent of the actual, to create renamings for all the inherited
14924 operations in Derive_Subprograms.
14925 (Collect_Previous_Instances): new procedure within of
14926 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
14927 unit being loaded, to ensure that the generation of global symbols is
14928 consistent in different compilation modes.
14929 (Is_Tagged_Ancestor): New function testing the ancestor relation that
14930 takes progenitor types into account.
14931 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
14932 traversing over the primitives of the formal and actual types to locate
14933 any abstract subprograms of the actual type that correspond to a
14934 nonabstract subprogram of the formal type's ancestor type(s), and issue
14935 an error if such is found.
14936 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
14937 Instantiate_Package_Body, Instantiate_Subprogram_Body):
14938 Remove bogus guard around calls to Inherit_Context.
14939 (Reset_Entity): If the entity is the selector of a selected component
14940 that denotes a named number, propagate constant-folding to the generic
14941 template only if the named number is global to the generic unit.
14942 (Set_Instance_Env): Only reset the compilation switches when compiling
14943 a predefined or internal unit.
14944
149452007-08-14 Ed Schonberg <schonberg@adacore.com>
14946
14947 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
14948 parameter to determine whether operation applies to the prefix.
14949 (Complete_Object_Operation): If actual has an access type and
14950 controlling formal is not an in_parameter, reject the actual if it is
14951 an access_to_constant type.
14952 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
14953 type, the candidate operations are found in the scope of declaration of
14954 the type, because the type has no primitive subprograms.
14955 (Analyze_Selected_Component): If prefix is class-wide, and root type is
14956 a private extension, only examine visible components before trying to
14957 analyze as a prefixed call.
14958 Change Entity_List to Type_To_Use, for better readability.
14959 (Has_Fixed_Op): Use base type when checking whether the type of an
14960 operator has a user-defined multiplication/division
14961 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
14962 user-defined operators are available for fixed-point types.
14963
149642007-08-14 Thomas Quinot <quinot@adacore.com>
14965 Ed Schonberg <schonberg@adacore.com>
14966
14967 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
14968 formal At_Any_Place indicating, when True, that we want to test for
14969 availability of the stream attribute at any place (as opposed to the
14970 current visibility context only).
14971 (Missing_Read_Write_Attributes): A stream attribute is missing for the
14972 purpose of enforcing E.2.2(8) only if it is not available at any place.
14973 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
14974 when checking the legality of an extension aggregate in a preelaborable
14975 package. Treat the literal null as a valid default expression in a
14976 component declaration for a type with preelaborable initialization.
14977 A limited interface is a legal progenitor for the designated type of a
14978 remote access to class-wide type.
14979
149802007-08-14 Thomas Quinot <quinot@adacore.com>
14981 Ed Schonberg <schonberg@adacore.com>
14982
14983 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
14984 reference): Use correct entity as denoted entity for the selector of
14985 the rewritten node.
14986 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
14987 setting the Referenced_As_LHS flag for entities that are implicitly
14988 dereferenced.
14989 (Find_Type): If the type is an internally generated incomplete type,
14990 mark the full view as referenced, to prevent spurious warnings.
14991 (Find_Selected_Component, Has_Components): Handle properly non-limited
14992 views that are themselves incomplete types.
14993 Handle interfaces visible through limited-with clauses.
14994 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
14995 subprogram generic actual for which we have generated a renaming.
14996 Warn when the renaming introduces a homonym of
14997 the renamed entity, and the renamed entity is directly visible.
14998
149992007-08-14 Ed Schonberg <schonberg@adacore.com>
15000 Hristian Kirtchev <kirtchev@adacore.com>
15001
15002 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
15003 appear in the subtree to the current allocator if it is not a static
15004 coextension.
15005 (Resolve_Allocator): Perform cleanup if resolution has determined that
15006 the allocator is not a coextension.
15007 (Resolve): Skip an interpretation hidden by an abstract operator only
15008 when the type of the interpretation matches that of the context.
15009 (Resolve): When looping through all possible interpretations of a node,
15010 do not consider those that are hidden by abstract operators.
15011 (Resolve_Actuals): When verifying that an access to class-wide object
15012 is an actual for a controlling formal, ignore anonymous access to
15013 subprograms whose return type is an access to class_wide type.
15014 (Resolve_Slice): If the prefix of the slice is a selected component
15015 whose type depends on discriminants, build its actual subtype before
15016 applying range checks on the bounds of the slice.
15017 (Valid_Conversion): In an instance or inlined body, compare root types,
15018 to prevent anomalies between private and public views.
15019 (Resolve): Improve error message for ambiguous fixed multiplication
15020 expressions that involve universal_fixed multiplying operations.
15021
150222007-08-14 Javier Miranda <miranda@adacore.com>
15023 Hristian Kirtchev <kirtchev@adacore.com>
15024
15025 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
15026 location to allow the correct generation of errors in case of
15027 restrictions applied to the expanded code.
15028 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
15029 function if the condition does not reference them.
15030 (Expand_Entry_Body_Declarations): Mark the index constant as having a
15031 valid value.
15032
150332007-08-14 Thomas Quinot <quinot@adacore.com>
8a57e48f 15034 Pablo Oliveira <oliveira@adacore.com>
ab6328d0
AC
15035
15036 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
15037 typecode parameters for a union (in a variant record), remove
15038 extraneous layer of Any wrapping for member label.
15039 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
15040 elabration statements, register the package with the name server
15041 at the beginning, not at the end, of the elaboration statements so
15042 that they can create remote access to subprogram values that designate
15043 remote subprograms from the package.
15044
150452007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15046
15047 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
15048 values to compute the number of seconds since the Unix Epoc in order to
15049 account for Daylight Savings Time. Perform special processing for dates
15050 that are earlier than the Unix Epoc to obtain a negative number.
15051
150522007-08-14 Emmanuel Briot <briot@adacore.com>
15053
15054 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
15055 switches.
15056
150572007-08-14 Eric Botcazou <ebotcazou@adacore.com>
15058
15059 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
15060 binder-generated file is not in Ada.
15061 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
15062 recorded in the ALI file.
15063 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
15064
150652007-08-14 Vincent Celier <celier@adacore.com>
15066
15067 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
15068 (Output_Source): Do nothing if parameter is No_Sdep_Id
15069
15070 * make.adb (Gnatmake): Do not rebuild an archive simply because a
15071 shared library it imports has a later time stamp.
15072 (Check): Resolve the symbolic links in the path name of the object
15073 directory.
15074 Check that the ALI file is in the correct object directory
15075 Check if a file name does not correspond to the mapping of units
15076 to file names.
15077 (Display_Version): New procedure
15078 (Initialize): Process switches --version and --help
15079 Use type Path_Name_Type for path name
15080
150812007-08-14 Paul Hilfinger <hilfinger@adacore.com>
15082
15083 * impunit.adb: Re-organize System.Random_Numbers and
15084 GNAT.Random_Numbers and add to builds.
15085
15086 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
15087
15088 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
15089
15090 * a-assert.ads, a-assert.adb: New files.
15091
150922007-08-14 Gary Dismukes <dismukes@adacore.com>
15093
15094 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
15095 if AAMP_On_Target is True, then the size of the type encompasses two
15096 addresses (a static link and a subprogram address), except in the case
15097 of library-level access types.
15098
150992007-08-14 Vincent Celier <celier@adacore.com>
15100
15101 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
15102 writing the line.
15103 (Write_Eol_Keep_Blanks): New procedure to write a line, including
15104 possible trailing spaces.
15105 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
15106
151072007-08-14 Javier Miranda <miranda@adacore.com>
15108
15109 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
15110 null-excluding access types.
15111
151122007-08-14 Javier Miranda <miranda@adacore.com>
15113
15114 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
15115 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
15116 of private types add missing check on matching interfaces in the
15117 partial and full declarations.
15118 (Analyze_Protected_Type): Code cleanup.
15119 (Analyze_Task_Type): Code cleanup.
15120
151212007-08-14 Javier Miranda <miranda@adacore.com>
15122
15123 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
15124 generated interface thunk.
15125
151262007-08-14 Ed Schonberg <schonberg@adacore.com>
15127
15128 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
15129 obsolescent warning on application of 'Class to an incomplete type.
15130
15131 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
15132 prevent obsolescent warning on application of 'Class to an incomplete
15133 type.
15134
151352007-08-14 Pascal Obry <obry@adacore.com>
15136
15137 * s-fileio.adb (Is_Open): Add check for usability of the underlying
15138 file stream.
15139
151402007-08-14 Cyrille Comar <comar@adacore.com>
15141
15142 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
15143 since it is potentially used in cases implying double finalization of
15144 the same object.
15145
151462007-08-14 Jose Ruiz <ruiz@adacore.com>
15147
15148 * s-tasini.adb (Get_Stack_Info): Move this function to
15149 System.Soft_Links.Tasking because it is common to the full and the
15150 restricted run times.
15151 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
15152 in SSL.Tasking.Init_Tasking_Soft_Links.
15153
15154 * s-solita.adb (Get_Stack_Info): Function moved from
15155 System.Tasking.Initialization because it is common to the full and the
15156 restricted run times.
15157 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
15158
151592007-08-14 Arnaud Charlet <charlet@adacore.com>
15160
15161 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
15162 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
15163 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
15164 parameter.
15165
15166 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
15167 guard to 12K.
15168
151692007-08-14 Gary Dismukes <dismukes@adacore.com>
15170
15171 * s-veboop.adb (SU): New named number initialized to
15172 System.Storage_Unit.
15173 (True_Val): The initialization expression is revised to use SU (=
15174 Storage_Unit) rather than assuming 8 for the component size of an
15175 unpacked Boolean array.
15176
151772007-08-14 Tristan Gingold <gingold@adacore.com>
15178
15179 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
15180
15181 * tb-ivms.c: New file.
15182
15183 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
15184
151852007-08-14 Geert Bosch <bosch@adacore.com>
15186
15187 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
15188 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
15189 Add required linker pragmas for automatically linking with the gnalasup
15190 linear algebra support library, and the systems math library.
15191 Rename cdot to cdotu and zdot to zdotu.
15192 Update header comment to describe purpose of package.
15193
151942007-08-14 Thomas Quinot <quinot@adacore.com>
15195
15196 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
15197 an explicitly specified Associated_Final_Chain, use that list.
15198 (Expand_N_Package_Body): Build dispatch tables of library level tagged
15199 types.
15200 (Expand_N_Package_Declaration): Build dispatch tables of library level
15201 tagged types. Minor code cleanup.
15202
152032007-08-14 Vincent Celier <celier@adacore.com>
15204
15205 * gnatchop.adb (Terminate_Program): Remove exception and use
15206 Types.Terminate_Program instead.
15207
15208 * osint.ads, osint.adb (Current_Exit_Status): New global variable
15209 (Find_Program_Name): Added protection against empty name.
15210 (OS_Exit_Through_Exception): New procedure
15211
15212 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
15213 (OS_Exit_Default): New procedure that contains the previous
15214 implementation of procedure OS_Exit.
15215 (Final_Value): Remove obsolete Interix stuff.
15216
152172007-08-14 Thomas Quinot <quinot@adacore.com>
15218
15219 * g-socket.ads: Reorganize example code so that it also works on
15220 Windows XP.
15221
152222007-08-14 Tristan Gingold <gingold@adacore.com>
15223
15224 * g-trasym.ads: AIX now supports symbolic backtraces.
15225
152262007-08-14 Ed Schonberg <schonberg@adacore.com>
15227
15228 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
15229 units being loaded to detect circularities. A circularity may be
15230 present even if the current chain of pending units to load starts from
15231 a limited_with_clause.
15232
15233 * lib-load.ads: Change profile of Load_Unit to use a with_clause
15234 rather than a boolean flag, in order to detect circularities in
15235 with_clauses.
15236
15237 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
15238 than propagating the From_Limited_With flag, in order to handle
15239 properly circularities involving with_clauses.
15240
152412007-08-14 Nicolas Setton <setton@adacore.com>
15242
15243 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
15244 warnings.
15245
152462007-08-14 Arnaud Charlet <charlet@adacore.com>
15247
15248 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
15249 to build for libgnala.
15250 libgnat: Add rules to build libgnala.a
15251 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
15252 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
15253 Add s-osinte-vxworks-kernel.adb to the target pairs of the
15254 kernel run-time lib for VxWorks 6, which would provide a different
15255 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
15256 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
15257 running ZCX by default.
15258 Add g-sttsne-locking to LynxOS version.
15259 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
15260 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
15261
15262 * system-darwin-x86.ads: New file.
15263
15264 * Make-lang.in: Delete files before copying onto them, so if they are
15265 read-only, the copy won't fail.
15266 Update dependencies
15267
152682007-08-14 Pascal Obry <obry@adacore.com>
15269
15270 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
15271 naming scheme.
15272
152732007-08-14 Vincent Celier <celier@adacore.com>
15274
15275 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
15276 (Gcc): Initialize Gcc_Name at the first call
15277
152782007-08-14 Ed Schonberg <schonberg@adacore.com>
15279
15280 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
15281 with_clauses of the enclosing unit when analyzing the package
15282 specification of a nested instance.
15283
152842007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15285
15286 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
15287 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
15288 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
15289 layout of N_Allocator.
15290
152912007-08-14 Thomas Quinot <quinot@adacore.com>
15292
15293 * rtsfind.adb (Check_RPC): Add PCS version check.
15294
15295 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
15296 (Gnat_Free_Software): New function.
15297
15298 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
15299 the PCS_Version value from s-parint, used to check that it is consistent
15300 with what exp_dist expects.
15301
15302 * s-parint.ads (PCS_Version): New entity for checking consistency
15303 between exp_dist and PCS.
15304
15305 * gen-soccon.c: (SO_REUSEPORT): New constant.
15306
153072007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15308
15309 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
15310 variable Sub_Second to Duration in order to accomodate a larger range
15311 of arithmetic operations.
15312
153132007-08-14 Bob Duff <duff@adacore.com>
15314
15315 * g-sttsne-locking.ads: Move comments from spec to body.
15316 * g-sttsne-locking.adb: Move comments from spec to body.
15317 * g-sttsne-vxworks.ads: Removed.
15318 * g-sttsne-vxworks.adb: Removed.
15319
4862826d
ILT
153202007-08-11 Ian Lance Taylor <iant@google.com>
15321
15322 * misc.c (gnat_get_alias_set): Change return type to
15323 alias_set_type.
15324
4d8a9bfe
KG
153252007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15326
15327 * decl.c, utils2.c: Fix whitespace in last change.
15328
39595763
KG
153292007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15330
15331 * decl.c (compare_field_bitpos): Constify.
15332 * utils2.c (compare_elmt_bitpos): Likewise.
15333
08e7e8cb
AJ
153342007-07-27 Aurelien Jarno <aurelien@aurel32.net>
15335
9e81dbc7 15336 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
08e7e8cb
AJ
15337 anonymous access type.
15338 (pthread_sigmask): Now take an access sigset_t.
15339
9e94c78f 153402007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
83983455 15341
9e81dbc7
AS
15342 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
15343
a8257e58
EB
153442007-06-21 Eric Botcazou <ebotcazou@adacore.com>
15345
15346 PR tree-optimization/25737
15347 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
15348
5be014d5
AP
153492007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
15350
15351 * trans.c (Attribute_to_gnu): When subtracting an
15352 offset from a pointer, use POINTER_PLUS_EXPR with
15353 NEGATE_EXPR instead of MINUS_EXPR.
15354 (gnat_to_gnu): Likewise.
15355 * utils.c (convert): When converting between
15356 thin pointers, use POINTER_PLUS_EXPR and sizetype
15357 for the offset.
15358 * utils2.c (known_alignment): POINTER_PLUS_EXPR
15359 have the same semantics as PLUS_EXPR for alignment.
15360 (build_binary_op): Add support for the semantics of
15361 POINTER_PLUS_EXPR's operands.
15362 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
15363
719bb4e3 153642007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
b0464c88 15365
a472f546
EB
15366 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
15367 of get_signed_or_unsigned_type.
b0464c88
RE
15368 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
15369
93e17a25 153702007-06-11 Bob Duff <duff@adacore.com>
9e81dbc7 15371 Thomas Quinot <quinot@adacore.com>
93e17a25
BD
15372
15373 * g-stsifd-sockets.adb (Create): Work around strange behavior of
15374 'bind' on windows that causes 'connect' to fail intermittently, by
15375 retrying the 'bind'.
15376 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15377
1bbf8502
DS
153782007-06-10 Duncan Sands <baldrick@free.fr>
15379
15380 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
15381 than to void, for the fields when making a new fat pointer type.
15382 (gnat_substitute_in_type): Now substitute_in_type.
a472f546 15383 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1bbf8502
DS
15384 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
15385 * utils.c (update_pointer_to): Update fat pointers by updating the
15386 dummy node pointers used for the fields.
15387
ec11296f
AC
153882007-06-06 Thomas Quinot <quinot@adacore.com>
15389 Bob Duff <duff@adacore.com>
15390
9e81dbc7
AS
15391 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
15392 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
ec11296f
AC
15393 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
15394 constant Thread_Blocking_IO, always True by default, set False
15395 on a per-runtime basis.
15396 (Need_Netdb_Buffer): New constant.
15397
15398 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
15399 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
15400 files.
15401
15402 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
15403 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
15404 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
15405 child package Task_Safe_NetDB
15406 (Host_Error_Messages): Add stub body.
15407 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15408
15409 * g-soccon-mingw.ads: Add Windows-specific constants.
15410 (Need_Netdb_Buffer): New constant.
15411 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
15412 wrapper and import inet_addr(3) from the standard sockets library
15413 directly instead.
15414 (In_Addr): Add alignment clause.
15415 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15416
154172007-06-06 Robert Dewar <dewar@adacore.com>
15418
15419 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15420 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
15421 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
15422 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
15423 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
15424 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
15425 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
15426 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
15427 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
15428 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
15429 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
15430 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
15431 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
15432 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15433 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15434 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
15435 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
15436 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
15437 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
15438 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
15439 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
15440 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
15441 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
15442 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
15443 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
15444 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
15445 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
15446 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
15447 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
15448 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
15449 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
15450 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
15451 Unchecked_* by Ada.Unchecked_*
15452
154532007-06-06 Robert Dewar <dewar@adacore.com>
15454
15455 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
15456 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
15457 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
15458 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
15459 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15460 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
15461
15462 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
15463 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
15464 s-tasloc.adb, s-tasloc.ads: New files.
15465
154662007-06-06 Bob Duff <duff@adacore.com>
15467
9e81dbc7 15468 * g-expect-vms.adb:
ec11296f
AC
15469 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
15470 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
15471 (Send_Signal, Close): Raise Invalid_Process if the process id is
15472 invalid.
15473 (Pattern_Matcher_Access): Is now a general access type to be able to
15474 use aliased string.
15475
154762007-06-06 Thomas Quinot <quinot@adacore.com>
15477 Arnaud Charlet <charlet@adacore.com>
15478
a472f546
EB
15479 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
15480 (SIGEMT is now used instead of SIGTERM on AIX).
ec11296f
AC
15481
15482 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
15483 (Time_Slice_Supported): Set to True.
a472f546 15484 Use SIGEMT instead of SIGTERM as SIGADAABORT.
ec11296f
AC
15485
154862007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15487
15488 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
15489 (Time, Time)): Use To_Relative_Time rather than manual calculation to
15490 express the bounds of Duration as Time. Raise Time_Error when the
15491 result is greater or equal to the higher bound of Duration (on the
15492 margin case).
15493 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
15494 Ada_High_And_Leaps.
15495 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
15496 Ada_High_And_Leaps.
15497 ("-" (Time, Time)): Reorder code.
15498 (All_Leap_Seconds): Removed.
15499 (Arithmetic_Operations.Add): Remove sign related kludge.
15500 (Arithmetic_Operations.Difference): Control the leaps seconds processing
15501 with flag Leap_Support.
15502 (Arithmetic_Operations.Subtract): Remove sign related kludge.
15503 (Check_Within_Time_Bounds): New procedure.
15504 (Clock): Control the leap seconds processing with flag Leap_Support.
15505 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
15506 (Formatting_Operations.Split): Control the leap seconds processing with
15507 flag Leap_Support.
15508 (Formatting_Operations.Time_Of): Control the leaps seconds processing
15509 with flag Leap_Support. Adjust the year, month and day (if applicable)
15510 when the value of day seconds designates a new day.
15511 (Split): Use parameter associations for better readability. Integrate
15512 flag Is_Ada_05.
15513 (Time_Of): Use parameter associations for better readability. Integrate
15514 flag Is_Ada_05.
15515
15516 * a-calfor.adb (Split): Use parameter associations for better
15517 readability. Integrate flag Is_Ada_05.
15518 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
15519 better readability. Integrate flag Is_Ada_05.
15520
155212007-06-06 Arnaud Charlet <charlet@adacore.com>
15522
9e81dbc7
AS
15523 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
15524 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
15525 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
15526 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
15527 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
15528 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
15529 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
15530 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
15531 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
ec11296f 15532 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9e81dbc7 15533 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
ec11296f
AC
15534 time when entering this routine to detect a backward clock setting
15535 (manual setting or DST adjustment), to avoid waiting for a longer delay
15536 than needed.
15537 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
15538 Remove handling of deferred priority change, and replace by setting the
15539 task priority directly, as required by AI-188.
15540 Update comments.
15541 (Max_Task_Image_Length): New constant.
15542 Replace Warnings (Off) by Unreferenced pragma, cleaner.
15543 (Dynamic_Priority_Support): Removed, no longer needed.
15544 (Poll_Base_Priority_Change): Ditto.
15545 (Set_Ceiling): Add this procedure to change the ceiling priority
15546 associated to a lock. This is a dummy implementation because dynamic
15547 priority ceilings are not supported by the underlying system.
15548
15549 * a-dynpri.adb (Set_Priority): Take into account case where Target is
15550 accepting a RV with its priority boosted.
15551 Remove handling of deferred priority change, and replace by setting the
15552 task priority directly, as required by AI-188.
15553
15554 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
15555 Succeeded = True.
15556 Remove handling of deferred priority change, and replace by setting the
15557 task priority directly, as required by AI-188.
15558 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
15559 of Self_Id earlier.
15560
15561 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
15562 (Poll_Base_Priority_Change): Removed.
15563 Code clean up: use SSL.Current_Target_Exception.
15564
15565 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
15566 to run as this is a potentially dispatching point.
15567 (Call_Synchronous): Use Local_Defer_Abort.
15568 (Callable): Relax assertion.
15569 (Selective_Wait): Relax assertion in case abort is not allowed.
15570 Remove handling of deferred priority change, and replace by setting the
15571 task priority directly, as required by AI-188.
15572
15573 * s-tasuti.adb (Make_Passive): Adjust assertions.
15574 Remove handling of deferred priority change, and replace by setting the
15575 task priority directly, as required by AI-188.
15576
155772007-06-06 Arnaud Charlet <charlet@adacore.com>
15578
9e81dbc7
AS
15579 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15580 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15581 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
15582 system-vxworks-mips.ads, system-vxworks-alpha.ads,
15583 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
15584 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
15585 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
15586 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
ec11296f
AC
15587 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
15588 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
15589 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
15590 This patch changes the largest non-binary modulus from 2**31-1 to
15591 2**32-1.
15592 (Compiler_System_Version): Removed, no longer used.
15593 Clean up system files by removing flags only used on a single target.
15594 Also remove obsolete flags, only used during bootstrap from system.ads
15595 (Address): Add a pragma Preelaborable_Initialization.
15596
15597 * system-aix.ads: Ditto.
15598 (GCC_ZCX_Support): Set to true.
15599 Update priority range on AIX and map Ada priorities to target
15600 priorities appropriately for different scheduling policies.
15601
15602 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
15603
156042007-06-06 Vincent Celier <celier@adacore.com>
15605
15606 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
15607 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
15608
9e81dbc7
AS
15609 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
15610 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
15611 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
15612 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
ec11296f 15613 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
a472f546
EB
15614 MLib.Tgt, containing the default versions of the exported subprograms.
15615 For each platform, create a specific version of the body of new child
15616 package MLib.Tgt.Specific that contains only the body of subprograms
15617 that are different from the default.
15618 (Archive_Builder_Append_Options): New function.
ec11296f
AC
15619
156202007-06-06 Matthew Gingell <gingell@adacore.com>
15621
a472f546
EB
15622 * s-osinte-aix.adb: Map Ada priorities to target priorities
15623 appropriately for different scheduling policies.
ec11296f
AC
15624
156252007-06-06 Arnaud Charlet <charlet@adacore.com>
15626
15627 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
15628 its C counterpart.
15629 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9e81dbc7 15630 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
ec11296f
AC
15631
156322007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
15633
a472f546
EB
15634 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
15635 Noop on VMS, added for interface commonality.
ec11296f
AC
15636
156372007-06-06 Eric Botcazou <ebotcazou@adacore.com>
15638 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15639 Olivier Hainque <hainque@adacore.com>
15640
15641 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
15642 renamed expression of a full renaming at toplevel.
15643 (gnat_to_gnu_entity, case object): If not defining, do not look inside
15644 the values the constant is initialized to if it is an N_Allocator.
15645 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
15646 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
15647 (make_aligning_type): Accept an extra ROOM argument for storage to be
15648 made available before the aligned field, and an extra BASE_ALIGN
15649 argument for callers to pass the alignment guaranteed to be honored for
15650 the whole aligning object. Avoid call to finish_record_type, which only
15651 interferes with the sizes we want to set.
15652 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
15653 make_aligning_type for super-aligned objects on stack.
15654 (components_to_record): Pass the adjusted size of the type when creating
15655 fields in the qualified union for the variant part.
15656 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
15657 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
15658 packed array type.
15659 (maybe_pad_type): Set TYPE_USER_ALIGN.
15660 (make_aligning_type): Likewise.
15661 ALIGN argument is unsigned int.
15662 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
15663 (gnat_to_gnu_param): Likewise, for parameters.
15664 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
15665 if it is constant and stems from a function call.
15666 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
15667 of the record is specified. Adjust accordingly.
15668 (adjust_packed): New static function.
15669 (gnat_to_gnu_field): Use it to adjust the packedness setting.
15670 (components_to_record): Likewise.
15671 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
15672 side-effects if the object is deemed constant.
15673 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
15674 type instead of merely finalizing it. Tidy.
15675 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
15676 <E_Access_Type>: Likewise.
15677 (defer_debug_incomplete_list): Rename to defer_finalize_list.
15678 (defer_debug_level): Delete.
15679 (gnat_to_gnu_entity) <debug_deferred>: Likewise
15680 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
15681 type.
15682 <E_Record_Type>: Do not explicitly defer finalizing the type.
15683 Adjust for write_record_type_debug_info renaming.
15684 <E_Subprogram_Type>: Likewise.
15685 Finalize deferred types right after deferred incomplete types are
15686 expanded.
15687 (rest_of_type_decl_compilation): New global function.
15688 (components_to_record): Rename defer_debug parameter to do_not_finalize.
15689 (components_to_record): Propagate the packedness to the fields of the
15690 qualified union type if there is a variant part.
15691 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
15692 instead of inline code to adjust the XUT field offsets.
15693 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
15694 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
15695 and write the debug info if the type derives from a discriminated one.
15696 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
15697 <E_Array_Subtype>: Likewise.
15698 <E_String_Literal_Subtype>: Likewise.
15699 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
15700 an alignment clause.
15701 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
15702 before giving warning.
15703 (prepend_one_attribute_to): New function, helper to prepend an attribute
15704 to an attribute list.
15705 (gnat_to_gnu_entity) <E_Procedure>: Use it.
15706 (prepend_attributes): Likewise.
15707 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
15708 <E_Array_Type>: Declare the padding type for the element type, if any.
15709 <E_Array_Subtype>: Likewise.
15710 (defer_limited_with): New variable.
15711 (Gigi_Equivalent_Type): New function.
15712 (gnat_to_gnu_entity): Use it at start and use result throughout.
15713 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
15714 Gigi_Equivalent_Type, support Limited_With, allow two levels of
15715 indirection, precompute if unconstrained array to simplify logic, and
15716 use defer_limited_with to defer elaboration of some types from limited
15717 with.
15718 (finalize_from_with_types): New function.
15719
157202007-06-06 Gary Dismukes <dismukes@adacore.com>
15721 Eric Botcazou <ebotcazou@adacore.com>
15722 Tristan Gingold <gingold@adacore.com>
15723 Olivier Hainque <hainque@adacore.com>
15724
a472f546
EB
15725 * trans.c (Identifier_to_gnu): Change test for deferred constant by
15726 adding guard that the entity is an E_Constant before testing presence
15727 of Full_view (and remove unnecessary test that entity is not a type).
ec11296f
AC
15728 For a CONST_DECL used by reference, manually retrieve
15729 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
15730 (struct language_function): Move from utils.c to here.
15731 (struct parm_attr): New structure.
15732 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
15733 (f_parm_attr_cache): New macro.
15734 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
15735 expressions for the 'First, 'Last and 'Length attributes of the
15736 unconstrained array IN parameters.
15737 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
15738 Allocate the information structure for the function earlier, as well
15739 as the language-specific part.
15740 If the parameter attributes cache has been populated, evaluate the
15741 cached expressions on entry.
15742 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
15743 N_Procedure_Call_Statement and N_Indexed_Component.
15744 (Pragma_to_gnu): Translate inspection_point to an asm statement
15745 containaing a comment and a reference to the object (either its address
15746 for BLKmode or its value).
15747 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
15748 to go to DECL_INITIAL. Together with the size constraint relaxation
15749 in create_var_decl, enlarges the set of situations in which an
15750 identifier may be used as an initializer without implying elaboration
15751 code.
15752 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
15753 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
15754 node.
15755 (maybe_stabilize_reference): Remove lvalues_only parameter.
15756 (gnat_stabilize_reference): Adjust for above change.
15757 (gnat_to_gnu): Do not set location information on the result
15758 if it is a reference.
15759 (add_cleanup): Add gnat_node parameter and set the location of the
15760 cleanup to it.
15761 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
15762 (Exception_Handler_to_gnu_zcx): Likewise.
15763 (gigi): Remove the cgraph node if the elaboration procedure is empty.
15764 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
15765 the former right after the latter.
15766 (start_stmt_group): Make global.
15767 (end_stmt_group): Likewise.
15768 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
15769 vars.
15770 (gnu_program_error_label_stack): Likewise.
15771 (gigi): Initialize them.
15772 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
15773 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
15774 New cases.
15775 (push_exception_label_stack): New function.
15776 (takes_address): New function.
15777
15778 * utils.c (struct language_function): Move to trans.c from here.
15779 (unchecked_convert): Do not wrap up integer constants in
15780 VIEW_CONVERT_EXPRs.
15781 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
15782 the latter for aggregate types, unexpected by later passes, and relax an
15783 arbitrary size constraint on the former.
15784 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
15785 to compare the sizes.
15786 (convert_vms_descriptor): When converting to a fat pointer type, be
15787 prepared for a S descriptor at runtime in spite of a SB specification.
15788 (shift_unc_components_for_thin_pointers): New function.
15789 (write_record_type_debug_info): For variable-sized fields, cap the
15790 alignment of the pointer to the computed alignment.
15791 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
15792 If REP_LEVEL is 2, do not compute the sizes.
15793 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
15794 (build_unc_object_type): Likewise.
15795 (declare_debug_type): New function.
15796
9e81dbc7 15797 * ada-tree.def: USE_STMT: removed (not emitted anymore).
ec11296f 15798
9e81dbc7
AS
15799 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
15800 no statement is expandable anymore.
15801 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
15802 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
15803 when the user requested it explicitely.
15804 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
15805 to 0 for Ada.
15806 (get_alias_set): Return alias set 0 for a type if
15807 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
ec11296f 15808
9e81dbc7
AS
15809 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
15810 (DECL_FUNCTION_STUB): New accessor macro.
15811 (SET_DECL_FUNCTION_STUB): New setter macro.
ec11296f 15812
9e81dbc7 15813 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
ec11296f
AC
15814
15815 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
15816 declarations.
15817
158182007-06-06 Jose Ruiz <ruiz@adacore.com>
15819
15820 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
15821 Rename to Abort_Task_Interrupt to be able to keep the same interface
15822 as the rest of the targets.
15823
15824 * s-osinte-vxworks.ads s-osinte-vxworks.adb
15825 (To_VxWorks_Priority): Remove explicit "in" mode indicator
15826
15827 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
15828 New files.
15829
158302007-06-06 Robert Dewar <dewar@adacore.com>
15831
15832 * a-chahan.ads: Remove obsolescent pragmas
15833
15834 * a-chlat1.ads: Minor reformatting
15835
158362007-06-06 Robert Dewar <dewar@adacore.com>
15837
15838 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
15839 for Errout
15840
15841 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
15842 implementation
15843
15844 * errout.ads (Finalize): Changed interface
15845 (Output_Messages): New procedure
15846 (Compilation_Errors): New Interface
15847
15848 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
15849 Finalize/Output_Messages interface for Errout
15850 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
15851 Errout.
15852
158532007-06-06 Thomas Quinot <quinot@adacore.com>
15854 Olivier Hainque <hainque@adacore.com>
15855 Robert Dewar <dewar@adacore.com>
15856
15857 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
15858 check.
15859 (Raise_Current_Excep): Call Debug_Raise_Exception just before
15860 propagation starts, to let debuggers know about the event in a reliable
15861 fashion.
15862 (Local_Raise): Moved to System.Exceptions
15863 More convenient to have this as a separate unit
15864
15865 * s-except.adb, s-except.ads: New files.
15866
15867 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
15868 Debug_Unhandled_Exception in System.Exceptions where it belongs
15869 together with a couple of other debug helpers.
15870 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
15871 the former Unhandled_Exception.
15872
15873 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
15874 (Warn_No_Exception_Propagation): New procedure
15875 (Warn_If_No_Propagation): Rewritten for new warning generation
15876 (Expand_Exception_Handlers): New warning generation
15877 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
15878 (Add_Exception_Label): Use Special_Exception_Package_Used for test
15879 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
15880 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
15881 even if restriction is set (makes life easier in Check_Returns)
15882 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
15883 checking exception identities.
15884 (Expand_Local_Exception_Handlers): Do not optimize when all others case
15885 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
15886 block for handler (used by Check_Returns)
15887 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
15888 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
15889 remove all exception handlers when optimizing local raise statements.
15890 (Find_Local_Handler): Use Get_Renamed_Entity
15891 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
15892 marked analyzed after expanding exception handlers, do not generate
15893 redundant cleanup actions, because they have been constructed already.
15894
158952007-06-06 Thomas Quinot <quinot@adacore.com>
15896
15897 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
15898 presence of this categorization pragma is mandated by the language.
15899 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
15900 for this type.
15901
159022007-06-06 Vincent Celier <celier@adacore.com>
15903 Robert Dewar <dewar@adacore.com>
15904
9e81dbc7
AS
15905 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
15906 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
15907 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
15908 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
15909 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
15910 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
15911 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
15912 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
15913 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
15914 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
ec11296f 15915 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9e81dbc7 15916 ali.ads, ali.adb:
ec11296f
AC
15917 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
15918 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
15919 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
15920 Use variables of types File_Name_Type and Unit_Name_Type in error
15921 messages.
15922 (Get_Name): Add parameter Ignore_Special, and set it reading file name
15923 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
15924 here.
15925 Define flags Flag217-Flag230 with associated subprograms
15926 (Flag_Word5): New record type.
15927 (Flag_Word5_Ptr): New access type.
15928 (To_Flag_Word5): New unchecked conversion.
15929 (To_Flag_Word5_Ptr): Likewise.
15930 (Flag216): New function.
15931 (Set_Flag216): New procedure.
15932
159332007-06-06 Arnaud Charlet <charlet@adacore.com>
15934
15935 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
15936 instead of 'Size.
15937
15938 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
15939
159402007-06-06 Javier Miranda <miranda@adacore.com>
15941
15942 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
15943 the package.
15944 (Object_Specific_Data_Array): This is now internal to the package.
15945 (Object_Specific_Data): This is now internal to the package.
15946 (Select_Specific_Data_Element): This is now internal to the package.
15947 (Select_Specific_Data_Array): This is now internal to the package.
15948 (Select_Specific_Data): This is now internal to the package.
15949 (Offset_To_Top_Function_Ptr): This is now public.
15950 (To_Offset_To_Top_Function_Ptr): Removed.
15951 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
15952 local to subprogram Offset_To_Top.
15953 (Predefined_DT): Removed.
15954 (Typeinfo_Ptr): Removed.
15955 (OSD): This function is now internal to this package.
15956 (SSD): This function is now internal to this package.
15957 (DT): New function that displaces the pointer to the table of primitives
15958 to get access to the enclosing wrapper record.
15959 (IW_Membership): Code cleanup.
15960 (Offset_To_Top): Code cleanup.
15961 (Predefined_DT): Removed.
15962 (Register_Interface_Tag): Removed.
15963 (Set_Interface_Table): Removed.
15964 (Set_Offset_Index): Removed.
15965 (Set_Offset_To_Top): Code cleanup.
15966 (Set_OSD): Removed.
15967 (Set_Signature): Removed.
15968 (Set_SSD): Removed.
15969 (Set_Tagged_Kind): Removed.
15970 (Typeinfo_Ptr): Removed.
15971 (TSD): Removed.
15972 (Displace): Add missing check on null actual.
15973
15974 * exp_disp.ads, exp_disp.adb
15975 (Select_Expansion_Utilities): Removed.
15976 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
15977 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
15978 the interface requires a new parameter.
15979 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15980 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
15981 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
15982 Done to remove package Select_Expansion_Utilities.
15983 (Make_DT): New implementation for statically allocated dispatch tables.
15984 (Make_Secondary_DT): Moved to the scope of Make_DT.
15985 (Register_Primitive): Code cleanup plus incoporate the use of the new
15986 function DT_Address_Attribute.
15987 (Expand_Interface_Thunk): The profile of this subprogram has been
15988 changed to return the Thunk_Id and the corresponding code.
15989 (Fill_DT_Entry): Removed. Its functionality is now provided by
15990 subprogram Register_Primitive.
15991 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
15992 subprogram Register_Primitive.
15993 (Register_Primitive): New subprogram that incorporates the previous
15994 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
15995 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
15996 was only required to call Make_DT_Access_Action, which is now removed.
15997 (Ada_Actions): Removed
15998 (Action_Is_Proc): Removed
15999 (Action_Nb_Arg): Removed
16000 Replace all the calls to Make_DT_Access_Action by direct calls to
16001 Make_Procedure_Call_Statement or Make_Function_Call.
16002 (Set_DTC_Entity_Value): New subprogram.
16003 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
16004 (Expand_Interface_Thunk): Add missing support for primitives that are
16005 functions with a controlling result (case in which there is no need
16006 to generate the thunk).
16007
16008 * exp_atag.ads, exp_atag.adb
16009 (Build_DT): New subprogram that displaces the pointer to reference the
16010 base of the wrapper record.
16011 (Build_Typeinfo_Offset): Removed.
16012 (RTE_Tag_Node): Removed.
16013 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
16014 (Build_Get_RC_Offset): Removed.
16015 (Build_Inherit_Predefined_Prims): Removed.
16016 (Build_Inherit_TSD: Removed.
16017 (Build_New_TSD): Removed.
16018 (Build_Set_External_Tag): Removed.
16019 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
16020 (Build_Set_Prim_Op_Address): Add documentation.
16021 (Build_Set_TSD): Removed.
16022
16023 * rtsfind.ads, rtsfind.adb
16024 (Load_Fail): If load fails and we are not in configurable run-time
16025 mode, then raise Unrecoverable_Error.
16026 (Text_IO_Kludge): Generate an error message if a run-time library is
16027 not available in a given run-time (ie. zfp run-time).
16028 (RTE_Record_Component): Add code to check that the component we search
16029 for is not found in two records in the given run-time package.
16030 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
16031 (RE_DT_Predef_Prims_Offset): New entity
16032 (RE_Static_Offset_To_Top): New entity
16033 (RE_HT_Link): New entity.
16034 (System_Address_Image): Addition of this run-time package.
16035 (RE_Address_Image): New entity.
16036 (RE_Abstract_Interface): Removed.
16037 (RE_Default_Prim_Op_Count): Removed.
16038 (RE_DT_Entry_Size): Removed.
16039 (RE_DT_Min_Prologue_Size): Removed.
16040 (RE_DT_Prologue_Size): Removed.
16041 (RE_Ifaces_Table_Ptr): Removed.
16042 (RE_Interface_Data_Ptr): Removed.
16043 (RE_Type_Specific_Data): Removed.
16044 (RE_Primary_DT): Removed.
16045 (RE_Register_Interface_Tag): Removed.
16046 (RE_Set_Offset_Index): Removed.
16047 (RE_Set_OSD): Removed.
16048 (RE_Set_SSD): Removed.
16049 (RE_Set_Signature): Removed.
16050 (RE_Set_Tagged_Kind): Removed.
16051 (RE_Address_Array): New entity.
16052 (RE_DT): New entity.
16053 (RE_Iface_Tag): New entity.
16054 (RE_Interfaces_Table): New entity.
16055 (RE_No_Dispatch_Table): New entity.
16056 (RE_NDT_Prims_Ptr): New entity.
16057 (RE_NDT_TSD): New entity.
16058 (RE_Num_Prims): New entity.
16059 (RE_Offset_To_Top_Function_Ptr): New entity.
16060 (RE_OSD_Table): New entity.
16061 (RE_OSD_Num_Prims): New entity.
16062 (RE_Predef_Prims): New entity
16063 (RE_Predef_Prims_Table_Ptr): New entity.
16064 (RE_Primary_DT): New entity.
16065 (RE_Signature): New entity.
16066 (RE_SSD): New entity.
16067 (RE_TSD): New entity.
16068 (RE_Type_Specific_Data): New entity.
16069 (RE_Tag_Kind): New entity.
16070
160712007-06-06 Thomas Quinot <quinot@adacore.com>
16072
16073 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
16074 C imported variable.
16075 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
16076 on entry.
16077
160782007-06-06 Robert Dewar <dewar@adacore.com>
16079
16080 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
16081 character
16082
160832007-06-06 Vincent Celier <celier@adacore.com>
16084
16085 * a-tifiio.adb (Put, internal): For negative numbers, check that there
16086 is room for at least one digit and the minus sign.
16087 (Put.Put_Character): Never put a character outside of the range of
16088 string To.
16089
160902007-06-06 Olivier Hainque <hainque@adacore.com>
16091 Eric Botcazou <ebotcazou@adacore.com>
16092
16093 * utils2.c (build_allocator): Provide the extra arguments to
16094 make_aligning_type for super-aligned objects allocated from the default
16095 pool. Leave enough room for a pointer before the aligning field, and
16096 store the system's allocator return value there.
16097 (build_call_alloc_dealloc): When releasing a super-aligned object,
16098 retrieve the system's allocator return value from where build_allocator
16099 has stored it, just ahead of the adjusted address we are passed.
16100 (build_call_raise): Handle properly the generation of line numbers when
16101 the node is marked No_Location.
16102 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
16103 by using DECL_UID on ties.
16104 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
16105 main variant.
16106 (build_call_raise): Handle converting exception into goto; support new
16107 argument KIND.
16108 (build_component_ref): Add new arg to build_call_raise.
16109
161102007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16111
16112 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
16113 "." in the case of nnn.xxx when nnn terminates with an underscore.
16114 Parse the remaining "#" or ":" in the case of nnn#.xxx#
16115
161162007-06-06 Robert Dewar <dewar@adacore.com>
16117
16118 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
16119
161202007-06-06 Arnaud Charlet <charlet@adacore.com>
16121 Vincent Celier <celier@adacore.com>
16122 Robert Dewar <dewar@adacore.com>
16123
16124 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
16125 needed.
16126 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
16127 ((destructor)) for adafinal, even when switch -a is used.
16128 Do not issue pragma Linker_Destructor for adafinal when switch -a is
16129 used.
16130 (Gen_Object_Files_Options): Add formatting of Linker Options, when
16131 Output_Linker_Option_List is set. Suppress this formatting when
16132 Zero_Formatting is set.
16133 Add case for CLI_Target.
16134 (System_Restrictions_Used): New flag, used to avoid generating with of
16135 System_Restrictions and initialization of the data unless there is
16136 some use of System.Restrictions in the partition.
16137 (Check_System_Restrictions_Used): New procedure
16138
9e81dbc7 16139 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
ec11296f
AC
16140 since we only with this unit in the binder file if it is used elsewhere
16141 in the partition.
16142
161432007-06-06 Vincent Celier <celier@adacore.com>
16144
16145 * bindusg.adb: Add line for @<response file>
16146 Add lines for new switches -R and -Z
16147
16148 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
16149 hierarchy in the list of files of the closure when -R is used
16150 (Gnatbind): Accept arguments starting with '@' to indicate response
16151 files and take the arguments from the response files.
16152 If List_Closure is set, display the referenced files
16153
161542007-06-06 Javier Miranda <miranda@adacore.com>
16155 Robert Dewar <dewar@adacore.com>
16156 Ed Schonberg <schonberg@adacore.com>
16157
16158 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
16159 which the address-clause is applied to in-mode actuals (allowed by
16160 13.1(22)).
16161 (Apply_Discriminant_Check): Do not generate a check if the type is
16162 constrained by a current instance.
16163 (Activate_Division_Check): New procedure
16164 (Activate_Overflow_Check): New procedure
16165 (Activate_Range_Check): New procedure
16166 Call these new Activate procedures instead of setting flags directly
16167 (Apply_Array_Size_Check): Removed, no longer needed.
16168 Code clean up: remove obsolete code related to GCC 2.
16169 (Get_E_Length): Protect against bomb in case scope is standard
16170 (Selected_Range_Checks): If the node to be checked is a conversion to
16171 an unconstrained array type, and the expression is a slice, use the
16172 bounds of the slice to construct the required constraint checks.
16173 Improve NOT NULL error messages
16174 (Apply_Constraint_Check): If the context is a null-excluding access
16175 type, diagnose properly the literal null.
16176
161772007-06-06 Pascal Obry <obry@adacore.com>
16178
16179 * clean.adb (Clean_Archive): Use untouched casing for the archive name
16180 and the corresponding .deps file.
16181 (Clean_Interface_Copy_Directory): Use untouched casing for the library
16182 src directory. Minor code-clean-up. Use untouched casing for files
16183 read into the library src dir.
16184 (Clean_Library_Directory): Idem.
16185 (Parse_Cmd_Line): Accept new switch -aP
16186
161872007-06-06 Javier Miranda <miranda@adacore.com>
16188 Ed Schonberg <schonberg@adacore.com>
16189 Robert Dewar <dewar@adacore.com>
16190 Eric Botcazou <ebotcazou@adacore.com>
16191 Arnaud Charlet <charlet@adacore.com>
16192
16193 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
16194 applicable to types that have the With_Type flag set. Returns the
16195 non-limited view of the type, if available, otherwise the type itself.
16196 For class-wide types, there is no direct link in the tree, so we have
16197 to retrieve the class-wide type of the non-limited view of the Etype.
16198 New attributes Static_Initialization and Static_Elaboration_Desired.
16199 Remove the pragma Thread_Body, and the associated flag
16200 Is_Thread_Body in entities, and all related code.
16201 (Suppress_Value_Tracking_On_Call): New flag
16202 E_Exception has Esize and Alignment fields
16203 (Universal_Aliasing): New function.
16204 (Set_Universal_Aliasing): New procedure.
16205 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
16206 (Check_Nested_Access): New procedure.
16207 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
16208 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16209 (Related_Interface): New attribute. Present in dispatch table pointer
16210 components of records. Set to point to the entity of the corresponding
16211 interface type.
16212 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
16213 (Original_Access_Type): Remove, not needed.
16214 (Root_Type): Handle properly subtypes of class-wide-types.
16215 Update comments.
16216
16217 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
16218 class-wide types visible through limited-with clauses.
16219 (Try_Primitive_Operation): When examining all primitive operations of a
16220 tagged type, do not consider subprograms labeled as hidden unless they
16221 belong to a private generic type with a tagged parent.
16222 (Try_Object_Operation): Extensive rewriting, to handle properly various
16223 overloading cases, when several ancestors may have class-wide operations
16224 that are possible candidates, and when the overloaded functions return
16225 array types and have defaulted parameters so that the call may be
16226 interpreted as an indexing.
16227 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
16228 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
16229 successive actuals before analyzing the call itself.
16230 (Try_Primitive_Operation): A primitive operation is compatible with the
16231 prefix if the prefix has a synchronized type and the type of the formal
16232 is its corresponding record, as can be the case when the primitive
16233 operation is declared outside of the body of the type.
16234 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
16235 perform homonym traversal, looking for class-wide operation matches
16236 (formerly done in statements of Try_Class_Wide_Operation). Matches on
16237 access parameters are now restricted to anonymous access types.
16238 (Mark_Allocator): An allocator with a discriminant association parent is
16239 a coextension.
16240 (Try_One_Prefix_Interpretation): If the type of the object is
16241 incomplete, as can be happen when it is a limited view obtained through
16242 a limited_with_clause, the selected component is not part of a prefixed
16243 call.
16244 (Complete_Object_Operation): Diagnose properly an object that is not
16245 aliased when the corresponding controlling formal is an access
16246 parameter.
16247 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
16248 ambiguous calls in prefixed notation, where two primitives differ only
16249 in that the controlling argument of one is an access parameter.
16250
16251 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
16252 whether a function that returns an unconstrained type can be inlined.
16253 (Process_Formals): Diagnose properly the illegal use of an incomplete
16254 type in the profile of an access_to_subprogram declaration.
16255 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
16256 operations are attached to the corresponding record.
16257 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
16258 When processing a primitive of a concurrent type which implements an
16259 interface change the type of all controlling formals to that of the
16260 corresponding record type.
16261 (Check_Synchronized_Overriding): Relax the conditional logic when trying
16262 to determine the tagged type to which a primitive belongs.
16263 (Check_Conventions): Capture condition to ignore a primitive operation
16264 (which is shared between the loop in Check_Conventions and the one in
16265 Check_Convention) in a new local function Skip_Check.
16266 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
16267 confusion with Check_Conventions' own Prim_Op local variable.
16268 (Create_Extra_Formals): Test for a tagged result type rather than a
16269 controlling result when determining whether to add a BIP_Alloc_Form
16270 formal and a BIP_Final_List formal to the function.
16271 (Check_Conformance); For parameters that are anonymous access types,
16272 subtype conformance requires that the not null and the constant
16273 indicators must match
16274 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
16275 to retrieve the appropriate type when processing a concurrent type
16276 declared within a generic. Minor comment reformatting. Change invocation
16277 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
16278 mitive.
16279 (Analyze_Subprogram_Body): If the return type of a function is an
16280 anonymous access to the limited view of a class-wide type, and the
16281 non-limited view of the type is available, update the type of the
16282 function so that code can be generated.
16283 (Process_Formals): In case of access-subtype itype whose designated
16284 type is also an itype (situation that happens now with access to
16285 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
16286 attribute to avoid backend problems.
16287 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
16288 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
16289 anonymous types' designated types are same before testing
16290 Subtypes_Statically_Match.
16291 (Create_Extra_Formals): Test for a named access parameter that is a
16292 controlling formal as an additional condition for adding an
16293 accessibility level formal. This can occur in the subp type created for
16294 dispatching calls in Expand_Dispatching_Call, and allows calling
16295 Create_Extra_Formals from that procedure rather than special-casing the
16296 extra formals there.
16297 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
16298 when the function has a controlling result.
16299 (Check_Returns): Add much more knowledge of the optimization of local
16300 raise statements to gotos, to retain proper warnings in this case.
16301 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
16302 nodes when looking for last statement.
16303
16304 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
16305 class-wide types visible through limited with clauses.
16306 (Add_One_Interp): If the operands are anonymous access types, the
16307 predefined operator on universal_access is immediately visibles
16308 (Find_Unique_Type): Handle anonymous access to subprogram types just as
16309 other anonymous access types.
16310 (Disambiguate): Take into account CIL convention.
16311 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
16312
163132007-06-06 Robert Dewar <dewar@adacore.com>
16314
16315 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
16316 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
16317 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
16318 Fix lower bound of tables.
16319 Add rep clauses.
16320
16321 * nlists.adb: Ditto.
16322 (Prev_Node, Next_Node): Change index type to Int so that it properly
16323 covers the range First_Node_Id - 1 up.
16324
163252007-06-06 Javier Miranda <miranda@adacore.com>
16326 Ed Schonberg <schonberg@adacore.com>
16327 Bob Duff <duff@adacore.com>
16328 Hristian Kirtchev <kirtchev@adacore.com>
16329
9e81dbc7 16330 * exp_aggr.ads, exp_aggr.adb:
ec11296f
AC
16331 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
16332 in extension aggregates.
16333 (Flatten): Other conditions being met, an aggregate is static if the
16334 low bound given by component associations is different from the low
16335 bound of the base index type.
16336 (Packed_Array_Aggregate_Handled): If the component type is itself a
16337 packed array or record, the front-end must expand into assignments.
16338 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
16339 Init_Pr, instead of Ancestor_Is_Expression.
16340 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
16341 coextension chain root, either generate a list controller or use the
16342 already existing one.
16343 (Static_Array_Aggregate): New procedure to construct a positional
16344 aggregate that can be handled by the backend, when all bounds and
16345 components are compile-time known constants.
16346 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
16347 types covering interface types into assignments.
16348 (Replace_Type): move to Build_Record_Aggr_Code.
16349 (Expand_Record_Aggr_Code): if the target of the aggregate is an
16350 interface type, convert to the definite type of the aggregate itself,
16351 so that needed components are visible.
16352 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
16353 components and the context is an extended return statement do not
16354 create a transient block for it, to prevent premature finalization
16355 before the return is executed.
16356 (Gen_Assign): Do not generate a call to deep adjust routine if the
16357 component type is itself an array of controlled (sub)-components
16358 initialized with an inner aggregate.
16359 (Component_Check): New name for Static_Check. This name is now more
16360 appropriate, and documentation is added which was missing.
16361 (Component_Check): Add test for bit aligned component value
16362 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
16363 Tagged_Comps, name is more appropriate given added function below.
16364 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
16365
163662007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16367 Javier Miranda <miranda@adacore.com>
16368 Robert Dewar <dewar@adacore.com>
16369
16370 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
16371 Terminated: Add unchecked type conversion from System.Address to
16372 System.Tasking.Task_Id when calling the predefined primitive
16373 _disp_get_task_id.
16374 Disable new Ada 05 accessibility check for JVM.NET targets, which
16375 cannot be implemented in a practical way.
16376 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
16377 the sources always references the tag of the actual object. Therefore,
16378 if 'Tag is applied in the sources to class-wide interface objects we
16379 generate code that displaces "this" to reference the base of the object.
16380 (Expand_N_Attribute_Reference, case Size): Return specified size if
16381 known to front end.
16382 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
16383 has code that displaces the pointer of the object to manage interface
16384 types. However this code must not be executed when the prefix is a
16385 subprogram. This bug caused the wrong expansion of the internally
16386 generated assignment that fills the dispatch table when the primitive
16387 is a function returning a class-wide interface type.
16388 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
16389 Set_Attribute_Name for Name_Unaligned_Valid.
16390
163912007-06-06 Ed Schonberg <schonberg@adacore.com>
16392 Gary Dismukes <dismukes@adacore.com>
16393
16394 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
16395 If the initialization is the equivalent aggregate of the initialization
16396 procedure of the type, do not remove it.
16397 (Expand_N_Attribute_Definition_Clause): Exclude access variables
16398 initialized to null from having their expression reset to empty and
16399 note this exception in the comment.
16400
164012007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16402 Robert Dewar <dewar@adacore.com>
16403 Ed Schonberg <schonberg@adacore.com>
16404 Gary Dismukes <dismukes@adacore.com>
16405
16406 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
16407 Add "with" and "use" clauses for Sem_Attr.
16408 (Expand_Current_Value): Do not replace occurences of attribute
16409 references where the prefix must be a simple name.
16410
16411 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
16412 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
16413 Attribute_Requires_Simple_Name_Prefix.
16414 (Name_Modifies_Prefix): Body of new function.
16415 (Requires_Simple_Name_Prefix): Body of new function.
16416 (Resolve_Attribute, case Access): Improve error message for case of
16417 mismatched conventions.
16418 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
16419 incomplete type.
16420 (Analyze_Attribute, case 'Access): If the type of the prefix is a
16421 constrained subtype for a nominal unconstrained type, use its base type
16422 to check for conformance with the context.
16423 (Resolve_Attribute): Remove test of the access type being associated
16424 with a return statement from condition for performing accessibility
16425 checks on access attributes, since this case is now captured by
16426 Is_Local_Anonymous_Access.
16427 (Analyze_Access_Attribute): Set Address_Taken on entity
16428 (Analyze_Attribute, case Address): Set Address_Taken on entity
16429 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
16430 validating an access attribute whose prefix is a current instance.
16431 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
16432 applied to dispatching operations, if freezing is required then we set
16433 the attribute Has_Delayed_Freeze in the prefix's entity.
16434 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
16435 current scope if access of local subprogram taken
16436 (Analyze_Access_Attribute): Check legality of self-reference even if the
16437 expression comes from source, as when a single component association in
16438 an aggregate has a box association.
16439 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
16440 the prefix if it is a protected operation and the attribute is
16441 Unrestricted_Access.
16442 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
16443 reference to the base type of the context, to force a constraint check
16444 when the context is an access subtype with an explicit constraint.
16445 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
16446 node is rewritten as an interface conversion. leave unanalyzed after
16447 resolution, to ensure that type checking against the context will take
16448 place.
16449
164502007-06-06 Ed Schonberg <schonberg@adacore.com>
16451 Javier Miranda <miranda@adacore.com>
16452 Robert Dewar <dewar@adacore.com>
16453
16454 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
16455 wrapper when the full view of the controlling type of an inherited
16456 function that dispatches on result implements interfaces.
16457 (Expand_N_Object_Declaration): In cases where the type of the
16458 declaration is anonymous access, create finalization list for it.
16459 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
16460 if the object has no explicit initialization, to match description of
16461 functionality of pragam Persistent_BSS.
16462 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
16463 new function to build static aggregates, to replace initialization call
16464 when static initialization is desired.
16465 (Freeze_Type): Generate a list controller for an access type whenever
16466 its designated type has controlled anonymous access discriminants.
16467 (Build_Equivalent_Aggregate): New procedure to compute a static
16468 aggregate to be used as default initialization for composite types,
16469 instead of a generating a call to the initialization procedure for the
16470 type.
16471 (Build_Initialization_Call): When available, replace a call to the
16472 initialization procedure with a copy of the equivalent static aggregate
16473 for the type.
16474 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
16475 declarations for objects of a class-wide interface type, rather than
16476 just identifiers, to prevent visibility problems.
16477 (Expand_N_Object_Declaration): When expanding the declaration for an
16478 object of a class-wide interface type, preserve the homonym chain of
16479 the original entity before exchanging it with that of the generated
16480 renaming declaration.
16481 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
16482 active, because there is no way to handle the exception.
16483 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
16484 to do a minimum decoration of the Access_Disp_Table list.
16485 (Expand_Record_Controller): Avoid the addition of the controller between
16486 the component containing the tag of a secondary dispatch table and its
16487 adjacent component that stores the offset to the base of the object.
16488 This latter component is only generated when the parent type has
16489 discriminants ---documented in Add_Interface_Tag_Components).
16490 (Apply_Array_Size_Check): Removed, no longer needed.
16491 (Expand_N_Full_Type_Declaration): If the type has anonymous access
16492 components, create a Master_Entity for it only if it contains tasks.
16493 (Build_Init_Procedure): Suppress the tag assignment compiling under
16494 no run-time mode.
16495 (Freeze_Record_Type): Remove code associated with creation of dispatch
16496 table.
16497 (Init_Secondary_Tags): Update type of actuals when generating calls to
16498 Ada.Tags.Set_Offset_To_Top
16499 (Stream_Operation_OK): Disable use of streams compiling under no
16500 run-time mode
16501 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
16502 if Has_Init_Expression set.
16503 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
16504 Register_Primitive, which provides the same functionality.
16505 (Requires_Init_Proc): Return false in case of interface types.
16506 (Add_Secondary_Tables): Use the new attribute Related_Interface to
16507 cleanup the code.
16508 (Predefined_Primitive_Freeze): Do not assume that an internal entity
16509 is always associated with a predefined primitive because the internal
16510 entities associated with interface types are not predefined primitives.
16511 Therefore, the call to Is_Internal is replaced by a call to the
16512 function Is_Predefined_Dispatching_Operation.
16513 (Make_Eq_If): When generating the list of comparisons for the
16514 components of a given variant, omit the controller component that is
16515 present if the variant has controlled components.
16516
165172007-06-06 Javier Miranda <miranda@adacore.com>
16518 Hristian Kirtchev <kirtchev@adacore.com>
16519 Bob Duff <duff@adacore.com>
16520
16521 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
16522 handle the creation of finalization lists and calls for nested
16523 coextensions when the root of the chains is part of a return statement.
16524 (Inside_A_Return_Statement): New function inside Complete_Coextension_
16525 Finalization.
16526 (Expand_Record_Equality): Skip components that are interface types.
16527 (Displace_Allocator_Pointer): Add missing support for interface subtypes
16528 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
16529 with Rewrite_Coextension. Change the condition for detecting coextension
16530 root nodes.
16531 (Is_Local_Access_Discriminant): Removed.
16532 (Rewrite_Coextension): New routine which rewrites a static coextension
16533 as a temporary and uses its unrestricted access in the construction of
16534 the outer object.
16535 (Complete_Coextension_Finalization): New routine. Generate finalization
16536 attachment calls to all delayed coextensions.
16537 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
16538 the allocator is not a coextension itself and has delayed coextensions.
16539 If the current allocator is controlled, but also a coextension, delay
16540 the generation of the finalization attachment call.
16541 Rename local variable "Node" to "Nod" in order to avoid confusion with
16542 "Elists.Node".
16543 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
16544 limited types that are not inherently limited. Such an allocator is
16545 illegal, but is generated by the expander for a return statement, to
16546 copy the result onto the secondary stack. This is the only case where a
16547 limited object can be copied. Generate code to displace the pointer
16548 to the object if the qualified expression is a class-wide interface
16549 object. Such displacement was missing and hence the copy of the object
16550 was wrong.
16551 (Apply_Accessibility_Check): Handle allocated objects initialized in
16552 place.
16553 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
16554 and Expand_Allocator_Expression. Allocating class-wide interface objects
16555 this routine displaces the pointer to the allocated object to reference
16556 the component referencing the corresponding secondary dispatch table.
16557 Expand_Allocator_Expression): Add missing support to allocate class-wide
16558 interface objects initialized with a qualified expression.
16559 (Get_Allocator_Final_List): Test for an anonymous access type that is a
16560 function result type, and use the finalization list associated with the
16561 function scope in that case (such an anonymous type should not be
16562 treated like an access parameter's type).
16563
165642007-06-06 Ed Schonberg <schonberg@adacore.com>
16565 Gary Dismukes <dismukes@adacore.com>
16566 Javier Miranda <miranda@adacore.com>
16567
16568 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
16569 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
16570 required exception handler.
16571 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
16572 properly the case of a function whose return type is a limited
16573 class-wide interface type. Modify the code of the accessibility
16574 check to handle class-wide interface objects. In this case we need to
16575 displace "this" to reference the primary dispatch table to get access
16576 to the TSD of the object (to evaluate its accessibility level).
16577 (Expand_N_Extended_Return_Statement): Test for a tagged result type
16578 rather than a controlling result as one of the conditions for
16579 generating tests of the implicit BIP_Alloc_Form formal. The
16580 initialization assignment is also handled according to whether the
16581 result is tagged instead of controlling.
16582 In the case where the init assignment is inserted in the "then" part of
16583 the allocation conditional, rewrite the target to be a dereference of
16584 the implicit BIP_Object_Access formal.
16585 If the returned value is unconstrained and created on the secondary
16586 stack, mark the enclosing block and function so that the secondary
16587 stack is not reclaimed on return.
16588 Treat returns from functions with controlling results similarly to
16589 returns from functions with unconstrained result subtypes.
16590 If the object returned is unconstrained, and an allocator must be
16591 created for it, analyze the allocator once the block for the extended
16592 return is installed, to ensure that finalizable components
16593 of the expression use the proper finalization list. Guard the call to
16594 Move_Final_List with a check that there is something to finalize.
16595 (Make_Tag_Ctrl_Assignment): Use "old" handling
16596 of controlled type assignment for virtual machines, since new code uses
16597 unsupported features (such as direct access to bytes in memory).
16598
165992007-06-06 Gary Dismukes <dismukes@adacore.com>
16600 Ed Schonberg <schonberg@adacore.com>
16601
16602 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
16603 accessibility actual, check for the case of an aliased object that has
16604 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
16605 we fall into processing for the attribute rather than the name of the
16606 object.
16607 (Expand_Inline_Call): If an actual is a literal, and the corresponding
16608 formal has its address taken in the body, create a temporary to capture
16609 value. If the return type is a limited interface, do not treat the
16610 return value as Controlled.
16611 (Is_In_Place_Function): If the return type is a limited interface,
16612 treat as returning in place. The actual returned object may not always
16613 be limited, but the caller has to assume that it is returned in place.
16614 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
16615 context of an allocator, use the correct finalization chain (that is,
16616 the chain belonging to the access type, rather than the chain belonging
16617 to the current scope).
16618 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
16619 result type rather than a controlling result as a precondition for
16620 adding an allocation form actual to a build-in-place call.
16621 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
16622 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
16623 primitive in the dispatch tables. This work is now done by Make_DT when
16624 the type is frozen.
16625 (Register_Predefined_DT_Entry): Removed.
16626 (Add_Return): If end label is not present, use sloc of last statement
16627 for generated return statement in procedure, for better gdb behavior
16628 on expanded code.
16629 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
16630 object address nodes to ensure proper processing by routines like
16631 Insert_After*.
16632 (Expand_Call): Fix generation of validity check for parameter
16633 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
16634 the allocation form parameter if the result subtype is constrained,
16635 except when the function has a controlling result.
16636 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
16637 rather than Is_Controlled and Has_Controlled_Component, since we want to
16638 include class-wide result types in this treatment. Also test for a
16639 controlling result, since that also requires passing a finalization
16640 list.
16641 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
16642 even when the result subtype is constrained, to handle calls involving
16643 controlling results.
16644 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
16645 is now called even when the result subtype is constrained, to handle
16646 calls involving controlling results.
16647 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
16648 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
16649 now performs the test).
16650 (Make_Build_In_Place_Call_In_Object_Declaration):
16651 Add_Alloc_Form_Actual_* is now called even when the result subtype is
16652 constrained, to handle calls involving controlling results.
16653 (Add_Return): Accomodate rewritten pattern from local raise to goto
16654 transformation, so that we still recognize an transfer statement
16655 and do the right thing here in that case.
16656 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
16657 and end of subprogram code.
16658 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
16659 support for primitives that are functions (without formals) with a
16660 controlling result.
16661 (Inherited_From_Formal): If the actual subtype has not generic parent
16662 type, it is not an actual for a formal derived type, and there is no
16663 operation to inherit from the formal.
16664
166652007-06-06 Ed Schonberg <schonberg@adacore.com>
16666 Thomas Quinot <quinot@adacore.com>
16667
16668 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
16669 inserted cleanup code appropriately for GDB use.
16670 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
16671 exception handler for Deep_Adjust or Deep_Finalize.
16672 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
16673 Raise_From_Controlled_Operation is available, use a call to that
16674 subprogram instead of a plain "raise Program_Error" node to raise
16675 Program_Error if an exception is propagated from an Adjust or Finalize
16676 operation.
16677 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
16678 appears in the optional statement list of a triggering alternative, the
16679 scope actions can be inserted directly there, and not in the list that
16680 includes the asynchronous select itself.
16681
166822007-06-06 Ed Schonberg <schonberg@adacore.com>
16683 Robert Dewar <dewar@adacore.com>
16684 Hristian Kirtchev <kirtchev@adacore.com>
16685
16686 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
16687 generated exception handler appropriately when debugging generated code.
16688 Deal properly with No_Exception_Propagation restriction mode.
16689 (Expand_N_Abort_Statement): Add an unchecked type conversion from
16690 System.Address to System.Tasking.Task_Id when processing the result of
16691 the predefined primitive _disp_get_task_id.
16692 (Expand_N_Asynchronous_Select): Clarify comment.
16693 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
16694 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
16695 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
16696 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
16697 privals and for generated call to Complete_Entry_Body, for better gdb
16698 behavior.
16699 (Copy_Result_Type): Utility to construct a parameter and result profile
16700 for protected functions whose return type is an anonymous access to
16701 subprogram.
16702 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
16703 call the above.
16704 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
16705 point when the local-raise-to-goto transformation has taken place.
16706
167072007-06-06 Javier Miranda <miranda@adacore.com>
16708 Nicolas Setton <setton@adacore.com>
16709
16710 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
16711 functionality when the backend is generating code.
16712 Otherwise any serious error
16713 reported by the backend calling the frontend routine Error_Msg
16714 changes the Compilation_Mode to Check_Semantics, disables the
16715 functionality of this routine and causes the generation of
16716 spureous additional errors.
16717
16718 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
16719 debugging information now generated by the compiler for fat-pointer
16720 types.
16721 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
16722 DWARF2/3.
16723 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
16724
167252007-06-06 Thomas Quinot <quinot@adacore.com>
16726
16727 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
16728 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
16729 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
16730 For a remote call to a function with a classwide return type, apply an
16731 E.4(18) check to the returned value.
16732 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
16733 stream attributes of the designated type of an RACW, as they are not
16734 dispatching primitive operations.
16735
167362007-06-06 Geert Bosch <bosch@adacore.com>
16737
16738 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
16739 negative literal
16740 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
16741 positive
16742 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
16743 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
16744 positive
16745 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
16746
167472007-06-06 Javier Miranda <miranda@adacore.com>
16748
16749 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
16750 attribute compiling package Ada.Tags under No_Run_Time_Mode.
16751
167522007-06-06 Javier Miranda <miranda@adacore.com>
16753
16754 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
16755 deallocation of class-wide interface objects.
16756 (Expand_Dispatching_Constructor_Call): Take into account that if the
16757 result of the dispatching constructor is an interface type, the
16758 function returns a class-wide interface type; otherwise the returned
16759 object would be actual. The frontend previously accepted returning
16760 interface types because Expand_Interface_Actuals silently performed
16761 the management of the returned type "as if" it were a class-wide
16762 interface type.
16763 (Expand_Dispatching_Constructor_Call): Replace call to
16764 Make_DT_Access_Action by direct call to Make_Function_Call.
16765
167662007-06-06 Robert Dewar <dewar@adacore.com>
16767 Ed Schonberg <schonberg@adacore.com>
16768
16769 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
16770 compute masking constant, since we now set Esize properly to the
16771 underlying size.
16772 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
16773 to match the alignment.
16774 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
16775 packed arrays of 8 bits or less.
16776
16777 * freeze.adb (Freeze_Entity): When freezing the formals of a
16778 subprogram, freeze the designated type of a parameter of an access type
16779 only if it is an access parameter.
16780 Increase size of C convention enumeration object
16781 (Freeze_Entity, array type case): Make sure Esize value is properly
16782 adjusted for the alignment if it is known.
16783 (Freeze_Entity, array type case): When checking bit packed arrays for
16784 the size being incorrect, check RM_Size, not Esize.
16785 (Freeze_Record_Type): Check for bad discriminated record convention
16786 (In_Exp_Body): Return true if the body is generated for a subprogram
16787 renaming, either an attribute renaming or a renaming as body.
16788 (Check_Itype): If the designated type of an anonymous access component
16789 is a non-protected subprogram type, indicate that it is frozen, to
16790 prevent out-of-scope freeze node at some subsequent call.
16791 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
16792 only if the subprogram is neither imported nor exported, as well as the
16793 NCA descriptor class if the subprogram is exported.
16794
167952007-06-06 Ed Schonberg <schonberg@adacore.com>
16796 Arnaud Charlet <charlet@adacore.com>
16797 Robert Dewar <dewar@adacore.com>
16798 Gary Dismukes <dismukes@adacore.com>
16799
16800 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
16801 default initialization on an imported object, when there is no
16802 initialization call generated for it.
16803 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
16804 restriction
16805
16806 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
16807 Static_Elaboration_Desired.
16808 Remove pragma Thread_Body.
16809 Implement a new pragma No_Body
16810 Removes the Explicit_Overriding pragma
16811 Remove Optional_Overriding pragma
16812 (Prag): Deal with Universal_Aliasing.
16813 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16814 Pragma_CIL_Constructor): New names.
16815
16816 * sem_cat.adb (Validate_Object_Declaration): An initialization that
16817 uses the equivalent aggregate of a type must be treated as an implicit
16818 initialization.
16819 (Get_Categorization): Check a unit for pragma Preelaborate only if it
16820 has none of the other categories.
16821 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
16822 to apply Import to an object renaming declaration.
16823
16824 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
16825 from a C++ class should be declared as limited and that it will be
16826 considererd limited.
16827 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
16828 should be declared as limited and that it will be considererd limited.
16829 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
16830 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
16831 (Analyze_Pragma): Deal with Universal_Aliasing.
16832 (Sig_Flags): Likewise.
16833 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
16834 (Overflow_Checks_Unsuppressed): New flag.
16835 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16836 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
16837 case of JVM or .NET targets, and compiling user code.
16838 Add debugging convenience routine rv
16839
168402007-06-06 Robert Dewar <dewar@adacore.com>
16841
16842 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
16843 are interface type.
16844 (Build_Elementary_Input_Call): For floating-point use right type in the
16845 absence of strange size or stream size clauses.
16846 (Build_Elementary_Write_Call): Same fix
16847 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
16848 set to value that does not match base type size.
16849
168502007-06-06 Ed Schonberg <schonberg@adacore.com>
16851
16852 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
16853 object of a limited type can be initialized with a call to a function
16854 that returns in place. If the limited type has unknown discriminants,
16855 and the underlying type is a constrained composite type, build an actual
16856 subtype from the function call, as is done for private types.
16857 (Side_Effect_Free): An expression that is the renaming of an object or
16858 whose prefix is the renaming of a object, is not side-effect free
16859 because it may be assigned through the renaming and its value must be
16860 captured in a temporary.
16861 (Has_Controlled_Coextensions): New routine.
16862 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
16863 as is done for other limited types.
16864 (Non_Limited_Designated_Type): new predicate.
16865 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
16866 objects.
16867 Remove all handling of with_type clauses.
16868
9e81dbc7 16869 * par-ch10.adb: Remove all handling of with_type clauses.
ec11296f
AC
16870
16871 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
16872 checksum if the main source could not be parsed.
16873 (Loat_Unit): When processing a child unit, determine properly whether
16874 the parent unit is a renaming when the parent is itself a child unit.
16875 Remove handling of with_type clauses.
16876
16877 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
16878 (Set_Is_Static_Coextension): New procedure.
16879 (Has_Local_Raise): New function
16880 (Set_Has_Local_Raise): New procedure
16881 (Renaming_Exception): New field
16882 (Has_Init_Expression): New flag
16883 (Delay_Finalize_Attach): Remove because flag is obsolete.
16884 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
16885 Remove all handling of with_type clauses.
16886 (Exception_Junk): Can now be set in N_Block_Statement
16887
168882007-06-06 Vincent Celier <celier@adacore.com>
16889 Robert Dewar <dewar@adacore.com>
16890
16891 * frontend.adb (Frontend): Return immediately if the main source could
16892 not be parsed, because of preprocessing errors.
16893
16894 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
16895 (Gnat1drv): Exit with errors if the main source could not be parsed,
16896 because of preprocessing errors.
16897 (Check_Rep_Info): New procedure
16898
168992007-06-06 Robert Dewar <dewar@adacore.com>
16900
16901 * g-hesorg.ads, g-heasor.ads,
16902 g-busorg.ads, g-bubsor.ads: Update documentation
16903 GNAT.Heap/Bubble_Sort_G is now pure
16904
169052007-06-06 Robert Dewar <dewar@adacore.com>
16906
16907 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
16908
169092007-06-06 Robert Dewar <dewar@adacore.com>
16910 Ed Schonberg <schonberg@adacore.com>
16911
9e81dbc7 16912 * g-comlin.ads, g-comlin.adb:
ec11296f
AC
16913 Add new warning for renaming of function return objects
16914
16915 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
16916 (Tree_Read): Use size of object instead of type'object_size, since the
16917 latter is incorrect for packed array types.
16918 (Tree_Write): Same fix
16919
16920 * opt.ads: Add new warning for renaming of function return objects
16921 (Generating_Code): New boolean variable used to indicate that the
16922 frontend as finished its work and has called the backend to process
16923 the tree and generate the object file.
16924 (GCC_Version): Is now private
16925 (Static_Dispatch_Tables): New constant declaration.
16926 (Overflow_Checks_Unsuppressed): New flag.
16927 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
16928 (List_Closure): New flag for gnatbind (-R)
16929 Zero_Formatting: New flag for gnatbind (-Z)
16930 (Special_Exception_Package_Used): New flag.
16931 (Warn_On_Unrepped_Components): New flag.
16932
16933 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
16934 unit is a compilation unit, rather than relying on its scope, so that
16935 Standard can be renamed.
16936 (Analyze_Object_Renaming): Add new warning for renaming of function
16937 return objects.
16938 Also reject attempt to rename function return object in Ada 83 mode.
16939 (Attribute_Renaming): In case of tagged types, add the body of the
16940 generated function to the freezing actions of the type.
16941 (Find_Type): A protected type is visible right after the reserved word
16942 "is" is encountered in its type declaration. Set the entity and type
16943 rather than emitting an error message.
16944 (New_Scope): Properly propagate Discard_Names to inner scopes
16945 (Check_Nested_Access): New procedure.
16946 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
16947 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16948
16949 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
16950 Add new warning for renaming of function return objects
16951 (Check_References): Suppress warnings for objects whose type or
16952 base type has Warnings suppressed.
16953 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
16954 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
16955
169562007-06-06 Vincent Celier <celier@adacore.com>
16957 Emmanuel Briot <briot@adacore.com>
16958 Olivier Hainque <hainque@adacore.com>
16959
16960 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
16961 absolute value of Header.Block_Size when displaying the freed physical
16962 memory in traces.
16963 (Allocate): Compute Storage_Address using Integer_Address, not
16964 Storage_Offset, because the range of Storage_Offset may not be large
16965 enough.
16966 (Configure): New parameter Low_Level_Traces
16967 (Allocate, Deallocation, Free_Physically): Added low-level traces
16968 (Configure): new parameter Errors_To_Stdout.
16969 (Output_File): new subprogram
16970 (Deallocate, Dereference): Send error messages to the proper stream
16971 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
16972 documented. Previous code would send it to the current output file
16973 defined in GNAT.IO, which might not be stdout
16974 (Is_Valid): Adjust comment to mention that a positive reply means that
16975 Header_Of may be used to retrieve the allocation header associated with
16976 the subprogram Storage address argument. Return False early if this
16977 address argument is misaligned.
16978
169792007-06-06 Vincent Celier <celier@adacore.com>
16980
16981 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
16982 switch -P
16983 (ASIS_Main): New global variable
16984 (Get_Closure): New procedure
16985 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
16986 check, metric or pretty. Call Get_Closure in this case.
16987 (Check_Files): For GNAT LIST, check all sources of all projects when
16988 All_Projects is True.
16989 (GNATCmd): Accept -U for GNAT LIST
16990
169912007-06-06 Vincent Celier <celier@adacore.com>
16992
16993 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
16994 has been specified
16995 Correct error message when invocation of the linker fails
16996 Add explicit size clause for the C imported variables
16997 Object_List_File_Supported and Using_GNU_Linker to emphasize that
16998 we expect char size.
16999 Read target parameters earlier, since this is needed to set
17000 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
17001 targets.
17002
170032007-06-06 Vincent Celier <celier@adacore.com>
17004
9e81dbc7 17005 * gnatls.adb:
ec11296f
AC
17006 Add 3 spaces before the default project directory when displaying
17007 the project search path.
17008 Add new command line switch '-l' to display license information.
17009
170102007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
17011
17012 * gmem.c: Add support for timestamps on memory operations.
17013
17014 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
17015 operations (not used currently, just foundation for future
17016 enhancements). Add possibility to perform full dump of gmem.out file.
17017 (Print_Back_Traces): Declare accesses to root arrays constants since
17018 they aren't modified.
17019 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
17020
170212007-06-06 Vincent Celier <celier@adacore.com>
17022
17023 * gnatsym.adb: Update Copyright notice
17024 (Parse_Cmd_Line): Accept new switch -D
17025 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
17026 file.
17027
17028 * prj.ads (Policy): New policy Direct
17029 (Yes_No_Unknown): New enumeration type
17030 (Project_Data): New component Libgnarl_Needed
17031
17032 * prj-nmsc.adb (Check_For_Source): When recording a source file make
17033 use the untouched pathname casing.
17034 (Get_Directories): Ensure that the Display_Exec_Directory is using the
17035 proper casing on non case-sensitive platforms like Windows.
17036 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
17037 on all platforms, as it is not possible to know which one is allowed
17038 before processing the project files.
17039 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
17040 specified when symbol policy is Direct. Check that when there is a
17041 symbol file defined (either by default or with attribute
17042 Library_Symbol_File) it is not the same as the reference symbol file.
17043 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
17044 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
17045 extending projects.
17046 (Record_Ada_Source): Record a source that has been locally removed in an
17047 imported project.
17048
17049 * symbols.ads (Policy): New policy Direct
17050
17051 * symbols-vms.adb (Initialize): Take new policy Direct in case
17052 statement
17053
170542007-06-06 Vincent Celier <celier@adacore.com>
17055
17056 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
17057 Correct obvious bug (return Dir; instead of return Directory;).
17058 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
17059
170602007-06-06 Thomas Quinot <quinot@adacore.com>
17061
17062 * g-pehage.adb (Produce): Open output files in Binary mode, so that
17063 they have UNIX line endings (LF only) even on Windows, and thus pass
17064 all GNAT style checks.
17065
170662007-06-06 Emmanuel Briot <briot@adacore.com>
17067
17068 * g-regpat.adb (Quote): Fix improper quoting of '.'
17069
170702007-06-06 Thomas Quinot <quinot@adacore.com>
17071
17072 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
17073 default, set False on a per-runtime basis.
17074 (Need_Netdb_Buffer): New constant.
17075
17076 * g-socket.ads, g-socket.adb: Import new package
17077 GNAT.Sockets.Thin.Task_Safe_NetDB.
17078 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
17079 binding to obtain proper message.
17080 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
17081 Replace various occurrences of Arry (Arry'First)'Address with the
17082 equivalent Arry'Address (GNAT always follows implementation advice from
17083 13.3(14)).
17084 (Get_Host_By_Address, Get_Host_By_Name,
17085 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
17086 instead, rely on platform-specific task safe netdb operations provided
17087 by g-socthi.
17088
17089 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
17090 parameter Process_Blocking_IO.
17091 (Host_Error_Messages): Add stub body.
17092 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
17093 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
17094 Safe_Getservbyport): Move functions into new child package
17095 Task_Safe_NetDB.
17096 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
17097 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
17098 (In_Addr): Add alignment clause.
17099
171002007-06-06 Robert Dewar <dewar@adacore.com>
17101
17102 * g-trasym.ads, g-traceb.ads: Update list of supported targets
17103 Add note about symbolic traceback
17104
171052007-06-06 Pascal Obry <obry@adacore.com>
17106
17107 * hostparm.ads (Normalized_CWD): Use the host directory separator
17108 instead of the hardcoded forward slash which is not the proper
17109 character on Windows for example.
17110 (Java_VM): Removed.
17111
171122007-06-06 Vincent Celier <celier@adacore.com>
17113 Arnaud Charlet <charlet@adacore.com>
17114
17115 * a-clrefi.adb, a-clrefi.ads: New files
17116
17117 * impunit.adb: Add s-os_lib in the list of user visible units.
17118 (Non_Imp_File_Names_95): Add a-clrefi to this list
17119 Remove obsolete run-time entries.
17120 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
17121 "a-exetim" -- Ada.Execution_Time
17122 "a-extiti" -- Ada.Execution_Time.Timers
17123
17124 * mlib-prj.ads, mlib-prj.adb
17125 (Build_Library): Use untouched object dir and library dir. At the
17126 same time makes sure that the checks are done using the canonical
17127 form. Removes hard-coded directory separator and use the proper host
17128 one instead.
17129 (Process_Project): Do not look in object directory to check if libgnarl
17130 is needed for a library, if there is no object directory.
17131 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
17132 linking.
17133 (Build_Library): When invoking gnatbind, use a response file if the
17134 total size of the arguments is too large.
17135
17136 * Makefile.rtl: (g-sttsne): New object file.
17137 Add entry for a-clrefi, s-utf_32, System.Exceptions
17138
17139 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
17140 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
17141 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
17142 Change g-string to s-string, g-os_lib to s-os_lib
17143 Change all g-utf_32 references to s-utf_32
17144
171452007-06-06 Tristan Gingold <gingold@adacore.com>
17146 Olivier Hainque <hainque@adacore.com>
17147
17148 * init.c: Do not adjust IP of an imported VMS exception of ia64.
17149 LIB$STOP is called to raise an exception and the IP of the exception
17150 is the instruction right after the call.
17151 (__gnat_adjust_context_for_raise, AIX): Implement.
17152 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
17153 adjust_context_for_raise before Raise_From_Signal_Hanler.
17154 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
17155 siginfo is passed to the handler, necessary to let the zcx propagation
17156 engine unwind past it.
17157
171582007-06-06 Olivier Hainque <hainque@adacore.com>
17159
17160 * initialize.c (__gnat_initialize for vxworks): Update documentation
17161 on the ZCX support, using different sets of crtstuff objects than with
17162 GCC 3.4.
17163
171642007-06-06 Robert Dewar <dewar@adacore.com>
17165
17166 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
17167 spec from body
17168 (Layout_Type): Fix recomputation of size from alignment.
17169
171702007-06-06 Ed Schonberg <schonberg@adacore.com>
17171 Javier Miranda <miranda@adacore.com>
17172
17173 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
17174 association in an instance.
17175 (Copy_Generic_Node): If the node is a string literal, no need to copy
17176 its descendants.
17177 (Is_Generic_Formal): For a formal subprogram, the declaration is the
17178 grandparent of the entity.
17179 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
17180 to simplify handling of formal interfaces that derive from other formal
17181 interfaces.
17182 (Instantiate_Subprogram_Body): The defining unit name of the body of
17183 the instance should be a defining identifier.
17184 (Install_Formal_Packages): make global to the package, for use in
17185 instantiations of child units.
17186 (Analyze_Package_Instantiation): Do not attempt to set information on an
17187 enclosing master of an entry when expansion is disabled.
17188 (Instantiate_Type): If the actual is a tagged synchronized type and the
17189 generic ancestor is an interface, create a generic actual for the
17190 corresponding record.
17191 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
17192 declaration, to ensure that the interface list is processed correctly.
17193 (Inline_Instance_Body): If enclosing scope is an instance body, remove
17194 its entities from visibiility as well.
17195 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
17196 given with a named association, analyze the expression only, not the
17197 discriminant association itself.
17198 (Reset_Entity): If the analysis of a selected component is transformed
17199 into an expanded name in the prefix of a call with parameters, do not
17200 transform the original node into an expanded name, to prevent visibility
17201 errors in the case of nested generics.
17202 (Check_Private_View): For an array type, check whether the index types
17203 may need exchanging.
17204
172052007-06-06 Arnaud Charlet <charlet@adacore.com>
17206 Vincent Celier <celier@adacore.com>
17207
17208 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
17209 since both are separated.
17210 Add support for imported CIL packages.
17211 Add further special handling of "value_type" for CIL.
17212 Add special handling of pragma Import for CIL.
17213
17214 * make.ads, make.adb: When switch -eS is used, direct all outputs to
17215 standard output instead of standard error, except errors.
17216 (Absolute_Path): Use untouched casing for the parent directory.
17217 (Add_Library_Search_Dir): Use the untouched directory name.
17218 (Add_Source_Search_Dir): Idem.
17219 (Change_To_Object_Directory): Update output to use proper casing.
17220 (Create_Binder_Mapping_File): Use the untouched filename to set
17221 ALI_Name.
17222 (Gnatmake): Use untouched library and executable directory names.
17223 (Insert_Project_Sources): Use untouched filename for spec and body.
17224 (Is_In_Object_Directory): Use untouched object directory.
17225 (Mark_Directory): Idem.
17226 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
17227 contains the non-canonical filename in all cases.
17228 (Change_To_Object_Directory): In verbose mode, display the name of the
17229 object directory we're changing to.
17230 (Compile_Sources): Make sure, when a project file is used, to compile
17231 the body of the unit, when there is one, even when only the spec is
17232 recorded in an ALI file.
17233 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
17234 spec to the body.
17235 (Report_Compilation_Failed): New procedure
17236 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
17237 procedures moved from the spec to the body.
17238 (Extract_Failure): Removed, not used
17239 Replace explicit raises of exception Bind_Failed and Link_Failed with
17240 calls to Make_Failed with the proper message.
17241 Replace explicit raises of exception Compilation_Failed with calls to
17242 procedure Report_Compilation_Failed.
17243 (Initialize): Create mapping files unconditionally when using project
17244 files.
17245
17246 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
17247 Pragma_CIL_Constructor): New names.
17248
17249 * targparm.ads, targparm.adb
17250 (Compiler_System_Version): Removed, no longer used.
17251 (Get_Target_Parameters): Relax checks on system.ads validity. Add
17252 handling of two new system flags: JVM and CLI.
17253
172542007-06-06 Jose Ruiz <ruiz@adacore.com>
17255 Arnaud Charlet <charlet@adacore.com>
17256
17257 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
17258 time, use the default s-interr body that provides interrupt support
17259 based on signals.
17260 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
17261 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
17262 g-soccon.ads, and s-taprop.adb for the marte run time.
17263 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
17264 timers are supported on marte.
17265 (EH_MECHANISM for marte): Do not use ZCX.
17266 (THREADSLIB for marte): Use -lmarte.
17267 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
17268 Add mlib-tgt-specific.o to gnatmake objects
17269 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
17270 longer of MLib.Tgt.
17271 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
17272 6, either kernel or rtp, use a specialized version of s-osinte.ads.
17273
172742007-06-06 Pascal Obry <obry@adacore.com>
17275
17276 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
17277
172782007-06-06 Vincent Celier <celier@adacore.com>
17279
17280 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
17281 separator, use instead the proper host directory separator.
17282 (Copy_ALI_Files): Make sure that an already existing ALI file in the
17283 ALI copy dir is writable, before doing the copy.
17284
9e81dbc7 17285 * mlib-utl.ads, mlib-utl.adb:
ec11296f
AC
17286 (Gcc): If length of command line is too long, put the list of object
17287 files in a response file, if this is supported by the platform.
17288 (Ar): If invocation of the archive builder is allowed to be done in
17289 chunks and building it in one shot would go above an OS dependent
17290 limit on the number of characters on the command line, build the archive
17291 in chunks.
17292
172932007-06-06 Vincent Celier <celier@adacore.com>
17294
17295 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
17296 of specified object file is not equal to base name of source.
17297
172982007-06-06 Javier Miranda <miranda@adacore.com>
17299 Hristian Kirtchev <kirtchev@adacore.com>
17300 Ed Schonberg <schonberg@adacore.com>
17301
17302 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
17303 the full type declaration.
17304 (Analyze_Component_Declaration): Add local variable E to capture the
17305 initialization expression of the declaration. Replace the occurences of
17306 Expression (N) with E.
17307 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
17308 limited interface object with a function call.
17309 (Array_Type_Declaration): If the declaration lacks subtype marks for
17310 indices, create a simple index list to prevent cascaded errors.
17311 (Is_Null_Extension): Ignore internal components created for secondary
17312 tags when checking whether a record extension is a null extension.
17313 (Check_Abstract_Interfaces): Add missing support for interface subtypes
17314 and generic formals.
17315 (Derived_Type_Declaration): Add missing support for interface subtypes
17316 and generic formals.
17317 (Analyze_Object_Declaration): If an initialization expression is
17318 present, traverse its subtree and mark all allocators as static
17319 coextensions.
17320 (Add_Interface_Tag_Component): When looking for components that may be
17321 secondary tags, ignore pragmas that can appear within a record
17322 declaration.
17323 (Check_Abstract_Overriding): an inherited function that dispatches on
17324 result does not need to be overriden if the controlling type is a null
17325 extension.
17326 (Mentions_T): Handle properly a 'class attribute in an anonymous access
17327 component declaration, when the prefix is an expanded name.
17328 (Inherit_Component): If the derivation is for a private extension,
17329 inherited components remain visible and their ekind should not be set
17330 to Void.
17331 (Find_Type_Of_Object): In the case of an access definition, always set
17332 Is_Local_Anonymous_Access. We were previously not marking the anonymous
17333 access type of a return object as a local anonymous type.
17334 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
17335 range with character literal bounds.
17336 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
17337 (Access_Subprogram_Declaration): Indicate that the type declaration
17338 depends on an incomplete type only if the incomplete type is declared
17339 in an open scope.
17340 (Analyze_Subtype_Declaration): Handle properly subtypes of
17341 synchronized types that are tagged, and that may appear as generic
17342 actuals.
17343 (Access_Subprogram_Declaration): An anonymous access to subprogram can
17344 appear as an access discriminant in a private type declaration.
17345 (Add_Interface_Tag_Components): Complete decoration of the component
17346 containing the tag of a secondary dispatch table and the component
17347 containing the offset to the base of the object (this latter component
17348 is only generated when the parent type has discriminants --as documented
17349 in this routine).
17350 (Inherit_Components): Use the new decoration of the tag components to
17351 improve the condition that avoids inheriting the components associated
17352 with secondary tags of the parent.
17353 (Build_Discriminanted_Subtype): Indicate to the backend that the
17354 size of record types associated with dispatch tables is known at
17355 compile time.
17356 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
17357 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
17358 to include task, protected, and synchronized interfaces as limited
17359 interfaces.
17360 (Process_Discriminants): Remove the setting of
17361 Is_Local_Anonymous_Access on the type of (anonymous) access
17362 discriminants of nonlimited types.
17363 (Analyze_Interface_Type_Declaration): Complete the decoration of the
17364 class-wide entity it is is already present. This situation occurs if
17365 the limited-view has been previously built.
17366 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
17367 field.
17368 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
17369 Related_Interface.
17370
173712007-06-06 Ed Schonberg <schonberg@adacore.com>
17372
17373 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
17374 of the type that specify the position of interface tags when the type
17375 inherits discriminated array components from the parent type.
17376 If a component is initialized with a box, check for the presence of a
17377 default expression in its declaration before using its default
17378 initialization procedure.
17379 (Resolve_Record_Aggregate): If a component is box-initialized, and the
17380 component type has a discriminants, create a partial aggregate for it
17381 by copying the discriminants of the component subtype.
17382 Reject attempt to initialize a discriminant with a box.
17383 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
17384 associated with dispatch tables is known at compile time.
17385 (Get_Value): If an association in a record aggregate has a box
17386 association, and the corresponding record component has a default
17387 expression, always copy the default expression, even when the
17388 association has a single choice, in order to create a proper
17389 association for the expanded aggregate.
17390
173912007-06-06 Ed Schonberg <schonberg@adacore.com>
17392 Robert Dewar <dewar@adacore.com>
17393
17394 * par-ch12.adb (P_Generic_Associations): The source position of an
17395 Others association is that of the others keyword, not that of the token
17396 that follows the box.
17397 (P_Formal_Type_Definition): Handle formal access types that carry a
17398 not null indicator.
17399
17400 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
17401 multiple identifier are present, save Scan_State before scanning the
17402 colon, to ensure that separate trees are constructed for each
17403 declaration.
17404 (P_Identifier_Declarations): For object declaration, set new flag
17405 Has_Init_Expression if initialization expression present.
17406 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
17407 Improve NOT NULL error messages
17408
174092007-06-06 Robert Dewar <dewar@adacore.com>
17410
17411 * par-ch4.adb: (P_Name): Recover from literal used as name
17412
174132007-06-06 Vincent Celier <celier@adacore.com>
17414
17415 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
17416 defaulted to False.
17417 In the "not" case, recursive call with Complemented set to True.
17418 Do not allow "or" or "and" operators when Complemented is True.
17419
174202007-06-06 Vincent Celier <celier@adacore.com>
17421
17422 * prj.adb (Project_Empty): Gives default value for new component
17423 Libgnarl_Needed
17424
17425 * prj-attr.ads: Minor reformatting
17426
17427 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
17428 directory using the untouched casing.
17429 (For_All_Source_Dirs): Idem.
17430
17431 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
17432 directories specified with switches -aP.
17433 (Add_Search_Project_Directory): New procedure
17434 (Initialize_Project_Path): Put the directories in table
17435 Search_Directories in the project search path.
17436 (Initialize_Project_Path): For VMS, transform into canonical form the
17437 project path.
17438
174392007-06-06 Arnaud Charlet <charlet@adacore.com>
17440
17441 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
17442 true if configurable run-time or No_Run_Time is set.
17443 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
17444 processing an unit which is not the one being compiled.
17445
174462007-06-06 Arnaud Charlet <charlet@adacore.com>
17447
17448 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
17449 Replace UC by Ada.UC
17450
17451 * s-bitops.adb: Get rid of System.Pure_Exceptions.
17452 Replace UC by Ada.UC
17453
174542007-06-06 Robert Dewar <dewar@adacore.com>
17455
17456 * scng.adb: (Check_End_Of_Line): Deal with very long lines
17457
174582007-06-06 Robert Dewar <dewar@adacore.com>
17459
17460 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
17461 Remove no longer used nodes.
17462
174632007-06-06 Javier Miranda <miranda@adacore.com>
17464 Ed Schonberg <schonberg@adacore.com>
17465 Robert Dewar <dewar@adacore.com>
17466
17467 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
17468 on obsolescent withed unit in case of limited-withed units.
17469 (Analyze_Compilation_Unit): Add guard to code that removed an
17470 instantiation from visibility, to prevent compiler aborts when
17471 instantiation is abandoned early on.
17472 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
17473 current unit being analyzed, and Distinguish local incomplete types
17474 from limited views of types declared elsewhere.
17475 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
17476 to state that the class-wide entity is shared by the limited-view
17477 and the full-view.
17478 (Analyze_With_Clause): Improve placement of flag for case of
17479 unimplemented unit.
17480 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
17481 manner similar to GNAT.Current_Exception. This is a violation of
17482 restriction (No_Exception_Propagation), and also inhibits the
17483 optimization of local raise to goto.
17484 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
17485 and if so set Most_Recent_Exception_Used flag in Opt, and also check
17486 for violation of restriction No_Exception_Propagation.
17487
174882007-06-06 Javier Miranda <miranda@adacore.com>
17489 Hristian Kirtchev <kirtchev@adacore.com>
17490 Gary Dismukes <dismukes@adacore.com>
17491
17492 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
17493 use of entity Exception_Occurrence if it is not available in the
17494 target run-time.
17495
17496 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
17497 concurrent types are declared within an Ada 2005 generic, build their
17498 corresponding record types since they are needed for overriding-related
17499 semantic checks.
17500 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
17501 protected type does not implement a task interface or a nonlimited
17502 interface.
17503 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
17504 type does not implement a protected interface or a nonlimited interface.
17505 (Single_Task_Declaration, Single_Protected_Declaration): use original
17506 entity for variable declaration, to ensure that debugging information
17507 is correcty generated.
17508 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
17509 routines if the expander is not active.
17510 (Analyze_Task_Body): Mark all handlers to stop optimization of local
17511 raise, since special things happen for task exception handlers.
17512
17513 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
17514 concurrent types declared within a generic.
17515 (Check_Dispatching_Operation): Do not emit warning about late interface
17516 operations in the context of an instance.
17517 (Check_Dispatching_Call): Remove restriction against calling a
17518 dispatching operation with a limited controlling result.
17519 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
17520 Register_Interface_DT_Entry by calls to Register_Primitive.
17521 (Check_Dispatching_Formals): Handle properly a function with a
17522 controlling access result.
17523
175242007-06-06 Robert Dewar <dewar@adacore.com>
17525 Arnaud Charlet <charlet@adacore.com>
17526
17527 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
17528 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
17529 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
17530 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
17531 message when using a VM, since this attribute is not supported.
17532 (Analyze_Record_Representation_Clause): Give unrepped component warnings
17533
17534 * usage.adb: Add new warning for renaming of function return objects
17535 Indicate that -gnatwp and -gnatwP concern front-end inlining
17536 Add line for -gnatyg
17537 Add usage information for -gnatw.c/C
17538
175392007-06-06 Robert Dewar <dewar@adacore.com>
17540 Ed Schonberg <schonberg@adacore.com>
17541
17542 * sem_ch5.adb
17543 (Find_Var): Do not consider function call in test for infinite loop
17544 warning if warnings set off for function entity.
17545 (One_Bound): Do not create a temporary for a loop bound if it is a
17546 character literal.
17547 (Analyze_Assignment): Traverse the right hand side of an assignment and
17548 mark all allocators as static coextensions.
17549 (Analyze_Assignment): Exempt assignments involving a dispatching call
17550 to a function with a controlling access result from the check requiring
17551 the target to be class-wide.
17552
175532007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17554 Ed Schonberg <schonberg@adacore.com>
17555 Robert Dewar <dewar@adacore.com>
17556 Javier Miranda <miranda@adacore.com>
17557
17558 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
17559 chain of coextensions when an allocator serves as the root of such a
17560 chain.
17561 (Propagate_Coextensions): Remove the test for the root being an
17562 allocator.
17563 (Resolve_Allocator): Add condition to ensure that all future decoration
17564 occurs on an allocator node. Add processing and cleanup for static
17565 coextensions.
17566 (Valid_Conversion): If the operand type is the limited view of a
17567 class-wide type, use the non-limited view is available to determine
17568 legality of operation.
17569 (Ambiguous_Character): move to spec, for use elsewhere.
17570 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
17571 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
17572 character literals.
17573 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
17574 Do_Division_Check flag explicitly.
17575 (Resolve_Actuals): If the actual is of a synchronized type, and the
17576 formal is of the corresponding record type, this is a call to a
17577 primitive operation of the type, that is declared outside of the type;
17578 the actual must be unchecked-converted to the type of the actual
17579 (Resolve_Call): Kill all current values for any subprogram call if
17580 flag Suppress_Value_Tracking_On_Call is set.
17581 (Resolve_Type_Conversion): Generate error message the the operand
17582 or target of interface conversions come from a limited view.
17583 (Check_Infinite_Recursion): Ignore generated calls
17584 (Check_Allocator_Discrim_Accessibility): New procedure for checking
17585 that an expression that constrains an access discriminant in an
17586 allocator does not denote an object with a deeper level than the
17587 allocator's access type.
17588 (Resolve_Allocator): In the case of an allocator initialized by an
17589 aggregate of a discriminated type, check that associations for any
17590 access discriminants satisfy accessibility requirements by calling
17591 Check_Allocator_Discrim_Accessibility.
17592 (Resolve_Equality_Op): Handle comparisons of anonymous access to
17593 subprogram types in the same fashion as other anonymous access types.
17594 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
17595 message that is not a continuation message.
17596 (Resolve_Type_Conversion): Add missing support for conversion to
17597 interface type.
17598 (Resolve_Actuals): Introduce a transient scope around the call if an
17599 actual is a call to a function returning a limited type, because the
17600 resulting value must be finalized after the call.
17601 (Resolve_Actuals): If the call was given in prefix notations, check
17602 whether an implicit 'Access reference or implicit dereference must be
17603 added to make the actual conform to the controlling formal.
17604
176052007-06-06 Robert Dewar <dewar@adacore.com>
17606 Javier Miranda <miranda@adacore.com>
17607
17608 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
17609 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
17610 overriding of an inherited private subprogram now there is no need to
17611 inherit its dispatching slot and reduce the size of the dispatch table.
17612 Set_All_DT_Position now ensures that the same slot is now assigned to
17613 both entities. This is required to statically build the dispatch table.
17614 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
17615 of calling Set_All_DT_Position to re-evaluate the position of the
17616 entries in the dispatch table. Such reevaluation is not desired if
17617 the tagged type is already frozen.
17618
176192007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17620 Gary Dismukes <dismukes@adacore.com>
17621 Robert Dewar <dewar@adacore.com>
17622 Javier Miranda <miranda@adacore.com>
17623
17624 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
17625 reference acts as an lvalue when the attribute name modifies the prefix
17626 (Is_Coextension_Root): New routine.
17627 (Mark_Static_Coextensions): New routine.
17628 (Type_Access_Level): Revise code for checking the level of the
17629 anonymous access type of a return object.
17630 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
17631 (Matches_Prefixed_View_Profile): Remove the no longer necessary
17632 retrieval of the corresponding controlling record type.
17633 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
17634 concurrent types declared within a generic as well as class wide types.
17635 Emit a mode incompatibility error whenever a protected entry or routine
17636 override an interface routine whose first parameter is not of mode
17637 "out", "in out" or access to variable.
17638 (Overrides_Synchronized_Primitive): Rename to
17639 Find_Overridden_Synchronized_Primitive.
17640 (Collect_Interface_Components): New subprogram that collects all the
17641 components of a tagged record containing tags of secondary dispatch
17642 tables.
17643 (Add_Global_Declaration): New procedure
17644 (Abstract_Interface_List): Handle properly the case of a subtype of a
17645 private extension.
17646 (Type_Access_Level): In the case of a type whose parent scope is a
17647 return statement, call Type_Access_Level recursively on the enclosing
17648 function's result type to determine the level of the return object's
17649 type.
17650 (Build_Elaboration_Entity): Build name of elaboration entity from the
17651 scope chain of the entity, rather than the unit name of the file name.
17652 (Check_Nested_Access): New procedure.
17653 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17654 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17655 (Get_Renamed_Entity): Utility routine for performing common operation
17656 of chasing the Renamed_Entity field of an entity.
17657
176582007-06-06 Robert Dewar <dewar@adacore.com>
17659
17660 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
17661 elaboration model
17662 (Check_A_Call): Add check for entry call which was causing blowup
17663
176642007-06-06 Olivier Hainque <hainque@adacore.com>
17665
17666 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
17667 special code on ia64-vms to handle major incompatibilities between the
17668 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
17669 this routine with a very different set of arguments and expectations on
17670 the return value.
17671
176722007-06-06 Thomas Quinot <quinot@adacore.com>
17673
17674 * socket.c (__gnat_close_signalling_fd): New function.
17675 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
17676 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
17677 New supporting functions for task safe Netdb operations.
17678
176792007-06-06 Thomas Quinot <quinot@adacore.com>
17680 Olivier Hainque <hainque@adacore.com>
17681
17682 * a-except-2005.ads, a-except-2005.adb
17683 (Raise_From_Controlled_Operation): New procedure in
17684 (private part of) Ada.Exceptions (standard runtime version). Used to
17685 provide informational exception message when Program_Error is raised as
17686 a result of an Adjust or Finalize operation propagating an exception.
17687 (Rmsg_28): Fix description for E.4(18) check.
17688 (Raise_Current_Excep): Call Debug_Raise_Exception just before
17689 propagation starts, to let debuggers know about the event in a reliable
17690 fashion.
17691 Take the address of E and dereference to make sure it is homed on stack
17692 and prevent the stores from being deleted, necessary for proper
17693 debugger behavior on "break exception" hits.
17694 (Local_Raise): Moved to System.Exceptions
17695
17696 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
17697 exception message from the current occurrence and raise Program_Error
17698 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
17699
177002007-06-06 Jose Ruiz <ruiz@adacore.com>
17701 Arnaud Charlet <charlet@adacore.com>
17702
17703 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
17704 lock, if needed.
17705
17706 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
17707 priority associated to a lock.
17708
17709 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
17710 assertion to take into account case of no abort restriction.
17711 (Initialize_Protection_Entries): Add initialization for the field
17712 New_Ceiling associated to the protected object.
17713 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
17714 needed.
17715
17716 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17717 since this function needs to be set consistently with Update_Exception.
17718
17719 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
17720 since this function needs to be set consistently with Update_Exception.
17721
17722 * s-taskin.ads: Update comments on
17723 Interrupt_Server_Blocked_On_Event_Flag.
17724 (Unbind_Handler): Fix handling of server_task wakeup
17725 (Server_Task): Set self's state so that Unbind_Handler can take
17726 appropriate actions.
17727 (Common_ATCB): Now use a constant from System.Parameters to determine
17728 the max size of the Task_Image field.
17729
17730 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
17731 Initialize_Analyzer function.
17732 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
17733 take into account case of no abort restriction.
17734 ([Vulnerable_]Complete_Master): Modify assertion.
17735
17736 * s-tataat.adb (Finalize): Use the nestable versions of
17737 Defer/Undefer_Abort.
17738
17739 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
17740
17741 * s-tpobop.ads: Update comments.
17742
17743 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
17744 of locking the object manually, to avoid inconsistencies between
17745 Lock/Unlock_Entry assertions.
17746
17747 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
17748 terminating
17749 application and System.Parameters.No_Abort is True.
17750 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
17751 (Unbind_Handler): Fix handling of server_task wakeup
17752 (Server_Task): Set self's state so that Unbind_Handler can take
17753 appropriate actions.
17754
177552007-06-06 Thomas Quinot <quinot@adacore.com>
17756
17757 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
17758 declarations instead of an explicit null body, for conciseness.
17759
177602007-06-06 Robert Dewar <dewar@adacore.com>
17761
17762 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
17763 illegal aggregate and the type is still Any_Composite.
17764 (Subtypes_Statically_Match): Fix problem of empty discriminant list
17765
177662007-06-06 Ed Schonberg <schonberg@adacore.com>
17767
17768 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
17769 to prevent subsequent expansion.
17770
177712007-06-06 Robert Dewar <dewar@adacore.com>
17772
17773 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
17774
177752007-06-06 Ed Schonberg <schonberg@adacore.com>
17776 Robert Dewar <dewar@adacore.com>
17777
17778 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
17779 exceptions.
17780 (Write_Itype): Handle case of string literal subtype, which
17781 comes up in this context.
17782 (Update_Itype): when debugging expanded code, update sloc of itypes
17783 associated with defining_identifiers and ranges, for gdb use.
17784 (Sprint_Node_Actual): Add static keyword to object or exception
17785 declaration output if Is_Statically_Allocated is True.
17786 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
17787 or task body, so that the tree carries the proper Sloc information for
17788 debugging use.
17789 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
17790
177912007-06-06 Arnaud Charlet <charlet@adacore.com>
17792
17793 * s-secsta.adb (Chunk): Ensure this object has a static size known at
17794 compile time, to avoid dynamic memory allocation
17795 (Elaboration code): Only use dynamic memory allocation when needed.
17796
177972007-06-06 Quentin Ochem <ochem@adacore.com>
17798
17799 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
17800 "Overflow_Guard".
17801 (Stack_Analyzer): Added field "Overflow_Guard"
17802 (Task_Result): Added field "Overflow_Guard".
17803 (Index_Str): New constant.
17804 (Task_Name_Str): New constant.
17805 (Actual_Size_Str): New constant.
17806 (Pattern_Array_Element_Size): New constant.
17807 (Get_Usage_Range): New subprogram.
17808 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
17809 Now align the output.
17810 Added comments.
17811 (Initialize): Added value for Overflow_Guard.
17812 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
17813 Update the value of the overflow guard according to the actual
17814 beginning of the pattern array.
17815 (Initialize_Analyzer): Added parameter Overflow_Guard.
17816 Take this parameter into accound when computing the max size.
17817 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
17818 (Report_Result): Removed extra useless procedure.
17819 Updated call to Output_Result.
17820 Moved full computation of the Task_Result here.
17821
178222007-06-06 Thomas Quinot <quinot@adacore.com>
17823
17824 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
17825 Thread_Blocking_IO, always True by default, set False on a per-runtime
17826 basis.
17827 Add Windows-specific constants
17828 Add new constant Need_Netdb_Buffer.
17829 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17830 not, whether to use getXXXbyYYY_r.
17831
17832 * gsocket.h: Add new constant Need_Netdb_Buffer.
17833 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
17834 not, whether to use getXXXbyYYY_r.
17835
178362007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17837
17838 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
17839 than their first call.
17840 Add type Dummy_Communication_Block used in the generation of the pre-
17841 defined dispatching primitive _disp_asynchronous_select.
17842 (Storage_Element): Put Pragma Universal_Aliasing on it.
17843
178442007-06-06 Vincent Celier <celier@adacore.com>
17845
17846 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
17847 function.
17848
17849 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
17850 letter if it is not followed by a '/' or a '\'.
17851 (Windows): New Boolean function
17852
17853 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
17854 Ada 2005.
17855 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
17856 drive letter.
17857 (Containing_Directory): Raise Use_Error when the directory is a root
17858 directory.
17859 (Extension): When returning the result, use a conversion to Result_Type,
17860 not a qualification.
17861
178622007-06-06 Robert Dewar <dewar@adacore.com>
17863
17864 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
17865 (Set_Style_Check_Options): Recognize new -gnatyg style switch
17866
17867 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
17868 Warn_On_Non_Local_Exception to False, to turn off warnings for
17869 No_Exception_Propagation in ZFP runtime.
17870 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
17871 back-ends.
17872 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
17873
178742007-06-06 Vincent Celier <celier@adacore.com>
17875
17876 * switch-b.adb (Scan_Binder_Switches): Add processing for new
17877 switches -R and -Z
17878
17879 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
17880 (Scan_Make_Switches): Recognize new switch -aP
17881
178822007-06-06 Matthew Gingell <gingell@adacore.com>
17883 Jose Ruiz <ruiz@adacore.com>
17884
17885 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
17886 VxWorks task descriptor in the Ada run time, call a C subprogram
17887 (__gnat_get_stack_info) that extracts the required information.
17888
17889 * sysdep.c: Back out temporary lynxos workaround.
17890 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
17891 time the stack information associated to the currently executing task.
17892 Only VxWorks systems require this function.
17893
178942007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17895
17896 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
17897 add the stack bias if the offset is computed from a frame address.
17898 (__gnat_backtrace): Adjust for above change.
17899
179002007-06-06 Thomas Quinot <quinot@adacore.com>
17901
17902 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
17903 PE_Non_Transportable_Actual.
17904 (By_Descriptor_Last): New constant.
17905 (By_Copy_Return): Likewise.
17906
179072007-06-06 Vincent Celier <celier@adacore.com>
17908
17909 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
17910 is.
17911
17912 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
17913 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
17914 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
17915 Add missing comment for /OPTIMIZE=SPACE
17916 Add entry for OPTIMIZE=SPACE
17917 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
17918 Add documentation for new qualifiers corresponding to -gnatw.c/.C
17919
179202007-06-06 Vincent Celier <celier@adacore.com>
17921 Robert Dewar <dewar@adacore.com>
17922
17923 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
17924 -gnatw.C)
17925
17926 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
17927 Document gnatbind switch -a
17928 (case Constructions): Document that variables declarations are allowed
17929 for previously declared variables.
17930 Fix external lib project example
17931 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
17932 Indicate that "#if not X or Y then" is not allowed in input files to
17933 gnatprep.
17934 Document gnatw.x and gnatw.X warning flags
17935 Mention -Winline switch to activate warnings when back-end inlining is
17936 ineffective.
17937 Add gnatcheck rule descriptions
17938 Describe how to use the GNAT driver to call a tool on a closure.
17939 Describe how to run project-wide checks or metrics.
17940 Document gnatbind's -R option
17941 Updated to account for Ada 2005 support
17942
17943 * gnat_rm.texi (Case Construction): Allow variable declarations for
17944 previously declared variables.
17945 (Representation Clauses and Pragmas): Lift restriction on alignment
17946 clauses for record types.
17947 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
17948 Document No_Exception_Propagation restriction
17949 Document No_Body pragma
17950 Updated to account for Ada 2005 support; corrected some typos
17951 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
17952
17953 * gnat-style.texi: Make it clear that we never use mode IN for
17954 procedures or functions
17955
17956 * ug_words: Add entries for -gnatw.x and -gnatw.X
17957 Add entries for -gnatw.c/.C
17958
179592007-06-06 Pascal Obry <obry@adacore.com>
17960 Vincent Celier <celier@adacore.com>
17961
17962 * makegpr.adb (Add_Archive_Path): Use untouched object and library
17963 dirs and library name.
17964 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
17965 comments.
17966 (Build_Library): Idem.
17967 (Compile_Individual_Sources): Idem.
17968 (Compile_Link_With_Gnatmake): Idem.
17969 (Compile_Sources): Idem.
17970 (Get_Imported_Directories): Idem.
17971 (Link_Executables): Idem. Same change for the executable dir.
17972 (Check_Compilation_Needed): C_Source_Path new variable containing
17973 the canonical form of Source_Path to check against the source names
17974 in the dependency file.
17975 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
17976 verbose mode, display the name of the object directory we're changing
17977 to.
17978 (Saved_Switches): New name of table X_Switches
17979 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
17980 (Usage): New line for switch -aP
17981 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
17982 testing if a directory should be added to the search path.
17983
179842007-06-06 Javier Miranda <miranda@adacore.com>
17985
9e81dbc7 17986 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
ec11296f
AC
17987 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
17988 declaration after freezing point of all its associated tagged types;
17989 otherwise such types are frozen too early.
17990
179912007-06-06 Robert Dewar <dewar@adacore.com>
17992
17993 * a-reatim.adb: Documentation addition
17994
17995 * g-cgideb.adb: Minor code reorganization
17996
17997 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
17998 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
17999 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
18000
18001 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
18002 function. Change name New_Scope to Push_Scope
18003 (Get_Debug_Flag_K): Remove unused obsolete function.
18004
18005 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
18006 Push_Scope.
18007
18008 * makeusg.adb: Update Copyright notice
18009 Add line for switch -aP
18010
18011 * makeusg.adb: Fix wording of some usage messages
18012
18013 * s-assert.adb (Raise_Assert_Failure): Add call to
18014 Debug_Raise_Assert_Failure.
18015
18016 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
18017 (2, Standard'Alignment) for compatibility with AAMP (where alignment
18018 is restricted to 1).
18019
18020 * s-wchjis.adb: Remove use of System.Pure_Exceptions
18021
18022 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
18023 node location to No_Location when we're not debugging the expanded
18024 code.
18025
dbc30a96
AO
180262007-05-22 Alexandre Oliva <aoliva@redhat.com>
18027
18028 * misc.c (enumerate_modes): Consider log2_b to always be one.
18029
719bb4e3 180302007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
ca5ba2a3
RAE
18031
18032 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
18033
d7598e11
PO
180342007-05-02 Pascal Obry <obry@adacore.com>
18035
18036 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
18037 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
18038 encoding support of Stream_IO.
18039 (Write_Unit): Idem.
18040
18041 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
18042 filename and corresponding encoding to match the OS requirement.
18043 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
18044 routine will fail on specific devices like CON: AUX: ...
18045
18046 PR ada/29856: Add missing braces
18047
1be52f61
AP
180482007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
18049
18050 PR ada/31660
18051 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
18052
395a40e0
JH
180532007-04-21 Jan Hubicka <jh@suse.cz>
18054
18055 * misc.c (gnat_expand_body): Don't call target for destructors,
18056 avoid redundant check on syntax errors.
18057
3d95caa4
AP
180582007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18059
18060 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
18061 instead of checking GIMPLE_STMT_P in chain_next.
18062
ea30850a
AK
180632007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
18064
18065 PR ada/31576
18066 * system-linux-alpha.ads: Disable constant condition warning for the
18067 Default_Bit_Order variable.
18068 * system-linux-s390.ads: Likewise.
18069 * system-linux-s390x.ads: Likewise.
18070 * system-linux-sparc.ads: Likewise.
18071
4b437c6b
AC
180722007-04-06 Javier Miranda <miranda@adacore.com>
18073 Matt Heaney <heaney@adacore.com>
18074 Robert Dewar <dewar@adacore.com>
18075
18076 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
18077 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
18078 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
18079 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18080 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
18081 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
18082 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
18083 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
18084 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
18085 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
18086 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
18087 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
18088 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
18089 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
18090 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
18091 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
18092 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
18093 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
18094 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
18095 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
18096 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
18097 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
18098 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
18099 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
18100 s-taprop-tru64.adb, s-taprop-irix.adb,
18101 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
18102 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
18103 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
9e81dbc7
AS
18104 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
18105 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
18106 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
18107 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
18108 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
18109 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
18110 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
18111 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
18112 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
18113 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
18114 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
18115 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
18116 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
18117 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4b437c6b 18118 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
9e81dbc7 18119 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4b437c6b
AC
18120 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
18121 access types.
18122 Update documentation.
18123 Minor rewording.
18124
181252007-04-06 Robert Dewar <dewar@adacore.com>
18126
18127 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
18128 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
18129 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
18130 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18131 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
18132 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
18133 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
18134 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
18135 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
9e81dbc7 18136 system-hpux-ia64.ads, targparm.adb,
4b437c6b
AC
18137 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
18138
18139 * system.ads: Move Functions_Return_By_DSP to obsolete section,
18140 kept for bootstrap purposes only.
18141
181422007-04-06 Arnaud Charlet <charlet@adacore.com>
18143
18144 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
18145 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
18146 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
18147 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
18148
181492007-04-06 Robert Dewar <dewar@adacore.com>
18150
18151 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
18152 (Local_Raise): New dummy procedure called when a raise is converted
18153 to a local goto. Used for debugger to detect that the exception
18154 is raised.
18155
18156 * debug.adb: Document new d.g flag (expand local raise statements to
18157 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
18158
18159 * exp_sel.adb: Use Make_Implicit_Exception_Handler
18160
18161 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
18162 suppress warnings for unused handlers.
18163 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
18164 warnings for raise statements not handled locally.
18165 (Get_RT_Exception_Entity): New function
18166 (Get_Local_Call_Entity): New function
18167 (Find_Local_Handler): New function
18168 (Warn_If_No_Propagation): New procedure
18169 (Expand_At_End_Handler): Call Make_Implicit_Handler
18170 (Expand_Exception_Handlers): Major additions to deal with local handlers
18171 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
18172 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
18173 for local raise
18174
18175 * exp_ch11.ads (Get_RT_Exception_Entity): New function
18176 (Get_Local_Call_Entity): New function
18177
18178 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
18179 of restrictions that the binder will never suggest adding.
18180
18181 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
18182 to No_Elist.
18183
18184 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
18185 be with'ed in the presence of pragma Restriction
18186 (No_Exception_Propagation).
18187
18188 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
18189
18190 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
18191 parameter, then the handler is not a suitable target for a local raise,
18192 and this is a violation of restriction No_Exception_Propagation.
18193 (Analyze_Handled_Statements): Analyze choice parameters in exception
18194 handlers before analyzing statement sequence (needed for proper
18195 detection of local raise statements).
18196 (Analyze_Raise_Statement): Reraise statement is a violation of the
18197 No_Exception_Propagation restriction.
18198
18199 * s-rident.ads: Add new restriction No_Exception_Propagation
18200
18201 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
18202 function, like Make_Exception_Handler but sets Local_Raise_Statements
18203 to No_List.
18204 (Add_Unique_Serial_Number): Deal with case where this is called during
18205 processing of configuration pragmas.
18206
182072007-04-06 Thomas Quinot <quinot@adacore.com>
18208 Pat Rogers <rogers@adacore.com>
18209 Pascal Obry <obry@adacore.com>
18210
18211 * g-stsifd-sockets.adb: New file.
18212
18213 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
18214 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
18215 g-socthi-vms.adb: Move signalling
18216 fd management to a nested package, so that they can conveniently be
18217 moved to a subunit that is shared across Windows, VMS, and VxWorks
18218 (Ada implementation) or completed with imported bodies from socket.c
18219 (UNIX case).
18220 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
18221 subprograms.
18222 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
18223 the signalling file descriptor.
18224 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
18225 signalling file descriptor.
18226 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
18227 instead of creating a pair of sockets for signalling here.
18228
18229 * g-socthi.adb: Ditto.
18230 Set the runtime process to ignore SIGPIPEs on platforms that support
18231 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18232
18233 * g-socthi-mingw.adb: Ditto.
18234 (WS_Version): Use Windows 2.2.
18235 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18236
18237 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
18238 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18239
18240 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
18241 added GNAT byte swapping facility
18242 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
18243
18244 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
18245
18246 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
18247 New subprograms.
18248 (__gnat_create_signalling_fds): New subprogram.
18249 Set the runtime process to ignore SIGPIPEs on platforms that support
18250 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18251
182522007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
18253 Vincent Celier <celier@adacore.com>
18254
18255 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
18256 New version of Ada.Calendar which supports the new upper bound of Ada
18257 time (2399-12-31 86_399.999999999).
18258 The following modifications have been made to the package:
18259 - New representation of time as count of nanoseconds since the start of
18260 Ada time (1901-1-1 0.0).
18261 - Target independent Split and Time_Of routines which service both
18262 Ada 95 and Ada 2005 code.
18263 - Target independent interface to the Ada 2005 children of Calendar.
18264 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
18265 - Handling of non-leap centenial years.
18266 - Updated clock function.
18267 - Updated arithmetic and comparison operators.
18268
18269 * a-caldel.adb (To_Duration): Add call to target independent routine in
18270 Ada.Calendar to handle the conversion of time to duration.
18271
18272 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
18273 (UTC Offset).
18274 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
18275 set off to 0.
18276 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
18277 targets do not have a natural time zone, GMT is used as a default.
18278 (__gnat_get_task_options): New.
18279
18280 * a-direct.adb (Modification_Time): Add with and use clauses for
18281 Ada.Calendar and Ada.
18282 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
18283 since it is no longer needed.
18284 (Duration_To_Time): Removed.
18285 (OS_Time_To_Long_Integer): Removed.
18286 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
18287 Formatting Time_Of routines which automatically handle time zones,
18288 buffer periods and leap seconds.
18289
18290 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
18291 target independent routines in Ada.Calendar.
18292
9e81dbc7 18293 * a-calfor.ads, a-calfor.adb:
4b437c6b
AC
18294 Code cleanup and addition of validity checks in various routines.
18295 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
18296 Ada.Calendar.
18297
18298 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
18299 independent routine in Ada.Calendar.
18300
183012007-04-06 Olivier Hainque <hainque@adacore.com>
18302
9e81dbc7 18303 * adaint.c:
4b437c6b
AC
18304 (convert_addresses): Adjust prototype and dummy definition to expect an
18305 extra file_name argument.
18306
18307 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
18308 filling the now expected file_name argument with the appropriate
18309 argv[0] expansion.
18310 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
18311 (tracebk): Array of void * instead of char *, corresponding to what
18312 convert_addresses expects.
18313 (exename): New static global, to hold the executable file name to be
18314 used in all convert_addresses invocations.
18315 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
18316 change.
18317 (__gnat_gmem_a2l_initialize): Resolve exename.
18318 (__gnat_convert_addresses): Use exename as the convert_addresses
18319 file_name argument.
18320
18321 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
18322 "convert_addresses", now expecting a filename argument. Import the
18323 necessary entities to compute the filename to use and pass it to
18324 convert_addresses.
18325
183262007-04-06 Matt Gingell <gingell@adacore.com>
18327
18328 * system-aix.ads: Back out previous change.
18329 (Functions_Return_By_DSP): Removed
18330
183312007-04-06 Pascal Obry <obry@adacore.com>
18332
18333 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
18334 or the monotonic used by Ada.Real_Time) to compute the sleep duration
18335 on Windows.
18336
183372007-04-06 Jose Ruiz <ruiz@adacore.com>
18338
18339 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
18340 function. Its value changes in different VxWorks versions, and it is
18341 now handled by the function __gnat_get_task_options.
18342
18343 * s-taprop-vxworks.adb (Create_Task): Call the function
18344 __gnat_get_task_options to get the required options for creating a task.
18345
183462007-04-06 Pascal Obry <obry@adacore.com>
18347 Thomas Quinot <quinot@adacore.com>
18348
18349 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
18350 dealing with filename.
18351 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
18352 filename from a standard string to a wide-string depending on the
18353 encoding value.
18354 (__gnat_freopen): Idem.
18355 (__gnat_current_time): New function (wrapper for time(3) standard C
18356 function).
18357
18358 * g-os_lib.ads (Current_Time): New function. Returns the current
18359 system time as an OS_Time value.
18360
18361 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
18362 (Monotonic_Clock): Same.
18363
183642007-04-06 Quentin Ochem <ochem@adacore.com>
18365
18366 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
18367 not on a natural.
18368 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
18369
183702007-04-06 Jose Ruiz <ruiz@adacore.com>
18371
18372 * a-retide.adb: Add elaboration code to ensure that the tasking run
18373 time is initialized when using delay operations even when no task is
18374 created.
18375
183762007-04-06 Javier Miranda <miranda@adacore.com>
18377
18378 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
18379 component Num_Prim_Ops.
18380 (Set_Num_Prim_Ops): Removed.
18381 Remove all the assertions because all the routines of this
18382 package are inline always.
18383 (Get_Offset_Index): Add support to primary dispatch tables.
18384 Move the documentation about the dispatch table to a-tags.ads
18385 (Set_External_Tag): Removed
18386 (Inherit_TSD): Removed.
18387 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
18388 moved to a-tags.ads
18389 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
18390 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
18391 of the TSD field "Table" because this field has been renamed to
18392 "Ifaces_Table".
18393 (Inherit_CPP_DT): Removed.
18394 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
18395 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
18396 declarations have been moved to a-tags.ads
18397 (Check_Size): Removed.
18398 (Expanded_Name): Updated to get access to the new field of TSD
18399 containing the address of the expanded name.
18400 (Get_Access_Level/Set_Access_Level): Removed.
18401 (Get_Predefined_Prim_Op_Address): Removed.
18402 (Set_Predefined_Prim_Op_Address): Removed.
18403 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
18404 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
18405 (Set_Expanded_Name): Removed.
18406 (Inherit_DT): Removed.
18407 (Inherit_CPP_DT): Removed.
18408 (Set_RC_Offset): Removed.
18409 (Set_TSD): Removed.
18410 (Base_Address): New function that displaces "this" to point to the base
18411 of the object (that is, to point to the primary tag of the object).
18412
184132007-04-06 Ed Schonberg <schonberg@adacore.com>
18414 Javier Miranda <miranda@adacore.com>
18415
18416 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
18417 anonymous access component, do not create a master_id if type already
18418 has one, as may happen if the type is a subcomponent of a packed array
18419 type.
18420 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
18421 Initialize_Tag): Remove code associated with the old CPP pragmas.
18422 CPP_Virtual and CPP_Vtable are no longer supported.
18423 (Build_Offset_To_Top_Internal): Add support for concurrent record types
18424 (Build_Offset_To_Top_Functions): Add support for concurrent record types
18425 (Freeze_Record_Type): Remove call to
18426 Init_Predefined_Interface_Primitives.
18427 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
18428 code required to initialize the tags of the secondary dispatch tables.
18429 This leaves the algoritm more clear.
18430 (Init_Secondary_Tags): Add support for concurrent record types
18431 (Make_Predefined_Primitive_Specs): Code cleanup.
18432 (Predefined_Primitive_Bodies): Code cleanup.
18433 (Build_Master_Renaming): New local subprogram.
18434 (Expand_N_Full_Type_Declaration): Build the master_id associated with
18435 anonymous access to task type components.
18436 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
18437 subtype indication are resolved during analysis, and must not be done
18438 here.
18439 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
18440
184412007-04-06 Geert Bosch <bosch@adacore.com>
18442 Ed Schonberg <schonberg@adacore.com>
18443 Javier Miranda <miranda@adacore.com>
18444 Bob Duff <duff@adacore.com>
18445
18446 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
18447 for conversion of a Float_Type'Truncation to integer.
18448
18449 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
18450 check if a node is an attribute that can be handled directly by the
18451 back end.
18452 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
18453 attributes that can be handled directly by the back end.
18454 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
18455 use new predicate Is_Access_Protected_Subprogram_Type.
18456 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
18457 and Unchecked_Union if it is generated as part of the default Output
18458 procedure for a type with default discriminants.
18459 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
18460 if we are compiling under restriction No_Dispatching_Calls.
18461 (Constrained): Use Underlying_Type, in case the type is private without
18462 discriminants, but the full type has discriminants.
18463 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
18464 call to Build_Get_Access_Level.
18465 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
18466 interface objects requires a call to the run-time subprogram that
18467 returns the base address of the object.
18468 (Valid_Conversion): Improve error message on illegal attempt to store
18469 an anonymous access to subprogram value into a record component.
18470
18471 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
18472 null".
18473 (Simplify_Type_Conversion): New procedure that performs simplification
18474 of Int_Type (Float_Type'Truncation (X)).
18475 (Resolve_Type_Conversion): Call above procedure after resolving operand
18476 and before performing checks. This replaces the existing ineffective
18477 code in Exp_Ch4.
18478 (Set_String_Literal_Subtype): When creating the internal static lower
18479 bound subtype for a string literal, use a newly created copy of the
18480 subtree representing the lower bound.
18481 (Resolve_Call): Exclude build-in-place function calls from transient
18482 scope treatment. Update comments to describe this exception.
18483 (Resolve_Equality_Op): In case of dispatching call check violation of
18484 restriction No_Dispatching_Calls.
18485 (Resolve_Call): If the call returns an array, the context imposes the
18486 component type of the array, and the function has one non-defaulted
18487 parameter, rewrite the call as the indexing of a call with a single
18488 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
18489 in prefix form.
18490 (Resolve_Actuals): If an actual is an allocator for an access parameter,
18491 the master of the created object is the innermost enclosing statement.
18492 (Remove_Conversions): For a binary operator, check if type of second
18493 formal is numeric, to check if an abstract interpretation is present
18494 in the case of exponentiation as well.
18495
184962007-04-06 Ed Schonberg <schonberg@adacore.com>
18497 Bob Duff <duff@adacore.com>
18498
18499 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
18500 copying a parameter list in a call, set properly the First_Named_Formal
18501 and Next_Named_Formal fields in the new list and in the enclosing call.
18502 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
18503 names, to ease typing in the debugger. Improve comments.
18504 (Watch_Node): New variable, intended to be set in the debugger.
18505 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
18506 called when the watched node is created.
18507 (New_Node_Debugging_Output): Combined version of local procedures
18508 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
18509 with a parameter so that conditional breakpoints like "if Node = 12345"
18510 work.
18511 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
18512 Add Elist1 function
18513
185142007-04-06 Thomas Quinot <quinot@adacore.com>
18515 Ed Schonberg <schonberg@adacore.com>
18516 Gary Dismukes <dismukes@adacore.com>
18517
18518 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
18519 required for a conversion between two access-to-unconstrained-array
18520 types.
18521 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
18522 to discriminant constraints on discriminant objects. This rule must
18523 apply as well to discriminants of protected types in private components.
18524 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
18525 object of a null-excluding access type then don't require the
18526 the object declaration to have an expression and don't emit a
18527 run-time check.
18528
185292007-04-06 Arnaud Charlet <charlet@adacore.com>
9e94c78f 18530 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
18531
18532 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
18533 and made constant.
18534
18535 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
18536 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
18537 carry any.
18538
18539 * fe.h (Compiler_Abort): Add third parameter.
18540
18541 * misc.c (internal_error_function): Build third argument from current
18542 input location and pass it to Compiler_Abort.
18543
185442007-04-06 Gary Dismukes <dismukes@adacore.com>
18545
18546 * cstand.adb (Create_Standard): When the target's storage unit size is
18547 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
18548 Standard_String.
18549
185502007-04-06 Nicolas Roche <roche@adacore.com>
18551
18552 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
18553 absolute path can have the following form: device:/a/b. In this case
18554 '/' should be inserted between the path and the filename.
18555
185562007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 18557 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
18558
18559 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
18560 VAR_DECL to a CONST_DECL we make for a public constant when we know the
18561 corresponding definition has created the so made visible variable.
18562 Handle anonymous access to protected subprogram.
18563 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
18564 object with an address clause volatile. Re-enable original fix.
18565 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
18566 too.
18567 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
18568 associated with either the Equivalent or Root type, instead of the
18569 naked type node.
18570 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
18571 subtree for every field of a global record type.
18572 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
18573 discriminants, invoke again variable_size on its newly computed sizes.
18574
185752007-04-06 Robert Dewar <dewar@adacore.com>
18576 Thomas Quinot <quinot@adacore.com>
18577 Ed Schonberg <schonberg@adacore.com>
18578 Bob Duff <duff@adacore.com>
18579
18580 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
18581 (Next_Component_Or_Discriminant): New function and procedure
18582 (First_Index, First_Literal, Master_Id,
18583 Set_First_Index, Set_First_Literal, Set_Master_Id):
18584 Add missing Ekind assertions.
18585 (Is_Access_Protected_Subprogram_Type): New predicate.
18586 (Has_RACW): New entity flag, set on package entities to indicate that
18587 the package contains the declaration of a remote accecss-to-classwide
18588 type.
18589 (E_Return_Statement): This node type has the Finalization_Chain_Entity
18590 attribute, in case the result type has controlled parts.
18591 (Requires_Overriding): Add this new flag, because "requires
18592 overriding" is subtly different from "is abstract" (see AI-228).
18593 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
18594 Is_Abstract_Type. Make sure these are called only when appropriate.
18595 (Has_Pragma_Unreferenced_Objects): New flag
18596
18597 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
18598 class-wide, the tag of the right-hand side must be an exact match, not
18599 an ancestor of that of the object on left-hand side.
18600 (Move_Activation_Chain): New procedure to create the call to
18601 System.Tasking.Stages.Move_Activation_Chain.
18602 (Expand_N_Extended_Return_Statement): Generate code to call
18603 System.Finalization_Implementation.Move_Final_List at the end of a
18604 return statement if the function's result type has controlled parts.
18605 Move asserts to Build_In_Place_Formal.
18606 (Move_Final_List): New function to create the call statement.
18607 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
18608 tagged type, replace generation of call to the run-time subprogram
18609 CW_Membership by call to Build_CW_Membership.
18610 (Expand_N_Return_Statement): Replace generation of call to the run-time
18611 subprogram Get_Access_Level by call to Build_Get_Access_Level.
18612 (Expand_N_Simple_Function_Return): Replace generation of call to the
18613 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18614
18615 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
18616 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
18617 access to protected operations.
18618 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
18619 master and chain actual parameters to a build-in-place function call
18620 involving tasks.
18621 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
18622 statement.
18623 (Make_Build_In_Place_Call_In_Allocator,
18624 Make_Build_In_Place_Call_In_Anonymous_Context,
18625 Make_Build_In_Place_Call_In_Assignment,
18626 Make_Build_In_Place_Call_In_Object_Declaration): Call
18627 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
18628 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
18629 stubbed procedure with a null body, replace the call with a null
18630 statement without using the full inlining machinery, for efficiency
18631 and to avoid invalid values in source file table entries.
18632
18633 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
18634 renamings of calls to build-in-place functions.
18635
18636 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
18637 provides the functionality of RTE_Available to record components.
18638 (RTU_Entity): The function Entity has been renamed to RTU_Entity
18639 to avoid undesired overloading.
18640 (Entity): New subprogram that returns the entity for the referened
18641 unit. If this unit has not been loaded, it returns Empty.
18642 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
18643 Remove no longer used entities.
18644 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
18645 (RE_Type_Specific_Data): New entity.
18646 (RE_Move_Any_Value): New entity.
18647 (RE_TA_A, RE_Get_Any_Type): New entities.
18648 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
18649 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
18650 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
18651 (Entity): New subprogram that returns the entity for the referened
18652 unit. If this unit has not been loaded, it returns Empty.
18653 (RTE): Addition of a new formal that extends the search to the scopes
18654 of the record types found in the chain of the package.
18655
18656 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
18657 "abstract subprograms must be visible" message, whether or not the type
18658 is an interface; that is, remove the special case for interface types.
18659 (Analyze_Function_Return): Remove error message "return of task objects
18660 is not yet implemented" because this is now implemented.
18661 (Create_Extra_Formals): Add the extra master and activation chain
18662 formals in case the result type has tasks.
18663 Remove error message "return of limited controlled objects is not yet
18664 implemented".
18665 (Create_Extra_Formals): Add the extra caller's finalization list formal
18666 in case the result type has controlled parts.
18667 (Process_Formals): In case of access formal types there is no need
18668 to continue with the analysis of the formals if we already notified
18669 errors.
18670 (Check_Overriding_Indicator): Add code to check overriding of predefined
18671 operators.
18672 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
18673 flags for formals that do not require them,.
18674 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
18675 hidden entity is use visible or directly visible.
18676 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
18677 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
18678 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
18679 New_Overloaded_Entity): Split Is_Abstract flag into
18680 Is_Abstract_Subprogram and Is_Abstract_Type.
18681
18682 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
18683 a return statement's finalization list to the caller's list, used for
18684 build-in-place functions with result type with controlled parts.
18685 Remove no longer used entities.
18686
18687 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
18688 longer needed, because the full type is now limited, and therefore a
18689 pass-by-reference type.
18690 (Foreign_Task_Level): New constant.
18691
18692 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
18693 move tasks from the activation chain belonging to a return statement to
18694 the one passed in by the caller, and update the master to the one
18695 passed in by the caller.
18696 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
18697 of unactivated tasks, so we don't kill the ones that are being returned
18698 by a build-in-place function.
18699 (Create_Task): Ignore AI-280 for foreign threads.
18700
187012007-04-06 Ed Schonberg <schonberg@adacore.com>
18702 Robert Dewar <dewar@adacore.com>
18703 Bob Duff <duff@adacore.com>
18704 Gary Dismukes <dismukes@adacore.com>
18705
18706 * errout.adb (Unwind_Internal_Type): Use predicate
18707 Is_Access__Protected_Subprogram_Type.
18708
18709 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
18710 (Freeze_Entity, packed array case): Do not override explicitly set
18711 alignment and size clauses.
18712 (Freeze_Entity): An entity declared in an outer scope can be frozen if
18713 the enclosing subprogram is a child unit body that acts as a spec.
18714 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
18715 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
18716 Remove all code for DSP option
18717
18718 * layout.adb (Layout_Record_Type): Use First/
18719 Next_Component_Or_Discriminant
18720 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
18721 to handle properly the anonymous access case.
18722
18723 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
18724 for all access attributes, because overload resolution should work the
18725 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
18726 causes the error message for the ambiguous "X'Access = Y'Access" and
18727 "X'Unrestricted_Access = Y'Access" and so forth to match.
18728 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
18729 now that anonymous access to protected operations have their own kind.
18730 (Resolve_Attribute): In case of dispatching call check the violation of
18731 restriction No_Dispatching_Calls.
18732 (Check_Array_Type): Check new -gnatyA array index style option
18733
18734 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
18735 attempt to derive from a synchronized tagged type.
18736 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
18737 type, inherit the class-wide type already created, because it may
18738 already have been used in a self-referential anonymous access component.
18739 (Mentions_T): Recognize self-referential anonymous access components
18740 that use (a subtype of) the class-wide type of the enclosing type.
18741 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
18742 Derived_Type for Prev formal on call to
18743 Check_Anonymous_Access_Components rather than Empty.
18744 (Make_Incomplete_Type_Declaration): Add test for case where the type has
18745 a record extension in deciding whether to create a class-wide type,
18746 rather than just checking Tagged_Present.
18747 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
18748 to stand-alone object declarations as well as component declarations.
18749 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
18750 prevent accidental overwriting when enclosing package appears in
18751 a limited_with_clause.
18752 (Array_Type_Declaration): If the component type is an anonymous access,
18753 the associated_node for the itype is the type declaration itself.
18754 (Add_Interface_Tag_Components): Modified to support concurrent
18755 types with abstract interfaces.
18756 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
18757 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
18758 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
18759 to complete the decoration of synchronized interface types. Add also
18760 a call to Check_Abstract_Interfaces to verify the ARM rules.
18761 (Derive_Interface_Subprograms): Modified to support concurrent types
18762 with abstract interfaces.
18763 (Analyze_Subtype_Indication): Resolve the range with the given subtype
18764 mark, rather than delaying the full resolution depending on context.
18765 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
18766 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
18767 Array_Type_Declaration,Build_Derived_Record_Type,
18768 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
18769 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
18770 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
18771 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18772 called only when appropriate.
18773 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
18774 to private type.
18775 (Analyze_Subtype_Declaration): For an access subtype declaration, create
18776 an itype reference for the anonymous designated subtype, to prevent
18777 scope anonmalies in gigi.
18778 (Build_Itype_Reference): New utility, to simplify construction of such
18779 references.
18780
187812007-04-06 Vincent Celier <celier@adacore.com>
18782
18783 * errutil.adb (Initialize): Initialize warnings table, if all warnings
18784 are suppressed, supply an initial dummy entry covering all possible
18785 source locations.
18786
18787 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
18788 and start with only one, such as "-RTS=none".
18789 (Collect_Arguments): Do not check for sources outside of projects.
18790 Do not collect arguments if project is externally built.
18791 (Compile_Sources): Do nothing, not even check if the source is up to
18792 date, if its project is externally built.
18793 (Compile): When compiling a predefined source, add -gnatpg
18794 as the second switch, after -c.
18795 (Compile_Sources): Allow compilation of Annex J renames without -a
18796 (Is_In_Object_Directory): Check if the ALI file is in the object
18797 even if there is no project extension.
18798 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
18799 gnatbind if the ALI file effectively exists.
18800 (Initialize): Add the directory where gnatmake is invoked in front of
18801 the path if it is invoked from a bin directory, even without directory
18802 information, so that the correct GNAT tools will be used when spawned
18803 without directory information.
18804
18805 * makeusg.adb: Change switch -S to -eS
18806 Add lines for new switches -we, -wn and -ws
18807 Add line for new switch -p
18808
18809 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
18810 Treat_As_Error and there are warnings.
18811
18812 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
18813 -gnatww Change gnatmake switch -S to -eS
18814 (Scan_Make_Switches): Code reorganisation. Process separately multi
18815 character switches and single character switches.
18816 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
18817 False when switch is not recognized by gnatmake.
18818 (Scan_Make_Switches): Set Setup_Projects True when -p or
18819 --create-missing-dirs is specified.
18820
18821 * fname.adb (Is_Predefined_File_Name): Return True for annex J
18822 renamings Calendar, Machine_Code, Unchecked_Conversion and
18823 Unchecked_Deallocation only when Renamings_Included is True.
18824
18825 * par.adb: Allow library units Calendar, Machine_Code,
18826 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
18827 when -gnatg is not specified.
18828 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18829 there is no need to generate always a record_definition_node in case
18830 of synchronized interface types.
18831 (SIS_Entry_Active): Initialize global variable to False
18832 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
18833 indicate cases where AI-447 says "not null" is legal.
18834
18835 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
18836
18837 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
18838 files with with several lines starting with the object fileb name.
18839 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
18840 is specified.
18841 (Initialize): Add the directory where gprmake is invoked in front of the
18842 path, if it is invoked from a bin directory or with directory
18843 information, so that the correct GNAT tools will be used when invoked
18844 directly.
18845 (Check_Compilation_Needed): Process correctly backslashes on Windows.
18846
18847 * vms_data.ads: Update switches/qualifiers
18848
188492007-04-06 Ed Schonberg <schonberg@adacore.com>
18850 Thomas Quinot <quinot@adacore.com>
18851
18852 * exp_aggr.adb:
18853 If the array component is a discriminated record, the array aggregate
18854 is non-static even if the component is given by an aggregate with
18855 static components.
18856 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
18857 (Convert_Aggr_In_Allocator): If the allocator is for an access
18858 discriminant and the type is controlled. do not place on a finalization
18859 list at this point. The proper list will be determined from the
18860 enclosing object.
18861 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
18862 initialize record controller if needed, before the components, to ensure
18863 that they are properly finalized.
18864 (Build_Record_Aggr_Code): For the case of an array component that has a
18865 corresponding array aggregate in the record aggregate, perform sliding
18866 if required.
18867
188682007-04-06 Javier Miranda <miranda@adacore.com>
18869 Gary Dismukes <dismukes@adacore.com>
18870 Ed Schonberg <schonberg@adacore.com>
18871
18872 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
18873 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
18874
18875 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
18876 accessibility on class-wide allocators if the allocator occurs at the
18877 same scope level as the allocator's type. The check is guaranteed to
18878 succeed in that case, even when the expression originates from a
18879 parameter of the containing subprogram.
18880 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
18881 under No_Dispatching_Calls restriction. During the semantic analysis
18882 we already notified such violation.
18883 (Tagged_Membership): Constant folding. There is no need to check
18884 the tag at run-time if the type of the right operand is non
18885 class-wide abstract.
18886 Replace call to Is_Ancestor by call to Is_Parent
18887 to support concurrent types with interface types.
18888 (Expand_N_Allocator): Add an assertion associated with the generation
18889 of the master_id.
18890 (Expand_N_Slice): Do not enable range check to nodes associated
18891 with the frontend expansion of the dispatch table.
18892 (Is_Local_Access_Discriminant): Subsidiary function to
18893 Expand_N_Allocator.
18894 (Tagged_Membership): Replace generation of call to the run-time
18895 subprogram CW_Membership by call to Build_CW_Membership.
18896 (Expand_Allocator_Expression): Replace generation of call to the
18897 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
18898
18899 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
18900 initialize most the TSD components by means of an aggregate.
18901 Modify the declaration of the object containing the TSD
18902 because we now expand code that has a higher level of abstraction.
18903 The TSD has a discriminant containing the Inheritance Depth Level,
18904 value that is used in the membership test but also to fix the size
18905 of the table of ancestors.
18906 (Expand_Interface_Conversion): Insert function body at the closest place
18907 to the conversion expression, to prevent access-before-elaboration
18908 errors in the backend.
18909 Code improved to reduce the size of the dispatch table if
18910 compiling under restriction No_Dispatching_Calls plus code cleanup.
18911 Code reorganization plus removal of calls to Set_Num_Prim_Ops
18912 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
18913 (Expand_Dispatching_Call): Minor code reorganization plus addition of
18914 code to return immediately if compiling under No_Dispatching_Calls
18915 restriction.
18916 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
18917 CPP_Virtual and CPP_Vtable are no longer supported.
18918 (Expand_Interface_Conversion): Add missing support for interface type
18919 derivations.
18920 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
18921 Is_Parent to support concurrent types with interfaces.
18922 (Init_Predefined_Interface_Primitives): Removed.
18923 (Make_Secondary_DT): Modified to support concurrent record types.
18924 (Set_All_DT_Position): Modified to support concurrent record types.
18925 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18926 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
18927 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
18928 with CW_Membership.
18929 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
18930 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
18931 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
18932 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
18933 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
18934 (Expand_Dispatching_Call): Replace generation of call to the run-time
18935 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
18936 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
18937 Address.
18938 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
18939 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
18940 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
18941 Build_Set_Prim_Op_Address.
18942 (Get_Remotely_Callable): Subprogram removed.
18943 (Init_Predefined_Interface_Primitives): Replace generation of call to
18944 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
18945 Prims.
18946
18947 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
18948 First (Parameter_Associations ()) with the call to First_Actual that
18949 returns an actual parameter expression for both named and positional
18950 associations.
18951
18952 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
18953 check violation of restriction No_Dispatching_Calls.
18954 (Check_Controlling_Type): A formal of a tagged incomplete type is a
18955 controlling argument.
18956
18957 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
18958 First/Next_Component_Or_Discriminant
18959 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
18960 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18961 specify Any_Limited_Interface, and this functionality is already
18962 provided by the function Has_Abstract_Interfaces.
18963 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
18964 support concurrent types implementing interfaces.
18965 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18966 specify kind Any_Limited_Interface, and this functionality is already
18967 provided by the function Has_Abstract_Interfaces.
18968 (Remove_Side_Effects): replace Controlled_Type by
18969 CW_Or_Controlled_Type whenever the issue is related to
18970 using or not the secondary stack.
18971
18972 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
18973 P_Interface_Type_Definition to fulfill the new interface (the formal
18974 Is_Synchronized is no longer required).
18975
18976 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
18977 Update dependencies.
18978
18979 * exp_atag.ads, exp_atag.adb: New file
18980
189812007-04-06 Ed Schonberg <schonberg@adacore.com>
18982 Bob Duff <duff@adacore.com>
18983 Cyrille Comar <comar@adacore.com>
18984
18985 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
18986 anonymous, use finalization list of enclosing dynamic scope.
18987 (Expand_N_Package_Declaration): For a library package declaration
18988 without a corresponding body, generate RACW subprogram bodies in the
18989 spec (just as we do for the task activation call).
18990 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
18991 Is_Abstract_Type. Make sure these are called only when appropriate.
18992 Remove all code for DSP option
18993 (CW_Or_Controlled_Type): new subprogram.
18994
9e94c78f 189952007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
18996 Ed Schonberg <schonberg@adacore.com>
18997 Gary Dismukes <dismukes@adacore.com>
18998
18999 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
19000 parameter. If it is set to true, return a result capped according to
19001 the global upper bound for the index of an entry family.
19002 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
19003 (Build_Find_Body_Index): Adjust for above change.
19004 (Entry_Index_Expression): Likewise.
19005 (Is_Potentially_Large_Family): New function extracted from...
19006 (Collect_Entry_Families): ...here. Call it to detect whether the family
19007 is potentially large.
19008 (Build_Entry_Count_Expression): If the family is potentially large, call
19009 Family_Size with 'Cap' set to true.
19010 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
19011 a protected version of an operation declared in the private part of
19012 a protected object, because they may be invoked through a callback.
19013 (Set_Privals): If the type of a private component is an anonymous access
19014 type, do not create a new itype for each protected body.
19015 If the body of a protected operation creates
19016 controlled types (including allocators for class-widetypes), the
19017 body of the corresponding protected subprogram must include a
19018 finalization list.
19019 (Build_Activation_Chain_Entity): Build the chain entity for extended
19020 return statements.
19021 (Type_Conformant_Parameters): Use common predicate Conforming_Types
19022 to determine whether operation overrides an inherited primitive.
19023 (Build_Wrapper_Spec): Add code to examine the parents while looking
19024 for a possible overriding candidate.
19025 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
19026 hold an actual parameter value since its initialization is separated
19027 from the the declaration. Prevents errors on null-excluding access
19028 formals.
19029
190302007-04-06 Thomas Quinot <quinot@adacore.com>
8a57e48f 19031 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
19032
19033 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
19034 Do an Unchecked_Conversion to handle the passage from the Underlying
19035 Type to the Base Type when calling Build_To_Any_Call and
19036 Build_From_Any_Call.
19037 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
19038 E_Constant, depending upon Variable formal.
19039 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
19040 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
19041 parameter that requires an extra constrained parameter, declare
19042 temporary for actual as a variable, not a constant.
19043 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
19044 the unit being compiled is the one that contains the stub type.
19045 Change primitive operation name for the RACW associated with a RAS
19046 from Call to _Call so it cannot clash with any legal identifier.
19047 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
19048 Is_RAS.
19049 (Append_RACW_Bodies): New subprogram.
19050 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
19051 Add_Receiving_Stubs_To_Declarations functions.
19052 When expanding a package body, this list correspond to the
19053 statements in the HSS at the end of the pacakge.
19054 When expanding a package spec, this list correspond to the
19055 spec declarations.
19056 (Add_Receiving_Stubs_To_Declarations): Append the function
19057 registering the receiving stubs at the end of the 'Stmts' list.
19058 (RCI_Package_Locator): Pass the new Version generic formal when
19059 instantiating a RCI_Locator package.
19060 (Build_From_Any_Function): To compute the High bound for an
19061 unconstrained array actual, we add the Low bound with the length.
19062 Thus we must convert the low bound and the length to an appropriate
19063 type before doing the sum.
19064 (Build_Subprogram_Receiving_Stubs, PolyORB):
19065 * Retrieve the extra formals parameters at the
19066 end of the parameter stream.
19067 * Use Move_Any_Value to write back out parameters
19068 after executing the request as it is more efficient
19069 than Copy_Any_Value.
19070 * Build the any containing Extra Formals with the
19071 appropriate typecode.
19072 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
19073 empty Component_List.
19074 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
19075 the tree the declaration for an object that serves as actual parameter
19076 in server-side stubs.
19077 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
19078 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
19079 Use Build_Actual_Object_Declaration to prepare the actuals.
19080 (Add_Parameter_To_NVList): Set the parameter mode to In for
19081 Extra Constrained Parameters.
19082 (Build_General_Calling_Stubs): Set the parameter type to boolean for
19083 Extra Constrained parameters.
19084 (Build_To_Any_Function, Build_From_Any_Function,
19085 Built_TypeCode_Function): When Typ is implicit, call the correct
19086 function with the first not implicit parent type.
19087 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
19088 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
19089 typecode from the Etype. Therefore we retrieve the correct typecode
19090 with a call to Get_Any_Type.
19091 (Copy_Specification): Do controlling formal type substitution based on
19092 Is_Controlling_Formal flag, instead of caller-provided object type.
19093 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
19094 a RACW primitive operation, we might get a subprogram declaration for an
19095 ancestor of the RACW designated type (not for the designated type
19096 itself), in the case where this operation is inherited. In this case we
19097 have no easy means of determining the original tagged type for which
19098 the primitive was declared, so instead we now rely on
19099 Copy_Specification to use the Is_Controlling_Formal flag to determine
19100 which formals require type substitution.
19101
191022007-04-06 Robert Dewar <dewar@adacore.com>
19103 Ed Schonberg <schonberg@adacore.com>
19104
19105 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
19106 GNAT.Current_Exception are not allowed if pragma Restrictions
19107 (No_Exception_Propagation) is set and in any case make the associated
19108 handler unsuitable as a target for a local raise statement.
19109 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
19110 run-time subprogram CW_Membership by call to Build_CW_Membership.
19111 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
19112 by a function call, a temporary must be created before expanding the
19113 Constructor_Call itself, to prevent out-of-order elaboration in the
19114 back-end when stack checking is enabled..
19115
191162007-04-06 Ed Schonberg <schonberg@adacore.com>
19117
19118 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
19119 result are the bounds of the left operand, not the right.
19120
191212007-04-06 Ed Schonberg <schonberg@adacore.com>
19122
19123 * exp_strm.adb
19124 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
19125 discriminant defaults.
19126 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
19127 (Make_Component_List_Attributes): Ditto.
19128
191292007-04-06 Ed Schonberg <schonberg@adacore.com>
19130 Bob Duff <duff@adacore.com>
19131
19132 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
19133 an association with a box as providing a value even though the
19134 initialization procedure for the type is not available.
19135 (Resolve_Record_Aggregate): Check that a choice of an association with a
19136 box corresponds to a component of the type.
19137 (Resolve_Record_Aggregate): Split Is_Abstract flag into
19138 Is_Abstract_Subprogram and Is_Abstract_Type.
19139
19140 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
19141 assert.
19142
19143 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
19144 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19145 called only when appropriate.
19146
191472007-04-06 Olivier Hainque <hainque@adacore.com>
19148
19149 * g-alleve.ads (Low Level Vector type definitions): Map each to the
19150 associated vector view instead of all to the unsigned char view.
19151
19152 * g-altcon.adb (Generic_Conversions): New internal generic package,
19153 offering facilities for all the Vector/View conversion routines
19154 implemented by this unit.
19155 (To_View/To_Vector - all versions): Reimplemented in a systematic
19156 manner, using the internal Generic_Conversions facilities.
19157
191582007-04-06 Pascal Obry <obry@adacore.com>
19159
19160 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
19161 string.
19162 (Create): Free the source string before storing the new one.
19163
191642007-04-06 Vincent Celier <celier@adacore.com>
19165
19166 * g-debpoo.adb (Validity): New package with a complete new
19167 implementation of subprograms Is_Valid and Set_Valid.
19168 (Is_Valid): Move to local package Validity
19169 (Set_Valid): Move to local package Validity
19170
191712007-04-06 Arnaud Charlet <charlet@adacore.com>
8a57e48f 19172 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
19173
19174 * g-expect.adb (Get_Command_Output): When expanding the output buffer
19175 we must ensure that there is enough place for the new data we are going
19176 to copy in.
19177
191782007-04-06 Thomas Quinot <quinot@adacore.com>
19179
19180 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
19181 computation.
19182
191832007-04-06 Jose Ruiz <ruiz@adacore.com>
19184 Vincent Celier <celier@adacore.com>
19185
19186 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
19187 (Stack_String): Add this String that contains the name of the Stack
19188 package in the project file.
19189 (Packages_To_Check_By_Stack): Add this list that contains the packages
19190 to be checked by gnatstack, which are the naming and the stack packages.
19191 (Check_Files): If no .ci files were specified for gnatstack we add all
19192 the .ci files belonging to the projects, including binder generated
19193 files.
19194 (Non_VMS_Usage): Document that gnatstack accept project file switches.
19195 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
19196 Add gnatstack to the list of commands that use project file related
19197 switches, and get the single attribute Switches from the stack package
19198 in a project file when calling gnatstack. Parse the -U flag for
19199 processing files belonging to all projects in the project tree.
19200 Remove all processing for command Setup
19201
19202 * prj-attr.adb: Add new package Stack with single attribute Switches
19203
19204 * vms_conv.ads (Command_Type): Add command Stack.
19205 Move to body declarations that are only used in the body: types Item_Id,
19206 Translation_Type, Item_Ptr, Item and its subtypes.
19207
19208 * vms_conv.adb: (Initialize): Add data for new command Stack.
19209 Add declarations moved from the spec: types Item_Id, Translation_Type,
19210 Item_Ptr, Item and its subtypes.
19211 (Cargs_Buffer): New table
19212 (Cargs): New Boolean global variable
19213 (Process_Buffer): New procedure to create arguments
19214 (Place): Put character in table Buffer or Cargs_Buffer depending on the
19215 value of Cargs.
19216 (Process_Argument): Set Cargs when processing qualifiers for GNAT
19217 COMPILE
19218 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
19219 empty, for table Cargs_Buffer.
19220 (Initialize): Remove component Setup in Command_List
19221
192222007-04-06 Vincent Celier <celier@adacore.com>
19223
19224 * gprep.adb (Process_Files.Process_One_File): Use full file name when
19225 issuing pragma Source_Reference.
19226
192272007-04-06 Emmanuel Briot <briot@adacore.com>
19228
19229 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
19230 [[:xdigit:]] character class.
19231 Also raise an exception when an invalid character class is used.
19232
192332007-04-06 Pascal Obry <obry@adacore.com>
19234
19235 * i-cstrea.ads: (fopen): Add encoding parameter.
19236 (freopen): Idem.
19237 Change reference from a-sysdep.c to sysdep.c in comment.
19238 Update copyright notice.
19239 This set of patch add support for the encoding form parameter.
19240
19241 * mingw32.h (S2WSU): New macro to convert from a string to a
19242 wide-string using the UTF-8 encoding. The S2WS macro supports now only
19243 standard 8bits encoding.
19244 (WS2SU): As above but converting from wide-sring to string.
19245 This is needed as it is necessary to have access to both versions in the
19246 runtime for the form parameter encoding support.
19247 This set of patch add support for the encoding form parameter.
19248 (S2WS): Improve implementation to handle cases where the filename is not
19249 UTF-8 encoded. In this case we default to using the current code page
19250 for the conversion.
19251
19252 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
19253 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
19254 the constants defined in adaint.h.
19255 (fopen): Add encoding parameter.
19256 (freopen): Idem.
19257
19258 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
19259 encoding. This is needed for the Reset routine (freopen low level-call).
19260
19261 * s-fileio.adb (Open): Decode encoding form parameter and set the
19262 corresponding encoding value into AFCB structure.
19263 (Reset): Pass the encoding value to freopen.
19264 (Close): Move the call to Lock_Task to the beginning of the procedure.
19265
192662007-04-06 Geert Bosch <bosch@adacore.com>
19267 Robert Dewar <dewar@adacore.com>
19268
19269 * i-fortra.ads: Add Double_Complex type.
19270
19271 * impunit.adb: (Is_Known_Unit): New function
19272 Add Gnat.Byte_Swapping
19273 Add GNAT.SHA1
19274 Add new Ada 2005 units
19275 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
19276 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
19277 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
19278 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
19279
19280 * impunit.ads (Is_Known_Unit): New function
19281
19282 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
19283 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
19284 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
19285 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
19286 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
19287 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
19288 New files.
19289
19290 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
19291
19292 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
19293
9e94c78f 192942007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
19295 Arnaud Charlet <charlet@adacore.com>
19296
19297 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
19298 __gnat_adjust_context_for_raise.
19299 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
19300 implementation of floating point operations as native x86 targets.
19301 So the FPU should be initialized in the same way using finit. Fix
19302 floating point operations accuracy issues.
19303 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
19304 member in struct sigaction, so as to avoid warning for incompatible
19305 pointer types.
19306
9e94c78f 193072007-04-06 Serguei Rybin <rybin@adacore.com>
4b437c6b
AC
19308
19309 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
19310 switches from previously loaded tree
19311
193122007-04-06 Thomas Quinot <quinot@adacore.com>
19313
19314 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
19315 cases where a given dependency has a body or not.
19316 (Write_With_File_Names): New subprogram, common code for the two cases
19317 above.
19318
193192007-04-06 Ed Schonberg <schonberg@adacore.com>
19320 Javier Miranda <miranda@adacore.com>
19321
9e81dbc7 19322 * lib-xref.ads, lib-xref.adb:
4b437c6b
AC
19323 Modify the loop that collects type references, to include interface
19324 types that the type implements. List each of these interfaces when
19325 building the entry for the type.
19326 (Generate_Definition): Initialize component Def and Typ of new entry
19327 in table Xrefs, to avoid to have these components unitialized.
19328 (Output_References): Split Is_Abstract flag into
19329 Is_Abstract_Subprogram and Is_Abstract_Type.
19330 (Generate_Reference): Add barrier to do not generate the warning
19331 associated with Ada 2005 entities with entities generated by the
19332 expander.
19333
193342007-04-06 Robert Dewar <dewar@adacore.com>
19335 Arnaud Charlet <charlet@adacore.com>
19336 Vincent Celier <celier@adacore.com>
19337
19338 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
19339 Update 'Exception Handling Control' chapter which was outdated.
19340 Minor fix to documentation of -gnatwq
19341 Remove section "Adapting the Run Time to a New C++ Compiler" because
19342 it is now obsolete.
19343 Add passage on need of -nostart-files in some non-ada-main cases.
19344 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
19345 Update documentation about Interfacing with C++
19346 Add documentation for new gnatmake switch -p
19347 Add missing protocol part in URLs.
19348 Document -gnatyA
19349 Document pragma Compile_Time_Error
19350 Add documentation for Object_Size indicating that stand alone
19351 objects can have a larger size in some cases.
19352 Add node for GNAT.Byte_Swapping, GNAT.SHA1
19353 Update reference to the Ravenscar profile.
19354 Document pragma Unreferenced_Objects
19355
19356 * gnat-style.texi: Fix typo
19357
193582007-04-06 Vincent Celier <celier@adacore.com>
19359
19360 * mlib.adb (Building_Library): Only output "building a library..." in
19361 verbose mode
19362
19363 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
19364 files in verbose mode.
19365
19366 * mlib-utl.adb (Ar): Only output the first object files when not in
19367 verbose mode.
19368 (Gcc): Do not display all the object files if not in verbose mode, only
19369 the first one.
19370
193712007-04-06 Robert Dewar <dewar@adacore.com>
19372
19373 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
19374 it no longer destroys the contents of Name_Buffer or Name_Len and
19375 non-standard and invalid names are handled better.
19376 (Get_Decoded_Name_String): Improve performance by using
19377 Name_Has_No_Encodings flag in the name table.
19378 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
19379 Used for debugging printouts.
19380
193812007-04-06 Robert Dewar <dewar@adacore.com>
19382 Javier Miranda <miranda@adacore.com>
19383 Bob Duff <duff@adacore.com>
19384
19385 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
19386 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
19387 there is no need to generate always a record_definition_node in case
19388 of synchronized interface types.
19389 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
19390 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
19391 illegal in Ada 95, in cases where it is legal. Change the warnings to
19392 errors in other cases. Don't give the error unless the "not null"
19393 parses properly. Correct the source position at which the error occurs.
19394 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
19395 P_Null_Exclusion, to suppress "not null" warnings.
19396 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
19397 associated goto statements.
19398
19399 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
19400 of END RECORD
19401
19402 * scans.ads (Type_Token_Location): New flag
19403
19404 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
19405 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
19406 P_Null_Exclusion, to suppress "not null" warnings.
19407
194082007-04-06 Robert Dewar <dewar@adacore.com>
19409 Javier Miranda <miranda@adacore.com>
19410 Bob Duff <duff@adacore.com>
19411 Vincent Celier <celier@adacore.com>
19412
19413 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
19414 (Extensions_Allowed): No longer sets Ada_Version
19415 Entry for pragma Unreferenced_Objects
19416
19417 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
19418 system.tasking if pragma priority used in a procedure
19419 (Analyze_Pragma, case Warning): Handle dot warning switches
19420 (Process_Compile_Time_Warning_Or_Error): New procedure
19421 (Analyze_Pragma): Add processing for Compile_Time_Error
19422 Add support for extra arguments External_Name and Link_Name.
19423 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
19424 (Process_Import_Or_Interface): Add support for the use of pragma Import
19425 with tagged types.
19426 (Extensions_Allowed): No longer affects Ada_Version
19427 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
19428 Is_Abstract_Type. Make sure these are called only when appropriate.
19429 Add processing for pragma Unreferenced_Objects
19430
19431 * snames.h, snames.ads, snames.adb: Add entry for pragma
19432 Compile_Time_Error
19433 Add new standard name Minimum_Binder_Options for new gprmake
19434 Add new standard names for gprmake: Archive_Suffix,
19435 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
19436 Library_Support, Library_Version_Options,
19437 Shared_Library_Minimum_Options,
19438 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
19439 Change Name_Call to Name_uCall so that it cannot clash with a legal
19440 subprogram name.
19441 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
19442 Append C_Plus_Plus to convention identifiers as synonym for CPP
19443 Add new standard names Stack and Builder_Switches
19444 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
19445 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
19446 Run_Path_Option, Toolchain_Version.
19447 Entry for pragma Unreferenced_Objects
19448
19449 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
19450 switches, without repetition of "eD". Make sure that last character of
19451 -gnatep= switch is not taken as -gnat switch character.
19452 Complete rewrite of circuit for handling saving compilation options
19453 Occasioned by need to support dot switchs for -gnatw, but cleans up
19454 things in general.
19455 -gnatX does not affect Ada_Version
19456 Include -gnatyA in -gnatg style switches
19457
19458 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
19459 warnings on return objects.
19460 (Warn_On_Useless_Assignment): Exclude warnings on return objects
19461 (Set_Dot_Warning_Switch): New procedure
19462 (Check_References): Add missing case of test for
19463 Has_Pragma_Unreferenced_Objects
19464 (Output_Unreferenced_Messages): Implement effect of new pragma
19465 Unreferenced_Objects, remove special casing of limited controlled
19466 variables.
19467
194682007-04-06 Vincent Celier <celier@adacore.com>
19469
19470 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
19471 the default project path, initially done during elaboration of the
19472 package.
19473 If the prefix returned by Sdefault is null, get the prefix from a call
19474 to Executable_Prefix_Path.
19475 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
19476 null.
19477
19478 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
19479 canonical directory name to open the directory from which files are
19480 retrieved.
19481 (Record_Other_Sources): Idem.
19482 (Locate_Directory): Add the possibility to create automatically missing
19483 directories when Setup_Projects is True.
19484 Call Locate_Directory so that the directory will be created when
19485 Setup_Projects is True, for object dir, library dir, library ALI dir,
19486 library source copy dir and exec dir.
19487
19488 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
19489 versions of GNAT.
19490
194912007-04-06 Robert Dewar <dewar@adacore.com>
19492
19493 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
19494 Use First/Next_Component_Or_Discriminant
19495 (Analyze_Record_Representation_Clause):
19496 Use First/Next_Component_Or_Discriminant
19497 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
19498 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
19499 definition if type is unconstrained.
19500 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19501 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
19502 Is_Abstract_Subprogram and Is_Abstract_Type.
19503 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19504
19505 * repinfo.adb (List_Record_Info): Use First/
19506 Next_Component_Or_Discriminant.
19507
19508 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
19509 New procedure.
19510
19511 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
19512 Include -gnatyA in default switches
19513
19514 * opt.ads: (Warn_On_Non_Local_Exception): New flag
19515 (Warn_On_Reverse_Bit_Order): New flag
19516 (Extensions_Allowed): Update the documentation.
19517 (Warn_On_Questionable_Missing_Parens): Now on by default
19518
19519 * usage.adb: Add documentation of -gnatw.x/X switches
19520 Document new -gnatyA style switch
19521 -gnatq warnings are on by default
19522
195232007-04-06 Ed Falis <falis@adacore.com>
19524
19525 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
19526 full word is no longer compared twice.
19527
195282007-04-06 Ed Schonberg <schonberg@adacore.com>
19529
19530 * sem_ch10.adb (Install_Limited_Context_Clauses.
19531 Expand_Limited_With_Clause): Use a new copy of selector name in the
19532 call to Make_With_Clause. This fixes the tree structure for ASIS
19533 purposes. Nothing is changed in the compiler behaviour.
19534 (Process_Body_Clauses): Handle properly use clauses whose prefix is
19535 a package renaming.
19536 (Install_Limited_With_Clauses): Do not install non-limited view when it
19537 is still incomplete.
19538
195392007-04-06 Ed Schonberg <schonberg@adacore.com>
19540 Gary Dismukes <dismukes@adacore.com>
19541
19542 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
19543 when capturing size information, instead of base type, which for a
19544 formal array type will be the unconstrained type.
19545 (Analyze_Formal_Object_Declaration): Add check for illegal default
19546 expressions for a formal in object of a limited type.
19547 (Instantiate_Object): Ditto.
19548 (Check_Formal_Package_Instance): Skip entities that are formal objects,
19549 because they were defaulted in the formal package and no check applies
19550 to them.
19551 (Check_Formal_Package_Instance): Extend conformance check to other
19552 discrete types beyond Integer.
19553 (Process_Default): Copy directly the unmatched formal. A generic copy
19554 has already been performed in Analyze_Formal_Package.
19555 (Analyze_Associations): If a formal subprogram has no match, check for
19556 partial parametrization before looking for a default, to prevent
19557 spurious errors.
19558 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
19559 not set the instantiation environment before analyzing the actuals.
19560 Fixes regression on 8515-003 with implementation of AI-133.
19561 Set_Instance_Env checks whether the generic unit is a predefined
19562 unit, in which case the instance must be analyzed with the latest Ada
19563 mode. This setting must take place after analysis of the actuals,
19564 because the actuals must be analyzed and frozen in the Ada mode extant
19565 outside of the current instantiation.
19566 (Save_Env, Restore_Env): Preserve and restore the configuration
19567 parameters so that predefined units can be compiled in the proper Ada
19568 mode.
19569 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
19570 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
19571 and Is_Abstract_Type.
19572 (Analyze_Formal_Package): For better error recovery, Add exception
19573 handler to catch Instantion_Error, which can be raised in
19574 Analyze_Associations
19575
195762007-04-06 Ed Schonberg <schonberg@adacore.com>
19577 Bob Duff <duff@adacore.com>
19578 Gary Dismukes <dismukes@adacore.com>
19579
19580 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
19581 prefix type is a discriminated subtype of the type of the formal.
19582 (Analyze_Allocator): Collect all coextensions regardless of the context.
19583 Whether they can be allocated statically is determined in exp_ch4.
19584 (Analyze_Selected_Component): If the prefix is a limited view and the
19585 non-limited view is available, use the non-limited one.
19586 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
19587 therefore illegal), suggest a qualified expression rather than a type
19588 conversion, because a type conversion would be illegal in this context.
19589 (Anayze_Allocator): Trace recursively all nested allocators so that all
19590 coextensions are on the corresponding list for the root. Do no mark
19591 coextensions if the root allocator is within a declaration for a stack-
19592 allocated object, because the access discriminants will be allocated on
19593 the stack as well.
19594 (Analyze_Call): Remove restriction on calls to limited functions for the
19595 cases of generic actuals for formal objects, defaults for formal objects
19596 and defaults for record components.
19597 (Analyze_Allocator): Before analysis, chain coextensions on the proper
19598 element list. Their expansion is delayed until the enclosing allocator
19599 is processed and its finalization list constructed.
19600 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
19601 for an operation with the given name among the primitive operations of
19602 the corresponding record type.
19603 (Analyze_Selected_Component): If the prefix is a task type that
19604 implements an interface, and there is no entry with the given name,
19605 check whether there is another primitive operation (e.g. a function)
19606 with that name.
19607 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
19608 properly the indexing of a function call written in prefix form, where
19609 the function returns an array type, and all parameters of the function
19610 except the first have defaults.
19611 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
19612 the original operands, rather than relocating them, for efficiency and
19613 to work properly when an operand is overloaded.
19614 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
19615 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
19616 (Analyze_Selected_Component): If the prefix is a private extension, only
19617 scan the visible components, not those of the full view.
19618 (Try_Primitive_Operation): If the operation is a procedure, collect all
19619 possible interpretations, as for a function, because in the presence of
19620 classwide parameters several primitive operations of the type can match
19621 the given arguments.
19622
196232007-04-06 Ed Schonberg <schonberg@adacore.com>
19624 Robert Dewar <dewar@adacore.com>
19625
19626 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
19627 tag-indeterminate call to an abstract function, when the left-hand side
19628 is not classwide.
19629 (Analyze_Loop_Statement): Improve detection of infinite loops
19630
196312007-04-06 Ed Schonberg <schonberg@adacore.com>
19632 Thomas Quinot <quinot@adacore.com>
19633
19634 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
19635 out of Analyze_Package_Declaration, because processing must be applied
19636 to package bodies as well, for deferred constants completed by pragmas.
19637 (Analyze_Package_Declaration): When the package declaration being
19638 analyzed does not require an explicit body, call Check_Completion.
19639 (May_Need_Implicit_Body): An implicit body is required when a package
19640 spec contains the declaration of a remote access-to-classwide type.
19641 (Analyze_Package_Body): If the package contains RACWs, append the
19642 pending subprogram bodies generated by exp_dist at the end of the body.
19643 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
19644 Is_Abstract_Subprogram and Is_Abstract_Type.
19645 (Preserve_Full_Attributes): The full entity list is not an attribute
19646 that must be preserved from full to partial view.
19647
9e81dbc7
AS
19648 * sem_dist.adb (Add_RAS_Dereference_TSS):
19649 Change primitive name to _Call so it cannot clash with any legal
19650 identifier, and be special-cased in Check_Completion.
19651 Mark the full view of the designated type for the RACW associated with
19652 a RAS as Comes_From_Source to get proper view switching when installing
19653 private declarations.
19654 Provite a placeholder nested package body along with the nested spec
19655 to have a place for Append_RACW_Bodies to generate the calling stubs
19656 and stream attributes.
4b437c6b
AC
19657
196582007-04-06 Ed Schonberg <schonberg@adacore.com>
19659 Robert Dewar <dewar@adacore.com>
19660
19661 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
19662 that is a limited view, check the non-limited view if available.
19663 (Undefined): Refine error message for missing with of Text_IO
19664 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
19665 to distinguish real missing with cases.
19666 Fix format of all missing with messages
19667 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
19668 renaming as body when renamed entity is abstract.
19669
196702007-04-06 Ed Schonberg <schonberg@adacore.com>
19671 Javier Miranda <miranda@adacore.com>
19672
19673 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
19674 predicate recursive, to handle complex expressions on literals whose
19675 spurious ambiguity comes from the abstract interpretation of some
19676 subexpression.
19677 (Interface_Present_In_Ancestor): Add support to concurrent record
19678 types.
19679 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
19680 Is_Abstract_Subprogram and Is_Abstract_Type.
19681
196822007-04-06 Ed Schonberg <schonberg@adacore.com>
19683 Javier Miranda <miranda@adacore.com>
19684
19685 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
19686 dereference of a local object R created as a reference to another
19687 object O, use the access level of O.
19688 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
19689 rather than local Same_Formal_Type, to check whether protected operation
19690 overrides an inherited one.
19691 (Same_Formal_Type): New predicate, used when matching signatures of
19692 overriding synchronized operations, to handle the case when a formal
19693 has a type that is a generic actual.
19694 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
19695 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
19696 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
19697 syntactic ambiguities involving indexing of function calls that return
19698 arrays.
19699 (Abstract_Interface_List): New subprogram that returns the list of
19700 abstract interfaces associated with a concurrent type or a
19701 concurrent record type.
19702 (Interface_Present_In_Parent): New subprogram used to check if a
19703 given type or some of its parents implement a given interface.
19704 (Collect_Abstract_Interfaces): Add support for concurrent types
19705 with interface types.
19706 (Has_Abstract_Interfaces): Add support for concurrent types with
19707 interface types.
19708 (Is_Parent): New subprogram that determines whether E1 is a parent
19709 of E2. For a concurrent type its parent is the first element of its
19710 list of interface types; for other types this function provides the
19711 same result than Is_Ancestor.
19712 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
19713 (Collect_Synchronized_Interfaces): Removed because the subprogram
19714 Collect_Abstract_Interfaces provides this functionality.
19715 (Collect_Abstract_Interfaces): Minor update to give support to
19716 concurrent types and thus avoid undesired code duplication.
19717 (Get_Subprogram_Entity): Handle entry calls.
19718 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
19719 entry calls.
19720 (Enter_Name): Do not give -gnatwh hiding warning for record component
19721 entities, they never result in hiding.
19722
197232007-04-06 Ed Schonberg <schonberg@adacore.com>
19724 Robert Dewar <dewar@adacore.com>
19725
19726 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
19727 to chain nested components that are allocators for access discriminants
19728 of the enclosing object.
19729 Add N_Push and N_Pop nodes
19730 New field Exception_Label added
19731 (Local_Raise_Statements): New field in N_Exception_Handler_Node
19732 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
19733 (Is_Coextension): New flag for allocators, to mark allocators that
19734 correspond to access discriminants of dynamically allocated objects.
19735 (N_Block_Statement): Document the fact that the corresponding entity
19736 can be an E_Return_Statement.
19737 (Is_Coextension): New flag for allocators.
19738 Remove all code for DSP option
19739
19740 * sprint.ads, sprint.adb: Display basic information for class_wide
19741 subtypes. Add handling of N_Push and N_Pop nodes
19742
197432007-04-06 Arnaud Charlet <charlet@adacore.com>
19744
19745 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
19746 before propagating exception.
19747
197482007-04-06 Olivier Hainque <hainque@adacore.com>
19749
19750 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
19751 an address always within the call instruction from a return address.
19752
197532007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 19754 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
19755
19756 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
19757 expression with a COMPOUND_EXPR including the call instead of emitting
19758 the call directly here.
19759 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
19760 high bound is constant and the slice is empty. Tidy.
19761 (tree_transform, case N_Op_Not): Handle properly the case where the
19762 operation applies to a private type whose full view is a modular type.
19763 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
19764 Address_Clause, use the associated Expression as the GNAT tree
19765 representing the choice value to ensure the corresponding GCC tree is
19766 of the proper kind.
19767 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
19768 instead of just the operands, as the base GCC stabilize_reference does.
19769 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
19770 requested; otherwise fail.
19771 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
19772
197732007-04-06 Thomas Quinot <quinot@adacore.com>
19774
19775 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
19776 implementation of UI_Div.
19777 (UI_Div): Reimplement as a call to UI_Div_Rem.
19778 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
19779 remainder, avoiding the cost of a multiplication and a subtraction.
19780 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
19781 provides both quotient and remainder in a single computation.
19782 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
19783 functions for uint.
19784 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
19785 is undefined if the given n is not inversible.
19786
197872007-04-06 Olivier Hainque <hainque@adacore.com>
19788
19789 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
19790 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
19791 opcodes.
19792
9e94c78f 197932007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
19794 Olivier Hainque <hainque@adacore.com>
19795
19796 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
19797 when updating the contents of the old pointer to an unconstrained array.
19798 (end_subprog_body): Set error_gnat_node to Empty.
19799 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
19800 (unchecked_convert): For subtype to base type conversions, require that
19801 the source be a subtype if it is an integer type.
19802 (builtin_decls): New global, vector of available builtin functions.
19803 (gnat_pushdecl): Add global builtin function declaration nodes to the
19804 builtin_decls list.
19805 (gnat_install_builtins): Adjust comments.
19806 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
19807 calling gnat_pushdecl, so that it knows when it handed a builtin
19808 function declaration node.
19809 (builtin_decl_for): Search the builtin_decls list.
19810
9e94c78f 198112007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b 19812
9e81dbc7 19813 * s-stchop-vxworks.adb:
4b437c6b
AC
19814 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
19815
198162007-04-06 Robert Dewar <dewar@adacore.com>
19817 Arnaud Charlet <charlet@adacore.com>
19818
19819 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
19820
19821 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
19822 of files
19823 Add mention of -Sev (set initialize_scalars option from environment
19824 variable at run time) in gnatbind usage message.
19825
19826 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
19827
19828 * fname-uf.ads: Minor comment fix
19829
19830 * osint.ads: Change pragma Elaborate to Elaborate_All
19831
19832 * par-load.adb: Add documentation.
19833
19834 * sem_cat.ads, sem_cat.adb: Minor code reorganization
19835
19836 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
19837
19838 * s-secsta.ads: Extra comments
19839
19840 * s-soflin.ads: Minor comment fixes
19841
19842 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
19843
19844 * s-wchcon.ads: Minor comment addition
19845
19846 * treepr.adb: Minor change in message
19847 (Print_Name,Print_Node): Make these debug printouts more robust: print
19848 "no such..." instead of crashing on bad input.
19849
719bb4e3 198502007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
47ecd38d
RAE
19851
19852 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
19853 instead of gnat_signed_or_unsigned_type.
19854 * utils.c (gnat_signed_or_unsigned_type): Remove.
19855 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
19856 * gigi.h (gnat_signed_or_unsigned_type): Remove
19857
9645c3c5
RS
198582007-03-09 Roger Sayle <roger@eyesopen.com>
19859
19860 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
19861 fold with the result of buildN.
19862 * decl.c (gnat_to_gnu_entity): Likewise.
19863 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
19864 * utils.c (finish_record_type, merge_sizes, max_size, convert):
19865 Likewise.
19866 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
19867 nonbinary_modular_operation, build_binary_op, build_unary_op,
19868 build_cond_expr): Likewise.
19869
19870 * utils.c (convert): Use fold_build1 when casting values to void.
19871 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
19872 fold_convert instead of convert when appropriate.
19873
c279aa90
BM
198742007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19875
19876 * Make-lang.in: Add install-pdf target as copied from
19877 automake v1.10 rules.
19878
c2615f30
AS
198792007-02-28 Andreas Schwab <schwab@suse.de>
19880
19881 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
19882 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
19883 (doc/gnat-style.info): Likewise.
19884
7771bb62
BM
198852007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
19886
19887 * gnat-style.texi: Standardize title page.
19888 * gnat_rm.texi: Likewise.
19889 * gnat_ugn.texi: Likewise.
19890
ae19c041
MM
198912007-02-25 Mark Mitchell <mark@codesourcery.com>
19892
19893 * decl.c (annotate_value): Adjust for refactoring of tree_map
19894 hierarchy.
19895
fc8600f9
MM
198962007-02-24 Mark Mitchell <mark@codesourcery.com>
19897
19898 * decl.c (annotate_value): Adjust for refactoring of tree_map
19899 hierarchy.
19900
c0bca7e1
EB
199012007-02-21 Ed Schonberg <schonberg@adacore.com>
19902
19903 PR ada/18819
19904 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
19905 untagged derived type, add hidden components to keep discriminant
19906 layout consistent, when a given discriminant of the derived type
19907 constraints several discriminants of the parent type.
19908
9f3432b8 199092007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6f7f72f9 19910 Sandra Loosemore <sandra@codesourcery.com>
9f3432b8
EB
19911
19912 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
19913 build the call expression.
19914 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
19915 * utils.c (max_size) <tcc_exceptional>: Delete.
19916 <tcc_vl_exp>: New case.
19917 <tcc_expression>: Delete CALL_EXPR subcase.
19918 (build_global_cdtor): Use build_call_nary instead of build3.
19919 * utils2.c (build_call_1_expr): Likewise.
19920 (build_call_2_expr): Likewise.
19921 (build_call_0_expr): Likewise.
19922 (build_call_alloc_dealloc): Likewise.
19923
8438091f
AK
199242007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
19925
19926 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9e81dbc7 19927 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8438091f
AK
19928 and _Unwind_SWord with _sleb128_t.
19929
0802f6a2
PB
199302007-02-06 Paolo Bonzini <bonzini@gnu.org>
19931
19932 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
19933 * decl.c: Include gt-ada-decl.h.
19934 (annotate_value_cache): New.
19935 (annotate_value): Use it instead of TREE_COMPLEXITY.
19936
326f9a75
KH
199372007-02-03 Kazu Hirata <kazu@codesourcery.com>
19938
19939 * misc.c, utils2.c: Fix comment typos.
19940
cd259a98
RS
199412007-01-24 Roger Sayle <roger@eyesopen.com>
19942
19943 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
19944 TREE_CONSTANT_OVERFLOW.
19945 (allocatable_size_p, annotate_value): Likewise.
19946 * trans.c (gnat_to_gnu): Likewise.
19947 * utils.c (unchecked_convert): Likewise.
19948 * utils2.c (build_simple_component_ref): Likewise.
19949
5305be7e
RG
199502007-01-23 Richard Guenther <rguenther@suse.de>
19951
19952 PR bootstrap/30541
19953 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
19954 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
19955 (gnatboot3): Likewise.
19956 (GNATBIND): Do not define.
19957 * Makefile.in (GNATBIND): Do not define.
19958
2ac7cbb5
RG
199592007-01-08 Richard Guenther <rguenther@suse.de>
19960
19961 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
19962 * trans.c (gnat_to_gnu): Likewise.
19963
2989d30c
GK
199642006-12-07 Geoffrey Keating <geoffk@apple.com>
19965
19966 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
19967 * adaint.c: Likewise.
19968
5848e34a
EB
199692006-12-05 Aldy Hernandez <aldyh@redhat.com>
19970
6f7f72f9 19971 Merge from gimple-tuples-branch:
5848e34a 19972 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6f7f72f9 19973
5848e34a
EB
19974 * ada-tree.h (lang_tree_node): Handle gimple tuples.
19975 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
19976 GIMPLE_MODIFY_STMT.
19977
d3c56bc8
KH
199782006-12-02 Kazu Hirata <kazu@codesourcery.com>
19979
19980 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
19981 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
19982 Fix typos.
19983
9fa25ead
EB
199842006-11-17 Eric Botcazou <ebotcazou@adacore.com>
19985
19986 PR ada/27936
19987 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
19988 if the initializer takes into account the padding.
19989
f9f770a8
RG
199902006-11-11 Richard Guenther <rguenther@suse.de>
19991
19992 * trans.c (maybe_stabilize_reference): Remove handling of
19993 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
19994
75c0ed05
AC
199952006-11-05 Arnaud Charlet <charlet@adacore.com>
19996
ed41063a 19997 PR ada/29707
75c0ed05
AC
19998 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
19999 (To_Target_Priority): New function.
75c0ed05 20000
70198b9f
AC
200012006-10-31 Robert Dewar <dewar@adacore.com>
20002
20003 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
20004 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
20005 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
20006 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
20007 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
20008 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
20009 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
20010 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
20011 a-szbzha.adb: Minor reformatting. Fix header.
20012
20013 * a-numaux-x86.adb: Add parentheses for use of unary minus
20014 * a-ngcefu.adb: Supply missing parentheses for unary minus
20015 * a-ngcoty.adb: Add parens for use of unary minus
20016 * a-ngelfu.adb: Add missing parens for unary minus
20017 * a-tifiio.adb: Add parentheses for uses of unary minus
20018
200192006-10-31 Robert Dewar <dewar@adacore.com>
20020 Bob Duff <duff@adacore.com>
20021 Ed Schonberg <schonberg@adacore.com>
20022
6f7f72f9 20023 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
70198b9f
AC
20024 with multiplying operator.
20025 (Expected_Type_Is_Any_Real): New function to determine from the Parent
20026 pointer whether the context expects "any real type".
20027 (Resolve_Arithmetic_Op): Do not give an error on calls to the
20028 universal_fixed "*" and "/" operators when they are used in a context
20029 that expects any real type. Also set the type of the node to
20030 Universal_Real in this case, because downstream processing requires it
20031 (mainly static expression evaluation).
20032 Reword some continuation messages
20033 Add some \\ sequences to continuation messages
20034 (Resolve_Call): Refine infinite recursion case. The test has been
20035 sharpened to eliminate some false positives.
20036 Check for Current_Task usage now includes entry barrier, and is now a
20037 warning, not an error.
20038 (Resolve): If the call is ambiguous, indicate whether an interpretation
20039 is an inherited operation.
20040 (Check_Aggr): When resolving aggregates, skip associations with a box,
20041 which are priori correct, and will be replaced by an actual default
20042 expression in the course of expansion.
20043 (Resolve_Type_Conversion): Add missing support for conversion from
20044 a class-wide interface to a tagged type. Minor code cleanup.
20045 (Valid_Tagged_Converion): Add support for abstact interface type
20046 conversions.
20047 (Resolve_Selected_Component): Call Generate_Reference here rather than
20048 during analysis, and use May_Be_Lvalue to distinguish read/write.
20049 (Valid_Array_Conversion): New procedure, abstracted from
20050 Valid_Conversion, to incorporate accessibility checks for arrays of
20051 anonymous access types.
20052 (Valid_Conversion): For a conversion to a numeric type occurring in an
20053 instance or inlined body, no need to check that the operand type is
20054 numeric, since this has been checked during analysis of the template.
20055 Remove legacy test for scope name Unchecked_Conversion.
20056
20057 * sem_res.ads: Minor reformatting
20058
20059 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
20060 (PE_Current_Task_In_Entry_Body): New exception code
20061 (SE_Restriction_Violation): Removed, not used
20062
20063 * a-except.ads: Update comments.
20064
20065 * types.h, types.ads: Add definition for Validity_Check
20066 (PE_Current_Task_In_Entry_Body): New exception code
20067 (SE_Restriction_Violation): Removed, not used
20068
200692006-10-31 Thomas Quinot <quinot@adacore.com>
20070
20071 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
20072 error status.
20073
200742006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
20075 Jose Ruiz <ruiz@adacore.com>
20076
20077 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
20078 part of Ada.Calendar: all subprogram raise Unimplemented.
20079 (Split_W_Offset): Temp function body, raising Unimplemented
20080
9e81dbc7 20081 * a-calend.ads, a-calend-vms.ads:
70198b9f
AC
20082 Add imported variable Invalid_TZ_Offset used to designate targets unable
20083 to support time zones.
20084 (Unimplemented): Temporary function raised by the body of new
20085 subprograms below.
20086 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
20087 unit provides handling of leap seconds and is used by the new Ada 2005
20088 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
20089 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
20090 version returns an extra value which is the offset to UTC.
20091
20092 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
20093 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
20094 (Split_W_Offset): New function body.
20095 (Time_Of): When a date is close to UNIX epoch, compute the time for
20096 that date plus one day (that amount is later substracted after
20097 executing mktime) so there are no problems with time zone adjustments.
20098
20099 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
20100
20101 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
20102 a-catizo.ads, a-catizo.adb: New files.
20103
6f7f72f9 20104 * impunit.adb: Add new Ada 2005 entries
70198b9f
AC
20105
20106 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
20107 Rename all occurences of "__gnat_localtime_r" to
20108 "__gnat_localtime_tzoff".
20109 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
20110 zone data and calculate the GMT offset.
20111 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
20112 Use the field "tm_gmtoff" to extract the GMT offset.
20113 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
20114 the external variable "timezone" to calculate the GMT offset.
20115
201162006-10-31 Arnaud Charlet <charlet@adacore.com>
20117 Jose Ruiz <ruiz@adacore.com>
20118
9e81dbc7
AS
20119 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
20120 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
70198b9f
AC
20121 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
20122 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
20123 System.Any_Priority to a POSIX priority on the target.
20124
9e81dbc7 20125 * system-linux-ia64.ads:
70198b9f
AC
20126 Extend range of Priority types on Linux to use the whole range made
20127 available by the system.
20128
20129 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
20130 function maps from System.Any_Priority to a POSIX priority on the
20131 target.
20132 (PTHREAD_PRIO_PROTECT): Set real value.
20133 (PTHREAD_PRIO_INHERIT): Now a function.
20134 (SIGCPUFAIL): New signal.
20135 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
20136 are documented as reserved by the OS.
20137
20138 * system-aix.ads: Use the full range of priorities provided by the
20139 system on AIX.
20140
20141 * s-taprop-posix.adb: Call new function To_Target_Priority.
20142 (Set_Priority): Take into account Task_Dispatching_Policy and
20143 Priority_Specific_Dispatching pragmas when determining if Round Robin
20144 must be used for scheduling the task.
20145
9e81dbc7 20146 * system-linux-x86_64.ads, system-linux-x86.ads,
70198b9f
AC
20147 system-linux-ppc.ads: Extend range of Priority types on Linux to use
20148 the whole range made available by the system.
20149
9e81dbc7
AS
20150 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
20151 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
70198b9f
AC
20152 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
20153 when deallocating the TCB in order to avoid potential references to
20154 deallocated data.
20155 (Set_Priority): Take into account Task_Dispatching_Policy and
20156 Priority_Specific_Dispatching pragmas when determining if Round Robin
20157 or FIFO within priorities must be used for scheduling the task.
20158
20159 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
20160 the Thread field (to be used internally by the run-time system) and the
20161 kernel-level task id in the LWP field (to be used by the debugger).
20162 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
20163 instance, and propagate the current task options to the spawned task.
20164 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
20165 (Initialize): Set Round Robin dispatching when the corresponding pragma
20166 is in effect.
20167
201682006-10-31 Robert Dewar <dewar@adacore.com>
20169
9e81dbc7
AS
20170 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20171 system-linux-hppa.ads, system-hpux-ia64.ads,
20172 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
20173 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
20174 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
20175 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
20176 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20177 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
70198b9f
AC
20178 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
20179 Default_Bit_Order) to kill constant condition warnings for references
20180 to this switch.
20181
201822006-10-31 Vincent Celier <celier@adacore.com>
20183 Eric Botcazou <ebotcazou@adacore.com>
20184
20185 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
20186 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
20187 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
20188 Ext_To, when building the library file name
20189
20190 * mlib-tgt-vxworks.adb: ditto.
20191 (Get_Target_Suffix): Add support for x86 targets.
20192
20193 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
20194
9e81dbc7 20195 * mlib-tgt-darwin.adb:
70198b9f
AC
20196 Use Append_To, instead of Ext_To, when building the library file name
20197 (Flat_Namespace): New global variable.
20198 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
20199 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
20200 (Link_Shared_Libgcc): Delete.
20201 (Build_Dynamic_Library): Adjust for above changes.
20202 Use Opt package.
20203 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
20204
202052006-10-31 Eric Botcazou <ebotcazou@adacore.com>
20206
20207 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
20208 (Initialize): Add type conversions required by above change.
20209
202102006-10-31 Jose Ruiz <ruiz@adacore.com>
20211
9e81dbc7 20212 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
70198b9f
AC
20213 (getpid): New body for this function that uses the underlying taskIdSelf
20214 function for VxWorks 5 and VxWorks 6 in kernel mode.
20215 (unsigned_int): New type, modular to allow logical bit operations.
20216 (taskOptionsGet): New imported function.
20217
20218 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
20219 field to be compliant with the type used by the corresponding operating
20220 system primitive.
20221
202222006-10-31 Pascal Obry <obry@adacore.com>
20223 Eric Botcazou <ebotcazou@adacore.com>
20224 Vincent Celier <celier@adacore.com>
20225
20226 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
20227 ASCII version of the registry API. This is needed as the GNAT runtime
20228 is now UNICODE by default.
20229 Include version.h.
20230 (get_gcc_version): Do not hardcode the return value.
20231 (__gnat_file_time_name): On Windows properly set the default returned
20232 value to -1 which corresponds to Invalid_Time.
20233 (__gnat_fopen): New routine. A simple wrapper on all plateforms
20234 except on Windows where it does conversion for unicode support.
20235 (__gnat_freopen): Idem.
20236 (__gnat_locate_exec_on_path): If environment variable PATH does not
20237 exist, return a NULL pointer
20238
20239 * adaint.h: (__gnat_fopen): Declare.
20240 (__gnat_freopen): Likewise.
20241
20242 * mingw32.h (_tfreopen): Define this macro here for older MingW
20243 version.
20244 Activate the unicode support on platforms using a MingW runtime
20245 version 3.9 or newer.
20246
20247 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
20248 This is needed for proper unicode support on Windows.
20249 (freopen): Idem.
20250
202512006-10-31 Eric Botcazou <ebotcazou@adacore.com>
20252 Nicolas Setton <setton@adacore.com>
20253 Olivier Hainque <hainque@adacore.com>
20254 Gary Dismukes <dismukes@adacore.com>
20255
20256 * gigi.h: (tree_code_for_record_type): Declare.
20257 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
20258 (get_global_renaming_pointers): Rename to
20259 invalidate_global_renaming_pointers.
20260 (static_ctors): Delete.
20261 (static_dtors): Likewise.
20262 (gnat_write_global_declarations): Declare.
20263 (create_var_decl): Adjust descriptive comment to indicate that the
20264 subprogram may return a CONST_DECL node.
20265 (create_true_var_decl): Declare new function, similar to
20266 create_var_decl but forcing the creation of a VAR_DECL node.
20267 (get_global_renaming_pointers): Declare.
20268 (add_global_renaming_pointer): Likewise.
20269
20270 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
20271
20272 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
20273 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
20274 processing.
20275 (gnat_to_gnu_entity): Remove From_With_Type from computation for
20276 imported_p.
20277 <E_Access_Type>: Use the Non_Limited_View as the full view of the
20278 designated type if the pointer comes from a limited_with clause. Make
20279 incomplete designated type if it is in the main unit and has a freeze
20280 node.
20281 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
20282 Underlying_Full_View similarly. Return earlier if the full view already
20283 has an associated tree.
20284 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
20285 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
20286 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
20287 reference type built for objects with an address clause.
20288 Use create_true_var_decl with const_flag set for
20289 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
20290 TREE_READONLY set.
20291 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
20292 for Character and Wide_Character types. This info is read by the
20293 dwarf-2 writer, and is needed to be able to use the command "ptype
20294 character" in the debugger.
20295 (gnat_to_gnu_entity): When generating a type representing
20296 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
20297 so that debug writers can distinguish it from ordinary integers.
20298 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
20299 addition to TREE_READONLY to assert the constantness of variables for
20300 elaboration purposes.
20301 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
20302 parameters to call new Einfo function First_Formal_With_Extras.
20303 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
20304 protected type with its corresponding discriminant, to obtain a usable
20305 declaration
20306 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
20307 for a multiple elaboration of the "equivalent" type.
20308 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
20309 into record_global_renaming_pointer.
20310 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
20311 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
20312 <E_Array_Subtype>: Likewise.
20313 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
20314 incomplete subtypes and incomplete subtypes of incomplete types visible
20315 through a limited with clause.
20316 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
20317 the base index type for the maximum size of the array only if they are
20318 constant.
20319 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
20320 expression into a SAVE_EXPR if stabilization failed.
20321
20322 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
20323 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
20324 by lower level compilation passes.
20325 (gnat_genericize): New function, lowering a function body to GENERIC.
20326 Turn the type of RESULT_DECL into a real reference type if the decl
20327 has been marked DECL_BY_REFERENCE, and adjust references to the latter
20328 accordingly.
20329 (gnat_genericize_r): New function. Tree walking callback for
20330 gnat_genericize.
20331 (convert_from_reference, is_byref_result): New functions. Helpers for
20332 gnat_genericize_r.
20333 (create_type_decl): Call gnat_pushdecl before calling
20334 rest_of_decl_compilation, to make sure that field TYPE_NAME of
20335 type_decl is properly set before calling the debug information writers.
20336 (write_record_type_debug_info): The heuristics which compute the
20337 alignment of a field in a variant record might not be accurate. Add a
20338 safety test to make sure no alignment is set to a smaller value than
20339 the alignment of the field type.
20340 (make_dummy_type): Use the Non_Limited_View as the underlying type if
20341 the type comes from a limited_with clause. Do not loop on the full view.
20342 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
20343 (dummy_node_table): New global variable, moved from decl.c.
20344 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
20345 (save_gnu_tree): Use above macros.
20346 (get_gnu_tree): Likewise.
20347 (present_gnu_tree): Likewise.
20348 (init_dummy_type): New function, moved from decl.c. Use above macros.
20349 (make_dummy_type): Likewise.
20350 (tree_code_for_record_type): New function extracted from make_dummy_type
20351 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
20352 (static_ctors): Change it to a vector, make static.
20353 (static_dtors): Likewise.
20354 (end_subprog_body): Adjust for above change.
20355 (build_global_cdtor): Moved from trans.c.
20356 (gnat_write_global_declarations): Emit global constructor and
20357 destructor, and call cgraph_optimize before emitting debug info for
20358 global declarations.
20359 (global_decls): New global variable.
20360 (gnat_pushdecl): Store the global declarations in global_decls, for
20361 later use.
20362 (gnat_write_global_declarations): Emit debug information for global
20363 declarations.
20364 (create_var_decl_1): Former create_var_decl, with an extra argument to
20365 state whether the creation of a CONST_DECL is allowed.
20366 (create_var_decl): Behavior unchanged. Now a wrapper around
20367 create_var_decl_1 allowing CONST_DECL creation.
20368 (create_true_var_decl): New function, similar to create_var_decl but
20369 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
20370 (create_field_decl): Do not always mark the field as addressable
20371 if its type is an aggregate.
20372 (global_renaming_pointers): New static variable.
20373 (add_global_renaming_pointer): New function.
20374 (get_global_renaming_pointers): Likewise.
20375
20376 * misc.c (gnat_dwarf_name): New function.
20377 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
20378 (gnat_post_options): Add comment about structural alias analysis.
20379 (gnat_parse_file): Do not call cgraph_optimize here.
20380 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
20381
20382 * trans.c (process_freeze_entity): Don't abort if we already have a
20383 non dummy GCC tree for a Concurrent_Record_Type, as it might
20384 legitimately have been elaborated while processing the associated
20385 Concurrent_Type prior to this explicit freeze node.
20386 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
20387 exception handler volatile if it is of variable size.
20388 (process_type): Remove bypass for types coming from a limited_with
20389 clause.
20390 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
20391 actual, convert the corresponding gnu_actual to the real destination
20392 type when necessary.
20393 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
20394 originally TREE_READONLY but whose elaboration cannot be performed
20395 statically.
20396 Part of fix for F504-021.
20397 (tree_transform, subprogram cases): Change loops on formal parameters to
20398 call new Einfo function First_Formal_With_Extras.
20399 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
20400 stemming from type conversion for the lhs.
20401 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
20402 number of bits per unit for components of records.
20403 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
20404 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
20405 with At_End_Proc after the SJLJ EH cleanup.
20406 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
20407 compilation unit.
20408 (elaborate_all_entities): Do not retest type_annotate_only.
20409 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
20410 result type of an abstract subprogram, which may be an itype associated
20411 with an anonymous access result (related to AI-318-02).
20412 (build_global_cdtor): Move to utils.c.
20413 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
20414 this choice is not a null tree nor an integer constant.
20415 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
20416 on the body of elaboration routines instead of mark_unvisited.
20417 (add_stmt): Do not mark the tree.
20418 (add_decl_expr): Tweak comment.
20419 (mark_unvisited): Delete.
20420 (unshare_save_expr): New static function.
20421 (call_to_gnu): Issue an error when making a temporary around a
20422 procedure call because of non-addressable actual parameter if the
20423 type of the formal is by_reference.
20424 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
20425 after building the elaboration routine.
20426
204272006-10-31 Bob Duff <duff@adacore.com>
20428
20429 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
20430 as finalization-started, so we can raise Program_Error on 'new'.
20431
20432 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
20433 collection has already started.
20434
20435 * s-finimp.ads (Collection_Finalization_Started): Added new special
20436 flag value for indicating that a collection's finalization has started.
20437
20438 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
20439 create a task whose master has already waited for dependent tasks.
20440
204412006-10-31 Robert Dewar <dewar@adacore.com>
20442
20443 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
20444
9e81dbc7
AS
20445 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
20446 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
20447 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
20448 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
20449 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
70198b9f
AC
20450 a-except-2005.ads: Add pragma Preelaborable_Warning
20451
204522006-10-31 Robert Dewar <dewar@adacore.com>
20453 Jose Ruiz <ruiz@adacore.com>
20454
20455 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
20456
20457 * ali.adb (Get_Name): Properly handle scanning of wide character names
20458 encoded with brackets notation.
20459 (Known_ALI_Lines): Add S lines to this list.
20460 (Scan_ALI): Acquire S (priority specific dispatching) lines.
20461 New flag Elaborate_All_Desirable in unit table
20462
20463 * ali.ads (Priority_Specific_Dispatching): Add this range of
20464 identifiers to be used for Priority_Specific_Dispatching table entries.
20465 (ALIs_Record): Add First_Specific_Dispatching and
20466 Last_Specific_Dispatching that point to the first and last entries
20467 respectively in the priority specific dispatching table for this unit.
20468 (Specific_Dispatching): Add this table for storing each S (priority
20469 specific dispatching) line encountered in the input ALI file.
20470 New flag Elaborate_All_Desirable in unit table
20471
20472 * bcheck.adb: (Check_Configuration_Consistency): Add call to
20473 Check_Consistent_Dispatching_Policy.
20474 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
20475 verifying that the use of Priority_Specific_Dispatching,
20476 Task_Dispatching_Policy, and Locking_Policy is consistent across the
20477 partition.
20478
20479 * bindgen.adb: (Public_Version_Warning): function removed.
20480 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
20481 required information from ALI files in order to initialize the table
20482 containing the specific dispatching policy.
20483 (Gen_Adainit_Ada): Generate the variables required for priority specific
20484 dispatching entries (__gl_priority_specific_dispatching and
20485 __gl_num_specific_dispatching).
20486 (Gen_Adainit_C): Generate the variables required for priority specific
20487 dispatching entries (__gl_priority_specific_dispatching and
20488 __gl_num_specific_dispatching).
20489 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
20490 pragma entries.
20491 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
20492 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
20493 (Tab_To): Removed.
20494 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
20495 a call to gnat_set_globals.
20496 Generate a string containing settings from
20497 Priority_Specific_Dispatching pragma entries.
20498 (Gen_Object_Files_Options): Do not include the runtime libraries when
20499 pragma No_Run_Time is specified.
20500
20501 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
20502 consistency with s-intman-posix.adb.
20503 (__gnat_error_handler, case FreeBSD): Account for the fact that the
20504 handler is installed with SA_SIGINFO.
20505 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
20506 FreeBSD ZCX support, copied from Linux version.
20507 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
20508 sigfillset, and sigemptyset so the routines defined by MaRTE.
20509 (__gl_priority_specific_dispatching): Add this variable that stores the
20510 string containing priority specific dispatching policies in the
20511 partition.
20512 (__gl_num_specific_dispatching): Add this variable that indicates the
20513 highest priority for which a priority specific dispatching pragma
20514 applies.
20515 (__gnat_get_specific_dispatching): Add this routine that returns the
20516 priority specific dispatching policy, as set by a
20517 Priority_Specific_Dispatching pragma appearing anywhere in the current
20518 partition. The input argument is the priority number, and the result
20519 is the upper case first character of the policy name.
20520 (__gnat_set_globals): Now a dummy function.
20521 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
20522 mechargs instead of sigargs, as the latter can be retrieved from the
20523 former and sigargs is not what we want on ia64.
20524 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
20525 mechargs argument.
20526 (__gnat_adjust_context_for_raise, ia64-vms): New function.
20527 (tasking_error): Remove unused symbol.
20528 (_abort_signal): Move this symbol to the IRIX specific part since this
20529 is the only target that uses this definition.
20530 (Check_Abort_Status): Move this symbol to the IRIX specific part since
20531 this is the only target that uses this definition.
20532 (Lock_Task): Remove unused symbol.
20533 (Unlock_Task): Remove unused symbol.
20534
20535 * lib-writ.adb (Write_ALI): Output new S lines for
20536 Priority_Specific_Dispatching pragmas.
20537 Implement new flag BD for elaborate body desirable
20538
20539 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
20540 (Specific_Dispatching): Add this table for storing the entries
20541 corresponding to Priority_Specific_Dispatching pragmas.
20542 Document new BD flag for elaborate body desirable
20543
20544 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
20545 of known pragmas.
20546
205472006-10-31 Javier Miranda <miranda@adacore.com>
20548
9e81dbc7 20549 * a-tags.ads, a-tags.adb:
70198b9f
AC
20550 (Predefined_DT): New function that improves readability of the code.
20551 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
20552 Inherit_DT): Use the new function Predefined_DT to improve code
20553 readability.
20554 (Register_Interface_Tag): Update assertion.
20555 (Set_Interface_Table): Update assertion.
20556 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
20557 determining progenitor interfaces in Tags.
20558 (Inherit_CPP_DT): New subprogram.
20559
6f7f72f9 20560 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
70198b9f 20561 analysis of the thunk code.
6f7f72f9
EB
20562 (Expand_Interface_Conversion): Handle run-time conversion of
20563 access to class wide types.
70198b9f
AC
20564 (Expand_Dispatching_Call): When generating the profile for the
20565 subprogram itype for a dispatching operation, properly terminate the
20566 formal parameters chaind list (set the Next_Entity of the last formal
20567 to Empty).
20568 (Collect_All_Interfaces): Removed. This routine has been moved to
20569 sem_util and renamed as Collect_All_Abstract_Interfaces.
20570 (Set_All_DT_Position): Hidden entities associated with abstract
20571 interface primitives are not taken into account in the check for
20572 3.9.3(10); this check is done with the aliased entity.
20573 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
20574 interfacing with CPP by default.
20575 (Expand_Interface_Conversion): Add missing support for static conversion
20576 from an interface to a tagged type.
20577 (Collect_All_Interfaces): Add new out formal containing the list of
20578 abstract interface types to cleanup the subprogram Make_DT.
20579 (Make_DT): Update the code to generate the table of interfaces in case
20580 of abstract interface types.
20581 (Is_Predefined_Dispatching_Alias): New function that returns true if
20582 a primitive is not a predefined dispatching primitive but it is an
20583 alias of a predefined dispatching primitive.
20584 (Make_DT): If the ancestor of the type is a CPP_Class and we are
20585 compiling under full ABI compatibility mode we avoid the generation of
20586 calls to run-time services that fill the dispatch tables because under
20587 this mode we currently inherit the dispatch tables in the IP subprogram.
20588 (Write_DT): Emit an "is null" indication for a null procedure primitive.
20589 (Expand_Interface_Conversion): Use an address as the type of the formal
20590 of the internally built function that handles the case in which the
20591 target type is an access type.
20592
205932006-10-31 Robert Dewar <dewar@adacore.com>
20594
20595 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
20596
205972006-10-31 Robert Dewar <dewar@adacore.com>
20598
20599 * bindusg.ads, bindusg.adb:
20600 Change to package and rename procedure as Display, which
20601 now ensures that it only outputs usage information once.
20602
206032006-10-31 Jose Ruiz <ruiz@adacore.com>
20604
20605 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
20606 using RTPs.
20607
20608 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
20609 when using RTPs.
20610
206112006-10-31 Robert Dewar <dewar@adacore.com>
20612 Ed Schonberg <schonberg@adacore.com>
20613
20614 * treepr.adb: Use new subtype N_Membership_Test
20615
6f7f72f9
EB
20616 * checks.ads, checks.adb: Add definition for Validity_Check
20617 (Range_Or_Validity_Checks_Suppressed): New function
20618 (Ensure_Valid): Test Validity_Check suppressed
20619 (Insert_Valid_Check): Test Validity_Check suppressed
20620 (Insert_Valid_Check): Preserve Do_Range_Check flag
70198b9f
AC
20621 (Validity_Check_Range): New procedure
20622 (Expr_Known_Valid): Result of membership test is always valid
20623 (Selected_Range_Checks): Range checks cannot be applied to discriminants
20624 by themselves. Disabling those checks must also be done for task types,
20625 where discriminants may be used for the bounds of entry families.
20626 (Apply_Address_Clause_Check): Remove side-effects if address expression
20627 is non-static and is not the name of a declared constant.
20628 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
20629 Code cleanup and new error messages.
20630 (Enable_Range_Check): Test for some cases of suppressed checks
20631 (Generate_Index_Checks): Suppress index checks if index checks are
20632 suppressed for array object or array type.
20633 (Apply_Selected_Length_Checks): Give warning for compile-time detected
20634 length check failure, even if checks are off.
20635 (Ensure_Valid): Do not generate a check on an indexed component whose
20636 prefix is a packed boolean array.
20637 * checks.adb: (Alignment_Checks_Suppressed): New function
20638 (Apply_Address_Clause_Check): New procedure, this is a completely
20639 rewritten replacement for Apply_Alignment_Check
20640 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
20641 we request a discriminal value only in case of discriminants.
20642 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
20643 assignments where the target subtype is unconstrained and the target
20644 object is a parameter or dereference (other aliased cases are known
20645 to be unconstrained).
20646
206472006-10-31 Robert Dewar <dewar@adacore.com>
20648
20649 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
20650 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
20651 vms_conv.adb: Fix bad table increment values (much too small)
20652
20653 * table.adb (Realloc): Make sure we get at least some new elements
20654 Defends against silly small values for table increment
20655
206562006-10-31 Robert Dewar <dewar@adacore.com>
20657 Ed Schonberg <schonberg@adacore.com>
20658 Bob Duff <duff@adacore.com>
20659
20660 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
20661 entities. Move other fields around to make this possible
20662 (Is_Derived_Type): Add missing call to Is_Type.
20663 (Extra_Formals): New function for subprograms, entries, subprogram
20664 types.
20665 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
20666 (First_Formal_With_Extras): New function for subprogs, entries, subp
20667 types.
20668 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
20669 Add node information for E_Return_Statement.
20670 (Elaborate_Body_Desirable): New flag
20671 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
20672 to be Is_Inherently_Limited_Type, because return-by-reference has
20673 no meaning in Ada 2005.
20674 (E_Return_Statement): New entity kind.
20675 (Return_Applies_To): Field of E_Return_Statement.
20676 (Is_Return_Object): New flag in object entities.
20677 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
20678 (Must_Have_Preelab_Init): New flag
20679 (Known_To_Have_Preelab_Init): New flag
20680 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
20681 (Is_Visible_Formal): New flag on entities in formal packages.
20682 (Low_Bound_Known): New flag
20683 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
20684 Incomplete_Kind.
20685 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
20686 output when Id is an incomplete subtype.
20687
206882006-10-31 Robert Dewar <dewar@adacore.com>
20689
20690 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
20691 Avoid abbreviation Creat
20692 (Finalize): List all sources in extended mail source if -gnatl
20693 switch is active.
20694 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
20695 (Finalize): Implement new -gnatl=xxx switch to output listing to file
20696 (Set_Specific_Warning_On): New procedure
20697 (Set_Specific_Warning_Off): New procedure
20698 Add implementation of new insertion \\
20699 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
20700 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
20701 types.
20702 (Error_Msg_Internal): Make sure that we set Last_Killed to
20703 True when a message from another package is suppressed.
20704 Implement insertion character ~ (insert string)
20705 (First_Node): Minor adjustments to get better placement.
20706
9e81dbc7 20707 * frontend.adb:
70198b9f
AC
20708 Implement new -gnatl=xxx switch to output listing to file
20709
9e81dbc7 20710 * gnat1drv.adb:
70198b9f
AC
20711 Implement new -gnatl=xxx switch to output listing to file
20712
6f7f72f9 20713 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
70198b9f
AC
20714 (Commands_To_Stdout): New flag
20715 Implement new -gnatl=xxx switch to output listing to file
20716 New switch Dump_Source_Text
20717 (Warn_On_Deleted_Code): New warning flag for -gnatwt
20718 Define Error_Msg_Line_Length
20719 (Warn_On_Assumed_Low_Bound): New switch
20720
20721 * osint.ads, osint.adb
20722 (Normalize_Directory_Name): Fix bug.
20723 Implement new -gnatl=xxx switch to output listing to file
20724 (Concat): Removed, replaced by real concatenation
20725 Make use of concatenation now allowed in compiler
20726 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
20727 we find the 'lib' or 'bin' directory even when the tool has been
20728 invoked with a relative path.
20729 (Executable_Name): New function taking string parameters.
20730
9e81dbc7 20731 * osint-c.ads, osint-c.adb:
70198b9f
AC
20732 Implement new -gnatl=xxx switch to output listing to file
20733
20734 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
20735
9e81dbc7 20736 * switch-c.adb:
70198b9f
AC
20737 Implement new -gnatl=xxx switch to output listing to file
20738 Recognize new -gnatL switch
20739 (no longer keep in old warning about old style usage)
20740 Use concatenation to simplify code
20741 Recognize -gnatjnn switch
20742 (Scan_Front_End_Switches): Clean up handling of -gnatW
20743 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
20744
207452006-10-31 Robert Dewar <dewar@adacore.com>
20746
20747 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
20748 (Set_Specific_Warning_Off): New procedure
20749 (Warning_Specifically_Suppressed): New function
20750 (Validate_Specific_Warnings): New procedure
20751 (Output_Msg_Text): Complete rewrite to support -gnatjnn
20752
20753 * err_vars.ads: Implement insertion character ~ (insert string)
20754
207552006-10-31 Bob Duff <duff@adacore.com>
20756 Ed Schonberg <schonberg@adacore.com>
20757
20758 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
20759 the parent part is a build-in-place function call, generate assignments.
20760 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
20761 are build-in-place function calls.
20762 (Replace_Self_Reference): New subsidiary of
20763 Make_OK_Assignment_Statement, to replace an access attribute that is a
20764 self-reference into an access to the appropriate component of the
20765 target object. Generalizes previous mechanism to handle self-references
20766 nested at any level.
20767 (Is_Self_Referential_Init): Remove, not needed.
20768 (Is_Self_Referential_Init): New predicate to simplify handling of self
20769 referential components in record aggregates.
20770 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
20771 check for presence of entity before checking for self-reference.
20772 (Has_Default_Init_Comps): Return True if a component association is a
20773 self-reference to the enclosing type, which can only come from a
20774 default initialization.
20775 (Make_OK_Assignment_Statement): If the expression is of the form
20776 Typ'Acc, where Acc is an access attribute, the expression comes from a
20777 default initialized self-referential component.
20778 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
20779 that has been derived from several abstract interfaces we must also
20780 initialize the tags of the secondary dispatch tables.
20781
207822006-10-31 Ed Schonberg <schonberg@adacore.com>
20783 Thomas Quinot <quinot@adacore.com>
20784 Javier Miranda <miranda@adacore.com>
20785 Robert Dewar <dewar@adacore.com>
6f7f72f9 20786
9e81dbc7 20787 * exp_attr.adb:
6f7f72f9
EB
20788 (Expand_Access_To_Protected_Op): If the context indicates that an access
20789 to a local operation may be transfered outside of the object, create an
20790 access to the wrapper operation that must be used in an external call.
70198b9f
AC
20791 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
20792 target, pass the Valid attribute applied to a floating-point prefix on
20793 to the back end without expansion.
20794 (Storage_Size): Use the new run-time function Storage_Size to retrieve
20795 the allocated storage when it is specified by a per-object expression.
20796 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
20797 Nothing to do here, the attribute has been rewritten during semantic
20798 analysis.
20799 (Expand_Attribute_Reference): Handle expansion of the new Priority
20800 attribute
20801 (Find_Fat_Info): Handle case of universal real
20802 (Expand_Access_To_Protected_Op): Fix use of access to protected
20803 subprogram from inside the body of a protected entry.
20804 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
20805 'Access and 'Unrestricted_Access, to transform the attribute reference
20806 into a fat pointer.
20807 (Is_Constrained_Aliased_View): New predicate to help determine whether a
20808 subcomponent's enclosing variable is aliased with a constrained subtype.
20809 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
20810 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
20811 an aliased prefix must be known to be constrained in order to use True
20812 for the attribute value, and now it's possible for some aliased views
20813 to be unconstrained.
20814
208152006-10-31 Robert Dewar <dewar@adacore.com>
20816
20817 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
20818 (Expand_Entity_Reference): Correct error of not handling subprogram
20819 formals in current_value processing.
20820
208212006-10-31 Javier Miranda <miranda@adacore.com>
20822 Robert Dewar <dewar@adacore.com>
20823 Ed Schonberg <schonberg@adacore.com>
20824 Gary Dismukes <dismukes@adacore.com>
20825
6f7f72f9 20826 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
70198b9f
AC
20827 register in the final list objects containing class-wide interfaces;
20828 otherwise we incorrectly register the tag of the interface in the final
20829 list.
6f7f72f9
EB
20830 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
20831 generate the wrapper if the parent primitive is abstract. This is
20832 required to report the correct error message.
20833 (Expand_N_Subtype_Indication): Do validity checks on range
70198b9f
AC
20834 (Clean_Task_Names): If an initialization procedure includes a call to
20835 initialize a task (sub)component, indicate that the procedure will use
20836 the secondary stack.
20837 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
20838 compatibility for interfacing with CPP by default.
20839 (Expand_N_Object_Declaration): Only build an Adjust call when the
20840 object's type is a nonlimited controlled type.
20841 * exp_ch3.adb: Add with and use of Exp_Ch6.
20842 (Expand_N_Object_Declaration): Check for object initialization that is a
20843 call to build-in-place function and apply Make_Build_In_Place_Call_In_
20844 Object_Declaration to the call.
20845 (Freeze_Type): When the designated type of an RACW was not frozen at the
20846 point where the RACW was declared, validate the primitive operations
20847 with respect to E.2.2(14) when it finally is frozen.
20848 (Build_Initialization_Call,Expand_Record_Controller): Rename
20849 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
20850 return-by-reference has no meaning in Ada 2005.
20851 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
20852 to register tag of the immediate ancestor interfaces in the
20853 run-time structure.
20854 (Init_Secondary_Tags): Moved to the specification to allow the
20855 initialization of extension aggregates with abstract interfaces.
20856 (Build_Master_Renaming): Make public, for use by function declarations
20857 whose return type is an anonymous access type.
20858 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
20859 Insert_List_Before_And_Analyze after the generation of the specs
20860 associated with null procedures.
20861 (Expand_Tagged_Root): Update documentation in its specification.
20862 (Init_Secondary_Tags): Update documentation.
20863 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
20864 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
20865 then generate code to inherit the contents of the dispatch table
20866 directly from the ancestor.
20867 (Expand_Record_Controller): Insert controller component after tags of
20868 implemented interfaces.
20869 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
20870 create null procedure overridings when null procedures are inherited
20871 from interfaces.
20872 (Make_Null_Procedure_Specs): New procedure to generate null procedure
20873 declarations for overriding null primitives inherited from interfaces.
20874 (Is_Null_Interface_Procedure): New function in
20875 Make_Null_Procedure_Specs.
20876 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
20877 immediate ancestor of a tagged type is an abstract interface type we
20878 must generate the specification of the predefined primitives associated
20879 with controlled types (because the dispatch table of the ancestor is
20880 null and hence these entries cannot be inherited). This is required to
20881 elaborate well the dispatch table.
20882
208832006-10-31 Javier Miranda <miranda@adacore.com>
20884 Ed Schonberg <schonberg@adacore.com>
20885 Bob Duff <duff@adacore.com>
20886 Gary Dismukes <dismukes@adacore.com>
20887 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
20888
20889 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
70198b9f 20890 conversion.
6f7f72f9 20891 (Expand_N_In): Do validity checks on range
70198b9f
AC
20892 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
20893 (Expand_N_Allocator): For "new T", if the object is constrained by
20894 discriminant defaults, allocate the right amount of memory, rather than
20895 the maximum for type T.
20896 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
20897 when the allocator is initialized by a build-in-place call, since the
20898 allocator is already rewritten as a reference to the function result,
20899 and this prevents an unwanted duplication of the function call.
20900 Add with and use of Exp_Ch6.
20901 (Expand_Allocator_Expresssion): Check for an allocator whose expression
20902 is a call to build-in-place function and apply
20903 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
20904 untagged designated types).
20905 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
20906 optimization if source or target is biased.
20907 (Expand_N_Allocator): Add comments for case of an allocator within a
20908 function that returns an anonymous access type designating tasks.
20909 (Expand_N_Allocator): apply discriminant checks for access
20910 discriminants of anonymous access types (AI-402, AI-416)
20911
209122006-10-31 Bob Duff <duff@adacore.com>
20913 Robert Dewar <dewar@adacore.com>
20914 Gary Dismukes <dismukes@adacore.com>
20915 Ed Schonberg <schonberg@adacore.com>
20916
20917 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
20918
6f7f72f9 20919 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
70198b9f
AC
20920 (Expand_N_Assignment_Statement): Call
20921 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
20922 build-in-place function call. Currently, this can happen only for
20923 assignments that come from aggregates.
20924 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20925 in order to alleviate the upward compatibility introduced by AI-318.
20926 (Expand_N_Extended_Return_Statement): Add support for handling the
20927 return object as a build-in-place result.
20928 (Expand_Non_Function_Return): Implement simple return statements nested
20929 within an extended return.
20930 (Enable_New_Return_Processing): Turn on the new processing of return
20931 statements.
20932 (Expand_Non_Function_Return): For a return within an extended return,
20933 don't raise Program_Error, because Sem_Ch6 now gives a warning.
20934 (Expand_N_Extended_Return_Statement): Implement AI-318
20935 (Expand_Simple_Function_Return): Ditto.
20936 (Expand_N_If_Statement): Handle new -gnatwt warning
20937 (Expand_N_Case_Statement): Handle new -gnatwt warning
20938 (Expand_N_Assignment): Handle assignment to the Priority attribute of
20939 a protected object.
20940 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
20941 validity checking of assignments to elementary record components.
20942 (Expand_N_Return_Statement): return Class Wide types on the secondary
20943 stack independantly of their controlled status since with HIE runtimes,
20944 class wide types are not potentially controlled anymore.
20945
20946 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
20947 node kind.
20948
20949 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
20950 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
20951 it expects a block, procedure, or task. The return statement will get
20952 turned into a block, and Expand_Cleanup_Actions will happen then.
20953
209542006-10-31 Robert Dewar <dewar@adacore.com>
20955 Ed Schonberg <schonberg@adacore.com>
20956 Bob Duff <duff@adacore.com>
20957 Gary Dismukes <dismukes@adacore.com>
20958
20959 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
20960 capability.
20961 (Expand_Inlined_Call): Tagged types are by-reference types, and
20962 therefore should be replaced by a renaming declaration in the expanded
20963 body, as is done for limited types.
20964 (Expand_Call): If this is a call to a function with dispatching access
20965 result, propagate tag from context.
20966 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
20967 CPP by default.
20968 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
20969 build-in-place when the right-hand side of an assignment is a
20970 build-in-place function call.
20971 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
20972 of the explicit dereference of the allocator to the result subtype of
20973 the build-in-place function. This is needed to satisfy type checking
20974 in cases where the caller's return object is created by an allocator for
20975 a class-wide access type and the type named in the allocator is a
20976 specific type.
20977 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
20978 conversion of the reference to the declared object to the result subtype
20979 of the build-in-place function. This is needed to satisfy type checking
20980 in cases where the declared object has a class-wide type. Also, in the
20981 class-wide case, change the type of the object entity to the specific
20982 result subtype of the function, to avoid passing a class-wide object
20983 without explicit initialization to the back end.
20984 (Register_Interface_DT_Entry): Moved outside the body of
20985 Freeze_Subprogram because this routine is now public; it is called from
20986 Check_Dispatching_Overriding to handle late overriding of abstract
20987 interface primitives.
20988 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
20989 adding an implicit access actual on a call to a build-in-place function.
20990 (Expand_Actuals): Test for an actual parameter that is a call to a
20991 build-in-place function and apply
20992 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
20993 (Is_Build_In_Place_Function): New function to determine whether an
20994 entity is a function whose calls should be handled as build-in-place.
20995 (Is_Build_In_Place_Function_Call): New function to determine whether an
20996 expression is a function call that should handled as build-in-place.
20997 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
20998 calls to build-in-place functions as the initialization of an allocator.
20999 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
21000 handling calls to build-in-place functions in contexts that do not
21001 involve init of a separate object (for example, actuals of subprogram
21002 calls).
21003 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
21004 handling calls to build-in-place functions as the initialization of an
21005 object declaration.
21006 (Detect_Infinite_Recursion): Add explicit parameter Process to
21007 instantiation of Traverse_Body to avoid unreferenced warning.
21008 (Check_Overriding_Inherited_Interfaces): Removed.
21009 (Register_Interface_DT_Entry): Code cleanup.
21010 (Register_Predefined_DT_Entry): Code cleanup.
21011 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
21012 inlined statements if within a transient scope.
21013 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
21014 formal parameters with occurrences of actuals in inlined body, establish
21015 visibility on the proper view of the actual's subtype for the body's
21016 context.
21017 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
21018 compatibility mode and we have an imported CPP subprogram because
21019 for now we assume that imported CPP primitives correspond with
21020 objects whose constructor is in the CPP side (and therefore we
21021 don't need to generate code to register them in the dispatch table).
21022 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
21023 aligned selected component.
21024 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
21025 the actual of an in-mode parameter is a type conversion.
21026 (Expand_Actuals): If the call does not come from source and the actual
21027 is potentially misaligned, let gigi handle it rather than rejecting the
21028 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
21029 Class Wide types as returning by reference independantly of their
21030 controlled status since with HIE runtimes class wide types are not
21031 potentially controlled anymore.
21032
6f7f72f9 210332006-10-31 Ed Schonberg <schonberg@adacore.com>
70198b9f 21034
6f7f72f9 21035 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
70198b9f
AC
21036 references that are private components of the protected object.
21037 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
21038 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
21039 instantiation to deal with warnings.
21040 (Initialize_Protection): If expression for priority is non-static, use
21041 System_Priority as its expected type, in case the expression has not
21042 been analyzed yet.
21043
210442006-10-31 Robert Dewar <dewar@adacore.com>
21045
21046 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
21047 initialization of Homonym_Len.
21048 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
21049 names from fully qualified name. Fixes problem of duplicate
21050 external names differing only in the presence of such a block name.
21051
210522006-10-31 Thomas Quinot <quinot@adacore.com>
21053 Pablo Oliveira <oliveira@adacore.com>
6f7f72f9
EB
21054
21055 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
70198b9f
AC
21056 subprogram Ids, even if they are not yet assigned.
21057 (Build_Subprogram_Id): It is now this function that will take care of
21058 calling Assign_Subprogram_Ids if necessary.
21059 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
21060 should be done only once they are assigned.
21061 (Build_From_Any_Function, case of tagged types): Add missing call to
21062 Allocate_Buffer.
21063 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
21064 type for an RACW type.
21065 (Add_RACW_Features): When processing an RACW declaration for which the
21066 designated type is already frozen, enforce E.2.2(14) rules immediately.
21067 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
21068 special reordering of controlling formals.
21069
21070 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
21071 associated stub type for an RACW type.
21072
210732006-10-31 Ed Schonberg <schonberg@adacore.com>
21074
21075 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
21076 fixed-point operations in an integer context, i.e. as operands of a
21077 conversion to an integer type, indicate that result must be rounded.
21078
210792006-10-31 Robert Dewar <dewar@adacore.com>
21080
21081 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
21082 cases, pass the encoding method, since it is now required by the run
21083 time.
21084
21085 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
21086 assumption that Str'First = 1.
21087 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
21088 it on to the Value_Wide_Wide_Character call.
21089 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
21090 properly handles a string of the form quote-encoded_wide_char-quote.
21091
21092 * s-wchcnv.adb: Minor reformatting
21093
210942006-10-31 Javier Miranda <miranda@adacore.com>
6f7f72f9 21095
70198b9f
AC
21096 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
21097 run-time membership test to ensure that the constructed object
21098 implements the target abstract interface.
21099
211002006-10-31 Robert Dewar <dewar@adacore.com>
21101
21102 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
21103 Machine_Attribute pragma internally to implement the user pragma.
21104 Add processing for pragma Interface so that it is now completely
21105 equivalent to pragma Import.
21106
21107 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
21108 so that it can be applied to all entities, including record components
21109 and enumeration literals.
21110 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
21111 priority ranges are correct, verify compatibility against task
21112 dispatching and locking policies, and if everything is correct an entry
21113 is added to the table containing priority specific dispatching entries
21114 for this compilation unit.
21115 (Delay_Config_Pragma_Analyze): Delay processing
21116 Priority_Specific_Dispatching pragmas because when processing the
21117 pragma we need to access run-time data, such as the range of
21118 System.Any_Priority.
21119 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
21120 Allow pragma Unreferenced as a context item
21121 Add pragma Preelaborable_Initialization
21122 (Analyze_Pragma, case Interface): Interface is extended so that it is
21123 now syntactically and semantically equivalent to Import.
21124 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
21125 insertion characters.
21126 Add handling for Pragma_Wide_Character_Encoding
21127 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
21128 never supercedes a real restriction, and that a real restriction
21129 always supercedes a warning.
21130 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
21131 appropriate form.
21132
211332006-10-31 Bob Duff <duff@adacore.com>
21134 Ed Schonberg <schonberg@adacore.com>
21135 Robert Dewar <dewar@adacore.com>
21136
21137 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
21138 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
21139 Is_Inherently_Limited_Type, because return-by-reference has no meaning
21140 in Ada 2005.
21141 (Find_Node_To_Be_Wrapped): Use new method of determining the result
21142 type of the function containing a return statement, because the
21143 Return_Type field was removed. We now use the Return_Applies_To field.
21144
6f7f72f9 21145 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
70198b9f
AC
21146 (Build_Task_Image_Decl): If procedure is not called from an
21147 initialization procedure, indicate that function that builds task name
21148 uses the sec. stack. Otherwise the enclosing initialization procedure
21149 will carry the indication.
21150 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
21151 N_Object_Declaration instead.
21152 (Kill_Dead_Code): New interface to implement -gnatwt warning for
21153 conditional dead code killed, and change implementation accordingly.
21154 (Insert_Actions): Add N_Return_Object_Declaration case.
21155 Correct comment to mention N_Extension_Aggregate node.
21156 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
21157 attempts to save information for global variables which cannot be
21158 safely tracked.
21159 (Get_Current_Value_Condition): Handle conditions the other way round
21160 (constant on left). Also handle right operand of AND and AND THEN
21161 (Set_Current_Value_Condition): Corresponding changes
21162 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
21163 (Get_Current_Value_Condition): Handle simple boolean operands
21164 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
21165 (Get_Current_Value_Condition): If the variable reference is within an
21166 if-statement, does not appear in the list of then_statments, and does
21167 not come from source, treat it as being at unknown location.
21168 (Get_Current_Value_Condition): Enhance to allow while statements to be
21169 processed as well as if statements.
21170 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
21171 come from source.
21172 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
21173 of loop. This is safe now that we fixed Kill_Current_Values.
21174 (OK_To_Do_Constant_Replacement): Check whether current scope is
21175 Standard, before examining outer scopes.
21176
211772006-10-31 Vincent Celier <celier@adacore.com>
21178
21179 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
21180 When True, apply VMS treatment to children of packages A, G, I and S.
21181 For F320-016
21182
21183 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
21184
211852006-10-31 Robert Dewar <dewar@adacore.com>
21186 Ed Schonberg <schonberg@adacore.com>
21187
21188 * freeze.adb: Add handling of Last_Assignment field
21189 (Warn_Overlay): Supply missing continuation marks in error msgs
21190 (Freeze_Entity): Add check for Preelaborable_Initialization
21191
21192 * g-comlin.adb: Add Warnings (Off) to prevent new warning
21193
21194 * g-expect.adb: Add Warnings (Off) to prevent new warning
21195
21196 * lib-xref.adb: Add handling of Last_Assignment field
21197 (Generate_Reference): Centralize handling of pragma Obsolescent here
21198 (Generate_Reference): Accept an implicit reference generated for a
21199 default in an instance.
21200 (Generate_Reference): Accept a reference for a node that is not in the
21201 main unit, if it is the generic body corresponding to an subprogram
21202 instantiation.
21203
21204 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
21205
6f7f72f9 21206 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
70198b9f
AC
21207 -gnatwq/Q.
21208 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
21209 exception handler.
21210 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
21211 use clauses, to avoid messages on packages used to qualify, and also
21212 to avoid messages from obsolescent units.
21213 (Warn_On_Useless_Assignments): Don't generate messages for imported
21214 and exported variables.
21215 (Warn_On_Useless_Assignments): New procedure
21216 (Output_Obsolescent_Entity_Warnings): New procedure
21217 (Check_Code_Statement): New procedure
21218
6f7f72f9 21219 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
70198b9f
AC
21220 Change name Is_Ada_2005 to Is_Ada_2005_Only
21221 (Last_Assignment): New field for useless assignment warning
21222
212232006-10-31 Olivier Hainque <hainque@adacore.com>
21224
21225 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
21226 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
21227
212282006-10-31 Bob Duff <duff@adacore.com>
21229 Robert Dewar <dewar@adacore.com>
21230 Ed Schonberg <schonberg@adacore.com>
21231
21232 * g-awk.adb (Default_Session, Current_Session): Compile this file in
21233 Ada 95 mode, because it violates the new rules for AI-318.
21234
21235 * g-awk.ads: Use overloaded subprograms in every case where we used to
21236 have a default of Current_Session. This makes the code closer to be
21237 correct for both Ada 95 and 2005.
21238
21239 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
21240 code, relying on the fact that the compiler generates a warning
21241 instead of an error in -gnatg mode.
21242
21243 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
21244 E_Return_Statement entity kind.
21245 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
21246
21247 * par.adb (P_Interface_Type_Definition): Addition of one formal to
21248 report an error if the reserved word abstract has been previously found.
21249 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
6f7f72f9
EB
21250
21251 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
70198b9f
AC
21252 parenthesized range attribute usage
21253 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
21254
21255 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
21256 in the syntax for extended_return_statement. This is not in the latest
21257 RM, but the ARG is expected to issue an AI allowing this.
21258 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
21259 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
21260 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
21261 P_Return_Statement): Parse the new syntax for extended_return_statement.
21262
21263 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
21264 Output_End_Missing): Add error-recovery code for the new
21265 extended_return_statement syntax; that is, the new E_Return entry on
21266 the scope stack.
21267
21268 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
21269 limited to nonlimited, because otherwise we violate the new Ada 2005
21270 rules about returning limited types in function Create_AST_Handler in
21271 s-asthan.adb.
21272
21273 * sem.adb (Analyze): Add cases for new node kinds
21274 N_Extended_Return_Statement and N_Return_Object_Declaration.
21275
21276 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
21277 type is in the same category as type of context before applying check,
21278 to prevent anomalies in instantiations.
21279 (Resolve_Aggregate): Remove test for limited components in aggregates.
21280 It's unnecessary in Ada 95, because if it has limited components, then
21281 it must be limited. It's wrong in Ada 2005, because limited aggregates
21282 are now allowed.
21283 (Resolve_Record_Aggregate): Move check for limited types later, because
21284 OK_For_Limited_Init requires its argument to have been resolved.
21285 (Get_Value): When copying the component default expression for a
21286 defaulted association in an aggregate, use the sloc of the aggregate
21287 and not that of the original expression, to prevent spurious
21288 elaboration errors, when the expression includes function calls.
21289 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
21290 were missing. We also didn't handle qualified expressions. Now also
21291 allow function calls. Use new common routine OK_For_Limited_Init.
21292 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
21293 with space can upper case letter).
21294
6f7f72f9 21295 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
70198b9f 21296 Has_Static_Discriminants flag
6f7f72f9
EB
21297 (Record_Type_Declaration): Diagnose an attempt to declare an interface
21298 type with discriminants.
21299 (Process_Range_Expr_In_Decl): Do validity checks on range
70198b9f
AC
21300 (Build_Discriminant_Constraints): Use updated form of
21301 Denotes_Discriminant.
21302 (Process_Subtype): If the subtype is a private subtype whose full view
21303 is a concurrent subtype, introduce an itype reference to prevent scope
21304 anomalies in gigi.
21305 (Build_Derived_Record_Type, Collect_Interface_Primitives,
21306 Record_Type_Declaration): The functionality of the subprograms
21307 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
21308 is now performed by a single routine.
21309 (Build_Derived_Record_Type): If the type definition includes an explicit
21310 indication of limitedness, then the type must be marked as limited here
21311 to ensure that any access discriminants will not be treated as having
21312 a local anonymous access type.
21313 (Check_Abstract_Overriding): Issue a detailed error message when an
21314 abstract subprogram was not overridden due to incorrect mode of its
21315 first parameter.
21316 (Analyze_Private_Extension_Declaration): Add support for the analysis of
21317 synchronized private extension declarations. Verify that the ancestor is
21318 a limited or synchronized interface or in the generic case, the ancestor
21319 is a tagged limited type or synchronized interface and all progenitors
21320 are either limited or synchronized interfaces.
21321 Derived_Type_Declaration): Check for presence of private extension when
21322 dealing with synchronized formal derived types.
21323 Process_Full_View): Enchance the check done on the usage of "limited" by
21324 testing whether the private view is synchronized.
21325 Verify that a synchronized private view is completed by a protected or
21326 task type.
21327 (OK_For_Limited_Init_In_05): New function.
21328 (Analyze_Object_Declaration): Move check for limited types later,
21329 because OK_For_Limited_Init requires its argument to have been resolved.
21330 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21331 in order to alleviate the upward compatibility introduced by AI-318.
21332 (Constrain_Corresponding_Record): If the constraint is for a component
21333 subtype, mark the itype as frozen, to avoid out-of-scope references to
21334 discriminants in the back-end.
21335 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
21336 this subprogram against wrong sources.
21337 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
21338 discriminant of limited type completed with a protected type, when the
21339 discriminant is used to constrain a private component of the type, and
21340 expansion is disabled.
21341 (Find_Type_Of_Object): Do not treat a return subtype that is an
21342 anonymous subtype as a local_anonymous_type, because its accessibility
21343 level is the return type of the enclosing function.
21344 (Check_Initialization): In -gnatg mode, turn the error "cannot
21345 initialize entities of limited type" into a warning.
21346 (OK_For_Limited_Init): Return true for generated nodes, since it
21347 sometimes violates the legality rules.
21348 (Make_Incomplete_Declaration): If the type for which an incomplete
21349 declaration is created happens to be the currently visible entity,
21350 preserve the homonym chain when removing it from visibility.
21351 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
21352 inherited subprograms.
21353 (Access_Definition): If this is an access to function that is the return
21354 type of an access_to_function definition, context is a type declaration
21355 and the scope of the anonymous type is the current one.
21356 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
21357 incomplete subtype to the set of private dependents of the original
21358 incomplete type.
21359 (Constrain_Discriminated_Type): Emit an error message whenever an
21360 incomplete subtype is being constrained.
21361 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
21362 corresponding subtype of the full view of the original incomplete type.
21363 (Check_Incomplete): Properly detect invalid usage of incomplete types
21364 and subtypes.
21365
213662006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21367
21368 * g-catiio.ads, g-catiio.adb (Value): New function.
21369 Given an input String, try and parse a valid Time value.
21370
213712006-10-31 Vincent Celier <celier@adacore.com>
21372
21373 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
21374 Integer_Address arithmetic, as in Set_Valid.
21375
213762006-10-31 Arnaud Charlet <charlet@adacore.com>
21377 Robert Dewar <dewar@adacore.com>
21378
21379 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
21380 handling executable extension manually and duplicating code.
21381
21382 * make.adb: Implement new -S switch
21383 (Gnatmake): Use new function Osint.Executable_Name instead
21384 of handling executable extension manually.
21385
21386 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
21387 is specified, the executable name ends with this suffix.
21388 Take advantage of Osint.Executable_Name instead of duplicating code.
21389
21390 * switch-m.adb: Recognize new gnatmake -S switch
21391
21392 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
21393 variable.
21394 (Get_Target_Parameters): Set Executable_Extension_On_Target if
21395 available.
21396
21397 * makeusg.adb: Add line for gnatmake -S switch
21398
213992006-10-31 Vincent Celier <celier@adacore.com>
21400
21401 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
21402 call it with -static-libgcc, as there are some platforms, such as
21403 Darwin, where one of these two switches is compulsory to link.
21404
214052006-10-31 Vincent Celier <celier@adacore.com>
6f7f72f9 21406
70198b9f
AC
21407 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
21408 instead of ADA_PROJECT_PATH, for the project path.
21409 (Gnatls): When displaying the project path directories, use host dir
21410 specs.
21411
21412 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
21413 names in the project path, as absolute paths may correspond to
21414 multi-valued VMS logical names.
21415
214162006-10-31 Vincent Celier <celier@adacore.com>
21417
21418 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
21419 absolute path name.
21420 (Locate_Regular_File): Ditto
21421 (Change_Dir): Remove, no longer used
21422 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
21423 on Windows. Get it calling Get_Current_Dir.
21424 (OpenVMS): Remove imported boolean, no longer needed.
21425 (Normalize_Pathname)[VMS]: Do not resolve directory names.
21426 (Pid_To_Integer): New function to convert a Process_Id to Integer
21427
214282006-10-31 Thomas Quinot <quinot@adacore.com>
21429
21430 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
21431 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
21432 to No_Socket.
21433 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
21434 W_Sig_Socket.
21435
214362006-10-31 Robert Dewar <dewar@adacore.com>
21437
21438 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
21439 initial letter o as a zero.
21440
214412006-10-31 Robert Dewar <dewar@adacore.com>
21442
21443 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
21444
214452006-10-31 Robert Dewar <dewar@adacore.com>
21446
6f7f72f9
EB
21447 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
21448 variant records
21449 (Layout_Variant_Record): Retrieve the discriminants from the entity
70198b9f
AC
21450 rather than from the type definition, because in the case of a full
21451 type for a private type we need to take the discriminants from the
21452 partial view.
6f7f72f9
EB
21453 (Layout_Component_List): When applying the Max operator to variants with
21454 a nonstatic size, check whether either operand is static and scale that
21455 operand from bits to storage units before applying Max.
70198b9f
AC
21456 (Layout_Type): In VMS, if a C-convention access type has no explicit
21457 size clause (and does not inherit one in the case of a derived type),
21458 then the size is reset to 32 from 64.
21459
214602006-10-31 Vincent Celier <celier@adacore.com>
21461
21462 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
21463 its file has already been loaded, according to the unit being loaded,
21464 not to the current value of Multiple_Unit_Index.
21465
214662006-10-31 Thomas Quinot <quinot@adacore.com>
21467 Eric Botcazou <ebotcazou@adacore.com>
21468 Arnaud Charlet <charlet@adacore.com>
21469
21470 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
21471 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
21472 possible.
21473 (a-except.o): Pass it to the compiler.
21474 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
21475 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
21476 a-calend-mingw.adb version.
21477
6f7f72f9 21478 * Makefile.rtl: Added s-dsaser.
70198b9f
AC
21479 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
21480 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
21481 Ada.Dispatching.Round_Robin.
21482 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
21483
21484 * Make-lang.in: Remove all references to gt-ada-decl.h.
21485 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
21486 sources.
21487 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
21488 Update dependencies.
21489
21490 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
21491
214922006-10-31 Vincent Celier <celier@adacore.com>
21493
21494 * mlib-utl.adb (Initialized): Remove, no longer used
21495 (Initialize): Remove, no longer used
21496 (Ar): If Ar_Exec is null, get the location of the archive builder and,
21497 if there is one, the archive indexer. Fail if the archive builder cannot
21498 be found.
21499 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
21500 be found.
21501
215022006-10-31 Ed Schonberg <schonberg@adacore.com>
21503
21504 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
21505 Process_Body_Clauses): If the context of a body includes a use clause
21506 for P.Q then a with_clause for P in the same body is not redundant,
21507 even if the spec also has a with_clause on P.
21508 Add missing continuation mark to error msg
21509 (Build_Limited_Views): A limited view of a type is tagged if its
21510 declaration includes a record extension.
21511 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
21512 node, even if the subunit has errors. This avoids malfunction by
21513 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
21514 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
21515 generation of obsolescent messages for with statements (cannot do
21516 this too early, or we cannot implement avoiding the messages in the
21517 case of obsolescent units withing obsolescent units).
21518 (Install_Siblings): If the with_clause is on a remote descendant of
21519 an ancestor of the current compilation unit, find whether there is
21520 a sibling child unit that is immediately visible.
21521 (Remove_Private_With_Clauses): New procedure, invoked after completing
21522 the analysis of the private part of a nested package, to remove from
21523 visibility the private with_clauses of the enclosing package
21524 declaration.
21525 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
21526 now centralized in Generate_Reference.
21527 (Install_Limited_Context_Clauses): Remove superfluous error
21528 message associated with unlimited view visible through use
21529 and renamings. In addition, at the point in which the error
21530 is reported, we add the backslash to the text of the error
21531 to ensure that it is reported as a single error message.
21532 Use new // insertion for some continuation messages
21533 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
21534 to create implicit with_clause for parent unit mentioned in original
21535 limited_with_clause.
21536 (Install_Limited_With_Unit): Set entity of parent identifiers if the
21537 unit is a child unit. For ASIS queries.
21538 (Analyze_Subunit): If the subunit appears within a child unit, make all
21539 ancestor child units directly visible again.
21540
215412006-10-31 Robert Dewar <dewar@adacore.com>
21542
21543 * par-ch10.adb (P_Context_Clause): Minor error message fix
21544
215452006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21546 Javier Miranda <miranda@adacore.com>
21547
21548 * par-ch12.adb: Grammar update and cleanup.
21549 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
21550 support for synchronized derived type definitions.
21551 Add the new actual Abstract_Present to every call to
21552 P_Interface_Type_Definition.
21553 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
21554 a formal object declaration with an access definition or a subtype mark
21555 with a null exclusion.
21556 (P_Generic_Association): Handle association with box, and others_choice
21557 with box, to support Ada 2005 partially parametrized formal packages.
21558
215592006-10-31 Robert Dewar <dewar@adacore.com>
21560 Javier Miranda <miranda@adacore.com>
6f7f72f9 21561
70198b9f
AC
21562 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
21563 (P_Type_Declaration): Remove barrier against the reserved word "limited"
21564 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
21565 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
21566 private extensions.
21567 (P_Type_Declaration): Add the new actual Abstract_Present to every call
21568 to P_Interface_Type_Definition.
21569 (P_Interface_Type_Definition): Addition of one formal to report an error
21570 if the reserved word abstract has been previously found.
21571 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
21572 object renaming declaration with an access definition or subtype mark
21573 with a possible null exclusion.
21574
21575 * par-ch9.adb: Minor error msg fix
21576
21577 * par-load.adb: Add missing continuation mark to error msg
21578
21579 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
21580
215812006-10-31 Vincent Celier <celier@adacore.com>
21582
21583 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
21584 unknown attribute in unknown package or in package that does not need
21585 to be checked.
21586 (Parse_Package_Declaration): Do not issue warning for unknown package in
21587 quiet output.
21588
215892006-10-31 Vincent Celier <celier@adacore.com>
21590
21591 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
21592 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
21593 Packages_To_Check.
21594
215952006-10-31 Vincent Celier <celier@adacore.com>
21596
21597 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
21598 on VMS, change "__" to '.' before checking the name.
21599 (Record_Ada_Source): Always add the source file name in the list of
21600 of sources, even if it is not the first time, as it is for another
21601 source index.
21602 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
21603 dot, instead of replacing only the first '_'.
21604
21605 * prj-part.adb (Parse): Convert project file path to canonical form
21606
21607 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
21608 extended, the project id of the project extending it is recorded in its
21609 data, even when it has already been processed as an imported project.
21610
216112006-10-31 Robert Dewar <dewar@adacore.com>
21612
21613 * repinfo.adb (List_Entities): Don't list entities from renaming
21614 declarations.
21615
216162006-10-31 Arnaud Charlet <charlet@adacore.com>
21617 Robert Dewar <dewar@adacore.com>
21618
21619 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
21620 only a restriction warning is active for the given restriction. This is
21621 desirable because we do not want to modify code in the case where only
21622 a warning is set.
21623 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
21624 causes overriding of real restrictions.
21625 Take advantage of new No_Restrictions constant.
21626
21627 * raise.h: (__gnat_set_globals): Change profile.
21628
216292006-10-31 Arnaud Charlet <charlet@adacore.com>
70198b9f 21630
6f7f72f9
EB
21631 * rtsfind.adb: Remove s-polint from comment as it exists no more.
21632
9e81dbc7 21633 * rtsfind.ads:
6f7f72f9
EB
21634 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
21635 Move all the entities in obsolete package System.PolyORB_Interface to
21636 System.Partition_Interface.
70198b9f
AC
21637 (RE_Storage_Size): New function in System.Tasking.
21638 (RE_Get_Ceiling): New entity.
21639 (RE_Set_Ceiling): New entity.
21640 (RO_PE_Get_Ceiling): New entity.
21641 (RO_RE_Set_Ceiling): New entity.
21642 (Inherit_CPP_DT): New entity
21643
216442006-10-31 Robert Dewar <dewar@adacore.com>
21645
21646 * scng.adb (Scan, case of numeric literal): Better msg for identifier
21647 starting with a digit.
21648
216492006-10-31 Ed Schonberg <schonberg@adacore.com>
21650 Thomas Quinot <quinot@adacore.com>
21651 Javier Miranda <miranda@adacore.com>
21652 Gary Dismukes <dismukes@adacore.com>
21653
21654 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
21655 properly an attempt to apply Unchecked_Access to a protected operation.
21656 (OK_Self_Reference): New subprogram to check the legality of an access
21657 attribute whose prefix is the type of an enclosing aggregate.
21658 Generalizes previous mechanism to handle attribute references nested
21659 arbitrarily deep within the aggregate.
21660 (Analyze_Access_Attribute): An access attribute whose prefix is a type
21661 can appear in an aggregate if this is a default-initialized aggregate
21662 for a self-referential type.
21663 (Resolve_Attribute, case Access): Ditto.
21664 Add support for new implementation defined attribute Stub_Type.
21665 (Eval_Attribute, case Attribute_Stub_Type): New case.
21666 (Analyze_Attribute, case Attribute_Stub_Type): New case.
21667 (Stream_Attribute_Available): Implement using new subprogram from
21668 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
21669 Has_Specified_Stream_Attribute flag.
21670 Disallow Storage_Size and Storage_Pool for access to subprogram
21671 (Resolve_Attribute, case 'Access et al): Take into account anonymous
21672 access types of return subtypes in extended return statements. Remove
21673 accessibility checks on anonymous access types when Unchecked_Access is
21674 used.
21675 (Analyze_Attribute): Add support for the use of 'Class to convert
21676 a class-wide interface to a tagged type.
21677 Add support for the attribute Priority.
21678 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
21679 whether the designated type is discriminated with a constrained partial
21680 view and require static matching in that case.
21681 Add local variable Des_Btyp. The Designated_Type
21682 of an access to incomplete subtype is either its non-limited view if
21683 coming from a limited with or its etype if regular incomplete subtype.
21684
21685 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
21686 Fix predicate to identify and allow cases of (expander-generated)
21687 references to tag of designated object of a RACW.
21688 (Validate_Static_Object_Name): In Ada 2005, a formal object is
21689 non-static, and therefore cannot appear as a primary in a preelaborable
21690 package.
21691 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
21692 Has_Read_Write_Attributes.
21693 (Has_Read_Write_Attributes): Reimplement in termes of
21694 Has_Stream_Attribute_Definition.
21695 (Missing_Read_Write_Attributes): When checking component types in a
21696 record, unconditionally call Missing_Read_Write_Attributes recursively
21697 (remove guard checking for Is_Record_Type / Is_Access_Type).
21698
216992006-10-31 Robert Dewar <dewar@adacore.com>
21700
21701 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
21702 useless assignments here and conditionalize it on absence of exception
21703 handlers.
21704 (Analyze_Exception_Handlers): Small code reorganization of error
21705 detection code, for new handling of formal packages.
21706
217072006-10-31 Ed Schonberg <schonberg@adacore.com>
21708 Hristian Kirtchev <kirtchev@adacore.com>
6f7f72f9
EB
21709
21710 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
70198b9f
AC
21711 that has been constant-folded, preserve information of original tree,
21712 for ASIS uses.
21713 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
21714 generated private extension declaration if the formal derived type is
21715 synchronized. Carry synchronized present over to the generated private
21716 extension.
21717 (Validate_Derived_Type_Instance): Ensure that the actual of a
21718 synchronized formal derived type is a synchronized tagged type.
21719 (Instantiate_Formal_Package): When creating the instantiation used to
21720 validate the actual package of a formal declared without a box, check
21721 whether the formal itself depends on a prior actual.
21722 (Instantiate_Formal_Subprogram): Create new entities for the defining
21723 identifiers of the formals in the renaming declaration, for ASIS use.
21724 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
21725 a renaming declaration or a subtype declaration for an actual in an
21726 instance, capture location information of declaration in generic, for
21727 ASIS use.
21728 (Instantiate_Formal_Package): Add comments on needed additional tests.
21729 AI-317 (partial parametrization) is fully implemented.
21730 (Validate_Private_Type_Instance): Add check for actual which
21731 must have preelaborable initialization
21732 Use new // insertion for some continuation messages
21733 (Analyze_Formal_Object_Declaration): Change usage of Expression to
21734 Default_Expression. Add type retrieval when the declaration has an
21735 access definition. Update premature usage of incomplete type check.
21736 (Check_Access_Definition): New subsidiary routine. Check whether the
21737 current compilation version is Ada 05 and the supplied node has an
21738 access definition.
21739 (Instantiate object): Alphabetize local variables. Handle the creation
21740 of new renaming declarations with respect to the kind of definition
21741 used - either an access definition or a subtype mark. Guard against
21742 unnecessary error message in the context of anonymous access types after
21743 they have been resolved. Add check for required null exclusion in a
21744 formal object declaration.
21745 (Switch_View): A private subtype of a non-private type needs to be
21746 switched (the base type can have been switched without its private
21747 dependents because of the last branch of Check_Private_View.
21748 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
21749 value from BT.
21750 (Instantiate_Type): Emit an error message whenever a class-wide type of
21751 a tagged incomplete type is used as a generic actual.
21752 (Find_Actual_Type): Extend routine to handle a component type in a child
21753 unit that is imported from a formal package in a parent.
21754 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
21755 agree on constrainedness, rather than checking against ultimate ancestor
21756 (Instantiate_Subprogram_Body): Create a cross-reference link to the
21757 generic body, for navigation purposes.
21758
217592006-10-31 Robert Dewar <dewar@adacore.com>
21760 Thomas Quinot <quinot@adacore.com>
21761
21762 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
21763 type.
21764 (New_Stream_Subprogram): When processing an attribute definition clause
21765 for a stream-oriented subprogram, record an entity node occurring at
21766 the point of clause to use for checking the visibility of the clause,
21767 as defined by 8.3(23) as amended by AI-195.
21768 (New_Stream_Subprogram): New procedure, factoring behaviour from both
21769 New_Stream_Function and New_Stream_Procedure.
21770 (New_Stream_Function, New_Stream_Procedure): Removed.
21771 (Analyze_Attribute_Definition_Clause, case Address): Check new
21772 Alignment_Check check
21773
217742006-10-31 Ed Schonberg <schonberg@adacore.com>
21775 Javier Miranda <miranda@adacore.com>
21776 Robert Dewar <dewar@adacore.com>
21777
21778 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
21779 generate the same errors compiling under -gnatc.
21780 (Try_Object_Operation): If no candidate interpretation succeeds, but
21781 there is at least one primitive operation with the right name, report
21782 error in call rather than on a malformed selected component.
21783 (Analyze_Selected_Component): If the prefix is an incomplete type from
21784 a limited view, and the full view is available, use the full view to
21785 determine whether this is a prefixed call to a primitive operation.
21786 (Operator_Check): Verify that a candidate interpretation is a binary
21787 operation before checking the type of its second formal.
21788 (Analyze_Call): Add additional warnings for function call contexts not
21789 yet supported.
21790 (Analyze_Allocator): Move the check for "initialization not allowed for
21791 limited types" after analyzing the expression. This is necessary,
21792 because OK_For_Limited_Init looks at the structure of the expression.
21793 Before analysis, we don't necessarily know what sort of expression it
21794 is. For example, we don't know whether F(X) is a function call or an
21795 indexed component; the former is legal in Ada 2005; the latter is not.
21796 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
21797 were missing. We also didn't handle qualified expressions. Now also
21798 allow function calls. Use new common routine OK_For_Limited_Init.
21799 (Analyze_Type_Conversion): Do not perform some legality checks in an
21800 instance, because the error message will be redundant or spurious.
21801 (Analyze_Overloaded_Selected_Component): Do not do style check when
21802 setting an entity, since we do not know it is the right entity yet.
21803 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
21804 (Analyze_Overloaded_Selected_Component): Same change
21805 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
21806 since regular incomplete subtypes are transformed into corresponding
21807 subtypes of their full views.
21808 (Complete_Object_Operation): Treat name of transformed subprogram call
21809 as coming from source, for browsing purposes.
21810 (Try_Primitive_Operation): If formal is an access parameter, compare
21811 with base type of object to determine whether it is a primitive
21812 operation.
21813 (Operator_Check): If no interpretation of the operator matches, check
21814 whether a use clause on any candidate might make the operation legal.
21815 (Try_Class_Wide_Operation): Check whether the first parameter is an
21816 access type whose designated type is class-wide.
21817
218182006-10-31 Robert Dewar <dewar@adacore.com>
21819 Ed Schonberg <schonberg@adacore.com>
21820 Gary Dismukes <dismukes@adacore.com>
21821
21822 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
21823 warn on infinite loops.
21824 Add \\ to some continuation messages
21825 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
21826 (Process_Bounds): If the bounds are integer literals that result from
21827 constant-folding, and they carry a user-defined type, preserve that type
21828 rather than treating this as an integer range.
21829 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
21830 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
21831 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
21832 left hand side of assignment.
21833 (Analyze_Assignment): Add suport to manage assigments to the attribute
21834 priority of a protected object.
21835 (Check_Possible_Current_Value_Condition): Allow fully qualified names
21836 not just identifiers.
21837 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
21838 or AND THEN for possible tracking.
21839 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
21840 case of while loops so we can track values in the loop body.
21841
218422006-10-31 Ed Schonberg <schonberg@adacore.com>
21843 Hristian Kirtchev <kirtchev@adacore.com>
21844 Bob Duff <duff@adacore.com>
6f7f72f9 21845
70198b9f
AC
21846 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
21847 procedure cannot be a protected operation (it is a basic_declaration,
21848 not a subprogram_declaration).
21849 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
21850 Subp. Add logic for entry processing.
21851 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
21852 Determine whether an entry or subprogram of a protected or task type
21853 override an inherited primitive of an implemented interface.
21854 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
21855 Update the actual used in calls to Check_Overriding_Indicator.
21856 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
21857 generate the proper reference to the parent unit, for cross-reference.
21858 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
21859 Is_Formal.
21860 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21861 (Add_Extra_Formal): Revise procedure to allow passing in associated
21862 entity, scope, and name suffix, and handle setting of the new
21863 Extra_Formals field.
21864 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
21865 pass new parameters. Add support for adding the new extra access formal
21866 for functions whose calls are treated as build-in-place.
21867 (Analyze_A_Return_Statement): Correct casing in error message.
21868 Move Pop_Scope to after Analyze_Function_Return, because an extended
21869 return statement really is a full-fledged scope. Otherwise, visibility
21870 doesn't work right. Correct use of "\" for continuation messages.
21871 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
21872 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
21873 the node doesn't get properly marked as analyzed.
21874 (Analyze_Subprogram_Body): If subprogram is a function that returns
21875 an anonymous access type that denotes a task, build a Master Entity
21876 for it.
21877 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
21878 proper usage of null exclusion in a result definition.
21879 (Process_Formals): Code cleanup and new error message.
21880 (Process_Formals): Detect incorrect application of null exclusion to
21881 non-access types.
21882 (Conforming_Types): Handle conformance between [sub]types and itypes
21883 generated for entities that have null exclusions applied to them.
21884 (Maybe_Primitive_Operation): Add an additional type retrieval when the
21885 base type is an access subtype. This case arrises with null exclusions.
21886 (New_Overloaded_Entity): Do not remove the overriden entity from the
21887 homonym chain if it corresponds with an abstract interface primitive.
21888 (Process_Formals): Replace membership test agains Incomplete_Kind with a
21889 call to the synthesized predicate Is_Incomplete_Type.
21890 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
21891 primitives.
21892 (Analyze_Subprogram_Declaration): Check that abstract interface
21893 primitives are abstract or null.
21894 (Analyze_Subprogram_Specification): Remove previous check for abstract
21895 interfaces because it was not complete.
21896 (Has_Interface_Formals): Removed.
21897
218982006-10-31 Ed Schonberg <schonberg@adacore.com>
21899 Javier Miranda <miranda@adacore.com>
21900
21901 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
21902 of Analyze_Package_Body, to create Itype references for anonymous
21903 access types created in the package declaration, whose designated types
21904 may have only a limited view.
21905 (Analyze_Package_Specification): For the private part of a nested
21906 package, install private_with_clauses of enclosing compilation unit if
21907 we are in its visible part.
21908 (Declare_Inherited_Private_Subprograms): Complete barrier
21909 to ensure that the primitive operation has an alias to some parent
21910 primitive. This is now required because, after the changes done for the
21911 implementation of abstract interfaces, the contents of the list of
21912 primitives has entities whose alias attribute references entities of
21913 such list of primitives.
21914 (Analyze_Package_Specification): Simplify code that handles parent units
21915 of instances and formal packages.
21916 (Uninstall_Declarations): Check the convention consistency among
21917 primitive overriding operations of a tagged record type.
21918
219192006-10-31 Robert Dewar <dewar@adacore.com>
21920 Hristian Kirtchev <kirtchev@adacore.com>
21921 Javier Miranda <miranda@adacore.com>
21922 Ed Schonberg <schonberg@adacore.com>
6f7f72f9 21923
70198b9f
AC
21924 * sem_ch8.adb: Minor error msg rewording
21925 (Undefined): When checking for misspellings, invert arguments (to get
21926 expected and found set right)
21927 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
21928 (Analyze_Generic_Renaming): Same fix
21929 (Use_One_Package): Do not take into account the internal entities of
21930 abstract interfaces during the analysis of entities that are marked
21931 as potentially use-visible.
21932 (Find_Type): Handle the case of an attribute reference for
21933 implementation defined attribute Stub_Type (simply let the analysis of
21934 the attribute reference rewrite it).
21935 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
21936 type that appears in a Use_Type clause.
21937 (Analyze_Object_Renaming): Add support for renaming of the Priority
21938 attribute.
21939 (Find_Type): In Ada 2005, a task type can be used within its own body,
21940 when it appears in an access definition.
21941 (Analyze_Object_Renaming): Remove warning on null_exclusion.
21942 (Analyze_Object_Renaming): Introduce checks for required null exclusion
21943 in a formal object declaration or in a subtype declaration.
21944 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
21945 (Check_Null_Exclusion): New local routine to
21946 Analyze_Subprogram_Renaming. Check whether the formals and return
21947 profile of a renamed subprogram have required null exclusions when
21948 their counterparts of the renaming already impose them.
21949 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
21950 Determine whether an entity is inside a generic scope.
21951 (In_Open_Scope): First pass of documentation update.
21952 (Find_Expanded_Name): Add support for shadow entities associated with
21953 limited withed packages. This is required to handle nested packages.
21954 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
21955 that makes a renaming of a limited withed package illegal.
21956
219572006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21958 Ed Schonberg <schonberg@adacore.com>
21959
21960 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
21961 Check_Overriding_Indicator.
21962 (Analyze_Task_Definition): Ditto.
21963 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
21964 (Check_Overriding_Indicator): To find overridden interface operation,
21965 examine only homonyms that have an explicit subprogram declaration, not
21966 inherited operations created by an unrelated type derivation.
21967 (Check_Overriding_Indicator): When checking for the presence of "null"
21968 in a procedure, ensure that the queried node is a procedure
21969 specification.
21970 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
21971 type when the formal is an access to variable.
21972 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
21973 (Analyze_Task_Type): Same addition
21974 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
21975 provide navigation capabilities for entries.
21976
219772006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21978 Ed Schonberg <schonberg@adacore.com>
21979 Javier Miranda <miranda@adacore.com>
21980 Gary Dismukes <dismukes@adacore.com>
21981
21982 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
21983 inherited from an interface ancestor by another interface in the
21984 context of an instance as 'late'.
21985 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
21986 of a call to a function that dispatches on access result.
21987 (Check_Dispatching_Operation): In case of late overriding of a primitive
21988 that covers abstract interface subprograms we register it in all the
21989 secondary dispatch tables associated with abstract interfaces.
21990 (Check_Dispatching_Call): Add check that a dispatching call is not made
21991 to a function with a controlling result of a limited type. This is a
21992 current implementation restriction.
21993 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
21994 (Check_Dispatching_Operation): Do no emit a warning if the controlling
21995 argument is an interface type that is a generic formal.
21996 (Is_Interface_Subprogram): Removed.
21997 (Check_Dispatching_Operation): If the subprogram is not a dispatching
21998 operation, check the formals to handle the case in which it is
21999 associated with an abstract interface type.
22000
220012006-10-31 Robert Dewar <dewar@adacore.com>
22002 Ed Schonberg <schonberg@adacore.com>
22003
22004 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
22005 Add new calls to this procedure during traversal
22006 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
22007 another unit if expansion is disabled.
22008
220092006-10-31 Robert Dewar <dewar@adacore.com>
22010
22011 * sem_eval.adb (Compile_Time_Compare): Make use of information from
22012 Current_Value in the conditional case, to evaluate additional
22013 comparisons at compile time.
22014
220152006-10-31 Ed Schonberg <schonberg@adacore.com>
22016 Hristian Kirtchev <kirtchev@adacore.com>
22017 Javier Miranda <miranda@adacore.com>
22018
22019 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
22020 subprogram type to provide better diagnostics in case of ambiguity.
22021 (Covers): Handle coverage of formal and actual anonymous access types in
22022 the context of generic instantiation.
22023 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
22024 abstract interface types; this is required to handle concurrent types
22025 with discriminants and abstract interface types.
22026 (Covers): Include type coverage of both regular incomplete subtypes and
22027 incomplete subtypes of incomplete type visibles through a limited with
22028 clause.
22029
220302006-10-31 Robert Dewar <dewar@adacore.com>
22031 Hristian Kirtchev <kirtchev@adacore.com>
22032 Ed Schonberg <schonberg@adacore.com>
6f7f72f9
EB
22033
22034 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
70198b9f
AC
22035 messages for entities in packages which are not used.
22036 (Collect_Synchronized_Interfaces): New procedure.
22037 (Overrides_Synchronized_Primitive): New function.
22038 (Denotes_Discriminant): Extend predicate to apply to task types.
22039 Add missing continuation marks in error msgs
22040 (Unqualify): New function for removing zero or more levels of
22041 qualification from an expression. There are numerous places where this
22042 ought to be used, but we currently only deal properly with zero or one
22043 level.
22044 (In_Instance); The analysis of the actuals in the instantiation of a
22045 child unit is not within an instantiation, even though the parent
22046 instance is on the scope stack.
22047 (Safe_To_Capture_Value): Exclude the case of variables that are
22048 renamings.
22049 (Check_Obsolescent): Removed
22050 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
22051 is an aliased view, even when rewritten as a reference to the target
22052 object in an assignment.
22053 (Get_Subprogram_Entity): New function
22054 (Known_To_Be_Assigned): New function
22055 (Type_Access_Level): Compute properly the access level of a return
22056 subtype that is an anonymous access type.
22057 (Explain_Limited_Type): Correct use of "\" for continuation messages.
22058 (Is_Transfer): The new extended_return_statement causes a transfer of
22059 control.
22060 (Has_Preelaborable_Initialization): New function
22061 (Has_Null_Exclusion): New function. Given a node N, determine whether it
22062 has a null exclusion depending on its Nkind.
22063 Change Is_Lvalue to May_Be_Lvalue
22064 (May_Be_Lvalue): Extensive additional code to deal with subprogram
22065 arguments (IN parameters are not Lvalues, IN OUT parameters are).
22066 (Safe_To_Capture_Value): Extend functionality so it can be used for
22067 the current value condition case.
22068 (Has_Compatible_Alignment): New function
22069 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
22070 objects to handle the Ada 2005 case, where aliasedness no longer implies
22071 that the object is constrained. In particular, for dereferenced names,
22072 the designated object must be assumed to be unconstrained.
22073 (Kill_Current_Values): Properly deal with the case where we encounter
22074 a loop in the scope chain.
22075 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
22076 a value.
22077 (Compile_Time_Constraint_Error): Improve error message in error case
22078
22079 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
22080 associated with entities of abstract interface primitives.
22081 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
22082
220832006-10-31 Robert Dewar <dewar@adacore.com>
22084
9e81dbc7 22085 * s-osinte-tru64.adb:
70198b9f
AC
22086 Mark Asm statements Volatile to prevent warnings (seems a
22087 reasonable change anyway)
22088 Fixes new warnings
22089
22090 * s-mastop-irix.adb: Add Volatile to Asm statements
22091 Suppresses warning, and seems appropriate in any case
22092
22093 * s-osinte-vms.adb: Add Volatile to Asm statement
22094
22095 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
22096
22097 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
22098 returned.
22099 Add call to Check_Code_Statement
22100
221012006-10-31 Robert Dewar <dewar@adacore.com>
22102 Ed Schonberg <schonberg@adacore.com>
22103 Bob Duff <duff@adacore.com>
22104
22105 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
22106 Synchronized_Present): Add Formal_Derived_Type_Definition and
22107 Private_Extension_Declaration to the list of assertions.
22108 (Is_Entry_Barrier_Function): New flag
22109 (Has_Self_Reference): New flag on aggregates, to indicate that they
22110 contain a reference to the enclosing type, inserted through a default
22111 initialization.
22112 (Next_Rep_Item): Move from Node4 to Node5.
22113 (Entity): Add this field for N_Attribute_Definition_Clause.
22114 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
22115 (N_Return_Object_Declaration): Remove this node kind. We now use
22116 N_Object_Declaration instead.
22117 (Actual_Designated_Subtype): Move to a different place to make room in
22118 N_Extended_Return_Statement.
22119 (Procedure_To_Call): Move to a different place to make room in
22120 N_Extended_Return_Statement.
22121 (Return_Type): Removed this field to make room in return statements
22122 (both kinds).
22123 (Return_Statement_Entity): New field in return statements, in part to
22124 replace Return_Type, and in part to support the fact that return
22125 statements are now pushed on the scope stack during semantic analysis.
22126 (Return_Object_Declarations): New field to support extended return
22127 statements.
22128 (N_Extended_Return_Statement): New node for extended_return_statement
22129 nonterminal.
22130 (N_Return_Object_Declaration): New node for part of
22131 extended_return_statement nonterminal. Needed because all the necessary
22132 fields won't fit in N_Extended_Return_Statement.
22133 Generic_associations now carry the Box_Present flag, to indicate a
22134 default for an actual in a partially parametrized formal package.
22135
6f7f72f9 22136 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
70198b9f
AC
22137 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
22138 and for the new predefined dispatching policies: EDF_Across_Priorities,
22139 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
22140 Introduce new name Stub_Type for implementation defined attribute.
22141 Add pragma Preelaborable_Initialization
22142 Add entry for Priority attribute.
22143 Add Pragma_Wide_Character_Encoding
22144 (Get_Convention_Name): Given a convention id, this function returns the
22145 corresponding name id from the names table.
22146
221472006-10-31 Ed Schonberg <schonberg@adacore.com>
22148 Robert Dewar <dewar@adacore.com>
22149 Bob Duff <duff@adacore.com>
22150
22151 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
22152 print null exclusion twice in the case of an access definition,
22153 Implement new -gnatL switch
22154 Remove N_Return_Object_Declaration. We now use
22155 N_Object_Declaration instead. Implement the case for
22156 N_Extended_Return_Statement. Alphabetize the cases.
22157 Add cases for new nodes N_Extended_Return_Statement and
22158 N_Return_Object_Declaration. The code is not yet written.
22159 Update the output for N_Formal_Object_Declaration
22160 and N_Object_Renaming_Declaration.
22161 (Write_Itype): Account for the case of a modular integer subtype whose
22162 base type is private.
22163
221642006-10-31 Arnaud Charlet <charlet@adacore.com>
22165
22166 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
22167 Remove elaboration code, now done in the binder.
22168
22169 * s-rident.ads: Make this unit Preelaborate.
22170 (No_Restrictions): New constant used to clean up code and follow
22171 preelaborate constraints.
22172
9e81dbc7 22173 * s-stalib.adb:
70198b9f
AC
22174 Add System.Restrictions dependence, referenced directly from the
22175 binder generated file.
22176
221772006-10-31 Gary Dismukes <dismukes@adacore.com>
22178
22179 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
22180 True when AAMP extended floating-point is in use (48-bit). Change type
22181 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
22182 the two byte array types on AFloat. Change type of IV_Ilf overlay
22183 variable from Byte8 to ByteLF. Add appropriate initializations of
22184 floating-point overlays for AAMP cases.
22185
221862006-10-31 Javier Miranda <miranda@adacore.com>
22187
22188 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
22189 (Get_Ceiling): New subprogram that returns
22190 the ceiling priority of the protected object.
22191 (Set_Ceiling): New subprogram that sets the new ceiling priority of
22192 the protected object.
22193
22194 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
22195
22196 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
22197
221982006-10-31 Jose Ruiz <ruiz@adacore.com>
22199
22200 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
22201 requeuing to the same protected object to give higher priority tasks
22202 the opportunity to execute.
22203
222042006-10-31 Robert Dewar <dewar@adacore.com>
22205
22206 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
22207 add more precise check for the character sequence that follows '[' to
22208 avoid possible confusion in case if '[' is the last character of a
22209 string literals.
22210 (Scan_Wide): Always allow brackets encoding
22211
222122006-10-31 Olivier Hainque <hainque@adacore.com>
22213
22214 * s-stchop.ads: make this unit preelaborate. This is desirable in
22215 general and made mandatory by the use of this unit by s-taprop which
22216 is itself preelaborate.
22217
22218 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
22219 Td_Events component.
22220
222212006-10-31 Vincent Celier <celier@adacore.com>
22222
22223 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
22224 in file names.
22225
222262006-10-31 Vincent Celier <celier@adacore.com>
22227
22228 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
22229
222302006-10-31 Vincent Celier <celier@adacore.com>
22231
22232 * makegpr.adb (Check_Compilation_Needed): Take into account path names
22233 with spaces.
22234 (Check_Compilation_Needed): When checking a C or C++ source, do not
22235 resolve symbolic links.
22236 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
22237 When not in verbose mode and Ellipse is True, display "..." for the
22238 first argument with Display set to False.
22239 (Build_Global_Archive): Always set Display True for the first object
22240 file. Call Display_Command with Ellipse set to True.
22241
222422006-10-31 Matt Heaney <heaney@adacore.com>
22243
22244 * a-crbtgo.ads: Commented each subprogram
22245
22246 * a-crbtgo.adb: Added reference to book from which algorithms were
22247 adapted.
22248
6f7f72f9 22249 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
70198b9f
AC
22250 indicate which child.
22251 (Generic_Conditional_Insert): changed parameter name from "Success" to
22252 "Inserted".
22253 (Generic_Unconditional_Insert_With_Hint): improved algorithm
22254
22255 * a-coorse.adb (Replace_Element): changed parameter name in call to
22256 conditional insert operation.
22257
22258 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
22259
22260 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
22261 Generic_Iteration
22262
22263 * a-ciorse.adb (Replace_Element): changed parameter name in call to
22264 conditional insert operation.
22265
22266 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
22267 Generic_Iteration.
22268
22269 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
22270 instead of mode inout.
22271
22272 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
22273 draft
22274 (Generic_Read): preserve existing buckets array if possible
22275 (Generic_Write): don't send buckets array length anymore
22276
22277 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
22278 instead of mode inout.
22279
22280 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
22281 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22282
22283 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
22284 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22285 (Replace_Element): local operation is now an instantiation
22286
22287 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
22288 check current length.
22289 (Generic_Replace_Element): new operation
22290
222912006-10-31 Doug Rupp <rupp@adacore.com>
22292
22293 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
22294 Call TBK$SYMBOLIZE without omitting parameters.
22295
222962006-10-31 Vincent Celier <celier@adacore.com>
22297
22298 * symbols-processing-vms-ia64.adb,
22299 symbols-processing-vms-alpha.adb (Process): Do not include symbols
22300 that come from generic instantiations in bodies.
22301
223022006-10-31 Pat Rogers <rogers@adacore.com>
22303
9e81dbc7 22304 * a-rttiev.ads, a-rttiev.adb:
70198b9f
AC
22305 This is a significant redesign primarily for the sake of automatic
22306 timer task termination but also to fix a design flaw.
22307 Therefore we are now using an RTS lock, instead of a protected
22308 object, to provide mutual exclusion to the queue of pending events
22309 and the type Timing_Event is no longer a protected type.
22310
223112006-10-31 Robert Dewar <dewar@adacore.com>
22312 Cyrille Comar <comar@adacore.com>
22313 Ben Brosgol <brosgol@adacore.com>
22314
22315 * debug.adb: Update flags documentation
22316
6f7f72f9
EB
22317 * gnat_ugn.texi: Add documentation for new -gnatwq switch
22318 Clean up documentation for several other warning switches
22319 Clarify how task stack size can be specified with various
22320 versions of Windows.
22321 Add note that -gnatVo includes ranges including loops
70198b9f
AC
22322 Add documentation for -gnatL switch
22323 Add note on elaboration warning for initializing variables
22324 Add documentation for new -gnatwt warning switch
22325 Document new form of pragma Warnings (On|Off, string)
22326 Add comment on use of pragma Warnings to control warnings
22327 Add documentation for -gnatjnn switch
22328 Modify section on interfacing with C for VMS 64-bit.
22329 Add doc for -gnatVe/E
22330 Add documentation of new warning flags -gnatww/-gnatwW
22331 Add warnings about address clause overlays to list of warnings
22332 (Exception Handling Control): Document that the option --RTS must be
22333 used consistently for gcc and gnatbind.
22334 Clarify that inlining is not always possible
22335 Update documentation on pragma Unchecked_Union.
22336
9e81dbc7 22337 * gnat_rm.texi:
70198b9f
AC
22338 Add documentation for new extended version of pragma Obsolescent
22339 Add documentation for implementation defined attribute 'Stub_Type.
22340 Add note on use of Volatile in asm statements
22341 Add documentation on use of pragma Unreferenced in context clause
22342 Document new form of pragma Warnings (On|Off, pattern)
22343 Document pragma Wide_Character_Encoding
22344 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
22345 enforced if code generation is active.
22346 Add section on pragma Suppress to document GNAT specific check
22347 Alignment_Check
22348 Clarify difference between No_Dispatching_Calls & No_Dispatch.
22349 Add documentation for pragma Restrictions (No_Elaboration_Code)
22350
9e81dbc7 22351 * gnat-style.texi:
70198b9f
AC
22352 Add comments on layout of subprogram local variables in the
22353 presence of nested subprograms.
22354
6f7f72f9 22355 * ug_words: Resync.
70198b9f
AC
22356
22357 * elists.ads: Minor reformatting
22358 Node returns Node_Or_Entity_Id (doc change only)
22359
22360 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
22361
22362 * g-arrspl.ads (Create): Update comments.
22363
22364 * sem.ads: Add details on the handling of the scope stack.
22365
6f7f72f9 22366 * usage.adb: Update documentation.
70198b9f 22367
9e81dbc7 22368 * validsw.ads, validsw.adb:
70198b9f
AC
22369 Add definition of Validity_Check_Components and implement -gnatVe/E
22370
6f7f72f9 22371 * vms_data.ads: Add missing VMS qualifiers.
70198b9f
AC
22372
22373 * s-addope.ads: Add documentation on overflow and divide by zero
22374
223752006-10-31 Robert Dewar <dewar@adacore.com>
22376 Thomas Quinot <quinot@adacore.com>
22377 Arnaud Charlet <charlet@adacore.com>
22378
22379 * fmap.adb: Put routines in alpha order
22380
22381 * g-boumai.ads: Remove redundant 'in' keywords
22382
22383 * g-cgi.adb: Minor reformatting
22384
22385 * g-cgi.ads: Remove redundant 'in' keywords
22386
22387 * get_targ.adb: Put routines in alpha order
22388
22389 * prj-attr.ads: Minor reformatting
22390
22391 * s-atacco.ads: Minor reformatting
22392
22393 * scn.adb: Put routines in alpha order
22394
22395 * sinput-l.adb: Minor comment fix
22396
22397 * sinput-p.adb: Minor comment fix
22398
22399 * s-maccod.ads: Minor reformatting
22400
22401 * s-memory.adb: Minor reformatting
22402
22403 * s-htable.adb: Fix typo in comment.
22404
22405 * s-secsta.adb: Minor comment update.
22406
22407 * s-soflin.adb: Minor reformatting
22408
9e81dbc7 22409 * s-stoele.ads:
70198b9f
AC
22410 Add comment about odd qualification in Storage_Offset declaration
22411
9e81dbc7 22412 * s-strxdr.adb:
70198b9f
AC
22413 Remove unnecessary 'in' keywords for formal parameters.
22414
22415 * treeprs.adt: Minor reformatting
22416
22417 * urealp.adb: Put routines in alpha order
22418
22419 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
22420 taking string.
22421
22422 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22423
22424 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
22425
22426 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
22427 workaround as on other platforms.
22428
22429 * g-eacodu-vms.adb: Remove redundant 'in' keywords
22430 * g-expect-vms.adb: Remove redundant 'in' keywords
22431
22432 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
22433 clear error message if the list-of-files file cannot be opened.
22434
22435 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
22436 equality operator is always visible.
22437
22438 * lang.opt: Woverlength-strings: New option.
22439
9e81dbc7 22440 * nmake.adt:
70198b9f
AC
22441 Update copyright, since nmake.ads and nmake.adb have changed.
22442
22443 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
22444 (Binder_Output_Time_Stamps_Set): removed.
22445 (Old_Binder_Output_Time_Stamp): idem.
22446 (New_Binder_Output_Time_Stamp): idem.
22447 (Recording_Time_From_Last_Bind): idem.
22448 (Recording_Time_From_Last_Bind): Make constant.
22449
22450 * output.ads, output.adb (Write_Str): Allow LF characters
22451 (Write_Spaces): New procedure
22452
22453 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
22454
22455 * inline.adb: Minor reformatting
22456
22457 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22458
22459 * s-mastop-vms.adb: Remove redundant 'in' keywords
22460
22461 * s-osprim-vms.adb: Remove redundant 'in' keywords
22462
22463 * s-trafor-default.adb: Remove redundant 'in' keywords
22464
22465 * 9drpc.adb: Remove redundant 'in' keywords
22466
22467 * s-osinte-mingw.ads: Minor reformatting
22468
22469 * s-inmaop-posix.adb: Minor reformatting
22470
22471 * a-direio.ads: Remove quotes from Compile_Time_Warning message
22472
22473 * a-exexda.adb: Minor code reorganization
22474
22475 * a-filico.adb: Minor reformatting
22476
22477 * a-finali.adb: Minor reformatting
22478
22479 * a-nudira.ads: Remove quote from Compile_Time_Warning message
22480
22481 * a-numeri.ads: Minor reformatting
22482
22483 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
22484
22485 * exp_pakd.ads: Fix obsolete comment
22486
22487 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
22488 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
22489 Probably not a bug, but certainly neater and more efficient.
22490
22491 * a-tienio.adb: Minor reformatting
22492
22493 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
22494 Avoid assuming low bound of string is 1.
22495
22496 * gnatbind.adb: Change Bindusg to package and rename procedure as
22497 Display, which now ensures that it only outputs usage information once.
22498 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
22499
22500 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
22501 Table'First.
22502
22503 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
22504 warning.
22505 (Match): Add pragma Assert to ensure that Matches'First is zero
22506
22507 * g-regpat.ads (Match): Document that Matches lower bound must be zero
22508
22509 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
22510 documented preconditions (also kills warnings about bad indexes).
22511
22512 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
22513 is 1.
22514 (Build_Import_Library): Ditto;
22515
22516 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
22517
22518 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
22519
22520 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
22521 lower bound of choice table is 1.
22522
22523 * sem_case.ads (Analyze_Choices): Document that lower bound of
22524 Choice_Table is 1.
22525
22526 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
22527 string is 1.
22528
22529 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
22530 and add appropriate Assert pragma to suppress warnings.
22531
22532 * atree.h, atree.ads, atree.adb
22533 Change Elist24 to Elist25
22534 Add definitions of Field28 and Node28
22535 (Traverse_Field): Use new syntactic parent table in sinfo.
22536
22537 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22538
22539 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22540
22541 * exp_tss.adb: Put routines in alpha order
22542
22543 * fe.h: Remove redundant declarations.
22544
719bb4e3 225452006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
ed41063a 22546
c79efc4d
RÁE
22547 * utils.c (builtin_function): Rename to gnat_builtin_function.
22548 Move common code to add_builtin_function.
22549 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
22550 gnat_builtin_function.
22551 * gigi.h (builtin_function): Rename to gnat_builtin_function.
22552 Change the signature.
22553
a8384928
BM
225542006-10-16 Brooks Moses <bmoses@stanford.edu>
22555
22556 * Makefile.in: Add TEXI2PDF definition.
22557 * Make-lang.in: Add "ada.pdf" target.
22558
2285b053
KH
225592006-10-03 Kazu Hirata <kazu@codesourcery.com>
22560
22561 * decl.c, utils.c: Fix comment typos.
c0a69967
KH
22562 * utils.c: Fix a typo.
22563
b55e7f34
EB
225642006-09-28 Eric Botcazou <ebotcazou@adacore.com>
22565
22566 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
22567 on "pure" Ada subprograms if SJLJ exceptions are used.
22568 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
22569 on the declaration node of JMPBUF_SAVE.
22570 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
22571 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
22572 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
22573
9e94c78f 225742006-08-20 Laurent Guerby <laurent@guerby.net>
d2b40c09 22575
7a197678
EB
22576 PR ada/28716
22577 g-socket.adb (Bind_Socket): Call Set_Address.
22578
41d9adc7
EB
225792006-09-15 Eric Botcazou <ebotcazou@adacore.com>
22580
22581 PR ada/15802
22582 * decl.c (same_discriminant_p): New static function.
22583 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
22584 subtype and we have discriminants, fix up the COMPONENT_REFs
22585 for the discriminants to make them reference the corresponding
22586 fields of the parent subtype after it has been built.
22587
21cc3719
RS
225882006-09-15 Roger Sayle <roger@eyesopen.com>
22589
22590 PR ada/18817
22591 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
22592 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
22593
6f2789da
OH
225942006-09-13 Olivier Hainque <hainque@adacore.com>
22595
22596 PR ada/29025
22597 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
22598 of a SAVE_EXPR, just make the operand addressable/not-readonly and
22599 let the common gimplifier code make and propagate a temporary copy.
22600 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
22601 out/in-out actuals and defer setting the addressable/readonly bits
22602 to the gimplifier.
22603
efaa616e
EB
226042006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22605
22606 PR ada/28591
22607 * decl.c (components_to_record): Defer emitting debug info for the
22608 record type associated with the variant until after we are sure to
22609 actually use it.
22610
2655f1c6
EB
226112006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22612
22613 PR ada/21952
22614 * gigi.h (gnat_internal_attribute_table): Declare.
22615 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
22616 * utils.c (gnat_internal_attribute_table): New global variable.
22617 (builtin_function): Always call decl_attributes on the builtin.
22618 (handle_const_attribute): New static function.
22619 (handle_nothrow_attribute): Likewise.
22620
48779194
VR
226212006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
22622
22623 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
22624
8df7d439
EB
226252006-06-23 Olivier Hainque <hainque@adacore.com>
22626
22627 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
22628 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
22629
83fdc7c4 226302006-06-20 James A. Morrison <phython@gcc.gnu.org>
6f7f72f9 22631 Eric Botcazou <ebotcazou@adacore.com>
83fdc7c4
JM
22632
22633 PR ada/18692
22634 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
22635 check-gnat into check-acats.
22636
5f516f59
KB
226372006-06-17 Karl Berry <karl@gnu.org>
22638
6f7f72f9 22639 * gnat-style.texi (@dircategory): Use "Software development"
5f516f59
KB
22640 instead of "Programming", following the Free Software Directory.
22641
ce0d1b88
JDA
226422006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22643
22644 PR ada/27944
22645 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
22646
9e94c78f 226472006-06-06 Laurent Guerby <laurent@guerby.net>
8c60f779 22648
6f7f72f9
EB
22649 PR ada/27769
22650 mlib-utl.adb: Use Program_Name.
22651
ce2e12c2
KH
226522006-05-28 Kazu Hirata <kazu@codesourcery.com>
22653
22654 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
22655 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
22656 trans.c, utils.c: Fix comment typos. Follow spelling
22657 conventions.
22658 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
22659 conventions.
22660
ba4ac682
EB
226612006-05-19 Nicolas Setton <setton@adacore.com>
22662
22663 * misc.c (gnat_dwarf_name): New function.
22664 (LANG_HOOKS_DWARF_NAME): Define to it.
22665
05b44921
L
226662006-05-14 H.J. Lu <hongjiu.lu@intel.com>
22667
22668 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
22669 (ada/misc.o): Likewise.
22670 (ada/utils.o): Likewise.
22671
a3bd7058
AJ
226722006-04-08 Aurelien Jarno <aurel32@debian.org>
22673
22674 * Makefile.in: Add Ada support for GNU/kFreeBSD.
22675 * s-osinte-kfreebsd-gnu.ads: New file.
22676
ad3a7ce3
CD
226772006-03-29 Carlos O'Donell <carlos@codesourcery.com>
22678
22679 * Make-lang.in: Rename docdir to gcc_docdir.
22680
936a6fa7
EB
226812006-03-04 Eric Botcazou <ebotcazou@adacore.com>
22682
22683 * gigi.h (get_ada_base_type): Delete.
22684 * utils2.c (get_ada_base_type): Likewise.
22685 * trans.c (convert_with_check): Operate in the real base type.
22686
93f978b7
RK
226872006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22688
22689 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
22690
434aeebb
RS
226912006-03-02 Richard Sandiford <richard@codesourcery.com>
22692
22693 * utils.c (create_var_decl): Use have_global_bss_p when deciding
22694 whether to make the decl common.
22695
719bb4e3 226962006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
93f978b7 22697
ed41063a 22698 * Make-lang.in (Ada): Remove.
9d29a5b7
RE
22699 (.PHONY): Remove Ada
22700
c63f730e
AC
227012006-02-17 Ed Schonberg <schonberg@adacore.com>
22702
22703 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
22704 aggregate, check the interpretations of the other operand to find one
22705 that may be a boolean array.
22706
22707 (Analyze_Selected_Component): Fix flow-of-control typo in case where
22708 the prefix is a private extension.
22709
227102006-02-17 Eric Botcazou <botcazou@adacore.com>
22711
22712 PR ada/26315
c63f730e
AC
22713 * utils2.c (find_common_type): If both input types are BLKmode and
22714 have the same constant size, keep using the first one.
22715
22716 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
22717
22718 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
22719
22720 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
22721
227222006-02-17 Jose Ruiz <ruiz@adacore.com>
22723
9e81dbc7
AS
22724 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22725 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
22726 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
c63f730e
AC
22727 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
22728 Abort_Defer/Undefer pairs to avoid the possibility of a task being
22729 aborted while owning a lock.
22730
227312006-02-17 Javier Miranda <miranda@adacore.com>
22732 Robert Dewar <dewar@adacore.com>
22733
22734 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
22735 through an access to class-wide interface we force the displacement of
22736 the pointer to the allocated object to reference the corresponding
22737 secondary dispatch table.
22738 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
22739 if Long_Shifts are supported on the target, even if 64 bit divides
22740 are not supported (configurable run time mode).
22741 (Expand_N_Type_Conversion): Do validity check if validity checks on
22742 operands are enabled.
22743 (Expand_N_Qualified_Expression): Do validity check if validity checks
22744 on operands are enabled.
22745
227462006-02-17 Ed Schonberg <schonberg@adacore.com>
22747
22748 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
22749 must be materialized when the renamed expression is an explicit
22750 dereference.
22751
227522006-02-17 Ed Schonberg <schonberg@adacore.com>
22753
22754 * freeze.adb (Statically_Discriminated_Components): Return false if
22755 the bounds of the type of the discriminant are not static expressions.
22756
22757 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
22758 the bounds of the discriminant type are not static.
22759
227602006-02-17 Robert Dewar <dewar@adacore.com>
22761
22762 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
22763 then we close To if it is valid.
22764
227652006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
22766
22767 * init.c (facility_resignal_table): new array
22768 (__gnat_default_resignal_p): enhance default predicate to resignal if
22769 VMS condition has one of the predefined facility codes.
22770
227712006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
22772
22773 * Makefile.in: Use VMS64 specialized versions of several units in
22774 Interfaces.C hierarchy to be compatible with HP C default size choices.
22775 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
22776
227772006-02-17 Ed Schonberg <schonberg@adacore.com>
22778
22779 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
22780 instantiation, the corresponding entity is the related_instance of the
22781 wrapper package created for the instance.
22782
227832006-02-17 Ed Schonberg <schonberg@adacore.com>
22784
22785 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
22786 the current instance is nested within another instance in a child unit.
22787
227882006-02-17 Javier Miranda <miranda@adacore.com>
22789 Ed Schonberg <schonberg@adacore.com>
22790
22791 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
22792 type we cannot inherit the primitive operations; we inherit the
22793 Corresponding_Record_Type (which has the list of primitive operations).
22794 (Check_Anonymous_Access_Types): When creating anonymous access types for
22795 access components, use Rewrite in order to preserve the tree structure,
22796 for ASIS use.
22797 (Analyze_Object_Declaration): For limited types with access
22798 discriminants with defaults initialized by an aggregate, obtain
22799 subtype from aggregate as for other mutable types.
22800 (Derived_Type_Declaration): If the derived type is a limited interface,
22801 set the corresponding flag (Is_Limited_Record is not sufficient).
22802
228032006-02-17 Ed Schonberg <schonberg@adacore.com>
22804
22805 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
22806 to inline a function that returns an unconstrained type, the return
22807 expression must be the first variable declared in the body of the
22808 function.
22809
228102006-02-17 Javier Miranda <miranda@adacore.com>
22811
22812 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
22813 abstract interface type, the static analysis is not enough to know if
22814 the interface is implemented or not by the source tagged type. Hence
22815 we must pass the work to the expander to generate the required code to
22816 evaluate the conversion at run-time.
22817 (Resolve_Equality_Op): Do not apply previous
22818 transformation if expansion is disasbled, to prevent anomalies when
22819 locating global references in a generic unit.
22820
228212006-02-17 Vincent Celier <celier@adacore.com>
22822
22823 * snames.ads, snames.adb: New standard names for new project attributes:
22824 archive_builder, archive_indexer, compiler_pic_option,
22825 config_body_file_name, config_body_file_name_pattern,
22826 config_file_switches, config_file_unique, config_spec_file_name,
22827 config_spec_file_name_pattern, default_builder_switches,
22828 default_global_compiler_switches, default_language,
22829 dependency_file_kind, global_compiler_switches, include_path,
22830 include_path_file, language_kind, linker_executable_option,
22831 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
22832 roots, runtime_project.
22833
228342006-02-17 Matthew Heaney <heaney@adacore.com>
22835
9e81dbc7 22836 * a-convec.ads, a-convec.adb:
c63f730e
AC
22837 (operator "&"): handle potential overflow for large index types
22838 (Insert): removed Contraint_Error when using large index types
22839 (Insert_Space): removed Constraint_Error for large index types
22840 (Length): moved constraint check from Length to Insert
22841
22842 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
22843 as not null access.
22844 Explicit raise statements now include an exception message.
22845 (operator "&"): handle potential overflow for large index types
22846 (Insert): removed Contraint_Error when using large index types
22847 (Insert_Space): removed Constraint_Error for large index types
22848 (Length): moved constraint check from Length to Insert
22849
228502006-02-17 Robert Dewar <dewar@adacore.com>
22851
22852 * s-wchcnv.adb: Document handling of [ on output (we do not change
22853 this to ["5B"] and the new comments say why not.
22854
9e81dbc7 22855 * gnat_ugn.texi:
c63f730e
AC
22856 Add note for -gnatVo that this now includes the cases of type
22857 conversions and qualified expressions.
22858 Add comments on handling of brackets encoding for Text_IO
22859
228602006-02-17 Ramon Fernandez <fernandez@adacore.com>
22861 Thomas Quinot <quinot@adacore.com>
22862 Robert Dewar <dewar@adacore.com>
22863 Javier Miranda <miranda@adacore.com>
22864
22865 * expander.adb: Fix typo in comment
22866
22867 * exp_pakd.adb: Fix typo
22868 Minor comment reformatting.
22869
22870 * g-dyntab.adb: Minor reformatting
22871
22872 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
22873 aliased subprograms to look for the abstract interface subprogram.
22874
fd7927cd
EB
228752006-02-16 Eric Botcazou <ebotcazou@adacore.com>
22876
22877 * env.c (__gnat_setenv): Use size_t.
22878 (__gnat_unsetenv): Likewise.
22879 (__gnat_clearenv): Likewise.
22880
3f806915
AC
228812006-02-16 Arnaud Charlet <charlet@adacore.com>
22882
22883 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
22884
cc26ad97
AC
228852006-02-13 Arnaud Charlet <charlet@adacore.com>
22886
22887 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
22888 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
22889 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
22890 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
22891 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
22892 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
22893 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
22894 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
22895 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
22896 no longer used.
22897
228982006-02-13 Jose Ruiz <ruiz@adacore.com>
22899
22900 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
22901 protection against race conditions is not needed.
22902 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
22903 fallback handler.
22904 (Set_Specific_Handler): Add mutual exclusive access to the specific
22905 handler.
22906 (Specific_Handler): Add mutual exclusive access for retrieving the
22907 specific handler.
22908
22909 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
22910 back handler.
22911
22912 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
22913 Fall_Back_Handler and Specific_Handler.
22914
22915 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
22916 termination handlers.
22917 Set two different owerflow depending on the maximal stack size.
22918
22919 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
22920 protection against race conditions is not needed when executing the
22921 task termination handler.
22922
229232006-02-13 Robert Dewar <dewar@adacore.com>
22924
22925 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
22926 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
22927 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22928 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
22929 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
22930 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
22931 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
22932 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
22933 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
22934 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
22935 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
22936 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
22937 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
22938 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
22939 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
22940 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
22941 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
22942 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
22943 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
22944 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
22945 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
22946 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
22947 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
22948 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
22949 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
22950 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
22951 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
22952 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
22953 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
22954 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
22955 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
22956 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
22957 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
22958 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
22959 reformatting.
22960
229612006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
22962
22963 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
22964 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
22965 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
22966 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
22967 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
22968 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
22969 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
22970 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
22971 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
22972
229732006-02-13 Arnaud Charlet <charlet@adacore.com>
22974
9e81dbc7
AS
22975 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
22976 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
22977 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
22978 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
22979 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
cc26ad97
AC
22980 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
22981 replaced by anonymous access type.
22982 (pthread_sigmask): Now take an access sigset_t
22983
22984 * s-osinte-hpux.ads: Ditto.
22985 (pthread_mutex_t, pthread_cond_t): Update definitions to support
22986 properly 32 and 64 bit ABIs.
22987
229882006-02-13 Pascal Obry <obry@adacore.com>
22989
9e81dbc7
AS
22990 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
22991 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
cc26ad97
AC
22992 s-taprop-linux.adb, s-taprop-solaris.adb,
22993 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
22994 adjustement is already done when calling this routine.
22995
229962006-02-13 Pascal Obry <obry@adacore.com>
22997
22998 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
22999 table to take advantage of the 16 priority levels available on Windows
23000 2000 and XP. On NT4 there are only 7 priority levels, this is properly
23001 supported by this new mapping.
23002
230032006-02-13 Nicolas Setton <setton@adacore.com>
23004
23005 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
23006 (get_encoding): New subprogram. Extracts the encodings from an encoded
23007 Ada name.
23008
230092006-02-13 Pascal Obry <obry@adacore.com>
23010 Nicolas Roche <roche@adacore.com>
23011 Arnaud Charlet <charlet@adacore.com>
23012
23013 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
23014 support.
23015 (__gnat_try_lock): Add unicode support by using a specific section on
23016 Windows.
23017 (__gnat_get_current_dir): Idem.
23018 (__gnat_open_read): Idem.
23019 (__gnat_open_rw): Idem.
23020 (__gnat_open_create): Idem.
23021 (__gnat_create_output_file): Idem.
23022 (__gnat_open_append): Idem.
23023 (__gnat_open_new): Idem.
23024 (__gnat_file_time_name): Idem.
23025 (__gnat_set_file_time_name): Idem.
23026 (__gnat_stat): Idem.
23027 (win32_no_block_spawn): Idem.
23028 (__gnat_locate_exec_on_path): Idem.
23029 (__gnat_opendir): New routine.
23030 (__gnat_closedir): Idem.
23031 (__gnat_readdir): Add new parameter length (pointer to int). Update
23032 implementation to use it and add specific Win32 code for Unicode
23033 support.
23034 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
23035 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
23036 (convert_addresses): Do not define this dummy routine on VMS.
23037
23038 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
23039 runtime Unicode support will be activated.
23040 (S2WS): String to Wide-String conversion. This version just copy a
23041 string in non Unicode version.
23042 (WS2S): Wide-String to String conversion. This version just copy a
23043 string in non Unicode version.
23044
23045 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
23046 (Open): Now import __gnat_opendir from adaint.c.
23047 (Read): Change the implementation to support unicode characters. It is
23048 not possible to use strlen() on Windows as this version supports only
23049 standard ASCII characters. So the length of the directory entry is now
23050 returned from the imported __gnat_readdir routine.
23051 Update copyright notice.
23052
23053 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
23054 (opendir): Moved to adaint.c.
23055
23056 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
23057 (Get_Directory): Fix wrong indexing.
23058 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
23059 __gnat_getenv from env.c
23060 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
23061 from env.c
23062
23063 * env.h, env.c: New file.
23064
23065 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
23066 adaint.c by __gnat_getenv from env.c
23067
23068 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
23069 adaint.c by __gnat_getenv from env.c
23070
23071 * Make-lang.in: Add env.o in the list of C object needed by gnat1
23072 and gnatbind.
23073 Update dependencies.
23074
230752006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23076 Olivier Hainque <hainque@adacore.com>
23077 Eric Botcazou <ebotcazou@adacore.com>
23078
23079 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9e81dbc7 23080
cc26ad97
AC
23081 * gigi.h (value_factor_p): Add prototype and description, now public.
23082
23083 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
23084 promotion for field with rep clause if the associated size was proven
23085 to be in error.
23086 Expand comments describing attempts to use a packable type.
23087 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
23088 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
23089 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
23090 necessary since these are not different types and pointers may
23091 actually designate any subtype in this hierarchy.
23092 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
23093 discriminants but put them into record only if not Unchecked_Union;
23094 pass flag to components_to_record showing Unchecked_Union.
23095 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
23096 components before variants; don't set TYPE_UNCHECKED_UNION_P.
23097 (components_to_record): New argument UNCHECKED_UNION.
23098 Remove special case code for Unchecked_Union and instead use main code
23099 with small changes.
23100
23101 PR ada/26096
ed41063a
EB
23102 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
23103 variable with the expression being built, only its inner field.
cc26ad97
AC
23104
23105 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
23106 emit_sequence_entry_statements.
23107 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
23108 (establish_gnat_vms_condition_handler): Move before
23109 Subprogram_Body_to_gnu.
23110 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
23111 for a subprogram if it has a foreign convention or is exported.
23112 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
23113 substituted for a CONST_DECL.
23114 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
23115 Etype to assoc_to_constructor.
23116 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
23117 discriminants of Unchecked_Union.
23118 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
23119 don't need cluttering preprocessor directives.
23120 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
23121 condition handler as current in the compiled function.
23122 (body_with_handlers_p): New function. Tell whether a given sequence of
23123 statements node is attached to a package or subprogram body and involves
23124 exception handlers possibly nested within inner block statements.
23125 (emit_sequence_entry_statements): New function, to emit special
23126 statements on entry of sequences when necessary. Establish GNAT
23127 condition handler in the proper cases for VMS.
23128 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
23129 emit_sequence_entry_statements.
23130
23131 * utils2.c (find_common_type): If both input types are BLKmode and
23132 have a constant size, use the smaller one.
23133 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
23134 the same.
23135
23136 * utils.c (value_factor_p): Make public, to allow uses from other gigi
23137 units.
23138 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
23139 (convert, case UNION_TYPE): Remove special treatment for unchecked
23140 unions.
23141
23142 PR ada/18659
ed41063a
EB
23143 (update_pointer_to): Update variants of pointer types to unconstrained
23144 arrays by attaching the list of fields of the main variant.
cc26ad97
AC
23145
231462006-02-13 Arnaud Charlet <charlet@adacore.com>
23147 Robert Dewar <dewar@adacore.com>
23148
23149 * a-exexpr.adb, a-exexpr-gcc.adb
23150 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
23151 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
23152 Remove code unused for exception propagation for the compiler itself
23153 from a-except.adb and update to still share separate packages.
23154
23155 * a-except.ads, a-except.adb: Ditto.
23156 Add comments that this version is now used only by the compiler and
23157 other basic tools. The full version that includes the Ada 2005 stuff
23158 is in separate files a-except-2005.ads/adb. The reason is that we do
23159 not want to cause bootstrap problems with compilers not recognizing
23160 Wide_Wide_String.
23161 Add exception reason code PE_Implicit_Return
23162 Add new exception reason code (Null Exception_Id)
23163
23164 * a-except-2005.adb, a-except-2005.ads: New files.
23165
23166 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
23167
23168 * s-wchcon.adb: New file.
23169
23170 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
23171 (traceback.o deps): Likewise.
23172 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
23173 Activate build of GMEM instrumentation library on VMS targets.
23174 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
23175 Use a-except-2005.ads/adb for all run-time library builds unless
23176 specified otherwise.
23177 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
23178 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
23179 Use s-parame.adb on all native platforms.
23180 Use s-parame-vxworks.adb on all vxworks platforms.
23181 Add env.c env.h in LIBGNAT_SRCS
23182 Add env.o in LIBGNAT_OBJS
23183 (GNATMAKE_OBJS): Remove ctrl_c.o object.
23184 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
23185 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
23186 supports VxWorks 6 RTPs.
23187 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
23188 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
23189
23190 * types.h, types.ads (Terminate_Program): New exception
23191 Add comment on modifying multiple versions of a-except.adb when the
23192 table of exception reasons is modified.
23193 Add exception reason code PE_Implicit_Return
23194 Add new exception reason code (Null Exception_Id)
23195
6f7f72f9
EB
23196 * clean.adb (Initialize): Get the target parameters before checking
23197 if target is OpenVMS. Move the OpenVMS specific code here from package
23198 body elaboration code.
cc26ad97
AC
23199
232002006-02-13 Thomas Quinot <quinot@adacore.com>
23201 Vincent Celier <celier@adacore.com>
23202 Robert Dewar <dewar@adacore.com>
23203
23204 * ali-util.adb (Get_File_Checksum): Update to account for change in
23205 profile of Initialize_Scanner.
23206
23207 * gprep.adb (Gnatprep): Update to account for change in profile of
23208 Initialize_Scanner.
23209 (Process_One_File): Same.
23210
23211 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
23212 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
23213 that behaviour using the new Unit information recorded in the source
23214 files table, rather than going through all units every time.
23215 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
23216 (Get_Source_Unit): Same.
23217
23218 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
23219 change in profile of Initialize_Scanner.
23220 (Prepare_To_Preprocess): Same.
23221
23222 * lib.ads: Fix typo in comment (templace -> template).
23223
23224 * prj-part.adb (Parse_Single_Project): Update to account for change in
23225 profile of Initialize_Scanner.
23226
23227 * scn.adb (Initialize_Scanner): Account for change in profile of
23228 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
23229 Also record the association of the given Source_File_Index to the
23230 corresponding Unit_Number_Type.
23231
23232 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
23233 procedure.
23234 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
23235 Remove Unit formal for generic scanner: this formal
23236 is only relevant to Scn (the scanner instance used to parse Ada source
23237 files), not to other instances. Update comment accordingly.
23238 (Scan): Use new function Snames.Is_Keyword_Name.
23239
23240 * sinfo-cn.adb: Fix typo in comment.
23241
23242 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
23243 Unit.
23244
23245 * sinput.ads (Source_File_Record): New component Unit, used to capture
23246 the unit identifier (if any) associated to a source file.
23247
23248 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
23249 Unit in Source_File_Record.
23250
23251 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
23252 in profile of Initialize_Scanner.
23253
23254 * scans.adb (Initialize_Ada_Keywords): New procedure
23255
23256 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
23257 Ada keywords in the Namet table, without the need to call
23258 Initialize_Scanner.
23259
23260 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
23261 (Is_Keyword_Name): New function
23262
23263 * snames.ads: Add subtype Configuration_Pragma_Names
23264 Add pragma Ada_2005 (synonym for Ada_05)
23265 (Is_Keyword_Name): New function
23266
23267 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
23268
232692006-02-13 Arnaud Charlet <charlet@adacore.com>
23270
23271 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
23272 index.
23273
23274 * a-stwima.adb (To_Set): Add extra check when N = 0.
23275
23276 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
23277
232782006-02-13 Arnaud Charlet <charlet@adacore.com>
23279
23280 * s-parame-mingw.adb, s-parame-linux.adb,
23281 s-parame-solaris.adb: Removed, replaced by s-parame.adb
23282
23283 * s-parame-vxworks.ads: Fix typo.
23284
23285 * s-parame-vxworks.adb: New file.
23286
23287 * s-parame.adb: Version now used by all native platforms.
23288 (Default_Stack_Size): Use 2 megs for default stack size and use
23289 __gl_default_stack_size when available.
23290 (Minimum_Stack_Size): Use 12K.
23291
23292 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
23293 (Create_Task): Refine implementation taking advantage of the XP stack
23294 size support. On XP, we now create the thread using the flag
23295 STACK_SIZE_PARAM_IS_A_RESERVATION.
23296
23297 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
23298
23299 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
23300 XP and 0 on older Windows versions.
23301
23302 * interfac-vms.ads: Removed, no longer used.
23303
233042006-02-13 Matthew Heaney <heaney@adacore.com>
23305
9e81dbc7
AS
23306 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
23307 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
cc26ad97
AC
23308 a-cohase.adb: All explicit raise statements now include an exception
23309 message.
23310
23311 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
23312 (Update_Element_Preserving_Key): renamed op to just Update_Element.
23313 Explicit raise statements now include an exception message
23314
23315 * a-cihase.ads, a-cohase.ads: Removed comment.
23316
23317 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
23318 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
23319 a-szbzha.adb, a-szfzha.ads: New files.
23320
233212006-02-13 Matthew Heaney <heaney@adacore.com>
23322
23323 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
23324 quicksort.
23325
233262006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23327
23328 * lang.opt: Wvariadic-macros: New option.
23329 Wold-style-definition: Likewise.
23330 Wmissing-format-attribute: Likewise.
23331
23332 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
23333 -Wold-style-definition and -Wmissing-format-attribute.
23334
233352006-02-13 Robert Dewar <dewar@adacore.com>
23336
23337 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
23338
23339 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
23340
233412006-02-13 Nicolas Roche <roche@adacore.com>
23342
23343 * a-envvar.adb, a-envvar.ads: New files.
23344
233452006-02-13 Douglas Rupp <rupp@adacore.com>
23346
23347 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
23348
23349 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
23350
233512006-02-13 Pat Rogers <rogers@adacore.com>
23352
23353 * a-rttiev.adb, a-rttiev.ads: New files.
23354
233552006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23356
23357 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
23358 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
23359
23360 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
23361
233622006-02-13 Robert Dewar <dewar@adacore.com>
23363
9e81dbc7 23364 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
cc26ad97
AC
23365 sem_case.adb: Minor code reorganization (not Present should be No)
23366
233672006-02-13 Geert Bosch <bosch@adacore.com>
23368 Gary Dismukes <dismukes@adacore.com>
23369
23370 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
23371 0, since the lower bound of the actual string may be greater than one.
23372
23373 PR ada/20753
ed41063a 23374 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
cc26ad97
AC
23375 layout is requested.
23376
233772006-02-13 Vincent Celier <celier@adacore.com>
23378
23379 * back_end.adb (Scan_Compiler_Arguments): Check if
23380 Search_Directory_Present is True and, if it is, add the argument in
23381 the source search directory path.
23382
23383 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
23384 Search_Directory_Present to True.
23385
233862006-02-13 Joel Brobecker <brobecke@adacore.com>
23387
23388 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
23389 volatile, to tell the compiler to preserve this variable at any level
23390 of optimization.
23391 (Gen_Versions_Ada): Temporarily work around codegen bug.
23392
233932006-02-13 Vincent Celier <celier@adacore.com>
23394
23395 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
23396 gcc to link with option -shared-libgcc.
23397 (Gnatlink): Remove duplicate switches -shared-libgcc
23398
233992006-02-13 Robert Dewar <dewar@adacore.com>
23400
23401 * gnatvsn.ads (Current_Year): New constant, used to easily update
23402 copyright on all GNAT tools.
23403
23404 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
23405 copyright notice.
23406
234072006-02-13 Robert Dewar <dewar@adacore.com>
23408
23409 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
23410 after hyphen (small aesthetic change useful for a range of numbers
23411 using ^-^.
23412 Suppress range checks for a couple of assignments which otherwise
23413 cause validity checks with validity checking turned on.
23414
23415 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
23416 Improvement in error message for object.
23417 (Rep_Item_Too_Late): Remove '!' in warning message.
23418
234192006-02-13 Robert Dewar <dewar@adacore.com>
23420 Eric Botcazou <ebotcazou@adacore.com>
23421
23422 * err_vars.ads: Suppress range checks for a couple of assignments
23423 which otherwise cause validity checks with validity checking turned on.
23424 Update comments.
23425
23426 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
23427 Make message unconditional if it is a warning.
23428 (Error_Msg_NEL): Always output warning messages.
23429 Suppress range checks for a couple of assignments which otherwise
23430 cause validity checks with validity checking turned on.
23431
23432 * errout.ads (Message Insertion Characters): Document that '!' is
23433 implied by '?' in error messages.
23434
23435 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
23436 (Gnat1drv): Use a goto to end of main subprogram instead of
23437 Exit_Program (E_Success) so that finalization can occur normally.
23438
234392006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23440
23441 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
23442 wrapped around.
23443
234442006-02-13 Vincent Celier <celier@adacore.com>
23445
23446 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
23447 Unchecked_Conversion functions.
23448 (Modification_Time): Use direct conversion of OS_Time to Calendar time
23449 when OpenVMS returns False.
23450
23451 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
23452 a-dirval.adb (OpenVMS): New Boolean function
23453
234542006-02-13 Ed Schonberg <schonberg@adacore.com>
23455 Thomas Quinot <quinot@adacore.com>
23456
23457 * checks.adb (Build_Discriminant_Checks): If the expression being
23458 checks is an aggregate retrieve the values of its discriminants to
23459 generate the check, rather than creating a temporary and a reference
23460 to it.
23461 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
23462 (Install_Null_Excluding_Check): Ditto
23463 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
23464 not for the renamed object, so that the actual itype is attached in the
23465 proper context.
23466
234672006-02-13 Robert Dewar <dewar@adacore.com>
23468 Vincent Celier <celier@adacore.com>
23469
23470 * debug.adb: Eliminate numeric switches for binder/gnatmake
23471
23472 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
23473 switches for the compiler.
23474 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
23475 (Scan_Make_Switches): When failing with an illegal switch, output an
23476 error message with the full switch.
23477 Eliminate numeric switches for binder/gnatmake
23478
23479 * switch.ads, switch.adb (Bad_Switch): New procedure
23480
23481 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
23482 Remove 0-9 as debug flag character possibilities
23483 -d is now controlling the primary stack size when its value is a
23484 positive. Also add checks against invalid values, and support for kb,
23485 mb. Ditto for -D switch.
23486
234872006-02-13 Robert Dewar <dewar@adacore.com>
23488 Serguei Rybin <rybin@adacore.com>
23489
23490 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
23491 save/restore routines.
23492 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23493 were not always properly handled previously.
23494 Since we are changing the tree format anyway, also get rid of the
23495 junk obsolete Immediate_Errors flag.
23496 (Tree_Read): Change the way of reading Tree_Version_String - now we
23497 read the version string from the tree even if its length is not the
23498 same as the length of the version string computed from Gnatvsn.
23499 (Search_Directory_Present): New Boolean flag for the compiler.
23500 Define Tree_Version_String as a dynamic string.
23501 (Default_Stack_Size): new variable, used to handle switch -d.
23502
9e81dbc7 23503 * par-prag.adb:
cc26ad97
AC
23504 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
23505 only for main unit.
23506 Add pragma Ada_2005 (synonym for Ada_05)
23507 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23508 were not always properly handled previously.
23509
23510 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
23511 explicit Ada_95 to Ada_2005.
23512
235132006-02-13 Javier Miranda <miranda@adacore.com>
23514 Robert Dewar <dewar@adacore.com>
23515 Ed Schonberg <schonberg@adacore.com>
23516
23517 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
23518 against errors in the source program: a private types for which the
23519 corresponding full type declaration is missing and pragma CPP_Virtual
23520 is used.
23521 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
23522 (Is_Known_Null): New flag
23523 (Has_Pragma_Pure): New flag
23524 (No_Return): Present in all entities, set only for procedures
23525 (Is_Limited_Type): A type whose ancestor is an interface is limited if
23526 explicitly declared limited.
23527 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
23528 entities. Only used for component marked Is_Tag. If present it stores
23529 the Offset_To_Top function used to provide this value in tagged types
23530 whose ancestor has discriminants.
23531
23532 * exp_ch2.adb: Update status of new Is_Known_Null flag
23533
23534 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
23535
23536 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
23537 the categorization sense if Is_Pure was set by pragma Pure_Function.
23538
235392006-02-13 Quentin Ochem <ochem@adacore.com>
23540 Olivier Hainque <hainque@adacore.com>
23541
23542 * bindusg.adb: Updated documentation for -d and -D switches.
23543
23544 * raise.h (__gnat_set_globals): added new parameter for
23545 Default_Stack_Size.
23546
23547 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
23548 (__gnat_handle_vms_condition): Adjust context before raise.
23549 (__gnat_install_handler): Restore the global vector setup for GCC
23550 versions before 3.4, as the frame based circtuitry is not available
23551 in this case.
23552 (__gnat_set_globals): added a parameter default_stack_size
23553 (__gl_default_stack_size): new variable.
23554
235552006-02-13 Ed Schonberg <schonberg@adacore.com>
23556
23557 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
23558 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
23559 does not exist in the Ada RM.
23560 (Compatible_Int_Bounds): Determine whether two integer range bounds
23561 are of equal length and have the same start and end values.
23562 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
23563 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
23564 aggregate when it is part of an object declaration.
23565 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
23566 constrains discriminants of its parent, add explicitly the discriminant
23567 constraints of the ancestor by retrieving them from the
23568 stored_constraint of the parent.
23569
235702006-02-13 Robert Dewar <dewar@adacore.com>
23571
23572 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
23573 attribute Mechanism_Code is applied to renamed subprogram, modify
23574 prefix to point to base subprogram.
23575 Max/Min attributes now violate Restriction No_Implicit_Conditionals
23576
23577 * sinfo.ads: Document that Mechanism_Code cannot be applied to
23578 renamed subprograms so that the front-end must replace the prefix
23579 appropriately.
23580
235812006-02-13 Javier Miranda <miranda@adacore.com>
23582 Gary Dismukes <dismukes@adacore.com>
23583
23584 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
23585 availability of RE_Interface_Tag.
23586 (Build_Initialization_Call): Fix wrong access to the discriminant value.
23587 (Freeze_Record_Type): Do not generate the tables associated with
23588 timed and conditional dispatching calls through synchronized
23589 interfaces if compiling under No_Dispatching_Calls restriction.
23590 When compiling for Ada 2005, for a nonabstract
23591 type with a null extension, call Make_Controlling_Function_Wrappers
23592 and insert the wrapper function declarations and bodies (the latter
23593 being appended as freeze actions).
23594 (Predefined_Primitive_Bodies): Do not generate the bodies of the
23595 predefined primitives associated with timed and conditional
23596 dispatching calls through synchronized interfaces if we are
23597 compiling under No_Dispatching_Calls.
23598 (Build_Init_Procedure): Use RTE_Available to check if a run-time
23599 service is available before generating a call.
23600 (Make_Controlling_Function_Wrappers): New procedure.
23601 (Expand_N_Full_Type_Declaration): Create a class-wide master for
23602 access-to-limited-interfaces because they can be used to reference
23603 tasks that implement such limited interface.
23604 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
23605 procedure spec and body of the Offset_To_Top function that is generated
23606 when the parent of a type with discriminants has secondary dispatch
23607 tables.
23608 (Init_Secondary_Tags): Handle the case in which the parent of the type
23609 containing secondary dispatch tables has discriminants to generate the
23610 correct arguments to call Set_Offset_To_Top.
23611 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
23612
23613 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
23614 Add Wide_[Wide_]Expanded_Name.
23615 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
23616 the same functionality of Get_Prim_Op_Address but applied to predefined
23617 primitive operations because the pointers to the predefined primitives
23618 are now saved in a separate table.
23619 (Parent_Size): Modified to get access to the separate table of primitive
23620 operations or the parent type.
23621 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
23622 functionality of Set_Prim_Op_Address but applied to predefined primitive
23623 operations.
23624 (Set_Signature): New subprogram used to store the signature of a DT.
23625 (Displace): If the Offset_To_Top value is not static then call the
23626 function generated by the expander to get such value; otherwise use
23627 the value stored in the table of interfaces.
23628 (Offset_To_Top): The type of the actual has been changed to Address to
23629 give the correct support to tagged types with discriminants. In this
23630 case this value is stored just immediately after the tag field.
23631 (Set_Offset_To_Top): Two new formals have been added to indicate if the
23632 offset_to_top value is static and hence pass this value to the run-time
23633 to store it in the table of interfaces, or else if this value is dynamic
23634 and then pass to the run-time the address of a function that is
23635 generated by the expander to provide this value for each object of the
23636 type.
23637
23638 * rtsfind.ads (Default_Prin_Op_Count): Removed.
23639 (Default_Prim_Op_Count): New entity
23640 (Get_Predefined_Prim_Op_Address): New entity
23641 (Set_Predefined_Prim_Op_Address): New entity
23642 (RE_Set_Signature): New entity
23643
236442006-02-13 Thomas Quinot <quinot@adacore.com>
23645 Ed Schonberg <schonberg@adacore.com>
23646
23647 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
23648 Make_Adjust_Call done for a newly-allocated object.
23649
23650 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
23651 in a subprogram are wrapped in a cleanup block, indicate that the
23652 subprogram contains an inner block with an exception handler.
23653 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
23654 Adjust call is for a newly-allocated object. In that case we must not
23655 assume that the finalization list chain pointers are correct (since they
23656 come from a bit-for-bit copy of the original object's pointers) so if
23657 the attach level would otherwise be zero (no change), we set it to 4
23658 instead to cause the pointers to be reset to null.
23659
23660 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
23661 reset chain pointers to null.
23662
236632006-02-13 Ed Schonberg <schonberg@adacore.com>
23664
23665 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
23666 string, and the context requires a loop for the assignment (e.g.
23667 because the left-hand side is packed), generate a unique name for the
23668 temporary that holds the string, to prevent spurious name clashes.
23669
236702006-02-13 Ed Schonberg <schonberg@adacore.com>
23671 Javier Miranda <miranda@adacore.com>
23672 Robert Dewar <dewar@adacore.com>
23673 Gary Dismukes <dismukes@adacore.com>
23674
23675 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
23676 return unconstrained arrays.
23677 Update comments.
23678 (Expand_Call): An indirect call through an access parameter of a
23679 protected operation is not a protected call.
23680 Add circuit to raise CE in Ada 2005 mode following call
23681 to Raise_Exception.
23682 (Register_DT_Entry): Do nothing if
23683 the run-time does not give support to abstract interfaces.
23684 (Freeze_Subprogram): In case of dispatching operations, do not generate
23685 code to register the operation in the dispatch table if the source
23686 is compiled with No_Dispatching_Calls.
23687 (Register_Predefined_DT_Entry): Generate code that calls the new
23688 run-time subprogram Set_Predefined_Prim_Op_Address instead of
23689 Set_Prim_Op_Address.
23690
23691 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
23692 on array assignments if the right-hand side is a function call that has
23693 been inlined. Check is performed on the assignment in the block.
23694 (Process_Bounds): If bounds and range are overloaded, apply preference
23695 rule for root operations to disambiguate, and diagnose true ambiguity.
23696 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
23697 a tag-indeterminate right-hand side even when Expander_Active is True.
23698 Needed to ensure that dispatching calls to T'Input are allowed and
23699 get the tag of the target class-wide object.
23700
23701 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
23702 an inherited primitive operation that already overrides several
23703 abstract interface primitives. For transitivity, the new entity must
23704 also override all the abstract interface primitives covered by the
23705 inherited overriden primitive.
23706 Emit warning if new entity differs from homograph in same scope only in
23707 that one has an access parameter and the other one has a parameter of
23708 a general access type with the same designated type, at the same
23709 position in the signature.
23710 (Make_Inequality_Operator): Use source locations of parameters and
23711 subtype marks from corresponding equality operator when creating the
23712 tree structure for the implicit declaration of "/=". This does not
23713 change anything in behaviour except that the decoration of the
23714 components of the subtree created for "/=" allows ASIS to get the
23715 string images of the corresponding identifiers.
23716 (Analyze_Return_Statement): Remove '!' in warning message.
23717 (Check_Statement_Sequence): Likewise.
23718 (Analyze_Subprogram_Body): For an access parameter whose designated type
23719 is an incomplete type imported through a limited_with clause, use the
23720 type of the corresponding formal in the body.
23721 (Check_Returns): Implicit return in No_Return procedure now raises
23722 Program_Error with a compile time warning, instead of beging illegal.
23723 (Has_Single_Return): Function returning unconstrained type cannot be
23724 inlined if expression in unique return statement is not an identifier.
23725 (Build_Body_To_Inline): It is possible to inline a function call that
23726 returns an unconstrained type if all return statements in the function
23727 return the same local variable. Subsidiary procedure Has_Single_Return
23728 verifies that the body conforms to this restriction.
23729
23730 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
23731 same type, and one of them is of an anonymous access type, convert
23732 the other operand to it, so that this is a valid binary operation for
23733 gigi.
23734 (Resolve_Type_Conversion): Handle subtypes of protected types and
23735 task types when accessing to the corresponding record type.
23736 (Resolve_Allocator): Add '\' in 2-line warning message.
23737 Remove '!' in warning message.
23738 (Resolve_Call): Add '\' in 2-line warning message.
23739 (Valid_Conversion): Likewise.
23740 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
23741 resulting type may be an access type with an implicit dereference.
23742 Obtain the proper component from the designated type.
23743 (Make_Call_Into_Operator): Handle properly a call to predefined equality
23744 given by an expanded name with prefix Standard, when the operands are
23745 of an anonymous access type.
23746 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
23747 Explicit_Dereference and Resolve_Selected_Component, to verify that the
23748 prefix of the expression is not of an incomplete type. Allows full
23749 diagnoses of all semantic errors.
23750 (Resolve_Actuals): If the actual is an allocator whose directly
23751 designated type is a class-wide interface we build an anonymous
23752 access type to use it as the type of the allocator. Later, when
23753 the subprogram call is expanded, if the interface has a secondary
23754 dispatch table the expander will add a type conversion to force
23755 the displacement of the pointer.
23756 (Resolve_Call): If a function that returns an unconstrained type is
23757 marked Inlined_Always and inlined, the call will be inlined and does
23758 not require the creation of a transient scope.
23759 (Check_Direct_Boolean_Op): Removed
23760 (Resolve_Comparison_Op): Remove call to above
23761 (Resolve_Equality_Op): Remove call to above
23762 (Resolve_Logical_Op): Inline above, since this is only call.
23763 (Valid_Conversion): Handle properly conversions between arrays of
23764 convertible anonymous access types.
23765
23766 PR ada/25885
cc26ad97
AC
23767 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
23768 the literal in an unchecked conversion, because GCC 4.x needs a static
23769 value for a string bound.
23770
237712006-02-13 Ed Schonberg <schonberg@adacore.com>
23772 Hristian Kirtchev <kirtchev@adacore.com>
23773
23774 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
23775 components of the corresponding record, take into account component
23776 definitions that are access definitions.
23777 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
23778 procedure is not considered a dispatching call and will be expanded
23779 properly.
23780
237812006-02-13 Javier Miranda <miranda@adacore.com>
23782
23783 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
23784 controlling argument of the dispatching call is an abstract interface
23785 class-wide type then we use it directly.
23786 Check No_Dispatching_Calls restriction.
23787 (Default_Prim_Op_Position): Remove the code that looks for the last
23788 entity in the list of aliased subprograms. This code was wrong in
23789 case of renamings.
23790 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
23791 when the source is compiled with the No_Dispatching_Calls restriction.
23792 (Init_Predefined_Interface_Primitives): No need to inherit primitives
23793 if we are compiling with restriction No_Dispatching_Calls.
23794 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
23795 subprograms if we are compiling under No_Dispatching_Calls restriction.
23796 (Make_DT): Generate a dispatch table with a single dummy entry if
23797 we are compiling with the No_Dispatching_Calls restriction. In
23798 addition, in this case we don't generate code that calls to the
23799 following run-time subprograms: Set_Type_Kind, Inherit_DT.
23800 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
23801 of this subprogram if compiling with the No_Dispatching_Calls
23802 restriction.
23803 (Expand_Type_Conversion): Instead of using the actual parameter,
23804 the argument passed as parameter to the conversion function was
23805 erroneously referenced by the expander.
23806 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
23807 Set_Predefined_Primitive_Op_Address and Set_Signature.
23808 (Expand_Dispatching_Call): Generate call to
23809 Get_Predefined_Prim_Op_Address for predefined primitives.
23810 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
23811 predefined primitives.
23812 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
23813 primitives we reserve one dummy entry to ensure that the tag does not
23814 point to some memory that is associated with some other object. In
23815 addition, remove all the old code that generated the assignments
23816 associated with the signature of the dispatch table and replace them
23817 by a call to the new subprogram Set_Signature.
23818 (Set_All_DT_Position): Change the algorithm because now we have a
23819 separate dispatch table associated with predefined primitive operations.
23820 (Expand_Interface_Conversion): In case of non-static offset_to_top
23821 add explicit dereference to get access to the object after the call
23822 to displace the pointer to the object.
23823 (Expand_Interface_Thunk): Modify the generation of the actual used
23824 in the calls to the run-time function Offset_To_Top to fulfil its
23825 new interface.
23826 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
23827
238282006-02-13 Ed Schonberg <schonberg@adacore.com>
23829
23830 * exp_dist.adb (Copy_Specification): For access parameters, copy
23831 Null_Exclusion flag, which will have been set for stream subprograms
23832 in Ada2005 mode.
23833
238342006-02-13 Pascal Obry <obry@adacore.com>
23835
23836 * expect.c (__gnat_expect_portable_execvp): New implementation. The
23837 previous implementation was using the C runtime spawnve routine but
23838 the corresponding wait was using directly the Win32 API. This was
23839 causing some times a lock when waiting for an event using
23840 WaitForSingleObject in __gnat_waitpid. This new implementation uses
23841 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
23842 API fixes this problem.
23843
238442006-02-13 Robert Dewar <dewar@adacore.com>
23845
23846 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
23847 call.
23848
238492006-02-13 Thomas Quinot <quinot@adacore.com>
23850
23851 * exp_pakd.ads: Fix typos in comments.
23852
23853 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
23854 array reference that is an explicit dereference, mark the converted
23855 (packed) array reference as analyzed to prevent a forthcoming
23856 reanalysis from resetting its type to the original (non-packed) array
23857 type.
23858
238592006-02-13 Ed Schonberg <schonberg@adacore.com>
23860 Javier Miranda <miranda@adacore.com>
23861 Eric Botcazou <ebotcazou@adacore.com>
23862
23863 * exp_util.ads, exp_util.adb (Find_Prim_Op,
23864 Is_Predefined_Primitive_Operation): When
23865 searching for the predefined equality operator, verify that operands
23866 have the same type.
23867 (Is_Predefined_Dispatching_Operation): Remove the code that looks
23868 for the last entity in the list of aliased subprograms. This code
23869 was wrong in case of renamings.
23870 (Set_Renamed_Subprogram): New procedure
23871 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
23872 Exp_Type constant computed when entering this subprogram.
23873 (Known_Null): New function
23874 (OK_To_Do_Constant_Replacement): New function
23875 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
23876 (Side_Effect_Free): An attribute reference 'Input is not free of
23877 side effect, unlike other attributes that are functions. (from code
23878 reading).
23879 (Remove_Side_Effects): Expressions that involve packed arrays or records
23880 are copied at the point of reference, and therefore must be marked as
23881 renamings of objects.
23882 (Is_Predefined_Dispatching_Operation): Return false if the operation is
23883 not a dispatching operation.
23884
23885 PR ada/18819
23886 (Remove_Side_Effects): Lift enclosing type conversion nodes for
23887 elementary types in all cases.
23888
238892006-02-13 Javier Miranda <miranda@adacore.com>
23890
23891 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
23892 task types when accessing to the corresponding record type.
23893 Remove '!' in warning message.
23894
238952006-02-13 Olivier Hainque <hainque@adacore.com>
23896
23897 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
23898 to avoid useless and space inefficient overalignments on targets where
23899 Max_Alignment is larger than 16.
23900
239012006-02-13 Pascal Obry <obry@adacore.com>
23902
23903 * g-catiio.adb (Sec_Number): New type used to compute the number of
23904 seconds since 1-1-1970.
23905 (Image) [Natural]: The parameter was an Integer, as we can't deal with
23906 negative numbers (years, months...) it is better to have a Natural here.
23907 Code clean-up.
23908 (Image) [Number]: Change parameter from Long_Integer to Number.
23909 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
23910 overflow for dates past year 2038.
23911
239122006-02-13 Matthew Heaney <heaney@adacore.com>
23913
23914 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
23915 Constraint_Error.
23916
239172006-02-13 Arnaud Charlet <charlet@adacore.com>
23918
23919 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
23920 native platforms.
23921 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
23922 finalization can occur normally.
23923
239242006-02-13 Vincent Celier <celier@adacore.com>
23925
23926 * gnatcmd.adb (Rules_Switches): New table
23927 (Add_To_Rules_Switches): New procedure
23928 (GNATCmd): For command CHECK, put all options following "-rules" in the
23929 Rules_Switches table. Append these -rules switches after the -cargs
23930 switches.
23931
239322006-02-13 Robert Dewar <dewar@adacore.com>
23933
23934 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
23935 These two cases were generating incorrect output, and if this unit
23936 was built with checks on, generated a discriminant mismatch constraint
23937 error.
23938
239392006-02-13 Ed Schonberg <schonberg@adacore.com>
23940 Robert Dewar <dewar@adacore.com>
23941
23942 * lib-xref.adb (Get_Type_Reference): For a private type whose full
23943 view is an array type, indicate the component type as well, for
23944 navigation purposes.
23945 (Generate_Reference): Don't consider array ref on LHS to be a case
23946 of violating pragma Unreferenced.
23947 Do not give Ada 2005 warning except on real reference.
23948
239492006-02-13 Vincent Celier <celier@adacore.com>
23950
23951 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
23952 main source, add switch -mdebug-main=_ada_ so that the executable can
23953 be debugged by the standard VMS debugger.
23954 (Gnatmake): Set No_Main_Subprogram to True when there is no main
23955 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
23956 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
23957 of the last source, as the binding and linking phases are never
23958 performed.
23959 Set all executable obsolete when rebuilding a library.
23960
23961 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
23962 options.
23963
239642006-02-13 Javier Miranda <miranda@adacore.com>
23965
23966 PR ada/23973
cc26ad97
AC
23967 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
23968 code to improve the error message reported when the program has
23969 declarations of abstract interface types and it is not compiled with
23970 the -gnat05 switch.
23971 (P_Access_Definition): Reorganize the code to improve the error
23972 message reported when the new Ada 2005 syntax for anonymous
23973 access types is used and the program is not compiled with the
23974 -gnat05 switch.
23975
239762006-02-13 Robert Dewar <dewar@adacore.com>
23977
23978 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
23979 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
23980 (MODE_IN)
23981
239822006-02-13 Javier Miranda <miranda@adacore.com>
23983
23984 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
23985 against source containing syntax errors.
23986
239872006-02-13 Vincent Celier <celier@adacore.com>
23988
23989 * prj.adb (Reset): Initialize the first element of table Namings with
23990 the standard naming data.
23991
239922006-02-13 Vincent Celier <celier@adacore.com>
23993
23994 * prj.ads (Error_Warning): New enumeration type
23995
23996 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
23997 unknown, use the location of the project to report the error.
23998 (When_No_Sources): New global variable
23999 (Report_No_Ada_Sources): New procedure
24000 (Check): New parameter When_No_Sources. Set value of global variable
24001 When_No_Sources,
24002 (Find_Sources): Call Report_No_Ada_Sources when appropriate
24003 (Get_Sources_From_File): Ditto
24004 (Warn_If_Not_Sources): Better warning messages indicating the unit name
24005 and the file name.
24006
24007 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
24008 Call Prj.Proc.Process with parameter When_No_Sources.
24009
24010 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
24011 Call Recursive_Check with parameter When_No_Sources.
24012 (Recursive_Check): New parameter When_No_Sources. Call itself and
24013 Prj.Nmsc.Check with parameter When_No_Sources.
24014 (Process): New parameter When_No_Sources. Call Check with parameter
24015 When_No_Sources.
24016 (Copy_Package_Declarations): New procedure to copy renamed parameters
24017 and setting the location of the declared attributes to the location
24018 of the renamed package.
24019 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
24020 packages.
24021
240222006-02-13 Vincent Celier <celier@adacore.com>
24023
24024 * prj-makr.adb (Make): Preserve the comments from the original project
24025 file.
24026 When removing nodes (attributes Source_Dirs, Source_Files,
24027 Source_List_File and package Naming), save the comments and attach the
24028 saved comments to the newly created nodes.
24029 Do not add a with clause for the naming package if one already exists.
24030
240312006-02-13 Javier Miranda <miranda@adacore.com>
24032 Gary Dismukes <dismukes@adacore.com>
24033 Robert Dewar <dewar@adacore.com>
24034
24035 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
24036
24037 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
24038 aliased entities to look for the overriden abstract interface
24039 subprogram.
24040 (Is_Interface_Subprogram): Complete documentation.
24041 (Check_Dispatching_Operation): Do not generate code to register the
24042 operation in the dispatch table if the source is compiled with
24043 restriction No_Dispatching_Calls.
24044 (Override_Dispatching_Operation): Check for illegal attempt to override
24045 No_Return procedure with procedure that is not No_Return
24046 (Check_Dispatching_Call): Suppress the check for an abstract operation
24047 when the original node of an actual is a tag-indeterminate attribute
24048 call, since the attribute, which must be 'Input, can never be abstract.
24049 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
24050 call to the Input attribute (even when rewritten).
24051 (Propagate_Tag): Augment comment to indicate the possibility of a call
24052 to an Input attribute.
24053
24054 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
24055 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
24056
24057 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
24058 No_Wide_Characters is no longer partition-wide
24059 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
24060 rather than GNAT
24061
240622006-02-13 Douglas Rupp <rupp@adacore.com>
24063
24064 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
24065
240662006-02-13 Javier Miranda <miranda@adacore.com>
24067
24068 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
24069 handles default-initialized components to keep separate the management
24070 of this feature but also avoid the unrequired resolution and
24071 expansion of components that do not have partially initialized
24072 values.
24073 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
24074 (Check_Bounds): Likewise.
24075 (Check_Length): Likewise.
24076
240772006-02-13 Javier Miranda <miranda@adacore.com>
24078 Ed Schonberg <schonberg@adacore.com>
24079
24080 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
24081 abstract interface type call analyze_and_resolve to expand the type
24082 conversion into the corresponding displacement of the
24083 reference to the base of the object.
24084 (Eval_Attribute, case Width): For systems where IEEE extended precision
24085 is supported, the maximum exponent occupies 4 decimal digits.
24086 (Accessibility_Message): Add '\' in 2-line warning message.
24087 (Resolve_Attribute): Likewise.
24088 (case Attribute_Access): Significantly revise checks
24089 for illegal access-to-subprogram Access attributes to properly enforce
24090 the rules of 3.10.2(32/2).
24091 Diagnose use of current instance with an illegal attribute.
24092
6f7f72f9
EB
24093 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
24094 to a Node_Id.
24095 (Enclosing_Generic_Unit): New function to return a node's innermost
24096 enclosing generic declaration node.
24097 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
24098 (Type_Access_Level): The accessibility level of anonymous acccess types
24099 associated with discriminants is that of the current instance of the
24100 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
24101 (Compile_Time_Constraint_Error): Handle case of conditional expression.
24102 (Kill_Current_Values_For_Entity): New function
24103 (Enter_Name): Change formal type to Entity_Id
cc26ad97
AC
24104
241052006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
24106 Ed Schonberg <schonberg@adacore.com>
24107 Gary Dismukes <dismukes@adacore.com>
24108
24109 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
24110 Analyze_Compilation_Unit.
24111 Detect and warn on redundant with clauses detected in a package spec
24112 and/or body when -gnatwr is used.
24113 (Analyze_Context): Analyze config pragmas before other items
24114 (Install_Context_Items): Don't analyze config pragmas here
24115 (Install_Limited_Withed_Unit): Set limited entity of package in
24116 with_clause so that cross-reference information or warning messages on
24117 unused packages can be properly generated
24118 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
24119 has Error_Posted set. Prevent infinite loops in illegal programs.
24120 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
24121 to the point of the error test requiring the current unit to be private.
24122 This ensures that private with clauses are not exempted from the basic
24123 checking for being a descendant of the same library unit parent as a
24124 withed private descendant unit.
24125 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
24126 handle private with clauses properly, as well as to account for cases
24127 where the withed unit is a public descendant of a private ancestor
24128 (in which case the current unit must be a descendant of the private
24129 ancestor's parent). The spec comments were updated accordingly. Also,
24130 the old error message in this subprogram was replaced with error
24131 messages that mirror the errors tested and reported by
24132 Check_Private_Child_Unit.
24133 Parameter and variable names improved for readability.
24134 (Install_Limited_Context_Clauses): Remove test for a withed unit being
24135 private as the precondition for calling
24136 Check_Private_Limited_Withed_Unit since that subprogram has been
24137 revised to test public units as well as private units.
24138
241392006-02-13 Thomas Quinot <quinot@adacore.com>
24140 Robert Dewar <dewar@adacore.com>
24141 Ed Schonberg <schonberg@adacore.com>
24142 Javier Miranda <miranda@adacore.com>
24143
24144 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
24145 that Scope_Stack.First = 1.
24146 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24147 were not always properly handled previously.
24148 (Formal_Entity): Complete rewrite, to handle properly some complex case
24149 with multiple levels of parametrization by formal packages.
24150 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
24151 to the corresponding derived type declaration for proper semantics.
24152
24153 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
24154 (Check_Component): Enforce restriction on components of
24155 unchecked_unions: a component in a variant cannot contain tasks or
24156 controlled types.
24157 (Unchecked_Union): Allow nested variants and multiple discriminants, to
24158 conform to AI-216.
24159 Add pragma Ada_2005 (synonym for Ada_05)
24160 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24161 were not always properly handled previously.
24162 Document that pragma Propagate_Exceptions has no effect
24163 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
24164 (Set_Convention_From_Pragma): Check that if a convention is
24165 specified for a dispatching operation, then it must be
24166 consistent with the existing convention for the operation.
24167 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
24168 longer required to specify an vtable-ptr component in the record. For
24169 compatibility reasons we leave the support for the previous definition.
24170 (Analyze_Pragma, case No_Return): Allow multiple arguments
24171
24172 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
24173 non-overrideen inherited operation with a controlling result as
24174 illegal only its implicit declaration comes from the derived type
24175 declaration of its result's type.
24176 (Check_Possible_Deferred_Completion): Relocate the object definition
24177 node of the subtype indication of a deferred constant completion rather
24178 than directly analyzing it. The analysis of the generated subtype will
24179 correctly decorate the GNAT tree.
24180 (Record_Type_Declaration): Check whether this is a declaration for a
24181 limited derived record before analyzing components.
24182 (Analyze_Component_Declaration): Diagnose record types not explicitly
24183 declared limited when a component has a limited type.
24184 (Build_Derived_Record_Type): Code reorganization to check if some of
24185 the inherited subprograms of a tagged type cover interface primitives.
24186 This check was missing in case of a full-type associated with a private
24187 type declaration.
24188 (Constant_Redeclaration): Check that the subtypes of the partial and the
24189 full view of a constrained deferred constant statically match.
24190 (Mentions_T): A reference to the current type in an anonymous access
24191 component declaration must be an entity name.
24192 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
24193 class_wide type to refer to full type, not to the incomplete one.
24194 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
24195 available. Required to give support to the certified run-time.
24196 (Analyze_Component_Declaration): In case of anonymous access components
24197 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
24198 (Process_Discriminants): For an access discriminant, use the
24199 discriminant specification as the associated_node_for_itype, to
24200 simplify accessibility checks.
24201
242022006-02-13 Ed Schonberg <schonberg@adacore.com>
24203 Javier Miranda <miranda@adacore.com>
24204
24205 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
24206 abstract interpretations on an operator, remove interpretations that
24207 yield Address or a type derived from it, if one of the operands is an
24208 integer literal.
24209 (Try_Object_Operation.Try_Primitive_Operation,
24210 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
24211 location when creating the new reference to a primitive or class-wide
24212 operation as a part of rewriting a subprogram call.
24213 (Try_Primitive_Operations): If context requires a function, collect all
24214 interpretations after the first match, because there may be primitive
24215 operations of the same type with the same profile and different return
24216 types. From code reading.
24217 (Try_Primitive_Operation): Use the node kind to choose the proper
24218 operation when a function and a procedure have the same parameter
24219 profile.
24220 (Complete_Object_Operation): If formal is an access parameter and prefix
24221 is an object, rewrite as an Access reference, to match signature of
24222 primitive operation.
24223 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
24224 by an expanded name with prefix Standard, when the operands are of an
24225 anonymous access type.
24226 (Remove_Abstract_Operations): If the operation is abstract because it is
24227 inherited by a user-defined type derived from Address, remove it as
24228 well from the set of candidate interpretations of an overloaded node.
24229 (Analyze_Membership_Op): Membership test not applicable to cpp-class
24230 types.
24231
242322006-02-13 Bob Duff <duff@adacore.com>
24233
24234 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
24235 redundant use clauses.
24236 In particular, if the scope of two use clauses overlaps, but one is not
24237 entirely included in the other, we should not warn. This can happen
24238 with nested packages.
24239 (Analyze_Subprogram_Renaming): Protect the compiler against previously
24240 reported errors. The bug was reported when the compiler was built
24241 with assertions enabled.
24242 (Find_Type): If the node is a 'Class reference and the prefix is a
24243 synchronized type without a corresponding record, return the type
24244 itself.
24245
242462006-02-13 Javier Miranda <miranda@adacore.com>
24247
24248 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
24249 if this is the full-declaration associated with a private declaration
24250 that implement interfaces, then the private type declaration must be
24251 limited.
24252 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
24253 as aliased. The use of the 'access attribute is not available for such
24254 object (for this purpose the object should be explicitly marked as
24255 aliased, but being an anonymous type this is not possible).
24256
242572006-02-13 Ed Schonberg <schonberg@adacore.com>
24258 Robert Dewar <dewar@adacore.com>
24259
24260 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
24261 compilation unit is an elaboration scope.
24262 (Add_Task_Proc): Add '\' in 2-line warning message.
24263 (Activate_All_Desirable): Deal with case of unit with'ed by parent
24264
242652006-02-13 Ed Schonberg <schonberg@adacore.com>
24266 Javier Miranda <miranda@adacore.com>
24267
24268 * sem_type.adb (Write_Overloads): Improve display of candidate
24269 interpretations.
24270 (Add_One_Interp): Do not add to the list of interpretations aliased
24271 entities corresponding with an abstract interface type that is an
24272 immediate ancestor of a tagged type; otherwise we have a dummy
24273 conflict between this entity and the aliased entity.
24274 (Disambiguate): The predefined equality on universal_access is not
24275 usable if there is a user-defined equality with the proper signature,
24276 declared in the same declarative part as the designated type.
24277 (Find_Unique_Type): The universal_access equality operator defined under
24278 AI-230 does not cover pool specific access types.
24279 (Covers): If one of the types is a generic actual subtype, check whether
24280 it matches the partial view of the other type.
24281
242822006-02-13 Thomas Quinot <quinot@adacore.com>
24283
24284 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
24285 line. This is necessary to allow In_Extended_Main_Unit to provide
24286 correct results for itypes while writing out expanded source.
24287 (Close_File): No need to update the source_index_table here since it's
24288 now done for each line.
24289
242902006-02-13 Ed Schonberg <schonberg@adacore.com>
24291 Robert Dewar <dewar@adacore.com>
24292
24293 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
24294 preserve the source unit where the itype is declared, and prevent a
24295 backend abort.
24296 (Note_Implicit_Run_Time_Call): New procedure
24297 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
24298 E_Subprogram_Type)
24299
24300 * sprint.ads: Document use of $ for implicit run time routine call
24301
243022006-02-13 Quentin Ochem <ochem@adacore.com>
24303
24304 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
24305 task name.
24306
243072006-02-13 Bob Duff <duff@adacore.com>
24308
24309 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
24310 Scan_Unsigned, so we do not scan leading blanks and sign twice.
24311 Integer'Value("- 5") and Integer'Value("-+5") now correctly
24312 raise Constraint_Error.
24313
24314 * s-vallli.adb (Scan_Long_Long_Integer): Call
24315 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
24316 do not scan leading blanks and sign twice.
24317 Integer'Value("- 5") and Integer'Value("-+5") now correctly
24318 raise Constraint_Error.
24319
24320 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
24321 Scan_Long_Long_Unsigned): Split out most of the processing from
24322 Scan_Long_Long_Unsigned out into
24323 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
24324 This prevents scanning leading blanks and sign twice.
24325 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
24326 See RM-3.5(44).
24327
24328 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
24329 out most of the processing from Scan_Unsigned out into
24330 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
24331 This prevents scanning leading blanks and sign twice.
24332
24333 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
24334 use with Modular'Value attribute.
24335 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
24336 attribute.
24337
243382006-02-13 Robert Dewar <dewar@adacore.com>
24339
24340 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
24341
243422006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24343
24344 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
24345 (PPC VxWorks): Likewise.
24346 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
24347 (forced_callee): Make non-inlinable and non-pure.
24348 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
24349
243502006-02-13 Arnaud Charlet <charlet@adacore.com>
24351 Ben Brosgol <brosgol@adacore.com>
24352 Robert Dewar <dewar@adacore.com>
24353
24354 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
24355 support.
24356 Document that gnatbind -M option is for cross environments only.
24357 Added description of using gnatmem to trace gnat rtl allocs and deallocs
24358 Add note on use of $ to label implicit run time calls
24359 Add documentation for -gnatyI (check mode IN)
24360 Updated chapter on compatibility with HP Ada
24361 VMS-oriented edits.
24362 Ran spell and corrected errors
24363 Add documentation for gnatbind -d and rework documentation of -D
24364 at the same time.
24365 Add subprogram/data elimination section.
24366 Minor editing of annex A.
24367 Add section for gnatcheck.
24368 Add documentation for restriction No_Dispatching_Calls
24369 Add documentation for pragma Ada_2005
24370 Remove mention of obsolete pragma Propagate_Exceptions
24371 Document that pragma Unreferenced can appear after DO in ACCEPT
24372 Clarify Pure_Function for library level units
24373 Mention Max/Min in connection with No_Implicit_Conditionals
24374 No_Wide_Characters restriction is no longer partition-wide
24375 Add a nice example for Universal_Literal_String attribute
24376 Document that pragma No_Return can take multiple arguments
24377
24378 * ug_words: Added entry for gnatcheck
24379
24380 * g-ctrl_c.ads (Install_Handler): Enhance comments
24381
24382 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
24383
24384 * g-trasym.ads: Add documentation on how to do off line symbolic
24385 traceback computation.
24386
24387 * s-fatgen.adb: Add comments for Unaligned_Valid
24388
24389 * stand.ads: Fix typo in comment
24390
0e692cc0
RO
243912006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24392
24393 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
24394
f44013ae
RS
243952006-02-06 Roger Sayle <roger@eyesopen.com>
24396
24397 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
24398
3df6582b
JDA
243992006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24400
24401 PR target/25926
24402 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
24403 implementation that calls __main.
24404
f57a2203
PG
244052006-01-25 Peter O'Gorman <peter@pogma.com>
24406
24407 PR bootstrap/25859
24408 * Makefile.in (GCC_LINK): Remove quotes.
24409 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
24410 or $(GCC_LINK).
24411
24412 (powerpc-darwin): Pass -shared-libgcc when building shared library.
24413
4bf2d473
JDA
244142006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24415
24416 PR ada/24533
24417 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
24418
4580c9a6
JDA
244192005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24420
24421 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
24422
e5c681b3
AC
244232005-12-12 Arnaud Charlet <charlet@adacore.com>
24424
24425 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
24426 needed.
24427
b0b8e176
AC
244282005-12-12 Arnaud Charlet <charlet@adacore.com>
24429
24430 * Make-lang.in: Update dependencies
24431
53fcb103
AC
244322005-12-12 Arnaud Charlet <charlet@adacore.com>
24433
24434 * Make-lang.in: Add rule for ada/exp_sel.o
24435
25b06cda
AC
244362005-12-12 Arnaud Charlet <charlet@adacore.com>
24437
24438 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
24439
aedc2c2b
AC
244402005-12-09 Arnaud Charlet <charlet@adacore.com>
24441
24442 * gnatvsn.ads (Library_Version): Bump to version 4.2
24443 (ASIS_Version_Number): Bumped.
24444
244452005-12-09 Doug Rupp <rupp@adacore.com>
24446
24447 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
24448 Ada bind file prefix on VMS from b$ to b__.
24449 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
24450 __init.
24451
24452 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
24453 Targparm.OpenVMS_On_Target.
24454 (Object_Suffix): Initialize with target object suffix.
24455 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
24456
24457 * butil.adb: Change some Hostparm.OpenVMS checks to
24458 Targparm.OpenVMS_On_Target.
24459
24460 * clean.adb: Change some Hostparm.OpenVMS checks to
24461 Targparm.OpenVMS_On_Target.
24462 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
24463 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
24464 Ada bind file prefix on VMS from b$ to b__.
24465
24466 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
24467 --GCC so that Get_Target_Parameters can find system.ads.
24468 (Gnatlink): Call Get_Target_Parameters in mainline.
24469 Initialize standard packages for Targparm.
24470 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24471 (Process_Args): Also Check for object files with target object
24472 extension.
24473 (Make_Binder_File_Names): Create with target object extension.
24474 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
24475 to b__.
24476
24477 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
24478 Targparm.OpenVMS_On_Target.
24479 ({declaration},Build_Library,Check_Library): Change Ada bind file
24480 prefix on VMS from b$ to b__.
24481
24482 * osint-b.adb: Change some Hostparm.OpenVMS checks to
24483 Targparm.OpenVMS_On_Target.
24484 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
24485 b__.
24486
24487 * targext.c: New file.
24488
24489 * Makefile.in: add support for vxworks653 builds
24490 (../../vxaddr2line): gnatlink with targext.o.
24491 (TOOLS_LIBS): Move targext.o to precede libgnat.
24492 (init.o, initialize.o): Minor clean up in dependencies.
24493 (GNATLINK_OBJS): Add targparm.o, snames.o
24494 Add rules fo building targext.o and linking it explicitly with all
24495 tools.
24496 Also add targext.o to gnatlib.
24497
24498 * Make-lang.in: Add rules for building targext.o and linking it in
24499 with gnat1 and gnatbind.
24500 Add entry for exp_sel.o.
24501
24502 * osint.adb Change some Hostparm.OpenVMS checks to
24503 Targparm.OpenVMS_On_Target.
24504 (Object_File_Name): Use target object suffix.
24505
24506 * osint.ads (Object_Suffix): Remove, no longer used.
24507 (Target_Object_Suffix): Initialize with target object suffix.
24508
24509 * rident.ads: Add special exception to license.
24510
24511 * targparm.adb (Get_Target_Parameters): Set the value of
24512 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
24513 value.
24514 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
9e81dbc7 24515
aedc2c2b
AC
24516 * targparm.ads: Add special exception to license.
24517
24518 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
24519 function.
24520 (Copy_File): Make sure from file is closed if error on to file
24521 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
24522
24523 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
24524 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
24525
24526 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
24527 target object suffix.
24528
245292005-12-09 Jose Ruiz <ruiz@adacore.com>
24530 Quentin Ochem <ochem@adacore.com>
24531 Florian Villoing <villoing@adacore.com>
24532
6f7f72f9 24533 * a-taster.ads, a-taster.adb: New files.
aedc2c2b
AC
24534
24535 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
24536 link to the version that does nothing. This way the task termination
24537 routine is not executed twice for the environment task when finishing
24538 because of an unhandled exception.
24539
24540 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
24541 handler because of an unhandled exception.
24542
24543 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
24544 System.Tasking.Utilities instead of that in System.Tasking.Stages.
24545
24546 * s-finimp.adb (initialization code): Modify the soft link for the
24547 finalization of the global list instead of Adafinal.
24548
24549 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
24550 non-tasking version of the soft link for task termination. We do
24551 nothing since if we are using the non-tasking version it
24552 means that the task termination functionality is not used.
24553 (Null_Finalize_Global_List): Add this null version for the procedure
24554 in charge of finalizing the global list for controlled objects.
24555 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
24556 instead for handling run-time termination in a more flexible way.
24557 (Adafinal_NT): This new procedure will take care of finalizing the
24558 global list for controlled objects if needed, but no tasking
24559 finalization.
24560
24561 * s-tarest.adb (Task_Lock): Do not try to lock again the
24562 Global_Task_Lock if we already own it. Otherwise, we get blocked in
24563 some run-time operations.
24564 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
24565 until all nested locks have been released.
24566 (Task_Wrapper): Call the fall-back task termination handler. It
24567 applies to all tasks but the environment task.
24568 (Finalize_Global_Tasks): Add the call for the task termination
24569 procedure for the environment task.
24570 (Task_Wrapper): suppress warnings around declaration of
24571 Secondary_Stack_Address.
24572
24573 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
24574 moved to the Common_ATCB record.
24575 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
24576 Common_ATCB record.
24577 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
24578 Common_ATCB record.
24579
24580 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
24581 Fall_Back_Handler, and Specific_Handler.
24582
24583 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
24584 defined in Ada.Task_Termination, to avoid circular dependencies.
24585 (Termination_Handler): Redefine this type here, alredy defined in
24586 Ada.Task_Termination, for avoiding circular dependencies.
24587 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
24588 for storing task termination handlers. In addition,
24589 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
24590 Common_ATCB because it is used by both the regular and the restricted
24591 run times.
24592 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
24593 Common_ATCB because it is used by both the regular and the restricted
24594 run times.
24595 (Common_ATCB): Added a dynamic task analyzer field.
24596
24597 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
24598 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
24599 (Task_Wrapper): Call the task termination handler. It applies to all
24600 tasks but the environment task.
24601 (Finalize_Global_Tasks): Call the task termination procedure for the
24602 environment task. The call to Finalize_Global_List is now performed
24603 using the soft links mechanism.
24604 (Task_Wrapper): added dynamic stack analysis.
24605
24606 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
24607 potentially blocking operations has been moved from
24608 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
24609 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
24610 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
24611 this run-time check.
24612
24613 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
24614 of task termination procedure.
24615 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
24616 link for the task termination procedure.
24617
24618 * bindusg.adb: (Bindusg): Added documentation for -u option.
24619
24620 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
24621 (Get_Main_C): Add handling of dynamic stack analysis.
24622 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
24623
24624 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
24625 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
24626 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
24627
24628 * opt.ads: Added flags used by dynamic stack measurement.
24629 (Max_Line_Length): Remove (not used anymore)
24630
24631 * s-io.ads, s-io.adb (Standard_Error): new subprogram
24632 (Standart_Output): new subprogram
24633 (Set_Output): new subprogram
24634 (Put): now uses the value of Current_Out to know if the output has to be
24635 send to stderr or stdout.
9e81dbc7 24636
aedc2c2b
AC
24637 * s-stausa.ads: Complete implementation.
24638
24639 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
9e81dbc7 24640
aedc2c2b
AC
24641 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
24642 list of Ada 05 files.
24643 (GNAT Library Units): Add AltiVec files.
24644
24645 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
24646 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
24647 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
24648
246492005-12-09 Nicolas Setton <setton@adacore.com>
24650
24651 * adaint.c (__gnat_locate_regular_file): Return immediately if
24652 file_name is empty.
24653
246542005-12-09 Javier Miranda <miranda@adacore.com>
24655 Hristian Kirtchev <kirtchev@adacore.com>
24656
24657 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
24658 to the specification because the frontend generates code that uses this
24659 subprogram.
24660 (Set_Interface_Table): Add missing assertion.
24661 Update documentation describing the run-time structure.
24662 (Displace): New subprogram that displaces the pointer to the object
24663 to reference one of its secondary dispatch tables.
24664 (IW_Membership): Modified to use the new table of interfaces.
24665 (Inherit_TSD): Modified to use the new table of interfaces.
24666 (Register_Interface_Tag): Use the additional formal to fill the
24667 contents of the new table of interfaces.
24668 (Set_Interface_Table): New subprogram that stores in the TSD the
24669 pointer to the table of interfaces.
24670 (Set_Offset_To_Top): Use the additional formal to save copy of
24671 the offset value in the table of interfaces.
24672 Update structure of GNAT Primary and Secondary dispatch table diagram.
24673 Add comment section on GNAT dispatch table prologue.
24674 (Offset_To_Signature): Update the constant value of the Signature field.
24675 (Dispatch_Table): Update comment on hidden fields in the prologue.
24676 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
24677 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
24678 the type of formal parameter T to Tag, introduce additional assertions.
24679 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
24680 conversion.
24681 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
24682
24683 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
24684 in all the calls to Expand_Interface_Thunk. Instead of referencing the
24685 record component containing the tag of the secondary dispatch table we
24686 have to use the Offset_To_Top run-time function to get this information;
24687 otherwise if the pointer to the base of the object has been displace
24688 we get a wrong value if we use the 'position attribute.
24689
24690 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
24691 all the calls to Expand_Interface_Thunk.
24692 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
24693 interfaces; hence the call to Set_Interface_Table was clearly wrong.
24694 (Collect_All_Interfaces): Modify the internal subprogram Collect to
24695 ensure that the interfaces implemented by the ancestors are placed
24696 at the header of the generated list.
24697 (Expand_Interface_Conversion): Handle the case in which the displacement
24698 associated with the interface conversion is not statically known. In
24699 this case we generate a call to the new run-time subprogram Displace.
24700 (Make_DT): Generate and fill the new table of interfaces.
24701 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
24702 Get_Tagged_Kind and Set_Tagged_Kind.
24703 (Tagged_Kind): New function that determines the tagged kind of a type
24704 with respect to limitedness and concurrency and returns a reference to
24705 RE_Tagged_Kind.
24706 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
24707 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
24708 primary dispatch table for a type.
24709 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
24710 secondary dispatch table respectively of a tagged type.
24711
24712 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
24713 (Expand_Interface_Conversion): New subprogram to indicate if the
24714 displacement of the type conversion is statically known.
24715 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
24716
24717 * rtsfind.ads (RE_Offset_To_Top): New entity
24718 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
24719 accessible to users.
24720 (Re_Displace): New entity
24721 (RE_Interface_Data): New entity
24722 (RE_Set_Interface_Data): New_Entity
24723 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
24724 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
24725 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
24726 RE_TK_Tagged, RE_TK_Task.
24727
24728 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
24729 Init_Secondary_Tags_Internal to allow its use with interface types and
24730 also to generate the code for the new additional actual required
24731 by Set_Offset_To_Top.
24732 (Build_Init_Statements): In case of components associated with abstract
24733 interface types there is no need to generate a call to its IP.
24734 (Freeze_Record_Type): Generate Select Specific Data tables only for
24735 concurrent types.
24736 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
24737 the bodies and specifications of the predefined primitive operations
24738 dealing with dispatching selects and abort, 'Callable, 'Terminated only
24739 for concurrent types.
24740
6f7f72f9 24741 * exp_sel.ads, exp_sel.adb: New files.
aedc2c2b
AC
24742
24743 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
24744 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
24745 properly protected objects and attach handler in the case of the
24746 restricted profile.
24747 Move embeded package Select_Expansion_Utilities into a separate external
24748 package.
24749 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
24750 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
24751 (Build_K, Build_S_Assignment): New subprograms, part of the select
24752 expansion utilities.
24753 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
24754 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
24755 where the trigger is a dispatching procedure of a limited tagged type.
24756
247572005-12-09 Olivier Hainque <hainque@adacore.com>
24758
24759 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
24760 pointer initialization values. Make a SAVE_EXPR instead. Add comments
24761 about the use and expansion of SAVE_EXPRs in the various possible
24762 renaming handling cases.
24763 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
24764 abusing DECL_FCONTEXT.
24765
247662005-12-09 Matthew Heaney <heaney@adacore.com>
24767
24768 * a-convec.adb (Merge): Added assertions to check whether vector params
24769 are sorted.
24770
24771 * a-coinve.adb (Merge): Added assertions to check whether vector params
24772 are sorted.
24773
24774 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
24775 draft.
24776 (Cursor'Read): raises PE
24777
24778 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
24779 to its default value.
24780
24781 * a-cihama.adb: Manually check whether cursor's key and elem are
24782 non-null
24783
24784 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
24785 (Merge): Assert that target and source lists are in order
24786 (Swap): Declare non-const temporaries, to pass to Splice
24787
24788 * a-cdlili.ads: (Splice): Changed param name and param mode
24789
24790 * a-cdlili.adb: (Splice): Changed param name and param mode
24791 (Merge): Assert that target and source lists are in order
24792 (Swap): Declare non-const temporaries, to pass to Splice
24793
24794 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
24795 (Write): declare Stream param as not null
24796
24797 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
24798 an exception message.
24799
248002005-12-09 Thomas Quinot <quinot@adacore.com>
24801 Robert Dewar <dewar@adacore.com>
24802
24803 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
24804 which is the absolute maximum length we can support.
24805
24806 * frontend.adb: For the processing of configuration pragma files,
24807 remove references to Opt.Max_Line_Length, which is not checked anymore.
24808
24809 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
24810 length.
24811
9e81dbc7 24812 * scn.adb, scng.adb:
aedc2c2b
AC
24813 Always check line length against the absolute supported maximum,
24814 Hostparm.Max_Line_Length.
24815
24816 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
24817 value for the maximum line length is Max_Line_Length (not
24818 Column_Number'Last).
24819 Minor error msg update
24820 (Set_Style_Check_Options): New interface returning error msg
24821 Minor code reorganization (processing for 'M' was out of alpha order)
24822
24823 * switch-c.adb: New interface for Set_Style_Check_Options
24824
24825 * stylesw.ads (Set_Style_Check_Options): New interface returning error
24826 msg.
24827
248282005-12-09 Javier Miranda <miranda@adacore.com>
24829
24830 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
24831 with IP subprogram were only supported if there were limited types.
24832
24833 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
24834 records with IP subprogram were only supported if there were limited
24835 types.
24836
248372005-12-09 Olivier Hainque <hainque@adacore.com>
24838 Eric Botcazou <ebotcazou@adacore.com>
24839
24840 * trans.c (tree_transform, emit_check): Adjust calls to
24841 build_call_raise, passing the now expected GNAT_NODE argument.
24842
24843 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
24844 source line information than what the current global locus indicates
24845 when appropriate.
24846
24847 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
24848 field has overflowed.
24849 (build_call_raise): Add a GNAT_NODE argument to convey better source
24850 line information than what the current global locus indicates when
24851 appropriate.
24852 (build_component_ref): Adjust call to build_call_raise.
24853
248542005-12-09 Pascal Obry <obry@adacore.com>
24855
24856 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
24857 the iterator is quitting iteration on parent directory.
24858
248592005-12-09 Javier Miranda <miranda@adacore.com>
24860
24861 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
24862 and the assignment to a class-wide object, before the assignment we
24863 generate a run-time check to ensure that the tag of the Target is
24864 covered by the tag of the source.
24865
248662005-12-09 Robert Dewar <dewar@adacore.com>
24867
24868 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
24869 parameter in call to Image_Wide_Character.
24870
24871 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
24872 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
24873 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
24874 annoying FFFE/FFFF inconsistency.
24875
248762005-12-09 Robert Dewar <dewar@adacore.com>
24877 Javier Miranda <miranda@adacore.com>
24878 Ed Schonberg <schonberg@adacore.com>
24879
24880 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
24881 of type conversion.
24882 (Find_Interface): New subprogram that given a tagged type and one of its
24883 component associated with the secondary table of an abstract interface
24884 type, return the entity associated with such abstract interface type.
24885 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
24886 base type to create anonymous subtype, because entity may be a locally
24887 declared subtype or generic actual.
24888 (Find_Interface): New subprogram that given a tagged type and one of its
24889 component associated with the secondary table of an abstract interface
24890 type, return the entity associated with such abstract interface type.
24891
24892 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
24893 conversion cannot be handled at compile time. In this case we pass this
24894 information to the expander to generate the appropriate code.
24895
248962005-12-09 Robert Dewar <dewar@adacore.com>
24897 Ed Schonberg <schonberg@adacore.com>
24898 Gary Dismukes <dismukes@adacore.com>
24899 Javier Miranda <miranda@adacore.com>
24900 Hristian Kirtchev <kirtchev@adacore.com>
24901
24902 * einfo.adb (Itype_Printed): New flag
24903 (Is_Limited_Type): Derived types do not inherit limitedness from
24904 interface progenitors.
24905 (Is_Return_By_Reference_Type): Predicate does not apply to limited
24906 interfaces.
24907
24908 * einfo.ads (Itype_Printed): New flag
24909 Move Is_Wrapper_Package to proper section
24910 Add missing Inline for Is_Volatile
24911
24912 * output.ads, output.adb (Write_Erase_Char): New procedure
24913 (Save/Restore_Output_Buffer): New procedures
24914 (Save/Restore_Output_Buffer): New procedures
24915
24916 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
24917 Add missing support for anonymous access type
24918 (Write_Id): Insert calls to Write_Itype
24919 (Write_Itype): New procedure to output itypes
24920
24921 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
24922 use of "limited" in declaration.
24923
9e81dbc7 24924 * sinfo.ads, sinfo.adb:
aedc2c2b
AC
24925 Formal derived types can carry an explicit "limited" indication.
24926
24927 * sem_ch3.adb: Add with and use of Targparm.
24928 (Create_Component): If Frontend_Layout_On_Target is True and the
24929 copied component does not have a known static Esize, then reset
24930 the size and positional fields of the new component.
24931 (Analyze_Component_Declaration): A limited component is
24932 legal within a protected type that implements an interface.
24933 (Collect_Interfaces): Do not add to the list the interfaces that
24934 are implemented by the ancestors.
24935 (Derived_Type_Declaration): If the parent of the full-view is an
24936 interface perform a transformation of the tree to ensure that it has
24937 the same parent than the partial-view. This simplifies the job of the
24938 expander in order to generate the correct object layout, and it is
24939 needed because the list of interfaces of the full-view can be given in
24940 any order.
24941 (Process_Full_View): The parent of the full-view does not need to be
24942 a descendant of the parent of the partial view if both parents are
24943 interfaces.
24944 (Analyze_Private_Extension_Declaration): If declaration has an explicit
24945 "limited" the parent must be a limited type.
24946 (Build_Derived_Record_Type): A derived type that is explicitly limited
24947 must have limited ancestor and progenitors.
24948 (Build_Derived_Type): Ditto.
24949 (Process_Full_View): Verify that explicit uses of "limited" in partial
24950 and full declarations are consistent.
24951 (Find_Ancestor_Interface): Remove function.
24952 (Collect_Implemented_Interfaces): New procedure used to gather all
24953 implemented interfaces by a type.
24954 (Contain_Interface): New function used to check whether an interface is
24955 present in a list.
24956 (Find_Hidden_Interface): New function used to determine whether two
24957 lists of interfaces constitute a set equality. If not, the first
24958 differing interface is returned.
24959 (Process_Full_View): Improve the check for the "no hidden interface"
24960 rule as defined by AI-396.
24961
249622005-12-09 Robert Dewar <dewar@adacore.com>
24963
24964 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
24965 types, not on record subtypes.
24966 (Freeze_Entity): Code cleanup. Add barrier to the loop
24967 that generates the references for primitive operations. This allows to
24968 remove an unnecessary exception handler.
24969 Code reformatting and comment clean ups.
24970
249712005-12-09 Vincent Celier <celier@adacore.com>
24972
24973 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
24974 If GNAT CHECK is called with a project file, but with no
24975 source on the command line, call gnatcheck with all the compilable
24976 sources of the project.
24977 Take into account the new command Check, for gnatcheck. Treat as for
24978 other ASIS tools: take into account project, specific package Check and
24979 Compiler switches.
24980 For ASIS tools, add the switches in package Compiler for
24981 the invocation of the compiler.
24982
24983 * prj-attr.adb: Add package Check and its attributes
24984
24985 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
24986
24987 * vms_conv.adb (Initialize): Change Params of command Check to
24988 unlimited files.
24989 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24990 Add data for new command Check
24991
24992 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
24993 ELIM.
24994 Add qualifiers for Check command options
24995 (Command_Type): New command Check
24996
249972005-12-09 Thomas Quinot <quinot@adacore.com>
24998
24999 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
25000 command line switch overruns the output buffer.
25001
250022005-12-09 Robert Dewar <dewar@adacore.com>
25003
25004 * sem_prag.adb: Processing for new pragma Complete_Representation
25005 (Analyze_Pragma, case Debug): Implement two argument form.
25006
25007 * par-prag.adb: Entry for new pragma Complete_Representation
25008 (Prag, case Debug): Recognize two argument form of pragma Debug
25009 New interface for Set_Style_Check_Options.
25010
25011 * sem_ch13.adb: Implement new pragma Complete_Representation.
25012
25013 * snames.adb, snames.ads, snames.h: Entry for new pragma
25014 Complete_Representation.
25015
250162005-12-09 Gary Dismukes <dismukes@adacore.com>
25017
25018 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
25019 available user-specified stream attributes on limited parameters to
25020 also test the type directly rather than only its underlying type (for
25021 Ada 95) and, in the case of Ada 2005, to check that the user-specified
25022 attributes are visible at the point of the subprogram declaration.
25023 For Ada 2005, the error message is modified to indicate that the
25024 type's stream attributes must be visible (again, only for -gnat05).
25025
250262005-12-09 Ed Schonberg <schonberg@adacore.com>
25027
25028 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
25029 anonymous access types.
25030
25031 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
25032 matching of anonymous access types and anonymous access to subprogram
25033 types. 'R'M 4.9.1 (2/2).
25034
250352005-12-09 Ed Schonberg <schonberg@adacore.com>
25036
25037 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
25038 rule prematurely when operands are universal, remaining ambiguities
25039 will be removed during resolution.
25040 Code cleanup.
25041
25042 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
25043 that are Ada 2005 functions.
25044 (Has_Abstract_Interpretation): Subsidiary to
25045 Remove_Conversions, to remove ambiguities caused by abstract operations
25046 on numeric types when operands are universal.
25047
250482005-12-09 Robert Dewar <dewar@adacore.com>
25049
25050 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
25051 for case where spec is categorized.
25052
250532005-12-09 Javier Miranda <miranda@adacore.com>
25054
25055 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
25056 types use the corresponding record type. This was not needed before
25057 the implementation of Ada 2005 synchronized types because
25058 concurrent types were never tagged types in Ada 95.
25059
250602005-12-09 Ed Schonberg <schonberg@adacore.com>
25061
25062 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
25063 first subtype of the type of the expression to verify that it is a
25064 legal Time type.
25065
250662005-12-09 Robert Dewar <dewar@adacore.com>
25067
25068 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
25069 decoded names.
25070
250712005-12-09 Quentin Ochem <ochem@adacore.com>
25072 Robert Dewar <dewar@adacore.com>
25073 Ed Falis <falis@adacore.com>
25074 Florian Villoing <villoing@adacore.com>
25075 Thomas Quinot <quinot@adacore.com>
25076 Arnaud Charlet <charlet@adacore.com>
25077
25078 * gnat_ugn.texi: Created section "Stack Related Tools"
25079 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
25080 "Stack Related Tools"
25081 Added subsection "Static Stack Usage Analysis"
25082 Added subsection "Dynamic Stack Usage Analysis"
25083 Include documentation of itypes in sprint listing (-gnatG)
25084 Documented gnatbind -D switch (default sec stack size for fixed sec
25085 stacks).
25086 Added Interrupt_State and Persistent_BSS to list of configuration
25087 pragmas.
25088 Add missing doc for maximum value of nnn in -gnatyMnnn
25089
25090 * gnat_rm.texi: Document the AltiVec binding.
25091 Add documentation for pragma Complete_Representation
25092 Shortened an overly long line (> 79 chars)
25093 Clarify documentation of unchecked conversion in implementation
25094 defined cases.
25095 Document two argument form of pragma Debug
25096
25097 * types.ads (Column_Number): Update documentation.
25098
25099 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
25100 library level Finalize_Storage_Only objects (these are not attached to
25101 any finalization list).
25102
25103 * system-mingw.ads: (Underlying_Priorities): Update comment.
25104
251052005-12-09 Robert Dewar <dewar@adacore.com>
25106
25107 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
6f7f72f9 25108 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
aedc2c2b
AC
25109 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
25110 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
25111 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
25112 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
25113 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
25114 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
25115 reformatting.
25116
251172005-12-09 Robert Dewar <dewar@adacore.com>
25118
25119 * s-vaflop-vms-alpha.adb: (Ne_F): New function
25120 (Ne_G): New function
25121
25122 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
25123 for tag assignment.
25124 (Rewrite_Comparison): Handle case where operation is not a comparison
25125 and ignore, and also handle type conversion case.
25126
251272005-12-09 Thomas Quinot <quinot@adacore.com>
25128
25129 * exp_aggr.ads: Fix typo in comment.
25130 ???-mark Convert_Aggr_In_Assignment as needing documentation.
25131
251322005-12-09 Gary Dismukes <dismukes@adacore.com>
25133
25134 * layout.adb: Replace various uses of byte by storage unit throughout.
25135 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
25136 static size, convert to storage units before returning, to conform to
25137 spec.
25138
251392005-12-09 Matthew Gingell <gingell@adacore.com>
25140
25141 * g-exctra.ads: Fix typo in comment.
25142
251432005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25144
25145 * utils.c: Minor reformatting.
25146
251472005-12-09 Robert Dewar <dewar@adacore.com>
25148
9e81dbc7 25149 * g-soccon.ads:
aedc2c2b
AC
25150 Further comment fixes to make the status of the default file clear
25151
25152 * s-bitops.adb: Clarify comment for Bits_Array
25153
719bb4e3 251542005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
bd97af06
RÁE
25155
25156 * Make-lang.in (ada.install-normal): Remove.
25157
719bb4e3 251582005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2f4d2d18
AM
25159
25160 * Make-lang.in: Remove all dependencies on s-gtype.
25161
53917868
RG
251622005-12-05 Richard Guenther <rguenther@suse.de>
25163
25164 * utils.c (convert): Use fold_convert where appropriate.
25165
40077270
PB
251662005-12-05 Paolo Bonzini <bonzini@gnu.org>
25167
6f7f72f9 25168 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
40077270
PB
25169 a period is meant.
25170
a380cd0a
RG
251712005-12-02 Richard Guenther <rguenther@suse.de>
25172
25173 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
25174
87f2a9f5
RS
251752005-12-01 Roger Sayle <roger@eyesopen.com>
25176
25177 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
25178 nodes.
25179
9e94c78f 251802005-11-23 Laurent Guerby <laurent@guerby.net>
f8d15f14 25181
6f7f72f9 25182 * mlib-prj.adb (Build_Library): Initialize Delete.
f8d15f14 25183
9e94c78f 251842005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
04b5d587
JS
25185
25186 * socket.c: Add extern int h_errno for rtems since networking header
25187 files are not available at this point in a tool bootstrap. Newlib
25188 only has basic C library header files.
25189
452b5b1e
RG
251902005-11-19 Richard Guenther <rguenther@suse.de>
25191 Roger Sayle <roger@eyesopen.com>
25192
25193 PR ada/23717
25194 * misc.c (internal_error_function): Don't use vsprintf to format
25195 the error message text, instead use pp_format_text and the new
25196 pretty printer APIs. This allows handling of %qs, %w, etc.
25197
9e94c78f 251982005-11-18 Laurent Guerby <laurent@guerby.net>
e0709888 25199
6f7f72f9
EB
25200 PR ada/24857
25201 * Makefile.in: Use s-auxdec-empty for RTEMS.
e0709888 25202
115a82d3
RK
252032005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25204
25205 PR ada/22333
25206 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
25207 a temporary if taking the address of something that is neither
25208 reference, declaration, or constant, since the gimplifier
25209 can't handle that case.
25210
9e94c78f 252112005-11-17 Laurent Guerby <laurent@guerby.net>
f92af607
LG
25212
25213 PR ada/24857
25214 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
6f7f72f9 25215
0678ec6b
RG
252162005-11-16 Richard Guenther <rguenther@suse.de>
25217
25218 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
25219
9e94c78f 252202005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
b381d30b 25221
6f7f72f9
EB
25222 PR ada/24855
25223 * raise-gcc.c: Add missing stdarg.h include.
9e81dbc7 25224
1367ca38
RG
252252005-11-16 Richard Guenther <rguenther@suse.de>
25226
25227 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
25228 (ada/misc.o): Likewise.
25229
5de923eb
AC
252302005-11-14 Thomas Quinot <quinot@adacore.com>
25231
25232 * g-soccon.ads: Minor reformatting. Update comments.
25233
25234 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
25235 gain visibility on the declaration of struct timeval.
25236
25237 * g-soccon-freebsd.ads,
25238 g-soccon-darwin.ads,
25239 g-soccon-tru64.ads,
25240 g-soccon-aix.ads,
25241 g-soccon-irix.ads,
25242 g-soccon-hpux.ads,
25243 g-soccon-solaris.ads,
25244 g-soccon-vms.ads,
25245 g-soccon-mingw.ads,
25246 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
25247
25248 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
25249 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
25250 g-soccon-linux-x86.ads: New files.
25251
9e81dbc7 25252 * g-socthi-mingw.adb:
5de923eb
AC
25253 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
25254
25255 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
25256 (time_t, suseconds_t): New types constructed to match the tv_sec
25257 and tv_usec fields of C struct timeval.
25258 (Timeval): Construct structure in terms of the new types.
25259 (Host_Errno): New function (imported from socket.c), returns last hosts
25260 database error.
25261
25262 * g-socthi-vxworks.adb: Add error handling circuitry.
25263
25264 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
25265 components of struct timeval.
25266 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
25267 (Check_Selector): In error conditions, clear internal socket sets to
25268 avoid a memory leak.
25269 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
25270 Send_Timeout, Receive_Timeout.
25271
25272 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
25273 the tv_sec and tv_usec fields of C struct timeval.
25274 (Timeval): Construct structure in terms of the new types.
25275 (Host_Errno): New function (imported from socket.c), returns last hosts
25276 database error.
25277
25278 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
25279 hosts database last error code.
25280
25281 * gen-soccon.c: Complete value expansion should not be performed on
25282 TARGET, as it has the form of a math expression, and some components
25283 may be platform-defined macros.
25284 For VxWorks, generate the OK and ERROR values.
25285 New constants giving the sizes of the components of C struct timeval.
25286
252872005-11-14 Robert Dewar <dewar@adacore.com>
25288 Ed Schonberg <schonberg@adacore.com>
25289
25290 PR ada/18434
5de923eb
AC
25291 * types.ads: Include All_Checks in Suppress_Array
25292
25293 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
25294 not(a=b), since we no longer do this rewriting, and hence it is not
25295 needed.
25296 (Elaboration_Checks_Suppressed): Add special casing to
25297 deal with different cases of static and dynamic elaboration checks (all
25298 checks does not count in the first case, but does in the second).
25299 (Expr_Known_Valid): Do not assume that the result of any arbitrary
25300 function call is valid, since this is not the case.
25301 (Ensure_Valid): Do not apply validity check to a real literal
25302 in a universal or fixed context
25303
25304 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
25305 elementary types using the operator in standard. It is cleaner not to
25306 modify the programmers intent, especially in the case of floating-point.
25307 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
25308 it did not matter because we always rewrote a/=b to not(a=b).
25309 (Expand_Allocator_Expression): For an allocator expression whose nominal
25310 subtype is an unconstrained packed type, convert the expression to its
25311 actual constrained subtype.
25312 Implement warning for <= or >= where < or > not possible
25313 Fix to Vax_Float tests (too early in many routines, causing premature
25314 Vax_Float expansions.
25315
25316 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
25317 to be used with packages and generic packages as well as with
25318 subprograms.
25319 (Suppress): Set All_Checks, but not Elaboration_Check, for case
25320 of pragma Suppress (All_Checks)
25321 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
25322 a string literal for precise control over warnings.
25323 Avoid raise of pragma in case of unrecognized pragma and just return
25324 instead.
25325
25326 * sem_prag.ads: Minor reformatting
25327
25328 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
25329 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25330 Switch. Do not handle any exception.
25331 Include -gnatwx as part of -gnatg (warn on redundant parens)
25332 Allow optional = after -gnatm
25333 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
25334 longer sets Elaboration_Checks.
25335 Code to set warning mode moved to Sem_Warn
25336 so that it can be shared by pragma processing.
25337
25338 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
25339 statement.
25340
9e81dbc7 25341 * s-taprop-solaris.adb:
5de923eb
AC
25342 Change some <= to =, to avoid new warning
25343
9e81dbc7 25344 * a-exexda.adb, prj-proc.adb:
5de923eb
AC
25345 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
25346 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
25347
253482005-11-14 Robert Dewar <dewar@adacore.com>
25349
25350 * exp_vfpt.adb: Handle /= case
25351 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
25352 so that we do not get duplicate scaling for fixed point conversions.
25353
25354 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
25355
253562005-11-14 Matthew Gingell <gingell@adacore.com>
25357
9e81dbc7 25358 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
5de923eb
AC
25359 Increase default priority on Lynx from 15 to 17, and meet the Ada
25360 requirement that Default_Priority be ((Priority'First +
25361 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
25362
253632005-11-14 Vincent Celier <celier@adacore.com>
25364
25365 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25366 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
25367 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
25368 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
25369 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
25370 mlib-tgt-lynxos.adb (DLL_Prefix): New function
25371
253722005-11-14 Doug Rupp <rupp@adacore.com>
25373
25374 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
25375 private part.
25376
253772005-11-14 Arnaud Charlet <charlet@adacore.com>
25378
25379 * s-traces-default.adb, s-trafor-default.ads,
25380 s-tratas-default.adb: Fix compilation errors.
25381
253822005-11-14 Jose Ruiz <ruiz@adacore.com>
25383
25384 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
25385 raising the exception so the memory used is freed.
25386
253872005-11-14 Arnaud Charlet <charlet@adacore.com>
25388
25389 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
25390 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
25391 (convert_address): Update comments and list of platforms using this.
25392
25393 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
25394 no longer used.
25395
253962005-11-14 Pascal Obry <obry@adacore.com>
25397 Vincent Celier <celier@adacore.com>
25398
25399 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
25400 GNAT.Command_Line.
25401
25402 * memroot.adb: Remove redundant with/use clause on
25403 System.Storage_Elements.
25404
254052005-11-14 Arnaud Charlet <charlet@adacore.com>
25406
25407 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
25408 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
25409 related code to a-exexpr.adb
25410 (Save_Occurrence_And_Private): Move GCC EH related code to
25411 a-exexpr-gcc.adb
25412 (Raise_Current_Excep): Add new variable Id with pragma
6f7f72f9 25413 volatile, to ensure that the variable lives on stack.
5de923eb
AC
25414
25415 * a-exexpr-gcc.adb, raise-gcc.c: New file.
25416
25417 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
25418 from a-except.adb.
25419 Move GCC EH related code to a-exexpr-gcc.adb
25420
25421 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
25422 64-bit Solaris
25423 Split the Linux version of g-soccon into separate variants for 32 and 64
25424 bit platforms.
25425 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
25426 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
25427 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
25428 of host variable $(RANLIB_FLAGS).
25429 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
25430 Code clean up: remove unused/obsolete targets.
25431 (EH_MECHANISM): New variable introduced to differenciate between the
25432 two EH mechanisms statically.
25433 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
25434 (LIBGNAT_OBJS): Add raise-gcc.o
25435 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
25436 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
25437 supports VxWorks 6 RTPs.
25438 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
25439 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
25440
25441 * raise.c: Move all GCC EH-related routines to raise-gcc.c
25442
254432005-11-14 Jose Ruiz <ruiz@adacore.com>
25444
25445 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
25446 deferral level, when abort is not allowed, to a later stage (the
25447 Task_Wrapper).
25448 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
25449 it will not get changed by the generated code. It was previously done
25450 in Create_Task.
25451
254522005-11-14 Thomas Quinot <quinot@adacore.com>
25453 Olivier Hainque <hainque@adacore.com>
25454 Eric Botcazou <ebotcazou@adacore.com>
25455
25456 * decl.c:
25457 Factor common code to build a storage type for an unconstrained object
25458 from a fat or thin pointer type and a constrained object type.
25459 (annotate_value): Handle BIT_AND_EXPR.
25460 (annotate_rep): Don't restrict the back annotation of inherited
25461 components to the type_annotate_only case.
25462 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
25463 we are not defining the type.
25464 <E_Record_Type>: Likewise.
25465 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
25466 to get advantage of the new maybe_stabilize_reference interface, to
25467 ensure that what we reference is indeed stabilized instead of relying
25468 on assumptions on what the stabilizer does.
25469 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
25470 type imported through a limited_with clause, use its non-limited view.
25471 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
25472 differentiation.
25473 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
25474 of #if sections + explicit comparisons of convention identifiers.
25475 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
25476 before early-returning for certain types when code generation is
25477 disabled.
25478 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
25479 nullification of gnu_expr we do for objects with address clause and
25480 that we are not defining.
25481 (elaborate_expression_1): Do not create constants when creating
25482 variables needed by the debug info: the dwarf2 writer considers that
25483 CONST_DECLs is used only to represent enumeration constants, and emits
25484 nothing for them.
25485 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
25486 object with an address clause into an indirect reference, drop the
25487 initializing expression.
25488 Include "expr.h".
25489 (STACK_CHECK_BUILTIN): Delete.
25490 (STACK_CHECK_PROBE_INTERVAL): Likewise.
25491 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
25492 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
25493 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
25494 corresponding to the renamed object as ignored for debugging purposes.
25495
25496 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
25497 related): For a prefix that is a dereference of a fat or thin pointer,
25498 if there is an actual subtype provided by the front-end, use that
25499 subtype to build an actual type with bounds template.
25500 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
25501 is provided by the front-end, use that subtype to compute the size of
25502 the deallocated object.
25503 (gnat_to_gnu): When adding a statement into an elaboration procedure,
25504 check for a potential violation of a No_Elaboration_Code restriction.
25505 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25506 with extra arguments to control whether to recurse through non-values
25507 and to let the caller know if the stabilization has succeeded.
25508 (gnat_stabilize_reference): Now a simple wrapper around
25509 maybe_stabilize, for common uses without restriction on lvalues and
25510 without need to check for the success indication.
25511 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
25512 pass false instead of 0 as the FORCE argument which is a bool.
25513 (Identifier_to_gnu): Remove checks ensuring that an renamed object
25514 attached to a renaming pointer has been properly stabilized, as no such
25515 object is attached otherwise.
25516 (call_to_gnu): Invoke create_var_decl to create the temporary when the
25517 function uses the "target pointer" return mechanism.
25518 Reinstate conversion of the actual to the type of the formal
25519 parameter before any other specific treatment based on the passing
25520 mechanism. This turns out to be necessary in order for PLACEHOLDER
25521 substitution to work properly when the latter type is unconstrained.
25522
25523 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
25524 common pattern.
25525 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25526 with extra arguments to control whether to recurse through non-values
25527 and to let the caller know if the stabilization has succeeded.
25528
25529 * utils2.c (gnat_build_constructor): Only sort the fields for possible
25530 static output of record constructor if all the components are constant.
25531 (gnat_build_constructor): For a record type, sort the list of field
25532 initializers in increasing bit position order.
25533 Factor common code to build a storage type for an unconstrained object
25534 from a fat or thin pointer type and a constrained object type.
25535 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
25536 types variants, and process special cases of VIEW_CONVERT expressions
25537 as their NOP_EXPR counterpart to ensure we get to the
25538 CORRESPONDING_VARs associated with CONST_DECls.
25539 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
25540 on the right-hand side.
25541
25542 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
25543 a common pattern.
25544 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
25545 are converting back to its original type.
25546 (convert) <JM input>: Fallthrough regular conversion code instead of
25547 extracting the object if converting to a type variant.
25548 (create_var_decl): When a variable has an initializer requiring code
25549 generation and we are at the top level, check for a potential violation
25550 of a No_Elaboration_Code restriction.
25551 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
25552 SIZE and SIZE_UNIT which we need for later back-annotations.
25553 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
25554 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
25555 is an unchecked union.
25556 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
25557 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
25558 main variant, just replace the VIEW_CONVERT_EXPR.
25559 <UNION_TYPE>: Revert 2005-03-02 change.
25560
25561 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
25562
25563 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
25564
255652005-11-14 Matthew Heaney <heaney@adacore.com>
25566
9e81dbc7
AS
25567 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
25568 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
25569 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
25570 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
25571 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25572 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
5de923eb
AC
25573 Compiles against the spec for ordered maps described in sections
25574 A.18.6 of the most recent (August 2005) AI-302 draft.
25575
255762005-11-14 Olivier Hainque <hainque@adacore.com>
25577
25578 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
25579 to ensure bias adjustments take place when need be and to prevent
25580 occurrences of intermediate overflows.
25581
255822005-11-14 Matthew Gingell <gingell@adacore.com>
25583 Olivier Hainque <hainque@adacore.com>
25584
25585 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
25586 ia64 HP-UX.
25587
25588 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
25589 tracebacks on ia64 HP-UX and provide explanatory comment.
25590 Enable backtraces on ia64 GNU/Linux.
25591 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
25592 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
25593
255942005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
25595 Javier Miranda <miranda@adacore.com>
25596
25597 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
25598 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
25599 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
25600 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
25601
25602 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
25603 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
25604 assertions).
25605
25606 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
25607 subprogram that generates the external name associated with a
25608 secondary dispatch table.
25609 (Get_Secondary_DT_External_Name): New subprogram that generates the
25610 external name associated with a secondary dispatch table.
25611
256122005-11-14 Emmanuel Briot <briot@adacore.com>
25613
25614 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
25615 line in the ALI file to include both an instantiation reference, and a
25616 returned value.
25617
256182005-11-14 Vincent Celier <celier@adacore.com>
25619
25620 * clean.adb (Check_Project): Look for Ada code in extending project,
25621 even if Ada is not specified as a language.
25622 Use new function DLL_Prefix for DLL_Name
25623 (Clean_Interface_Copy_Directory): New procedure
25624 (Clean_Library_Directory): New procedure
25625 (Clean_Directory): Remove procedure, no longer used
25626 (Clean_Project): Do not delete any file in an externally built project
25627
25628 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
25629 directory of an extending project, even when there are no Ada source
25630 present.
25631 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
25632 (Set_Ada_Paths.Add.Recursive_Add): Ditto
25633
25634 * mlib-prj.adb (Check_Library): For all library projects, get the
25635 library file timestamp.
25636 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
25637 (Build_Library): Use new function DLL_Prefix for the DLL_Name
25638 (Clean): Remove procedure, no longer used
25639 (Ultimate_Extension_Of): New function
25640 (Build_Library): When cleaning the library directory, only remove an
25641 existing library file and any ALI file of a source of the project.
25642 When cleaning the interface copy directory, remove any source that
25643 could be a source of the project.
25644
25645 * prj.ads, prj.adb (Project_Empty): Add values of new components
25646 Library_TS and All_Imported_Projects.
25647 (Project_Empty): Add values for new components of Project_Data:
25648 Library_ALI_Dir and Display_Library_ALI_Dir
25649
25650 * prj-attr.adb: New project level attribute name Library_ALI_Dir
25651
25652 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
25653 attribute Library_ALI_Dir.
25654 (Check_Library_Attributes): The library directory cannot be the same as
25655 any source directory of the project tree.
25656 (Check_Stand_Alone_Library): The interface copy directory cannot be
25657 the same as any source directory of the project tree.
25658
25659 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
25660 all temporary files.
25661
256622005-11-14 Robert Dewar <dewar@adacore.com>
25663 Ed Schonberg <schonberg@adacore.com>
25664
25665 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25666 (Check_Elab_Call): A call within a protected body is never an
25667 elaboration call, and does not require checking.
25668 (Same_Elaboration_Scope): Take into account protected types for both
25669 entities.
25670 (Activate_Elaborate_All_Desirable): New procedure
25671
25672 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
25673 desirable
25674
25675 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
25676 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
25677
9e81dbc7 25678 * lib-writ.ads, lib-writ.adb:
5de923eb
AC
25679 Implement new AD/ED for Elaborate_All/Elaborate desirable
25680 Use new Elaborate_All_Desirable flag in N_With_Clause node
25681
25682 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
25683 N_Free_Statement nodes.
25684 Define new class N_Subprogram_Instantiation
25685 Add Elaborate_Desirable flag to N_With_Clause node
25686 Add N_Delay_Statement (covering two kinds of delay)
25687
25688 * debug.adb: Introduce d.f flag for compiler
25689 Add -da switch for binder
25690
256912005-11-14 Ed Schonberg <schonberg@adacore.com>
25692 Cyrille Comar <comar@adacore.com>
25693
25694 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
25695 for task component, in the case of a limited aggregate. The enclosed
25696 object declaration will create it earlier. Otherwise, in the case of a
25697 nested aggregate, the object may appear in the wrong scope.
25698 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
25699 (Gen_Assign): If the component being assigned is an array type and the
25700 expression is itself an aggregate, wrap the assignment in a block to
25701 force finalization actions on the temporary created for each row of the
25702 enclosing object.
25703 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
25704 structures are initialized after all discriminants are set so that
25705 they can be accessed even when their offset is dynamic.
25706
257072005-11-14 Robert Dewar <dewar@adacore.com>
25708 Hristian Kirtchev <kirtchev@adacore.com>
25709
25710 * sem_attr.adb: Implement Machine_Rounding attribute
25711 (Analyze_Access_Attribute): The access attribute may appear within an
25712 aggregate that has been expanded into a loop.
25713 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
25714 'Terminated whenever the prefix is of a task interface class-wide type.
25715 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
25716 the prefix is of a task interface class-wide type.
25717
25718 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
25719 to avoid warnings.
25720
25721 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
25722 Remove pragma Inline for [Unaligned_]Valid.
25723 Add comments that Valid routines do not work for Vax_Float
25724
25725 * exp_attr.adb: Implement Machine_Rounding attribute
25726
25727 * snames.h: Add entry for Machine_Rounding attribute
25728
257292005-11-14 Javier Miranda <miranda@adacore.com>
25730 Robert Dewar <dewar@adacore.com>
25731 Hristian Kirtchev <kirtchev@adacore.com>
25732
25733 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
25734 and related): For a prefix that is an explicit dereference of an
25735 access to unconstrained packed array type, annotate the dereference
25736 with an actual subtype so GIGI can make a correct size computation.
25737 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
25738 'Unrestricted_Access, if the designated type is an interface we
25739 add a type conversion to force the displacement of the pointer
25740 to the secondary dispatch table.
25741 Use Universal_Real instead of Long_Long_Float when we need a high
25742 precision float type for the generated code (prevents gratuitous
25743 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25744 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
25745 'Terminated for task interface class-wide objects. Generate a call to
25746 the predefined dispatching routine used to retrieve the _task_id from
25747 a task corresponding record.
25748 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
25749
25750 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25751 (Check_Dispatching_Operation): Protect the frontend againts
25752 previously detected errors.
25753
25754 * Makefile.rtl: Add new instantiations of system.fat_gen
25755
9e81dbc7 25756 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
5de923eb
AC
25757 Change name of instantiated package for better consistency
25758 with newly added system.fat_gen instantiations.
25759
25760 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
25761 s-fvagfl.ads: New files.
25762
257632005-11-14 Cyrille Comar <comar@adacore.com>
25764 Thomas Quinot <quinot@adacore.com>
25765
25766 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
25767 assignment of a value of a tagged type that has been rewritten to a
25768 block statement, it is known by construction that no checks are
25769 necessary for the statements within the block: analyze it with checks
25770 suppressed.
25771 (Expand_N_If_Statement): When killing a dead then-branch in an
25772 if-statement that has elsif_parts, recompute the Current_Value node
25773 for any entity whose value is known from the condition of the first
25774 elsif_part.
25775 (Expand_N_Return_Statement): When returning a mutable record, convert
25776 the return value into its actual subtype in order to help the backend
25777 to return the actual size instead of the maximum. This is another
25778 aftermath of not returning mutable records on the sec-stack anymore.
25779
25780 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
25781 handling of error msg for suspicious reverse range iteration.
25782 (Check_Possible_Current_Value_Condition): Move declaration from body to
25783 spec, to allow this subprogram to be called from exp_ch5.
25784
257852005-11-14 Thomas Quinot <quinot@adacore.com>
25786
25787 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
25788 generate a set of nested array aggregates instead of a single flat
25789 aggregate for multi-dimensional arrays.
25790
257912005-11-14 Pascal Obry <obry@adacore.com>
25792
25793 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
25794 by spawnve is a process handle, no need to convert. Add a parameter
25795 close to control wether the process handle must be closed.
25796 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
25797 a process handle, not need to convert.
25798 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
25799
25800 * g-expect.adb: (Kill): Document the new close parameter.
25801 (Close): Do not release the process handle in the kill there as
25802 waitpid() is using it.
25803 (Send_Signal): Release the process handle.
25804
258052005-11-14 Robert Dewar <dewar@adacore.com>
25806
25807 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
25808 need a high precision float type for the generated code (prevents
25809 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25810 used).
25811
25812 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
25813 need a high precision float type for the generated code (prevents
25814 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
25815 used).
25816 (Expand_Width_Attribute): In configurable run-time, the attribute is not
25817 allowed on non-static enumeration subtypes. Force a load error to emit
25818 the correct diagnostic.
25819
258202005-11-14 Thomas Quinot <quinot@adacore.com>
25821 Robert Dewar <dewar@adacore.com>
25822 Ed Schonberg <schonberg@adacore.com>
25823
25824 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
25825 subtype to compute the size of the designated object at run-time,
25826 create such a subtype and store it in the Actual_Designated_Subtype
25827 attribute of the N_Free_Statement.
25828 Generate itype for classwide designated object in both cases of
25829 user-specified storage pool: specific and class-wide, not only in the
25830 specific case.
25831 Raise CE when trying to set a not null access type object to null.
25832 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
25833 an explicit loop, because freeze nodes make its position variable.
25834
25835 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
25836 null object.
25837
258382005-11-14 Javier Miranda <miranda@adacore.com>
25839
25840 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
25841 Build_Stream_Procedure): Add the null-excluding attribute to the first
25842 formal.
25843 This has no semantic meaning under Ada95 mode but it is a
25844 requirement under Ada05 mode.
25845
25846 * par-ch3.adb (P_Access_Definition): Addition of warning message if
25847 the null exclusion is used under Ada95 mode
25848 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
25849 (P_Access_Definition): Remove assertion that forbids the use of
25850 the null-exclusion feature in Ada95.
25851
258522005-11-14 Robert Dewar <dewar@adacore.com>
25853
25854 * impunit.adb: Exclude container helper units not intended for use by
25855 users.
25856
258572005-11-14 Ed Schonberg <schonberg@adacore.com>
25858
25859 * freeze.adb (Freeze_Entity): For an access formal that is an access
25860 to subprogram, freeze the anonymous subprogram type at the same time,
25861 to prevent later freezing in the wrong scope, such as the enclosing
25862 subprogram body.
25863 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
25864 subprogram whenever available.
25865
258662005-11-14 Arnaud Charlet <charlet@adacore.com>
25867
25868 PR ada/23732
25869 * gnatvsn.ads (Library_Version): Bump to 4.1
25870
258712005-11-14 Robert Dewar <dewar@adacore.com>
25872
25873 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
25874 Storage_Offset to avoid wrap around causing invalid results.
25875
258762005-11-14 Pascal Obry <obry@adacore.com>
25877
25878 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
25879 cross-compiler.
25880 (Scan_Bind_Arg): Fail with an error message if -M option is used
25881 on a native compiler.
25882
258832005-11-14 Robert Dewar <dewar@adacore.com>
25884 Vincent Celier <celier@adacore.com>
25885
25886 * gprep.adb: Implement -C switch to scan comments
25887
25888 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
25889
25890 * scans.ads: Comment updates (including new use of Tok_Comment in
25891 preprocessing)
25892
25893 * opt.ads: Add documentation for flags that are used by gprmake,
25894 currently and in the next version of gprmake.
25895 (Verbosity_Level): New variable
25896 Add Replace_In_Comments switch
25897
25898 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
25899 and -vm.
25900 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
25901
259022005-11-14 Arnaud Charlet <charlet@adacore.com>
25903
25904 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
25905 message, friendlier.
25906
259072005-11-14 Robert Dewar <dewar@adacore.com>
25908
25909 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
25910
259112005-11-14 Doug Rupp <rupp@adacore.com>
25912
25913 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
25914
259152005-11-14 Robert Dewar <dewar@adacore.com>
25916
25917 * interfac.ads: Change declarations of IEEE float types so that we no
25918 longer need a separate version of this package for VMS.
25919
259202005-11-14 Ed Schonberg <schonberg@adacore.com>
25921
25922 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
25923 internal entity created for the declaration of a child subprogram body
25924 with no spec as coming from source, to generate proper cross-reference
25925 information.
25926
259272005-11-14 Vincent Celier <celier@adacore.com>
25928
25929 * make.adb (Compile_Sources): Change verbose message to minimum
25930 verbosity level High for "is in an Ada library", "is a read-only
25931 library" and "is an internal library",
25932 (Create_Binder_Mapping_File): Path name of ALI file for library project
25933 must include the library directory, not the object directory.
25934 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
25935 for new switches -vl, -vm and -vh.
25936 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
25937 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
25938 (Compile_Sources): Do not attempt to compile if an ALI file is missing
25939 in a project that is externally built.
25940 (Compute_All_Imported_Projects): New procedure
25941 (Gnatmake): Check if importing libraries should be regenerated because
25942 at least an imported library is more recent.
25943 (Initialize): For each project compute the list of the projects it
25944 imports directly or indirectly.
25945 (Add_Library_Search_Dir): New procedure, used in place of
25946 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25947 put in the search paths.
25948 (Add_Source_Search_Dir): New procedure, used in place of
25949 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25950 put in the search paths.
25951 (Mark_Directory): Resolve the absolute path the directory before marking
25952 it.
25953
25954 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
25955 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25956 Switch. Do not handle any exception.
25957 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
25958 so that the switch is recognized as valid.
25959 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
25960
259612005-11-14 GNAT Script <nobody@adacore.com>
25962
25963 * Make-lang.in: Makefile automatically updated
25964
259652005-11-14 Pascal Obry <obry@adacore.com>
25966
25967 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
25968 used.
25969 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
25970 In both cases the last argument was dropped.
25971
259722005-11-14 Eric Botcazou <ebotcazou@adacore.com>
25973
25974 * namet.h: (Column_Numbe): New type.
25975 (Get_Column_Number): Define to sinput__get_column_number.
25976 (Instantiation): Define to sinput__instantiation.
25977 (Get_Column_Number): Declare.
25978 (Instantiation): Likewise.
25979
259802005-11-14 Robert Dewar <dewar@adacore.com>
25981
25982 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
25983 syntax, which could cause compiler hangs.
25984
259852005-11-14 Vincent Celier <celier@adacore.com>
25986
25987 * prj-ext.adb: Take into account new environment variable
25988 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
25989 are defined.
25990 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
25991 normalize its path name, making it absolute and resolving symbolic
25992 links, and replace the original if resolved path is different.
25993
259942005-11-14 Vincent Celier <celier@adacore.com>
25995
25996 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
25997 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
25998
259992005-11-14 Emmanuel Briot <briot@adacore.com>
26000
26001 * prj-pp.adb (Print): Do not output the with statement if the
26002 associated name is empty, which happens for virtual extending projects.
26003 (Print): Preserve the "extends all" attribute when printing the project.
26004
26005 * prj-tree.ads (String_Value_Of): Add comment about returned value for
26006 a virtual extending project.
26007
260082005-11-14 Ed Schonberg <schonberg@adacore.com>
26009
26010 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
26011 rhs of an assignment even if the type is unconstrained, when the
26012 context is non-expanding.
26013 In an inlined body, if the context type is private,
26014 resolve with its full view, which must be a composite type.
26015
260162005-11-14 Robert Dewar <dewar@adacore.com>
26017 Ed Schonberg <schonberg@adacore.com>
26018
26019 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26020 Do not give obsolescent warning on with of subprogram (since we
26021 diagnose calls)
26022 (Analyze_With_Clause): Add test for obsolescent package
26023 (Install_Context_Clauses): If the unit is the body of a child unit, do
26024 not install twice the private declarations of the parents, to prevent
26025 circular lists of Use_Clauses in a parent.
26026 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
26027 compiling body of child unit.
26028 Use new class N_Subprogram_Instantiation
26029 (Expand_With_Clause): If this is a private with_clause for a child unit,
26030 appearing in the context of a package declaration, then the implicit
26031 with_clauses generated for parent units are private as well.
26032 (License_Check): Do not generate message if with'ed unit is internal
26033
260342005-11-14 Gary Dismukes <dismukes@adacore.com>
26035 Ed Schonberg <schonberg@adacore.com>
26036 Thomas Quinot <quinot@adacore.com>
26037
26038 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
26039 names are internal, because they will not have a corresponding partner
26040 in the actual package.
26041 (Analyze_Formal_Package): Move the setting of the formal package spec's
26042 Generic_Parent field so that it occurs prior to analyzing the package,
26043 to allow proper operation of Install_Parent_Private_Declarations.
26044 (Analyze_Package_Instantiation): Set the instantiated package entity's
26045 Package_Instantiation field.
26046 (Get_Package_Instantiation_Node): Move declaration to package spec.
26047 Retrieve the N_Package_Instantiation node when the Package_Instantiation
26048 field is present.
26049 (Check_Generic_Child_Unit): Within an inlined call, the only possible
26050 instantiation is Unchecked_Conversion, for which no parents are needed.
26051 (Inline_Instance_Body): Deinstall and record the use_clauses for all
26052 parent scopes of a scope being removed prior to inlining an instance
26053 body.
26054 (Analyze_Package_Instantiation): Do not perform front-end inlining when
26055 the current context is itself an instance within a non-instance child
26056 unit, to prevent scope stack errors.
26057 (Save_References): If the node is an aggregate that is an actual in a
26058 call, rewrite as a qualified expression to preserve some type
26059 information, to resolve possible ambiguities in the instance.
26060 (Instance_Parent_Unit): New global variable to record the ultimate
26061 parent unit associated with a generic child unit instance (associated
26062 with the existing Parent_Unit_Visible flag).
26063 (type Instance_Env): New component Instance_Parent_Unit for stacking
26064 parents recorded in the global Instance_Parent_Unit.
26065 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
26066 stack.
26067 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
26068 it's not a top-level unit, and only do this if Instance_Parent_Unit is
26069 not already set. Replace test of Is_Child_Unit with test of parent's
26070 scope against package Standard. Add comments and a ??? comment.
26071 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
26072 on a child instance parent to test that the parent equals
26073 Instance_Parent rather than simply checking that the unit is not a
26074 child unit.
26075 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
26076 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
26077 a formal interface are ancestors of the corresponding actual.
26078 (Validate_Formal_Interface_Type): Additional legality checks.
26079 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
26080 interface types with ancestors.
26081 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
26082 to diagnose attempts to use generic within its own declaration.
26083
260842005-11-14 Ed Schonberg <schonberg@adacore.com>
26085 Javier Miranda <miranda@adacore.com>
26086
26087 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
26088 discriminant.
26089 (Build_Private_Derived_Type): The entity of the created full view of the
26090 derived type does not come from source. If after installing the private
26091 declarations of the parent scope the parent is still private, use its
26092 full view to construct the full declaration of the derived type.
26093 (Build_Derived_Record_Type): Relax the condition that controls the
26094 execution of the check that verifies that the partial view and
26095 the full view agree in the set of implemented interfaces. In
26096 addition, this test now only takes into account the progenitors.
26097 (Derive_Interface_Subprograms): No need to derive subprograms
26098 of ancestors that are interfaces.
26099 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
26100 associated code.
26101 Change name Is_Package to Is_Package_Or_Generic_Package
26102 (Complete_Subprograms_Derivation): Handle the case in which the full
26103 view is a transitive derivation of the ancestor of the partial view.
26104 (Process_Full_View): Rename local subprogram Find_Interface_In_
26105 Descendant to Find_Ancestor_Interface to leave the code more clear.
26106 Remove wrong code that avoids the generation of an error message
26107 when the immediate ancestor of the partial view is an interface.
26108 In addition some minor reorganization of the code has been done to
26109 leave it more clear.
26110 (Analyze_Type_Declaration): If type has previous incomplete tagged
26111 partial view, inherit properly its primitive operations.
26112 (Collect_Interfaces): Make public, for analysis of formal
26113 interfaces.
26114 (Analyze_Interface_Declaration): New procedure for use for regular and
26115 formal interface declarations.
26116 (Build_Derived_Record_Type): Add support for private types to the code
26117 that checks if a tagged type implements abstract interfaces.
26118 (Check_Aliased_Component_Type): The test applies in the spec of an
26119 instance as well.
26120 (Access_Type_Declaration): Clean up declaration of malformed type
26121 declared as an access to its own classwide type, to prevent cascaded
26122 crash.
26123 (Collect_Interfaces): For private extensions and for derived task types
26124 and derived protected types, the parent may be an interface that must
26125 be included in the interface list.
26126 (Access_Definition): If the designated type is an interface that may
26127 contain tasks, create Master_Id for it before analyzing the expression
26128 of the declaration, which may be an allocator.
26129 (Record_Type_Declaration): Set properly the interface kind, for use
26130 in allocators, the creation of master id's for task interfaces, etc.
26131
261322005-11-14 Javier Miranda <miranda@adacore.com>
26133 Ed Schonberg <schonberg@adacore.com>
26134
26135 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
26136 omitted in case of stream attribute subprograms.
26137 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
26138 appear immediately after a subprogram body, when there is no previous
26139 subprogram declaration.
26140 Change name Is_Package to Is_Package_Or_Generic_Package
26141 (Process_Formals): A non null qualifier on a non null named access
26142 type is not an error, and is a warning only if Redundant_Constructs
26143 are flagged.
26144
261452005-11-14 Gary Dismukes <dismukes@adacore.com>
26146 Ed Schonberg <schonberg@adacore.com>
26147
26148 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
26149 nested within Analyze_Package_Specification to install the private
26150 declarations and use clauses within each of the parent units of a
26151 package instance of a generic child package.
26152 (Analyze_Package_Specification): When entering a private part of a
26153 package associated with a generic instance or formal package, the
26154 private declarations of the parent must be installed (by calling new
26155 procedure Install_Parent_Private_Declarations).
26156 Change name Is_Package to Is_Package_Or_Generic_Package
26157 (Preserve_Full_Attributes): For a synchronized type, the corresponding
26158 record is absent in a generic context, which does not indicate a
26159 compiler error.
26160
261612005-11-14 Ed Schonberg <schonberg@adacore.com>
26162
26163 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
26164 not try to rewrite a renamed stream attribute, because the operations
26165 on the type may not have been generated.
26166 Handle properly a renaming_as_body generated for a stream operation
26167 whose default is abstract because the object type itself is abstract.
26168 (Find_Type): If the type is incomplete and appears as the prefix of a
26169 'Class reference, it is tagged, and its list of primitive operations
26170 must be initialized properly.
26171 (Chain_Use_Clauses): When chaining the use clauses that appear in the
26172 private declaration of a parent unit, prior to compiling the private
26173 part of a child unit, find on the scope stack the proper parent entity
26174 on which to link the use clause.
26175 (Note_Redundant_Use): Emit a warning when a redundant use clause is
26176 detected.
26177 (Analyze_Object_Renaming): An attribute reference is not a legal object
26178 if it is not a function call.
26179
261802005-11-14 Robert Dewar <dewar@adacore.com>
26181 Ed Schonberg <schonberg@adacore.com>
26182
26183 * sem_eval.adb: Implement d.f flag
26184 (Subtype_Statically_Match): A generic actual type has unknown
26185 discriminants when the corresponding actual has a similar partial view.
26186 If the routine is called to validate the signature of an inherited
26187 operation in a child instance, the generic actual matches the full view,
26188
261892005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
26190 Ed Schonberg <schonberg@adacore.com>
26191 Robert Dewar <dewar@adacore.com>
26192 Thomas Quinot <quinot@adacore.com>
26193
26194 * sem_res.adb (Resolve_Call): Provide a better error message whenever
26195 a procedure call is used as a select statement trigger and is not an
26196 entry renaming or a primitive of a limited interface.
26197 (Valid_Conversion): If the operand has a single interpretation do not
26198 remove address operations.
26199 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
26200 statement to inhibit warning.
26201 (Resolve_Unary_Op): Do not produce a warning when
26202 processing an expression of the form -(A mod B)
26203 Use Universal_Real instead of Long_Long_Float when we need a high
26204 precision float type for the generated code (prevents gratuitous
26205 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
26206 (Resolve_Concatenation_Arg): Improve error message when argument is an
26207 ambiguous call to a function that returns an array.
26208 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
26209 there is an implicit operator in the given scope if we are within an
26210 instance: legality check has been performed on the generic.
26211 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
26212 after resolving operand, to avoid false warnings on overloaded calls.
26213
262142005-11-14 Ed Schonberg <schonberg@adacore.com>
26215 Javier Miranda <miranda@adacore.com>
26216
26217 PR ada/15604
5de923eb
AC
26218 * sem_type.adb (Covers): In an inlined body, a composite type matches
26219 a private type whose full view is a composite type.
26220 (Interface_Present_In_Ancestor): Protect the frontend against
26221 previously detected errors to ensure that its compilation
26222 with assertions enabled gives the same output that its
26223 compilation without assertions.
26224 (Interface_Present_In_Ancestor): Add support for private types.
26225 Change name In_Actual to In_Generic_Actual (clean up)
26226 (Disambiguate): New predicate In_Actual, to recognize expressions that
26227 appear in the renaming declaration generated for generic actuals, and
26228 which must be resolved in the outer context.
26229
262302005-11-14 Robert Dewar <dewar@adacore.com>
26231 Thomas Quinot <quinot@adacore.com>
26232 Hristian Kirtchev <kirtchev@adacore.com>
26233 Ed Schonberg <schonberg@adacore.com>
26234
26235 * sem_util.ads, sem_util.adb: Change name Is_Package to
26236 Is_Package_Or_Generic_Package.
26237 (Check_Obsolescent): New procedure.
26238 (Set_Is_Public): Remove obsolete junk test.
26239 (Set_Public_Status): Do not set Is_Public on an object whose declaration
26240 occurs within a handled_sequence_of_statemets.
26241 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
26242 for a parameterless procedure.
26243 (Enter_Name): Recognize renaming declarations created for private
26244 component of a protected type within protected operations, so that
26245 the source name of the component can be used in the debugger.
26246
262472005-11-14 Ed Schonberg <schonberg@adacore.com>
26248 Robert Dewar <dewar@adacore.com>
26249
26250 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
26251 of a generic subprogram are not visible outside the body.
26252 (Set_Warning_Switch): New procedure (code to set warning mode moved
26253 here from Switch.C so that it can be shared by pragma processing.
26254 (Check_References): Special case warning for non-modified non-imported
26255 volatile objects.
26256 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
26257 form with a string literal argument
26258
262592005-11-14 Javier Miranda <miranda@adacore.com>
26260
26261 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
26262 anonymous access.
26263 (Write): Addition of "not null" to the anonymous access.
26264 (Read): Addition of "not null" to the anonymous access.
26265 (Write): Addition of "not null" to the anonymous access.
26266
26267 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
26268 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
26269 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
26270 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
26271 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
26272 "not null" to the anonymous access.
26273
262742005-11-14 Robert Dewar <dewar@adacore.com>
26275
26276 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
26277 offset values
26278
262792005-11-14 Vincent Celier <celier@adacore.com>
26280
26281 * switch.adb (Bad_Switch): New procedure
26282 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
26283 message when in error.
26284
26285 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
26286 Too_Many_Output_Files): Remove declarations, no longer used.
26287 (Scan_Nat): New parameter Switch
26288 (Scan_Pos): Ditto
26289 (Bad_Switch): New procedure
26290
26291 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
26292 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
26293 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
26294 to Osint.Fail. Do not handle any exception.
26295
262962005-11-14 Vincent Celier <celier@adacore.com>
26297
26298 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
26299 designates a non existent directory.
26300
263012005-11-14 Robert Dewar <dewar@adacore.com>
26302
26303 * xgnatugn.adb: Replace invalid membership test by 'Valid
26304
263052005-11-14 Vincent Celier <celier@adacore.com>
26306
26307 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
26308 there is no object directory.
26309
263102005-11-14 Robert Dewar <dewar@adacore.com>
26311
26312 * usage.adb: Minor adjustment to output format, use nn instead of nnn
26313 (so that -gnateInnn does not run into next column)
26314
263152005-11-14 Ed Falis <falis@adacore.com>
26316
26317 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
26318 "constrained"
26319
263202005-11-14 Cyrille Comar <comar@adacore.com>
26321
26322 * s-chepoo.ads: Add comments on Dereference.
26323 Remove unnecessary inherited abstract primitives.
26324 Cosmetic cleanup.
26325
263262005-11-14 Robert Dewar <dewar@adacore.com>
26327
26328 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
26329 node parameter, not needed, since it is available as Declaration_Node.
26330
263312005-11-14 Geert Bosch <bosch@adacore.com>
26332
26333 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
26334 grammatically correct.
26335
263362005-11-14 Vincent Celier <celier@adacore.com>
26337
26338 * s-fileio.ads: Correct spelling error in comment
26339
263402005-11-14 Cyrille Comar <comar@adacore.com>
26341 Robert Dewar <dewar@adacore.com>
26342 Vincent Celier <celier@adacore.com>
26343 Ben Brosgol <brosgol@adacore.com>
26344 Jose Ruiz <ruiz@adacore.com>
26345 Pascal Obry <obry@adacore.com>
26346
9e81dbc7 26347 * gnat_ugn.texi:
5de923eb
AC
26348 Document that -fstack-check is needed for strict compliance with the
26349 Ada 95 Reference Manual.
26350 Correct reference to VAX systems to meet HP guidelines
26351 Add documentation for new gnatmake switches -vl, -vm and -vh
26352 Replace DEC Ada by HP Ada
26353 Replace DIGITAL by HP
26354 Remove empty section on tools in compatibility section
26355 Clarify the Windows convention semantics.
26356 Document the Win32 calling convention.
26357 The Stdcall, Win32 and DLL convention are synonyms.
26358 Add a note in -gnatR description about zero size record components
26359 Note on new >= and <= warnings for -gnatwc
26360 Document that equal sign after -gnatm is optional.
26361 Note that strip is working fine on DLL built with a Library
26362 Project. The restriction apply only to DLL built with gnatdll.
26363 Update section about the way to debug a DLL.
26364 Update information about the DLL convention.
26365 Document -C switch for gnatprep
26366 Document new attribute Library_ALI_Dir
26367 Update elaboration doc to include implicit Elaborate pragmas now
26368 generated for subprogram instantiations.
26369 Document limitation on executable names that include spaces for --GCC,
26370 --GNATBIND, and --GNATLINK switches.
26371 Document that -w causes -gnatws to be added at start of gcc switches
26372
26373 * gnat_rm.texi: Document that -mieee is needed for generating infinite
26374 and NaN values in case of overflow on machines that are not fully
26375 compliant with the IEEE floating-point standard.
26376 Create a section describing the set of compiler options needed for
26377 strict compliance with the Ada 95 Reference Manual.
26378 Add documentation for pragma Obsolescent applied to a package
26379 Clarify potential issues of mixed language programs related to the
26380 I/O buffering enabling in the elaboration of the GNAT runtime.
26381 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
26382 This documentation only patch adds extra documentsion for pragma
26383 Restrictions (No_Elaboration_Code), explaining why it is not possible
26384 to document this restriction in terms of allowed source constructs.
26385 Document string literal form of pragma Warnings
26386 Document new attribute Library_ALI_Dir
26387 Add documentation on stable attributes in project files that was missing
26388
26389 * gnat-style.texi: Indicate that paragraphs within a single comment
26390 should be separated by empty comment lines
26391
26392 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
26393 /05 respectively)
26394
26395 * bindusg.adb: Minor cleanup, put -m before -M for consistency
26396
263972005-11-14 Robert Dewar <dewar@adacore.com>
26398
26399 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
26400 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
26401 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
26402 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
26403 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
26404 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
26405 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26406 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
26407 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
26408 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26409 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
26410 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
26411 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
26412 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
26413 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
26414 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
26415 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
26416 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
26417 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
26418 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
26419 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
26420 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
26421 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
26422 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
26423 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
26424 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
26425 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
26426 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
26427 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
26428 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
26429 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
26430 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
26431 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
26432 system-interix.ads, system-solaris-sparc.ads,
26433 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
26434 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
26435 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
26436 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
26437 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
26438 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
26439 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
26440 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
26441 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
26442 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
26443 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
26444 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
26445 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
26446 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
26447 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
26448 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
26449 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
26450 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
26451 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
26452 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
26453 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
26454 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
26455 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
26456 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
26457 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
26458 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
26459 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
26460 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
26461 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
26462 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
26463 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
26464 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
26465 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
26466 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
26467 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
26468 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
26469 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
26470 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
26471 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
26472 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
26473 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
26474 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
26475 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
26476 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
26477 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
26478 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
26479 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
26480 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
26481 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
26482 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
26483 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
26484 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
26485 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
26486 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
26487 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
26488 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
26489 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
26490 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
26491 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
26492 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
26493 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
26494 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
26495 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
26496 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
26497 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
26498 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
26499 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
26500 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
26501 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
26502 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
26503 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
26504 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
26505 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
26506 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
26507 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
26508 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
26509 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
26510 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
26511 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
26512 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
26513 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
26514 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
26515 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
26516 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
26517 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
26518 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
26519 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
26520 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
26521 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
26522 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
26523 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
26524 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
26525 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
26526 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
26527 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
26528 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
26529 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
26530 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
26531 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
26532 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
26533 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
26534 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
26535 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
26536 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
26537 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
26538 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
26539 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
26540 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
26541 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
26542 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
26543 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
26544 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
26545 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
26546 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
26547 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
26548 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
26549 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
26550 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
26551 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
26552 a-numaux-darwin.ads, a-numaux-darwin.adb,
26553 a-swuwha.ads, a-stunha.ads: Minor reformatting
26554
e0ac6309
RD
265552005-11-14 Robert Dewar <dewar@adacore.com>
26556
26557 PR ada/18434
26558 * osint-m.adb: Add pragma Elaborate_All for Osint
26559
f45ddfe0
EB
265602005-11-10 Eric Botcazou <ebotcazou@adacore.com>
26561
26562 PR ada/23995
26563 * trans.c (call_to_gnu): Restore statement lost in translation.
26564
13bb031a
EB
265652005-11-08 Eric Botcazou <ebotcazou@adacore.com>
26566
26567 * init.c: Use the Linux-specific section for the IA-64/Linux target.
26568 (__gnat_adjust_context_for_raise): Add conditional code so that the
26569 IA-64 is also supported.
26570
72098128
JW
265712005-11-03 James E Wilson <wilson@specifix.com>
26572
26573 PR ada/23427
13bb031a
EB
26574 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
26575 TREE_OVERFLOW check.
72098128 26576
8fafe21d
OH
265772005-09-21 Olivier Hainque <hainque@adacore.com>
26578
26579 PR ada/22418
26580 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
26581 as we create them to store a size in bits.
26582
552725e3
EB
265832005-10-21 Eric Botcazou <ebotcazou@adacore.com>
26584
26585 PR ada/21937
26586 PR ada/22328
26587 PR ada/22381
26588 PR ada/22383
26589 PR ada/22419
26590 PR ada/22420
26591 * utils2.c (build_return_expr): New helper function.
26592 * gigi.h (build_return_expr): Declare it.
26593 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
26594 of manually building the RETURN_EXPR tree.
26595 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26596 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
8fafe21d 26597 build_binary_op for the "target pointer" case. Use build_return_expr
552725e3
EB
26598 instead of manually building the RETURN_EXPR tree.
26599
9e94c78f 266002005-09-16 Laurent Guerby <laurent@guerby.net>
ccdeca37
LG
26601
26602 PR ada/23788
26603 * s-tpinop.ads: Make this unit Preelaborate.
26604
da8f5fd9
AJ
266052005-09-16 Andreas Jaeger <aj@suse.de>
26606
26607 * socket.c: Add string.h for memcpy.
26608
98b40956
AC
266092005-09-05 Arnaud Charlet <charlet@adacore.com>
26610
26611 * dec-io.ads, dec-io.adb: Removed, no longer used.
26612
266132005-09-01 Arnaud Charlet <charlet@adacore.com>
26614
26615 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
26616
26617 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
26618 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
26619 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
26620 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
26621 dependent units are Preelaborate.
26622 (Initialize): Call Interrupt_Managemeent.Initialize and
26623 OS_Primitives.Initialize to ensure proper initialization of this unit.
26624 Remove use of System.Soft_Links
26625 Make this unit Preelaborate.
26626
26627 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
26628 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
26629 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
26630 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
26631 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
26632 s-tratas.ads, s-tasinf.ads: Minor reformatting.
26633 Add pragma Preelaborate, since these packages are suitable for this
26634 categorization.
26635 Update comments.
26636
26637 * s-traent-vms.ads, s-intman-dummy.adb,
26638 s-taprop-dummy.adb: Make this unit Preelaborate.
26639
26640 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
da8f5fd9 26641 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
98b40956
AC
26642 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
26643 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
26644 s-intman-solaris.adb, s-intman-irix-athread.adb,
26645 s-intman-irix.adb: Mark this unit Preelaborate.
26646 (Initialize): New procedure.
26647 Update comments.
26648
26649 * s-taspri-linux.ads: Removed.
26650
26651 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
26652 as done by other implementations (e.g. posix).
26653
26654 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
26655 responsible for deferring abort.
26656 Mark this unit Preelaborate.
26657
26658 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
26659 proper initialization of the tasking run-time.
26660
26661 * s-tasdeb.ads: Mark this unit Preelaborate.
26662 (Known_Tasks): Add explicit default value to avoid elaboration code.
26663
26664 * s-inmaop-vms.adb (Elaboration code): Add call to
26665 Interrupt_Management.Initialize since the elaboration code depends on
26666 proper initialization of this package.
26667
26668 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
26669 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
26670 s-osprim-posix.adb: Make this unit Preelaborate.
26671
26672 * a-calend.adb: Add call to OS_Primitives.Initialize
26673
26674 * a-elchha.adb: Update use of Except.Id.Full_Name.
26675 Minor reformatting.
26676 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
26677
26678 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
26679 Move with clauses outside Warnings Off now that dependent units are
26680 Preelaborate.
26681 Use raise xxx with "..."; Ada 2005 form.
26682
da8f5fd9 26683 * a-taside.ads, a-taside.adb:
98b40956
AC
26684 Remove some dependencies, to make it easier to make this unit truly
26685 Preelaborate.
26686 Rewrite some code to be conformant with Preelaborate rules.
26687
26688 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
26689 marked Preelaborate in the future.
26690
26691 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
26692 these units Preelaborate.
26693
26694 * s-exctab.adb: Update use of Except.Id.Full_Name.
26695
26696 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
26697 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
26698 Set_Exc_Stack_Addr): Removed, no longer used.
26699 Remove reference to *Machine_State_Addr*, no longer needed.
26700
26701 * s-stalib.ads: Mark this unit as Preelaborate[_05].
26702 (Exception_Data): Full_Name is now a System.Address so that this unit
26703 can be made Preelaborate.
26704 Clean up/simplify code thanks to Full_Name being a System.Address.
26705 Remove obsolete pragma Suppress (All_Checks), no longer needed.
26706
da8f5fd9 26707 * s-taskin.ads, s-taskin.adb:
98b40956
AC
26708 Move with clauses outside Warnings Off now that dependent units are
26709 Preelaborate.
26710 Make this unit Preelaborate.
26711 (Initialize): New proceduure, replace elaboration code and makes the
26712 set up of the tasking run-time cleaner.
26713 (Detect_Blocking): Now a function instead of a deferred boolean, to
26714 obey Preelaborate rules.
26715
26716 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
26717 soft links, no longer used.
26718
26719 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
26720 packages are suitable for this categorization.
26721
26722 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
26723 since we compile run-time sources in Ada 2005 mode.
26724 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
26725 avoid having s-taprop*.adb depend on s-soflin and to avoid code
26726 duplication.
26727 Remove reference to *Machine_State_Addr*, no longer needed.
26728
267292005-09-01 Arnaud Charlet <charlet@adacore.com>
26730
26731 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
26732 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26733 Remove reference to System.Exceptions.
26734
26735 * s-mastop-x86.adb: Removed, no longer used.
26736
26737 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
26738
26739 * a-excach.adb: Minor reformatting.
26740
26741 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
26742 instead fix new warnings that were hidden by this change.
26743 (AAA, ZZZ): Removed, replaced by...
26744 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
26745 are used instead of constants, to help make Ada.Exception truly
26746 preelaborate.
26747 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
26748 Raise_Storage_Error): File is now a System.Address, to simplify code.
26749 (Elab code): Removed, no longer used.
26750 (Null_Occurrence): Remove Warnings Off and make this construct
26751 preelaborate.
26752 Remove code related to front-end zero cost exception handling, since
26753 it is no longer used.
26754 Remove -gnatL/-gnatZ switches.
26755
26756 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
26757 Update use of Except.Msg.
26758
26759 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
26760 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
26761 to front-end zero cost exception handling, since it is no longer used.
26762 Remove -gnatL/-gnatZ switches.
26763
26764 * lib-writ.ads: Minor reformatting
26765 Remove doc of UX
26766
26767 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
26768
26769 * Make-lang.in: Remove references to s-except.ads
26770
26771 * s-except.ads: Removed, no longer used.
26772
da8f5fd9 26773 * s-mastop.ads, s-mastop.adb:
98b40956
AC
26774 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
26775 Remove reference to System.Exceptions.
26776
26777 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
26778 switch-b.adb: Remove code related to front-end zero cost exception
26779 handling, since it is no longer used.
26780 Remove -gnatL/-gnatZ switches.
26781
267822005-09-01 Robert Dewar <dewar@adacore.com>
26783 Gary Dismukes <dismukes@adacore.com>
26784 Javier Miranda <miranda@adacore.com>
26785
26786 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
26787 type by valid test and generate warning.
26788 (Tagged_Membership): Generate call to the run-time
26789 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
26790 Change formal name Subtype_Mark to Result_Definition in several calls to
26791 Make_Function_Specification.
26792 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
26793 check for proper accessibility of the operand of a class-wide allocator.
26794 The check can be left out if checks are suppressed or if the expression
26795 has a specific tagged type whose level is known to be safe.
26796
26797 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
26798 generates the run-time check associated with null-excluding entities.
26799 (Expand_N_Return_Statement): Add tests to determine if the accessibility
26800 check on the level of the return expression of a class-wide function
26801 can be elided. The check usually isn't needed if the expression has a
26802 specific type (unless it's a conversion or a formal parameter). Also
26803 add a test for whether accessibility checks are suppressed. Augment
26804 the comments to describe the conditions for performing the check.
26805
268062005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
26807 Javier Miranda <miranda@adacore.com>
26808 Gary Dismukes <dismukes@adacore.com>
26809 Ed Schonberg <schonberg@adacore.com>
26810
26811 * a-tags.adb (IW_Membership): Give support to
26812 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
26813 subprogram has been extended to look for the tag in the ancestors tag
26814 table.
26815 Update the structure of the GNAT Dispatch Table to reflect the
26816 additional two tables used in dispatching selects.
26817 Introduce appropriate array types and record components in
26818 Type_Specific_Data to reflect the two tables.
26819 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
26820 the TSD of a tag, indexed by position.
26821 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
26822 operation kind in the TSD of a tag, indexed by position.
26823
26824 * a-tags.ads: Introduce an enumeration type to capture different
26825 primitive operation kinds. Define a constant reflecting the number of
26826 predefined primitive operations.
26827 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
26828 of an entry wrapper.
26829 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
26830 callable entity of a primitive operation.
26831
26832 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
26833 primitive operations used in dispatching selects for limited
26834 interfaces, limited tagged, task and protected types what implement a
26835 limited interface.
26836 (Freeze_Type): Generate the bodies of the primitive operations used in
26837 dispatching selects for limited tagged, task and protected types that
26838 implement a limited interface. Generate statements to populate the two
26839 auxiliary tables used for dispatching in select statements.
26840 (Freeze_Record_Type): Add call to initialize the dispatch table entries
26841 associated with predefined interface primitive operations.
26842 (Build_Dcheck_Function): Change Set_Subtype_Mark to
26843 Set_Result_Definition.
26844 (Build_Variant_Record_Equality): Change Subtype_Mark to
26845 Result_Definition.
26846 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
26847 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
26848 (Build_Assignment): Simplify the code that adds the run-time-check.
26849 (Expand_N_Object_Declaration): Code cleanup.
26850
26851 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
26852 entries when there is a protected type that implements a limited
26853 interface.
26854
26855 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
26856 common routines used in expansion of dispatching selects.
26857 (Add_Private_Declarations): Select the appropriate protection type when
26858 there is a protected type that implements a limited interface.
26859 (Build_Parameter_Block): Generate a wrapped parameter block.
26860 (Build_Protected_Subprogram_Body): Select the appropriate type for
26861 locking entries when there is a protected type that implements a
26862 limited interface.
26863 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
26864 classified as entry wrappers.
26865 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
26866 asynchronous selects.
26867 (Expand_N_Conditional_Entry_Call): Add support for expansion of
26868 dispatching conditional selects.
26869 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
26870 protection when there is a protected type that implements limited
26871 interfaces.
26872 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
26873 timed selects.
26874 (Extract_Dispatching_Call): Extract the entity of the name of a
26875 dispatching call, the object parameter, actual parameters and
26876 corresponding formals.
26877 (Make_Initialize_Protection): Correct logic of protection initialization
26878 when there is a protected type that implements a limited interface.
26879 (Parameter_Block_Pack): Populate a wrapped parameter block with the
26880 values of actual parameters.
26881 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
26882 block and assign them to the original actual parameters.
26883
26884 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
26885 (Build_Protected_Sub_Specification): Change the type and name of the
26886 last formal to account for the increased variety of protection modes.
26887
26888 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
26889 entities. Used to save the value of the Is_Hidden attribute when the
26890 limited-view is installed.
26891 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
26892 the attribute of procedures classified as entry wrappers.
26893 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
26894 entity of a primitive wrapper.
26895 (Write_Entity_Flags): Output the name and value of the
26896 Is_Primitive_Wrapper attribute.
26897 (Write_Field27_Name): Output the name and entity of the field Wrapped_
26898 Entity.
26899 (Underlying_Type): If we have an incomplete entity that comes from
26900 the limited view then we return the Underlying_Type of its non-limited
26901 view if it is already available.
26902 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
26903 including operators.
26904 (Write_Field26_Name): Add entry for Overridden_Operation
26905 (Overridden_Operation): New attribute of functions and procedures.
26906
26907 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
26908 predefined position in the dispatch table for the primitive operations
26909 used in dispatching selects.
26910 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
26911 predefined primitive operations and replace it with
26912 Default_Prim_Op_Count.
26913 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
26914 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
26915 the names of the generated primitive operations used in dispatching
26916 selects.
26917 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
26918 case of abstract interface types. They will be inherit by the objects
26919 implementing the interface.
26920 (Make_DT): There is no need to inherit the dispatch table of the
26921 ancestor interface for the elaboration of abstract interface types.
26922 The dispatch table will be inherited by the object implementing the
26923 interface.
26924 (Copy_Secondary_DTs): Add documentation.
26925 (Validate_Position): Improve this static check in case of
26926 aliased subprograms because aliased subprograms must have
26927 the same position.
26928 (Init_Predefined_Interface_Primitives): New subprogram that initializes
26929 the entries associated with predefined primitives of all the secondary
26930 dispatch tables.
26931 (Build_Anonymous_Access_Type): Removed.
26932 (Expand_Interface_Actuals): With the previous cleanup there is no need
26933 to build an anonymous access type. This allows further cleanup in the
26934 code generated by the expander.
26935 (Expand_Interface_Conversion): If the actual is an access type then
26936 build an internal function to handle the displacement. If the actual
26937 is null this function returns null because no displacement is
26938 required; otherwise performs a type conversion that will be
26939 expanded in the code that returns the value of the displaced actual.
26940 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
26941 conversions that have no effect in the generated code because no
26942 displacement is required. Code cleanup; use local variables to
26943 avoid repeated calls to the subprogram directly_designated_type().
26944
26945 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
26946 Classify the primitive operations used in dispatching selects as
26947 predefined.
26948 (Implements_Limited_Interface): Determine whether some type either
26949 directly implements a limited interface or extends a type that
26950 implements a limited interface.
26951 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
26952 (Expand_Subtype_From_Expr): Do not build actual subtype if the
26953 expression is limited.
26954 (Find_Interface_Tag): Add code to handle class-wide types and
26955 entities from the limited-view.
26956
26957 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
26958 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
26959 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
26960 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
26961 Set_Prim_Op_Kind.
26962
26963 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
26964 of procedure name or prefix that appears as a trigger in a triggering
26965 alternative.
26966
26967 * uintp.ads: Introduce constants Uint_11 and Uint_13.
26968
269692005-09-01 Arnaud Charlet <charlet@adacore.com>
26970
26971 * s-tataat.adb, a-tasatt.adb:
26972 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
26973
26974 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
26975 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
26976 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
26977 longer used.
26978
269792005-09-01 Arnaud Charlet <charlet@adacore.com>
26980 Jose Ruiz <ruiz@adacore.com>
26981
da8f5fd9 26982 * s-taprop-vxworks.adb:
98b40956
AC
26983 Move with clauses outside Warnings Off now that dependent units are
26984 Preelaborate.
26985 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
26986 initialization of this unit.
26987 (Specific): Add new procedures Initialize and Delete so that this
26988 package can be used for VxWorks 5.x and 6.x
26989 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
26990 differences between VxWorks 5.x and 6.x
26991 Minor reformatting.
26992 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
26993 caller.
26994 Use only Preelaborate-compatible constructs.
26995
26996 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
26997 Primitives.Operations.
26998 (Delete, Initialize): New procedures.
26999
27000 * s-osinte-vxworks.adb: Body used to handle differences between
27001 VxWorks 5.x and 6.x
27002 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
27003
27004 * s-osinte-vxworks.ads: Minor reformatting.
27005 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
27006 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
27007 and 6.
27008 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
27009 between Vxworks 5 and 6.
27010 (taskLock, taskUnlock): Removeed, no longer used.
27011
27012 * adaint.c: The wait.h header is not located in the sys directory on
27013 VxWorks when using RTPs.
27014 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
27015 using RTPs.
27016 (__gnat_dup): dup is available on Vxworks when using RTPs.
27017 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
27018
27019 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
27020
27021 * expect.c: The wait.h header is not located in the sys directory on
27022 VxWorks when using RTPs.
27023
270242005-09-01 Thomas Quinot <quinot@adacore.com>
27025
27026 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
27027
27028 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
27029
27030 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
27031 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27032 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
27033 g-soccon-freebsd.ads: Add new constants:
27034 IP_MULTICAST_IF
27035 SO_RCVTIMEO/SO_SNDTIMEO
27036 IOV_MAX
27037
da8f5fd9 27038 * gen-soccon.c:
98b40956
AC
27039 Move all target-specific file inclusions and macro definitions to
27040 gsocket.h, in order to ensure that any C code in socket.c will see a
27041 set of constants that is consistent with the contents of g-soccon.ads.
27042
27043 * gsocket.h: Code imported from gen-soccon.c:
27044 Move all target-specific file inclusions and macro definitions to
27045 gsocket.h, in order to ensure that any C code in socket.c will see a set
27046 of constants that is consistent with the contents of g-soccon.ads.
27047 This change also makes gen-soccon self-contained (removing dependencies
27048 upon GCC internal headers).
27049
27050 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
27051 iovecs at a time.
27052 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
27053
27054 * socket.c: Minor reformatting.
27055
270562005-09-01 Ed Schonberg <schonberg@adacore.com>
27057 Thomas Quinot <quinot@adacore.com>
27058
27059 * fname-sf.adb, mlib-tgt.ads,
27060 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
27061 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
27062 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
27063 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
27064 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
27065 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
27066 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
27067 makegpr.adb: Remove redundant use_clauses.
27068
270692005-09-01 Arnaud Charlet <charlet@adacore.com>
27070
da8f5fd9
AJ
27071 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
27072 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
27073 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
27074 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
27075 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
27076 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
27077 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
27078 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
27079 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27080 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
27081 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
27082 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
27083 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
27084 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
27085 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
98b40956 27086 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
da8f5fd9
AJ
27087 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27088 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27089 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
27090 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
27091 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
27092 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
27093 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
27094 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
27095 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
27096 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
27097 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
27098 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
98b40956
AC
27099 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
27100 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
da8f5fd9
AJ
27101 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
27102 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
27103 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
27104 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
27105 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
27106 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
27107 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
27108 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
27109 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
27110 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
27111 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
27112 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
27113 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
27114 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
27115 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
27116 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
27117 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
27118 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
27119 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
27120 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
27121 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
27122 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
27123 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
27124 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
27125 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
27126 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
27127 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
27128 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
27129 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
27130 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
27131 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
27132 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
27133 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
27134 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
27135 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
27136 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
27137 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
98b40956
AC
27138 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
27139 and always use the no parameter form for consistency.
27140
27141 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
27142
271432005-09-01 Robert Dewar <dewar@adacore.com>
27144
27145 * binde.adb: Minor reformatting
27146 (Find_Elab_Order): Output warning if -p used with static elab order
27147
271482005-09-01 Robert Dewar <dewar@adacore.com>
27149
27150 * checks.adb (Check_Needed): New procedure, deals with removing checks
27151 based on analysis of short-circuited forms. Also generates warnings for
27152 improper use of non-short-circuited forms.
27153 Code clean ups.
27154
271552005-09-01 Robert Dewar <dewar@adacore.com>
27156
27157 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
27158 with 'Valid tests.
27159
271602005-09-01 Robert Dewar <dewar@adacore.com>
27161
27162 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
27163 spec.
27164 Implement new insertion char < (conditional warning)
27165 * errutil.adb, erroutc.adb: Implement new insertion char <
27166 (conditional warning).
27167 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
27168 (Error_Msg_Warn): New variable for < insertion char.
27169 * prj-nmsc.adb: Implement new errout insertion char < (conditional
27170 warning).
27171 (Check_For_Source): Change value of Source_Id only after the current
27172 source has been dealt with.
27173
271742005-09-01 Robert Dewar <dewar@adacore.com>
27175 Doug Rupp <rupp@adacore.com>
27176
27177 * exp_attr.adb: Handle vax fpt for 'Valid attribute
27178 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
27179 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
27180 (Valid_D, Valid_F, Valid_G): New functions
27181
271822005-09-01 Ed Schonberg <schonberg@adacore.com>
27183 Hristian Kirtchev <kirtchev@adacore.com>
27184 Javier Miranda <miranda@adacore.com>
27185
27186 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
27187 from object notation, the original node is unanalyzed and carries no
27188 semantic information, so that accessiblity checks must be performed on
27189 the type of the actual itself.
27190 (Expand_N_Subprogram_Declaration): Change last actual parameter for
27191 compatibility with Build_Protected_Sub_Specification.
27192 (Check_Overriding_Inherited_Interfaces): Add suport to handle
27193 overloaded primitives.
27194 (Register_Interface_DT_Entry): Use the new name of the formal
27195 the the calls to Expand_Interface_Thunk
27196
27197 * exp_dbug.ads: Augment comments on encoding of protected types to
27198 include the generation of dispatching subprograms when the type
27199 implements at least one interface.
27200
27201 * lib.ads: Extend information in Load_Stack to include whether a given
27202 load comes from a Limited_With_Clause.
27203
27204 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
27205 whether a potential circularity is harmless, because it includes units
27206 loaded through a limited_with clause. Extends previous treatment which
27207 did not handle properly arbitrary combinations of limited and
27208 non-limited clauses.
27209
272102005-09-01 Nicolas Setton <setton@adacore.com>
27211
27212 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
27213 to be encoded as typ___XBLU_lowerbound__upperbound instead of
27214 typ___XB_lowerbound__upperbound.
27215
272162005-09-01 Thomas Quinot <quinot@adacore.com>
27217
27218 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
27219 dummy access formal for RACW/RAS TypeCode TSS.
27220 (Build_TypeCode_Call): Do not generate dummy null access actual for
27221 calls to the TypeCode TSS.
27222
272232005-09-01 Ed Schonberg <schonberg@adacore.com>
27224
27225 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
27226 fully qualified name, to distinguish instances with the same local name.
27227
27228 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
27229 fully qualified.
27230
272312005-09-01 Robert Dewar <dewar@adacore.com>
27232
27233 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
27234 packed arrays.
27235
272362005-09-01 Jerome Lambourg <lambourg@adacore.com>
27237
27238 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
27239 (Free): New deallocation procedure for filter elements
27240 (Close): Deallocate any existing filter for the concerned connection
27241
272422005-09-01 Laurent Pautet <pautet@adacore.com>
27243
27244 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
27245 position set is provided, we compute one in order to reduce the maximum
27246 length of the keys. This computation first selects a character
27247 position between 1 and the minimum length of the keys in order to
27248 avoid reducing one of the keys to an empty string.
27249 (Initialize, Compute): When the ratio V to K is too low, the algorithm
27250 does not converge. The initialization procedure now comes with a
27251 maximum number of iterations such that when exceeded, an exception is
27252 raised in Compute. The user can initialize this ratio to another value
27253 and try again
27254 Reformating and updated headers.
27255
272562005-09-01 Javier Miranda <miranda@adacore.com>
27257
27258 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
27259 that given an entity T creates and returns an Itype that duplicates the
27260 contents of T. The returned Itype has the null-exclusion
27261 attribute set to True, and its Etype attribute references T
27262 to keep the association between the two entities.
27263 Update copyright notice
27264
27265 * sem_aggr.adb (Check_Can_Never_Be_Null,
27266 Aggregate_Constraint_Checks, Resolve_Aggregate,
27267 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
27268
27269 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
27270
272712005-09-01 Gary Dismukes <dismukes@adacore.com>
27272 Robert Dewar <dewar@adacore.com>
27273 Hristian Kirtchev <kirtchev@adacore.com>
27274
27275 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
27276 Result_Definition.
27277
27278 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
27279 function specs.
27280 Call Set_Result_Definition instead of Set_Subtype_Mark.
27281 (P_Subprogram_Specification): Add parsing of anonymous access result
27282 plus null exclusions. Call Set_Result_Definition instead of
27283 Set_Subtype_Mark.
27284
27285 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27286 (P_Access_Type_Definition): Add parsing for an anonymous access result
27287 subtype, plus parsing for null exclusions. Call Set_Result_Definition
27288 instead of Set_Subtype_Mark.
27289
27290 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27291 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
27292 (Result_Definition): New function for N_Function_Specifications.
27293 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
27294 N_Function_Specification.
27295 (Set_Null_Exclusion_Present): Allow this flag for
27296 N_Function_Specification.
27297 (Set_Result_Definition): New procedure for N_Function_Specifications.
27298 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
27299 and N_Function_Specification.
27300
27301 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
27302 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
27303 Add support for LIMITED NEW for Ada 2005 AI-419
27304 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
27305 syntax for anonymous access results.
27306 Replace Subtype_Mark field by Result_Definition in
27307 N_Function_Specification and N_Access_Definition specs.
27308 Add Null_Exclusion_Present to spec of N_Function_Specification.
27309 (Result_Definition): New function for N_Function_Specification and
27310 N_Access_Function_Definition.
27311 (Set_Result_Definition): New procedure for N_Function_Specification and
27312 N_Access_Function_Definition.
27313
27314 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
27315 Result_Definition for cases of N_Access_Function_Definition and
27316 N_Function_Specification.
27317 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
27318
273192005-09-01 Vincent Celier <celier@adacore.com>
27320
27321 * lib-writ.adb: Update Copyright notice
27322 (Write_With_Lines): On platforms where file names are case-insensitive,
27323 record the file names in lower case.
27324 (Write_ALI): For D lines, on platforms where file names are
27325 case-insensitive, record the file names in lower case.
27326
273272005-09-01 Ed Schonberg <schonberg@adacore.com>
27328 Emmanuel Briot <briot@adacore.com>
27329
27330 * lib-xref.adb (Output_Overridden_Op): Display information on
27331 overridden operation.
27332
27333 * lib-xref.ads: Add documentation on overridden operations.
27334
27335 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
27336 information.
27337
27338 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
27339 overriding entity information.
27340
273412005-09-01 Vincent Celier <celier@adacore.com>
27342
27343 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
27344 including those that are inherited.
27345
273462005-09-01 Robert Dewar <dewar@adacore.com>
27347
27348 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
27349
27350 * par-prag.adb: Implement new pragma Debug_Policy
27351
27352 * sem_prag.adb Implement new pragma Debug_Policy
27353 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
27354 Component_Size attribute specification. Give warning for ignored pragma
27355 Pack.
27356
27357 * snames.h, snames.ads, snames.adb: Introduce entries in
27358 Preset_Names for Name_Disp_Asynchronous_Select,
27359 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
27360 Name_Disp_Timed_Select.
27361 New pragma Debug_Policy
27362
27363 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
27364 explicitly.
27365 Switch -gnata also sets Debug_Pragmas_Enabled
27366
27367 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
27368 handle an explicit -gnata when compiling predefined files.
27369
273702005-09-01 Vincent Celier <celier@adacore.com>
27371
27372 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
27373 directories of projects that have no Ada sources.
27374
273752005-09-01 Robert Dewar <dewar@adacore.com>
27376
27377 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
27378 (makes a difference for wide characters)
27379
da8f5fd9 27380 * widechar.adb, widechar.ads:
98b40956
AC
27381 Add Wide_Char_Byte_Count feature to count chars vs bytes
27382
273832005-09-01 Thomas Quinot <quinot@adacore.com>
27384 Ed Schonberg <schonberg@adacore.com>
27385 Robert Dewar <dewar@adacore.com>
27386
27387 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
27388 'Address attribute reference with an overloaded prefix, use the
27389 location of the prefix (not the location of the attribute reference) as
27390 the error location.
27391 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
27392 a function renaming thereof, is a valid prefix for 'Size (where it is
27393 intepreted as a function call).
27394 (Statically_Denotes_Entity): New predicate to determine whether the
27395 prefix of an array attribute can be considered static.
27396
27397 PR ada/9087
27398 (Eval_Attr): Fix failure to evaluate Component_Size for
27399 unconstrained arrays (resulted in wrong value in packed case, since
27400 back end cannot handle this case)
27401
274022005-09-01 Robert Dewar <dewar@adacore.com>
27403
27404 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
27405 error msgs for most common cases.
27406 Use new errout insertion char < (conditional warning)
27407
274082005-09-01 Javier Miranda <miranda@adacore.com>
27409 Ed Schonberg <schonberg@adacore.com>
27410
27411 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
27412 become local to the whole package.
27413 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
27414 the package was already analyzed the new algorithm "replaces" the
27415 real entities by the shadow ones. This is required to ensure that
27416 the order of these entities in the homonym chains does not change;
27417 otherwise we can have undefined references at linking time because
27418 in case of conflicts the external name of the entities will have
27419 a suffix that depends on the order of the entities in the chain.
27420 (Remove_Limited_With_Clause): Complementary code that completes the
27421 new algorithm and replaces the shadow entities by the real ones.
27422 (Install_Limited_Withed_Unit): When unchaining entities before the
27423 installation of the shadow entities, only regular entities of the
27424 public part must be taken into account. This is required to
27425 keep this routine in synch with the work done by Remove_Limited_
27426 With_Clause
27427 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
27428 even if unit is analyzed, because the analysis of the unit is
27429 idempotent in any case, and the limited view of the unit may have to
27430 be installed for proper visibility.
27431 (Expand_Limited_With_Clause): Even if the unit in the implicit
27432 with_clause has been analyzed already, a limited view of the package
27433 must be built for the current context, if it does not exist yet.
27434
274352005-09-01 Ed Schonberg <schonberg@adacore.com>
27436 Javier Miranda <miranda@adacore.com>
27437 Gary Dismukes <dismukes@adacore.com>
27438
27439 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
27440 defining entity for the instance body, make a new defining identifier
27441 rather than copying the entity of the spec, to prevent accidental
27442 sharing of the entity list.
27443 (Check_Private_View): When exchanging views of private types, build the
27444 list of exchanged views as a stack, to ensure that on exit the exchanges
27445 are undone in the proper order.
27446 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
27447 Restore the compilation environment in case of instantiation_error.
27448 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
27449 for an anonymous access result.
27450 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
27451 (Formal_Entity): Handle properly the case of a formal package that
27452 denotes a generic package renaming.
27453
274542005-09-01 Thomas Quinot <quinot@adacore.com>
27455
27456 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
27457 clause if the array aggregate is surrounded by parentheses.
27458
274592005-09-01 Cyrille Comar <comar@adacore.com>
27460 Gary Dismukes <dismukes@adacore.com>
27461 Ed Schonberg <schonberg@adacore.com>
27462 Javier Miranda <miranda@adacore.com>
27463
27464 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
27465 underlying type
27466 to check if a type is Constrained in cases related to code generation
27467 (rather than semantic checking) since otherwise we do not generate
27468 similar code for mutable private types depending if their
27469 discriminants are visible or not.
27470 (Check_Abstract_Overriding): Do not complain about failure to override
27471 the primitive operations used in dispatching selects since they will
27472 always be overriden at the freeze point of the type.
27473 (Access_Definition): Separate out handling for resetting the scope
27474 of an anonymous access function result type. Retrieve the scope
27475 of the associated function rather than using Current_Scope, which
27476 does not have a consistent value (depends on whether we're in the
27477 middle of analyzing formal parameters). Add ??? comment about
27478 finding a cleaner way to handle the special cases of scope setting.
27479 (Process_Incomplete_Dependents): A protected operation is never a
27480 dispatching operation (only its wrapper may be).
27481 (Build_Derived_Record_Type): In case of tagged private types that
27482 implement interfaces add derivation of predefined primitive
27483 operations.
27484 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
27485 by two parameters that are used in case of derivation from abstract
27486 interface types: No_Predefined_Prims is used to avoid the derivation
27487 of predefined primitives from the interface, and Predefined
27488 Prims_Only is used to complete the derivation predefined primitives
27489 in case of private tagged types implementing interfaces.
27490 Fix typo in comments
27491 (Find_Interface_In_Descendant): Protect the frontend against
27492 wrong code with large circularity chains.
27493 (Is_Private_Overriding): Add support for entities overriding interface
27494 subprograms. The test failed because Entities associated with overriden
27495 interface subprograms are always marked as hidden (and used to build
27496 the secondary dispatch table); in this case the overriden entity is
27497 available through the field abstract_interface_alias (cf. override_
27498 dispatching_operation)
27499 (Access_Definition): Set the scope of the type to Current_Scope for the
27500 case of a function with an anonymous access result type.
27501 (Access_Subprogram_Declaration): Handle creation of the type entity for
27502 an access-to-function type with an anonymous access result.
27503 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
27504 in handling for N_Access_Function_Definition.
27505 (Analyze_Subtype_Declaration): Modify the text of error message.
27506 (Derived_Type_Declaration): Modify the text of error message.
27507 (Process_Subtype): Modify the text of error message plus cleanup
27508 of one redundant error message.
27509 (Analyze_Component_Declaration): Code cleanup.
27510 (Analyze_Object_Declaration): Code cleanup.
27511 (Analyze_Subtype_Declaration): Propagate the null-exclusion
27512 attribute in case of access types. Code cleanup.
27513 (Array_Type_Declaration): Code cleanup.
27514 (Process_Discriminants): Create the new null-excluding itype
27515 if required. Code cleanup.
27516 (Process_Subtype): Create the new null-excluding itype if
27517 required. Code cleanup.
27518 (Build_Derived_Record_Type): Code cleanup to avoid calling
27519 twice the subprogram derive_subprograms in case of private
27520 types that implement interfaces. In this particular case the
27521 subprogram Complete_Subprograms_Derivation already does the
27522 job associated with the second call.
27523
6f7f72f9
EB
27524 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
27525 conversion to the full view when generating an operation for a
27526 discriminant whose type may currently be private.
98b40956
AC
27527
275282005-09-01 Ed Schonberg <schonberg@adacore.com>
27529 Javier Miranda <miranda@adacore.com>
27530
27531 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
27532 V (Obj.F), the rewriting does not involve the indexed component, but
27533 only the selected component itself.
27534 Do not apply the transformation if the analyzed node is an actual of a
27535 call to another subprogram.
27536 (Complete_Object_Operation): Retain the entity of the
27537 dispatching operation in the selector of the rewritten node. The
27538 entity will be used in the expansion of dispatching selects.
27539 (Analyze_One_Call): Improve location of the error message associated
27540 with interface.
27541 (Analyze_Selected_Component): No need to resolve prefix when it is a
27542 function call, resolution is done when parent node is resolved, as
27543 usual.
27544 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
27545 when attempting to resolve a call transformed from its object notation.
27546 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
27547 of the argument list for each interpretation of the operation.
27548 (Try_Object_Operation): The designated type of an access parameter may
27549 be an incomplete type obtained through a limited_with clause, in which
27550 case the primitive operations of the type are retrieved from its full
27551 view.
27552 (Analyze_Call): If this is an indirect call, and the return type of the
27553 access_to_subprogram is incomplete, use its full view if available.
27554
275552005-09-01 Javier Miranda <miranda@adacore.com>
27556 Gary Dismukes <dismukes@adacore.com>
27557
27558 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
27559 access types the null-exclusion and access-to-constant attributes must
27560 also match.
27561 (Analyze_Return_Statement): When the result type is an anonymous access
27562 type, apply a conversion of the return expression to the access type
27563 to ensure that appropriate accessibility checks are performed.
27564 (Analyze_Return_Type): For the case of an anonymous access result type,
27565 generate the Itype and set Is_Local_Anonymous_Access on the type.
27566 Add ??? placeholder for check to disallow returning a limited object
27567 in Ada 2005 unless it's an aggregate or a result of a function call.
27568 Change calls from Subtype_Mark to Result_Definition.
27569 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
27570 Result_Definition in call to Make_Function_Specification.
27571 (Build_Body_To_Inline): Change Set_Subtype_Mark to
27572 Set_Result_Definition.
27573 (Make_Inequality_Operator): Change formal Subtype_Mark to
27574 Result_Definition in call to Make_Function_Specification.
27575 (Process_Formals): Create the new null-excluding itype if required.
27576 (New_Overloaded_Entity): For an entity overriding an interface primitive
27577 check if the entity also covers other abstract subprograms in the same
27578 scope. This is required to handle the general case, that is, overriding
27579 other interface primitives and overriding abstract subprograms inherited
27580 from some abstract ancestor type.
27581 (New_Overloaded_Entity): For an overriding entity that comes from
27582 source, note the operation that it overrides.
27583 (Check_Conformance, Type_Conformant): Addition of one new formal
27584 to skip controlling formals in the analysis. This is used to
27585 handle overloading of abstract interfaces.
27586 (Base_Types_Match): Add missing case for types imported from
27587 limited-with clauses
27588 (New_Overloaded_Entity): Add barrier to protect the use of
27589 the "alias" attribute.
27590
275912005-09-01 Ed Schonberg <schonberg@adacore.com>
27592
27593 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
27594 verify that the procedure and the entry are mode conformant.
27595 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
27596 as a different operator, which is often a cut-and-paste error.
27597
275982005-09-01 Javier Miranda <miranda@adacore.com>
27599 Ed Schonberg <schonberg@adacore.com>
27600
27601 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
27602 used in controlling parameters exclude null because it is necessary to
27603 read the tag to dispatch, and null has no tag.
27604 (Override_Dispatching_Operation): If the previous operation is inherited
27605 from an interface, it becomes hidden and does not participate in later
27606 name resolution.
27607
276082005-09-01 Javier Miranda <miranda@adacore.com>
27609 Ed Schonberg <schonberg@adacore.com>
27610 Gary Dismukes <dismukes@adacore.com>
27611
27612 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
27613 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
27614 the expander will generate the corresponding run-time check to evaluate
27615 the expression.
27616 (Resolve_Call): Check for legal type of procedure name or prefix that
27617 appears as a trigger in a triggering alternative.
27618 (Valid_Conversion): If expression is ambiguous and the context involves
27619 an extension of System, remove System.Address interpretations.
27620 (Resolve_Qualified_Expression): Reject the case of a specific-type
27621 qualification applied to a class-wide argument. Enhance comment
27622 to explain checking of Original_Node.
27623 (Resolve_Type_Conversion): The location of the error message was not
27624 general enough to handle the general case and hence it has been removed.
27625 In addition, this patch improves the text of the message.
27626 (Resolve_Type_Conversion): Add missing support for access to interface
27627 types.
27628 (Resolve_Type_Conversion): If the target is a class-wide interface type,
27629 do not expand if the expression is the actual in a call, because proper
27630 expansion will take place when the call itself is expanded.
27631 (Resolve_Allocator): If the context is an unchecked conversion, the
27632 allocator inherits its storage pool, if any, from the target type of
27633 the conversion.
27634
276352005-09-01 Ed Schonberg <schonberg@adacore.com>
27636 Javier Miranda <miranda@adacore.com>
27637
27638 * sem_type.adb (Add_One_Interp): If a candidate operation is an
27639 inherited interface operation that has an implementation, use the
27640 implementation to avoid spurious ambiguities.
27641 (Interface_Present_In_Ancestor): In case of concurrent types we can't
27642 use the Corresponding_Record_Typ attribute to look for the interface
27643 because it is set by the expander (and hence it is not always
27644 available). For this reason we traverse the list of interfaces
27645 (available in the parent of the concurrent type).
27646 (Interface_Present_In_Ancestor): Handle entities from the limited view
27647
276482005-09-01 Ed Schonberg <schonberg@adacore.com>
27649
27650 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
27651 from the list of required components.
27652 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
27653 primitive procedure of a limited interface with a controlling first
27654 parameter.
27655 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
27656 of an entry.
27657 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
27658 capture if it is generated in the second operand of a short-circuit
27659 operation.
27660 Do not capture values for variables with address clauses.
27661 (Is_Object_Reference): Treat a function call as an object reference only
27662 if its type is not Standard_Void_Type.
27663
276642005-09-01 Ed Schonberg <schonberg@adacore.com>
27665
27666 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
27667 to a variable that is statically known to be constant.
27668
276692005-09-01 Geert Bosch <bosch@adacore.com>
27670 Robert Dewar <dewar@adacore.com>
27671
27672 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
27673 (VAXGF_Safe_First): Idem.
27674
276752005-09-01 Robert Dewar <dewar@adacore.com>
27676 Arnaud Charlet <charlet@adacore.com>
27677
27678 * g-dirope.ads: Minor reformatting
27679 Document that bounds of result of Base_Name match the input index
27680 positions.
27681 Add documentation on environment variable syntax for Expand_Path
27682
27683 * gnat_ugn.texi: Update documentation to include mention of -m switches
27684 Document new treatment of wide characters in max line length
27685 style check.
27686 Remove -gnatL/-gnatZ switches, no longer used.
27687 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
27688 of -gnata switch.
27689
27690 * gnat_rm.texi: Add doc for two argument form of pragma
27691 Float_Representation.
27692 Add documentation for pragma No_Strict_Aliasing
27693 Add note that explicit component clause overrides pragma Pack.
27694 Add documentation of pragma Debug_Policy
27695
276962005-09-01 Matthew Heaney <heaney@adacore.com>
27697
da8f5fd9
AJ
27698 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
27699 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
27700 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
98b40956
AC
27701 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
27702 draft (Draft 13, August 2005) of Ada Amendment 1.
27703
277042005-09-01 Arnaud Charlet <charlet@adacore.com>
27705
27706 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
27707 Note that the platform-specific version of g-soccon.ads for VMS is now
27708 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
27709 really is a package spec).
27710 Replace s-taspri-linux.ads by s-taspri-posix.ads
27711 Remove references to s-mastop-x86.adb
27712
27713 * system-vxworks-xscale.ads: Removed, no longer used.
27714 * s-vxwork-xscale.ads: Removed, no longer used.
27715
277162005-09-01 Robert Dewar <dewar@adacore.com>
27717
27718 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
27719 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
27720 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
27721 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
27722 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
27723 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
27724 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
27725 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
27726 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
27727 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
27728 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
27729 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
27730 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
27731 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
27732 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
27733 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
27734 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
27735 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
27736 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
27737 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
27738 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
27739
332a1c2e
AC
277402005-08-29 Arnaud Charlet <charlet@adacore.com>
27741
27742 PR ada/23187
27743 * adaint.c
da8f5fd9 27744 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
332a1c2e
AC
27745
277462005-08-29 Arnaud Charlet <charlet@adacore.com>
27747 Doug Rupp <rupp@adacore.com>
27748
27749 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
27750 when needed.
27751 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
27752 this code in the GNAT run-time.
27753
27754 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
27755
27756 PR ada/21053
27757 * init.c (__gnat_error_handler [many]): Mark "msg" as const
27758 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
27759
27760 (__gnat_inside_elab_final_code): Moved here from
27761 Standard_Library and only defined for the compiler.
27762 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
27763 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
27764 using RTPs because directly vectored Interrupt routines are not
27765 supported on this configuration.
27766 (getpid): Do not redefine this function on VxWorks when using RTPs
27767 because this primitive is well supported by the RTP libraries.
27768 (copy_msg): Correct the code that checks for buffer overflow.
27769 Discovered during code reading.
27770
277712005-08-29 Olivier Hainque <hainque@adacore.com>
27772
27773 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
27774 a library level mutable variable with an initializer, tell
27775 build_allocator to ignore the initializer's size. It may not be large
27776 enough for all the values that might be assigned to the variable later
27777 on.
27778
277792005-08-29 Arnaud Charlet <charlet@adacore.com>
27780 Eric Botcazou <ebotcazou@adacore.com>
27781
27782 * trans.c: Protect < in error msg with quote
27783 Replace GCC_ZCX by Back_End_Exceptions.
27784 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
27785 has been sufficiently aligned in the record.
27786
35fd1d77
JW
277872005-08-15 James E. Wilson <wilson@specifix.com>
27788
27789 * system-linux-alpha.ads: Change ia64 to alpha.
27790
b15341b8
KH
277912005-08-01 Kazu Hirata <kazu@codesourcery.com>
27792
27793 * decl.c, utils.c: Fix comment typos.
27794
9e4eb559
KH
277952005-07-29 Kazu Hirata <kazu@codesourcery.com>
27796
27797 * decl.c, init.c, initialize.c: Fix comment typos.
27798
4038c495
GB
277992005-07-20 Giovanni Bajo <giovannibajo@libero.it>
27800
27801 Make CONSTRUCTOR use VEC to store initializers.
27802 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
27803 CONSTRUCTOR_ELTS.
27804 * trans.c (extract_values): Likewise.
27805 * utils.c (convert, remove_conversions): Likewise.
27806 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
27807 gnat_build_constructor): Likewise.
27808
f685a2e6
AP
278092005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
27810
27811 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
27812 DECL_SECTION_NAME.
27813 (compare_field_bitpos): Likewise.
27814
7c6ef73e
AP
278152005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
27816
27817 * utils.c (create_var_decl): Only set DECL_COMMON on
27818 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
27819 VAR_OR_FUNCTION_DECL_P.
27820
820cc88f 278212005-07-08 Daniel Berlin <dberlin@dberlin.org>
da8f5fd9 27822
820cc88f
DB
27823 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
27824 removed.
27825
1a9cb483
AC
278262005-07-07 Pascal Obry <obry@adacore.com>
27827
27828 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
27829 returned type on Windows.
27830
27831 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
27832 routine.
27833
27834 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
27835 exception in this case.
27836 Simplify the code as "Image (Image'Range)" = "Image".
27837
278382005-07-07 Vincent Celier <celier@adacore.com>
27839
27840 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
27841 the destructor/constructor attributes for <lib>final/<lib>init.
27842
27843 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
27844
278452005-07-07 Eric Botcazou <ebotcazou@adacore.com>
27846
27847 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
27848 type if the parameter is not passed by copy but reference by default.
27849
278502005-07-07 Javier Miranda <miranda@adacore.com>
27851
27852 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
27853 Reimplementation of the support for abstract interface types in order
27854 to leave the code more clear and easy to maintain.
27855
27856 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
27857 abstract interface types in order to leave the code clearer and easier
27858 to maintain.
27859
27860 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
27861 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
27862 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
27863 appropriate entry of the secondary dispatch table.
27864 (Make_DT): Add code to inherit the secondary dispatch tables of
27865 the ancestors.
27866
27867 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
27868 implementing both functionalities by means of a common routine, each
27869 routine has its own code.
27870
278712005-07-07 Javier Miranda <miranda@adacore.com>
27872
27873 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
27874
27875 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
27876 types:
27877 --
27878 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27879 --
27880
27881 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
27882 use of tag incomplete types.
27883
27884 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
27885 give support to tagged incomplete types.
27886
27887 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
27888 expression is a discriminant reference and its type is private, as can
27889 happen within a stream operation for a mutable record, use the full
27890 view of the type to resolve the case alternatives.
27891 (Analyze_Assignment): Check wrong dereference of incomplete types.
27892
27893 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
27894 types.
27895
27896 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
27897 incomplete types.
27898
27899 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
27900 N_Incomplete_Type_Declaration nodes.
27901
27902 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
27903 Tag_Present to give support to tagged incomplete types:
27904 --
27905 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
27906 --
27907
279082005-07-07 Olivier Hainque <hainque@adacore.com>
27909
27910 PR ada/22301
1a9cb483
AC
27911 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
27912 definitions for the Unwind wrappers in the compiler case.
27913
279142005-07-07 Ed Schonberg <schonberg@adacore.com>
27915 Javier Miranda <miranda@adacore.com>
27916
27917 * par-load.adb (Load): If a child unit is loaded through a limited_with
27918 clause, each parent must be loaded as a limited unit as well.
27919
27920 * sem_ch10.adb (Previous_Withed_Unit): Better name for
27921 Check_Withed_Unit. Return true if there is a previous with_clause for
27922 this unit, whether limited or not.
27923 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
27924 the current unit.
27925 (Is_Visible_Through_Renamings): New local subprogram of install_limited
27926 _withed_unit that checks if some package installed through normal with
27927 clauses has a renaming declaration of package whose limited-view is
27928 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
27929 of the current Draft document for Ada 2005.
27930 (Analyze_Context): Complete the list of compilation units that
27931 are allowed to contain limited-with clauses. It also contains
27932 checks that were previously done by Install_Limited_Context_Clauses.
27933 This makes the code more clear and easy to maintain.
27934 (Expand_Limited_With_Clause) It is now a local subprogram of
27935 Install_Limited_Context_Clauses, and contains the code that adds
27936 the implicit limited-with clauses for parents of child units.
27937 This functionality was prevously done by Analyze_Context.
27938
27939 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
27940 incomplete type.
27941
27942 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
27943 been erroneously named in a limited-with clause of its own context.
27944 In this case the error has been previously notified by Analyze_Context.
27945
279462005-07-07 Ed Schonberg <schonberg@adacore.com>
27947
27948 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
27949 generic package that contains local declarations with the same name.
27950 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
27951
279522005-07-07 Bernard Banner <banner@adacore.com>
27953
27954 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
27955 ia64 platform only on platforms that you the GCC unwind library
27956 rather than the system unwind library.
27957
279582005-07-07 Thomas Quinot <quinot@adacore.com>
27959
27960 * expect.c: Minor reformatting
27961
279622005-07-07 Sergey Rybin <rybin@adacore.com>
27963
27964 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
27965 --no-separate-is
27966
27967 * gnat_ugn.texi: Add description for new gnatpp option
27968 (--no-separate-is)
27969
7d300a99
AC
279702005-07-04 Thomas Quinot <quinot@adacore.com>
27971
27972 * g-expect-vms.adb, g-expect.ads, g-expect.adb
27973 (Get_Command_Output): New subprogram to launch a process and get its
27974 standard output as a string.
27975
279762005-07-04 Eric Botcazou <ebotcazou@adacore.com>
9bae2797 27977 Olivier Hainque <hainque@adacore.com>
7d300a99
AC
27978
27979 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
27980 fetch a code-range descriptor associated with the machine state. On
27981 failure set the machine state's PC to 0; on success, pass the
27982 descriptor to exc_virtual_unwind.
27983
27984 * init.c (Tru64 section): New function __gnat_set_code_loc.
27985
279862005-07-04 Vincent Celier <celier@adacore.com>
27987
da8f5fd9
AJ
27988 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27989 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7d300a99
AC
27990 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
27991 Remove all auto-initialization code, as this is now done through the
27992 constructor mechanism.
27993
27994 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
27995 __gnat_sals_init_using_constructors): New functions.
27996
27997 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
27998 Linker_Constructor and Linker_Destructor when switch -a is used.
27999
28000 * bindusg.adb: Add line for new switch -a
28001
28002 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
28003 (Gnatbind): When switch -a is used, check if it is allowed
28004
28005 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
28006
280072005-07-04 Joel Brobecker <brobecker@adacore.com>
28008
28009 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
28010 This prevents us from hitting a limitation during the debug info
28011 generation when using stabs.
28012 (Prims_Ptr): Likewise.
28013
280142005-07-04 Gary Dismukes <dismukes@adacore.com>
28015 Ed Schonberg <schonberg@adacore.com>
28016 Javier Miranda <miranda@adacore.com>
28017
28018 * checks.adb (Null_Exclusion_Static_Checks): In the case of
28019 N_Object_Declaration, only perform the checks if the Object_Definition
28020 is not an Access_Definition.
28021
6f7f72f9
EB
28022 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
28023 where the parent of an the access definition is an N_Object_Declaration
28024 when determining the Associated_Node_For_Itype and scope of an
28025 anonymous access-to-subprogram type.
7d300a99
AC
28026
28027 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
28028 Corresponding_Spec on the body created for a null procedure. Add ???
28029 comment. Remove New_Copy_Tree call on body argument to
28030 Set_Body_To_Inline.
28031
28032 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
28033 discriminants, use the type of the actual as well, because the
28034 discriminants may be read by the called subprogram.
28035
28036 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
28037 access type we do not need to handle non-limited views.
28038 (Build_Derived_Record_Type): Additional check to check that in case of
28039 private types, interfaces are only allowed in private extensions.
28040
280412005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28042
28043 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
28044 <Pragma_Linker_Destructor>: Likewise.
28045
28046 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
28047 Pragma_Linker_Destructor.
28048
28049 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
28050 ATTR_LINK_DESTRUCTOR.
28051 (static_ctors, static_dtors): New variables.
28052
28053 * misc.c (gnat_expand_body): Output current function as constructor
28054 and destructor if requested.
28055
28056 * par-prag.adb: Add processing for pragma Linker_Constructor and
28057 Linker_Destructor.
28058
28059 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
28060 extracted from Check_Interrupt_Or_Attach_Handler.
28061 (Check_Interrupt_Or_Attach_Handler): Invoke it.
28062 Implement pragma Linker_Constructor and Linker_Destructor with the
28063 help of Find_Unique_Parameterless_Procedure.
28064 Replace Name_Alias with Name_Target for pragma Linker_Alias.
28065
da8f5fd9 28066 * snames.h, snames.ads, snames.adb:
7d300a99
AC
28067 Add Name_Linker_Constructor and Name_Linker_Destructor.
28068 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
28069 * snames.adb: Remove Name_Alias.
28070
28071 * trans.c: Include cgraph.h.
28072 (build_global_cdtor): New function.
28073 (Compilation_Unit_to_gnu): Build global constructor and destructor if
28074 needed.
28075 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
28076 of objects too.
28077 (addressable_p) <COMPONENT_REF>: Unconditionally test
28078 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
28079
28080 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
28081 variable if it is external.
28082
28083 (static_ctors, static_dtors): New global variables.
28084 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
28085 <ATTR_LINK_DESTRUCTOR>: Likewise.
28086 (end_subprog_body): Chain function as constructor and destructor
28087 if requested.
28088
28089 * exp_util.adb (Force_Evaluation): Unconditionally invoke
28090 Remove_Side_Effects with Variable_Ref set to true.
28091 (Remove_Side_Effects): Handle scalar types first. Use a renaming
28092 for non-scalar types even if Variable_Ref is true and for class-wide
28093 expressions.
28094
280952005-07-04 Ed Schonberg <schonberg@adacore.com>
28096
28097 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
28098 to prevent spurious warnings.
28099
281002005-07-04 Thomas Quinot <quinot@adacore.com>
28101
28102 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
28103 Itypes. Itypes are really unexpected there.
28104 (Build_TypeCode_Function): Generalise special processing for Itypes to
28105 handle the case of numeric implicit base types as well as enumerated
28106 ones.
28107
281082005-07-04 Ed Schonberg <schonberg@adacore.com>
28109
28110 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
28111 controlled, indicate the expected type of the dereference that is
28112 created for the call to Deep_Finalize, to prevent spurious errors when
28113 the designated type is private and completed with a derivation from
28114 another private type.
28115
281162005-07-04 Vincent Celier <celier@adacore.com>
28117
28118 * make.adb (Change_To_Object_Directory): When unable to change the
28119 current dir to the object directory, output the full path of the
28120 directory.
28121
281222005-07-04 Matthew Gingell <gingell@adacore.com>
28123
28124 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
28125
28126 * indepsw-linux.adb: Replace by...
28127
28128 * indepsw-gnu.adb: ...this new file
28129
281302005-07-04 Vincent Celier <celier@adacore.com>
28131
28132 * mlib-prj.adb (Auto_Initialize): New constant String
28133 (SALs_Use_Constructors): New Boolean function
28134 (Build_Library): Call gnatbind with Auto_Initialize switch when
28135 SALs_Use_Constructors returns True.
28136
28137 * mlib-tgt.ads: Minor reformatting
28138
28139 * mlib-utl.ads: Minor reformatting
28140
28141 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
28142
281432005-07-04 Ed Schonberg <schonberg@adacore.com>
28144
28145 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
28146 single protected declarations can have an interface list.
28147 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
28148 with seriously malformed entry declarations, and lead to compilation
28149 abandoned messages.
28150
281512005-07-04 Javier Miranda <miranda@adacore.com>
28152
28153 * par-load.adb: Load the context items in two rounds.
28154
281552005-07-04 Robert Dewar <dewar@adacore.com>
28156
28157 * scng.adb: Do not consider Mod used as an attribute to be a keyword
28158
281592005-07-04 Ed Schonberg <schonberg@adacore.com>
28160 Javier Miranda <miranda@adacore.com>
28161
28162 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
28163 type extension needs a limited view.
28164 Remove previous restriction on private types available through the
28165 limited-view (only tagged private types were previously allowed).
28166 (Install_Withed_Unit): In the code that implements the
28167 legality rule given in AI-377, exclude a child unit with the name
28168 Standard, because it is a homonym of the Standard environment package.
28169
281702005-07-04 Thomas Quinot <quinot@adacore.com>
28171
28172 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
28173 overloaded function call, carry interpretations from the original tree
28174 to the copy.
28175
281762005-07-04 Ed Schonberg <schonberg@adacore.com>
28177
28178 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
28179 types check whether some designated type is a limited view, and use
28180 the non-limited view if available.
28181
281822005-07-04 Gary Dismukes <dismukes@adacore.com>
28183
28184 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
28185 constraint of full view of a private view T1 if present, when T2 is a
28186 discriminated full view.
28187
281882005-07-04 Thomas Quinot <quinot@adacore.com>
28189
28190 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
28191 actual that is a view conversion of a bit packed array reference.
28192
281932005-07-04 Ed Schonberg <schonberg@adacore.com>
28194
28195 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
28196 present before checking whether an interface type covers a synchronized
28197 type.
28198
281992005-07-04 Ed Schonberg <schonberg@adacore.com>
28200
28201 * sem_util.adb (Is_Object_Reference): An indexed or selected component
28202 whose prefix is an implicit dereference is an object reference. Removes
28203 spurious errors when compiling with -gnatc.
28204
282052005-07-04 Robert Dewar <dewar@adacore.com>
28206
28207 PR ada/22039
7d300a99
AC
28208 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
28209
282102005-07-04 Matthew Gingell <gingell@adacore.com>
28211
28212 * tracebak.c: Enable tracebacks on ia64 platforms
28213
282142005-07-04 Vincent Celier <celier@adacore.com>
28215
28216 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
28217 the GNAT BIND command, as gnatbind accepts multiples ALI files with
28218 the -L or -n switches.
28219
282202005-07-04 Vincent Celier <celier@adacore.com>
28221
28222 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
28223 correctly computed and the main project data is not modified while
28224 doing so.
28225 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
28226 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
28227 c++linker as this does not work on some platforms.
28228
282292005-07-04 Matthew Heaney <heaney@adacore.com>
28230
28231 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
28232 was changed.
28233 * a-coinve.adb: Perform constraint checks explicitly.
28234
282352005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28236 Thomas Quinot <quinot@adacore.com>
28237
28238 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
28239 new target gen-soccon.
28240
282412005-07-04 Robert Dewar <dewar@adacore.com>
28242
28243 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
28244
282452005-07-04 Thomas Quinot <quinot@adacore.com>
28246
28247 * g-socket.ads (Check_Selector): Minor rewording of comment.
28248
282492005-07-04 Vincent Celier <celier@adacore.com>
28250
28251 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
28252
282532005-07-04 Thomas Quinot <quinot@adacore.com>
28254
28255 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
28256
282572005-07-04 Sergey Rybin <rybin@adacore.com>
28258
6f7f72f9 28259 * gnat_ugn.texi: Add description of --eol gnatpp option
7d300a99
AC
28260
282612005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28262 Thomas Quinot <quinot@adacore.com>
28263
6f7f72f9 28264 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
7d300a99
AC
28265 if the user wants all calls of a subprogram to be flagged,
28266 independently of whether they are made from within the same unit or
28267 another unit.
6f7f72f9
EB
28268 Mention restriction for pragma Linker_Alias on some platforms.
28269 Document pragma Linker_Constructor and Linker_Destructor.
28270 Rewrite documentation of Weak_External, Linker_Section and
28271 Linker_Alias pragmas.
7d300a99 28272
fc64d83c
AC
282732005-07-04 Arnaud Charlet <charlet@adacore.com>
28274
28275 * s-stausa.ads, s-stausa.adb: New files.
28276
cb5fee25
KC
282772005-06-30 Kelley Cook
28278
28279 * all files: Update FSF address in copyright headers.
28280 * gen-soccon.co (main): Output new FSF address in generated files.
28281
617a1b71
PB
282822005-06-28 Paul Brook <paul@codesourcery.com>
28283
28284 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
28285
0adcdb66
AC
282862005-06-14 Olivier Hainque <hainque@adacore.com>
28287 Eric Botcazou <ebotcazou@adacore.com>
28288
28289 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
28290 exc_unwind, now that we are generating proper .debug_frame output for
28291 that target.
28292
28293 * tracebak.c: Remove the mips-irix section, as we are now using the
28294 s-mastop based unwinder again.
28295 Under SPARC/Solaris, take into account the stack bias to compute the
28296 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
28297 ABI.
28298
282992005-06-14 Doug Rupp <rupp@adacore.com>
28300
28301 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
28302
28303 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
28304
283052005-06-14 Pascal Obry <obry@adacore.com>
28306
28307 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
28308 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
28309 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
28310 package name).
28311
da8f5fd9
AJ
28312 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
28313 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
28314 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
28315 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
0adcdb66 28316 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
da8f5fd9
AJ
28317 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
28318 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
28319 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
28320 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
28321 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
28322 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
28323 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
28324 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
28325 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
28326 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
28327 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
28328 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
28329 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
28330 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
28331 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
28332 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
28333 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
28334 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
28335 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
28336 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
28337 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
28338 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
28339 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
28340 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
0adcdb66
AC
28341 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
28342 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
28343 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
28344 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
28345 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
28346 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
28347 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
28348 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
28349 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
28350 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
28351 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
28352 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
28353 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
28354 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
28355 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
28356 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
28357 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
28358 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
28359 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
28360 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
28361 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
28362 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
28363 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
28364 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
28365 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28366 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
28367 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
28368 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
28369 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
28370 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
28371 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
28372 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
28373 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
28374 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
28375 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
28376 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
28377 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
da8f5fd9
AJ
28378 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
28379 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
0adcdb66 28380 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
da8f5fd9 28381 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
0adcdb66
AC
28382 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
28383 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
28384 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
28385 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
28386 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
28387 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
28388 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
28389 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
28390 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
28391 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
28392 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
28393 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
28394 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
28395 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
28396 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
28397 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
28398 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
28399 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
28400 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
28401 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
28402 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
28403 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
28404 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
28405 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
28406 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
28407 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
28408 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
28409 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
28410 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
28411 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
28412 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
28413 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
28414 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
28415 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
28416 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
28417 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
28418 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
da8f5fd9
AJ
28419 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
28420 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
28421 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
28422 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
28423 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
28424 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28425 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
0adcdb66
AC
28426 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
28427 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
28428 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
28429 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
28430 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
28431 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
da8f5fd9
AJ
28432 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
28433 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
0adcdb66
AC
28434 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
28435 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
28436 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
28437 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
28438 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
28439 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
28440 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
28441 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
28442 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
28443 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
28444 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
28445
284462005-06-14 Jose Ruiz <ruiz@adacore.com>
28447 Arnaud Charlet <charlet@adacore.com>
28448
28449 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
28450 longer protected objects. They have been replaced by lower-level
28451 suspension objects made up by a mutex and a condition variable (or
28452 their equivalent given a particular OS) plus some internal data to
28453 reflect the state of the suspension object.
28454 (Initialize, Finalize): Add this initialization procedure for
28455 Suspension_Object, which is a controlled type.
28456 (Finalize): Add the finalization procedure for Suspension_Object,
28457 which is a controlled type.
28458
28459 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
28460 Ada.Synchronous_Task_Control because there is no longer a need for a
28461 VxWorks specific version of this package. Target dependencies
28462 has been moved to System.Task_Primitives.Operations.
28463
28464 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
28465 longer needed.
28466 (InitializeCriticalSection, EnterCriticalSection,
28467 LeaveCriticalSection, DeleteCriticalSection): Replace the type
28468 pCriticalSection by an anonymous access type so that we avoid problems
28469 of accessibility to local objects.
28470
28471 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
28472 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
28473 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
28474 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
28475 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
28476 set the environment task mask here.
28477 (Current_State): Add this function that returns the state of the
28478 suspension object.
28479 (Set_False): Add this procedure that sets the state of the suspension
28480 object to False.
28481 (Set_True): Add this procedure that sets the state of the suspension
28482 object to True, releasing the task that was suspended, if any.
28483 (Suspend_Until_True): Add this procedure that blocks the calling task
28484 until the state of the object is True. Program_Error is raised if
28485 another task is already waiting on that suspension object.
28486 (Initialize): Add this procedure for initializing the suspension
28487 object. It initializes the mutex and the condition variable which are
28488 used for synchronization and queuing, and it sets the internal state
28489 to False.
28490 (Finalize): Add this procedure for finalizing the suspension object,
28491 destroying the mutex and the condition variable.
28492
28493 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28494 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
28495 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
28496 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
28497 which provides a low-level abstraction (using operating system
28498 primitives) for Ada.Synchronous_Task_Control.
28499 This object is made up by a mutex (for ensuring mutual exclusion), a
28500 condition variable (for queuing threads until the condition is
28501 signaled), a Boolean (State) indicating whether the object is open,
28502 and a Boolean (Waiting) reflecting whether there is a task already
28503 suspended on this object.
28504
28505 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
28506 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
28507 s-intman-vms.ads, s-intman-mingw.adb,
28508 (Initialize_Interrupts): Removed, no longer used.
28509
28510 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
28511 (Setup_Interrupt_Mask): New procedure.
28512
28513 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
28514
28515 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
28516
28517 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
28518 this is no longer done in the body of s-taprop
28519 (Server_Task): Explicitely test for Pending_Action in case
28520 System.Parameters.No_Abort is True.
28521
28522 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
28523 is no longer done in the body of s-taprop
28524
285252005-06-14 Robert Dewar <dewar@adacore.com>
28526
28527 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28528 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28529 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28530 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28531 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28532 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
28533 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
28534 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28535 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
28536 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
28537 system-linux-hppa.ads, system-vms_64.ads,
28538 system-vxworks-alpha.ads: Minor comment update for
28539 AI-362 (unit is Pure).
28540
28541 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
28542 Add pragma Pure_05 for AI-362
28543 Make remaining conversion functions obsolescent in Ada 95
28544
28545 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28546 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
28547 Add entries for a-wichun and a-zchuni
28548 Add a-widcha a-zchara for AI-395
28549 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
28550
28551 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28552 Add entries for a-wichun.o and a-zchuni.o
28553 Entries for a-widcha.o and a-zchara.o
28554 Add entry for a-chacon.o
28555
28556 * a-ztenau.adb: Add with of Ada.Characters.Conversions
28557
28558 * a-chacon.ads, a-chacon.adb: New files.
28559
28560 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
28561 categorization violations.
28562
28563 * a-strmap.ads: Add pragma Pure_05 for AI-362
28564 * a-strmap.ads: Add note on implicit categorization for AI-362
28565
28566 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
28567
28568 * par-prag.adb: Dummy entry for pragma Persistent_BSS
28569 Set Ada_Version_Explicit, for implementation of AI-362
28570 Add processing for pragma Pure_05 and Preelaborate_05
28571 Add entry for Assertion_Policy pragma
28572
28573 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
28574 when needed for proper processing of categorization stuff
28575
da8f5fd9 28576 * sem_cat.adb:
0adcdb66
AC
28577 For several cases, make errors in preealborate units warnings,
28578 instead of errors, if GNAT_Mode is set. For AI-362.
28579
28580 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
28581 preelaborate unit is now warning if in GNAT mode
28582
28583 * s-stoele.ads: Document AI-362 for pragma preelaborate
28584
285852005-06-14 Doug Rupp <rupp@adacore.com>
28586
28587 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
28588 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
28589 Default_Exception_Msg_Max_Length: new parameter.
28590
28591 * a-except.ads: (Exception_Msg_Max_Length): Set to
28592 System.Parameters.Default_Exception_Msg_Max_Length
28593 Add pragma Preelaborate_05 for AI-362
28594 Add warnings off to allow categorization violations for AI-362
28595
285962005-06-14 Vincent Celier <celier@adacore.com>
28597
28598 * gnatsym.adb: Adapt to modification of package Symbols: procedure
28599 Process is now in package Processing.
28600
28601 * symbols.ads, symbols.adb:
28602 (Processing): New package, containing procedure Process
28603
da8f5fd9 28604 * symbols-vms-alpha.adb:
0adcdb66
AC
28605 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
28606
28607 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
28608 symbols-processing-vms-ia64.adb: New files.
28609
286102005-06-14 Pascal Obry <obry@adacore.com>
28611
28612 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
28613 implementation. This new version generates the proper DllMain routine
28614 to initialize the SAL. The DllMain is generated in Ada and compiled
28615 before being added as option to the library build command.
28616
286172005-06-14 Doug Rupp <rupp@adacore.com>
28618 Pascal Obry <obry@adacore.com>
28619
28620 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
28621 call to decc$translate_vms.
28622 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
28623 need to remove those quotes before catenating the filename.
28624 (__gnat_locate_exec_on_path): improvements to the Win32 section:
28625 * avoid allocating the memory twice for better efficiency;
28626 * allocate 32K buffer for environment expansion as suggested by MSDN;
28627 * prepend ".;" to the path so that current directory is searched too.
28628
286292005-06-14 Robert Dewar <dewar@adacore.com>
28630
28631 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
28632 instead of raising CE (AI-241)
28633 Add warnings off to allow categorization violations for AI-362
28634
286352005-06-14 Robert Dewar <dewar@adacore.com>
28636
28637 * ali-util.adb, gnatbind.adb: Remove references to
28638 Force_RM_Elaboration_Order.
28639
28640 * switch-b.adb: Remove recognition of -f switch
28641
286422005-06-14 Pascal Obry <obry@adacore.com>
28643
28644 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
28645 implementation which is slightly more efficient.
28646
286472005-06-14 Gary Dismukes <dismukes@adacore.com>
28648 Javier Miranda <miranda@adacore.com>
28649 Ed Schonberg <schonberg@adacore.com>
28650 Hristian Kirtchev <kirtchev@adacore.com>
28651
28652 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
28653 allocator's designated type is a class-wide type, and compiling for
28654 Ada 2005, emit a run-time check that the accessibility level of the
28655 type given in the allocator's expression is not deeper than the level
28656 of the allocator's access type.
28657
28658 (Tagged_Membership): Modified to gives support to abstract interface
28659 types.
28660
28661 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
28662 Access_Level.
28663 (Descendant_Tag): New predefined function
28664 (Is_Descendant_At_Same_Level): New predefined function
28665 (Get_Access_Level): New private function
28666 (Set_Access_Level): New private procedure
28667 (IW_Membership): New function. Given the tag of an object and the tag
28668 associated with an interface, evaluate if the object implements the
28669 interface.
28670 (Register_Interface_Tag): New procedure used to initialize the table of
28671 interfaces used by the IW_Membership function.
28672 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
28673 of the dispatch table.
28674 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
28675 table of interfaces of the parent.
28676 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
28677 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
28678 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
28679 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
28680 Ada 2005 semantics for the new predefined function.
28681
28682 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
28683 call to Descendant_Tag rather than Internal_Tag.
28684 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
28685 the accessibility level of the attribute's Item parameter is not deeper
28686 than the level of the attribute's prefix type. Tag_Error is raised if
28687 the check fails. The check is only emitted for Ada_05.
28688 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
28689 requested stream attribute, use it.
28690 (Expand_N_Attribute_Reference): If the designated type is an interface
28691 then rewrite the referenced object as a conversion to force the
28692 displacement of the pointer to the secondary dispatch table.
28693 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
28694 is a dereference of an object with a constrained partial view.
28695
28696 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
28697 type is a class-wide type, emit a run-time check that the accessibility
28698 level of the returned object is not deeper than the level of the
28699 function's master (only when compiling for Ada 2005).
28700
28701 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
28702 Action_Nb_Arg): Add entries for new Get_Access_Level and
28703 Set_Access_Level routines in these tables.
28704 (Make_DT): Generate a call to set the accessibility level of the
28705 tagged type in its TSD.
28706 (Make_DT): Code cleanup. The functionality of generating all the
28707 secondary dispatch tables has been moved to freeze_record_type.
28708 (Make_Abstract_Interface_DT): Minor code cleanup.
28709 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
28710 this subprogram implements a new algorithm that provides the
28711 same functionality and it is more clear in case of primitives
28712 associated with abstract interfaces.
28713 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
28714 clean up, the functionality of this subprogram is now provided
28715 by Set_All_DT_Position.
28716 (Write_DT): New subprogram: a debugging procedure designed to be called
28717 within gdb to display the dispatch tables associated with a tagged
28718 type.
28719 (Collect_All_Interfaces): New subprogram that collects the whole list
28720 of interfaces that are directly or indirectly implemented by a tagged
28721 type.
28722 (Default_Prim_Op_Position): New subprogram that returns the fixed
28723 position in the dispatch table of the default primitive operations.
28724 (Expand_Interface_Actuals): New subprogram to generate code that
28725 displaces all the actuals corresponding to class-wide interfaces to
28726 reference the interface tag of the actual object.
28727 (Expand_Interface_Conversion): New subprogram. Reference the base of
28728 the object to give access to the interface tag associated with the
28729 secondary dispatch table.
28730 (Expand_Interface_Thunk): New subprogram that generates the code of the
28731 thunk. This is required for compatibility with the C+ ABI.
28732 (Make_Abstract_Interface_DT): New subprogram that generate the
28733 declarations for the secondary dispatch tables associated with an
28734 abstract interface.
28735 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
28736 attribute for each primitive operation covering interface subprograms
28737 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
28738 These subprograms were upgraded to give support to abstract interfaces
28739
28740 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
28741 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
28742 RE_Set_Access_Level.
28743 (RE_Unit_Table): Add entries for new Ada.Tags operations.
28744 Add support to call the followig new run-time subprograms:
28745 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
28746
28747 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
28748 match its full declaration when both have an access definition with
28749 statically matching designated subtypes.
28750 (Analyze_Component_Declaration): Delete commented out code that was
28751 incorrectly setting the scope of an anonymous access component's type.
28752 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
28753 an access discriminant when the containing type is nonlimited.
28754 (Make_Incomplete_Type_Declaration): Create an incomplete type
28755 declaration for a record type that includes self-referential access
28756 components.
28757 (Check_Anonymous_Access_Types): Before full analysis of a record type
28758 declaration, create anonymous access types for each self-referential
28759 access component.
28760 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
28761 an access component in this context is a Local_Anonymous_Access, for
28762 proper accessibility checks.
28763 (Access_Definition): Set properly the scope of the anonymous access type
28764 created for a stand-alone access object.
28765 (Find_Type_Of_Object): An object declaration may be given with an access
28766 definition.
28767 (Complete_Subprograms_Derivation): New subprogram used to complete
28768 type derivation of private tagged types implementing interfaces.
28769 In this case some interface primitives may have been overriden
28770 with the partial-view and, instead of re-calculating them, they
28771 are included in the list of primitive operations of the full-view.
28772 (Build_Derived_Record_Type): Modified to give support to private
28773 types implemening interfaces.
28774 (Access_Definition): Reject ALL on anonymous access types.
28775 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
28776 type derivation to occur at a deeper accessibility level than the
28777 parent type.
28778 For the case of derivation within a generic body however, disallow the
28779 derivation if the derived type has an ancestor that is a formal type
28780 declared in the formal part of an enclosing generic.
28781 (Analyze_Object_Declaration): For protected objects, remove the check
28782 that they cannot contain interrupt handlers if not declared at library
28783 level.
28784 (Add_Interface_Tag_Components): New subprogram to add the tag components
28785 corresponding to all the abstract interface types implemented by a
28786 record type or a derived record type.
28787 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28788 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28789 Process_Full_View, Record_Type_Declaration): Modified to give
28790 support to abstract interface types
28791 (Collect_Interfaces): New subprogram that collects the list of
28792 interfaces that are not already implemented by the ancestors
28793 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
28794 when partial view has no discriminants and full view has defaults.
28795 (Constrain_Access): Reject a constraint on a general access type
28796 if the discriminants of the designated type have defaults.
28797 (Access_Subprogram_Declaration): Associate the Itype node with the inner
28798 full-type declaration or subprogram spec. This is required to handle
28799 nested anonymous declarations.
28800 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
28801 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
28802 Process_Full_View, Record_Type_Declaration): Modified to give
28803 support to abstract interface types
28804 (Derive_Subprograms): Addition of a new formal to indicate if
28805 we are in the case of an abstact-interface derivation
28806 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
28807 to the specification because it is requied to analyze all the
28808 identifiers found in a list of interfaces
28809
28810 * debug.adb: Complete documentation of flag "-gnatdZ"
28811
28812 * exp_ch3.adb: Implement config version of persistent_bss pragma
28813 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
28814 testing for TSS presence to properly enforce visibility rules.
28815 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
28816 Make_Abstract_Interfaces_DT to generate the secondary tables
28817 associated with abstract interfaces.
28818 (Build_Init_Procedure): Modified to initialize all the tags
28819 corresponding.
28820 (Component_Needs_Simple_Initialization): Similar to other tags,
28821 interface tags do not need initialization.
28822 (Freeze_Record_Type): Modified to give support to abstract interface
28823 types.
28824 (Expand_N_Object_Declaration): Do not generate an initialization for
28825 a scalar temporary marked as internal.
28826
28827 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
28828 in-out parameter that is a component in an initialization procedure,
28829 whose constraint might depend on discriminants, and that may be
28830 misaligned because of packing or representation clauses.
28831 (Is_Legal_Copy): New predicate to determine whether a possibly
28832 misaligned in-out actual can actually be passed by copy/return. This
28833 is an error in case the type is by_reference, and a warning if this is
28834 the consequence of a DEC import pragma on the subprogram.
28835 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
28836 interface types
28837 (Expand_Inlined_Call): Mark temporary generated for the return value as
28838 internal, so that no useless scalar normalization is generated for it.
28839 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
28840 null procedure can always be inlined.
28841 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
28842 procedure, generate an explicit empty body for it.
28843
28844 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
28845 Given a type implementing an interface, returns the corresponding
28846 access_disp_table value.
28847 (Find_Interface_Tag): New subprogram. Given a type implementing an
28848 interface, returns the record component containing the tag of the
28849 interface.
28850 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
28851 previous ones that return the corresponding tag and access_disp_table
28852 entities.
28853 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
28854 is a predefined primitive operation.
28855 (Expand_Subtype_From_Expr): If the expression is a selected component
28856 within an initialization procedure, compute its actual subtype, because
28857 the component may depend on the discriminants of the enclosing record.
28858
da8f5fd9 28859 * i-cpp.ads, i-cpp.adb:
0adcdb66
AC
28860 This package has been left available for compatibility with previous
28861 versions of the frontend. As part of the new layout this is now a
28862 dummy package that uses declarations available at a-tags.ads
28863
28864 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
28865 "constant access" and "aliased [constant] access" when not compiling
28866 with -gnat05.
28867 Suppress Ada 2005 keyword warning if -gnatwY used
28868 (P_Identifier_Declarations): Add support for object declarations with
28869 access definitions.
28870 (Private_Extension_Declaration): Complete the documentation
28871 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
28872 attribute in case of private extension declaration
28873 (P_Type_Declaration): Mark as "abstract" the type declarations
28874 corresponding with protected, synchronized and task interfaces
28875 (P_Declarative_Items): "not" and "overriding" are overriding indicators
28876 for a subprogram or instance declaration.
28877
28878 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
28879 instantiation that is a dispatching operation has controlling access
28880 parameters that are null excluding.
28881 Save and restore Ada_Version_Explicit, for implementation of AI-362
28882 (Validate_Derived_Type_Instance): Add check for abstract interface
28883 types.
28884 (Analyze_Formal_Package): Establish Instantiation source for the copy of
28885 the generic that is created to represent the formal package.
28886 (Analyze_Package_Instantiation): Instantiate body immediately if the
28887 package is a predefined unit that contains inlined subprograms, and
28888 we are compiling for a Configurable_Run_Time.
28889 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
28890 If the program has a null default, generate an empty body for it.
28891
28892 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
28893 error message condition, null procedures are correctly detected now.
28894 (New_Overloaded_Entity): Bypass trivial overriding indicator check
28895 for subprograms in the context of protected types. Instead, the
28896 indicator is examined in Sem_Ch9 while analysing the subprogram
28897 declaration.
28898 (Check_Overriding_Indicator): Check consistency of overriding indicator
28899 on subprogram stubs as well.
28900 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
28901 the library level.
28902 (Analize_Subprogram_Specification): When analyzing a subprogram in which
28903 the type of the first formal is a concurrent type, replace this type
28904 by the corresponding record type.
28905 (Analyze_Subprogram_Body): Undo the previous work.
28906 (Analyze_Procedure_Call): If the call has the form Object.Op, the
28907 analysis of the prefix ends up analyzing the call itself, after which
28908 we are done.
28909 (Has_Interface_Formals): New subprogram subsidiary to analyze
28910 subprogram_specification that returns true if some non
28911 class-wide interface subprogram is found
28912 (New_Overloaded_Entity): Modified to give support to abstract
28913 interface types
28914 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
28915 access to subprograms must be recursive.
28916 (Is_Unchecked_Conversion): Improve the test that recognizes
28917 instantiations of Unchecked_Conversion, and allows them in bodies that
28918 are to be inlined by the front-end. When the body comes from an
28919 instantiation, a reference to Unchecked_Conversion will be an
28920 Expanded_Name, even though the body has not been analyzed yet.
28921 Replace Is_Overriding and Not_Overriding in subprogram_indication with
28922 Must_Override and Must_Not_Override, to better express intent of AI.
28923 (Analyze_Subprogram_Body): If an overriding indicator is given, check
28924 that it is consistent with the overrinding status of the subprogram
28925 at this point.
28926 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
28927 always inlined.
28928 If the subprogram is a null procedure, indicate that it does not need
28929 a completion.
28930
28931 * sem_disp.adb (Check_Controlling_Type): Give support to entities
28932 available through limited-with clauses.
28933 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
28934 allowed as the last primitive of a tagged type if it has no previous
28935 spec.
28936 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
28937 to give support to abstract interface types
28938
28939 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
28940 in the case where the target type is an anonymous access type of an
28941 object or component (that is, when Is_Local_Anonymous_Access is true).
28942 Prevent the special checks for conversions of access discriminants in
28943 the case where the discriminant belongs to a nonlimited type, since
28944 such discriminants have their accessibility level defined in the same
28945 way as a normal component of an anonymous access type.
28946 (Resolve_Allocator): When an allocator's designated type is a class-wide
28947 type, check that the accessibility level of type given in the
28948 allocator's expression or subtype indication is not statically deeper
28949 than the level of the allocator's access type.
28950 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
28951 name in a discriminant constraint of a record component.
28952 (Resolve_Explicit_Dereference): Do not check whether the type is
28953 incomplete when the dereference is a use of an access discriminant in
28954 an initialization procedure.
28955 (Resolve_Type_Conversion): Handle conversions to abstract interface
28956 types.
28957 (Valid_Tagged_Conversion): The conversion of a tagged type to an
28958 abstract interface type is always valid.
28959 (Valid_Conversion): Modified to give support to abstract interface types
28960 (Resolve_Actuals): Enable full error reporting on view conversions
28961 between unrelated by_reference array types.
28962 The rule for view conversions of arrays with aliased components is
28963 weakened in Ada 2005.
28964 Call to obsolescent subprogram is now considered to be a violation of
28965 pragma Restrictions (No_Obsolescent_Features).
28966 (Check_Direct_Boolean_Operator): If the boolean operation has been
28967 constant-folded, there is nothing to check.
28968 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
28969 check on possible violation of restriction No_Direct_Boolean_Operators
28970 until after expansion of operands, to prevent spurious errors when
28971 operation is constant-folded.
28972
28973 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
28974 Has_Compatible_Type): Modified to give support to abstract interface
28975 types.
28976 (Interface_Present_In_Ancestor): New function to theck if some ancestor
28977 of a given type implements a given interface
28978
28979 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
28980 prefix is a parameterless function that returns an access_to_procedure.
28981 (Transform_Object_Operation): Handle properly function calls of the
28982 form Obj.Op (X), which prior to analysis appear as indexed components.
28983 (Analyze_One_Call): Complete the error notification to help new Ada
28984 2005 users.
28985 (Analyze_Allocator): For an allocator without an initial value, where
28986 the designated type has a constrained partial view, a discriminant
28987 constraint is illegal.
28988
289892005-06-14 Robert Dewar <dewar@adacore.com>
28990
28991 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
28992 do with treatment of Set_Col when positioned at end of line character.
28993
289942005-06-14 Robert Dewar <dewar@adacore.com>
28995
28996 * atree.adb: (Elist*): Protect against uninitialized field
28997
289982005-06-14 Ed Schonberg <schonberg@adacore.com>
28999
29000 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
29001 for an attribute reference that returns an access type.
29002 (Apply_Discriminant_Check): No need for check if (designated) type has
29003 constrained partial view.
29004
29005 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
29006 both bound checks, rather than a conjunction.
29007 (Insert_Valid_Check): If the expression is an actual that is an indexed
29008 component of a bit-packed array, force expansion of the packed element
29009 reference, because it is specifically inhibited elsewhere.
29010
290112005-06-14 Vincent Celier <celier@adacore.com>
29012
29013 * clean.adb (Clean_Project): Correctly delete executable specified as
29014 absolute path names.
29015
29016 * make.adb (Gnatmake): Allow relative executable path names with
29017 directory information even when project files are used.
29018 (Change_To_Object_Directory): Fail gracefully when unable to change
29019 current working directory to object directory of a project.
29020 (Gnatmake): Remove exception handler that could no longer be exercized
29021 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
29022 may be deallocated by Normalize_Arguments.
29023 (Collect_Arguments): Eliminate empty arguments
29024
29025 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
29026 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
29027 (Check_Project): Return False when Project is No_Project. Return True
29028 when All_Projects is True.
29029 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
29030 All_Projects to True.
29031 Minor reformatting
29032
290332005-06-14 Ed Schonberg <schonberg@adacore.com>
29034 Javier Miranda <miranda@adacore.com>
29035 Thomas Quinot <quinot@adacore.com>
29036 Robert Dewar <dewar@adacore.com>
29037 Hristian Kirtchev <kirtchev@adacore.com>
29038 Gary Dismukes <dismukes@adacore.com>
29039
29040 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
29041 anonymous access types, to indicate that the accessibility level of
29042 the type is determined by that of the enclosing declaration.
29043 (Has_Persistent_BSS): New flag
29044 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
29045 of this attribute with functions.
29046 (Is_Primitive_Wrapper): Remove the barrier.
29047 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
29048 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
29049 New subprograms.
29050 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
29051 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
29052 New subprograms.
29053 (Is_Pure_Unit_Access_Type): New flag
29054 (Abstract_Interfaces): Complete the assertion to cover all usages.
29055 (Set_Is_Interface): Complete the assertion to cover all usages.
29056 (Is_Primitive_Wrapper): New attribute.
29057 (Is_Obsolescent): Now applies to all entities (though it is only set
29058 for subprograms currently)
29059 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
29060 which solves various problems concerning access subtypes.
29061 (Has_Persistent_BSS): New flag
29062 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
29063 Remove these subprograms because this attribute is currently
29064 not used.
29065 New entity flags:
29066 Has_Specified_Stream_Input (Flag190)
29067 Has_Specified_Stream_Output (Flag191)
29068 Has_Specified_Stream_Read (Flag192)
29069 Has_Specified_Stream_Write (Flag193)
29070 Present in all type and subtype entities. Set for a given view if the
29071 corresponding stream-oriented attribute has been defined by an
29072 attribute definition clause. When such a clause occurs, a TSS is set
29073 on the underlying full view; the flags are used to track visibility of
29074 the attribute definition clause for partial or incomplete views.
29075 (Is_Pure_Unit_Access_Type): New flag
29076 Clarify use of Is_Internal.
29077 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
29078 internally generated to wrap the invocation of tasks and protected
29079 types that implement interfaces.
29080 (Implementation_Base_Type): Documentation correction
29081 (Is_Obsolescent): Now applies to all entities (though it is only set
29082 for subprograms currently)
29083 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
29084 which solves various problems concerning access subtypes.
29085
29086 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
29087 for examined parameters. Identify unequal parameter list lengths as
29088 non-conformant parameters.
29089 (Overriding_Possible): Do not check for "All" qualifier in declaration
29090 of controlling access parameter, following prescription of AI-404.
29091 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
29092 that build the procedure body that wraps an entry invocation
29093 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
29094 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
29095 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
29096 give support to abstract interface types
29097
29098 * freeze.adb (Freeze_Entity): Issue error message if
29099 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
29100 type has no storage pool (Ada 2005) AI-366.
29101 Also modified to give support to abstract interface types
29102 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
29103 Inline_Always pragma.
29104
29105 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
29106 now begin an entry declaration.
29107 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
29108 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
29109 a subprogram declaration preceded by an overriding indicator.
29110 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
29111 declarations or subprogram declarations preceded by reserved words
29112 "not" or "overriding".
29113 (P_Entry_Declaration): Update comment. Parse and check overriding
29114 indicator, set semantic flags of entry declarations.
29115 (P_Task): New error message in case of private applied
29116 to a task type declaration.
29117 (P_Protected): New error message in case of private applied
29118 to a task type declaration.
29119
29120 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
29121 in which the full view of a type implementing an interface is a
29122 concurrent type.
29123 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
29124 Declare_Inherited_Private_Subprograms): If an explicit operation
29125 overrides an operation that is inherited in the private part, mark the
29126 explicit one as overriding, to enable overriding indicator checks.
29127 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
29128 full view to partial view, to simplify handling in back-end.
29129
29130 * sprint.adb: Print interface lists where needed: derived types,
29131 protected types, task types.
29132 output "is null" for null procedures. Part of implementation of
29133
29134 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
29135 relaxation of rules for access types in pure, shared passive partitions.
29136
29137 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
29138 first read discriminants into temporary objects, performing checks on
29139 the read values, then possibly performing discriminant checks on the
29140 actual (if it is constrained), and only finally reading the components
29141 into a constrained temporary object.
29142 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
29143 case of reading discriminants of a mutable record type to recognize
29144 the new form of the code generated by
29145 Build_Mutable_Record_Read_Procedure.
29146
29147 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
29148 of a simple call to Make_TSS_Name.
29149 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
29150 buffer, in order for Is_TSS to work correctly on local TSS names.
29151
29152 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
29153 Is_Local_Anonymous_Access to check legaliy of attributes in the
29154 context of access components and stand-alone access objects.
29155 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
29156 treated as available for a limited private type if there is an
29157 attribute_definition_clause that applies to its full view, but not in
29158 other cases where the attribute is available for the full view
29159 (specifically, the sole fact that the full view is non-limited does not
29160 make the attribute available for the partial view).
29161 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
29162 non-overloaded intrinsic subprogram.
29163 (Check_Stream_Attribute): Reject an attribute reference for an
29164 unavailable stream attribute even if the prefix is not a limited type
29165 (case of a 'Input attribute reference for an abstract, non-classwide
29166 type)
29167 (Stream_Attribute_Available): New function to determine whether a stream
29168 attribute is available at a place.
29169 (Check_Attribute): Use Stream_Attribute_Available instead of just
29170 testing for TSS presence on the implementation base type.
29171 (Analyze_Attribute): Modified to give support to task interfaces.
29172 (Analyze_Access_Attribute): Add error check for use of an Access (or
29173 Unrestricted_Access) attribute with a subprogram marked as
29174 Inline_Always.
29175 (Analyze_Attribute, case Attribute_Address): Add error check for use of
29176 an Address attribute with a subprogram marked as Inline_Always.
29177 Update Eval_Attribute to handle new value of Width from AI-395
29178
29179 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
29180 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
29181 Factor common code across the stream-oriented attribute circcuits into
29182 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
29183 processing is functionally identical to the previous duplicated one,
29184 except that an expression that denotes an abstract subprogram will now
29185 be rejected, as mandated by AI-195 item 5.
29186
29187 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
29188 Is_Local_Anonymous_Access to apply accessibility checks to access
29189 components and stand-alone access objects.
29190 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
29191 elsewhere.
29192 (Is_Potentially_Persistent_Type): New function
29193 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
29194 a heap-object whose type has a constrained partial view, the object is
29195 unconstrained and the component may depend on a discriminant, making its
29196 renaming illegal.
29197
29198 * sinfo.ads, sinfo.adb
29199 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
29200 (Must_Override): Flag applicable to N_Entry_Declaration.
29201 Indicate that interface_list can appear in single task and single
29202 protected declarations.
29203 Replace Is_Overriding and Not_Overriding with Must_Override and
29204 Must_Not_Override, to better express intent of AI.
29205 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
29206 of an overriding indicator in a subprogram or instance.
29207 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
29208 Add the overriding indicator [[not] overriding] construct to the
29209 following grammar productions:
29210 ENTRY_DECLARATION
29211 GENERIC_INSTANTIATION
29212 SUBPROGRAM_SPECIFICATION
29213
29214 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
29215 can start with an overriding indicator.
29216
29217 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
29218 flags accordingly on subrogram specifications or instances.
29219
da8f5fd9 29220 * sem_ch8.adb:
0adcdb66
AC
29221 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
29222 overriding_indicator, if present, is consistent with status of spec.
29223 Improve error message for null-excluding checks on controlling access
29224 parameters.
29225 (Check_In_Previous_With_Clause): Protect the frontend against
29226 previously reported critical errors in the context clauses.
29227 Save and restore Ada_Version_Explicit, for implementation of AI-362
29228 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
29229 operation verify that controlling formals of the renamed entity that
29230 are access parameters are explicitly non-null.
29231 (Find_Expanded_Name): Improve error message when prefix is an illegal
29232 reference to a private child unit.
29233
29234 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
da8f5fd9 29235 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
0adcdb66
AC
29236 Rewrite to correspond to new wide character names in AI-395
29237
6f7f72f9
EB
29238 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
29239 default procedures.
0adcdb66
AC
29240
292412005-06-14 Ed Schonberg <schonberg@adacore.com>
29242 Robert Dewar <dewar@adacore.com>
29243
29244 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
29245 code, not on the bodies of predefined operations, to cut down on
29246 spurious noise.
29247
292482005-06-14 Ed Schonberg <schonberg@adacore.com>
29249
29250 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
29251 be expanded in place. The size computation does not require a
29252 subtraction, which would raise an exception on a compiler built with
29253 assertions when the upper bound is Integer'first.
29254 (Flatten): For an array of composite components, take into account the
29255 size of the components to determine whether it is safe to expand the
29256 array into a purely positional representation.
29257
292582005-06-14 Thomas Quinot <quinot@adacore.com>
29259
29260 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
29261 denoting a formal parameter into account.
29262
292632005-06-14 Ed Schonberg <schonberg@adacore.com>
29264
29265 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
29266 the entry_call alternative of a conditional entry call, wrap the
29267 conditional entry call itself.
29268
292692005-06-14 Nicolas Setton <setton@adacore.com>
29270 Ed Schonberg <schonberg@adacore.com>
29271
29272 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
29273 the "simple_choice" member in a variant record, in accordance with the
29274 description in the package spec: the information output for a constant
29275 should be "S number", not "SS number".
29276 (Get_Encoded_Name): Return at once if not generating code. Avoids name
29277 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
29278
292792005-06-14 Thomas Quinot <quinot@adacore.com>
29280
29281 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
29282 RACW without any primitives, do not generate the if statement for
29283 dispatching by name in the PolyORB/DSA case, as it would be malformed
29284 (it would have an Elsif_Parts list that is not No_List, but with a
29285 length of 0).
29286
292872005-06-14 Robert Dewar <dewar@adacore.com>
29288
29289 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
29290
292912005-06-14 Jose Ruiz <ruiz@adacore.com>
29292
29293 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
29294 can determine whether pragma Suppress_Exception_Locations is in effect.
29295
29296 * utils2.c (build_call_raise): Do not pass the file name to the
29297 exception handler if pragma Suppress_Exception_Locations is in effect.
29298 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
29299
293002005-06-14 Emmanuel Briot <briot@adacore.com>
29301
29302 * g-debpoo.adb (Deallocate, Dereference): Improve output.
29303
293042005-06-14 Nicolas Roche <roche@adacore.com>
29305
29306 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
29307 to ""
29308 (Next_Level): Fix minor bug in handling of ../dir case
29309 (Read): Add dir separator to Directory name so that "" is understood as
29310 "/"
29311
293122005-06-14 Pascal Obry <obry@adacore.com>
29313
29314 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
29315 releasing the items.
29316
293172005-06-14 Vincent Celier <celier@adacore.com>
29318 Cyrille Comar <comar@adacore.com>
29319
29320 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
29321 with output file descriptor and with output file name.
29322 (Dup, Dup2): Now global procedures as they are used by two subprograms
29323 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
29324
293252005-06-14 Thomas Quinot <quinot@adacore.com>
29326
29327 PR ada/6717
0adcdb66
AC
29328 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
29329 broadcast address.
29330 (Create_Selector): Bind listening socket used to create the signalling
29331 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
29332 Set listen backlog to 1 to ensure that we detect socket theft by a
29333 failure of our own connect(2) call.
29334 (Check_Selector): Improve documentation of the selector mechanism.
29335 (Broadcast_Inet_Addr): New constant.
29336
293372005-06-14 Gary Dismukes <dismukes@adacore.com>
29338
29339 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
29340 type which turns out to be an incomplete and incorrect fix.
29341 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
29342 of the type is declared in a record (for determination of insertion
29343 type).
29344 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
29345 a private type and ensure that the primary entity is used for the type
29346 of the newly created function's V formal by taking the Etype of the
29347 view.
29348
293492005-06-14 Javier Miranda <miranda@adacore.com>
29350 Jose Ruiz <ruiz@adacore.com>
29351 Robert Dewar <dewar@adacore.com>
29352 Ed Schonberg <schonberg@adacore.com>
29353
29354 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
29355 that indicates if we are parsing a compilation unit found in a
29356 limited-with clause.
29357 It is use to avoid the circularity check.
29358
29359 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
29360 we are parsing a compilation unit found in a limited-with clause. This
29361 is use to avoid the circularity check.
29362
29363 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
29364 unit as a consequence of parsing a limited-with clause. This is used
29365 to avoid the circularity check.
29366
29367 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
29368 (Analyze_Context): Limited-with clauses are now allowed
29369 in more compilation units.
29370 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
29371 againts previously reported critical errors in context clauses
29372 (Install_Limited_Withed_Unit): Code cleanup plus static detection
29373 of two further errors: renamed subprograms and renamed packages
29374 are not allowed in limited with clauses.
29375 (Install_Siblings): Do not install private_with_clauses on the package
29376 declaration for a non-private child unit.
29377 (Re_Install_Parents): When a parent of the subunit is reinstalled,
29378 reset visibility of child units properly.
29379 (Install_Withed_Unit): When a child unit appears in a with_clause of its
29380 parent, it is immediately visible.
29381
293822005-06-14 Ed Schonberg <schonberg@adacore.com>
29383 Emmanuel Briot <briot@adacore.com>
29384
29385 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
29386 declared within an inlined body as referenced, to prevent spurious
29387 warnings.
29388 (Output_One_Ref): If an entity renames an array component, indicate in
29389 the ALI file that this aliases (renames) the array. Capture as well
29390 function renamings that rename predefined operations.
29391 Add information about generic parent for package and subprogram
29392 instances.
29393 (Get_Type_Reference): For a subtype that is the renaming of an actual in
29394 an instantiation, use the first_subtype to ensure that we don't generate
29395 cross-reference information for internal types.
29396 For objects and parameters of a generic private type, retain the '*'
29397 indicator to distinguish such an entity from its type.
29398
6f7f72f9
EB
29399 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
29400 to store information about instantiated entities.
0adcdb66 29401
6f7f72f9
EB
29402 * ali.adb (Scan_ALI): Add support for parsing the reference to the
29403 generic parent
0adcdb66 29404
6f7f72f9
EB
29405 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
29406 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
29407 information.
0adcdb66
AC
29408
294092005-06-10 Doug Rupp <rupp@adacore.com>
29410 Arnaud Charlet <charlet@adacore.com>
29411 Olivier Hainque <hainque@adacore.com>
29412 Jose Ruiz <ruiz@adacore.com>
29413
29414 * Make-lang.in: Add initialize.o when needed.
29415 Remove obsolete references to RT_FLAGS.
29416 Add missing dependencies for sdefault.o
29417
29418 * initialize.c: New file.
29419
29420 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
29421 [VMS] cond_signal_table: Fix problem in declaration.
29422 [VMS] __gnat_error_handler: rewrite.
29423 Move all __gnat_initialize() routines to initialize.c
29424 Specialize the former "hpux" section to "hppa hpux", as this is what the
29425 section really is here for and we now have other hpux ports that need
29426 different contents.
29427 (__gnat_adjust_context_for_raise) i386-linux: First version of this
29428 function for this target. Adjust PC by one in the machine context. This
29429 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
29430 it is more reliable to do that in the signal handler itself.
29431 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
29432 flags, so that the handler is passed the context structure to adjust
29433 prior to the raise.
29434 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
29435 SA_SIGINFO sigaction should look like. Call
29436 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
29437 Machine_State_Operations stuff.
29438 Add conditional code so that the x86_64 is also supported.
29439
294402005-06-14 Pascal Obry <obry@adacore.com>
29441
29442 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
29443 the library name.
29444
294452005-06-14 Robert Dewar <dewar@adacore.com>
29446
29447 * opt.ads, opt.adb: New flags for persistent_bss mode
29448 Add Ada_Version_Explicit, for implementation of AI-362
29449 Add Assertions_Enabled_Config and associated handling
29450 Needed since setting can be changed with Assertion_Policy pragma
29451 Add new flag Warn_On_Ada_2005_Compatibility
29452
29453 * switch-c.adb: Recognize -gnatwy/Y
29454 Set Ada_Version_Explicit, for implementation of AI-362
29455 The -gnatg switch now includes -gnatyu
29456
29457 * usage.adb: Add -gnatwy/Y
29458 Remove wrong asterisk on -gnatwX line
29459 Add line for -gnatyu switch
29460
294612005-06-14 Vincent Celier <celier@adacore.com>
29462
29463 * osint.adb (Add_Default_Search_Dirs): Put source and object
29464 directories of project files before directories coming from
29465 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
29466
294672005-06-14 Robert Dewar <dewar@adacore.com>
29468
29469 PR ada/15613
0adcdb66
AC
29470 * par-ch2.adb (Scan_Pragma_Argument): New procedure
29471 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
29472
294732005-06-14 Vincent Celier <celier@adacore.com>
29474
29475 * prep.adb (Preprocess): Ignore error when scanning the first token of
29476 a line.
29477
294782005-06-14 Vincent Celier <celier@adacore.com>
29479
29480 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
29481 (Check_Stand_Alone_Library): If the specified reference symbol file does
29482 not exist, only issue a warning when the symbol policy is not
29483 Controlled. And, when symbol policy is Compliant, set the symbol
29484 policy to Autonomous.
29485
294862005-06-14 Vincent Celier <celier@adacore.com>
29487
29488 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
29489 when the project file in a with clause is not the last one, that is the
29490 project file name is followed by a comma.
29491 * prj-pp.adb: (First_With_In_List): New Boolean global variable
29492 (Print): Issue list of project files separated by commas in with clauses
29493 according to the values returned by Is_Not_Last_In_List.
29494 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
29495 (Set_Is_Not_Last_In_List): New procedure
29496
294972005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29498
29499 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
29500
295012005-06-14 Robert Dewar <dewar@adacore.com>
29502
29503 * scng.adb: Add call to new Check_EOF routine
29504 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
29505 Add some comments regarding wide character handling
29506
29507 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
29508
29509 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
29510
29511 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
29512 characters are now considered graphic characters and hence yield false
29513 in this call.
29514
6f7f72f9
EB
29515 * nmake.adt: Modify header so that xnmake does not generate output
29516 files with multiple blank lines.
0adcdb66 29517
6f7f72f9
EB
29518 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29519 not have an extra blank line
0adcdb66
AC
29520
295212005-06-14 Gary Dismukes <dismukes@adacore.com>
29522
29523 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
29524 expression when the component type is an anonymous access type to
29525 ensure that appropriate accessibility checks are done.
29526
29527 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
29528 expression of an assignment when the target object is of an anonymous
29529 access type. This ensures that required accessibility checks are done.
29530 (One_Bound): Move the check for type Universal_Integer to
29531 Process_Bounds.
29532 (Process_Bounds): Check whether the type of the preanalyzed range is
29533 Universal_Integer, and in that case set Typ to Integer_Type prior
29534 to setting the type of the original range and the calls to One_Bound.
29535
295362005-06-14 Ed Schonberg <schonberg@adacore.com>
29537
29538 * sem_case.adb (Expand_Others_Choice): Improve warning.
29539
295402005-06-14 Ed Schonberg <schonberg@adacore.com>
29541
29542 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
29543 constraint of full view if present, when other type is discriminated.
29544 (Eval_Relational_Op): Recognize tests of pointer values against Null,
29545 when the pointer is known to be non-null, and emit appropriate warning.
29546
295472005-06-14 Robert Dewar <dewar@adacore.com>
29548 Ed Schonberg <schonberg@adacore.com>
29549
29550 PR ada/10671
0adcdb66
AC
29551 * sem_prag.adb: Implement pragma Persistent_BSS
29552 Remove obsolete pragma Persistent_Data, Persistent_Object
29553 Set Ada_Version_Explicit, for implementation of AI-362
29554 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
29555 Add processing for pragma Pure_05 and Preelaborate_05
29556 Add processing for Assertion_Policy pragma
29557 Add pragma identifiers for Assert
29558 (Analyze_Pragma, case Assert): Check number of arguments
29559 (Process_Inline): Additional guard against an illegal program, where the
29560 argument of the pragma is undefined, and warnings on redundant
29561 constructs are enabled.
29562 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
29563 Ada_05 to this pragma, specifying that the pragma is only active in
29564 Ada_05 mode.
29565 (Check_Arg_Order): New procedure
29566 Add appropriate calls to this procedure throughout
29567 Also throughout, check entity name before doing any other checks
29568
29569 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
29570 Remove obsolete pragma Persistent_Data, Persistent_Object
29571 Add entries for pragma Pure_05 and Preelaborate_05
29572 Add entries for Assertion_Policy pragma and associated names
29573 Add some names for pragma argument processing
29574
29575 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
29576
295772005-06-14 Ed Schonberg <schonberg@adacore.com>
29578
29579 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
29580 appears within a negation (either from source or as a rewriting of
29581 inequality) adjust text of warning accordingly.
29582
295832005-06-14 Thomas Quinot <quinot@adacore.com>
29584
29585 * s-strxdr.adb: Follow AI95-00132
29586
295872005-06-14 Arnaud Charlet <charlet@adacore.com>
29588
29589 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
29590
295912005-06-14 Arnaud Charlet <charlet@adacore.com>
29592 Jose Ruiz <ruiz@adacore.com>
29593
29594 * s-tposen.adb, s-tpobop.adb
29595 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
29596 the exception id.
29597 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
29598 there is no violation of the Max_Entry_Queue_Length restriction (if it
29599 has been set); Program_Error is raised otherwise.
29600 (Requeue_Call): Before requeuing the task on the target entry queue we
29601 check that there is no violation of the Max_Entry_Queue_Length
29602 restriction (if it has been set); Program_Error is raised otherwise.
29603
296042005-06-14 Robert Dewar <dewar@adacore.com>
29605
29606 * styleg.adb: Fix several remaining problems in -gnatyu switch
29607 Blank line count not reset at start
29608 Scanning outside source buffer in some cases
29609 Confusing message for blanks at end of file
29610 Non-empty blank lines not recognized
29611
29612 * nmake.adt: Modify header so that xnmake does not generate output
29613 files with multiple blank lines.
29614
6f7f72f9
EB
29615 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29616 not have an extra blank line
0adcdb66
AC
29617
296182005-06-14 Sergey Rybin <rybin@adacore.com>
29619
29620 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
29621
296222005-06-14 Doug Rupp <rupp@adacore.com>
29623 Vincent Celier <celier@adacore.com>
29624
29625 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
29626 Update copyright.
29627
29628 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
29629 Remove "Library" command.
29630 Change keyword for style check -gnatyd from NOCRLF to
29631 DOS_LINE_ENDINGS.
29632 Remove useless second style check keyword NONE
29633 Remove help documentation for inexistent style check keyword
29634 RM_COLUMN_LAYOUT.
29635 Add help documentation for style check keywords DOS_LINE_ENDINGS,
29636 UNNECESSARY_BLANK_LINES and XTRA_PARENS
29637 Add UNNECESSARY_BLANK_LINES for -gnatyu
29638 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
29639
6f7f72f9 29640 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
0adcdb66
AC
29641
296422005-06-14 Vincent Celier <celier@adacore.com>
29643
29644 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
29645 gprmake was invoked with -d.
29646 (Compile_Sources): If -d was used, output the "completed ..." message
29647 for each compilation.
29648 (Scan_Arg): Recognize new switch -d
29649 When -c and at least one main is specified, set
29650 Unique_Compile to True to guarantee that no other sources will be
29651 compiled.
29652
296532005-06-14 Matthew Heaney <heaney@adacore.com>
29654
29655 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
29656 * a-swuwha.ads, a-swuwha.adb: New files
29657
29658 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
29659 * a-szuzha.ads, a-szuzha.adb: New files.
29660
29661 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
da8f5fd9
AJ
29662 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
29663 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
29664 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
29665 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
0adcdb66 29666 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
da8f5fd9 29667 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
0adcdb66
AC
29668 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
29669 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
29670 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
29671 Ada 2005 RM.
29672
296732005-06-10 Eric Botcazou <ebotcazou@adacore.com>
29674 Olivier Hainque <hainque@adacore.com>
29675 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29676 Pascal Obry <obry@adacore.com>
29677
29678 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
29679
29680 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
29681 making a temporary around a procedure call because of non-addressable
29682 actual parameter.
29683 (process_freeze_entity): If entity is a private type, capture size
29684 information that may have been computed for the full view.
29685 (tree_transform, case N_Allocator): If have initializing expression,
29686 check type for Has_Constrained_Partial_View and pass that to
29687 build_allocator.
29688 (tree_transform, case N_Return_Statement): Pass extra arg to
29689 build_allocator.
29690
29691 * decl.c (annotate_value): Remove early return if -gnatR is not
29692 specified.
29693 (gnat_to_gnu_field): Don't make a packable type for a component clause
29694 if the position is byte aligned, the field is aliased, and the clause
29695 size isn't a multiple of the packable alignment. It serves no useful
29696 purpose packing-wise and would be rejected later on.
29697 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
29698
29699 PR ada/20515
29700 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
29701 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
29702 instead.
29703 (create_concat_name): Idem.
29704
297052005-06-10 Robert Dewar <dewar@adacore.com>
29706 Eric Botcazou <ebotcazou@adacore.com>
29707 Ben Brosgol <brosgol@adacore.com>
29708 Cyrille Comar <comar@adacore.com>
29709 Sergey Rybin <rybin@adacore.com>
29710 Pascal Obry <obry@adacore.com>
29711
29712 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
29713 Document second argument (Ada_05) of pragma Obsolescent
29714 Add note that call to subprogram marked with pragma Obsolescent
29715 is now considered to be a violation of program Restrictions
29716 (No_Obsolescent_Features).
29717 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
29718 that only machine-dependent attributes are supported.
29719
da8f5fd9 29720 * gnat_ugn.texi:
0adcdb66
AC
29721 Commented out menu lines and empty section for gnatclean examples
29722 Document -gnatwy/Y
29723 Fix some over long lines
29724 Clarify and enhance documentation of ADA_PROJECT_PATH.
29725 Rework section 2.11.2(3) about linking with a non-GNU compiler.
29726 Mention new switch -fcallgraph-info.
29727 Mention new switch -fstack-usage.
29728 For gnatpp, replace '-notab' with '-N' and add this option to Index
29729 Corrected VMS example.
29730 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
29731 Minor reformatting
29732 Add documentation for -gnatyu switch (unnecessary blank lines)
29733 Document new switch -U for GNAT PRETTY and GNAT METRIC
29734 Add note about Stdcall being handled as C convention on non Windows OS.
29735 Remove some junk typo in description of gnatbind -S switch
29736 Remove reference to Extensions_Allowed pragma
29737 Document the new order of the directories to be searched (source and
29738 object directories of project files before directories in ADA_*_PATH
29739 environment variables.
29740
6f7f72f9 29741 * g-trasym.ads: Document that IRIX is supported
0adcdb66
AC
29742
297432005-06-10 Arnaud Charlet <charlet@adacore.com>
29744
29745 * Makefile.in: Add initialize.o when needed.
29746 Adapt to new VMS package body Symbols and subunits
29747 No specialized version of a-sytaco is needed for VxWorks.
29748
29749 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
29750 * a-zchara.ads, a-widcha.ads: New files.
29751
29752 * system-hpux-ia64.ads: New file.
29753
29754 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
29755 is imported from the VxWorks kernel.
29756
297572005-06-14 Robert Dewar <dewar@adacore.com>
29758
29759 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
29760 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
29761 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
29762 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
29763 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
29764 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
29765 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
29766 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
29767 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
29768 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
29769 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
29770 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
29771
297722005-06-14 Thomas Quinot <quinot@adacore.com>
29773
29774 * xeinfo.adb: Fix typo in comment
29775
297762005-06-14 Javier Miranda <miranda@adacore.com>
29777
29778 * repinfo.ads: Fix typo in comment
29779
297802005-06-14 Gary Dismukes <dismukes@adacore.com>
29781
29782 * s-finimp.adb (Parent_Tag): Delete this imported function (function
29783 Parent_Tag is now in the visible part of Ada.Tags).
29784 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
29785 using imported function.
29786
297872005-06-14 Bernard Banner <banner@adacore.com>
29788
29789 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
29790 also apply for handling support for VxSim 653.
29791
297922005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29793
29794 * xsnames.adb: Add automatic generation of snames.h.
29795
297962005-06-14 Thomas Quinot <quinot@adacore.com>
29797
29798 * gen-soccon.c: Add IP_MULTICAST_IF constant
29799 Minor reformatting and adjustments to prevent warnings.
29800
298012005-06-14 Pascal Obry <obry@adacore.com>
29802
29803 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
29804
e0d161cf
AP
298052005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
29806
29807 * trans.c (gnat_gimplify_expr): Call
29808 recompute_tree_invarant_for_addr_expr when we change
29809 the operand of the ADDR_EXPR.
29810
4c714dd4
KG
298112005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29812
29813 * misc.c: Don't include errors.h.
29814
7b9997f3
KG
298152005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29816
29817 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
29818
5ff62c2e
KH
298192005-05-29 Kazu Hirata <kazu@cs.umass.edu>
29820
29821 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
29822 comment typos.
29823 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
29824
9e94c78f 298252005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
8b37cc64
NN
29826
29827 PR ada/20270
29828 * Makefile.in: Make TGT_LIB behave correctly.
29829
d4ee4d25
DD
298302005-04-23 DJ Delorie <dj@redhat.com>
29831
29832 * misc.c: Adjust warning() callers.
29833
9e94c78f 298342005-04-16 Laurent Guerby <laurent@guerby.net>
159921c0 29835
6f7f72f9
EB
29836 PR ada/18847
29837 * a-nudira.adb (Value): Check for valid string.
29838 * a-nuflra.adb (Value): Likewise.
159921c0 29839
0b026622
RS
298402005-04-11 Richard Sandiford <rsandifo@redhat.com>
29841
29842 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
29843
bde83138
KH
298442005-04-10 Kazu Hirata <kazu@cs.umass.edu>
29845
29846 * adaint.c, init.c, tracebak.c: Fix comment typos.
29847 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
29848
9e94c78f 298492005-04-07 Laurent Guerby <laurent@guerby.net>
ad9945b5
LG
29850 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29851
29852 * Makefile.in: Add make ifeq define for hppa linux tasking support.
29853 * system-hpux.ads: Define Signed_Zeros to be True.
29854 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
29855
45f7cb60
KH
298562005-04-01 Kazu Hirata <kazu@cs.umass.edu>
29857
29858 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
29859 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
29860 typos.
29861
5662a50d
TT
298622005-03-30 Tom Tromey <tromey@redhat.com>
29863
29864 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
29865
e6e375cc
AL
298662005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
29867
29868 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
29869
5db8bc34
AC
298702005-03-29 Robert Dewar <dewar@adacore.com>
29871
29872 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
29873 fixed-point expression has value that is not a multiple of the Small
29874 value.
29875
29876 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
29877
29878 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
29879 nanoseconds.
29880
29881 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
29882
298832005-03-29 Vincent Celier <celier@adacore.com>
29884
29885 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
29886 (Build_Dynamic_Library.Version_String): Return the empty string when
29887 Lib_Version is empty or when the symbol policy is not Autonomous.
29888
29889 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
29890 a symbol is not in the reference symbol file, increase the Major ID
29891 and set the Minor ID to 0.
29892 Use gsmatch=lequal instead of gsmatch=equal
29893
298942005-03-29 Doug Rupp <rupp@adacore.com>
29895
29896 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
29897 name and translate.
29898
298992005-03-29 Javier Miranda <miranda@adacore.com>
29900
29901 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
29902 (Inherit_DT): The first formal has been redefined as a Tag.
29903 This allows us the removal of the subprogram Get_TSD.
29904 (TSD): Replace the call to Get_TSD by the actual code.
29905
29906 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
29907 (Make_DT): Upgrade the call to Inherit_TSD according to the
29908 new interface: the first formal is now a Tag.
29909
29910 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
29911 redefined as a Tag.
29912 This change allows us to remove the subprogram Get_TSD.
29913 (CPP_Get_TSD): Subprogram removed.
29914 (TSD): Replace the call to CPP_Get_TSD by the actual code.
29915
29916 * rtsfind.ads: Remove support to call the run-time
29917 subprogram Get_TSD
29918
299192005-03-29 Robert Dewar <dewar@adacore.com>
29920
da8f5fd9 29921 * errutil.adb, errout.adb:
5db8bc34
AC
29922 Minor comment updates on Line_Terminator references
29923
29924 * par-ch10.adb: Add ??? comment about line terminator
29925
29926 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
29927 (check dos line terminator).
29928 (Check_Line_Max_Length): New procedure, split off from the existing
29929 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29930 be properly recognized.
29931
29932 * styleg.adb: Add ??? comment for line terminator reference
29933
29934 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
29935 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
29936
29937 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
29938 (check dos line terminator).
29939 (Check_Line_Max_Length): New procedure, split off from the existing
29940 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29941 be properly recognized.
29942
da8f5fd9 29943 * stylesw.ads, stylesw.adb:
5db8bc34
AC
29944 Add handling for new -gnatyd switch (check dos line terminator)
29945
29946 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
29947 Recognize -gnatwb/-gnatwB switches
29948 Include Warn_On_Bad_Fixed_Value for -gnatg
29949
da8f5fd9 29950 * usage.adb:
5db8bc34
AC
29951 Add line for new -gnatyd switch (check dos line terminator)
29952
29953 * usage.adb: Add lines for -gnatwb/-gnatwB
29954
29955 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
29956
29957 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
29958
29959 * gnat_ugn.texi: Fix overlong lines
29960 Document new -gnatyd switch
29961 Document new -gnatwb/-gnatwB switches
29962
299632005-03-29 Ed Schonberg <schonberg@adacore.com>
29964
29965 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
29966 order to retrieve the component list of the type, before examining
29967 individual components.
29968
29969 * sem_type.adb (Covers): Types are compatible if one is the base type
29970 of the other, even though their base types might differ when private
29971 views are involved.
29972
299732005-03-29 Thomas Quinot <quinot@adacore.com>
29974
29975 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
29976 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
29977 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
29978 analyzed if expansion is disabled (which could otherwise cause spurious
29979 error messages if expansion has been disabled due to previous
29980 (unrelated) errors).
29981
29982 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
29983 is disabled, the entity denoted by the argument is the access type
29984 itself, not an underlying record type, so there is no need to go back
29985 to the Corresponding_Remote_Type.
29986
299872005-03-29 Gary Dismukes <dismukes@adacore.com>
29988 Robert Dewar <dewar@adacore.com>
29989
29990 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
29991 expand a call to an instance of
29992 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
29993 Constructor actual of the instance. A class-wide membership
29994 check is also generated, to ensure that the tag passed to the instance
29995 denotes a type in the class.
29996 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
29997 of Name_Generic_Dispatching_Constructor.
29998
29999 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
30000 05 unit for AI-260-02).
30001
30002 * a-tgdico.ads: New file.
30003
30004 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
30005 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
30006
30007 * snames.ads, snames.adb (Preset_Names): Add entry for
30008 Generic_Dispatching_Constructor.
30009
30010 PR ada/20300
5db8bc34
AC
30011 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
30012 character type cases.
30013 (Analyze_Subprogram_Renaming): Add special handling for
30014 the case of renaming of stream attributes when the renaming denotes a
30015 generic formal subprogram association for an abstract formal subprogram.
30016 Check that the attribute is a primitive stream attribute (and not
30017 a class-wide stream attribute) and then rewrite the attribute name
30018 as the name of the appropriate compiler-generated stream primitive.
30019
300202005-03-29 Robert Dewar <dewar@adacore.com>
30021
30022 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
30023 recursive calls.
30024 (Is_Possibly_Unaligned_Object): Correct typo that
30025 resulted in inaccurate result for unaligned scalars within records.
30026
300272005-03-29 Ed Schonberg <schonberg@adacore.com>
30028
30029 * freeze.adb (Freeze_Record_Type): If the type of the component is an
30030 itype whose parent is controlled and not yet frozen, do not create a
30031 freeze node for the itype if expansion is disabled.
30032
300332005-03-29 Vincent Celier <celier@adacore.com>
30034
30035 * make.adb (Gnatmake): Don't fail if the main project file is declared
30036 as having no Ada sources. Do not display message "no sources to
30037 compile" in quiet output.
30038
300392005-03-29 Doug Rupp <rupp@adacore.com>
30040
30041 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
30042 extra tools.
30043
300442005-03-29 Robert Dewar <dewar@adacore.com>
30045
30046 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
30047 child.
30048
300492005-03-29 Robert Dewar <dewar@adacore.com>
30050
30051 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
30052 missing TYPE Improve the error message generated when compiling a
30053 limited interface in Ada83 or Ada95 mode.
30054
300552005-03-29 Robert Dewar <dewar@adacore.com>
30056
30057 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
30058 rather than proceed ahead using a junk attribute name.
30059
300602005-03-29 Vincent Celier <celier@adacore.com>
30061
30062 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
30063
30064 * prj-part.adb (Parse_Single_Project): Set the location of a project
30065 on its defining identifier, rather than on the reserved word "project".
30066
30067 * prj-proc.adb (Expression): Adapt to the fact that default of external
30068 references may be string expressions, not always literal strings.
30069 (Recursive_Process): Set Display_Name equal to Name
30070 when Location is No_Location, that is when there is no actual file.
30071 Get the Display_Name of the project from the source, when it is not a
30072 virtual project.
30073 (Process): Use the Display_Name in error messages
30074
30075 * prj-strt.adb (External_Reference): Allow default to be string
30076 expressions, not only literal strings.
30077
300782005-03-29 Vincent Celier <celier@adacore.com>
30079
30080 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
30081 file and the reference symbol file to be the same file.
30082
300832005-03-29 Thomas Quinot <quinot@adacore.com>
30084
30085 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
30086 forbid conversion of a local access-to-subprogram type to a remote one.
30087
30088 * sem_util.adb (Wrong_Type): For a record type that is the expanded
30089 equivalent type for a remote access-to-subprogram type, go back to the
30090 original RAS entity when displaying an error message, so the casing is
30091 the original source casing.
30092
300932005-03-29 Robert Dewar <dewar@adacore.com>
30094
30095 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
30096 on param update.
30097
300982005-03-29 Ed Schonberg <schonberg@adacore.com>
30099
30100 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
30101 subtype if code is being pre-analyzed, to prevent un-expanded
30102 references to protected formals, among others.
30103 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
30104 interpretation that can be a call, include the result of the call as a
30105 possible interpretation of the dereference.
30106
30107 * sem_ch5.adb (Process_Bounds): Determine type of range by
30108 pre-analyzing a copy of the original range, and then analyze the range
30109 with the expected type.
30110
30111 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
30112 with an overloaded prefix where not all interpretations yield an
30113 access to subprogram, do not rewrite node as a call.
30114 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
30115 the node as a call once the context identifies the interpretation of
30116 the prefix whose call yields the context type.
30117 (Valid_Conversion): For the case of a conversion between
30118 local access-to-subprogram types, check subtype conformance using
30119 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
30120 detailed error message.
30121
301222005-03-29 Ed Schonberg <schonberg@adacore.com>
30123
30124 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
30125 indicator, indicate that the formal can never be null.
30126 (Process_Formals): If a formal has a non_null indicator, insert the
30127 resulting subtype immediately before the enclosing subprogram decl,
30128 and not at the beginning of the corresponding declarative part, to
30129 prevent access before elaboration (Ada2005).
30130
301312005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30132
30133 PR ada/19956
30134 * utils.c (finish_record_type): Use variable_size when setting sizes.
30135
301362005-03-29 Robert Dewar <dewar@adacore.com>
30137
30138 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
30139 guarantee Unix style line terminators for the output files, even when
30140 running on windows.
30141
301422005-03-29 Robert Dewar <dewar@adacore.com>
30143
30144 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
30145 buffer if an exception is raised.
30146
301472005-03-29 Ed Falis <falis@adacore.com>
30148
30149 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
30150 VxWorks 653 1.4
30151
301522005-03-29 Robert Dewar <dewar@adacore.com>
30153
30154 * sem_util.ads: Minor reformatting
30155 * gnat_rm.texi: Minor editing.
30156
301572005-03-29 Eric Botcazou <ebotcazou@adacore.com>
30158
30159 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
30160 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
30161
aad9ff31
AL
301622005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30163
30164 * adaint.c (__gnat_portable_spawn): Adjust cast.
30165
d101034c
JM
301662005-03-23 Joseph S. Myers <joseph@codesourcery.com>
30167
30168 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
30169
3a0c4f5a
AC
301702005-03-17 Pascal Obry <obry@adacore.com>
30171
30172 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
30173 used.
30174
30175 * expect.c (__gnat_waitpid): Moved here from adaint.c.
30176 Reimplement under Win32 using Win32 API.
30177
30178 (__gnat_kill) [Win32]: Properly close the process handle before leaving
30179 this routine.
30180
301812005-03-17 Eric Botcazou <ebotcazou@adacore.com>
30182
30183 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
30184 (DECL_RENAMED_OBJECT): New accessor macro.
30185 (SET_DECL_RENAMED_OBJECT): New setter macro.
30186
30187 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
30188 object in all cases. Attach the renamed object to the VAR_DECL.
30189 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
30190 field is not prescribed.
30191
30192 * misc.c (gnat_handle_option): Handle -gnatO separately.
30193 (gnat_print_decl) <VAR_DECL>: New case.
30194 Print the DECL_RENAMED_OBJECT node.
30195
30196 * lang.opt: Declare separate -gnatO option.
30197
30198 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
30199 pointer, replace it with the renamed object.
30200 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
30201 pointer type if the source is not a fat pointer type whose underlying
30202 array has the same non-zero alias set as that of the destination array.
30203
302042005-03-17 Javier Miranda <miranda@adacore.com>
30205
30206 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
30207 (Get_Inheritance_Depth): Removed.
30208 (Set_Inheritance_Depth): Removed.
30209
30210 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
30211 subprogram Get_Expanded_Name because it is not referenced by the
30212 frontend.
30213
30214 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
30215 (CPP_Get_Inheritance_Depth): Removed.
30216 (CPP_Set_Inheritance_Depth): Removed.
30217
30218 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
30219
302202005-03-17 Robert Dewar <dewar@adacore.com>
30221
30222 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
30223 3, since we now expect GCC 3 to do all the work.
30224
302252005-03-17 Javier Miranda <miranda@adacore.com>
30226
30227 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
30228 of one barrier to avoid wrong usage of this attribute.
30229
30230 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
30231 First_Private_Entity.
30232
30233 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
30234 the subprogram against wrong usage.
30235 Adapt the code to traverse the entities in the
30236 scope of a record_type because in addition to its usage regarding
30237 packages, this subprogram is also called by Expand_N_Freeze_Entity
30238 to install the visible declarations of the enclosing scope of a
30239 record_type_with_private to establish the proper visibility before
30240 freezing the entity and related subprograms.
30241
302422005-03-17 Ed Schonberg <schonberg@adacore.com>
30243
30244 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
30245 entry formals.
30246
302472005-03-17 Thomas Quinot <quinot@adacore.com>
30248
30249 * exp_ch3.adb (Check_Attr): New subprogram.
30250 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
30251 into a new Check_Attr subprogram, in order to provide a more
30252 explanatory error message (including the name of the missing attribute).
30253 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
30254 subprogram determines whether a default implementation exists for a
30255 given stream attribute.
30256 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
30257 Determine whether to generate a default implementation for each stream
30258 attribute separately, as this depends on the specific attribute.
30259
30260 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
30261 limited extension where a stream attribute is missing for a limited
30262 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
30263 generate a bogus reference to the missing attribute to prevent
30264 cascaded errors. Instead, generate a null statement.
30265
30266 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
30267 available for a limited type if it has been specified for an ancestor
30268 of the type.
30269
302702005-03-17 Ed Schonberg <schonberg@adacore.com>
30271
30272 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
30273 entity is an operator.
30274
302752005-03-17 Thomas Quinot <quinot@adacore.com>
30276
30277 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30278 spec, to make this predicate available to other units.
30279
30280 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
30281 reimplementing it.
30282
30283 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
30284 when no distribution runtime library is available.
30285
30286 * sem_res.adb, sem_dist.adb: Disable expansion of remote
30287 access-to-subprogram types when no distribution runtime library is
30288 available.
30289 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
30290 predicate available to other units.
30291
30292 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30293 spec, to make this predicate available to other units.
30294
302952005-03-17 Vincent Celier <celier@adacore.com>
30296
30297 * make.adb (Insert_Project_Sources): Make sure the Q is always
30298 initialized.
30299
30300 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
30301 the default for the tree, not the global default naming.
30302
30303 * prj-proc.adb (Recursive_Process): No need to put the default naming
30304 in the project data, it's already there.
30305
303062005-03-17 Doug Rupp <rupp@adacore.com>
30307
30308 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
30309
6f7f72f9
EB
30310 * 5xcrtl.ads: Renamed to...
30311 * s-crtl-vms64.ads: ...this new file
3a0c4f5a
AC
30312
303132005-03-17 Robert Dewar <dewar@adacore.com>
30314
30315 PR ada/19519
3a0c4f5a
AC
30316 * namet.adb (Copy_One_Character): Set proper wide character encoding
30317 for upper half character if we have upper half encoding.
30318
303192005-03-17 Robert Dewar <dewar@adacore.com>
30320
30321 * par.adb (Par): Improved msg for attempt to recompile predefined unit
30322
303232005-03-17 Thomas Quinot <quinot@adacore.com>
30324
30325 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
30326 tagged limited type, the TSS is a newly built renaming declaration:
30327 insert it using Set_TSS, not Copy_TSS.
30328
303292005-03-17 Javier Miranda <miranda@adacore.com>
30330
30331 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
30332 Try_Object_Operation): Analyze the object that is accessible
30333 through the prefix of the subprogram call before we apply
30334 the transformation of the object-operation notation.
30335
303362005-03-17 Jose Ruiz <ruiz@adacore.com>
30337
30338 * s-taprob.adb (Initialize_Protection): Initialize the protected
30339 object's owner to Null_Task.
30340 (Lock): If pragma Detect_Blocking is in effect and the caller of this
30341 procedure is already the protected object's owner then Program_Error
30342 is raised. In addition the protected object's owner is updated.
30343 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
30344 of this procedure is already the protected object's owner then
30345 Program_Error is raised.
30346 In addition the protected object's owner is updated.
30347 (Unlock): Remove the ownership of the protected object.
30348
30349 * s-taprob.ads (Protection): Add the field Owner, used to store the
30350 protected object's owner.
30351 This component is needed for detecting one type of potentially blocking
30352 operations (external calls on a protected subprogram with the same
30353 target object as that of the protected action). Document the rest of
30354 the components.
30355
30356 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
30357 Initialize the protected object's owner to Null_Task.
30358 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
30359 caller of this procedure is already the protected object's owner then
30360 Program_Error is raised.
30361 Do not raise Program_Error when this procedure is called from a
30362 protected action.
30363 (Unlock_Entries): Remove the ownership of the protected object.
30364 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
30365 of this procedure is already the protected object's owner then
30366 Program_Error is raised.
30367 Do not raise Program_Error when this procedure is called from
30368 a protected action.
30369
30370 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
30371 used to store the protected object's owner.
30372
30373 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
30374 effect and this procedure (a potentially blocking operation) is called
30375 from whithin a protected action, Program_Error is raised.
30376 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
30377 and this procedure (a potentially blocking operation) is called from
30378 whithin a protected action, Program_Error is raised.
30379
303802005-03-17 Vincent Celier <celier@adacore.com>
30381 Nicolas Setton <setton@adacore.com>
30382
30383 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
30384 switch, not supported by the linker on Darwin. Add '_' before
30385 <library>init, as this character is added unconditionally by the
30386 compiler.
30387 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
30388 correct one ".dylib". This fixes detection of the archive files when
30389 building library projects.
30390
303912005-03-17 Vincent Celier <celier@adacore.com>
30392
30393 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
30394 -gnat83, -gnat95 and -gnat05.
30395
303962005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
30397
30398 * gnat_ugn.texi: Document gnatmem restriction
30399
304002005-03-17 Thomas Quinot <quinot@adacore.com>
30401
30402 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
30403 cleanup
30404
304052005-03-17 Robert Dewar <dewar@adacore.com>
30406
30407 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
30408 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
30409 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
30410
30411 * casing.adb: Comment improvements
30412
304132005-03-17 Pascal Obry <obry@adacore.com>
30414
30415 * g-expect.adb: Minor reformatting.
30416
a1286ef5
ZW
304172005-03-15 Zack Weinberg <zack@codesourcery.com>
30418
30419 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
30420 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
30421 to dependencies.
30422
2532808d
VC
304232005-03-15 Vincent Celier <celier@adacore.com>
30424
a1286ef5
ZW
30425 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
30426 Add new parameter In_Tree to specify the project tree: needed
30427 by the project manager. Adapt to changes in project manager
30428 using new parameter In_Tree.
2532808d 30429
e2d6b9b9
JJ
304302005-03-15 Jakub Jelinek <jakub@redhat.com>
30431
30432 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
30433 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
30434 ada/bldtools to avoid make -jN failures.
30435
813edff1
EB
304362005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30437
30438 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
30439 to NULL_TREE on entry.
30440
4f51c6e7
AC
304412005-03-15 Robert Dewar <dewar@adacore.com>
30442
30443 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
30444 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
30445 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
30446 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
30447 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
30448 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
30449 system-interix.ads, system-solaris-sparc.ads,
30450 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
30451 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
30452 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
30453 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
30454 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
30455 Compiler_System_Version to be False.
30456
30457 * opt.ads: Add new flag Opt.Address_Is_Private
30458
30459 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
30460 Add new parameter Compiler_System_Version to avoid checking for
30461 completeness of parameters when compiler is compiling itself.
30462 Allows old versions of GNAT to be compiled with new compiler.
30463
304642005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30465
30466 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
30467 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
30468 calling thread.
30469 (Stack_Base_Available): New flag.
30470 (Get_Page_Size): New overloaded functions imported from C.
30471 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
30472 PROT_ON, PROT_OFF): New constants.
30473 (mprotect): New function imported from C.
30474 (pthread_teb_t): New record type.
30475
30476 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
30477 (Create_Task): Account for the Yellow Zone and the guard page.
30478
304792005-03-15 Vincent Celier <celier@adacore.com>
30480
30481 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30482 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30483 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30484 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
30485 Library_File_Name_For): Add new parameter In_Tree
30486 to specify the project tree: needed by the project manager.
30487 Adapt to changes in project manager using new parameter In_Tree.
30488 Remove local imports, use functions in System.CRTL.
30489
30490 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
30491 to use the project manager.
30492
30493 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
30494 In_Tree to designate the project tree. Adapt to changes in the project
30495 manager, using In_Tree.
30496
30497 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
30498 Copy_Interface_Sources): Add new parameter In_Tree to specify the
30499 project tree: needed by the project manager.
30500 (Build_Library): Check that Arg'Length >= 6 before checking if it
30501 contains "--RTS=...".
30502
30503 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
30504 Library_File_Name_For): Add new parameter In_Tree to specify the
30505 project tree: needed by the project manager.
30506
30507 * prj.ads, prj.adb: Major modifications to allow several project trees
30508 in memory at the same time.
30509 Change tables to dynamic tables and hash tables to dynamic hash
30510 tables. Move tables and hash tables from Prj.Com (in the visible part)
30511 and Prj.Env (in the private part). Move some constants from the visible
30512 part to the private part. Make other constants deferred.
30513 (Project_Empty): Make it a variable, not a function
30514 (Empty_Project): Add parameter Tree. Returns the data with the default
30515 naming data of the project tree Tree.
30516 (Initialize): After updating Std_Naming_Data, copy its value to the
30517 component Naming of Project Empty.
30518 (Register_Default_Naming_Scheme): Use and update the default naming
30519 component of the project tree, instead of the global variable
30520 Std_Naming_Data.
30521 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
30522 Tree is not defaulted, return the default naming data of the Tree.
30523 (Initial_Buffer_Size): Constant moved from private part
30524 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
30525 variables initialized in procedure Initialize.
30526 (Add_To_Buffer): Add two in out parameters to replace global variables
30527 Buffer and Buffer_Last.
30528 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
30529 functions.
30530 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
30531 hash tables.
30532 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30533 for the project tree.
30534 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
30535 constant at the beginning of the package spec, so that they cane be used
30536 in subprograms before their full declarations.
30537 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
30538 (Empty_Project): Add parameter of type Project_Node_Ref
30539 (Private_Project_Tree_Data): Add component Default_Naming of type
30540 Naming_Data.
30541 (Buffer, Buffer_Last): remove global variables
30542 (Add_To_Buffer): Add two in out parameters to replace global variables
30543 Buffer and Buffer_Last.
30544 (Current_Packages_To_Check): Remove global variable
30545 (Empty_Name): Move to private part
30546 (No-Symbols): Make it a constant
30547 (Private_Project_Tree_Data): New type for the private part of the
30548 project tree data.
30549 (Project_Tree_Data): New type for the data of a project tree
30550 (Project_Tree_Ref): New type to designate a project tree
30551 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30552 for the project tree.
30553
30554 * prj-attr.ads: Add with Table; needed, as package Prj no longer
30555 imports package Table.
30556
30557 * prj-com.adb: Remove empty, no longer needed body
30558
30559 * prj-com.ads: Move most of the content of this package to package Prj.
30560
30561 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
30562 designate the project node tree and Packages_To_Check to replace
30563 global variable Current_Packages_To_Check.
30564 Add new parameters In_Tree and Packages_To_Check to local subprograms,
30565 when needed. Adapt to changes in project manager with project node tree
30566 In_Tree.
30567
30568 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
30569 project tree to most subprograms. Move tables and hash tables to
30570 private part of package Prj.
30571 Adapt to changes in project manager using project tree In_Tree.
30572
30573 * prj-makr.adb (Tree): New constant to designate the project node tree
30574 Adapt to change in project manager using project node tree Tree
30575
30576 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
30577 display the Library_Src_Dir and the Library_Dir.
30578 Add new parameter In_Tree to designate the project node tree to most
30579 subprograms. Adapt to changes in the project manager, using project tree
30580 In_Tree.
30581 (Check_Naming_Scheme): Do not alter the casing on platforms where
30582 the casing of file names is not significant.
30583 (Check): Add new parameter In_Tree to designate the
30584
30585 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
30586 designate the project tree.
30587 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
30588
30589 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
30590 to replace those that were in the private part of package Prj.
30591 Add new parameter In__Tree to designate the project node tree to most
30592 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30593 (Post_Parse_Context_Clause): When specifying the project node of a with
30594 clause, indicate that it is a limited with only if there is "limited"
30595 in the with clause, not necessarily when In_Limited is True.
30596 (Parse): Add new parameter In_Tree to designate the project node tree
30597
30598 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
30599 designate the project node tree. Adapt to change in Prj.Tree with
30600 project node tree In_Tree.
30601
30602 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
30603 tree In_Tree in the call to function Empty_Process to give its initial
30604 value to the project data Processed_Data.
30605 Add new parameters In_Tree to designate the project tree and
30606 From_Project_Node_Tree to designate the project node tree to several
30607 subprograms. Adapt to change in project manager with project tree
30608 In_Tree and project node tree From_Project_Node_Tree.
30609
30610 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
30611 to replace those that were in the private part of package Prj.
30612 Add new parameter In_Tree to designate the project node tree to most
30613 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30614
30615 * prj-tree.ads, prj-tree.adb: Add new parameter of type
30616 Project_Node_Tree_Ref to most subprograms.
30617 Use this new parameter to store project nodes in the designated project
30618 node tree.
30619 (Project_Node_Tree_Ref): New type to designate a project node tree
30620 (Tree_Private_Part): Change table to dynamic table and hash tables to
30621 dynamic hash tables.
30622
30623 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
30624 the project tree to most subprograms. Adapt to changes in project
30625 manager using project tree In_Tree.
30626
30627 * makegpr.adb (Project_Tree): New constant needed to use project
30628 manager.
30629
306302005-03-15 Olivier Hainque <hainque@adacore.com>
30631
30632 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
30633 for sigactions with SA_SIGINFO set. Call
30634 __gnat_adjust_context_for_raise before raising, to perform the
30635 potentially required adjustments to the machine context for the GCC
30636 unwinder.
30637
30638 * raise.h (__gnat_adjust_context_for_raise): New prototype.
30639
30640 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
30641 Adjust PC by one in the provided machine context.
30642 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
30643 so that the handler is passed the context structure to adjust prior to
30644 the raise.
30645 (__gnat_error_handler) HPUX: Adjust the signature to match what an
30646 SA_SIGINFO sigaction should look like. Call
30647 __gnat_adjust_context_for_raise before actually raising.
30648 (__gnat_adjust_context_for_raise): Default noop to help PC
30649 adjustments before raise from signal handlers.
30650 (__gnat_error_handler): Indirectly call a predicate function to
30651 determine if a condition should be resignaled or not.
30652 (__gnat_set_resignal_predicate): User interface to modify the predicate.
30653 (__gnat_default_resignal_p): Default GNAT predicate.
30654
306552005-03-15 Doug Rupp <rupp@adacore.com>
30656
30657 * adaint.c: Prefix #include of VMS system header files with vms/
30658 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
30659 Do not define a dummy function "convert_addresses" under Darwin,
30660 not needed.
30661
30662 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
30663 with vms/
30664
306652005-03-15 Nicolas Setton <setton@adacore.com>
30666
30667 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
30668 PPC/AIX.
30669
306702005-03-15 Robert Dewar <dewar@adacore.com>
30671
30672 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
30673 AI-386.
30674
30675 * a-retide.ads: Minor comment changes
30676
306772005-03-15 Robert Dewar <dewar@adacore.com>
30678
30679 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
30680 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
30681 Realloc_For_Chunk to private part of package.
30682 New subprograms for AI-301
30683
30684 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
30685 Get_Line procedure.
30686 Avoid unnecessary use of Get/Set_Wide_String
30687
306882005-03-15 Robert Dewar <dewar@adacore.com>
30689
30690 PR ada/13470
a1286ef5 30691 * a-stunau.ads, a-stunau.adb:
4f51c6e7
AC
30692 Change interface to allow efficient (and correct) implementation
30693 The previous changes to allow extra space in unbounded strings had
30694 left this interface a bit broken.
30695
30696 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
30697
30698 * g-spipat.ads, g-spipat.adb: New interface for Get_String
30699 Minor reformatting (function specs)
30700
30701 * g-spitbo.adb: New interface for Get_String
30702
30703 * g-spitbo.ads: Minor reformatting
30704
30705 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
30706
30707 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
30708
307092005-03-15 Javier Miranda <miranda@adacore.com>
30710 Robert Dewar <dewar@adacore.com>
30711 Thomas Quinot <quinot@adacore.com>
30712 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30713
30714 * atree.ads, atree.adb: Add support for Elist24 field
30715
30716 * atree.h: Fix wrong definition of Field27
30717 Add support for Elist16 field
30718 Add support for Elist24 field
30719
30720 * einfo.ads, einfo.adb (Abstract_Interfaces,
30721 Set_Abstract_Interfaces): New subprograms.
30722 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
30723 subprograms.
30724 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
30725 entities rather than a single node.
30726 (Is_Interface, Set_Is_Interface): New subprogram
30727 (First_Tag_Component): New syntesized attribute
30728 (Next_Tag_Component): New synthesized attribute
30729 (Write_Entity_Flags): Upgraded to write Is_Interface
30730 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
30731 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
30732 (Task_Body_Procedure): New subprogram to read this attribute.
30733 (Set_Task_Body_Procedure): New subprogram to set this attribute.
30734 (Has_Controlled_Component): Now applies to all entities.
30735 This is only a documentation change, since it always worked to apply
30736 this to other than composite types (yielding false), but now this is
30737 official.
30738 Update documentation on Must_Be_Byte_Aligned for new spec
30739
30740 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
30741 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
30742 uses of the Access_Disp_Table attribute to reference the first dispatch
30743 table associated with a tagged type. As
30744 part of the implementation of abstract interface types,
30745 Access_Disp_Table has been redefined to contain a list of dispatch
30746 tables (rather than a single dispatch table).
30747 Similarly, upgrade all the references to Tag_Component by the
30748 new attribute First_Tag_Component.
30749 (Find_Inherited_TSS): Moved to exp_tss.
30750 Clean up test in Expand_N_Object_Declaration for cases
30751 where we need to do a separate assignment of the initial value.
30752 (Expand_N_Object_Declaration): If the expression in the
30753 declaration of a tagged type is an aggregate, no need to generate an
30754 additional tag assignment.
30755 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
30756 is to be deleted.
30757 Bit packed array ops are only called if operands are known to be
30758 aligned.
30759 (Component_Equality): When returning an N_Raise_Program_Error statement,
30760 ensure that its Etype is set to Empty to avoid confusing GIGI (which
30761 expects that only expressions have a bona fide type).
30762 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
30763 determine the amount of data to be copied.
30764
30765 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
30766 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
30767 INTERFACE_TYPE_DEFINITION ::=
30768 [limited | task | protected | synchronized] interface
a1286ef5 30769 [AND interface_list]
4f51c6e7
AC
30770
30771 * par-ch3.adb (P_Type_Declaration): Modified to give support to
30772 interfaces.
30773 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
30774 interfaces.
30775 (P_Interface_Type_Definition): New subprogram that parses the new
30776 syntax rule of Ada 2005 interfaces
30777 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
30778 messages by the correct RENAMES (quotes removed).
30779
30780 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
30781 attribute First_Tag_Component.
30782
30783 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
30784 (Interface_List, Set_Interface_List): New subprograms.
30785 (Interface_Present, Set_Interface_Present): New subprograms.
30786 (Limited_Present, Set_Limited_Present): Available also in derived
30787 type definition nodes.
30788 (Protected_Present, Set_Protected_Present): Available also in
30789 record type definition and
30790 derived type definition nodes.
30791 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
30792 (Task_Present, Set_Task_Present): New subprogram.
30793 (Task_Body_Procedure): Removed.
30794 (Set_Task_Body_Procedure): Removed.
30795 These subprogram have been removed because the attribute
30796 Task_Body_Procedure has been moved to the corresponding task type
30797 or task subtype entity to leave a field free to store the list
30798 of interfaces implemented by a task (for AI-345)
30799 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
30800 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
30801 expression flag Do_Range_Check
30802 (Exception_Junk): Change to Flag7 to accomodate above change
30803 (Box_Present, Default_Name, Specification, Set_Box_Present,
30804 Set_Default_Name, Set_Specification): Expand the expression
30805 "X in N_Formal_Subprogram_Declaration" into the corresponding
30806 two comparisons. Required to use the csinfo tool.
30807
30808 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
30809 "with string" given.
30810
a1286ef5
ZW
30811 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
30812 expression given.
4f51c6e7
AC
30813
30814 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
30815 in 2005 mode
30816
30817 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
30818 attribute Task_Body_Procedure rather than the old semantic field that
30819 was available in the task_type_declaration node.
30820
30821 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
30822 interface type definitions.
30823 (P_Formal_Derived_Type_Definition): Modified to handle the list of
30824 interfaces.
30825
30826 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
30827 task type declaration.
30828 (P_Protected): Modified to handle the list of interfaces in a
30829 protected type declaration.
30830
308312005-03-15 Doug Rupp <rupp@adacore.com>
30832 Vincent Celier <celier@adacore.com>
30833
30834 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
30835 (Gen_Output_File_C): Likewise.
30836 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
30837
308382005-03-15 Thomas Quinot <quinot@adacore.com>
30839
30840 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
30841 is an N_Raise_Constraint_Error node, create a new copy of it without
30842 going through a call to Duplicate_Subexpr.
30843
308442005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30845 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30846 Nicolas Setton <setton@adacore.com>
30847 Ed Schonberg <schonberg@adacore.com>
30848
30849 PR ada/19900
30850 PR ada/19408
30851 PR ada/19140
30852 PR ada/20255
4f51c6e7
AC
30853 * decl.c (gnat_to_gnu_field): Reject aliased components with a
30854 representation clause that prescribes a size not equal to the rounded
30855 size of their types.
30856 (gnat_to_gnu_entity, case E_Component): Always look at
30857 Original_Record_Component if Present and not the entity.
30858 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
30859 of tagged extension types by not making field for components that are
30860 inside the parent.
30861 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
30862 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
30863 expression to the type of the object when the object is constant.
30864 Reverse defer_debug_incomplete_list before traversing it, so that trees
30865 are processed in the order at which they were added to the list. This
30866 order is important when using the stabs debug format.
30867 If we are deferring the output of debug information, also defer this
30868 output for a function return type.
30869 When adding fields to a record, prevent emitting debug information
30870 for incomplete records, emit the information only when the record is
30871 complete.
30872 (components_to_record): New parameter defer_debug.
30873 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
30874 (gnat_to_gnu_field_decl): New function.
30875 (substitution_list, annotate_rep): Call it.
30876 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
30877 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
30878 No longer update discriminants to not be a COMPONENT_REF.
30879 (copy_alias_set): Strip padding from input type; also handle
30880 unconstrained arrays properly.
30881
30882 * gigi.h (write_record_type_debug_info): New function.
30883 Convert to use ANSI-style prototypes. Remove unused
30884 declarations for emit_stack_check, elab_all_gnat and
30885 set_second_error_entity.
30886 (gnat_to_gnu_field_decl): New decl.
30887
30888 * utils.c (write_record_type_debug_info): New function.
30889 (finish_record_type): Delegate generation of debug information to
30890 write_record_type_debug_info.
30891 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
30892 (update_pointer_to): Fix pasto.
30893 (convert) <UNION_TYPE>: Accept slight type variations when
30894 converting to an unchecked union type.
30895
30896 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
30897 replace the N_Freeze_Entity with a null statement.
30898
30899 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
30900 within a constrained subcomponent of an enclosing record, place the
30901 freeze nodes in the scope stack entry for the enclosing record.
30902 (Undelay_Type): New Subprogram.
30903 (Set_Small_Size): Pass T, the type to modify; all callers changed.
30904 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
30905 within records; allow them to have freeze nodes if their base types
30906 aren't frozen yet.
30907
017205f5
EB
30908 * exp_util.adb (Remove_Side_Effects): Properly test for
30909 Expansion_Delayed and handle case when it's inside an
30910 N_Qualified_Expression.
30911
4f51c6e7
AC
30912 * sem_ch3.adb (Derived_Type_Declaration): New predicate
30913 Comes_From_Generic, to recognize accurately that the parent type in a
30914 derived type declaration can be traced back to a formal type, because
30915 it is one or is derived from one, or because its completion is derived
30916 from one.
30917 (Constrain_Component_Type): If component comes from source and has no
30918 explicit constraint, no need to constrain in in a subtype of the
30919 enclosing record.
30920 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
30921 Minor change to propagate Is_Ada_2005 flag
30922
30923 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
30924 Expansion_Delayed is False.
30925 (assoc_to_constructor): Ignore fields that have a
30926 Corresponding_Discriminant.
30927 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
30928 function returns "by target", dereference the target pointer using the
30929 type of the actual return value.
30930 <all>: Be prepared for a null gnu_result.
30931 (processed_inline_subprograms): Check flag_really_no_inline
30932 instead of flag_no_inline.
30933 (set_second_error_entity): Remove unused function.
30934 (gnat_to_gnu, case N_Selected_Component): Call
30935 gnat_to_gnu_field_decl.
30936 (assoc_to_constructor): Likewise.
30937
309382005-03-15 Robert Dewar <dewar@adacore.com>
30939 Ed Schonberg <schonberg@adacore.com>
30940 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30941
4f51c6e7
AC
30942 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
30943 Must_Be_Byte_Aligned for cases where we do not need to use a
30944 System.Pack_nn unit.
30945
30946 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
30947 as procedures.
30948 Needed now that we do some processing for IN parameters as well. This
30949 may well fix some unrelated errors.
30950 (Expand_Call): Handle case of unaligned objects (in particular those
30951 that come from packed arrays).
30952 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
30953 renamed entity is an inherited operation, re-expand the call using the
30954 original operation, which is the one to call.
30955 Detect attempt to inline parameterless recursive subprogram.
30956 (Represented_As_Scalar): Fix to work properly with private types
30957 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
30958 accurate estimate. Yields True in far fewer cases than before,
30959 improving the quality of code that depends on this test.
4f51c6e7
AC
30960
30961 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
30962 over both visible and private declarations to remove them from tree,
30963 and mark subprograms declared in package as eliminated, to prevent
30964 spurious use in subsequent compilation of generic units in the context.
30965
30966 * exp_util.ads: Minor cleanup in variable names
30967
30968 * sem_eval.ads, sem_eval.adb: Minor reformatting
30969 (Compile_Time_Known_Bounds): New function
30970
309712005-03-15 Ed Schonberg <schonberg@adacore.com>
30972
30973 * exp_ch7.adb (Convert_View): Use base types of underlying types when
30974 determining whether an unchecked conversion is needed for the argument
30975 of an initialization call.
30976
309772005-03-15 Ed Schonberg <schonberg@adacore.com>
30978
30979 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
30980 that appears in the instantiation rather than the internal subtype
30981 generated in the wrapper package, to avoid anomalies in gigi when the
30982 target is derived from a private type whose full view is an access type.
30983
309842005-03-15 Robert Dewar <dewar@adacore.com>
30985
30986 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
30987 not needed.
30988 Add documentation to replace the use of this flag
30989 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
30990 the x86_64.
30991
309922005-03-15 Thomas Quinot <quinot@adacore.com>
30993
30994 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
30995 here from exp_attr so it can be shared between exp_attr and exp_dist.
30996 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
30997 all TSS names, not a subset thereof, and the previous name introduced
30998 an unnecessarily confusion that a distinction might exist between
30999 "OK" TSS names and some "not OK" TSS names.
31000
310012005-03-15 Doug Rupp <rupp@adacore.com>
31002
31003 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
31004 Command_Name.
31005
310062005-03-15 Pascal Obry <obry@adacore.com>
31007 Eric Botcazou <ebotcazou@adacore.com>
31008
31009 PR ada/20226
31010 PR ada/20344
4f51c6e7
AC
31011 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
31012 when IN_RTS. This is to work around a bootstrap path problem.
31013
31014 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
31015 table and pass it to __gnat_install_SEH_handler().
31016 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
31017
31018 * lang.opt: Fix specification of -fRTS=.
31019
310202005-03-15 Doug Rupp <rupp@adacore.com>
31021 Bernard Banner <banner@adacore.com>
31022 Vincent Celier <celier@adacore.com>
31023 Arnaud Charlet <charlet@adacore.com>
31024
31025 PR ada/6852
31026 This change works fine when gnatlib is built from the gcc directory,
31027 but does not work when using the libada Makefile, since GCC_FOR_TARGET
31028 is not passed to ada/Makefile.in, so more work is needed by a
31029 Makefile/configure expert.
31030
31031 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
31032 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
31033 Setup gnatlink switch -M for x86_64 linux, as it is already setup
31034 for Linux x86.
31035 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
31036 Run ranlib on libgccprefix.a
31037 Define PREFIX_OBJS for Darwin, to build libgccprefix.
31038 (ADA_INCLUDE_SRCS): Split Ada packages.
31039
310402005-03-15 Robert Dewar <dewar@adacore.com>
31041
31042 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
31043
31044 * impunit.adb: Add GNAT.UTF_32
31045
31046 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
31047
31048 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
31049 now uses GNAT.UTF_32).
31050
31051 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
31052 capabilities for categorizing characters using Unicode categories
31053
310542005-03-15 Ed Schonberg <schonberg@adacore.com>
31055
31056 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
31057 instantiation that has been rewritten as a package body, retrieve spec
31058 to generate proper name for implicit_with_clause.
31059 (Install_Parents): Recognize a parent that is an instantiation but has
31060 been rewritten as a package declaration during analysis.
31061
310622005-03-15 Javier Miranda <miranda@adacore.com>
31063 Ed Schonberg <schonberg@adacore.com>
31064
31065 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
31066 parameter reported some error we immediately return. This improves the
31067 behaviour of the frontend in case of errors.
31068 (Install_Parent, Remove_Parent): Introduce new flag
31069 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
31070 ancestor of a generic child unit, when the child is being instantiated.
31071 (Inline_Instance_Body): If we are compiling the private
31072 part or the body of a child unit, restore the proper visibility of the
31073 parents after compiling the instance body.
31074
310752005-03-15 Ed Schonberg <schonberg@adacore.com>
31076 Javier Miranda <miranda@adacore.com>
31077
31078 PR ada/15608
31079 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
31080 of a private type, in which case it is underlying_type that denotes
31081 the proper task. Also modified to use the new entity attribute
31082 that is directly available in the task type and task subtype entities
31083 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
31084 arrays when other dimensions than the first are constrained by
31085 discriminants of an enclosing record.
31086 (Insert_Explicit_Dereference): If the prefix is an indexed component or
31087 a combination of indexed and selected components, find ultimate entity
31088 and generate the appropriate reference for it, to suppress spurious
31089 warnings.
31090 (Note_Possible_Modification): If an entity name has no entity, return.
31091 (Is_Variable): A function call never denotes a variable.
31092 (Requires_Transient_Scope): For record types, recurse only on
31093 components, not on internal subtypes that may have been generated for
31094 constrained components.
31095
310962005-03-15 Ed Schonberg <schonberg@adacore.com>
31097
31098 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
31099 Eliminated as candidates for resolution. Both efficient, and avoids
31100 anomalies with operators declared in deleted code.
31101 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
31102 expansion is disabled (as when compiling a generic) to prevent spurious
31103 warnings on prefixes of selected components.
31104
311052005-03-15 Ed Schonberg <schonberg@adacore.com>
31106
31107 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
31108 attached to a list before checking whether it appears in the private
31109 declarations of the current package.
31110 (Make_Inequality_Operator): Insert declaration in proper declarative
31111 list rather than just setting the Parent field, so that
31112 Is_Private_Declaration can handle it properly.
31113
311142005-03-15 Ed Schonberg <schonberg@adacore.com>
31115
31116 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
31117 a renaming a body, check that the renamed subprogram in not intrinsic.
31118 (Find_Direct_Name): If several use_visible entities hide
31119 each other, and the context is a predefined file compiled through
31120 rtsfind, keep only the entity that comes from a predefined file.
31121
311222005-03-15 Geert Bosch <bosch@adacore.com>
31123
31124 * s-fatgen.adb (Valid): Extend special exceptions to account for long
31125 long float padding to also cover AMD64 and IA64.
31126
311272005-03-15 Gary Dismukes <dismukes@adacore.com>
31128
31129 * s-imgwch.adb: Add with and use of Interfaces.
31130 (Img_Wide_Character): Change type of Val to Unsigned_16.
31131 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
31132
311332005-03-15 Matthew Gingell <gingell@adacore.com>
31134
31135 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
31136
311372005-03-15 Robert Dewar <dewar@adacore.com>
31138
31139 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
31140
31141 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
31142
31143 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
31144
311452005-03-15 Robert Dewar <dewar@adacore.com>
31146
31147 * s-bitops.adb, s-bitops.ads,
31148 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
31149 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
31150 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
31151 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
31152 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
31153 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
31154 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
31155 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
31156 reformatting.
31157
311582005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31159
31160 * utils2.c (build_binary_op): Fix typo.
31161
311622005-03-15 Doug Rupp <rupp@adacore.com>
31163
31164 * s-crtl.ads (popen,pclose): New imports.
31165
311662005-03-15 Cyrille Comar <comar@adacore.com>
31167
31168 * comperr.adb (Compiler_Abort): remove references to obsolete
31169 procedures in the bug boxes for various GNAT builds.
31170
311712005-03-15 Vincent Celier <celier@adacore.com>
31172
31173 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
31174
311752005-03-15 Geert Bosch <bosch@adacore.com>
31176 Arnaud Charlet <charlet@adacore.com>
31177 Robert Dewar <dewar@adacore.com>
31178 Cyrille Comar <comar@adacore.com>
31179 Sergey Rybin <rybin@adacore.com>
31180
31181 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
31182 too specific and long-winded to be appropriate for the GNAT User's
31183 Guide.
31184 Warn about use of GCC switches not documented in the GNAT User's Guide,
31185 as these may cause generated code to not conform to Ada semantics.
31186 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
31187 Add documentation for -gnat95 and -gnat05 switches
31188 Remove paragraph documenting obsolete way to refer to third party
31189 libraries.
31190 Add a few references to Ada_05 that were missing.
31191 Update documentation on -gnatZ/-gnatL.
31192 Document limitation when using -m64 under Solaris.
31193 Change the "Name Casing" subsection of the pretty-printer section
31194 according to the changes in the dictionary processing.
31195
31196 * gnat_rm.texi: Document the Ada_05 pragma.
31197 Section on record representation clauses describes the new more
31198 relaxed rules about placement of large packed bit array components.
31199 Add documentation of GNAT.UTF_32
31200
9e94c78f 312012005-03-12 Daniel Berlin <dberlin@dberlin.org>
c75ab022
DB
31202
31203 * misc.c (gnat_post_options): Turn off structural
31204 aliasing for now.
4f51c6e7 31205
9e94c78f 312062005-03-08 Laurent Guerby <laurent@guerby.net>
391bdf45
LG
31207
31208 * system-linux-sparc.ads: Fix typo in previous commit.
31209
9e94c78f
EB
312102005-03-07 James A. Morrison <phython@gcc.gnu.org>
31211 Laurent Guerby <laurent@guerby.net>
fe8a06f2 31212
a1286ef5
ZW
31213 PR ada/20035
31214 * system-linux-sparc.ads: New.
31215 * Makefile.in: Add sparc linux entry.
fe8a06f2 31216
a1286ef5 312172005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
9811fd17 31218
a1286ef5 31219 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
9811fd17
DS
31220 parameters as unused.
31221
5395b47b
NN
312222005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
31223 Partial merge from libada-gnattools-branch:
31224
31225 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5
ZW
31226 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
31227 into code in gnattools/Makefile.in. Remove direct dependencies on
31228 stamp-tools by tools clauses.
5395b47b 31229 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5 31230 * config-lang.in: Add gnattools to $lang_dirs.
5395b47b 31231
4fa0972f
AP
312322005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
31233
31234 PR ada/19942
2532808d 31235 * utils.c (gnat_type_for_mode): Return null instead of ICE because
a1286ef5 31236 we asked for an unknown mode.
4fa0972f 31237
bd0b34a8
RH
312382005-02-12 Richard Henderson <rth@redhat.com>
31239
31240 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
31241 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
31242
0ebbef54
AJ
312432005-02-10 Andreas Jaeger <aj@suse.de>
31244
31245 * init.c (__gnat_initialize): Mark parameter as unused.
31246
fc5a191d
AC
312472005-02-09 Doug Rupp <rupp@adacore.com>
31248
31249 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
31250 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
31251
312522005-02-09 Doug Rupp <rupp@adacore.com>
31253
31254 * gnatchop.adb (dup, dup2),
31255 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
31256
31257 * gnatlbr.adb (mkdir),
31258 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
31259
31260 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
31261
312622005-02-09 Doug Rupp <rupp@adacore.com>
31263
31264 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
31265
312662005-02-09 Robert Dewar <dewar@adacore.com>
31267 Thomas Quinot <quinot@adacore.com>
31268 Javier Miranda <miranda@adacore.com>
31269 Pascal Obry <obry@adacore.com>
31270 Ed Schonberg <schonberg@adacore.com>
31271 Doug Rupp <rupp@adacore.com>
31272 Gary Dismukes <dismukes@adacore.com>
31273 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31274
31275 * g-zstspl.ads: New file.
31276
31277 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
31278
31279 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
31280 Ada 95 mode
31281 Add definition of Wide_Wide_Space for AI-285
31282
31283 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
31284 interface (to support Ada 95 and Ada 2005 units).
31285 Add Unbounded_IO files
31286 Add entries for Wide_Wide packages for AI-285
31287 Add list of containers packages to Ada 2005 unit list
31288
31289 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
31290 support new Unbounded_IO package cleanly.
31291
31292 * g-utf_32.ads, g-utf_32.adb: New files.
31293
31294 * Makefile.rtl: Add entry for g-utf_32
31295 Add new files for Unbounded_IO
31296 Adjust make file for new AI-285 wide wide packages
31297 Add AI-302 containers to the run time.
31298
31299 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
31300 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
31301 subprograms for AI-301.
31302
31303 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
31304
31305 * a-stunau.ads: Minor comment correction
31306
31307 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
31308 etc.
31309 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
31310 (Check_RPC): Update to match changes in expanded code.
31311 Clean up unused entity.
31312
31313 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
31314 was not taken into account.
31315 This includes proper initialization with Normalize_Scalars.
31316 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
31317 normalize scalars cases (particularly the latter) to do a better job
31318 of finding invalid representations.
31319
31320 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
31321
31322 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
31323 used
31324
31325 * exp_dist.adb: Add support for wide wide character type
31326 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
31327 private part, generate stub bodies at the end of the private part,
31328 not the visible part.
31329 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
31330 PolyORB support.
31331 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
31332 generic wrapper to execute final processing after completing the
31333 expansion of the RPC receiver for an RACW.
31334
31335 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
31336 packages and attributes.
31337 (Preset_Names): Addition of the new reserved words of Ada 2005,
31338 that is interface, overriding and synchronized.
31339 (Get_Pragma_Id): Give support to the use of the new reserved word
31340 "interface" as a pragma name.
31341 (Is_Pragma_Name): Give support to the use of the new reserved word
31342 "interface" as a pragma name.
31343 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
31344 attribute implementation.
31345
31346 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
31347 checks to entities that are output parameters of Asm operations.
31348 Handle the Stream_Size attribute.
31349 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
31350
31351 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
31352
31353 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
31354 for second parameter being 0.0.
31355 Add support for wide wide character type.
31356 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
31357
31358 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
31359 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
31360 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
31361 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
31362 for wide wide character cases.
31363
31364 * cstand.adb: Create entities for Wide_Wide_Character and
31365 Wide_Wide_String.
31366
31367 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
31368 accordance with AI-258.
31369 Add new declarations for 16/32 bit C character types (Part of AI285)
31370
31371 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
31372 (Obsolescent_Warning): New field
31373 (Rep_Clause): New local subprogram used to share code. Returns the rep
31374 clause for which the name is given in parameter.
31375 (Has_Stream_Size_Clause): New routine.
31376 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
31377 (Address_Clause): Implementation is now using Rep_Clause.
31378 (Alignment_Clause): Idem.
31379 (Size_Clause): Idem.
31380
31381 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
31382 entity in non-Ada 2005 mode and generate warning.
31383
31384 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
31385 (Prag): Code cleanup. Remove old gnat pragma "overriding"
31386
31387 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
31388 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
31389 on the named unit if the pragma is not in the current compilation unit,
31390 so that elaboration calls in the current unit can set up an elaboration
31391 dependency on the named unit, as needed.
31392 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
31393 subprogram as well as for subprograms declared within a package.
31394 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
31395 pragma overriding.
31396
31397 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
31398 to z) to avoid some instances of duplication for Wide_Wide packages.
31399
31400 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
31401 characters.
31402
31403 * scn.adb: Char_Literal_Value field is now a Uint
31404
31405 * scng.adb: Significant rewrite to handle new Ada 2005 features
31406 allowing wide and wide wide characters in program text, e.g. for
31407 identifiers, as described in AI-285.
31408 (Set_Reserved): New procedure, makes setting up keywords cleaner.
31409 (Initialize_Scanner): Register the new reserved words of Ada 2005.
31410 (Scan): Give support to the new reserved words.
31411
31412 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
31413 warning notifying that interface, overriding, and synchronized are
31414 new reserved words.
31415 (P_Pragma): Allow the use of the new reserved word "interface" as
31416 a pragma name.
31417
31418 * gnatls.adb, gnatbind.adb,
31419 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
31420 identifiers named "interface" to "SAL_Interface".
31421
31422 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
31423 (Structured Exception handling).
31424 (Gen_Main_C): Idem.
31425
a1286ef5 31426 * bindgen.adb:
fc5a191d
AC
31427 (Gen_Main_Ada): Set the default exit code if specified.
31428 (Gen_Main_C): Likewise.
31429 Part of *DC20-006.
31430 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
31431 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
31432
31433 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
31434 new -Xnnn switch.
31435
31436 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
31437 has a collision with the new Ada 2005 "interface" reserved word.
31438
31439 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
31440 generate a warning notifying that interface, overriding, and
31441 synchronized are new reserved words.
31442
31443 * scans.ads (Token_Type): Addition of the tokens corresponding to the
31444 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
31445 and Tok_Synchronized.
31446
31447 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
31448 "dispatching" rather than "primitive" operations, since dispatching
31449 calls are now allowed to abstract formal subprograms (which are not
31450 primitive).
31451 Char_Literal_Value field is now a Uint
31452 (Resolve_Slice): If the prefix is an access to an unconstrained array,
31453 compute the actual subtype of the designated object to impose the proper
31454 index constraints.
31455 (Resolve_Selected_Component): Do not insert an access check if the
31456 prefix is an access type: such a node is expanded into an explicit
31457 dereference, on which the access check is performed anyway. Removes
31458 expensive duplicate checks.
31459 (Resolve_Call): Use new flag Is_Obsolescent and field
31460 Obsolescent_Warning so that pragma Obsolescent works on library
31461 subprograms.
31462 Add support for wide wide character type
31463 (Resolve_Allocator): Replace the error message on wrong null-exclusion
31464 value by a warning message.
31465 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
31466 as fixed-point, and one of the operands is non-static and universal, it
31467 can only be an illegal exponentiation operation, in which case there is
31468 no real value to retrieve.
31469
31470 * exp_strm.adb: Add support for wide wide character type
31471 (Build_Elementary_Input_Call): Compute the size of the stream element by
31472 querying the rep chain to find the Stream_Attribute attribute value.
31473 (Build_Elementary_Write_Call): Ditto.
31474
31475 * sem_aggr.adb: Char_Literal_Value field is now a Uint
31476 Add support for wide wide character type
31477 Replace the error messages on wrong null-exclusion value by warnings
31478 as described in Ada 2005.
31479 (Resolve_Extension_Aggregate): Document the fact that the error
31480 message on class-wide expressions in extensions aggregates.
31481
31482 * sem_case.adb: Add support for wide wide character type
31483
31484 * sem_ch13.adb: Add support for wide wide character type
31485 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
31486
31487 * sem_ch3.adb: Add support for wide wide character type
31488 (Process_Subtype): If constraint is illegal for the type, set Ekind of
31489 now-useless Itype, to prevent cascaded errors on a compiler built
31490 without -gnatp.
31491
31492 * sem_ch8.adb: Add with and use of Sem_Disp.
31493 (Analyze_Subprogram_Renaming): Replace unclean uses of
31494 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
31495 of Corresponding_Spec to Empty).
31496 (Attribute_Renaming): Replace use of Corresponding_Spec with
31497 Corresponding_ Formal_Spec and simplify condition.
31498 (Use_One_Package): Check that scope of homonym of identifier is defined,
31499 before checking whether it is a wrapper package.
31500 Add support for wide wide character type
31501
31502 * sem_eval.adb: Add support for wide wide character type.
31503 (Eval_Arithmetic_Op): Check for compile time known signed integer
31504 overflow in the non-static case.
31505 (Subtypes_Statically_Match): A formal scalar type and its base type do
31506 not statically match.
31507
31508 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
31509 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
31510 subtype).
31511 (Unit_Declaration_Node): Ditto.
31512 (Is_Variable_Prefix): For the case of an indexed component whose prefix
31513 has a packed array type, the prefix has been rewritten into a type
31514 conversion. Determine variable-ness from the converted expression.
31515 Handle wide wide character cases.
31516
31517 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
31518
31519 * stringt.ads, stringt.adb: Handle full UTF-32 range.
31520 Remove ["0A"] from comment, since it can look like a line terminator.
31521 Currently we don't permit this, but this is under discussion by the
31522 ARG, and it is easy enough to use a different example.
31523
31524 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
31525 handling UTF-32 encoding for wide wide character.
31526 Implement new brackets coding ["hhhhhhhh"]
31527 Add UTF-8 encodings for full UTF-32 range
31528
31529 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
31530
31531 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
31532 bit range Add full UTF-32 support.
31533 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
31534 notify that constraint error will be raised at run-time
31535 because a null value is assigned to a null-excluding object.
31536 Remove some obsolete declarations and make Char_Code
31537 unsigned.
31538
31539 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
31540 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
31541 Rcheck subprograms.
31542
31543 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
31544 wrong null-exclusion value by a warning message.
31545 (Enable_Range_Check): Do range check if the prefix is an
31546 explicit dereference whose designated object is an unconstrained array.
31547 Current algorithm for removing duplicate checks is over-eager in this
31548 case.
31549
31550 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
31551 null-exclusion value by a warning message
31552
31553 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
31554 completely. Add support for Uint2 field
31555
31556 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
31557 exp_prag.adb: Char_Literal_Value field is now a Uint.
31558
31559 * exp_util.adb (Insert_Actions): Replace
31560 N_Formal_Subprogram_Declaration by
31561 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
31562 Char_Literal_Value field is now a Uint.
31563
31564 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
31565 defined for subprogram renaming declarations. When set, the field
31566 indicates the defining entity of a corresponding formal subprogram
31567 when the renaming corresponds to a formal subprogram association in an
31568 instantiation.
31569 (Set_Corresponding_Formal_Spec): New procedure to return
31570 Corresponding_Formal_Spec field.
31571 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
31572 (which is now a subtype).
31573 Char_Literal_Value field is now a Uint
31574
31575 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
31576 pointer to the base of the dispatch table.
31577 Minor changes to comments.
31578 (Controlling_Type): New function for determining the tagged type
31579 associated with a tagged primitive subprogram.
31580 (Expand_Dispatching_Call): Add support for a controlling actual that is
31581 directly a value of type Ada.Tag rather than a tagged object.
31582
31583 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
31584 describing the new layout.
31585 (Dispatch_Table): The expander computes the actual array size, allocates
31586 the Dispatch_Table record accordingly, and generates code that displaces
31587 the base of the record after the Typeinfo_Ptr component. The access to
31588 these components is done by means of local functions.
31589 (Offset_To_Top): New function.
31590 (Typeinfo_Ptr): New function.
31591 (Get_TSD): Modified to access the new position of the TSD.
31592 (Set_TSD): Modified to save the TSD in its new position.
31593
31594 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
31595 case of formal abstract subprograms. Add check and message for -gnat05.
31596 Update comments.
31597
31598 * sem_ch12.adb: Add with and use for Sem_Disp.
31599 (Analyze_Associations): Minor change from "=" to "in" for use of
31600 N_Formal_Subtype_Declaration (which is now a subtype).
31601 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
31602 N_Formal_Subtype_Declaration (which is now a subtype).
31603 (Analyze_Formal_Subprogram): Add handling for
31604 N_Formal_Abstract_Subprogram, marking the formal as abstract and
31605 dispatching, setting the controlling status of the formal parameters
31606 and result, and issuing an error if there is no controlling type for
31607 the formal subprogram.
31608 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
31609 which is an unclean use of that field, we set the new field
31610 Corresponding_Formal_Spec to make the formal subprogram available to
31611 processing in Analyze_Subprogram_Declaration.
31612 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
31613 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
31614 Constrained, so that it is is does not statically match its anonymous
31615 base type.
31616
31617 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
31618 abstract formal subprograms in error check for functions returning
31619 abstract types. Set scope of new designator for
31620 a parameterless subprogram, so that it is available when checking the
31621 body for nested subprograms, before full analysis of said body.
31622 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
31623 subprogram only if inner one comes from source.
31624 (Analyze_Function_Call): If the call is given in object notation, the
31625 analysis of the name rewrites the node and analyzes it with the proper
31626 argument list. After analyzing the name, if the call has been rewritten
31627 and the result type is set, no further analysis is needed.
31628 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
31629 mark in function specification, in a context where the formals are
31630 visible and hide outer homographs.
31631
31632 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
31633 as the tagged type for the cases of abstract formal subprograms and
31634 renamings of those. Clean up spec comments.
31635 (Check_Dispatching_Context): Add error message to indicate "abstract
31636 procedure", covering the case of a call to a formal abstract procedure
31637 that has statically tagged operands.
31638 (Check_Dispatching_Call): Check for the case of an actual given by
31639 a tag-indeterminate function call whose type is an ancestor of the
31640 containing call's associated tagged type. This situation can occur
31641 for inherited primitives with function defaults. In this case we
31642 use the tagged type's tag directly as the controlling argument for
31643 the calls.
31644 (Expand_Call): Name change on call to Expand_Dispatch_Call.
31645
31646 * sprint.adb (Sprint_Node_Actual): Split
31647 N_Formal_Subprogram_Declaration into two alternatives for the new
31648 cases N_Formal_Abstract_Subprogram_Declaration and
31649 N_Formal_Concrete_Subprogram_Declaration.
31650 Char_Literal_Value field is now a Uint.
31651
31652 * trans.c: Get rid of junk Uint2 reference.
31653 Char_Literal_Value field is now a Uint.
31654 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
31655 (gigi): Correct third arg to gimplify_body.
31656
31657 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
31658 (TYPE_LANG_FLAG_0): Check for record or union.
31659
31660 * treepr.adb: Char_Literal_Value field is now a Uint
31661
31662 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
31663 UI_From_CC.
31664
31665 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
31666 Add full UTF-32 support
31667 Char_Code is now 32 bits
31668
31669 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
31670 wide character UTF_32 line terminators.
31671 Initialize Main_Source_File to avoid error when no main
31672 source is loaded.
31673
31674 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
31675 (Main_Source_File) when no main source has been loaded, to avoid
31676 potential crash.
31677
316782005-02-09 Robert Dewar <dewar@adacore.com>
31679
a1286ef5
ZW
31680 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
31681 Fix name of Set routine
fc5a191d
AC
31682
31683 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
31684 fixed packages.
31685
31686 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
31687 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
31688 fixed packages
31689
31690 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
31691 forms of Get_Line subprograms for AI-301.
31692
31693 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
31694 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
31695 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
31696 a-stwima.ads: Minor reformatting.
31697
316982005-02-09 Doug Rupp <rupp@adacore.com>
31699 Thomas Quinot <quinot@adacore.com>
31700
31701 * adaint.c, adaint.h
31702 [VMS] (to_ptr32): New function.
31703 (MAYBE_TO_PTR32): New macro.
31704 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
31705 for pointer size.
31706 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
31707 [VMS] (#define fork()): Remove since unneccessary.
31708 (__gnat_set_close_on_exec): New routine to support
31709 GNAT.OS_Lib.Set_Close_On_Exec.
31710
31711 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
31712 the parent side as close-on-exec so that they are not inherited by the
31713 child.
31714
31715 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
31716 set or clear the FD_CLOEXEC flag on a file descriptor.
31717
317182005-02-09 Eric Botcazou <ebotcazou@adacore.com>
31719 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31720
6f7f72f9 31721 PR ada/19386
a1286ef5 31722 * decl.c:
fc5a191d
AC
31723 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
31724 on the field if Pragma Component_Alignment (Storage_Unit).
31725 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
31726 side-effects as if it were a constant; also make SAVE_EXPR to protect
31727 side-effects.
31728 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
31729 UNION_TYPE.
31730 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
31731 (components_to_record): Test it.
31732 Fix improper usage of REFERENCE_CLASS_P.
31733
31734 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
31735 RECORD_TYPE.
31736
31737 * utils2.c: Minor reformatting.
31738
31739 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
31740 handle other cases like RECORD_TYPE.
31741
31742 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
31743
317442005-02-09 Ed Schonberg <schonberg@adacore.com>
31745
31746 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
31747 component of an array of arrays in an assignment context, and the
31748 aggregate has component associations that require sliding on
31749 assignment, force reanalysis of the aggregate to generate a temporary
31750 before the assignment.
31751 (Must_Slide): Make global to the package, for use in Gen_Assign.
31752
317532005-02-09 Ed Schonberg <schonberg@adacore.com>
31754
31755 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
31756 unchecked union with no inferable discriminants, return a
31757 Raise_Program_Error node, rather than inserting it at the point the
31758 type is frozen.
31759 (Expand_Record_Equality, Component_Equality): Handle properly the case
31760 where some subcomponent is an unchecked union whose generated equality
31761 code raises program error.
31762
317632005-02-09 Doug Rupp <rupp@adacore.com>
31764
31765 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
31766 [VMS] (#define exit hack): Remove.
31767
317682005-02-09 Pascal Obry <obry@adacore.com>
9e94c78f 31769 Arnaud Charlet <charlet@adacore.com>
fc5a191d
AC
31770
31771 * init.c (__gnat_initialize): Add a new parameter eh which contains the
31772 address of the exception registration. The Win32 version of this
31773 routine calls __gnat_install_SEH_handler() to initialize the SEH
31774 (Structured Exception Handling) handler.
31775 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
31776 SEH (Structured Exception Handling) now.
31777 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
31778 (__gnat_initialize for ppc-vxworks): Adjust comments and the
31779 preprocessor condition protecting the call to the extra eh setup
31780 subprogram, which is only available for the ppc target.
31781 (__gnat_clear_exception_count): replaced reference to
31782 variable taskIdCurrent by call to taskIdSelf(), cleaner.
31783
31784 * seh_init.c: New file.
31785
31786 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
31787 (GNATBIND_OBJS): Idem.
31788
31789 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
31790 routine takes a new parameter (a pointer to the exception registration
31791 for the SEH (Structured Exception Handling) support.
31792
31793 * raise.h: (__gnat_install_SEH_handler): New prototype.
31794 Update copyright notice.
31795
31796 * s-tassta.adb (Task_Wrapper): Declare the exception registration
31797 record and initialize it by calling __gnat_install_SEH_handler.
31798
317992005-02-09 Vincent Celier <celier@adacore.com>
31800
31801 * make.adb (Gnatmake): Do not fail when the main project has no object
31802 directory.
31803
318042005-02-09 Doug Rupp <rupp@adacore.com>
31805
31806 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
31807 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
31808 [VMS]: Add translations for g-enblsp.adb.
31809
31810 * s-asthan-vms.adb: Removed.
31811 * s-asthan-vms-alpha.adb: Added.
31812
318132005-02-09 Pascal Obry <obry@adacore.com>
31814
31815 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
31816 (LIBGNAT_OBJS): Add seh_init.o.
31817
318182005-02-09 Arnaud Charlet <charlet@adacore.com>
31819
31820 PR ada/16592
fc5a191d
AC
31821 * Makefile.in: Link all gnat tools with -static-libgcc, since
31822 -shared-libgcc is now used by default on some systems (e.g. linux with
31823 recent binutils).
31824 Remove references to Makefile.prolog/generic, no longer used.
31825
318262005-02-09 Vincent Celier <celier@adacore.com>
31827
31828 * prj-makr.adb (Process_Directory): Put file name in canonical case
31829 before matching against the patterns.
31830 If gnatname has been invoked as <prefix>-gnatname
31831 then invoke the compiler as <prefix>-gcc, not just "gcc".
31832
318332005-02-09 Ed Schonberg <schonberg@adacore.com>
31834
31835 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
31836 with expansion disabled. The actual subtype is needed among other
31837 places when the selected component appears in the context of a loop
31838 bound, and denotes a packed array.
31839 (Operator_Check): Always use the first subtype in the
31840 error message, to avoid the appearance of internal base types.
31841 (Transform_Object_Operation): Copy each actual in full
31842 to the parameter associations of the constructed call, rather than
31843 using the shallow copy mechanism of New_Copy_List. This ensures that
31844 the chaining of named associations is done properly.
31845 (Complete_Object_Operation): Rewrite node, rather than
31846 replacing it, so that we can trace back to the original selected
31847 component.
31848
31849 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
31850 and calls that use object notation, if the called function is not
31851 declared in a withed unit, place the elaboration constraint on the
31852 unit in the context that makes the function accessible.
31853 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
31854 imposes an elaboration constraint between two packages.
31855
318562005-02-09 Ed Schonberg <schonberg@adacore.com>
31857
31858 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
31859 views of a private type after handling its private dependents, to
31860 maintain proper stack discipline between entry and exit from the
31861 package.
31862
318632005-02-09 Cyrille Comar <comar@adacore.com>
31864
31865 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
31866 Minor reformatting.
31867
318682005-02-09 Arnaud Charlet <charlet@adacore.com>
31869
31870 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
31871 fields for foreign threads.
31872
318732005-02-09 Doug Rupp <rupp@adacore.com>
31874
31875 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
31876 recursion warnings when compiled with -gnatdm.
31877
318782005-02-09 Robert Dewar <dewar@adacore.com>
31879
31880 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
31881 Slight fix to documentation of -gnaty with no parameters
31882
31883 * xr_tabls.ads: Add ??? comment for missing overall comment
31884
31885 * xsinfo.adb: Make default file name be sinfo.h, since this is what
31886 we now use by default.
31887
31888 * xsnames.adb: Adjust end of file test to look for five space followed
31889 by '#' instead of six spaces. The format of xsnames.adb was modified
31890 in the last update.
31891
31892 * a-numeri.ads: Add reference to AI-388 for greek letter pi
31893 identifier.
31894
31895 * clean.adb: Minor reformatting.
31896
31897 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
31898 gnatname.adb: Minor reformatting
31899 Add 2005 to copyright output when utility is run
31900
31901 * csets.adb: Eliminate obsolete comment
31902
31903 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
31904 Update comments.
31905
31906 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
31907
319082005-02-09 Sergey Rybin <rybin@adacore.com>
31909
31910 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
31911 the difference between compact and incompact layout and add the record
31912 representation clause to the example illustrating different layouts.
31913 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
31914 component clauses").
31915
319162005-02-09 Florian Villoing <villoing@adacore.com>
31917
31918 * gnat_ugn.texi: Fix typos.
31919 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
31920 @file.
31921 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
31922 in the generated documentation.
31923
319242005-02-09 Arnaud Charlet <charlet@adacore.com>
31925
31926 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
31927 longer supported.
31928 Update linker wrapper when linking with non GNU C++.
31929
319302005-02-09 Pascal Obry <obry@adacore.com>
31931
a1286ef5 31932 * gnat_ugn.texi:
fc5a191d
AC
31933 Document the procedure to debug the DllMain routine on Windows.
31934 Add note about -funwind-tables and mixed Ada and C/C++ programming in
31935 ZCX mode.
31936 Document new BIND qualifer /RETURN_CODES=VMS.
31937
319382005-02-09 Ben Brosgol <brosgol@adacore.com>
31939
31940 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31941 Edited gnatmetric chapter
31942
319432005-02-09 Robert Dewar <dewar@adacore.com>
31944
a1286ef5 31945 * gnat_rm.texi:
fc5a191d
AC
31946 Changes to document new wide wide character support
31947 For AI-285
31948 Update documentation on Normalize_Scalars and Initialize_Scalars
31949
319502005-02-09 Pascal Obry <obry@adacore.com>
31951
31952 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
31953
319542005-02-09 Jose Ruiz <ruiz@adacore.com>
31955
31956 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
31957 from the VxWorks kernel) that is needed for getting the active
31958 priority of the different tasks.
31959
31960 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
31961 Use a pragma Elaborate_Body in the spec file instead.
31962 Noticed by code reading.
31963
319642005-02-09 Thomas Quinot <quinot@adacore.com>
31965
31966 * exp_util.ads: Minor correction in comment.
31967
319682005-02-09 Arnaud Charlet <charlet@adacore.com>
31969
31970 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
31971 since this procedure is now too complex to be worth inlining.
31972
c6a912da
RH
319732005-02-09 Richard Henderson <rth@redhat.com>
31974
31975 * utils.c (gnat_define_builtin): Remove.
31976 (gnat_install_builtins): Use build_common_builtin_nodes.
31977
4c2d6a70
AC
319782005-02-09 Arnaud Charlet <charlet@adacore.com>
31979
31980 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31981 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
31982 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
31983 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
31984 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
31985 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
31986 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
31987 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
31988 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
31989 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
31990 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
31991 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
31992 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
31993 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
31994 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
31995 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
31996 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
31997 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
31998 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
31999 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
32000 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
32001 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
32002 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
32003 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
32004 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
32005 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
32006 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
32007 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
32008 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
32009 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
32010 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
32011 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
32012 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
32013 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
32014 library.
32015
9e94c78f 320162005-01-27 Laurent Guerby <laurent@guerby.net>
74a22497
LG
32017
32018 * Makefile.in: Fix a-intnam.ads from previous commit,
32019 add 2005 to copyright.
32020 * a-intman-rtems.ads: Renamed to...
32021 * a-intnam-rtems.ads:
32022
9e94c78f 320232005-01-27 Laurent Guerby <laurent@guerby.net>
7d921ba4
LG
32024
32025 * Makefile.in: Rename GNAT RTEMS specific files.
a1286ef5 32026 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
da8f5fd9 32027 5rosinte.ads, 5rparame.adb: Replaced by files below.
7d921ba4
LG
32028 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
32029 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
32030
9e94c78f
EB
320312005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
32032 Laurent Guerby <laurent@guerby.net>
9011d4bb
JS
32033
32034 PR ada/19488
32035 * 5rosinte.ads: Add No_Key constant.
a1286ef5
ZW
32036 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
32037 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9011d4bb 32038
9e94c78f 320392005-01-26 Laurent Guerby <laurent@guerby.net>
d487e3c1
LG
32040
32041 PR ada/19414
32042 * i-cobol.adb (Valid_Numeric): Handle zero length case.
a1286ef5 32043
3f38e738
RH
320442005-01-20 Richard Henderson <rth@redhat.com>
32045
32046 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
32047 a-intnam-linux.ads and system-linux-alpha.ads.
32048 * a-intnam-linux-alpha.ads: Remove file.
32049 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
32050 * system-linux-alpha.ads: New file.
32051
4d960a7e
JJ
320522005-01-18 Jakub Jelinek <jakub@redhat.com>
32053
32054 PR ada/13470
32055 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
32056 set to the new string.
32057
b4c6a3a2
TM
320582005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
32059
32060 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
32061 to True.
32062
8d5e1df2
RH
320632005-01-18 Richard Henderson <rth@redhat.com>
32064
32065 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
32066 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
32067 for alpha-linux.
32068 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
32069
03eef11c
AP
320702005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
32071
32072 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
32073 (GCC_ZCX_Support): Likewise.
32074
bc7566ca
BB
320752005-01-11 Bastian Blank <waldi@debian.org>
32076
32077 * system-linux-s390.ads: Define Preallocated_Stacks.
32078 * system-linux-s390x.ads: Likewise.
32079
e550819c
AC
320802005-01-04 Arnaud Charlet <charlet@adacore.com>
32081
32082 * gnat_ugn.texi: Fix texi errors with null variables.
32083
376a74d4
AC
320842005-01-03 Thomas Quinot <quinot@adacore.com>
32085
32086 * gen-soccon.c: New utility program to generate g-soccon.ads
32087 automatically.
32088
32089 * socket.c, gsocket.h: Split inclusion of system header files into a
32090 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
32091
32092 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
32093 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
32094 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
32095 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
32096 should not be edited by hand anymore, but should be regenerated using
32097 gen-soccon.
32098
320992005-01-03 Robert Dewar <dewar@adacore.com>
32100 Ed Schonberg <schonberg@adacore.com>
32101 Vincent Celier <celier@adacore.com>
32102
32103 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
32104 on/off, since this is an obsolescent feature, for which we now generate
32105 a warning.
32106
32107 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
32108 warning mode is set and obsolescent usage of this attribute occurs.
32109 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
32110 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
32111 predates, and partly motivates, the adoption of the AI.
32112 Implement new Ada 2005 attribute Mod
32113
32114 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
32115 attribute Mod.
32116
32117 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
32118
32119 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
32120 pragma restrictions.
32121 New entry for Ada 2005 attribute Mod.
32122
a1286ef5 32123 * par-prag.adb:
376a74d4
AC
32124 Add recognition of new pragma Restrictions No_Dependence
32125 Recognize restriction No_Obsolescent_Features at parse time
32126
32127 * bcheck.adb: Add circuitry for checking for consistency of
32128 No_Dependence restrictions.
32129
32130 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
32131 restrictions.
32132
32133 * restrict.ads, restrict.adb: Add subprograms to deal with
32134 No_Dependence restrictions.
32135
32136 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
32137 restrictions.
32138
32139 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
32140 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
32141
32142 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
32143 dummy parameter to scng instantiation.
32144 Needed for new restriction No_Obsolescent_Features
32145
32146 * scn.adb: (Obsolescent_Check): New procedure
32147 Needed for new restriction No_Obsolescent_Features
32148
32149 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
32150 specified by AI-285, needed for implementation of AI-388 (adding greek
32151 pi to Ada.Numerics).
32152 Add new generic formal to scng, needed for new restriction
32153 No_Obsolescent_Features.
32154
32155 * s-rident.ads: Add new restriction No_Obsolescent_Features.
32156
32157 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
32158 restrictions lines.
32159 (Scan_ALI): When finding an unexpected character on an R line, raise
32160 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
32161 Ignore_Errors is True, default restrictions are set and scanning of the
32162 ALI file continues with the next line. Also, when Bad_R_Line is raised
32163 and Ignore_Errors is True, skip to the end of le line.
32164
32165 * sem_ch10.adb: Check that explicit with's do not violate
32166 No_Dependence restrictions.
32167 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
32168 illegal context clauses containing child units of instance.
32169
32170 * sem_prag.adb: Processing and checking for new No_Dependence
32171 restrictions.
32172 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
32173 analyze and check the External argument.
32174
32175 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
32176
321772005-01-03 Robert Dewar <dewar@adacore.com>
32178
32179 * atree.adb: Add a fifth component to entities
32180 This allows us to add 32 flags and four new fields
32181
32182 * atree.ads: Add a fifth component to entities
32183 This allows us to add 32 flags and four new fields
32184
32185 * einfo.ads, einfo.adb: Document new fields and new flags now available
32186 Add routines for printing new fields
32187
32188 * treepr.adb: Call routines to print out additional fields if present
32189
321902005-01-03 Arnaud Charlet <charlet@adacore.com>
32191
32192 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
32193 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
32194
32195 * Makefile.in: Add support to build shared Ada libraries on solaris x86
32196 Remove gpr2make, replaced by gprmake.
32197 Remove references to gnatmem and libaddr2line.
32198 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
32199 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
32200 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
32201 a-numaux-darwin.ads and a-numaux-darwin.adb
32202 Enable mlib-tgt-lynxos.adb on lynxos.
32203
32204 * Make-lang.in: Remove rules for gpr2make.
32205 When generating sdefault.adb, do not call Relocate_Path
32206 on S3 for function Target_Name, as it is not a path.
32207 Remove references to gnatmem and libaddr2line.
32208
32209 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
32210 files.
32211
322122005-01-03 Samuel Tardieu <tardieu@adacore.com>
32213
32214 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
32215 address is incompatible with its base type alignment constraints when
32216 this can be decided statically.
32217
322182005-01-03 Olivier Hainque <hainque@adacore.com>
32219
32220 * decl.c (compatible_signatures_p): New function. The intended purpose
32221 is to check if two function signatures for a call-site and a callee are
32222 compatible enough for the call to be valid. The underlying purpose is
32223 to check if a call to a mapped builtin is using the right interface.
32224 The current code actually does not check antyhing - this a placeholder
32225 for future refinements.
32226 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
32227 builtin calls for convention Intrinsic.
32228
32229 * gigi.h (builtin_decl_for): Declare (new function).
32230
32231 * utils.c (gnat_install_builtins): Install the target specific builtins.
32232 (builtin_decl_for): New function, provide a dummy body for now.
32233
322342005-01-03 Geert Bosch <bosch@adacore.com>
32235
32236 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
32237 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32238 (Pred): Implement in terms of Succ.
a1286ef5 32239
376a74d4
AC
32240 * trans.c (convert_with_check): Reimplement conversion of float to
32241 integer.
32242
322432005-01-03 Ed Schonberg <schonberg@adacore.com>
32244 Vincent Celier <celier@adacore.com>
32245
32246 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
32247 bounds can be negative, and must be declared Int, not Nat.
32248
32249 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
32250 array is checked after using the index in the array.
32251
32252 * makegpr.adb (Add_Switches): Check if there is a package for the
32253 processor. If there is no package, do not look for switches.
32254
322552005-01-03 Ed Schonberg <schonberg@adacore.com>
32256
32257 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
32258 generation of predefined stream operations (specs and bodies) should
32259 proceed. Under various restrictions these subprograms must not be
32260 generated.
32261
322622005-01-03 Thomas Quinot <quinot@adacore.com>
32263
a1286ef5 32264 * exp_dist.adb:
376a74d4
AC
32265 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
32266 amount of PCS-specific code in RACW stubs generation.
32267 (Copy_Specification): Set Etype on copied formal parameter entities, as
32268 this information is needed for PolyORB stubs generation.
32269 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
32270 variable Dynamic_Async.
32271 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
32272 (Build_RPC_Receiver_Specification): Make generic again, as recent
32273 changes have allowed RPC receivers to have the same profile for both
32274 variants of the PCS.
32275 Reorganise RPC receiver generation to reduce differences between the
32276 structure of GARLIC and PolyORB RPC receivers.
32277 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
32278 PCS-specific.
32279 Simplify elaboration code for RCI packages.
32280
32281 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
32282 generation to reduce differences between the structure of GARLIC and
32283 PolyORB RPC receivers.
32284
32285 * s-stratt.adb: Fix typo in comment.
32286
322872005-01-03 Thomas Quinot <quinot@adacore.com>
32288
32289 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
32290 copied from Make_Init_Call).
32291
32292 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
32293 reads and assignments on a temporary variable declared with appropriate
32294 discriminants.
32295
322962005-01-03 Robert Dewar <dewar@adacore.com>
32297
32298 * i-c.adb (To_C): Raise CE if string is null and Append_Null
32299
323002005-01-03 Robert Dewar <dewar@adacore.com>
32301
32302 * i-cstrin.adb (Update): Do not append a null in form called with a
32303 String. This avoids unintended behavior.
32304
323052005-01-03 Arnaud Charlet <charlet@adacore.com>
32306
32307 PR ada/17527
32308 * init.c: Fix warnings on Free BSD section.
32309
323102005-01-03 Arnaud Charlet <charlet@adacore.com>
32311
32312 PR ada/16949
32313 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
32314 xsinfo.adb).
32315
323162005-01-03 Vincent Celier <celier@adacore.com>
32317
32318 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
32319 libraries when Unique_Compile is True (-u switch).
32320 (Gnatmake): ditto.
32321
323222005-01-03 Robert Dewar <dewar@adacore.com>
32323
32324 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
32325 upper case letter or underscore after W, as allowed by spec.
32326
323272005-01-03 Arnaud Charlet <charlet@adacore.com>
32328
32329 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
32330 darwin port by using proper type definitions from header files.
32331 Use SIGTERM instead of SIGABRT for SIGADAABORT.
32332
323332005-01-03 Robert Dewar <dewar@adacore.com>
32334
32335 * par.adb: Enhance error message handling for configuration file
32336 pragmas.
32337
323382005-01-03 Robert Dewar <dewar@adacore.com>
32339
32340 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
32341 removed during the previous update (test properly for case of dividing
32342 largest negative number by -1, which generates overflow).
32343
323442005-01-03 Ed Schonberg <schonberg@adacore.com>
32345 Sergey Rybin <rybin@adacore.com>
32346
32347 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
32348 to use as the defining identifier for a formal package.
32349 (Remove_Parent): If the instance takes place within (an instance of)
32350 a sibling, preserve private declarations of common parent.
32351
323522005-01-03 Ed Schonberg <schonberg@adacore.com>
32353
32354 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
32355 to determine whether one of the operands is a fixed-point type for
32356 which a user-defined multiplication or division operation might be
32357 defined.
32358
32359 * sem_res.adb (Valid_Conversion): The legality rules for conversions
32360 of access types are symmetric in Ada 2005: either designated type can
32361 be unconstrained.
32362
323632005-01-03 Vincent Celier <celier@adacore.com>
32364
32365 * s-fileio.adb (Temp_File_Record): Change length of string component
32366 Name from L_tmpnam + 1 to max_path_len + 1.
32367
323682005-01-03 Arnaud Charlet <charlet@adacore.com>
32369
32370 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
32371 Self_Id.Deferral_Level = 0.
32372 (Do_Pending_Action): Move this function to the spec.
32373
32374 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
32375 Do_Pending_Action explicitely when needed, in case we're using
32376 No_Abort restrictions.
32377
32378 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
32379 deferral level since it will not get changed by the generated code.
32380 Keeping a default value of 1 would prevent some operations (e.g.
32381 select or delay) to proceed successfully.
32382
323832005-01-03 Ben Brosgol <brosgol@adacore.com>
32384 Robert Dewar <dewar@adacore.com>
32385 Cyrille Comar <comar@adacore.com>
32386
32387 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
32388 porting guide chapter (vms version).
32389 Revised doc title (removed "for native platforms") and subtitle.
32390 Add discussion on warning flag for obsolescent features. First we
32391 note that it applies to obsolete GNAT features, which was previously
32392 omitted. Second we contrast the behavior with that of the new
32393 Ada 2005 AI-368 restriction No_Obsolescent_Features.
32394 Preliminary rewriting of GNAT & libraries chapter in order to take
32395 into account default project locations & new project manager
32396 capabilities.
32397
323982005-01-03 Robert Dewar <dewar@adacore.com>
32399
32400 * cstand.adb (Create_Operators): Clean up format and documentation of
32401 unary and binary operator result tables. No change in code, just
32402 reformatting and addition of comments.
32403
32404 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
32405 sem_ch2.adb: Minor reformatting
32406
32407 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
32408 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
32409 comments for Tree_Read and Tree_Write.
32410
324112005-01-03 Pascal Obry <obry@adacore.com>
32412
32413 * exp_attr.ads: Minor reformatting.
32414
324152005-01-03 Romain Berrendonner <berrendo@adacore.com>
32416
32417 * comperr.adb (Compiler_Abort): Add specialized message for GAP
32418 versions.
32419
324202005-01-03 Ed Schonberg <schonberg@adacore.com>
32421
32422 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
32423 whether the ancestor type is private, as may be the case with nested
32424 instantiations.
32425
9e94c78f 324262004-12-30 Sohail Somani <sohail@sohailsomani.com>
15cd18b9
SS
32427
32428 PR ada/19128
32429 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
32430
2614034e 324312004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
15cd18b9 32432
2614034e
EB
32433 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
32434 * utils2.c (build_unary_op): Likewise.
32435
ad50bc8d
RH
324362004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32437
32438 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
32439
ed9c846c
RH
324402004-12-19 Richard Henderson <rth@redhat.com>
32441
32442 * trans.c (gigi): Update gimplify_body call.
32443
08f2586c
NS
324442004-12-09 Nathan Sidwell <nathan@codesourcery.com>
32445
32446 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
32447
180684eb
AC
324482004-12-07 Ed Falis <falis@adacore.com>
32449
32450 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
32451 current task being suspended.
32452
32453 * init.c (__gnat_clear_exception): added to reset VxWorks exception
32454 count.
32455 (__gnat_map_signal): removed test for current task being suspended.
32456
324572004-12-07 Gary Dismukes <dismukes@adacore.com>
32458
32459 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
32460 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
32461 targets (such as AAMP).
32462
324632004-12-07 Ed Schonberg <schonberg@adacore.com>
32464
32465 * atree.adb (Visit_Itype): Create a new name for the generated itype,
32466 because the back-end may otherwise treat it as a redefinition of the
32467 old symbol.
32468
324692004-12-07 Eric Botcazou <ebotcazou@adacore.com>
32470
32471 * back_end.adb (Scan_Back_End_Switches): Accept --param.
32472
32473 * lang-specs.h: Accept --param.
32474
324752004-12-07 Vincent Celier <celier@adacore.com>
32476
32477 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
32478 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
32479 Current_Body_Suffix => Ada_Body_Suffix).
32480 Take into account Externally_Built attribute.
32481
32482 * clean.adb (In_Extension_Chain): Always return False when one of the
32483 parameter is No_Project.
32484 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
32485 Ada_Language_Index).
32486 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
32487 Process_Languages for procedure Parse).
32488
32489 * gnatcmd.adb (Carg_Switches): New table.
32490 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
32491 Adapt to name changes in package Prj (Current_Spec_Suffix =>
32492 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
32493
32494 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
32495 Header_Num and function Hash are now declared in package Prj,
32496 not Prj.Com.
32497
32498 * prj.adb (Suffix_Of): New function.
32499 (Set (Suffix)): New procedure.
32500 (Hash): One function moved from Prj.Com
32501 (Is_Present, Language_Processing_Data_Of): New functions
32502 (Set): Two new procedures
32503 (Add_Language_Name, Display_Language_Name): New procedures
32504
32505 * prj.ads: (Suffix_Of): New function
32506 (Set (Suffix)): New procedure
32507 Add several types and tables for multi-language support.
32508 (Header_Num): Type moved from Prj.Com
32509 (Hash): Two functions moved from Prj.Com
32510 (Is_Present, Language_Processing_Data_Of): New functions
32511 (Set): Two new procedures
32512 (Add_Language_Name, Display_Language_Name): New procedures
32513 (Naming): Component name changes:
32514 Current_Spec_Suffix => Ada_Spec_Suffix,
32515 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
32516 Impl_Suffixes, Supp_Suffixes.
32517 (Project_Data): New components: Externally_Built, Supp_Languages,
32518 First_Language_Processing, Supp_Language_Processing, Default_Linker,
32519 Default_Linker_Path.
32520
32521 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
32522 new package Language_Processing with its attributes (Compiler_Driver,
32523 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
32524 Binder_Driver, Default_Linker).
32525
32526 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
32527 (Header_Num): Type moved to package Prj
32528
32529 * prj-env.adb: Adapt to name changes in package Prj
32530 (Current_Spec_Suffix => Ada_Spec_Suffix,
32531 Current_Body_Suffix => Ada_Body_Suffix).
32532
32533 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
32534 default to the project path, except the "-" is one of the directories
32535 in env var ADA_PROJECT_PATH.
32536 (Current_Project_Path): Global variable, replacing Project_Path
32537 that was in the body of Prj.Part.
32538 (Project_Path): New function
32539 (Set_Project_Path): New procedure
32540 Initialize Current_Project_Path during elaboration of the package
32541 Remove dependency on Prj.Com, no longer needed
32542
32543 * prj-ext.ads (Project_Path): New function
32544 (Set_Project_Path): New procedure
32545
32546 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
32547 suffix is defined for language <lang>.
32548 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
32549 accessing directly the components of Naming.
32550 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
32551 Reorganise of this package.
32552 Break procedure Check in several procedures.
32553
32554 * prj-nmsc.ads: Replace all procedures (Ada_Check,
32555 Other_Languages_Check and Language_Independent_Check) with a single
32556 procedure Check.
32557
32558 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
32559 Process_Languages, no longer needed.
32560
32561 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
32562 Current_Project_Path.
32563 Remove elaboration code, moved to the body of Prj.Ext
32564 Use new function Prj.Ext.Project_Path instead of old variable
32565 Project_Path.
32566 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
32567 When comparing with project paths on the stack, first put the resolved
32568 path in canonical case.
32569 (Parse_Single_Project): Set the path name of the project file in the
32570 tree to the normalized path.
32571
32572 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
32573 parameter Process_Languages, no longer needed.
32574 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
32575 Other_Languages_Check.
32576
32577 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
32578 to store the resolved canonical path of the project file.
32579 Remove dependency to Prj.Com, no longer needed
32580
32581 * prj-util.adb: Adapt to name changes in package Prj
32582 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
32583 Ada_Body_Suffix).
32584
32585 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
32586 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
32587 Externally_Built, Include_Option, Language_Processing.
32588
32589 * makegpr.adb: Numerous changes due to changes in packages
32590 Prj and Prj.Nmsc.
32591
32592 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
32593 default to the project path, except whe "-" is one of the directories
32594 in env var ADA_PROJECT_PATH.
32595 (Gnatls): In verbose mode, add the new section "Project Search Path:"
32596
325972004-12-07 Robert Dewar <dewar@adacore.com>
32598
32599 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
32600
32601 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
32602 set -gnatR3m mode.
32603
32604 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
32605 flag. No longer needed now that we handle this in gnat1drv.adb.
32606
32607 * repinfo.ads: Minor reformatting
32608
326092004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32610 Olivier Hainque <hainque@adacore.com>
32611 Eric Botcazou <ebotcazou@adacore.com>
32612
32613 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
32614 TYPE_SIZE_UNIT of result type if SIZE is not specified.
32615 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
32616 of a bitfield, which we know is useless and causes trouble because of
32617 alignment implications.
32618
32619 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
32620 BSS sections.
32621 (process_attributes): Clear DECL_COMMON again when a section attribute
32622 is present.
32623 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
32624 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
32625 (create_field_decl): Special case ADDRESSABLE negative to mean
32626 "no bitfield creation", to be used by make_aligning_type. Don't
32627 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
32628 fields claimed addressable still have to be bitfields. Use
32629 value_factor_p instead of a raw binop construction to check for the
32630 position's alignment.
32631
326322004-12-07 Geert Bosch <bosch@adacore.com>
32633
32634 * eval_fat.adb: Revert previous change.
32635
326362004-12-07 Thomas Quinot <quinot@adacore.com>
32637 Ed Schonberg <schonberg@adacore.com>
32638
32639 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
32640 with an implicit dereference as its prefix, use
32641 Insert_Explicit_Dereference instead of merely rewriting the prefix into
32642 an explicit dereference. This ensures that a reference to the original
32643 prefix is generated, if appropriate.
32644
32645 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
32646 dereference is rewritten to an explicit one, generate a reference to
32647 the entity denoted by its prefix using the original prefix node, so
32648 the dereference can be properly recorded as a read of the denoted
32649 access value, if appropriate.
32650
32651 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
32652 emitting 'assigned but never read' warning on a variable on the basis
32653 that it has an access type.
32654 (Check_References): Emit unreferenced warning when the scope is a
32655 subprogram body.
32656
326572004-12-07 Robert Dewar <dewar@adacore.com>
32658 Ed Schonberg <schonberg@adacore.com>
32659
32660 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
32661 intrinsic
32662
32663 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
32664 leaving call unchanged.
32665 This deals with the case where the pragma Import specified
32666 an external name, to be handled by the back end.
32667
32668 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
32669 subprogram which is Imported with convention Intrinsic if an
32670 External_Name argument is specified.
32671 (Process_Import_Or_Interface): Properly diagnose link name argument.
32672 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
32673 with Sem_Ch6.Cannot_Inline.
32674 (Process_Inline): Provide separate warning for inapplicable inline
32675 pragma.
32676 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
32677 treatment is uniform on different targets.
32678
326792004-12-07 Ed Schonberg <schonberg@adacore.com>
32680
32681 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
32682 construct is rewritten, preserve end label to permit source navigation.
32683
326842004-12-07 Thomas Quinot <quinot@adacore.com>
32685
32686 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
32687 Specific_Build_Stub_Target): New subprograms.
32688 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
32689 the PCS implementation used, using the above PCS-customized subprograms.
32690 Minor reformatting.
32691 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
32692 for generation of DSA code targeted to the PolyORB PCS.
32693 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
32694 implementation of the partition communication subsystem in ancillary
32695 subprograms.
32696 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
32697 PolyORB_Support.Build_Stub_Type): New subrograms containing the
32698 PCS-specific part of Add_Stub_Type.
32699 (Insert_Partition_Check): Use runtime library function to perform
32700 E.4(19) check.
32701
a1286ef5
ZW
32702 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
32703 (RE_Same_Partition): New entity, from s-parint.
180684eb 32704
a1286ef5 32705 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
180684eb
AC
32706
327072004-12-07 Gary Dismukes <dismukes@adacore.com>
32708
32709 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
32710 Output the copyright message on a separate line from the version
32711 message.
32712
327132004-12-07 Joel Brobecker <brobecker@adacore.com>
32714
32715 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
32716 compile-time warning.
32717
327182004-12-07 Robert Dewar <dewar@adacore.com>
32719
32720 * g-regpat.adb: (Match): Change a misuse of or to or else
32721
327222004-12-07 Ed Schonberg <schonberg@adacore.com>
32723
15cd18b9 32724 * lib-xref.adb:
180684eb
AC
32725 (Generate_Reference): Handle properly a reference to an entry formal,
32726 when an accept statement has a pragma Unreferenced for it.
32727
32728 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
32729 and the Has_Pragma_Unreferenced flag for each formal before analyzing
32730 the body, to ensure that warnings are properly emitted for each accept
32731 statement of a given task entry.
32732
327332004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
32734
32735 * Makefile.in: Add support for foreign threads on VMS.
32736
327372004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32738
32739 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
32740 Remove.
32741 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
32742
32743 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
32744
32745 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
32746 exception.
32747 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
32748
327492004-12-07 Robert Dewar <dewar@adacore.com>
32750
32751 * nlists.adb (Prepend_Debug): Remove parameters and nest within
32752 Prepend.
32753 (Remove_Next_Debug): Same fix
32754
32755 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
32756 maintain back pointers now, though we did not used to, and comments
32757 were out of date).
32758 (Prepend): Remove pragma Inline.
32759 (Remove_Next): Same cleanup
32760
327612004-12-07 Thomas Quinot <quinot@adacore.com>
32762
32763 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
32764 used to record an implicit dereference as a read operation on its
32765 prefix when operating under -gnatc. Necessary to avoid spurious
32766 'variable assigned but never read' warnings in that mode.
32767 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
32768 is a non-overloaded implicit dereference, call the above subprogram to
32769 ensure proper recording of references.
32770
327712004-12-07 Gary Dismukes <dismukes@adacore.com>
32772
32773 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
32774 to be resolved later as part of Analyze_Iteration_Scheme's call to
32775 Make_Index.
32776
327772004-12-07 Ed Schonberg <schonberg@adacore.com>
32778
32779 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
32780 prefix is not a scalar type, place error message on prefix, not on
32781 type entity.
32782
327832004-12-07 Bernard Banner <banner@adacore.com>
32784
32785 * vxaddr2line.adb: Add support for x86 vxworks
32786
327872004-12-07 Thomas Quinot <quinot@adacore.com>
32788
32789 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
32790 documentation of the behaviour of these functions when passed an IP
32791 address that has no record in the system hosts database and no reverse
32792 record in the DNS.
32793
32794 * cstand.adb, a-tags.ads: Fix typos in comment.
32795
327962004-12-07 Robert Dewar <dewar@adacore.com>
32797
32798 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
32799 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
32800 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
32801 s-poosiz.ads: Minor reformatting
32802
32803 * make.adb: Minor reformatting
32804 Add some ??? comments asking for more comments
32805
32806 * s-poosiz.adb: Minor reformatting
32807 Add comments on alignment requirement
32808
32809 * sinfo.ads: Remove obsolete comment and fix typo.
32810
328112004-12-07 Vincent Celier <celier@adacore.com>
32812 Sergey Rybin <rybin@adacore.com>
32813
32814 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
32815 Files" with the new tool and package names.
32816 Reformatting to suppress most of the warnings for line too long
32817 Document the new section "Project Search Path:" in the output of
32818 gnatls -v.
32819 Add gnatmetric section
32820
328212004-12-07 Vincent Celier <celier@adacore.com>
32822
32823 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
32824 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
32825 and -eit to -ept. Added qualifier
32826 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
32827
ed986c8e
AS
328282004-11-27 Andreas Schwab <schwab@suse.de>
32829
32830 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
32831
3c13948a
AC
328322004-11-25 Arnaud Charlet <charlet@adacore.com>
32833
32834 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
32835 internal implementation unit GNAT.Sockets.Thin,
32836 as their usage for sockets is non-portable (using the read and write
32837 functions from the system runtime library is fine on UNIX but won't
32838 work under Windows).
32839
32840 * mingw32.h: Update copyright notice.
32841
061fd2bf
AC
328422004-11-25 Arnaud Charlet <charlet@adacore.com>
32843
32844 * ada-tree.h: Minor reformatting of previous change to avoid lines
32845 longer than 79 characters.
32846
e850e1f4
OH
328472004-11-25 Olivier Hainque <hainque@adacore.com>
32848
32849 * tb-gcc.c: GCC infrastructure based implementation of
32850 __gnat_backtrace.
32851
39afeb1a
SB
328522004-11-24 Steven Bosscher <stevenb@suse.de>
32853
32854 * misc.c (gnat_post_options): Don't clear
32855 flag_inline_functions.
32856
9633a6ac
AP
328572004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
32858
32859 PR ada/17986
32860 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
32861 tree.
32862
7fe16580
AJ
328632004-11-21 Andreas Jaeger <aj@suse.de>
32864
32865 * stylesw.adb: Change Style_Check_Subprogram_Order to
32866 Style_Check_Order_Subprograms.
32867
9716416b
AC
328682004-11-18 Arnaud Charlet <charlet@adacore.com>
32869
32870 * adaint.h, adaint.c
32871 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
32872 to avoid warnings.
32873 Add also a cast to kill another warning.
32874 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
32875 parameter with the priority class of the parent process instead of
32876 always using the NORMAL_PRIORITY_CLASS.
32877 (__gnat_dup): New function.
32878 (__gnat_dup2): New function.
32879 (__gnat_is_symbolic_link): Enable the effective body of this
32880 function when __APPLE__ is defined.
32881
32882 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
32883 Update comments.
32884
328852004-11-18 Olivier Hainque <hainque@adacore.com>
32886
32887 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
32888 address of which may be used to represent "others" and "all others"
32889 choices in exception tables, instead of the current harcoded
32890 (void *)0 and (void *)1.
32891 (Setup_Exception): Do nothing in the GNAT SJLJ case.
32892
32893 * gigi.h (others_decl, all_others_decl): New decls representing the
32894 new Others_Value and All_Others_Value objects.
32895 (struct attrib): Rename "arg" component as "args", since GCC expects a
32896 list of arguments in there.
32897
32898 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
32899 corresponding objects exported by a-exexpr, instead of hardcoded dummy
32900 addresses.
32901
32902 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
32903 others_decl and all_others_decl instead of hardcoded dummy addresses
32904 to represent "others" and "all others" choices, which is cleaner and
32905 more flexible with respect to the possible eh pointer encoding policies.
32906
32907 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
32908 (process_attributes): Account for the naming change of the "args"
32909 attribute list entry component.
32910
32911 * decl.c (build_attr_list): Rename into prepend_attributes to allow
32912 cumulating attributes for different entities into a single list.
32913 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
32914 attributes for the current entity and propagate first subtype
32915 attributes to other subtypes.
32916 <E_Procedure>: Attribute arguments are attr->args and not
32917 attr->arg any more.
32918 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
32919 argument provided, as this is what GCC expects. Use NULL_TREE instead
32920 of 0 for trees.
32921
329222004-11-18 Robert Dewar <dewar@adacore.com>
32923
15cd18b9 32924 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
9716416b
AC
32925 Minor reformatting througout (including new function specs)
32926 Add ??? comments asking for clarification.
32927
329282004-11-18 Thomas Quinot <quinot@adacore.com>
32929
32930 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
32931 incomplete duplicate implementation of this subprogram from butil.
32932
329332004-11-18 Thomas Quinot <quinot@adacore.com>
32934
32935 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
32936 procedures factors the common processing for building an RPC receiver
32937 for an RCI package or an RACW type.
32938 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
32939 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
32940 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
32941 in use.
32942 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
32943 Add_RACW_Features.
32944 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
32945 Add_RAST_Features.
32946 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
32947 distribution subprogram identifiers that are either subprogram numbers
32948 or strings.
32949 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
32950 string distribution identifiers assigned to a given subprogram.
32951 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
32952 (Add_RAS_Dereference_TSS): Add comments.
32953 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
32954 is not referenced yet because it will be used by the PolyORB DSA
32955 implementation.
32956 (Insert_Partition_Check): Remove fossile code.
32957 (First_RCI_Subprogram_Id): Document this constant.
32958 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
32959 RAS_Access TSS.
32960 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
32961 replaced with calls to Get_Library_Unit_Name_String. Previously there
32962 were several instances of the same code in different locations in the
32963 compiler; this checkin completes the replacement of all of these
32964 instances with calls to a common subprogram.
32965 Minor reformatting.
32966
32967 * sem_dist.adb: Remove comment noting that RPC receiver generation
32968 should be disabled for RACWs that implement RASs.
32969 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
32970
32971 * sem_util.ads, sem_util.adb (Has_Stream): New function
32972 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
32973 qualified name of a library unit into the name buffer.
32974 (Note_Possible_Modification): Generate a reference only
32975 if the context comes from source.
32976
32977 * snames.ads (PCS_Names): New subtype corresponding to names of
32978 supported implementations of the Partition Communication Subsystem
32979 (PCS) (i.e. the runtime library support modules for the distributed
32980 systems annex).
32981
329822004-11-18 Robert Dewar <dewar@adacore.com>
32983 Ed Schonberg <schonberg@adacore.com>
32984
32985 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
32986 (Has_Rep_Pragma): New function
32987 (Has_Attribute_Definition_Clause): New function
32988 (Record_Rep_Pragma): Moved here from sem_ch13.adb
32989 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
32990
32991 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
32992
32993 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
32994 (Expand_Pragma_Psect_Object): New procedure
32995 These procedures contain the revised and cleaned up processing for
32996 these two pragmas. This processing was formerly in Sem_Prag, but
32997 is more appropriately moved here. The cleanup involves making sure
32998 that the pragmas are properly attached to the tree, and that no
32999 nodes are improperly shared.
33000
33001 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
33002 pragmas to Exp_Prag, which is more appropriate.
33003 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
33004 check for duplicates Remove use of Is_Psected flag, no longer needed.
33005 Use new Make_String_Literal function with string.
33006
33007 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
33008 that are functions return universal values, that have to be converted
33009 to the context type.
33010 Use new Make_String_Literal function with string.
33011 (Get_Stream_Convert_Pragma): New function, replaces the use of
33012 Get_Rep_Pragma, which had to be kludged to work in this case.
33013
33014 * freeze.adb: Use new Has_Rep_Pragma function
33015
33016 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
33017 function with string.
33018 Use new Has_Rep_Pragma function.
33019
33020 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
33021 string argument.
33022
330232004-11-18 Robert Dewar <dewar@adacore.com>
33024
33025 * errout.ads, errout.adb: (First_Sloc): New function
33026
33027 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
33028 check (-gnatyx) instead of being included as a redundant construct
33029 warning.
33030
33031 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
33032 Style_Check_Order_Subprograms.
33033
33034 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
33035 stylesw.adb: Add Style_Check_Xtra_Parens
33036
33037 * usage.adb: Add line for -gnatyx (check extra parens)
33038
33039 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
33040
330412004-11-18 Ed Schonberg <schonberg@adacore.com>
33042 Robert Dewar <dewar@adacore.com>
33043
33044 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
33045 discriminant of a constrained subtype, analyze the copy of the
33046 corresponding constraint, because in some cases it may be only
33047 partially analyzed.
33048 Removes long-lived ??? comments.
33049
33050 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
33051 handled controlled or secondary-stack expressions within the
33052 iteration_scheme of a loop.
33053
33054 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
33055 bounds that may contain functions calls, to prevent memory leaks when
33056 the bound contains a call to a function that uses the secondary stack.
33057 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
33058 generate temporaries for loop bounds that might contain function calls
33059 that require secondary stack and/or finalization actions.
33060
33061 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
33062 selected component and the selector is overloadable (not just a
33063 function) treat as function call, Analyze_Call will disambiguate if
33064 necessary.
33065 (Analyze_Selected_Component): Do not generate an actual subtype for the
33066 selected component if expansion is disabled. The actual subtype is only
33067 needed for constraint checks.
33068 (Analyze_Allocator): If restriction No_Streams is set, then do
33069 not permit objects to be declared of a stream type, or of a
33070 composite type containing a stream.
33071
33072 * restrict.ads: Remove the a-stream entry from Unit_Array, since
33073 No_Streams no longer prohibits with'ing this package.
33074
33075 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
33076 discriminants, but the parent base has unknown discriminants, there is
33077 no discriminant constraint to inherit. Such a discrepancy can arise
33078 when the actual for a formal type with unknown discriminants is a
33079 similar private type whose full view has discriminants.
33080 (Analyze_Object_Declaration): If restriction No_Streams is set, then
33081 do not permit objects to be declared of a stream type, or of a
33082 composite type containing a stream.
33083
330842004-11-18 Ed Schonberg <schonberg@adacore.com>
33085
33086 * exp_dbug.ads: Update documentation to reflect simpler encoding for
33087 protected operations.
33088
33089 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
33090 generated name, it complicates decoding in gdb and hinders debugging
33091 of protected operations.
33092 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
33093 flag for the protected entry barrier function.
33094 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
33095 flag for the protected entry function.
33096
330972004-11-18 Nicolas Setton <setton@adacore.com>
33098
33099 * expect.c: Define __unix__ when __APPLE__ is defined.
33100
33101 * Makefile.in: Inform the value of the variable GMEM_LIB in the
33102 Darwin-specific section.
33103
33104 * lang-specs.h: Change the placement of the %1 marker.
33105 Works around the fact that gcc adds -fPIC by default under Darwin.
33106
331072004-11-18 Ed Schonberg <schonberg@adacore.com>
33108
33109 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
33110 type of the object with the packed array type, set the Analyzed flag
33111 on the object if it is an entity or simple indexed component, to avoid
33112 spurious type errors.
33113
331142004-11-18 Gary Dismukes <dismukes@adacore.com>
33115
33116 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
33117 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
33118 separate line from the version message.
33119
331202004-11-18 Ed Falis <falis@adacore.com>
33121
33122 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
33123 vthreads.
33124 (init_float): Eliminate initialization of floating point status for
33125 AE653. The instructions have no effect for vThreads.
33126
331272004-11-18 Vincent Celier <celier@adacore.com>
33128
33129 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
33130 gnatbind is invoked with -shared.
33131
331322004-11-18 Jose Ruiz <ruiz@adacore.com>
33133
33134 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
33135 for Detect_Blocking which is redundant with the check done within the
33136 procedure Protected_Single_Entry_Call.
33137 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
33138 Detect_Blocking which is redundant with the check done within the
33139 procedure Protected_Single_Entry_Call.
33140
331412004-11-18 Vincent Celier <celier@adacore.com>
33142
33143 * makegpr.adb (Compile): Put the compiling switches (in package
33144 Compiler and on the command line) immediately after "-c", instead of
33145 at the end of the command line invocation of the compiler, when
33146 compiling a non-Ada file.
33147 (Build_Global_Archive): When there is no need to rebuild the archive,
33148 set Global_Archive_Exists, so that the archive is passed to the linker
33149 if one is needed.
33150
331512004-11-18 Robert Dewar <dewar@adacore.com>
33152 Sergey Rybin <rybin@adacore.com>
33153
15cd18b9 33154 * gnat_ugn.texi:
9716416b
AC
33155 Remove extra paren check from list of checks for redundant constructs
33156 Add documentation of new -gnatyx style check (check extra parens)
33157 Remove paragraph about gnatelim debug options.
33158
33159 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
33160 objects rather than forbidding dependencies on the package Ada.Streams.
33161
33162 * sinfo.ads: Add ??? note that we should document pragmas passed to
33163 back end.
33164
33165 * g-expect.ads: Fix a few typos in the comments.
33166
9e637a26
JM
331672004-11-09 Joseph S. Myers <joseph@codesourcery.com>
33168
33169 * misc.c (gnat_handle_option): Use %< and %> for quoting in
33170 warning message.
33171
0506cb1c
RO
331722004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33173
33174 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
33175
426e7d28
AS
331762004-11-07 Andreas Schwab <schwab@suse.de>
33177
33178 * Makefile.in (install-gnatlib): Remove spurious hyphen.
33179
8785609e 331802004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
33181
33182 PR ada/18228
33183 * Makefile.in (darwin): Set soext to .dylib.
33184
0ca5fab2
AC
331852004-10-26 Vincent Celier <celier@gnat.com>
33186 Thomas Quinot <quinot@act-europe.fr>
33187
33188 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
33189 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
33190 there is no use of GNAT.Sockets.Constants.
33191 Remove remaining pragma Import for C_Write
33192 Remove C_Read and C_Write from internal implementation unit
33193 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
33194 the read and write functions from the system runtime library is fine
33195 on UNIX but won't work under Windows).
33196
33197 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
33198 (Check_Selector): Use C_Recv instead of C_Read.
33199 Selectors are the GNAT.Sockets abstraction to perform a select()
33200 call on a set of descriptors. To allow abortion of an ongoing
33201 select operation, some data is written to a dedicated socket that
33202 is always monitored.
33203 Under Windows, the write and read library functions cannot operate
33204 on sockets, so we need to use send and recv instead, which is portable
33205 across all supported platforms.
33206
33207 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
33208 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
33209 (using the read and write functions from the system runtime library is
33210 fine on UNIX but won't work under Windows).
33211
332122004-10-26 Nicolas Setton <setton@act-europe.fr>
33213
33214 * mlib-tgt-darwin.adb: New file.
33215
33216 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33217 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33218 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
33219 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
33220 subprogram body.
33221
33222 * Makefile.in: Add support for building shared libraries under Darwin.
33223 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
33224 the low level EH init subprogram to be called from __gnat_initialize.
33225
33226 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
33227 indicates which options to pass to the archive indexer.
33228
33229 * mlib-utl.adb: Add support for calling ranlib with additional
33230 options. This is needed for instance under Mac OS X.
33231 (Ranlib_Options): New global variable, used to store the potential
33232 options to pass to ranlib.
33233 (Ar): Use Ranlib_Options when spawning ranlib.
33234 (Initialize): Set the value of ranlib option.
33235
332362004-10-26 Olivier Hainque <hainque@act-europe.fr>
33237
33238 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
33239 instead of 8K, to reflect the real potential needs for stack-checking
33240 in the ZCX case.
33241
332422004-10-26 Pascal Obry <obry@gnat.com>
33243
33244 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
33245
33246 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
33247 Windows only the initial thread stack size can be set so it is good to
33248 start we a low stack size.
33249 The OS will adjust the size as needed.
33250
332512004-10-26 Olivier Hainque <hainque@act-europe.fr>
33252 Nicolas Setton <setton@act-europe.fr>
33253
33254 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
33255 "__unix__" instead of "unix".
33256 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
33257 sections were just mistakenly ignored. The former is
33258 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
33259 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
33260 of hpux. This prevents an unwanted definition of the symbol
33261 convert_addresses in adaint.o.
33262
332632004-10-26 Gary Dismukes <dismukes@gnat.com>
33264
33265 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
33266 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
33267
332682004-10-26 Cyrille Comar <comar@act-europe.fr>
33269
33270 * a-filico.ads, a-filico.adb: fix incorrect header.
33271
332722004-10-26 Javier Miranda <miranda@gnat.com>
33273
33274 * a-ststio.ads: Fix typo in identifier
33275
332762004-10-26 Thomas Quinot <quinot@act-europe.fr>
33277
33278 * sem_ch4.adb: Minor reformatting.
33279
332802004-10-26 Ed Schonberg <schonberg@gnat.com>
33281
33282 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
33283 enabled, check the result of unary and binary operations when the
33284 expression is the right-hand side of an assignment.
33285
332862004-10-26 Vincent Celier <celier@gnat.com>
33287
33288 * clean.adb (Delete): Do not output warnings when in quiet output and
33289 not in verbose mode.
33290 (Force_Deletions): New Boolean flag, defaulted to False
33291 (Delete): Only delete a file if it is writable, and when
33292 Force_Deletions is True.
33293 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
33294 (Usage): Line for new switch -f
33295 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
33296 own.
33297
332982004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33299
33300 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
33301 JM type only if its size matches that of the wrapper. When a size is
33302 prescribed and the field is not aliased, remove the wrapper of a JM
33303 type only if the size is not greater than that of the packed array.
33304 (gnat_to_gnu_entity): Change the extension of packed array wrappers
33305 from LJM to JM.
33306
333072004-10-26 Geert Bosch <bosch@gnat.com>
33308
33309 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
33310 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
33311 (Pred): Implement in terms of Succ.
33312
333132004-10-26 Ed Schonberg <schonberg@gnat.com>
33314
33315 * exp_aggr.adb (Safe_Component): An aggregate component that is an
33316 unchecked conversion is safe for in-place use if the expression of the
33317 conversion is safe.
33318 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
33319 be expandable in place even if the aggregate does not come from source.
33320 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
33321 designated object of an allocator in place, rather than building it
33322 first on the stack. The previous scheme forces a full copy of the array,
33323 and may be altogether unsusable if the size of the array is too large
33324 for stack allocation.
33325
333262004-10-26 Robert Dewar <dewar@gnat.com>
33327
33328 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
33329 compares if the component is atomic.
33330
33331 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
33332 array assignment if the component type is atomic.
33333
333342004-10-26 Ed Schonberg <schonberg@gnat.com>
33335 Eric Botcazou <ebotcazou@act-europe.fr>
33336
33337 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
33338 is aliased and is a by_reference type, do not pass by copy.
33339 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
33340 detect whether the call is in the right side of an assignment or
33341 the expression of an object declaration. Recurse on component
33342 association within aggregates.
33343 Call it in the condition that determines whether the temporary is
33344 necessary for correct stack-checking.
33345
333462004-10-26 Thomas Quinot <quinot@act-europe.fr>
33347
33348 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
33349 RACW_Type, used in the PolyORB version.
33350 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
33351 version and the GARLIC version.
33352
15cd18b9 33353 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
0ca5fab2
AC
33354 Rename RCI_Info to RCI_Locator for better consistency between the
33355 GARLIC and PolyORB versions of the distributed systems annex.
33356 (DSA_Implementation_Name): This enumeration lists the possible
33357 implementations of the Partition Communication Subsystem for the
33358 Distributed Systems Annex (DSA). The three available implementations
33359 are the dummy stub implementation (No_DSA), and two versions based on
33360 two different distribution runtime libraries: GARLIC and PolyORB. Both
33361 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
33362 technology.
33363 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
33364 that organization.
33365
33366 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
33367 between the GARLIC and PolyORB versions of the distributed systems
33368 annex.
33369 Remove RE_Unbounded_Reclaim_Pool since it is unused.
33370
333712004-10-26 Gary Dismukes <dismukes@gnat.com>
33372
33373 * gnat1drv.adb: Suppress calling the back end when
33374 Frontend_Layout_On_Target is true.
33375
333762004-10-26 Thomas Quinot <quinot@act-europe.fr>
33377
33378 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
33379 Set_Read_Only): New subprograms.
33380 These new routines allow the user to set or unset the Owner execute
33381 and Owner write permission flags on a file.
33382
33383 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
33384 GNAT.OS_Lib.Set_Executable instead of rolling our own.
33385
333862004-10-26 Matthew Gingell <gingell@gnat.com>
33387
33388 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
33389
333902004-10-26 Pascal Obry <obry@gnat.com>
33391
33392 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
33393 memory before the faulting page we properly test the process read
33394 access for this address using appropriate Win32 routine.
33395 (HPUX sections): guard with "__hpux__" instead of "hpux".
33396
333972004-10-26 Robert Dewar <dewar@gnat.com>
33398
33399 * lib-xref.adb (Generate_Reference): Don't complain about reference to
33400 entry parameter if pragma Unreferenced set, since we do not properly
33401 handle the case of multiple parameters.
33402
334032004-10-26 Vincent Celier <celier@gnat.com>
33404
33405 * prj-env.adb: (Contains_ALI_Files): New Boolean function
33406 (Ada_Objects_Path.Add): For a library project, add to the object path
33407 the library directory only if there is no object directory or if the
33408 library directory contains ALI files.
33409 (Set_Ada_Paths.Add.Recursive_Add): Ditto
33410
334112004-10-26 Vincent Celier <celier@gnat.com>
33412
33413 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
33414 extension of library projects.
33415
33416 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
33417 path defaults to ".:<prefix>/lib/gnat".
33418 (Parse): For an extending all project, allow direct import of a project
33419 that is virtually extended.
33420
33421 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
33422 the specified name is directly imported, return its ID. Otherwise, if
33423 an extension of this project is imported, return the ID of the
33424 extension.
33425
334262004-10-26 Robert Dewar <dewar@gnat.com>
33427
33428 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
33429 (Sub3): New procedure, used by Scaled_Divide
33430 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
33431 correct more than one instance of failure to propagate carries
33432 correctly.
33433 (Double_Divide): Handle overflow case of largest negative number
33434 divided by minus one.
33435
33436 * s-arit64.ads (Double_Divide): Document that overflow can occur in
33437 the case of a quotient value out of range.
33438 Fix comments.
33439
334402004-10-26 Robert Dewar <dewar@gnat.com>
33441
33442 * s-bitops.adb (Bit_Eq): Remove redundant check.
33443
33444 * s-bitops.ads: Minor comment updates
33445 Change some occurrences of Address to System.Address
33446
33447 * s-carsi8.ads: Fix minor cut-and-paste error in comments
33448
334492004-10-26 Ed Schonberg <schonberg@gnat.com>
33450
33451 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
33452 accessibility check to prefix that is a protected operation.
33453
334542004-10-26 Ed Schonberg <schonberg@gnat.com>
33455
33456 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
33457 empty, post message on stub.
33458
334592004-10-26 Ed Schonberg <schonberg@gnat.com>
33460 Javier Miranda <miranda@gnat.com>
33461
33462 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
33463 current instance appears within a unit that is directly in the context
33464 of the main unit.
33465 Used to determine whether the body of the instance should be analyzed
33466 immediately after its spec, to make its subprogram bodies available
33467 for front-end inlining.
33468 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
33469 constraint is not allowed on the component type (AARM 12.5.3(3))
33470
334712004-10-26 Cyrille Comar <comar@act-europe.fr>
33472
33473 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
33474 'Storage_Pool): enhance, document & limit detection of non-sharable
33475 internal pools.
33476
33477 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
33478
33479 * s-pooglo.ads: Add more documentation now that this pool is properly
33480 documented.
33481
334822004-10-26 Ed Schonberg <schonberg@gnat.com>
33483
33484 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
33485 or protected type with discriminants, do not constrain the
33486 corresponding record type if the subtype declaration has no
33487 discriminant constraints. This can be the case in source code, or in
33488 the subtype declaration created to rename an actual type within an
33489 instantiation.
33490
334912004-10-26 Ed Schonberg <schonberg@gnat.com>
33492
33493 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
33494 different kind of stub (possibly wrong name for file), do not check
33495 for conformance.
33496 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
33497 includes call to some function that returns an unconstrained type, do
33498 not inline.
33499
335002004-10-26 Ed Schonberg <schonberg@gnat.com>
33501
33502 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
33503 appear in the code for the main unit. Dependencies among units in the
33504 context of the main unit are established when those other units are
33505 compiled. Otherwise spurious elaboration constraints can generate
33506 incorrect elaboration circularities.
33507
335082004-10-26 Thomas Quinot <quinot@act-europe.fr>
33509 Ed Schonberg <schonberg@gnat.com>
33510
33511 * sem_util.adb (Is_Aliased_View): Defend against the case where this
33512 subprogram is called with a parameter that is not an object name. This
33513 situation arises for some cases of illegal code, which is diagnosed
33514 later, and in this case it is wrong to call Is_Aliased, as that might
33515 cause a compiler crash.
33516 (Explain_Limited_Type): Refine previous fix to include
33517 inherited components of derived types, to provide complete information.
33518
33519 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
33520 is the prival for a protected object.
33521 It is necessary to mark this entity as a variable, in addition to
33522 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
33523 modified to avoid checking the Aliased flag on entities that are not
33524 objects. (Checking that flag for non-objects is erroneous and could
33525 lead to a compiler crash).
33526
335272004-10-26 Robert Dewar <dewar@gnat.com>
33528
33529 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
33530 X_Frac = 0.5, then we know that the number X must be positive.
33531 (Succ): Remove the same redundant test, and also fix the primary test
33532 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
33533 Minor reformatting
33534 (Decompose): Add fuller comments to spec
33535
335362004-10-26 Pascal Obry <obry@gnat.com>
33537
33538 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
33539 validity (process must have read access). Set to 0 in all other cases.
33540 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
33541 violation on Win32.
33542 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
33543 segmentation violation.
33544
335452004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33546
33547 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
33548 whose type is a constructed subtype of an aliased object with an
33549 unconstrained nominal subtype, convert the actual to the constructed
33550 subtype before taking its address.
33551
335522004-10-26 Vincent Celier <celier@gnat.com>
33553
33554 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
33555 (Is_Path_Name_Case_Sensitive): New function
33556
33557 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
33558 (Base_Name, Simple_Name, Current_Directory, Compose,
33559 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
33560 the result.
33561
335622004-10-26 Cyrille Comar <comar@act-europe.fr>
33563 Vasiliy Fofanov <fofanov@act-europe.fr>
33564 Vincent Celier <celier@gnat.com>
33565
33566 * gnat_ugn.texi: Generalize "finding memory problems" section into a
33567 "memory management issues" section and document some of the useful
33568 memory pools provided as part of the GNAT library.
33569 Remove "virtual" from declaration of A::method2 in
33570 the simple example of Ada/C++ mixed system.
33571 Library Projects may be virtually extended: their virtual extensions
33572 are not Library Projects.
33573 Added section on extending project hierarchies.
33574
d65c6710 335752004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
33576
33577 * adaint.c (__gnat_get_libraries_from_registry): Cast value
33578 to LPBYTE.
33579 (__gnat_portable_spawn): Remove const.
33580
33581 * mingw32.h (MAXPATHLEN): Check for previous definition.
33582
95e19580
MK
335832004-10-17 Matthias Klose <doko@debian.org>
33584
33585 * gnatvsn.ads: Set gnat library version to 4.0.
33586
88a6ecb6
VC
335872004-10-05 Vincent Celier <celier@gnat.com>
33588
a1286ef5 33589 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
88a6ecb6 33590
9e94c78f 335912004-10-04 Laurent Guerby <laurent@guerby.net>
110aba14
LG
33592
33593 PR ada/15156
33594 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 33595
09552763
PO
335962004-10-04 Pascal Obry <obry@gnat.com>
33597
33598 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
33599 other x86 platforms).
33600
a8e490b7
OH
336012004-10-04 Olivier Hainque <hainque@act-europe.fr>
33602
33603 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
33604 in general and triggers stack alignment adjustment for thread entry
33605 points on targets where this is necessary.
33606
71c10a83
BB
336072004-10-04 Bernard Banner <banner@gnat.com>
33608
33609 PR ada/13897
71c10a83
BB
33610 * Makefile.in: Add section for powerpc linux
33611 Add variant i-vxwork-x86.ads
33612
33613 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
33614
9a03df55
OH
336152004-10-04 Olivier Hainque <hainque@act-europe.fr>
33616
33617 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
33618 table registration calls when need be. Ensures no reference to the crt
33619 ctors symbol are issued in the SJLJ case, which avoids possible
33620 undefined symbol errors in the case of modules to be statically linked
33621 with the kernel.
33622
28d6470f
JM
336232004-10-04 Javier Miranda <miranda@gnat.com>
33624
33625 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
33626 in-line the code corresponding to subprogram Analyze_Actuals. In
33627 addition, analyze the actuals only in case of subprogram call.
33628
06237875
EF
336292004-10-04 Ed Falis <falis@gnat.com>
33630
33631 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
33632
259d6c3a
SR
336332004-10-04 Sergey Rybin <rybin@act-europe.fr>
33634
33635 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
33636 in the documentation.
33637
6f21ed26
RD
336382004-10-04 Robert Dewar <dewar@gnat.com>
33639
33640 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
33641 IF and CASE.
33642 (Analyze_Block_Statement): Add circuitry to detect following dead code
33643 (Check_Unreachable_Code): Handle case of block exit
33644
4cded177
RD
336452004-10-04 Robert Dewar <dewar@gnat.com>
33646
33647 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
33648 (XMatchD): Avoid warning for Logic_Error call
33649
c6a60aa1
RD
336502004-10-04 Robert Dewar <dewar@gnat.com>
33651
33652 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
33653 consider expressions buried within a procedure actual to be an actual.
33654 This caused some blowups with uses of packed slices within a procedure
33655 actual.
33656
1fdebfe5
RD
336572004-10-04 Robert Dewar <dewar@gnat.com>
33658
33659 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
33660 longer need to be initialized to zero.
33661 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
33662 initialized to zero.
33663
33664 * checks.adb (Expr_Known_Valid): Packed arrays are now always
33665 considered valid, even if the representation is modular. That's correct
33666 now that we no longer initialize packed modular arrays to zero.
33667
33668 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
33669 suffixes. These are now documented as the only cases in which the
33670 debugger ignores outer records.
33671 Previously, the spec allowed arbitrary suffixes for this purpose.
33672 Change name of LJM to JM for packed array pad records
33673 Create separate section on packed array handling, and add a whole new
33674 set of comments to this section describing the situation with packed
33675 modular types and justification requirements depending on endianness.
33676
cd91501c
RD
336772004-10-04 Robert Dewar <dewar@gnat.com>
33678
33679 * a-except.adb: Add a comment for last change
33680
33681 * einfo.ads: Minor spelling correction in comment
33682
33683 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
33684
33685 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
33686 messages.
33687
33688 * sem_util.ads: Minor comment update
33689
c71c53a8
ES
336902004-10-04 Ed Schonberg <schonberg@gnat.com>
33691
33692 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
33693 Inline_Always when in Configurable_Run_Time mode.
33694
33695 * sem_prag.adb (Process_Convention): If entity is an inherited
33696 subprogram, apply convention to parent subprogram if in same scope.
33697 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
33698 when in Configurable_Run_Time mode.
33699
71d9e9f2
ES
337002004-10-04 Ed Schonberg <schonberg@gnat.com>
33701
33702 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
33703 class_wide type after component list has been inherited.
33704
0b525bee
ES
337052004-10-04 Ed Schonberg <schonberg@gnat.com>
33706
33707 * sem_ch12.adb (Check_Generic_Actuals): New predicate
33708 Denotes_Previous_Actual, to handle properly the case of a private
33709 actual that is also the component type of a subsequent array actual.
33710 The visibility status of the first actual is not affected when the
33711 second is installed.
33712 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
33713 make fully recursive the treatment of formals of packages declared
33714 with a box.
33715 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
33716 the above on exit from an instantiation.
33717 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
33718 current instantiation which is now complete.
33719 (Analyze_Package_Instantiation): No instantiated body is needed if the
33720 main unit is generic. Efficient, and avoid anomalies when a instance
33721 appears in a package accessed through rtsfind.
33722
27ad9660
ES
337232004-10-04 Ed Schonberg <schonberg@gnat.com>
33724
33725 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
33726 do not generate a declaration for a temporary if the call is part of a
33727 library-level instantiation.
33728
1c6c6771
ES
337292004-10-04 Ed Schonberg <schonberg@gnat.com>
33730
33731 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
33732 searching for a limited component to flag.
33733
33734 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
33735 expansion of Input, to account for the fact that the implicit call
33736 generated by the attribute reference must freeze the user-defined
33737 stream subprogram. This is only relevant to 'Input, because it can
33738 appear in an object declaration, prior to the body of the subprogram.
33739
33740 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
33741 expansion can proceed and further errors uncovered.
33742 (Minor clean up): Fix cases of using | instead of \ for continuation
33743 messages.
33744
8005f3e5
RK
337452004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33746
33747 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
33748
33749 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
33750 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
33751 Use gcc_assert and gcc_unreachable.
33752
33753 * decl.c (gnat_to_gnu_entity, case object): Check and process a
33754 specified alignment before validating size.
33755 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
33756 stripped-down declaration for the type of the inner field when making
33757 a JM type.
33758
33759 * utils.c (finish_record_type): Do not compute the size in units
33760 incrementally. Instead compute it once for the rep clause case.
33761 Use gcc_assert and gcc_unreachable.
33762
6a294a29
VC
337632004-10-04 Vincent Celier <celier@gnat.com>
33764
33765 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
33766 in file name.
33767 (Is_Valid_Path_Name): Take '/' as a directory separator.
33768
9a080ea3
VC
337692004-10-04 Vincent Celier <celier@gnat.com>
33770
33771 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
33772 (Extended_Project) only if Extended_Project is defined, to avoid
33773 assertion error.
33774 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
33775 resolved path.
33776 (Parse_Single_Project): Ditto.
33777
33778 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
33779 Add_To_Project_Path for virtual projects.
33780
51004cb5
VC
337812004-10-04 Vincent Celier <celier@gnat.com>
33782
15cd18b9
SS
33783 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33784 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33785 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
51004cb5
VC
33786 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
33787 parameter Options_2.
33788
33789 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
33790 Build_Dynamic_Library with an empty Options_2.
33791
33792 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
33793 default anymore.
33794
33795 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
33796 directory separator, if any.
33797 (Gprmake): Do not allow mains on the command line for library projects.
33798 Do not attempt to link when the project is a library project.
33799 (Library_Opts): New table to store Library_Options.
33800 (Build_Library): If Library_Options is specified, pass these options
33801 when building a shared library.
33802
3b37ffbf
JR
338032004-10-04 Jose Ruiz <ruiz@act-europe.fr>
33804
33805 * s-tposen.adb (Service_Entry): The object must be always unlocked at
33806 the end of this procedure now that the unlock operation was inserted
33807 by the expander.
33808
b23e28d5
JR
338092004-10-04 Jose Ruiz <ruiz@act-europe.fr>
33810
33811 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
33812 corresponding to the Preallocated_Stacks flags in System.
33813 (Get_Target_Parameters): Including the processing for
33814 Preallocated_Stacks.
33815
15cd18b9
SS
33816 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
33817 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
33818 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33819 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
33820 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
33821 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
33822 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
33823 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
33824 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
33825 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
b23e28d5
JR
33826 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
33827 used to signal whether the compiler creates the required stacks and
33828 descriptors for the different tasks (when True) or it is done by the
33829 underlying operating system at run time (when False).
33830 It is initially set to False in all targets.
33831
33832 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
33833 if it is supported by the target.
33834 (Make_Task_Create_Call): Pass the stack address if it has been
33835 previously created. Otherwise pass a Null_Address.
33836
33837 * snames.adb: Add _stack.
33838
33839 * snames.ads: Add Name_uStack. Required to allow the expander to
33840 statically allocated task stacks.
33841
33842 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
33843 Stack_Address argument.
33844 Check that its value is equal to Null_Address because this target does
33845 not support the static stack allocation.
33846
6fd459bb
TQ
338472004-10-04 Thomas Quinot <quinot@act-europe.fr>
33848
33849 * usage.adb: Change "pragma inline" to "pragma Inline" in information
33850 and error messages
33851
5885facb
TQ
338522004-10-04 Thomas Quinot <quinot@act-europe.fr>
33853
33854 * exp_dist.adb: Split declaration of asynchronous flag out of
33855 Add_RACW_Read_Attribute.
33856 Minor reformatting for better alignment with PolyORB version.
33857 Store the entity for the asynchronous flag of an RACW, rather than the
33858 expression, in the asynchronous flags table. This will allow this flag
33859 to be used in other subprograms beside Add_RACW_Read_Attribute.
33860
d6c7ed50
TQ
338612004-10-04 Thomas Quinot <quinot@act-europe.fr>
33862
33863 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
15cd18b9
SS
33864 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
33865 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
33866 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
d6c7ed50
TQ
33867 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
33868 sockets constant MSG_NOSIGNAL (Linux-specific).
33869 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
33870 all Send operations.
33871 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
33872 from trigerring SIGPIPE.
33873 Rename components to avoid clash with Ada 2005 possible reserved
33874 word 'interface'.
33875 (Check_Selector): When the select system call returns with an error
33876 condition, propagate Socket_Error to the caller.
33877
0f0377f6
JH
338782004-10-01 Jan Hubicka <jh@suse.cz>
33879
33880 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
33881
2c9beb8a
RD
338822004-09-23 Robert Dewar <dewar@gnat.com>
33883
33884 PR ada/17540
2c9beb8a
RD
33885 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
33886 instead do this at freeze time (we won't do it if there is an address
33887 clause).
33888 Change "pragma inline" to "pragma Inline" in information and error
33889 messages.
33890 Minor reformatting.
33891
33892 * freeze.adb (Check_Address_Clause): Remove previous change, not the
33893 right way of doing things after all.
33894 (Freeze_Entity): For object, set Is_Public for imported entities
33895 unless there is an address clause present.
33896
2494e673
OH
338972004-09-21 Olivier Hainque <hainque@act-europe.fr>
33898
33899 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
33900 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
33901 ensures proper handling of types with rep clauses, which might have
33902 their TYPE_SIZE set already.
33903
910d20fc
RD
339042004-09-21 Robert Dewar <dewar@gnat.com>
33905
33906 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
33907 packed array types in both little- and big-endian cases. This change
33908 ensures that we no longer count on the unused bits being initialized
33909 for such types (and in particular ensures that equality testing will
33910 only read the relevant bits).
33911 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33912 These changes mean that we no longer need to initialize small packed
33913 arrays.
33914 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
33915 optimization to an LJM field as to its parent field.
33916
33917 * ada-tree.h, trans.c, utils.c, utils2.c:
33918 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
33919
8f235343
JH
339202004-09-20 Jan Hubicka <jh@suse.cz>
33921
33922 * utils.c (gnat_finalize): Remove.
33923 (end_subprog_body): Directly call cgraph_finalize_function;
33924 do not lower the nested functions.
33925
bb9be5eb
RD
339262004-09-20 Robert Dewar <dewar@gnat.com>
33927
33928 PR ada/17540
bb9be5eb
RD
33929 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
33930 if an address clause is present, since that means that the Import
33931 should be ignored.
33932
796ef2e2
AC
339332004-09-20 Arnaud Charlet <charlet@act-europe.fr>
33934
33935 * 5tsystem.ads: Removed, no longer used.
33936
6615c446
JO
339372004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
33938 Zack Weinberg <zack@codesourcery.com>
33939
33940 * ada-tree.def: Use tree_code_class enumeration constants
33941 instead of code letters.
33942 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
33943 Update for new tree-class enumeration constants.
33944
93ed8a01
VC
339452004-09-17 Vincent Celier <celier@gnat.com>
33946
33947 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
33948 capabilities of the general project manager.
33949
c885d7a1
AC
339502004-09-09 Vincent Celier <celier@gnat.com>
33951
33952 * a-direct.ads: Add pragma Ada_05
33953 (Directory_Entry_Type): Give default value to component Kind to avoid
33954 not initialized warnings.
33955
33956 * a-direct.adb (Current_Directory): Remove directory separator at the
33957 end.
33958 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
33959 an existing directory.
33960 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
33961 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
33962 Convert the result to File_Size.
33963
33964 * prj.ads: (Project_Error): New exception
33965
33966 * prj-attr.adb: Except in procedure Initialize, Fail comes from
33967 Prj.Com, not from Osint.
33968 (Attrs, Package_Attributes): Tables moved to private part of spec
33969 (Add_Attribute, Add_Unknown_Package): Moved to new child package
33970 Prj.Attr.PM.
33971 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
33972 Prj.Project_Error after call to Fail.
33973 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
33974 Fail. Check that package name is not already in use.
33975
33976 * prj-attr.ads: Comment updates to indicate that all subprograms may be
33977 used by tools, not only by the project manager, and to indicate that
33978 exception Prj.Prj_Error may be raised in case of problem.
33979 (Add_Unknown_Package, Add_Attribute): Moved to new child package
33980 Prj.Attr.PM.
33981 (Attrs, Package_Attributes): Table instantiations moved from the body to
33982 the private part to be accessible from Prj.Attr.PM body.
33983
33984 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
33985 from new package Prj.Attr.PM.
33986 (Parse_Attribute_Declaration): Call Add_Attribute from new package
33987 Prj.Attr.PM.
33988
33989 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
33990
33991 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
33992 instead of Elaboration_Checks).
33993
33994 * a-calend.adb: Minor reformatting
33995
339962004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33997
33998 * gigi.h (maybe_pad_type): New declaration.
33999 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
34000
34001 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
34002
34003 * cuintp.c: Convert to use buildN.
34004
34005 * decl.c (maybe_pad_type): No longer static.
34006 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
34007 target pointer.
34008 Convert to use buildN.
34009
34010 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
34011 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
34012 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
34013 RHS.
34014 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
34015 (gnat_gimplify_expr, case ADDR_EXPR): New case.
34016 Convert to use buildN.
34017
34018 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
34019 TREE_READONLY for const.
34020 Convert to use buildN.
34021
34022 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
34023 (create_var_decl): Refine when TREE_STATIC is set.
34024 Convert to use buildN.
34025
340262004-09-09 Gary Dismukes <dismukes@gnat.com>
34027
34028 * gnat_ugn.texi: Delete text relating to checking of ali and object
34029 consistency.
34030
34031 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
34032 routines.
34033
340342004-09-09 Jose Ruiz <ruiz@act-europe.fr>
34035
34036 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
34037 pragmas recognized by GNAT.
34038
34039 * gnat_rm.texi: Document pragma Detect_Blocking.
34040
34041 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
34042 raise Program_Error if called from a protected operation.
34043
34044 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
34045 the protected action nesting level.
34046 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
34047 protected action nesting level.
34048 (Unlock): When pragma Detect_Blocking is active decrease the protected
34049 action nesting level.
34050
34051 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
34052 Protected_Action_Nesting.
34053
34054 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
34055 Common_ATCB record. It contains the dynamic level of protected action
34056 nesting for each task. It is needed for checking whether potentially
34057 blocking operations are called from protected operations.
34058 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
34059 Detect_Blocking is active or not in the partition.
34060
34061 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
34062 raise Program_Error if called from a protected operation.
34063 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
34064 Program_Error if called from a protected operation.
34065 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
34066 Program_Error if called from a protected operation.
34067
34068 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
34069 raise Program_Error if called from a protected operation.
34070
34071 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
34072 raise Program_Error if called from a protected operation, and increase
34073 the protected action nesting level.
34074 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
34075 Program_Error if called from a protected operation, and increase the
34076 protected action nesting level.
34077 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
34078 protected action nesting level.
34079
34080 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
34081 raise Program_Error if called from a protected operation, and increase
34082 the protected action nesting level.
34083 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
34084 Program_Error if called from a protected operation, and increase the
34085 protected action nesting level.
34086 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
34087 raise Program_Error if called from a protected operation.
34088 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
34089 active, raise Program_Error if called from a protected operation.
34090 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
34091 protected action nesting level.
34092
34093 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
34094 insertion of the statement raising Program_Error. The run time
34095 contains the required machinery for handling that.
34096
34097 * sem_util.ads: Change comment associated to procedure
34098 Check_Potentially_Blocking_Operation.
34099 This procedure does not insert a call for raising the exception because
34100 that is currently done by the run time.
34101
34102 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
34103
34104 * init.c: Add the global variable __gl_detect_blocking that indicates
34105 whether pragma Detect_Blocking is active (1) or not (0). Needed for
34106 making the pragma available at run time.
34107 (__gnat_set_globals): Pass and update the detect_blocking parameter.
34108
34109 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
34110 pragma Detect_Blocking is active.
34111
34112 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
34113
34114 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
34115 DB is found in the ali file. Any unit compiled with pragma
34116 Detect_Blocking active forces its effect in the whole partition.
34117
34118 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
34119 Detect_Blocking is active and delay is called from a protected
34120 operation.
34121
34122 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
34123 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
34124 Detect_Blocking is active (0 otherwise).
34125 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
34126 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
34127 otherwise).
34128
341292004-09-09 Thomas Quinot <quinot@act-europe.fr>
34130
34131 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
34132 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
34133 package.
34134
34135 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
34136 (Register_Receiving_Stub): Add Subp_Info formal parameter.
34137 Update API in placeholder implemetation of s-parint to reflect changes
34138 in distribution runtime library.
34139
34140 * sem_ch3.adb (Expand_Derived_Record): Rename to
34141 Expand_Record_Extension.
34142
34143 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
34144 primitive operations of potentially distributed object types that have
34145 non-controlling anonymous access formals.
34146
34147 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
34148 subprogram.
34149 New implementation of expansion for remote access-to-subprogram types,
34150 based on the RACW infrastructure.
34151 This version of sem_dist is compatible with PolyORB/DSA as well as
34152 GLADE.
34153
34154 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
34155 Asynchrronous that applies to a remote access-to-subprogram type, mark
34156 the underlying RACW type as asynchronous.
34157
34158 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
34159 __gnat_using_gnu_linker to 1.
34160
34161 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
34162 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
34163 GNAT.Perfect_Hash_Generators, and remove the empty
34164 GNAT.Perfect_Hash package.
34165
34166 * atree.adb: Minor reformatting
34167
34168 * exp_ch3.adb (Expand_Derived_Record): Rename to
34169 Expand_Record_Extension.
34170 (Build_Record_Init_Proc.Build_Assignment): The default expression in
34171 a component declaration must remain attached at that point in the
34172 tree so New_Copy_Tree copies it if the enclosing record type is derived.
34173 It is therefore necessary to take a copy of the expression when building
34174 the corresponding assignment statement in the init proc.
34175 As a side effect, in the case of a derived record type, we now see the
34176 original expression, without any rewriting that could have occurred
34177 during expansion of the ancestor type's init proc, and we do not need
34178 to go back to Original_Node.
34179
34180 * exp_ch3.ads (Expand_Derived_Record): Rename to
34181 Expand_Record_Extension.
34182
34183 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
34184 Returns the RACW type used to implement a remote access-to-subprogram
34185 type.
34186 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
34187 New subprograms. Used to create a proxy tagged object for a remote
34188 subprogram. The proxy object is used as the designated object
34189 for RAS values on the same partition (unless All_Calls_Remote applies).
34190 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
34191 System.Partition_Interface.Get_Unique_Remote_Pointer.
34192 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
34193 Renamed from Add_RAS_*_Attribute.
34194 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
34195 subprograms.
34196 New implementation of expansion for remote access-to-subprogram types,
34197 based on the RACW infrastructure.
34198
34199 * exp_dist.ads (Copy_Specification): Update comment to note that this
34200 function can copy the specification from either a subprogram
34201 specification or an access-to-subprogram type definition.
34202
342032004-09-09 Ed Schonberg <schonberg@gnat.com>
34204
34205 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
34206 in an instance, between an explicit subprogram an one inherited from a
34207 type derived from an actual.
34208
34209 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
34210 add a polling call if the subprogram is to be inlined by the back-end,
34211 to avoid repeated calls with multiple inlinings.
34212
34213 * checks.adb (Apply_Alignment_Check): If the expression in the address
34214 clause is a call whose name is not a static entity (e.g. a dispatching
34215 call), treat as dynamic.
34216
342172004-09-09 Robert Dewar <dewar@gnat.com>
34218
34219 * g-trasym.ads: Minor reformatting
34220
34221 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
34222 packed arrays, since unused bits are expected to be zero for a
34223 comparison.
34224
342252004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
34226
34227 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
34228 comment.
34229
342302004-09-09 Pascal Obry <obry@gnat.com>
34231
34232 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
34233 enable map file generation. Add the right option to generate the map
34234 file if Map_File is set to True.
34235
34236 * gnatdll.adb (Gen_Map_File): New variable.
34237 (Syntax): Add info about new -m (Map_File) option.
34238 (Parse_Command_Line): Add support for -m option.
34239 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
34240 Minor reformatting.
34241
342422004-09-09 Laurent Pautet <pautet@act-europe.fr>
34243
34244 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
34245 new gnatdist implementation.
34246 Define a subpackage isolating the output routines specific to this
34247 verbose mode.
34248
342492004-09-09 Joel Brobecker <brobecker@gnat.com>
34250
34251 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
34252
34253 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
34254
342552004-09-09 Cyrille Comar <comar@act-europe.fr>
34256
34257 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
34258 internal unit.
34259
34260 * opt.ads: Add Ada_Version_Runtime constant used to decide which
34261 version of the language is used to compile the run time.
34262
342632004-09-09 Arnaud Charlet <charlet@act-europe.fr>
34264
34265 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
34266 of variable length temporaries for function return now that the
34267 back-end and gigi support it.
34268
23c7b149 342692004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
34270
34271 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
34272
34273 * trans.c (struct stmt_group): Delete field GLOBAL.
34274 (gnat_init_stmt_group): Do not initialize it.
34275 (call_to_gnu): Use save_expr, not protect_multiple_eval.
34276 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
34277 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
34278 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
34279 (start_stmt_group): Likewise.
34280 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
34281
34282 * utils2.c (ggc.h): Include.
34283 (build_call_raise): Call build_int_cst, not build_int_2.
34284
34285 * utils.c (gnat_init_decl_processing): Fix arg to
34286 build_common_tree_nodes.
34287 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
34288 (gnat_define_builtin): Set built_in_decls.
34289 (init_gigi_decls): Call build_int_cst, not build_int_2.
34290
34291 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
34292 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
34293 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
34294 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
34295 SET_TYPE_MODULE): Use them.
34296 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
34297 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
34298 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
34299 SET_TYPE_ADA_SIZE): Likewise.
34300 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
34301 (DECL_CONST_CORRESPONDING_VAR,
34302 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
34303 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
34304 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
34305 (TYPE_RM_SIZE_NUM): New macro.
34306 (TYPE_RM_SIZE): Modified to use above.
34307
34308 * cuintp.c: (build_cst_from_int): New function.
34309 (UI_To_gnu): Use it.
34310
34311 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
34312 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
34313 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
34314 MIN_EXPR for the size, copy it into new.
34315
23c7b149 343162004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
34317
34318 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
34319 packed indexed component where array is an IN OUT formal. This
34320 generated garbage code previously.
34321
34322 * gnat_ugn.texi: Document -fverbose-asm
34323
34324 * gnat-style.texi: Minor updates (note that boolean constants and
34325 variables are joined with AND/OR rather than short circuit forms).
34326
23c7b149 343272004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
34328
34329 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
34330 it is an upward conversion of an untagged type with no representation
34331 change.
34332
23c7b149 343332004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
34334
34335 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
34336 System.Partition_Interface.
34337
34338 * checks.adb (Apply_Access_Checks): Do not generate checks when
34339 expander is not active (but check for unset reference to prefix of
34340 dereference).
34341
34342 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
34343 pragma Debug as an if statement with a constant condition, for
34344 consistent treatment of entity references contained within the
34345 enclosed procedure call.
34346
23c7b149 343472004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
34348
34349 * bindgen.adb: (Set_EA_Last): New procedure
34350 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
34351 Set_EA_Last.
34352 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
34353 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
34354 linked without errors.
34355 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
34356 ST and EA.
34357 (Gen_Exception_Table_C): Correct same bugs
34358
34359 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
34360
34361 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
34362 on Windows, make sure that the drive letter is in upper case.
34363
34364 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
34365 Windows, when the drive letter is added and Case_Sensitive is True, the
34366 drive letter is forced to upper case.
34367
34368 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
34369 to Options_2 for the call to MLib.Utl.Gcc.
34370
34371 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
34372 directory separator when defining BASE_DIR.
34373
23c7b149 343742004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
34375
34376 * gprcmd.adb (Extend): Do not output trailing directory separator. This
34377 is not needed and it confuses Windows GNU/make which does not report
34378 directory terminated by a slash as a directory.
34379 (gprcmd): Idem for "pwd" internal command.
34380
34381 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
34382 target names rewrite to fix regressions with recent version of
34383 GNU/make. Starting with GNU/make 3.80 the pipe character was not
34384 handled properly anymore.
34385
4eb104c1
AS
343862004-09-01 Andreas Schwab <schwab@suse.de>
34387
34388 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
34389 * raise.c [!IN_RTS]: Undef abort.
34390
6a6bfc8e
NS
343912004-08-27 Nathan Sidwell <nathan@codesourcery.com>
34392
ce552f75
NS
34393 * utils2.c (build_allocator): Use ssize_int.
34394
6a6bfc8e
NS
34395 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
34396
f8b7bf58
AS
343972004-08-27 Andreas Schwab <schwab@suse.de>
34398
34399 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
34400
15793d0c
NS
344012004-08-25 Nathan Sidwell <nathan@codesourcery.com>
34402 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 34403
15793d0c
NS
34404 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
34405
7d60be94
NS
344062004-08-25 Nathan Sidwell <nathan@codesourcery.com>
34407
34408 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
34409 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34410 * utils.c (init_gigi_decls): Likewise.
34411 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 34412
8c1d6d62
NS
344132004-08-24 Nathan Sidwell <nathan@codesourcery.com>
34414
7d60be94 34415 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
34416 build_common_tree_nodes call.
34417
3224bead
NS
344182004-08-20 Nathan Sidwell <nathan@codesourcery.com>
34419
34420 * utils2.c (build_allocator): Use build_int_cst for negative
34421 size types.
34422
4766261d
RH
344232004-08-18 Richard Henderson <rth@redhat.com>
34424
34425 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
34426
1f6c00df
NS
344272004-08-16 Nathan Sidwell <nathan@codesourcery.com>
34428
34429 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
34430 call.s
34431 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
34432 (gnat_to_gnu): Likewise.
34433
4c46b835
AC
344342004-08-16 Pascal Obry <obry@gnat.com>
34435
34436 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
34437 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
34438 option and not mdll anymore. Update comment.
34439
344402004-08-16 Pascal Obry <obry@gnat.com>
34441
34442 * bld.adb (Put_Include_Project): Properly handle directory separators
34443 on Windows.
34444
344452004-08-16 Ed Schonberg <schonberg@gnat.com>
34446
34447 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
34448 decreasing the number of allocated junk nodes while searching for the
34449 appropriate subprogram.
34450
4a90aeeb
NS
344512004-08-15 Nathan Sidwell <nathan@codesourcery.com>
34452
34453 * cuintp.c (UI_To_gnu): Use build_int_cst..
34454 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34455 * utils.c (init_gigi_decls): Likewise.
34456 * utils2.c (build_call_raise): Likewise.
34457
244e5a2c
AC
344582004-08-13 Olivier Hainque <hainque@act-europe.fr>
34459
34460 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
34461 for a global aliased object with a variable size and an unconstrained
34462 nominal subtype, pretend there is no initializer if the one we have is
34463 incomplete, and avoid referencing an inexistant component in there. The
34464 part we have will be rebuilt anyway and the reference may confuse
34465 further operations.
34466
344672004-08-13 Thomas Quinot <quinot@act-europe.fr>
34468
34469 * einfo.ads: Minor reformatting
34470
34471 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
34472 restrictions in the ALI if we only want to warn about violations.
34473
344742004-08-13 Vincent Celier <celier@gnat.com>
34475
34476 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
34477 when creating a new Unit_Record in table Units.
34478
34479 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
34480 that are violated, if any.
34481
34482 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
34483 add directory separator if path already ends with a directory separator.
34484
344852004-08-13 Ed Schonberg <schonberg@gnat.com>
34486
34487 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
34488 unit, this is an attempt to inline a construct that is not available in
34489 the current restricted mode, so abort rather than trying to continue.
34490
34491 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
34492 discriminants that rename those of the parent, recover names of
34493 original discriminants for the constraint on the full view of the
34494 parent.
34495 (Complete_Private_Subtype): Do not create a subtype declaration if the
34496 subtype is an itype.
34497
34498 * gnat_rm.texi: Added section on implementation of discriminated
34499 records with default values for discriminants.
34500
345012004-08-13 Ed Schonberg <schonberg@gnat.com>
34502
34503 PR ada/15601
34504 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
34505 the second operand is overloaded.
34506
1a186ec5
RH
345072004-08-10 Richard Henderson <rth@redhat.com>
34508
34509 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
34510 add __builtin_alloca.
34511
89f1a702
RH
345122004-08-10 Richard Henderson <rth@redhat.com>
34513
34514 * config-lang.in (boot_language): Yes.
34515
5d09245e
AC
345162004-08-09 Thomas Quinot <quinot@act-europe.fr>
34517
34518 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
34519 from complaining on potential uninitialized reference.
34520 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
34521 new specification and test explicitly for non-zero return value.
34522
34523 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
34524 returning C.int, to avoid using a derived boolean type.
34525
34526 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
34527 Duplicate_Subexpr_No_Checks in preference to direct use of
34528 Remove_Side_Effects and New_Copy_Tree.
34529 Clear Comes_From_Source on prefix of 'Size attribute reference.
34530
34531 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
34532 g-socthi-vxworks.adb: Change calls to
34533 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
34534 and test explicitly for non-zero return value.
34535
6615c446 34536 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
34537 (Is_Socket_In_Set): Declare imported function as returning C.int, to
34538 avoid using a derived boolean type.
34539
345402004-08-09 Albert Lee <lee@gnat.com>
34541
34542 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
34543
345442004-08-09 Pascal Obry <obry@gnat.com>
34545
34546 * gnat_ugn.texi: Document new way to build DLLs on Windows using
34547 GCC's -shared option.
34548
34549 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
34550 Options_2 parameter (options put after object files).
34551
345522004-08-09 Olivier Hainque <hainque@act-europe.fr>
34553
34554 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
34555 ignore overflows on low and high bounds of an index to also account for
34556 differences in signedness between sizetype and gnu_index_subtype.
34557 These are as legitimate as the ones caused by a lower TYPE_PRECISION
34558 on sizetype.
34559
345602004-08-09 Robert Dewar <dewar@gnat.com>
34561
34562 * s-solita.ads, s-solita.adb: Minor reformatting
34563
34564 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
34565 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
34566 obsolescent section
34567 Add note that No_Implicit_Conditionals does not suppress
34568 run time constraint checks.
34569
34570 * vms_conv.ads: Minor reformatting
34571
34572 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
34573 and necessary for following change).
34574 (Mark): Return new format Mark_Id containing sec stack address
34575 (Release): Use sec stack address from Mark_Id avoiding Self call
34576
34577 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
34578 pointer (cleanup and necessary for following change).
34579 Define Mark_Id as record containing address of secondary stack, that way
34580 Release does not need to find the stack again, decreasing the number of
34581 calls to Self and improving efficiency.
34582
34583 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
34584
34585 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
34586 case variable into the individual case branches when possible.
34587
34588 * sem_ch11.adb: Minor reformatting
34589
34590 * prj.ads: Correct spelling of suffixs
34591
34592 * prj-nmsc.adb: Minor reformatting
34593 Correct spelling suffixs throughout (also in identifiers)
34594
34595 * freeze.adb: Minor spelling correction
34596
34597 * exp_ch2.adb: Cleanups to handling of Current_Value
34598 (no functional effect).
34599
34600 * bld.adb: Correct spelling of suffixs
34601
34602 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
34603
346042004-08-09 Ed Schonberg <schonberg@gnat.com>
34605
34606 PR ada/15408
5d09245e
AC
34607 * sem_ch7.adb (Install_Private_Declarations): In the body of the
34608 package or of a child, private entities are both immediately_visible
34609 and not hidden.
34610
346112004-08-09 Ed Schonberg <schonberg@gnat.com>
34612
34613 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
34614 there are no range checks on the value of the literal.
34615
34616 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
34617 wrapped is the triggering alternative of an asynchronous select, action
34618 statements mustbe inserted before the select itself.
34619
34620 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
34621 case where the prefix is a protected function call.
34622 (Resolve_Attribute, case 'Access): The attribute reference on a
34623 subprogram is legal in a generic body if the subprogram is declared
34624 elsewhere.
34625
346262004-08-09 Vincent Celier <celier@gnat.com>
34627
34628 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
34629 languages, otherwise building the library may fail with unresolved
34630 symbols.
34631 (Compile_Sources): Do not build libraries if -c switch is used
34632
34633 * gnatlink.adb (Process_Args): New switches -M and -Mmap
34634 (Write_Usage): If map file creation is supported, output new switches
34635 -M and -Mmap.
34636 (Gnatlink): When -M is specified, add the necessary switch(es) to the
34637 gcc call, when supported.
34638
34639 * Makefile.in: Added indepsw.o to the object list for gnatlink
34640 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
34641
34642 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
34643 indepsw.adb, indepsw.ads: New files.
34644
346452004-08-09 Bernard Banner <banner@gnat.com>
34646
34647 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
34648
34649 * Makefile.in: add section for vxworks x86
34650
346512004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
34652
34653 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
34654 per-object constrained components where the discriminant is of an
34655 Access type.
34656 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
34657 the parent initialization procedure for derived Unchecked_Unions.
34658 Instead, derived Unchecked_Unions build their own initialization
34659 procedure.
34660 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
34661 Check the body of the subprogram for details.
34662 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
34663 functions for derived Unchecked_Union types by introducing a condition.
34664 Allow the creation of TSS equality functions for Unchecked_Unions.
34665 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
34666 Add formal parameter Discr to function signature. Discr is used to
34667 control the generated case statement for Unchecked_Union types.
34668 (Make_Eq_If): Rename formal parameter Node to E in function signature.
34669
34670 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
34671 Unchecked_Unions.
34672 Check the body of the subprogram for details.
34673 (Expand_Composite_Equality): Augment composite type equality to include
34674 correct handling of Unchecked_Union components.
34675 (Expand_N_In): Add condition to detect illegal membership tests when the
34676 subtype mark is a constrained Unchecked_Union and the expression lacks
34677 inferable discriminants, and build a Raise_Program_Error node.
34678 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
34679 to detect types that contain components of unconstrained Unchecked_Union
34680 subtype. Add condition to detect equality between types that have an
34681 unconstrained Unchecked_Union component, and build a Raise_Program_Error
34682 node. Add condition to detect equality between Unchecked_Union types
34683 that lack inferable discriminants, and build a Raise_Program_Error node.
34684 Otherwise build a TSS equality function call.
34685 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
34686 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
34687 with the operand lacking inferable discriminants, and build a Raise_
34688 Program_Error node.
34689 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
34690 composite equality.
34691 (Has_Inferable_Discriminants): Implement new predicate for objects and
34692 expressions of Unchecked_Union type. Check the body of subprogram for
34693 details.
34694 (Has_Unconstrained_UU_Components): Add function
34695 Component_Is_Unconstrained_UU. It is used to detect whether a single
34696 component is of an unconstrained Unchecked_Union subtype. Add function
34697 Variant_Is_Unconstrained_UU. It is used to detect whether a single
34698 component inside a variant is of an unconstrained Unchecked_Union type.
34699
34700 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
34701 inferred discriminant values. Add condition to generate a case
34702 statement with an inferred discriminant as the switch.
34703 (Make_Component_List_Assign): Introduce a Boolean flag that determines
34704 the behaviour of the subprogram in the presence of an Unchecked_Union.
34705 Add condition to trigger the usage of the inferred discriminant value
34706 as the generated case statement switch.
34707 (Make_Field_Assign): Introduce a Boolean flag that determines the
34708 behaviour of the subprogram in the presence of an Unchecked_Union. Add
34709 condition to trigger the usage of the inferred discriminant value as
34710 the right-hand side of the generated assignment.
34711
34712 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
34713 parameter generation when dealing with Unchecked_Unions.
34714
34715 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
34716 checks for Unchecked_Unions.
34717
34718 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
34719
34720 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
34721 Raise_Program_Error nodes for the execution of Read and Write
34722 attributes of Unchecked_Union types and the execution of Input and
34723 Output attributes of Unchecked_Union types that lack default
34724 discriminant values.
34725
34726 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
34727 Unchecked_Union. Add procedure Check_Component. It is used to inspect
34728 per-object constrained components of Unchecked_Unions for being
34729 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
34730 check individual components withing a variant.
34731
34732 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
34733 comparison of Unchecked_Unions.
34734 (Resolve_Equality_OP): Remove guard that prevents equality between
34735 Unchecked_Unions.
34736
34737 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
34738 of component subtypes for Unchecked_Union components.
34739 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
34740 since it is the actual subtype.
34741
34742 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
34743 pass of Unchecked_Union subtypes as generic actuals to formal types
34744 that lack known_discriminant_parts or that are derived Unchecked_Union
34745 types, and do nothing. In any other case, produce an error message.
34746
34747 * sem_ch3.adb (Analyze_Component_Declaration): Add function
34748 Contains_POC. It determines whether a constraint uses the discriminant
34749 of an enclosing record type.
34750 Add condition to detect per-object constrained component and set the
34751 appropriate flag.
34752 (Derived_Type_Declaration): Remove guard that prevents derivation from
34753 Unchecked_Union types.
34754 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
34755 Union subtypes.
34756
34757 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
34758 references to Unchecked_Union discriminants.
34759
34760 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
34761 formal generation when dealing with Unchecked_Unions.
34762 (Set_Actual_Subtypes): Add condition to prevent generation of actual
34763 subtypes for Unchecked_Unions.
34764
34765 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
34766 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
34767 completions of discriminated partial views by Unchecked_Unions and
34768 produce an error message.
34769
347702004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34771
34772 * trans.c (struct stmt_group): New field, GLOBAL.
34773 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
34774 (struct elab_info): New struct.
34775 (elab_info_list, gnu_elab_proc_stack): New variables.
34776 (Compilation_Unit_to_gnu): New procedure.
34777 (gigi): Call it and also handle elaboration procs we've saved.
34778 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
34779 global field from parent.
34780 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
34781 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
34782 (start_stmt_group): Initialize global field from parent.
34783 (add_decl_expr): Set to global for current statement group.
34784 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
34785 post.
34786
34787 * utils.c (global_bindings_p): True when no current_function_decl; no
34788 longer check current_binding_level.
34789
347902004-08-09 Ben Brosgol <brosgol@gnat.com>
34791
34792 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
34793 choice.
34794
34795 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
34796
160ff372
AS
347972004-08-06 Andreas Schwab <schwab@suse.de>
34798
34799 * utils.c (gnat_define_builtin): Remove second parameter of
34800 make_decl_rtl.
34801 (begin_subprog_body): Likewise.
34802
615cbd95
AC
348032004-07-26 Arnaud Charlet <charlet@act-europe.fr>
34804
34805 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
34806 optimization, not supported by the tree-ssa back-end.
34807
348082004-07-26 Olivier Hainque <hainque@act-europe.fr>
34809
34810 * s-mastop-irix.adb: Update comments.
34811
34812 * a-except.adb (Exception_Information): Raise Constraint_Error if
34813 exception Id is Null_Id.
34814 This is required behavior, which is more reliably and clearly checked
34815 at the top level interface level.
34816
348172004-07-26 Javier Miranda <miranda@gnat.com>
34818
34819 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
34820 call if a component has no default_expression and the box is used.
34821
34822 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
34823 default_expression and you use box, it behaves as if you had declared a
34824 stand-alone object.
34825 (Resolve_Record_Aggregate): If a component has no default_expression and
34826 you use box, it behaves as if you had declared a stand-alone object.
34827
34828 * sem_ch10.adb (Install_Siblings): Do not make visible the private
34829 entities of private-with siblings.
34830
348312004-07-26 Ed Schonberg <schonberg@gnat.com>
34832
34833 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
34834 for a component of an itype, set the parent pointer for analysis,
34835 there is no list in which to insert it.
34836
34837 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
34838 bona-fide renamings, not for inherited operations.
34839
34840 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
34841 actual for a formal that is an access parameter, create local
34842 finalization list even if the expression is not an aggregate.
34843
348442004-07-26 Ed Schonberg <schonberg@gnat.com>
34845
34846 PR ada/16213
34847 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
34848 Diagnose properly illegal subprogram renamings that are library units.
34849
348502004-07-26 Ed Schonberg <schonberg@gnat.com>
34851
34852 PR ada/15588
34853 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
34854 conversion rewritten as an unchecked conversion, check that original
34855 expression is a variable.
34856
34857 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
34858 unchecked_conversion, create new node rather than rewriting in place,
34859 to preserve original construct.
34860
348612004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34862
34863 * gigi.h (gnat_expand_body): Deleted.
34864
34865 * Make-lang.in: (trans.o): Depends on function.h.
34866
34867 * misc.c: (gnat_expand_body): Moved to here.
34868
34869 * trans.c (gnat_expand_body_1): Deleted.
34870 (gnat_expand_body): Moved from here.
34871 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
34872 (add_stmt): Check for marked visited with global_bindings_p.
34873 (gnat_gimplify_expr, case COMPONENT_REF): New case.
34874 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
34875
34876 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
34877 VIEW_CONVERT_EXPR if not operation type.
34878
34879 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
34880 fat pointer.
34881
34882 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
34883 changes: reformatting of negation operators, removing unneeded
34884 inequality comparison with zero, converting equality comparisons with
34885 zero to negations, changing int/0/1 to bool/false/true, replace calls
34886 to gigi_abort with abort, and various other similar changes.
34887
348882004-07-26 Vincent Celier <celier@gnat.com>
34889
34890 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
34891 "setup".
34892
34893 * make.adb (Gnatmake): Fail when a library is not present and there is
34894 no object directory.
34895
34896 * mlib-prj.adb (Check_Library): No need to check if the library needs
34897 to be rebuilt if there is no object directory, hence no object files
34898 to build the library.
34899
34900 * opt.ads (Setup_Projects): New Boolean flag.
34901
34902 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
34903 Location.
34904 Create directory when Kind /= "" and in "gnat setup". Report error if
34905 directory cannot be created.
34906 (Ada_Check): Create library interface copy dir if it does not exist
34907 and we are in "gnat setup".
34908 (Find_Sources): No error if in "gnat setup" and no Ada sources were
34909 found.
34910 (Language_Independent_Check): Create object directory, exec directory
34911 and/or library directory if they do not exist and we are in
34912 "gnat setup".
34913
34914 * vms_conv.ads: (Command_Type): New command Setup.
34915
34916 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
34917
34918 * vms_data.ads: Add qualifiers/switches for new built-in command
34919 "setup".
34920
b785f485
RH
349212004-07-25 Richard Henderson <rth@redhat.com>
34922
34923 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
34924 DECL_IGNORED_P on RESULT_DECL.
34925
35ae2ed8
AC
349262004-07-20 Olivier Hainque <hainque@act-europe.fr>
34927
34928 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
34929 allocation and potentially overflowing update with
34930 Tailored_Exception_Information. Use the sec-stack free procedural
34931 interface to output Exception_Information instead.
34932
34933 * a-except.adb (To_Stderr): New subprogram for character, and string
34934 version moved from a-exextr to be visible from other separate units.
34935 (Tailored_Exception_Information): Remove the procedural version,
34936 previously used by the default Last_Chance_Handler and not any more.
34937 Adjust various comments.
34938
34939 * a-exexda.adb: Generalize the exception information procedural
34940 interface, to minimize the use of secondary stack and the need for
34941 local buffers when the info is to be output to stderr:
34942 (Address_Image): Removed.
34943 (Append_Info_Character): New subprogram, checking for overflows and
34944 outputing to stderr if buffer to fill is of length 0.
34945 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
34946 (Append_Info_Address, Append_Info_Exception_Name,
34947 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
34948 Append_Info_Basic_Exception_Traceback,
34949 Append_Info_Exception_Information): New subprograms.
34950 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
34951 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
34952 Exception_Info_Maxlength, Exception_Name_Length,
34953 Exception_Message_Length): New subprograms.
34954 (Exception_Information): Use Append_Info_Exception_Information.
34955 (Tailored_Exception_Information): Use
34956 Append_Info_Basic_Exception_Information.
34957 Export services for the default Last_Chance_Handler.
34958
34959 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
34960 other separate units.
34961
349622004-07-20 Vincent Celier <celier@gnat.com>
34963
34964 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
34965
349662004-07-20 Ed Schonberg <schonberg@gnat.com>
34967
34968 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
34969 emit itype references for the designated types of component types that
34970 are declared outside of the full record declaration, and that may
34971 denote a partial view of that record type.
34972
349732004-07-20 Ed Schonberg <schonberg@gnat.com>
34974
34975 PR ada/15607
34976 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
34977 which is the designated type in an access component declaration, to the
34978 list of incomplete dependents of the parent type, to avoid elaboration
34979 issues with out-of-scope subtypes.
34980 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
34981 full view of the parent.
34982
349832004-07-20 Ed Schonberg <schonberg@gnat.com>
34984
34985 PR ada/15610
34986 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
34987 entities that are hidden, such as references to generic actuals
34988 outside an instance.
34989
349902004-07-20 Javier Miranda <miranda@gnat.com>
34991
34992 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
34993 support to the new notation.
34994 (Analyze_Selected_Component): Add call to Try_Object_Operation.
34995
349962004-07-20 Jose Ruiz <ruiz@act-europe.fr>
34997
34998 * s-taprob.adb: Adding the elaboration code required for initializing
34999 the tasking soft links that are common to the full and the restricted
35000 run times.
35001
35002 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
35003 restricted run time has been moved to the package
35004 System.Soft_Links.Tasking.
35005
35006 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
35007 restricted run time has been moved to the package
35008 System.Soft_Links.Tasking.
35009
35010 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
35011
35012 * s-solita.ads, s-solita.adb: New files.
35013
350142004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35015
35016 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
35017 Case_Statement_to_gnu): Split off from gnat_to_gnu.
35018 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
35019 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
35020 Exception_Handler_to_gnu_zcx): Likewise.
35021
6e34d3a3
JM
350222004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
35023
35024 * gigi.h (builtin_function): Declare.
35025
523456db
AC
350262004-07-15 Robert Dewar <dewar@gnat.com>
35027
35028 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
35029 reformatting
35030
35031 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
35032 access values as an example of a warning.
35033
35034 * gnat_rm.texi: Document new attribute Has_Access_Values
35035
35036 * gnat-style.texi: Document that box comments belong on nested
35037 subprograms
35038
35039 * sem_util.ads (Has_Access_Values): Improved documentation
35040
35041 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
35042
35043 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
35044 (Process_Interface_Name): Call to this new procedure
35045 (Set_Extended_Import_Export_External_Name): Call to this new procedure
35046
35047 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
35048
35049 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
35050
35051 * einfo.ads: Minor comment typo fixed
35052
350532004-07-15 Jose Ruiz <ruiz@act-europe.fr>
35054
35055 * snames.adb: Add _atcb.
35056
35057 * snames.ads: Add Name_uATCB.
35058
35059 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
35060 (in the expanded code) when using the restricted run time.
35061
35062 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
35063 a in parameter in order to allow ATCBs to be preallocated (in the
35064 expanded code).
35065
35066 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
35067 order to allow ATCBs to be preallocated. In case of error, the ATCB is
35068 deallocated in System.Tasking.Stages.
35069
35070 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
35071 order to allow ATCBs to be preallocated.
35072
35073 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
35074 here. It was previously done in Initialize_ATCB.
35075
35076 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
35077
35078 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
35079 Restricted run time.
35080
35081 * exp_ch3.adb: When using the Restricted run time, pass the
35082 preallocated Ada_Task_Control_Block when creating a task.
35083
350842004-07-15 Ed Schonberg <schonberg@gnat.com>
35085
35086 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
35087 function call that is itself an actual in an enclosing call, diagnose
35088 problem here rather than assuming that resolution will catch it.
35089
35090 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
35091 the local copy of a generic unit for a formal package, and the generic
35092 is a child unit, install private part of ancestors before compiling
35093 private part of spec.
35094
35095 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
35096 use scope entities rather than tree structures, to handle properly
35097 parent units that are instances rewritten as bodies for inlining
35098 purposes.
35099
35100 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
35101 Remove_Parents): Handle properly a parent unit that is an
35102 instantiation, when the unit has been rewritten as a body for inlining
35103 purposes.
35104
35105 * par.adb (Goto_List): Global variable to collect goto statements in a
35106 given unit, for use in detecting natural loops.
35107
35108 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
35109 use in detecting natural loops.
35110
35111 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
35112 backwards goto's, and rewrite as a infinite loop, to improve locality
35113 of temporaries.
35114
35115 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
35116 subcomponent that includes an indexed reference, to prevent the
35117 generation of copies that would miscompile the desired assignment
35118 statement.
35119 (Build_Task_Image_Decls): Add a numeric suffix to
35120 generated name for string variable, to avoid spurious conflicts with
35121 the name of the type of a single protected object.
35122
35123 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
35124 loop with an explicit exit statement, to avoid generating an
35125 out-of-range value with 'Succ leading to spurious constraint_errors
35126 when compiling with -gnatVo.
35127
351282004-07-15 Thomas Quinot <quinot@act-europe.fr>
35129
35130 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
35131 might not be analyzed yet, even if its Etype is already set (case of an
35132 unchecked conversion built using Unchecked_Convert_To, for example).
35133 If the prefix has already been analyzed, this will be a nop anyway.
35134
35135 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
35136 controller type, or an assignment of a record type with controlled
35137 components, copy only user data, and leave the finalization chain
35138 pointers untouched.
35139
351402004-07-15 Vincent Celier <celier@gnat.com>
35141
35142 * make.adb (Collect_Arguments): Improve error message when attempting
35143 to compile a source not part of any project, when -x is not used.
35144
35145 * prj.ads: (Defined_Variable_Kind): New subtype
35146
35147 * prj-attr.adb (Register_New_Package): Two new procedures to register
35148 a package with or without its attributes.
35149 (Register_New_Attribute): Mew procedure to register a new attribute in a
35150 package.
35151 New attribute oriented subprograms: Attribute_Node_Id_Of,
35152 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35153 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35154 Next_Attribute.
35155 New package oriented subprograms: Package_Node_Id_Of,
35156 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35157
35158 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
35159 type.
35160 (Package_Node_Id): Now a private, self initialized type
35161 (Register_New_Package): New procedure to register a package with its
35162 attributes.
35163 New attribute oriented subprograms: Attribute_Node_Id_Of,
35164 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35165 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35166 Next_Attribute.
35167 New package oriented subprograms: Package_Node_Id_Of,
35168 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35169
35170 * prj-dect.adb (Parse_Attribute_Declaration,
35171 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
35172
35173 * prj-makr.adb (Make): Parse existing project file before creating
35174 other files. Fail if there was an error during parsing.
35175
35176 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
35177 new spec of Prj.Attr.
35178
35179 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
35180 to new spec of Prj.Attr.
35181
351822004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35183
35184 * utils2.c: Fix typo in comment.
35185
351862004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
35187
35188 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
35189 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
35190
a1c7af89
AS
351912004-07-14 Andreas Schwab <schwab@suse.de>
35192
35193 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
35194
a5cb3b30
AC
351952004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35196
35197 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
35198 object type.
35199 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
35200 TYPE_STUB_DECL.
35201
35202 * misc.c (gnat_types_compatible_p): New function.
35203 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
35204 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
35205
35206 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
35207 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
35208 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
35209 (mark_visited): Don't mark dummy type.
6615c446 35210 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
35211 parameter, we must remove any LJM building from GNU_NAME.
35212 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
35213 (pos_to_constructor): Use int_const_binop.
35214 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
35215 PARM_DECL.
35216
35217 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
35218 (gnat_pushlevel): Set TREE_USE on BLOCK node.
35219 (gnat_install_builtins): Add __builtin_memset.
35220
352212004-07-13 Olivier Hainque <hainque@act-europe.fr>
35222
35223 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
35224 for a renaming, stabilize the initialization expression if we are at a
35225 local level. At the local level, uses of the renaming may be performed
35226 by a direct dereference of the initializing expression, and we don't
35227 want possible variables there to be evaluated for every use.
35228
35229 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
35230 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
35231 them on the way. Account for the fact that we may introduce side
35232 effects in the process.
35233
0976078c
RH
352342004-07-13 Richard Henderson <rth@redhat.com>
35235
35236 * misc.c (default_pass_by_ref): Use pass_by_reference.
35237
9dcf6e73
JM
352382004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
35239
35240 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
35241 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
35242
ac45df5d
RH
352432004-07-08 Richard Henderson <rth@redhat.com>
35244
35245 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
35246 commentary.
35247
15ce9ca2
AC
352482004-07-06 Vincent Celier <celier@gnat.com>
35249
35250 * vms_conv.ads: Minor reformatting.
35251 Alphabetical order for enumerated values of type Command_Type, to have
35252 the command in alphabetical order for the usage.
35253
35254 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
35255 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
35256
35257 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
35258
35259 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
35260 (Add_Archive_Path): Only add the global archive if there is one.
35261 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
35262 or not any object file to put in the global archive, and don't build
35263 a global archive if there is none.
35264 (X_Switches): New table
35265 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
35266 in the X_Switches table, if any.
35267 (Initialize): Make sure the X_Switches table is empty
35268 (Scan_Arg): Record -X switches in table X_Switches
35269
35270 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
35271
35272 * make.adb: Minor comment fix
35273
35274 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
35275 invoked with directory information, add the directory in front of the
35276 path.
35277
35278 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
35279 invoked with directory information, add the directory in front of the
35280 path.
35281
35282 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
35283 when Keep_Temporary_Files is False.
35284 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
35285 directory information, add the directory in front of the path.
35286 When not on VMS, handle new switch -dn before the command to set
35287 Keep_Temporary_Files to True.
35288 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
35289 everywhere.
35290
35291 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
35292 invoked with directory information, add the directory in front of the
35293 path.
35294
352952004-07-06 Thomas Quinot <quinot@act-europe.fr>
35296
35297 * snames.ads, snames.adb (Name_Stub): New name for the distributed
35298 systems annex.
35299
35300 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
35301 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
35302
35303 * g-socket.adb (To_Timeval): Fix incorrect conversion of
35304 Selector_Duration to Timeval for the case of 0.0.
35305
35306 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
35307 documentation from Evolve_And_Then.
35308
353092004-07-06 Jose Ruiz <ruiz@act-europe.fr>
35310
35311 * s-taprop-tru64.adb, s-taprop-os2.adb,
35312 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
35313
353142004-07-06 Robert Dewar <dewar@gnat.com>
35315
35316 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
35317 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
35318 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
35319 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
35320 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
35321 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
35322 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
35323 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
35324 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
35325 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
35326 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
35327 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
35328 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
35329 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
35330 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
35331 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
35332 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
35333 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
35334 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
35335 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
35336 vms_data.ads: Minor reformatting,
35337 Fix bad box comment format.
35338
35339 * gnat_rm.texi: Fix minor grammatical error
35340
35341 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
35342
35343 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
35344 more cases of discriminated records to be recognized as not needing a
35345 secondary stack.
35346 (Has_Access_Values): New function.
35347
35348 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
35349
35350 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
35351 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
35352 with LRM terminology).
35353 Change terminology in comments primitive type => elementary type.
35354
353552004-07-06 Ed Schonberg <schonberg@gnat.com>
35356
35357 PR ada/15602
35358 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
35359 parameters do not impose any requirements on the presence of a body.
35360
353612004-07-06 Ed Schonberg <schonberg@gnat.com>
35362
35363 PR ada/15593
35364 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
35365 compilation unit and is in an open scope at the point of instantiation,
35366 assume that a body may be present later.
35367
353682004-07-06 Ed Schonberg <schonberg@gnat.com>
35369
35370 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
35371 Improve error message when specified size is not supported.
35372
35373 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
35374 is never a primitive operation.
35375
cb42deba
AS
353762004-07-05 Andreas Schwab <schwab@suse.de>
35377
35378 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
35379 RECORD_OR_UNION_CHECK.
35380 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
35381
98877933
KC
353822004-07-04 Kelley Cook <kcook@gcc.gnu.org>
35383
35384 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
35385 dependency on xgnatugn, instead build it via a submake.
35386 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
35387
8fff4fc1
RH
353882004-07-04 Richard Henderson <rth@redhat.com>
35389
35390 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
35391
4dfa0342
RH
353922004-07-01 Richard Henderson <rth@redhat.com>
35393
35394 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
35395 * utils.c (max_size): Likewise.
35396
909f21b3
RK
353972004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35398
35399 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
35400 and rest_of_type_compilation; add arg to create_*_decl.
15cd18b9 35401 (annotate_decl_with_node): Deleted.
909f21b3
RK
35402 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
35403 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
35404 (get_current_block_context, gnat_pushdecl): New declarations.
35405 (gnat_init_stmt_group): Likewise.
35406 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
35407 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
35408 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
35409 (gnat_init): Call gnat_init_stmt_group.
35410 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
35411 (gnu_pending_elaboration_list): Deleted.
35412 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
35413 (gigi): Rearrange initialization calls and move some to last above.
35414 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
35415 Delete calls to add_decl_expr; add arg to create_*_decl.
35416 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 35417 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
35418 begin_subprog_body and call it.
35419 Don't push and pop ggc context.
35420 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
35421 (add_stmt): Remove handling of DECL_EXPR from here.
35422 If not in function, mark visited.
35423 (add_decl_expr): Put global at top level.
35424 Check for cases of DECL_INITIAL we have to handle here.
35425 (process_type): Add extra arg to create_type_decl.
35426 (build_unit_elab): Rework to just gimplify.
35427 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
35428 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
35429 (get_pending_elaborations, pending_elaborations_p): Likewise.
35430 (push_pending_elaborations, pop_pending_elaborations): Likewise.
35431 (get_elaboration_location, insert_elaboration_list): Likewise.
35432 (gnat_binding_level): Renamed from ada_binding_level.
35433 (init_gnat_to_gnu): Don't clear pending_elaborations.
35434 (global_bindings_p): Treat as global if no current_binding_level.
35435 (set_current_block_context): New function.
35436 (gnat_pushdecl): Renamed from pushdecl; major rework.
35437 All callers changed.
35438 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
35439 (finish_record_type): Call call pushdecl for stub decl.
35440 (function_nesting_depth): Deleted.
35441 (begin_subprog_body): Delete obsolete code.
35442 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 35443
246d2ceb
AC
354442004-06-28 Robert Dewar <dewar@gnat.com>
35445
35446 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35447 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
35448 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
35449 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
35450 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
35451
35452 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
35453 deal with problem of inefficient slices on machines with strict
35454 alignment, when the slice is a component of a composite.
35455
35456 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
35457 machines, we need the check there as well.
35458
354592004-06-28 Ed Schonberg <schonberg@gnat.com>
35460
35461 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
35462 determine safe copying direction for overlapping slice assignments
35463 when component is controlled.
35464
35465 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
35466 formal derived type in the actual for a formal package are visible in
35467 the enclosing instance.
35468
354692004-06-28 Ed Schonberg <schonberg@gnat.com>
35470
35471 PR ada/15600
35472 * sem_util.adb (Trace_Components): Diagnose properly an illegal
35473 circularity involving a private type whose completion includes a
35474 self-referential component.
35475 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
35476 renaming or an instantiation from an implicit derived operation.
35477
354782004-06-28 Pascal Obry <obry@gnat.com>
35479
35480 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
35481 DLL.
35482 (Library_File_Name_For): Idem.
35483
354842004-06-28 Matthew Gingell <gingell@gnat.com>
35485
35486 * g-traceb.ads: Add explanatory note on the format of addresses
35487 expected by addr2line.
35488
354892004-06-28 Jerome Guitton <guitton@act-europe.fr>
35490
35491 * Makefile.in: Force debugging information on s-tasdeb.adb,
35492 a-except.adb and s-assert.adb needed by the debugger.
35493
354942004-06-28 Vincent Celier <celier@gnat.com>
35495
35496 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
35497 Need_To_Build_Lib.
35498 (Gnatmake): Ditto.
35499
35500 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
35501
35502 * prj.adb: Minor reformatting
35503 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
35504
35505 * prj.ads: Comment updates
35506 Minor reformatting
35507 (Project_Data): Change Flag1 to Need_To_Build_Lib.
35508 Remove Flag2: not used.
35509
35510 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
35511 declaration.
35512
35513 * gnat_ugn.texi: Put a "null;" declaration in one project file example
35514
35515 * gnat_rm.texi: Document Empty declarations "null;".
35516
35517 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
35518 front of the linker options.
35519 (Link_Foreign): Put the global archives and the libraries in front of
35520 the linker options.
35521
355222004-06-28 Javier Miranda <miranda@gnat.com>
35523
35524 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
35525 (RTU_Loaded): Code cleanup
35526 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
35527 withed predefined units.
35528
35529 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
35530 explicitly withed predefined units.
35531 Fix typo in comment
35532
35533 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
35534 explicitly withed predefined units.
35535
bce3da32
RK
355362004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35537
35538 * ada-tree.def (DECL_STMT): Deleted.
35539 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
35540 (DECL_STMT_VAR): Deleted.
35541 * decl.c: add_decl_stmt now add_decl_expr.
35542 * gigi.h: Likewise.
35543 * trans.c: Likewise.
15cd18b9 35544 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
bce3da32
RK
35545 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
35546 (add_stmt): Only handle padded type here.
35547 (add_stmt_with_node): Allow gnat_node to not be present.
35548 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
35549 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
35550 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
35551 make a SAVE_EXPR for the entire fat pointer.
35552 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
35553 (create_index_type): Make a DECL_EXPR.
35554 (end_subprog_body): Don't call allocate_struct_function here but
35555 do clear cfun.
35556
0da2c8ac
AC
355572004-06-25 Pascal Obry <obry@gnat.com>
35558
35559 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
35560 Relocatable from Build_Dynamic_Library call.
35561
35562 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
35563 Relocatable are now synonym.
35564
35565 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
35566
35567 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
35568 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
35569 call.
35570
35571 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
35572 Lib_Address and Relocatable.
35573 (Default_DLL_Address): Removed.
35574
6615c446
JO
35575 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35576 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
35577 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
35578 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
35579 (Default_DLL_Address): Removed.
35580
35581 * mlib-tgt-mingw.adb: Ditto.
35582 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
35583
35584 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
35585 the initial thread stack size.
35586
35587 * a-strmap.ads: Move package L to private part as it is not used in
35588 the spec. Found while reading code.
35589
355902004-06-25 Olivier Hainque <hainque@act-europe.fr>
35591
35592 * tracebak.c: Introduce support for a GCC infrastructure based
35593 implementation of __gnat_backtrace.
35594
35595 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
35596 any more. Use accessors instead. This eases maintenance and relaxes
35597 some alignment constraints.
35598 (_GNAT_Exception structure): Remove the Ada specific fields
35599 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
35600 a-exexpr.adb.
35601 (is_handled_by, __gnat_eh_personality): Replace component references to
35602 exception structure by use of the new accessors.
35603
35604 * init.c (__gnat_initialize): Adjust comments to match the just
35605 reverted meaning of the -static link-time option.
35606
35607 * adaint.c (convert_addresses): Arrange not to define a stub for
35608 mips-irix any more, as we now want to rely on a real version from a
35609 recent libaddr2line.
35610
35611 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
35612 the personality routine can use them and not have to rely on a C
35613 counterpart of the record anymore. This simplifies maintenance and
35614 relaxes the constraint of having Standard'Maximum_Alignment match
35615 BIGGEST_ALIGNMENT.
35616 Update comments, and add a section on the common header alignment issue.
35617
356182004-06-25 Geert Bosch <bosch@gnat.com>
35619
35620 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
35621 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
35622
356232004-06-25 Robert Dewar <dewar@gnat.com>
35624
35625 * gnat_rm.texi: Fix section on component clauses to indicate that the
35626 restriction on byte boundary placement still applies for bit packed
35627 arrays.
35628 Add comment on stack usage from Initialize_Scalars
35629
35630 * gnat_ugn.texi: Add documentation for -gnatyLnnn
35631
35632 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
35633 limiting nesting level.
35634
35635 * usage.adb: Add line for -gnatyLnnn switch
35636
35637 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
35638 sem_ch13.adb, exp_aggr.adb: Minor reformatting
35639
35640 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
35641 type as well as on the subtype. This corrects a problem in freeze in
35642 setting alignments of atomic types.
35643
35644 * sem_eval.ads: Minor comment typo fixed
35645
35646 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
35647 level. Minor reformatting.
35648
35649 * fname.adb (Is_Predefined_File_Name): Require a letter after the
35650 minus sign. This means that file names like a--b.adb will not be
35651 considered predefined.
35652
35653 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
35654 record Test new flag and give diagnostic for bad component clause.
35655 (Freeze_Entity): Set alignment of array from component alignment in
35656 cases where this is safe to do.
35657
35658 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
35659 arrays.
35660
35661 * cstand.adb: (Create_Standard): Set alignment of String to 1
35662
35663 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
35664
35665 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
35666 code in the common constrained array cases.
35667
35668 * a-storio.adb: Change implementation to avoid possible alignment
35669 problems on machines requiring strict alignment (data should be moved
35670 as type Buffer, not type Elmt).
35671
35672 * checks.adb (Apply_Array_Size_Check): Improve these checks by
35673 killing the overflow checks which we really do not need (64-bits is
35674 enough).
35675
356762004-06-25 Vincent Celier <celier@gnat.com>
35677
35678 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
35679 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
35680 inconditionally for the main project.
35681 (Recursive_Add_Archives.Add_Archive_Path): New procedure
35682 (Link_Executables.Check_Time_Stamps): New procedure
35683 (Link_Executables.Link_Foreign): New procedure
35684 Changes made to reduce nesting level of this package
35685 (Check): New procedure
35686 (Add_Switches): When not in quiet output, check that a switch is not
35687 the concatenation of several valid switches. If it is, issue a warning.
35688 (Build_Global_Archive): If the global archive is rebuilt, linking need
35689 to be done.
35690 (Compile_Sources): Rebuilding a library archive does not imply
35691 rebuilding the global archive.
35692 (Build_Global_Archive): New procedure
35693 (Build_Library): New name for Build_Archive, now only for library
35694 project
35695 (Check_Archive_Builder): New procedure
35696 (Create_Global_Archive_Dependency_File): New procedure
35697 (Gprmake): Call Build_Global_Archive before linking
35698 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
35699 throughout.
35700 (Scan_Arg): Display the Copyright notice when -v is used
35701
35702 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
35703 for gnatls.
35704
35705 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
35706 COMPILE.
35707 Add new GNAT LIST qualifier /FILES=
35708 Added qualifier /DIRECTORY= to GNAT METRIC
35709 Added qualifier /FILES= to GNAT METRIC
35710 Added qualifier /FILES to GNAT PRETTY
35711
35712 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
35713 to take into account both versions of the switch.
35714
35715 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
35716 always be the last switch to the gcc driver. Disable switch storing so
35717 that switches automatically added by the gcc driver are not put in the
35718 ALI file.
35719
35720 * prj.adb (Project_Empty): Take into account changes in components of
35721 Project_Data.
35722
35723 * prj.ads (Languages_Processed): New enumaration value All_Languages.
35724
35725 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
35726 used. Split Boolean component Ada_Sources_Present in two Boolean
35727 components Ada_Sources_Present and Other_Sources_Present.
35728 Minor reformatting
35729
35730 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
35731 instead of Sources_Present.
35732 (Set_Ada_Paths.Add.Recursive_Add): Ditto
35733
35734 * prj-nmsc.adb: Minor reformatting
35735 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
35736 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
35737 Check_Ada_Naming_Scheme.
35738 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
35739 throughout.
35740
35741 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
35742 In_Limited.
35743 Make sure that all cycles where there is at least one "limited with"
35744 are detected.
35745 (Parse_Single_Project): New Boolean parameter In_Limited
35746
35747 * prj-proc.adb (Recursive_Check): When Process_Languages is
35748 All_Languages, call first Prj.Nmsc.Ada_Check, then
35749 Prj.Nmsc.Other_Languages_Check.
35750
35751 * prj-proc.adb (Process): Use Ada_Sources_Present or
35752 Other_Sources_Present (instead of Sources_Present) depending on
35753 Process_Languages.
35754
35755 * lang-specs.h: Keep -g and -m switches in the same order, and as the
35756 last switches.
35757
35758 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
35759 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
35760 False.
35761 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
35762 False.
35763
35764 * lib.ads (Disable_Switch_Storing): New procedure.
35765
35766 * make.adb: Modifications to reduce nesting level of this package.
35767 (Check_Standard_Library): New procedure
35768 (Gnatmake.Check_Mains): New procedure
35769 (Gnatmake.Create_Binder_Mapping_File): New procedure
35770 (Compile_Sources.Compile): Add switch -gnatez as the last option
35771 (Display): Never display -gnatez
35772
6615c446 35773 * Makefile.generic:
0da2c8ac
AC
35774 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
35775
35776 * gnatcmd.adb (Check_Project): New function
35777 (Process_Link): New procedure to reduce nesting depth
35778 (Check_Files): New procedure to reduce the nesting depth.
35779 For GNAT METRIC, include the inherited sources in extending projects.
35780 (GNATCmd): When GNAT LS is invoked with a project file and no files,
35781 add the list of files from the sources of the project file. If this list
35782 is too long, put it in a temp text files and use switch -files=
35783 (Delete_Temp_Config_Files): Delete the temp text file that contains
35784 a list of source for gnatpp or gnatmetric, if one has been created.
35785 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
35786 in the project file is too large, create a temporary text file that
35787 list them and pass it to the tool with "-files=<temp text file>".
35788 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
35789
35790 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
35791 generated file is in not in Ada.
35792
35793 * gnatls.adb: Remove all parameters And_Save that are no longer used.
35794 (Scan_Ls_Arg): Add processing for -files=
35795 (Usage): Add line for -files=
35796
35797 * g-os_lib.adb (On_Windows): New global constant Boolean flag
35798 (Normalize_Pathname): When on Windows and the path starts with a
35799 directory separator, make sure that the resulting path will start with
35800 a drive letter.
35801
35802 * clean.adb (Clean_Archive): New procedure
35803 (Clean_Project): When there is non-Ada code, delete the global archive,
35804 the archive dependency files, the object files and their dependency
35805 files, if they exist.
35806 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
35807
358082004-06-25 Thomas Quinot <quinot@act-europe.fr>
35809
35810 * sinfo.ads: Fix typo in comment.
35811
35812 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
35813 the TSS for remote access-to-subprogram types, since these TSS are
35814 always present once the type has been analyzed.
35815 (RAS_E_Dereference): Same.
35816
35817 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
35818 reference raises Bad_Attribute, mark the reference as analyzed so the
35819 node (and any children resulting from rewrites that could have occurred
35820 during the analysis that ultimately failed) is not analyzed again.
35821
35822 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
35823
35824 * exp_dist.adb: Minor comment fix.
35825
35826 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
35827 type is an anonymous access type, no unchecked deallocation of the
35828 allocated object can occur. If the object is controlled, attach it with
35829 a count of 1. This allows attachment to the Global_Final_List, if
35830 no other relevant list is available.
35831 (Get_Allocator_Final_List): For an anonymous access type that is
35832 the type of a discriminant or record component, the corresponding
35833 finalisation list is the one of the scope of the type.
35834
358352004-06-25 Ed Schonberg <schonberg@gnat.com>
35836
35837 * sem_ch3.adb (Replace_Type): When computing the signature of an
35838 inherited subprogram, use the first subtype if the derived type
35839 declaration has no constraint.
35840
35841 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
35842 before applying previous optimization. Minor code cleanup.
35843
35844 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
35845 placed at the beginning of an unpacked record without explicit
35846 alignment, a slice of it will be aligned and does not need a copy when
35847 used as an actual.
35848
358492004-06-25 Ed Schonberg <schonberg@gnat.com>
35850
35851 PR ada/15591
35852 PR ada/15592
35853 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
35854 reference is written with expressions mimicking parameters.
35855
358562004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
35857
35858 PR ada/15589
35859 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
35860 STEP 2a. The constraints of a full type declaration of a derived record
35861 type are checked for conformance with those declared in the
35862 corresponding private extension declaration. The message
35863 "not conformant with previous declaration" is emitted if an error is
35864 detected.
35865
358662004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35867
35868 * g-traceb.ads: Document the need for -E binder switch in the spec.
35869
35870 * g-trasym.ads: Document the need for -E binder switch in the spec.
35871
358722004-06-25 Jose Ruiz <ruiz@act-europe.fr>
35873
35874 * sem_prag.adb: Add handling of pragma Detect_Blocking.
35875
35876 * snames.h, snames.ads, snames.adb: Add entry for pragma
35877 Detect_Blocking.
35878
35879 * s-rident.ads: Change reference to pragma Detect_Blocking.
35880
35881 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
35882 system.ads.
35883
35884 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
35885 to indicate whether pragma Detect_Blocking is active.
35886
35887 * par-prag.adb: Add entry for pragma Detect_Blocking.
35888
35889 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
35890 of not handling WITH.
35891 Note that this replaces the previous update which was incorrect.
35892
358932004-06-25 Javier Miranda <miranda@gnat.com>
35894
35895 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
35896 use-clauses to have a clean environment.
35897
35898 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
35899 the installation of the use-clauses to stablish a clean environment in
35900 case of compilation of a separate unit; otherwise the call to
35901 use_one_package is protected by the barrier Applicable_Use.
35902
35903 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
35904 the installation of the use-clauses to stablish a clean environment in
35905 case of compilation of a separate unit.
35906 (End_Use_Clauses): Minor comment cleanup.
35907
359082004-06-25 Sergey Rybin <rybin@act-europe.fr>
35909
35910 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
35911
65355d53
RH
359122004-06-23 Richard Henderson <rth@redhat.com>
35913
35914 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
35915
c0e3aa48
RK
359162004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35917
35918 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
35919 now bool instead of int.
35920 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
35921 * trans.c (gnu_switch_label_stack): New function.
35922 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
35923 elaboration of renamed entity returns.
35924 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
35925 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
35926 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
35927 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
35928 DECL_SIZE_UNIT and simplify variable-sized case.
35929 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35930 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
35931 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
35932 (build_unit_elab): Disable for now.
35933 * utils.c (mark_visited): New function.
35934 (pushdecl): Walk tree to call it for global decl.
35935 (update_pointer_to): Update all variants of pointer and ref types.
35936 Add arg to COMPONENT_REF.
35937 (convert): Likewise.
35938 Move check for converting between variants lower down.
35939 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
35940 (build_allocator): Don't force type of MODIFY_EXPR.
35941 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
35942 put_var_into_stack.
35943
966389ee
RK
359442004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35945
35946 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
35947 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
35948 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
35949 subprograms.
35950 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
35951 all callers changed.
35952 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
35953 the way that EXIT_STMT finds the loop label.
35954 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
35955 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
35956 (add_stmt): Use annotate_with_locus insted of setting directly.
35957 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
35958 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
35959 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
35960 (build_vms_descriptor): Add extra args to ARRAY_REF.
35961 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
35962 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
35963 New cases.
35964 (build_binary_op): Don't make explicit CONVERT_EXPR.
35965 Add extra rgs to ARRAY_REF.
35966
cc335f43
AC
359672004-06-14 Pascal Obry <obry@gnat.com>
35968
35969 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
35970 Windows. Fix minor typo.
35971
35972 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
35973 which is now supported on Windows. With this implementation using the
35974 Library Project feature is no different on Windows than on UNIX.
35975
359762004-06-14 Vincent Celier <celier@gnat.com>
35977
35978 * makegpr.adb (Compile_Sources): Nothing to do when there are no
35979 non-Ada sources.
35980
35981 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
35982
35983 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
35984 found, show the project name and the path of the previously parsed
35985 project file.
35986
359872004-06-14 Ed Schonberg <schonberg@gnat.com>
35988
35989 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
35990 array, avoid copying the actual before the call.
35991
359922004-06-14 Thomas Quinot <quinot@act-europe.fr>
35993
35994 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
35995 Instead, allocate memory on worst-case alignment assumptions, and then
35996 return an aligned address within the allocated zone.
35997
359982004-06-14 Robert Dewar <dewar@gnat.com>
35999
36000 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
36001 elab entities in predefined units in No_Run_Time_Mode.
36002 (Gen_Adainit_C): Same fix
36003 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
36004 units in No_Run_Time_Mode
36005 (Gen_Elab_Calls_C): Same fix
36006
36007 * symbols-vms-alpha.adb: Minor reformatting
36008
36009 * g-debpoo.ads: Minor reformatting
36010
36011 * lib.adb (In_Same_Extended_Unit): Version working on node id's
36012
36013 * lib.ads (In_Same_Extended_Unit): Version working on node id's
36014
36015 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
36016 working on nodes.
36017
36018 * make.adb: Minor reformatting
36019
36020 * par-ch12.adb: Minor reformatting
36021
36022 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
36023
36024 * prj-strt.adb: Minor reformatting
36025
36026 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
36027 be more general.
36028
36029 * sem_attr.adb: Minor reformatting
36030
36031 * sem_ch7.adb: Minor reformatting
36032
36033 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
36034 for type in the same unit as the object declaration.
36035
36036 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
36037 static string expressions and not just string literals.
36038 Minor reformatting
36039 (Set_Warning): Reset restriction warning flag for restriction pragma
36040 Implement pragma Profile_Warnings
36041 Implement pragma Profile (Restricted)
36042 Give obolescent messages for old restrictions and pragmas
36043
36044 * snames.h, snames.ads, snames.adb: Add new entry for pragma
36045 Profile_Warnings.
36046
36047 * s-rident.ads: Add declarations for restrictions required by profile
36048 Restricted and profile Ravenscar.
36049
36050 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
36051
36052 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
36053 configuration pragmas.
36054
5453d5bd
AC
360552004-06-11 Vincent Celier <celier@gnat.com>
36056
36057 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
36058 gnatsym, when symbol policy is Restricted.
36059
36060 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
36061 gnatsym, when symbol policy is Restricted.
36062
36063 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
36064 read the symbol file.
36065 (Finalize): Fail in symbol policy Restricted if a symbol in the original
36066 symbol file is not in the object files. Do not create a new symbol file
36067 when symbol policy is Restricted.
36068
36069 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
36070 in Scng.
36071
36072 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
36073 Restricted.
36074 (Usage): Line for new switch -R
36075
36076 * make.adb (Initialize): When the platform is not VMS, add the
36077 directory where gnatmake is invoked in the front of the path, if
36078 gnatmake is invoked with directory information. Change the Scan_Args
36079 while loop to a for loop.
36080 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
36081 if Depth is equal or greater than the proposed depth, there is nothing
36082 to do.
36083 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
36084 instead of 0.
36085
36086 * prj.ads: Add new symbol policy Restricted.
36087
36088 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
36089 with the new parameters Check_All_Labels and Case_Location.
36090
36091 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
36092 (Library_Symbol_File needs to be defined).
36093
36094 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
36095 and Case_Location If Check_All_Labels is True, check that all values of
36096 the string type are used, and output warning(s) if they are not.
36097
36098 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
36099 and Case_Location.
36100
36101 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
36102
36103 * gnat_ugn.texi: Update documentation about the library directory in
36104 Library Projects.
36105
36106 * makegpr.adb (Display_Command): In verbose mode, also display the
36107 value of the CPATH env var, when the compiler is gcc.
36108 (Initialize): Change the Scan_Args while loop to a for loop
36109 (Compile_Individual_Sources): Change directory to object directory
36110 before compilations.
36111
36112 * symbols.ads: New symbol policy Restricted.
36113
361142004-06-11 Olivier Hainque <hainque@act-europe.fr>
36115
36116 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
36117 is now taken care of internally in the Exception_Propagation package
36118 and does not require clients assistance any more.
36119
36120 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
36121 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
36122 functions. Helpers to maintain a predicate required in the handling of
36123 occurrence transfer between tasks.
36124 This is now handled internally and does not require clients assistance
36125 for the setup/propagate separation anymore.
36126 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
36127 allocation strategy, handle the Setup_And_Not_Propagated predicate and
36128 document.
36129
36130 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
36131 raise_after_setup, now that everything is handled internally within the
36132 setup/propagation engine.
36133
361342004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36135
36136 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
36137 Add additional conditions for the case of an actual being a simple
36138 name or literal. Improve inlining by preventing the generation
36139 of temporaries with a short lifetime (one use).
36140
361412004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36142
36143 PR ada/15587
5453d5bd
AC
36144 * einfo.ads: Minor comment updates for Has_Completion and
36145 E_Constant list of flags.
36146
36147 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
36148 and constant redeclarations now set the Has_Completion flag of their
36149 defining identifiers.
36150
36151 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
36152 Inspect_Deferred_Constant_Completion.
36153 Used to detect private deferred constants that have not been completed
36154 either by a constant redeclaration or pragma Import. Emits error message
36155 "constant declaration requires initialization expression".
36156
36157 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
36158 completes a deferred constant.
36159
361602004-06-11 Geert Bosch <bosch@gnat.com>
36161
36162 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
36163
36164 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
36165 calculating exponent for scaling denormal numbers.
36166 (Leading_Part): Properly raise Constraint_Error for zero or negative
36167 Adjustment.
36168 (Remainder): Properly raise Constraint_Error for zero divisor.
36169
361702004-06-11 Thomas Quinot <quinot@act-europe.fr>
36171
36172 * sem_util.adb: Minor reformatting.
36173
36174 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
36175 dereference when accessing the entry parameter record.
36176 (Check_Array_Type): Always check for possible implicit dereference.
36177 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36178 Abort if a pointer is still present (denoting that an implicit
36179 dereference was left in the tree by the front-end).
36180
36181 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
36182 dereference when accessing the entry parameter record.
36183 (Check_Array_Type): Always check for possible implicit dereference.
36184 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36185 Abort if a pointer is still present (denoting that an implicit
36186 dereference was left in the tree by the front-end).
36187
361882004-06-11 Emmanuel Briot <briot@act-europe.fr>
36189
36190 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
36191 message, like the compiler itself does. Easier to parse the output.
36192
36193 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
36194
36195 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
36196 be base names, and not includes directories.
36197
361982004-06-11 Arnaud Charlet <charlet@act-europe.fr>
36199
36200 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
36201 so that dependencies are properly taken into account by make.
36202
362032004-06-11 Arnaud Charlet <charlet@act-europe.fr>
36204
36205 PR ada/15622
36206 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
36207 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
36208
362092004-06-11 Jerome Guitton <guitton@act-europe.fr>
36210
36211 * Makefile.in (install-gnatlib): install target-specific run-time files.
36212
36213 * Make-lang.in: Remove obsolete targets.
36214
362152004-06-11 Ed Schonberg <schonberg@gnat.com>
36216
36217 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
36218 specification, to catch misuses of program unit names.
36219
36220 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
36221 superfluous conversions in an instance.
36222
362232004-06-11 Ed Schonberg <schonberg@gnat.com>
36224
36225 PR ada/15403
5453d5bd
AC
36226 * sem_ch12.adb (Save_References): If operator node has been folded to
36227 enumeration literal, associated_node must be discarded.
36228
362292004-06-11 Jose Ruiz <ruiz@act-europe.fr>
36230
36231 * s-stchop-vxworks.adb: Add required pragma Convention to
36232 Task_Descriptor because it is updated by a C function.
36233
a98f59be
AC
362342004-06-08 Arnaud Charlet <charlet@act-europe.fr>
36235
36236 PR ada/15568
a98f59be
AC
36237 * Makefile.in: Remove target specific SO_OPT on IRIX
36238
821e1ea1
RK
362392004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36240
36241 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
36242 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
36243 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
36244 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
36245 (STMT_STMT, USE_STMT): New statement codes.
36246 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
36247 * ada-tree.h: Reflect above changes.
15cd18b9 36248 (struct tree_loop_id): Deleted.
821e1ea1
RK
36249 (union lang_tree_node, struct lang_decl, struct lang_type):
36250 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
36251 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
36252 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
36253 (IS_ADA_STMT): New macro.
36254 * decl.c (annotate_decl_with_node): New function.
36255 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
36256 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
36257 Call add_stmt_with_node to do needed assignments.
36258 Add call to update setjmp buffer directly, not via EXPR_STMT.
36259 (maybe_variable): Argment GNAT_NODE deleted.
36260 * gigi.h (maybe_variable): Likewise.
36261 (make_transform, add_stmt_with_node, set_block_for_group): New.
36262 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
36263 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
36264 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
36265 (set_lineno, set_lineno_from_sloc): Likewise.
36266 (record_code_position, insert_code_for): Likewise.
36267 (gnat_poplevel): Now returns void.
36268 (end_subprog_body): Now takes argument.
36269 * misc.c (cgraph.h, tree-inline.h): New includes.
36270 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
36271 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
36272 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
36273 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
36274 (gnat_parse_file): Don't set immediate_size_expand.
36275 Call cgraph functions.
36276 (gnat_expand_expr): Remove most cases.
36277 (record_code_position, insert_code_for): Remove from here.
36278 * trans.c (toplev.h, tree-gimple.h): Now included.
36279 (discard_file_names): Deleted.
36280 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
36281 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
36282 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
36283 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
36284 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
36285 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
36286 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
36287 (set_block_for_group, add_stmt_list): Likewise.
36288 (start_stmt_group): Renamed from start_block_stmt.
36289 (end_stmt_group): Likewise, from end_block_stmt.
36290 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
36291 (gigi): Don't set discard_file_names or call set_lineno.
36292 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
36293 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
36294 Numerous changes throughout to reflect new names and complete
36295 function-at-a-time implementation.
36296 (gnat_expand_stmt): Delete or comment out all cases.
36297 (process_inlined_subprograms): Use add_stmt.
36298 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
36299 call set_lineno; also remove unneeded block handling.
36300 (process_type): Remove unneeded block handling.
36301 (build_unit_elab): Remove calls to deleted functions.
36302 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
36303 (tree-dump.h): Likewise.
36304 (struct ada_binding_level): Add field jmpbuf_decl.
36305 (gnat_define_builtin, gnat_install_builtins): New.
36306 (gnat_gimplify_function, gnat_finalize): Likewise.
36307 (gnat_poplevel): No longer return BLOCK, set it instead.
36308 Remove code dealing with nested functions.
36309 (gnat_init_decl_processing): Also set size_type_node.
36310 Call gnat_install_builtins.
36311 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
36312 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
36313 Remove special-case for "main".
36314 (end_subprog_body): Add arg and rework for tree-ssa.
36315 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
36316 Add case for BOOLEAN_TYPE.
36317 * utils2.c (rtl.h): Now include.
36318 (build_call_raise): Test Debug_Flag_NN directly.
36319 (build_call_alloc_dealloc): Don't use local stack allocation for now.
36320 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
36321 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
36322
0ab80019
AC
363232004-06-07 Robert Dewar <dewar@gnat.com>
36324
36325 * a-direct.ads, einfo.ads: Minor comment updates
36326
36327 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
36328 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36329 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
36330 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
36331 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
36332
36333 * s-interr-sigaction.adb: Remove unreferenced variable
36334 (Attached_Interrupts). Minor reformatting.
36335 Avoid use of variable I (replace by J).
36336
36337 * par-ch10.adb: Fix text of one error message
36338
36339 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
36340 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
36341 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
36342 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
36343 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
36344 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 36345 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
36346 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
36347 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
36348 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
36349 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
36350 2005 support.
36351
363522004-06-07 Doug Rupp <rupp@gnat.com>
36353
36354 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
36355
36356 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
36357
36358 * mlib-tgt-vms-ia64.adb: New file.
36359
36360 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
36361 Add mlib-tgt-vms-ia64.adb
36362 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
36363 Move to alpha specific ifeq section.
36364 Add VMS specific versions of symbols.adb
36365 Renaming of 5q vms files.
36366
36367 * 5qsystem.ads renamed to system-vms_64.ads.
36368
363692004-06-07 Vincent Celier <celier@gnat.com>
36370
36371 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
36372 explain that when a time of day corresponding to the non existing hour
36373 on the day switching to DST is specified, Split may return a different
36374 value for Seconds.
36375
36376 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
36377 to GNAT PRETTY.
36378
36379 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
36380 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
36381
36382 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
36383 to False.
36384 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
36385 the linking options.
36386 (Build_Library.Check_Libs): On VMS, if there is a dependency on
36387 g-trasym.ads, set Gtrasymobj_Needed to True.
36388
36389 * prj-attr.adb: Add new package Metrics for gnatmetric
36390
36391 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
36392 canonical case to take into account files with upper case characters on
36393 Windows.
36394 (Ada_Check): Load the reference symbol file name in the name buffer to
36395 check it, not the symbol file name.
36396
36397 * snames.ads, snames.adb: Add standard name Metrics (name of project
36398 file package for gnatmetric).
36399
36400 * vms_conv.ads: Add Metric to Comment_Type
36401
36402 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
36403
36404 * vms_data.ads: Add qualifiers for GNAT METRIC
36405
36406 * makegpr.adb (Link_Executables): Take into account the switches
36407 specified in package Linker of the main project.
36408
364092004-06-07 Thomas Quinot <quinot@act-europe.fr>
36410
36411 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
36412 the index of the last element is Units.Last, not Units.Table'Last
36413 (which is usually not a valid index within the actually allocated
36414 storage for the table).
36415
36416 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
36417 determines whether to generate a call to a checked storage pool
36418 Dereference action.
36419 Generate such a call only for a dereference that either comes from
36420 source, or is the result of rewriting a dereference that comes from
36421 source.
36422
364232004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
36424
36425 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
36426
364272004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
36428
36429 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
36430 file level, elaborate the stride for inner dimensions in alignment
36431 units, not bytes.
36432
36433 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
36434 in a comment.
36435
364362004-06-07 Javier Miranda <miranda@gnat.com>
36437
36438 * exp_ch6.adb: Correct wrong modification in previous patch
36439
364402004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
36441
36442 * g-trasym.ads: Corrected comment to properly reflect level of support
36443 on VMS.
36444
364452004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
36446
36447 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
36448 includes case of a variable referenced on the left hand side of an
36449 assignment, therefore remove redundant code. Variables and prefixes of
36450 indexed or selected components are now marked as referenced on left
36451 hand side. Warnings are now properly emitted when variables or prefixes
36452 are assigned but not read.
36453
36454 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
36455 left hand side referenced variables. Private access types do not
36456 produce the warning "variable ... is assigned but never read".
36457 Add also additional checks to left hand side referenced variables.
36458 Aliased, renamed objects and access types do not produce the warning
36459 "variable ... is assigned but never read" since other entities may read
36460 the memory location.
36461
364622004-06-07 Jerome Guitton <guitton@act-europe.fr>
36463
36464 * Makefile.in: In the powerpc/vxworks-specific section, restore
36465 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
36466 by mistake).
36467
364682004-06-07 Ed Schonberg <schonberg@gnat.com>
36469
36470 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
36471 predefined operators.
36472 Removes spurious type errors from g-trasym-vms.adb.
36473
36474 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
36475 distinct from the operator appearing in the source, call appropriate
36476 routine to insert conversions when needed, and complete resolution of
36477 node.
36478 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
36479 interpretations for rewritten right operand.
36480 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
36481 the other operand is overloaded and the context is a type conversion.
36482
364832004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36484
36485 * ada-tree.def (BLOCK_STMT): Now has two operands.
36486 (BREAK_STMT): New.
36487
36488 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
36489
36490 * gigi.h: (gnat_poplevel): Now returns a tree.
36491
36492 * trans.c (end_block_stmt): Add arg; all callers changed.
36493 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
36494 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
36495 (add_stmt): Set TREE_TYPE.
36496 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
36497 (gnat_expand_stmt, case BREAK_STMT): New case.
36498
36499 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
36500
365012004-06-07 Jose Ruiz <ruiz@act-europe.fr>
36502
36503 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
36504 procedure Set_Stack_Size that is not needed.
36505
365062004-06-07 Sergey Rybin <rybin@act-europe.fr>
36507
36508 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
36509 used for gnatpp input file and for the files upon which it depends
36510
365112004-06-07 Ben Brosgol <brosgol@gnat.com>
36512
36513 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
36514
365152004-06-07 Arnaud Charlet <charlet@act-europe.fr>
36516
36517 * gnatvsn.ads: Bump version numbers appropriately.
36518 Add new build type.
36519
365202004-06-07 Pascal Obry <obry@gnat.com>
36521
36522 * gnat_ugn.texi: Improve comments about imported names and link names
36523 on Windows. Add a note about the requirement to use -k gnatdll's option
36524 when working with a DLL which has stripped stdcall symbols (no @nn
36525 suffix).
36526
8a36a0cc
AC
365272004-05-27 Vincent Celier <celier@gnat.com>
36528
36529 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
36530 COMMENTS_LAYOUT=UNTOUCHED
36531
36532 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
36533 symbols-vms-alpha.adb
36534
365352004-05-27 Thomas Quinot <quinot@act-europe.fr>
36536
36537 * sem.ads: Clarify documentation on checks suppression.
36538
36539 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
36540
365412004-05-27 Ed Schonberg <schonberg@gnat.com>
36542
36543 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
36544 the case of multiple derivations.
36545 (Is_Object_Reference): For a selected component, verify that the prefix
36546 is itself an object and not a value.
36547
36548 * sem_ch12.adb (Same_Instantiated_Constant): New name for
36549 Same_Instantiated_Entity.
36550 (Same_Instantiated_Variable): Subsidiary to
36551 Check_Formal_Package_Instance, to recognize actuals for in-out generic
36552 formals that are obtained from a previous formal package.
36553 (Instantiate_Subprogram_Body): Emit proper error when
36554 generating code and the proper body of a stub is missing.
36555
36556 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
36557 has a universal interpretation, do the disambiguation here.
36558
36559 * exp_ch4.adb (Expand_N_Type_Conversion,
36560 Expand_N_Unchecked_Type_Conversion): Special handling when target type
36561 is Address, to avoid typing anomalies when Address is a visible integer
36562 type.
36563
36564 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
36565 to determine whether a subprogram should not be marked Pure, even when
36566 declared in a pure package.
36567
365682004-05-27 Jose Ruiz <ruiz@act-europe.fr>
36569
36570 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
36571
36572 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
36573 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
36574 Update the documentation about the Ravenscar profile, following the
36575 definition found in AI-249.
36576
36577 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
36578 setting the Profile (Ravenscar). This must be done in addition to
36579 setting the required restrictions.
36580
36581 * rtsfind.ads: Add the set of operations defined in package
36582 Ada.Interrupts.
36583
36584 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
36585 restriction.
36586
365872004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
36588
36589 lang-specs.h: Always require -c or -S and always redirect to /dev/null
36590 if -gnatc or -gnats is passed.
36591
365922004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
36593
36594 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
36595 a significant reference. Warnings are now properly emitted when a
36596 discriminated type is not referenced.
36597
36598 * lib-xref.adb (Generate_Reference): A deferred constant completion,
36599 record representation clause or record type discriminant does not
36600 produce a reference to its corresponding entity. Warnings are now
36601 properly emitted when deferred constants and record types are not
36602 referenced.
36603
366042004-05-27 Geert Bosch <bosch@gnat.com>
36605
36606 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
36607 Fixes ACATS Annex G tests.
36608
366092004-05-27 Robert Dewar <dewar@gnat.com>
36610
36611 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
36612 handling WITH
36613
366142004-05-27 Arnaud Charlet <charlet@act-europe.fr>
36615
36616 * s-interr.adb (Server_Task): Take into account case of early return
36617 from sigwait under e.g. linux.
36618
366192004-05-27 Sergey Rybin <rybin@act-europe.fr>
36620
36621 * gnat_ugn.texi: Add description for the new gnatpp options:
36622 -rnb - replace the original source without creating its backup copy
36623 -c0 - do not format comments
36624
0fb2ea01
AC
366252004-05-24 Geert Bosch <bosch@gnat.com>
36626
36627 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
36628 with 192 bits of precision, sufficient to reduce a double-extended
36629 arguments X with a maximum relative error of T'Machine_Epsilon, for X
36630 in -2.0**32 .. 2.0**32.
36631 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
36632 reduction by the processor, which only uses a 68-bit approximation of
36633 Pi.
36634 (Tan): Always reduce arguments and compute function either using
36635 the processor's fptan instruction, or by dividing sin and cos as needed.
36636
366372004-05-24 Doug Rupp <rupp@gnat.com>
36638
36639 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
36640 gcc error on 32/64 bit VMS.
36641
366422004-05-24 Olivier Hainque <hainque@act-europe.fr>
36643
36644 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
36645 since this is what we get for stack overflows although not documented
36646 as such.
36647 Document the issues which may require adjustments to our signal
36648 handlers.
36649
366502004-05-24 Ed Schonberg <schonberg@gnat.com>
36651
36652 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
36653 enclosing dynamic scope if the instantiation is within a generic unit.
36654
366552004-05-24 Arnaud Charlet <charlet@act-europe.fr>
36656
36657 * exp_dbug.ads: Fix typo.
36658
36659 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
36660 Rename it to its proper name: system-linux-ia64.ads
36661 (stamp-gnatlib1): Remove extra target specific run time files when
36662 setting up the rts directory.
36663
366642004-05-24 Javier Miranda <miranda@gnat.com>
36665
36666 * einfo.ads, einfo.adb (Limited_Views): Removed.
36667 (Limited_View): New attribute that replaces the previous one. It is
36668 now a bona fide package with the limited-view list through the
36669 first_entity and first_private attributes.
36670
36671 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
36672 limited-private-with clause.
36673 (Install_Limited_Withed_Unit): Install the private declarations of a
36674 limited-private-withed package. Update the installation of the shadow
36675 entities according to the new structure (see Build_Limited_Views)
36676 (Build_Limited_Views): Replace the previous implementation of the
36677 limited view by a package entity that references the first shadow
36678 entity plus the first shadow private entity (required for limited-
36679 private-with clause)
36680 (New_Internal_Shadow_Entity): Code cleanup.
36681 (Remove_Limited_With_Clause): Update the implementation to undo the
36682 new work carried out by Build_Limited_Views.
36683 (Build_Chain): Complete documentation.
36684 Replace Ada0Y by Ada 0Y in comments
36685 Minor reformating
36686
36687 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
36688 types the level of accessibility depends on the enclosing type
36689 declaration.
36690
36691 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
36692 entities. Complete documentation of previous change.
36693
366942004-05-24 Robert Dewar <dewar@gnat.com>
36695
36696 * namet.adb: Minor reformatting
36697 Avoid use of name I (replace by J)
36698 Minor code restructuring
36699
36700 * sem_ch6.adb: Minor reformatting
36701
36702 * lib-writ.adb: Do not set restriction as active if this is a
36703 Restriction_Warning case.
36704
36705 * sem_prag.adb: Reset restriction warning flag if real pragma
36706 restriction encountered.
36707
36708 * s-htable.adb: Minor reformatting
36709 Change rotate count to 3 in Hash (improves hash for small strings)
36710
36711 * 5qsystem.ads: Add comments for type Address (no literals allowed).
36712
36713 * gnat_ugn.texi: Add new section of documentation "Code Generation
36714 Control", which describes the use of -m switches.
36715
367162004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
36717
a1db9d9c
AC
36718 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
36719 through the DECL_INITIAL for renamed variables.
0fb2ea01 36720
7599f1b0
AC
367212004-05-24 Arnaud Charlet <charlet@act-europe.fr>
36722
36723 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
36724
c37bb106
AC
367252004-05-19 Joel Brobecker <brobecker@gnat.com>
36726
36727 * exp_dbug.ads: Correct comments concerning handling of overloading,
36728 since we no longer use $ anymore.
36729
367302004-05-19 Sergey Rybin <rybin@act-europe.fr>
36731
36732 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
36733 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
36734 with illegal subunits.
36735
367362004-05-19 Ed Schonberg <schonberg@gnat.com>
36737
36738 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
36739 body with front-end inlining enabled, check whether an inline pragma
36740 appears immediately after the body and applies to it.
36741
36742 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
36743 enabled and the pragma appears after the body of the subprogram.
36744
b5e792e2
AC
367452004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36746
36747 Part of function-at-a-time conversion
36748
36749 * misc.c (adjust_decl_rtl): Deleted.
36750 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
36751 Define.
36752
36753 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
36754 (add_decl_stmt, add_stmt, block_has_vars): New functions.
36755 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
36756
36757 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
36758 when making a decl.
36759 (gnat_to_gnu_entity): Likewise.
36760 Use add_stmt to update setjmp buffer.
36761 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
36762 flush_addressof.
36763 No longer call adjust_decl_rtl.
36764 (DECL_INIT_BY_ASSIGN_P): New macro.
36765 (DECL_STMT_VAR): Likewise.
36766
36767 * trans.c (gigi): Call start_block_stmt to make the outermost
36768 BLOCK_STMT.
36769 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
36770 Call start_block_stmt and end_block_stmt temporarily.
36771 Use gnat_expand_stmt instead of expand_expr_stmt.
36772 (add_decl_stmt): New function.
36773 (tree_transform): Call it.
36774 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
36775 (end_block_stmt): Set type and NULL_STMT.
36776 (gnat_expand_stmt): Make recursize call instead of calling
36777 expand_expr_stmt.
36778 (gnat_expand_stmt, case DECL_STMT): New case.
36779 (set_lineno_from_sloc): Do nothing if global.
36780 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
36781 (start_block_stmt, add_stmt, end_block_stmt): New functions.
36782 (build_block_stmt): Call them.
36783 (gnat_to_code): Don't expand NULL_STMT.
36784 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
36785 args.
36786 (tree_transform): Likewise.
36787 (tree_transform, case N_Null_Statement): Return NULL_STMT.
36788 (gnat_expand_stmt, case NULL_STMT): New case.
36789 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
36790 IF_STMT_TRUE.
36791
36792 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
36793 TREE_ADDRESSABLE.
36794
36795 * utils.c (create_var_decl): Do not call expand_decl or
36796 expand_decl_init.
36797 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
36798 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
36799 here.
36800 (struct e_stack): Add chain_next to GTY.
36801 (struct binding_level): Deleted.
36802 (struct ada_binding_level): New struct.
36803 (free_block_chain): New.
36804 (global_binding_level, clear_binding_level): Deleted.
36805 (global_bindings_p): Rework to see if no chain.
36806 (kept_level_p, set_block): Deleted.
36807 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
36808 new data structure and work directly on BLOCK node.
36809 (gnat_poplevel): Similarly.
36810 (get_decls): Look at BLOCK_VARS.
36811 (insert_block): Work directly on BLOCK node.
36812 (block_has_var): New function.
36813 (pushdecl): Rework for new binding structures.
36814 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
36815 poplevel.
36816 (build_subprog_body): Likewise.
36817 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
36818
36819 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
36820
36821 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
36822 (DECL_STMT_VAR): Likewise.
36823
368242004-05-17 Robert Dewar <dewar@gnat.com>
36825
36826 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
36827 procedure
36828
36829 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
36830 of restriction synonyums by using
36831 Restrict.Process_Restriction_Synonyms.
36832
36833 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
36834
36835 * s-restri.ads (Tasking_Allowed): Correct missing comment
36836
36837 * s-rident.ads: Add entries for restriction synonyms
36838
36839 * ali.adb: Fix some problems with badly formatted ALI files that can
36840 result in infinite loops.
36841
36842 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
36843 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
36844 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36845 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
36846 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
36847 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
36848 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
36849 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
36850 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
36851 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
36852 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
36853 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
36854 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
36855 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
36856 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36857 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36858 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36859 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36860 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
36861 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
36862 to Task_Id (minor cleanup).
36863
368642004-05-17 Vincent Celier <celier@gnat.com>
36865
36866 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
36867 directory separator.
36868
36869 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
36870 project being extended, if Languages is not declared in extending
36871 project.
36872
368732004-05-17 Javier Miranda <miranda@gnat.com>
36874
36875 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
36876 limited view of a visible sibling.
36877
9bc856dd
AC
368782004-05-14 Robert Dewar <dewar@gnat.com>
36879
36880 * gnat_ugn.texi: Minor change to -gnatS documentation
36881
36882 * sprint.adb: Remove some instances of Assert (False) and for this
36883 purpose replace them by output of a ??? string.
36884
36885 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
36886 Assert (False).
36887
36888 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
36889 flag processing. This was suppressing required dependencies in
36890 No_Run_Time mode and is not needed since the binder does not generate
36891 references for things in libgnat anyway.
36892
36893 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
36894 warning.
36895
368962004-05-14 Thomas Quinot <quinot@act-europe.fr>
36897
36898 * gnat_ugn.texi: Document AIX-specific issue with initialization of
36899 resolver library.
36900
36901 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
36902 action for the case of an actual parameter in an init proc call.
36903
369042004-05-14 Ed Schonberg <schonberg@gnat.com>
36905
36906 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
36907 subtype, check visible entities in base type.
36908
36909 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
36910 actions if the object is a renaming.
36911
36912 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
36913 Check_Formal_Package_Instance, to determine more precisely when the
36914 formal and the actual denote the same entity.
36915
369162004-05-14 Javier Miranda <miranda@gnat.com>
36917
36918 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
36919
36920 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
36921 corresponding to a private_with must be removed from visibility; it
36922 will be made visible later, just before we analyze the private part of
36923 the package.
36924 (Check_Private_Child_Unit): Allow private_with clauses in public
36925 siblings.
36926 (Install_Siblings): Make visible the private entities of private-withed
36927 siblings.
36928 (Install_Withed_Unit): Do not install the private withed unit if we
36929 are compiling a package declaration and the Private_With_OK flag was
36930 not set by the caller. These declarations will be installed later,
36931 just before we analyze the private part of the package.
36932
36933 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
36934 during the evaluation of the expression that initializes the object,
36935 decorate it with the expected type to avoid cascade errors.
36936 Code cleanup.
36937
36938 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
36939 subprogram we have to install the private_with clauses after its
36940 specification has been analyzed (as documented in AI-262.TXT).
36941
36942 * sem_ch8.adb (Has_Private_With): New function. Determines if the
36943 current compilation unit has a private with on a given entity.
36944 (Find_Direct_Name): Detect the Beaujolais problem described in
36945 AI-262.TXT
36946
36947 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
36948 provides the functionality of the function Is_Ancestor that was
36949 previously available in sem_ch10. It has been renamed to avoid
36950 overloading.
36951
36952 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
36953
369542004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36955
36956 * utils.c (build_vms_descriptor): Use SImode pointers.
36957
369582004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
36959
36960 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
36961
369622004-05-14 GNAT Script <nobody@gnat.com>
36963
36964 * Make-lang.in: Makefile automatically updated
36965
084c663c
AC
369662004-05-14 Arnaud Charlet <charlet@act-europe.fr>
36967
36968 Renaming of target specific files for clarity
36969
6615c446 36970 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
36971
36972 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
36973 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
36974 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
36975 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
36976 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
36977 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
36978 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
36979 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
36980 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
36981 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
36982 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
36983 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
36984 51osinte.adb, 51osinte.ads, 51system.ads,
36985 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36986 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
36987 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
36988 56tpopsp.adb, 57system.ads, 58system.ads,
36989 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
36990 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36991 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
36992 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
36993 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
36994 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36995 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
36996 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
36997 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
36998 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
36999 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
37000 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
37001 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
37002 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
37003 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
37004 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37005 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37006 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37007 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
37008 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
37009 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
37010 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
37011 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
37012 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37013 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
37014 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
37015 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37016 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
37017 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37018 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
37019 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
37020 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
37021 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
37022 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
37023 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
37024 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
37025 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
37026 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
37027 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
37028 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
37029
37030 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
37031 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
37032 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
37033 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
37034 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
37035 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
37036 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
37037 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
37038 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
37039 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
37040 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
37041 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
37042 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
37043 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
37044 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
37045 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
37046 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
37047 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
37048 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
37049 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
37050 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
37051 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
37052 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
37053 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
37054 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
37055 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
37056 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
37057 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
37058 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
37059 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
37060 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
37061 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
37062 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
37063 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
37064 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
37065 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
37066 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
37067 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
37068 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
37069 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
37070 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
37071 s-osinte-vms.ads, s-osinte-vxworks.adb,
37072 s-osinte-vxworks.ads, s-osprim-mingw.adb,
37073 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
37074 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
37075 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
37076 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
37077 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
37078 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
37079 s-stchop-vxworks.adb, s-taprop-dummy.adb,
37080 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
37081 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
37082 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
37083 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
37084 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
37085 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
37086 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
37087 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
37088 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
37089 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
37090 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
37091 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
37092 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
37093 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
37094 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
37095 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
37096 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
37097 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
37098 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
37099 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
37100 system-irix-o32.ads, system-linux-x86_64.ads,
37101 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
37102 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
37103 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
37104 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
37105 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
37106 system-vxworks-mips.ads, system-vxworks-ppc.ads,
37107 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
37108 above.
37109
90afe2c9
ZW
371102004-05-13 Zack Weinberg <zack@codesourcery.com>
37111
37112 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
37113
6de9cd9a
DN
371142004-05-13 Diego Novillo <dnovillo@redhat.com>
37115
37116 Merge from tree-ssa-20020619-branch.
37117
37118 * config-lang.in (boot_language, build_by_default): Set
37119 to no.
37120 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
37121 (max_size): Add static chain op for call_expr.
37122
f5657d67
RS
371232004-05-12 Richard Sandiford <rsandifo@redhat.com>
37124
37125 PR target/15331
37126 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
37127
4413b636
RS
371282004-05-11 Roger Sayle <roger@eyesopen.com>
37129
37130 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
37131 COND_EXPR.
37132
5950a3ac
AC
371332004-05-10 Doug Rupp <rupp@gnat.com>
37134
37135 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
37136 system.aux_dec.
37137
37138 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
37139
37140 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
37141
37142 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
37143 Fixes undefined symbols in IA64 gnatlib.
37144
37145 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
37146
37147 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
37148 Short_Address). This will be moved to system.auxdec.
37149
371502004-05-10 Thomas Quinot <quinot@act-europe.fr>
37151
37152 * sem_util.adb: Replace test for presence of a node that is always
37153 present with a call to Discard_Node.
37154
37155 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
37156 Analyze on the library unit node after generation of distribution stub
37157 constructs. The call was a no-op because Unit_Node has already been
37158 Analyzed, and the tree fragments for the distribution stubs are
37159 analyzed as they are inserted in Exp_Dist.
37160 Update comment regarding to distribution stubs to reflect that we
37161 do not generate stub in separate files anymore.
37162
37163 * einfo.ads: Clarify the fact that a tagged private type has the
37164 E_Record_Type_With_Private Ekind.
37165
37166 * erroutc.adb: Minor reformatting
37167
37168 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
37169 values if line length is increased using -gnatyM (noticed during code
37170 reading).
37171
37172 * eval_fat.adb: Minor reformatting
37173 Put spaces around exponentiation operator
37174
371752004-05-10 Ed Schonberg <schonberg@gnat.com>
37176
37177 PR ada/15005
37178 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
37179 has been rewritten as an explicit dereference, retrieve type of
37180 original node to check for possibly unconstrained record type.
37181
371822004-05-10 Ed Schonberg <schonberg@gnat.com>
37183
37184 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
37185 overriding, use the operation of the parent unconditionally.
37186
37187 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
37188 operation when either operand is a literal, to avoid further
37189 ambiguities.
37190
37191 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
37192 overridden by a previous explicit declaration, mark the previous entity
37193 as overriding.
37194
37195 * sem_disp.adb (Check_Dispatching_Operation): New predicate
37196 Is_Visibly_Controlled, to determine whether a declaration of a
37197 primitive control operation for a derived type overrides an inherited
37198 one. Add warning if the explicit declaration does not override.
37199
372002004-05-10 Vincent Celier <celier@gnat.com>
37201
37202 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
37203 some cases when the sources are no longer present.
37204
37205 * make.adb (Collect_Arguments): Fail if an external source, not part
37206 of any project need to be compiled, when switch -x has not been
37207 specified.
37208
37209 * makeusg.adb: Document new switch -x
37210
37211 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
37212 defaulted to False.
37213
37214 * switch-m.adb (Scan_Make_Switches): New switch -x
37215
37216 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
37217 gnatmake switch -x.
37218
37219 * gnat_ugn.texi: Document new gnatmake switch -x
37220
372212004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
37222
37223 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
37224
37225 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
37226 (process_attributes): Likewise.
37227
372282004-05-10 Joel Brobecker <brobecker@gnat.com>
37229
37230 * s-inmaop.ads: Fix spelling mistake in one of the comments.
37231
372322004-05-10 Robert Dewar <dewar@gnat.com>
37233
37234 * gnat_ugn.texi: Document that for config pragma files, the maximum
37235 line length is always 32767.
37236
37237 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
37238 literals is now allowed.
37239
37240 * gnat-style.texi: Remove statement about splitting long lines before
37241 an operator rather than after, since we do not follow this rule at all.
37242 Clarify rule (really lack of rule) for spaces around exponentiation
37243
37244 * sem_elim.adb: Allow concatenation of string literals as well as a
37245 single string literal for pragma arguments.
37246
37247 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
37248
37249 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
37250 written for append case.
37251
37252 * frontend.adb: Changes to avoid checking max line length in config
37253 pragma files.
37254
37255 * g-os_lib.ads: Minor reformatting
37256
37257 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
37258 wrong in any case. Instead use standard value. Noticed during code
37259 reading.
37260
37261 * opt.ads (Max_Line_Length): New field, used to implement removal of
37262 limitation on length of lines when scanning config pragma files.
37263
37264 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
37265 makeutl.ads, makeutl.adb: Minor reformatting
37266
37267 * scn.adb: Do not check line length while scanning config pragma files
37268 Do not check line length while scanning out license information
37269
37270 * scng.adb: Changes to avoid line length checks while parsing config
37271 pragma files.
37272
372732004-05-10 GNAT Script <nobody@gnat.com>
37274
37275 * Make-lang.in: Makefile automatically updated
37276
48664302
AC
372772004-05-05 Arnaud Charlet <charlet@act-europe.fr>
37278
37279 * osint.adb (Find_Program_Name): Fix handling of VMS version
37280 number.
37281
aa720a54
AC
372822004-05-05 Emmanuel Briot <briot@act-europe.fr>
37283
37284 * g-os_lib.ads (Invalid_Time): New constant
37285
37286 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
37287 return OS_Time instead of time_t to match what is imported by Ada.
37288 Now return -1 if the file doesn't exist, instead of a random value
37289
372902004-05-05 Robert Dewar <dewar@gnat.com>
37291
37292 * usage.adb: Add line for -gnatR?s switch
37293
37294 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
37295
37296 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
37297 and for Match (Data_First, Data_last)
37298
37299 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
37300 written when we are dealing with multi-unit files.
37301
373022004-05-05 Jerome Guitton <guitton@act-europe.fr>
37303
37304 * Makefile.in: Remove unused targets and variables.
37305
373062004-05-05 Vincent Celier <celier@gnat.com>
37307
37308 * switch-m.adb: New gnatmake switch -eI
37309
37310 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
37311 of new gnatmake switch -eInnn.
37312
37313 * makegpr.adb: Take into account new parameters Index and Src_Index in
37314 Prj.Util.
37315
37316 * clean.adb: Implement support for multi-unit sources, including new
37317 switch -i.
37318
37319 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
37320 Src_Index.
37321
37322 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
37323 (Extract_From_Q): New out parameter Index
37324 (Mark, Is_Marked): Subprograms moved to Makeutl
37325 (Switches_Of): New parameter Source_Index
37326 (Add_Switch): New parameter Index
37327 (Check): New parameter Source_Index
37328 (Collect_Arguments): New parameter Source_Index
37329 (Collect_Arguments_And_Compile): New parameter Source_Index
37330 (Compile): New parameter Source_Index
37331 Put subprograms in alphabetical order
37332 Add support for multi-source sources, including in project files.
37333
37334 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
37335 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
37336 Make.
37337
37338 * makeusg.adb: New gnatmake switch -eInnn
37339
37340 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
37341 Prj.Util.Value_Of.
37342
37343 * opt.ads (Main_Index): New variable, defaulted to 0.
37344
37345 * osint.ads, osinte.adb (Add_File): New parameter Index
37346 (Current_Source_Index): New function
37347
37348 * prj.adb: Take into account new components Index and Src_Index
37349
37350 * prj.ads (String_Element): New component Index
37351 (Variable_Value): New component Index
37352 (Array_Element): New component Src_Index
37353
37354 * prj-attr.adb: Indicate that optional index may be specified for
37355 attributes Main, Executable, Spec, Body and some of Switches.
37356
37357 * prj-attr.ads (Attribute_Kind): New values for optional indexes
37358 (Attribute_Record): New component Optional_Index
37359
37360 * prj-com.ads (File_Name_Data): New component Index
37361
37362 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
37363
37364 * prj-env.adb (Put): Output optional index
37365
37366 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
37367 attributes Spec and Body.
37368
37369 * prj-nmsc.adb: Process optional indexes
37370
37371 * prj-pp.adb: Ouput "at" for optional indexes
37372
37373 * prj-proc.adb: Take into account optional indexes
37374
37375 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
37376 Optional_Index. For string literal,
37377 process optional index when Optional_Index is True.
37378 (Parse_Expresion): New Boolean parameter Optional_Index
37379
37380 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
37381 (Set_Source_Index_Of): New procedure
37382
37383 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
37384 index.
37385
37386 * prj-util.ads (Executable_Of): New parameter Index
37387 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
37388 New parameter Src_Index, defaulted to 0.
37389
373902004-05-05 Ed Schonberg <schonberg@gnat.com>
37391
37392 PR ada/15257
37393 * sem_ch3.adb (Access_Definition): If this is an access parameter
37394 whose designated type is imported through a limited_with clause, do
37395 not add the enclosing subprogram to the list of private dependents of
37396 the type.
37397
373982004-05-05 Ed Schonberg <schonberg@gnat.com>
37399
37400 PR ada/15258
37401 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
37402 a limited_with clause, and the other is its non-limited view.
37403
374042004-05-05 Thomas Quinot <quinot@act-europe.fr>
37405
37406 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
37407
90afe2c9 37408 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
37409 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
37410 Stand.Boolean_Literals to produce references to entities
37411 Standard_False and Standard_True from compile-time computed boolean
37412 values.
37413
37414 * stand.ads (Boolean_Literals): New variable, provides the entity
37415 values for False and True, for use by the expander.
37416
374172004-05-05 Doug Rupp <rupp@gnat.com>
37418
37419 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
37420 5vinmaop.adb: Unchecked convert Short_Address vice Address
37421
37422 * adaint.c, raise.c: Caste CRTL function return value
37423 to avoid gcc error on 32/64 bit IVMS.
37424
37425 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
37426 target = IA64/VMS.
37427
37428 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
37429
37430 * 5qsystem.ads (Address): Declare as Long_Integer
37431 (Short_Address): Declare as 32 bit subtype of Address
37432 Declare abstract address operations to avoid gratuitous ambiguities.
37433
374342004-05-05 Jose Ruiz <ruiz@act-europe.fr>
37435
37436 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
37437 instead of the old Boolean_Entry_Barriers.
37438 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
37439
374402004-05-05 GNAT Script <nobody@gnat.com>
37441
37442 * Make-lang.in: Makefile automatically updated
37443
1ab2888d
AC
374442004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37445
37446 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
37447
9f4fd324
AC
374482004-05-03 Olivier Hainque <hainque@act-europe.fr>
37449
37450 PR ada/15152
9f4fd324
AC
37451 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
37452 alone. Replacing object references by literals is inappropriate in a
37453 so low level context.
37454
374552004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37456
37457 * a-exexpr.adb: Add comments
37458
374592004-05-03 Joel Brobecker <brobecker@gnat.com>
37460
37461 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
37462 declare the Ancestor_Tags array in Type_Specific_Data with a small size
37463 without risking a bounds check error when accessing one of its
37464 components.
37465 (Type_Specific_Data): Define Ancestor_Tags as a small array.
37466 This prevents us from hitting a limitation during the debug info
37467 generation when using stabs.
37468
37469 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
37470 small array.
37471 This prevents us from hitting a limitation during the debug info
37472 generation when using stabs.
37473
374742004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
37475
37476 lang-specs.h: Remove -gnatz* from specs.
37477
374782004-05-03 Vincent Celier <celier@gnat.com>
37479
37480 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
37481
37482 * Make-lang.in, Makefile.in: Add gprmake
37483
374842004-05-03 Thomas Quinot <quinot@act-europe.fr>
37485
37486 * sem_aggr.adb: Fix typo in comment.
37487
374882004-05-03 Robert Dewar <dewar@gnat.com>
37489
37490 * make.adb: Minor reformatting
37491
37492 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
37493
37494 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
37495 so that it works when address is not a private type.
37496
37497 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
37498 properly with rewritten unchecked conversions. This prevents
37499 order-of-elaboration issues that can otherwise arise.
37500 (Minimum_Size): Don't check size of access types under VMS
37501
37502 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
37503 interpretations of integer literals as type System.Address.
37504
37505 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
37506 (Is_Descendent_Of): New function
37507
375082004-05-03 Jose Ruiz <ruiz@act-europe.fr>
37509
37510 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37511 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
37512 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
37513
37514 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
37515 of the old Max_Entry_Queue_Depth.
37516
37517 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37518 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
37519 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
37520
37521 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
37522 New entry for proper handling of Max_Entry_Queue_Depth.
37523 New entry for proper handling of No_Dynamic_Interrupts.
37524
37525 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
37526 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37527 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
37528 the GNAT specific restriction Max_Entry_Queue_Depth.
37529 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
37530 the GNAT specific restriction No_Dynamic_Interrupts.
37531
37532 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
37533 instead of the old Boolean_Entry_Barriers.
37534 Use the new restriction No_Dynamic_Attachment instead of the old
37535 No_Dynamic_Interrupts.
37536
37537 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
37538 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37539
37540 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
37541 of the old Max_Entry_Queue_Depth.
37542
375432004-05-03 GNAT Script <nobody@gnat.com>
37544
37545 * Make-lang.in: Makefile automatically updated
37546
d935a36e
AC
375472004-04-29 Ed Schonberg <schonberg@gnat.com>
37548
37549 * checks.adb (Enable_Range_Check): If the prefix of an index component
37550 is an access to an unconstrained array, perform check unconditionally.
37551
375522004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37553
37554 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
37555 Component_Clause.
37556
375572004-04-29 Olivier Hainque <hainque@act-europe.fr>
37558
37559 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
37560 alternate stack setting. There was no support for the tasking cases
37561 and the changes eventually caused a number of side-effect failures in
37562 the non-tasking case too.
37563
375642004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
37565
37566 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
37567 -gnats is passed.
37568
375692004-04-29 Vincent Celier <celier@gnat.com>
37570
37571 * make.adb (Gnatmake): Increase max size of argument array for
37572 gnatbind for the potential addition of -F.
37573 If there are Stand-Alone Library projects, invoke gnatbind with -F to
37574 be sure that elaboration flags will be checked.
37575
37576 * switch-c.adb: Correct call to Scan_Pos for -gnateI
37577
375782004-04-29 Thomas Quinot <quinot@act-europe.fr>
37579
37580 * sem_warn.adb (Check_References): Move '<access-variable> may be
37581 null' warning out of under Warn_On_No_Value_Assigned.
37582
375832004-04-29 Ed Falis <falis@gnat.com>
37584
37585 * gnat_ugn.texi: Fixed texi error
37586
375872004-04-29 Robert Dewar <dewar@gnat.com>
37588
37589 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
37590 abstract operations if they come from predefined files.
37591
37592 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
37593 Dynamic, not RM).
37594
37595 * s-addope.adb: Correct obvious error in mod function
37596
375972004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
37598
37599 * Makefile.in: Add target pairs for powerpc darwin*
37600 tasking support.
37601
37602 * a-intnam-darwin.ads, s-osinte-darwin.adb,
37603 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
37604
ea16c81b
UW
376052004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37606
37607 * Makefile.in: Add target macro definitions for s390*-linux*.
37608 * system-linux-s390.ads: New file.
37609 * system-linux-s390x.ads: New file.
37610
f0e6f845
JM
376112004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
37612
37613 * gnat_ugn.texi: Correct argument to @setfilename.
37614
e8c2eedc
UW
376152004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37616
37617 * a-exexpr.adb (Unwind_Word): New data type.
37618 (Unwind_Exception): Use it as type of Private1 and Private2.
37619
37620 * raise.c (db_action_for): Fix debug printf.
37621
f2c9e65a
AC
376222004-04-27 Ed Schonberg <schonberg@gnat.com>
37623
37624 * a-wtmoio.ads: Formal type must be a modular type, not a signed
37625 integer type.
37626
376272004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37628
37629 * decl.c (gnat_to_gnu_entity, case object): Call
37630 __builtin_update_setjmp_buf.
37631
37632 * gigi.h (update_setjmp_buf): Deleted.
37633 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
37634
37635 * misc.c: (update_setjmp_buf): Deleted.
37636
37637 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
37638 around block of RTL.
37639
37640 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
37641
35b7fa6a
AC
376422004-04-26 Thomas Quinot <quinot@act-europe.fr>
37643
37644 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
37645 subprogram for which no pragma All_Calls_Remote applies, store the
37646 address of the real subprogram in the underlying record type, so local
37647 dereferences do not go through the PCS.
37648
376492004-04-26 Robert Dewar <dewar@gnat.com>
37650
37651 * i-c.ads: Add some type qualifications to avoid ambiguities when
37652 compiling with s-auxdec.ads and a non-private address type.
37653
376542004-04-26 Arnaud Charlet <charlet@act-europe.fr>
37655
37656 * Makefile.rtl: Fix error in previous check-in:
37657 Add s-addope.o to non tasking object list (rather than tasking object
37658 list).
37659
376602004-04-26 Javier Miranda <miranda@gnat.com>
37661
37662 * sem_aggr.adb: Fix typo in comments
37663 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
37664 Required to check the null-exclusion attribute.
37665
37666 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
37667 case of anonymous access types in record and array components. For a
37668 component definition the level is the same of the enclosing composite
37669 type.
37670
37671 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
37672 that are anonymous access types the level of accessibility depends on
37673 the enclosing type declaration. In order to have this information, set
37674 the scope of the anonymous access type to the enclosing record type
37675 declaration.
37676 (Array_Type_Declaration): In case of components that are anonymous
37677 access types the level of accessibility depends on the enclosing type
37678 declaration. In order to have this information, set the scope of the
37679 anonymous access type to the enclosing array type declaration.
37680
37681 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
37682 access type.
37683
37684 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
37685 renaming of anonymous access-to-constant types allowed if and only if
37686 the renamed object is access-to-constant.
37687
37688 * sem_util.adb (Type_Access_Level): In case of anonymous access types
37689 that are component_definition or discriminants of a nonlimited type,
37690 the level is the same as that of the enclosing component type.
37691
376922004-04-26 Sergey Rybin <rybin@act-europe.fr>
37693
37694 * sem_elim.adb: Some minor code reorganization from code reading. Fix
37695 misprint in the function name (File_Name_Match).
37696
9e94c78f 376972004-04-23 Laurent Guerby <laurent@guerby.net>
5a944040 37698
90afe2c9 37699 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 37700 install.
90afe2c9 37701
d0fd1344
RO
377022004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37703
37704 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
37705
cc4f0de1
AC
377062004-04-23 Emmanuel Briot <briot@act-europe.fr>
37707
37708 * adaint.c (__gnat_try_lock): No longer requires that the parent
37709 directory be writable, the directory itself is enough.
37710 (gnat_is_absolute_path): Change profile, so that the call from
37711 GNAT.OS_Lib can be made more efficient.
37712
37713 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
37714 from GNAT.OS_Lib can be made more efficient.
37715
37716 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
37717 one copy of the file name. Found by code reading.
37718
377192004-04-23 Vincent Celier <celier@gnat.com>
37720
37721 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
37722 Correct documentation on gnatmake switches transmitted to the compiler
37723
37724 * ali.ads: Minor comment fix
37725
377262004-04-23 Javier Miranda <miranda@gnat.com>
37727
37728 * sem_ch6.adb: (Confirming Types): Code cleanup
37729
37730 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
37731 subprogram types: E_Anonymous_Access_Subprogram_Type and
37732 E_Anonymous_Access_Protected_Subprogram_Type.
37733
377342004-04-23 Thomas Quinot <quinot@act-europe.fr>
37735
37736 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37737 whether a pragma All_Calls_Remote applies to the subprogram on which
37738 'Access is taken.
37739 No functional change is introduced by this revision; the new parameter
37740 will be used to allow calls to local RCI subprograms to be optimized
37741 to not use the PCS in the case where no pragma All_Calls_Remote applies,
37742 as is already done in the PolyORB implementation of the DSA.
37743
37744 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
37745 whether a pragma All_Calls_Remote applies to the subprogram on which
37746 'Access is taken.
37747 No functional change is introduced by this revision; the new parameter
37748 will be used to allow calls to local RCI subprograms to be optimized
37749 to not use the PCS in the case where no pragma All_Calls_Remote applies,
37750 as is already done in the PolyORB implementation of the DSA.
37751
377522004-04-23 Robert Dewar <dewar@gnat.com>
37753
37754 * Makefile.rtl: Add entry for s-addope.o in run time library list
37755 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
37756 * s-addope.ads, s-addope.adb: New files.
37757
90afe2c9
ZW
37758 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
37759 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
37760 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
37761 System.Address to be non-private and signed.
37762
37763 * sem_elim.adb: Minor reformatting (fairly extensive)
37764 Some minor code reorganization from code reading
37765 Add a couple of ??? comments
37766
377672004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37768
37769 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 37770 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
37771
37772 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
37773
377742004-04-23 Sergey Rybin <rybin@act-europe.fr>
37775
37776 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
37777 Eliminate' section.
37778
37779 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
37780 no longer used as a parameter name for Eliminate pragma).
37781
9e94c78f 377822004-04-22 Laurent Guerby <laurent@guerby.net>
78bad775
LG
37783
37784 PR optimization/14984
37785 PR optimization/14985
37786 * trans.c (gigi): Fix non determinism leading to bootstrap
37787 comparison failures.
37788
af4b9434
AC
377892004-04-21 Pascal Obry <obry@gnat.com>
37790
37791 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
37792 passed to spawnvp() to properly handle program pathname with spaces on
37793 Win32.
37794
377952004-04-21 Emmanuel Briot <briot@act-europe.fr>
37796
37797 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
37798 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
37799 unlocked in case of exceptions.
37800
378012004-04-21 Joel Brobecker <brobecker@gnat.com>
37802
37803 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
37804 This function does not exist anymore.
37805
378062004-04-21 Thomas Quinot <quinot@act-europe.fr>
37807
37808 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
37809
37810 * link.c: Move variables to the __gnat name space.
37811
37812 * Makefile.in: list link.o explicitly when needed.
37813
37814 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
37815
378162004-04-21 Javier Miranda <miranda@gnat.com>
37817
37818 * einfo.adb (Original_Access_Type): New subprogram
37819 (Set_Original_Access_Type): New subprogram
37820 (Write_Field21_Name): Write the name of the new field
37821
37822 * einfo.ads (Original_Access_Type): New field present in access to
37823 subprogram types.
37824 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
37825 E_Anonymous_Access_Protected_Subprogram_Type.
37826
37827 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
37828 subprogram types.
37829
37830 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
37831 to anonymous access to subprogram types.
37832
37833 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
37834 to subprogram types.
37835
37836 * sem_ch3.adb (Access_Definition): Complete decoration of entities
37837 corresponding to anonymous access to subprogram types.
37838 (Analyze_Component_Declaration): Add new actual to the call to
37839 subprogram replace_anonymous_access_to_protected_subprogram.
37840 (Array_Type_Declaration): Add new actual to the call to subprogram
37841 replace_anonymous_access_to_protected_subprogram.
37842 (Process_Discriminants): Add new actual to the call to subprogram
37843 replace_anonymous_access_to_protected_subprogram.
37844 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
37845
37846 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37847 formal.
37848
37849 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
37850 access to subprogram types.
37851
37852 * sem_util.adb (Has_Declarations): Addition of package_specification
37853 nodes.
37854
378552004-04-21 Ed Schonberg <schonberg@gnat.com>
37856
37857 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
37858 inlined flags to renamed entity only if in current unit.
37859
378602004-04-21 Thomas Quinot <quinot@act-europe.fr>
37861
37862 * s-parint.ads: Add DSA implementation marker.
37863
37864 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
37865 value of System.Partition_Interface.DSA_Implementation to determine
37866 what version of the distributed systems annex is available (no
37867 implementation, GLADE, or PolyORB).
37868
378692004-04-21 Joel Brobecker <brobecker@gnat.com>
37870
37871 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
37872
378732004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37874
37875 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
37876 with new type if alias sets differ.
37877 Fixes ACATS c41103b.
37878
378792004-04-21 Vincent Celier <celier@gnat.com>
37880
37881 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
37882 Add array Lang_Args for the language specific compiling argument
37883 switches.
37884
37885 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
37886
378872004-04-21 Sergey Rybin <rybin@act-europe.fr>
37888
37889 * gnat_rm.texi: Update the descripton of the Eliminate pragma
37890 according to the recent changes in the format of the parameters of the
37891 pragma (replacing Homonym_Number with Source_Location).
37892
7324bf49
AC
378932004-04-19 Arnaud Charlet <charlet@act-europe.fr>
37894
37895 * 5isystem.ads: Removed, unused.
37896
37897 * gnat_rm.texi: Redo 1.13 change.
37898
378992004-04-19 Robert Dewar <dewar@gnat.com>
37900
37901 * s-stoele.ads: Clean up definition of Storage_Offset (the new
37902 definition is cleaner, avoids the kludge of explicit Standard operator
37903 references, and also is consistent with a visible System.Address with
37904 no visible operations.
37905
37906 * s-geveop.adb: Add declarations to avoid assumption of visible
37907 operations on type System.Address (since these might not be available
37908 if Address is a non-private type for which the operations
37909 are made abstract).
37910
37911 * sem_eval.adb: Minor reformatting
37912
37913 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
37914 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
37915 reformatting (new function spec format).
37916
37917 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
37918 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
37919 s-caun64.adb: Add declarations to avoid assumption of visible
37920 operations on type System.Address (since these might not be available
37921 if Address is a non-private type for which the operations are made
37922 abstract).
37923
37924 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
37925
37926 * exp_intr.adb: Minor comment update
37927
37928 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
37929
37930 * 5omastop.adb: Add declarations to avoid assumption of visible
37931 operations on type System.Address (since these might not be available
37932 if Address is a non-private type for which the operations
37933 are made abstract).
37934
379352004-04-19 Vincent Celier <celier@gnat.com>
37936
37937 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
37938
37939 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
37940 defaulted to Ada.
37941
37942 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
37943 defaulted to Ada.
37944 Call Check with Process_Languages.
37945 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
37946 with Process_Languages.
37947 (Recursive_Check): New Boolean parameter Process_Languages. Call
37948 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
37949 Process_Languages.
37950
37951 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
37952
37953 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
37954 parameter Ada_Main, defaulted to True.
37955 Check for Ada specific characteristics only when Ada_Main is True.
37956
37957 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
37958
37959 * prj.adb: (Project_Empty): Add new Project_Data components.
37960
37961 * prj.ads: New types and tables for non Ada languages.
37962 (Project_Data): New components Languages, Impl_Suffixes,
37963 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
37964 Include_Path, Include_Data_Set.
37965
37966 * prj-env.ads, prj-env.adb: Minor reformatting
37967
37968 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
37969 Put subprograms in alphabetical order
37970
37971 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
37972 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
37973 Opt.Follow_Links.
37974
37975 * mlib-prj.adb: Back out modification in last version, as they are
37976 incorrect.
37977 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
37978
37979 * make.adb: (Mains): Moved to package Makeutl
37980 (Linker_Opts): Moved to package Makeutl
37981 (Is_External_Assignment): Moved to package Makeutl
37982 (Test_If_Relative_Path): Moved to package Makeutl
37983 (Gnatmake): Move sorting of linker options to function
37984 Makeutl.Linker_Options_Switches.
37985
8f9df7d8
VC
37986 * makeutl.ads, makeutl.adb: New files.
37987
7324bf49
AC
37988 * Makefile.in: Add makeutl.o to the object files for gnatmake
37989
37990 * makeusg.adb: Add line for new switch -eL.
37991
37992 * gnatls.adb (Image): New function.
37993 (Output_Unit): If in verbose mode, output the list of restrictions
37994 specified by pragmas Restrictions.
37995
37996 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
37997 Text_IO.
37998
37999 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
38000 needed, to put it in the range 1970 (included) - 2026 (excluded).
38001 (Time_Of): Do not shift Unix_Min_Year (1970).
38002 Shift the date by multiple of 56 years, if needed, to put it in the
38003 range 1970 (included) - 2026 (excluded).
38004
38005 * adaint.h, adaint.c (__gnat_set_executable): New function.
38006
380072004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38008
38009 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
38010 and pop GC context.
38011 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
38012 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
38013 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
38014 (tree_transform, case N_Code_Statement): Likewise.
38015 (gnat_expand_stmt, case LABEL_STMT): Don't look at
38016 LABEL_STMT_FIRST_IN_EH.
38017 (gnat_expand_stmt, case ASM_STMT): New case.
38018
38019 * utils2.c (build_unary_op): Properly set TREE_READONLY of
38020 UNCONSTRAINED_ARRAY_REF.
38021
38022 * utils.c (poplevel): Temporarily push/pop GC context around inline
38023 function expansion.
38024
38025 * decl.c (maybe_variable): Properly set TREE_READONLY of
38026 UNCONSTRAINED_ARRAY_REF.
38027 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
38028
38029 * ada-tree.def: (ASM_STMT): New.
38030
38031 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
38032 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
38033 ASM_STMT_INPUT): New.
38034 (ASM_STMT_CLOBBER): Likewise.
38035
380362004-04-19 Thomas Quinot <quinot@act-europe.fr>
38037
38038 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
38039 general rcheck mechanism to raise Program_Error for E.4(18), instead
38040 of a custom raiser in System.Partition_Interface.
38041 Part of general cleanup work before PolyORB integration.
38042
38043 * snames.ads, snames.adb: Add new runtime library entities and names
38044 for PolyORB DSA.
38045
38046 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
38047 exp_dist.
38048 (Build_Subprogram_Id): New subprogram provided by exp_dist
38049 Code reorganisation in preparation for PolyORB integration.
38050
38051 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
38052 exp_dist.
38053 (Build_Subprogram_Id): New subprogram provided by exp_dist
38054
38055 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
38056 actual parameter types for call to dereference of an
38057 access-to-subprogram type.
38058
38059 * rtsfind.ads: Add new runtime library entities and names for PolyORB
38060 DSA.
38061
38062 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
38063 instead, which has the same behaviour here since we never pass it a
38064 NULL pointer.
38065
38066 * link.c (run_path_option, Solaris case): Use -Wl, as for other
38067 platforms.
38068
38069 * Makefile.in: adjust object file lists for gnatlink and gnatmake
38070 to account for new dependency upon Interfaces.C.Strings + link.o
38071 For x86 FreeBSD, use 86numaux.
38072
38073 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
38074 from Mlib.Tgt to Mlib.
38075
38076 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
38077 target-independent.
38078
38079 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
38080 target-specific versions of this subprogram, now implemented as a
38081 target-independent function in Mlib.
38082
38083 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
38084 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
38085 (Linker_Library_Path_Option): Remove target-specific versions of this
38086 subprogram, now implemented as a target-independent function in Mlib.
38087
38088 * atree.adb: (Allocate_Initialize_Node): New subprogram.
38089 Factors out node table slots allocation.
38090 (Fix_Parents): New subprogram.
38091 Encapsulate the pattern of fixing up parent pointers for syntactic
38092 children of a rewritten node.
38093 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
38094 (Rewrite): Use New_Copy when creating saved copy of original node.
38095 (Replace): Use Copy_Node to copy nodes.
38096
380972004-04-19 Javier Miranda <miranda@gnat.com>
38098
38099 * sprint.adb (Sprint_Node_Actual): Give support to the new
38100 Access_To_Subprogram node available in Access_Definition nodes. In
38101 addition, give support to the AI-231 node fields: null-exclusion,
38102 all-present, constant-present.
38103
38104 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
38105
90afe2c9 38106 * sinfo.ads, sinfo.adb:
7324bf49
AC
38107 New field Access_To_Subprogram_Definition in Access_Definition nodes
38108
38109 * sem_ch6.adb (Process_Formals): Move here the code that creates and
38110 decorates internal subtype declaration corresponding to the
38111 null-excluding formal. This code was previously in Set_Actual_Subtypes.
38112 In addition, carry out some code cleanup on this code. In case of
38113 access to protected subprogram call
38114 Replace_Anonymous_Access_To_Protected_Subprogram.
38115 (Set_Actual_Subtypes): Code cleanup.
38116
38117 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
38118 Find_Type in case of anonymous access renamings. Add warning in case of
38119 null-excluding attribute used in anonymous access renaming.
38120
38121 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
38122 subprogram
38123
38124 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
38125 subprogram.
38126 (Access_Definition): In case of anonymous access to subprograms call
38127 the corresponding semantic routine to decorate the node.
38128 (Access_Subprogram_Declaration): Addition of some comments indicating
38129 some code that probably should be added here. Detected by comparison
38130 with the access_definition subprogram.
38131 (Analyze_Component_Declaration): In case of access to protected
38132 subprogram call Replace_Anonymous_Access_To_Protected.
38133 (Array_Type_Declaration): In case of access to protected subprogram call
38134 Replace_Anonymous_Access_To_Protected_Subprogram.
38135 (Process_Discriminants): In case of access to protected subprogram call
38136 Replace_Anonymous_Access_To_Protected_Subprogram.
38137
38138 * par.adb (P_Access_Definition): New formal that indicates if the
38139 null-exclusion part was present.
38140 (P_Access_Type_Definition): New formal that indicates if the caller has
38141 already parsed the null-excluding part.
38142
38143 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
38144 (P_Identifier_Declarations): Code cleanup and give support to renamings
38145 of anonymous access to subprogram types.
38146 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
38147 (P_Array_Type_Definition): Give support to AI-254.
38148 (P_Component_Items): Give support to AI-254.
38149 (P_Access_Definition): New formal that indicates if the header was
38150 already parsed by the caller.
38151 (P_Access_Type_Definition): New formal that indicates if the caller has
38152 already parsed the null-excluding part.
38153
38154 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
38155 call to P_Access_Definition.
38156
381572004-04-19 Geert Bosch <bosch@gnat.com>
38158
38159 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
38160 the delicate semantics of floating-point to integer conversion.
38161 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
38162
38163 * eval_fat.adb (Machine_Mantissa): Moved to spec.
38164 (Machine_Radix): New function.
38165
38166 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
38167 conversion checks.
38168 (Machine_Radix): New function also for use in conversion checks.
38169
381702004-04-19 Ed Schonberg <schonberg@gnat.com>
38171
38172 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
38173
38174 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
38175 to decorate the access-to-protected subprogram and the equivalent type.
38176
38177 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
38178 to anonymous access to subprogram types.
38179
38180 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
38181 constant-folding, for legality checks in contexts that require an RM
38182 static expression.
38183
38184 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
38185 temporary but stack checking is not enabled, increment serial number
38186 to so that symbol generation is consistent with and without stack
38187 checking.
38188
38189 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
38190 independent on whether stack checking is enabled, caller must check
38191 the corresponding flag.
38192
38193 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
38194 range checks.
38195 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
38196 parent if it has discriminants.
38197 (Build_Derived_Private_Type): Constructed full view does
38198 not come from source.
38199 (Process_Discriminants): Default discriminants on a tagged type are
38200 legal if this is the internal completion of a private untagged
38201 derivation.
38202
38203 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
38204 no constraint checks, because it corresponds to an existing object.
38205
38206 * sem_prag.adb (Process_Convention): Pragma applies
38207 only to subprograms in the same declarative part, i.e. the same unit,
38208 not the same scope.
38209
38210 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
38211 ignore type mismatch on a numeric conversion if expression comes from
38212 expansion.
38213
382142004-04-19 Sergey Rybin <rybin@act-europe.fr>
38215
38216 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
38217 Homonym_Number parameter, add processing for Source_Location parameter
38218 corresponding.
38219 (Check_Eliminated): Remove the check for homonym numbers, add the check
38220 for source location traces.
38221
38222 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
38223 with Arg_Source_Location corresponding to the changes in the format of
38224 the pragma.
38225
38226 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
38227 Eliminate pragma corresponding to the changes in the format of the
38228 pragma: Homonym_Number is replaced with Source_Location, two ways of
38229 distinguishing homonyms are mutially-exclusive.
38230
382312004-04-19 Joel Brobecker <brobecker@gnat.com>
38232
38233 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
38234
38235 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
38236 No_Dollar_In_Label, no longer necessary, as it is always True.
38237 (Strip_Suffixes): Likewise.
38238
382392004-04-19 Gary Dismukes <dismukes@gnat.com>
38240
38241 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
38242 modulus for compatibility with size clause on targets with 16-bit
38243 Integer.
38244
38245 * layout.adb (Discrimify): In the case of private types, set Vtyp to
38246 full type to fix type mismatches on calls to size functions for
38247 discriminant-dependent array components.
38248
382492004-04-19 Jerome Guitton <guitton@act-europe.fr>
38250
38251 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
38252 lib.
38253
382542004-04-19 Pascal Obry <obry@gnat.com>
38255
38256 * mdll-utl.adb (Locate): New version is idempotent.
38257
9e94c78f 382582004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
38259
38260 PR ada/14988 (partial)
38261 * impunit.adb: Fix typo.
90afe2c9 38262
cce0244b
NN
382632004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
38264
38265 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
38266 and install-rts-cert targets. Remove all gnatlib and gnattools
38267 targets and all other rts-* targets (moved to libada). Remove (now)
38268 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
38269 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
38270
af152989
AC
382712004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38272
38273 * trans.c (tree_transform): Shortcut returning error_mark_node for
38274 statements in annotate_only_mode.
38275 (tree_transform, case N_Label, case N_Return_Statement,
38276 N_Goto_Statement): Make statement tree instead of generating code.
38277 (tree_transform, case N_Assignment_Statement): No longer check
38278 type_annotate_only.
38279 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
38280 RETURN_STMT): New.
38281 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
38282 New fcns.
38283 (gnat_to_gnu): Collect any RTL generated and deal with it.
38284 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
38285 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
38286 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
38287
38288 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
38289
38290 * ada-tree.def (EXPR_STMT): Fix typo in name.
38291 (BLOCK_STMT, IF_STMT): New nodes.
38292
38293 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
38294 LABEL_STMT_FIRST_IN_EH): New macros.
38295 (RETURN_STMT_EXPR): Likewise.
38296
38297 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
38298 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
38299
383002004-04-08 Thomas Quinot <quinot@act-europe.fr>
38301
38302 * atree.ads: Correct documentation on extended nodes.
38303
38304 * link.c: Set run_path_option for FreeBSD.
38305
383062004-04-08 Vincent Celier <celier@gnat.com>
38307
38308 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
38309 one of the ALI file, do not link with DEC lib.
38310
38311 * par.adb Remove the last two characters ("%s" or "%b") when checking
38312 if a language defined unit may be recompiled.
38313
383142004-04-08 Ed Schonberg <schonberg@gnat.com>
38315
38316 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
38317 removal of abstract operation leaves no possible interpretation for
38318 expression.
38319
38320 * sem_eval.adb (Eval_Qualified_Expression): Use
38321 Set_Raises_Constraint_Error on node when needed, so that it does not
38322 get optimized away by subsequent optimizations.
38323
38324 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
38325 operands even when they are not wrapped in a type conversion.
38326
383272004-04-08 Olivier Hainque <hainque@act-europe.fr>
38328
38329 * sem_prag.adb (Set_Exported): Warn about making static as result of
38330 export only when the export is coming from source. This may be not
38331 be true e.g. on VMS where we expand export pragmas for exception codes
38332 together with imported or exported exceptions, and we don't want the
38333 user to be warned about something he didn't write.
38334
383352004-04-08 Thomas Quinot <quinot@act-europe.fr>
38336
38337 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
38338 duplication between normal entities and those declared as renamings.
38339 No functional change.
38340
90afe2c9 38341 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
38342 inline functions returning an unconstrained result.
38343
383442004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
38345
38346 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
38347 conform to what other front-ends do.
38348
383492004-04-08 Doug Rupp <rupp@gnat.com>
38350
38351 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
38352 libraries.
38353
3984e89a
AC
383542004-04-06 Pascal Obry <obry@gnat.com>
38355
38356 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
38357
38358 * osint.adb (Program_Name): Do not look past a directory separator.
38359
383602004-04-06 Thomas Quinot <quinot@act-europe.fr>
38361
38362 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
38363
38364 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
38365 requirement for preserving a copy of the original assignment node.
38366
38367 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
38368
383692004-04-06 Olivier Hainque <hainque@act-europe.fr>
38370
38371 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
38372 when supported.
38373
383742004-04-06 Ed Schonberg <schonberg@gnat.com>
38375
38376 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
38377 operator calls in functional notation, and apply
38378 Universal_Interpretation to operands, not to their type.
38379
383802004-04-06 Robert Dewar <dewar@gnat.com>
38381
38382 * 5wdirval.adb: Minor reformatting
38383
383842004-04-06 Ed Falis <falis@gnat.com>
38385
38386 * gnat_rm.texi: Improve a reference to the GCC manual
38387
30c20106
AC
383882004-04-05 Vincent Celier <celier@gnat.com>
38389
38390 * adaint.h, adaint.c: Add function __gnat_named_file_length
38391
38392 * impunit.adb: Add Ada.Directories to the list
38393
38394 * Makefile.in: Add VMS and Windows versions of
38395 Ada.Directories.Validity package body.
38396
38397 * Makefile.rtl: Add a-direct and a-dirval
38398
38399 * mlib-tgt.ads: Minor comment update.
38400
38401 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
38402 a-direct.ads, a-direct.adb: New files.
38403
384042004-04-05 Vincent Celier <celier@gnat.com>
38405
38406 PR ada/13620
38407 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
38408 just to the compiler.
38409
384102004-04-05 Robert Dewar <dewar@gnat.com>
38411
38412 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
38413 returned string is 1.
38414
38415 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
38416
38417 * eval_fat.ads: Minor reformatting
38418
38419 * g-curexc.ads: Document that lower bound of returned string values
38420 is always one.
38421
38422 * gnatlink.adb: Add ??? comment for previous change
38423 (need to document why this is VMS specific)
38424
38425 * s-stoele.ads: Minor reformatting
38426
38427 * tbuild.ads: Minor reformatting throughout (new function specs)
38428
38429 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
38430 after WITH.
38431
38432 * scng.adb: Minor reformatting
38433
384342004-04-05 Geert Bosch <bosch@gnat.com>
38435
38436 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
38437 (Leading_Part): Still perform truncation to machine number if the
38438 specified radix_digits is greater or equal to machine_mantissa.
38439
384402004-04-05 Javier Miranda <miranda@gnat.com>
38441
38442 * par-ch3.adb: Complete documentation of previous change
38443 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
38444 (aliased must appear before constant).
38445
38446 * par-ch4.adb: Complete documentation of previous change.
38447
38448 * par-ch6.adb: Complete documentation of previous change.
38449
38450 * sinfo.ads: Fix typo in commment.
38451
384522004-04-05 Ed Schonberg <schonberg@gnat.com>
38453
38454 * sem_ch3.adb (Inherit_Components): If derived type is private and has
38455 stored discriminants, use its discriminants to constrain parent type,
38456 as is done for non-private derived record types.
38457
38458 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
38459 Ada 2005 AI-310: an abstract non-dispatching operation is not a
38460 candidate interpretation in an overloaded call.
38461
38462 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
38463 expression is Null and target type is not an access type (e.g. a
38464 non-private address type).
38465
384662004-04-05 Thomas Quinot <quinot@act-europe.fr>
38467
38468 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
38469 statement whose right-hand side is an inlined call, save a copy of the
38470 original assignment subtree to preserve enough consistency for
38471 Analyze_Assignment to proceed.
38472
38473 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
38474 complete assignment subtree which is now unnecessary, as the expansion
38475 of inlined call has been improved to preserve a consistent assignment
38476 tree. Note_Possible_Modification must be called only
38477 after checks have been applied, or else unnecessary checks will
38478 be generated.
38479
38480 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
38481 of explicit dereferences that do not Come_From_Source:
38482 - be selective on cases where we must go back to the dereferenced
38483 pointer (an assignment to an implicit dereference must not be
38484 recorded as modifying the pointer);
38485 - do not rely on Original_Node being present (Analyze_Assignment
38486 calls Note_Possible_Modification on a copied tree).
38487
38488 * sem_warn.adb (Check_References): When an unset reference to a pointer
38489 that is never assigned is encountered, prefer '<pointer> may be null'
38490 warning over '<pointer> is never assigned a value'.
38491
384922004-04-05 Ramon Fernandez <fernandez@gnat.com>
38493
38494 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
38495 the ABI.
38496
384972004-04-05 Olivier Hainque <hainque@act-europe.fr>
38498
38499 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
38500 libexc. We currently don't reference anything in this library and
38501 linking it in triggers linker warnings we don't want to see.
38502
38503 * init.c: Update comments.
38504
4f976745
RK
385052004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38506
38507 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
38508 * utils.c (create_field_decl): Likewise.
38509 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
38510
6da7d579
AC
385112004-04-02 Arnaud Charlet <charlet@act-europe.fr>
38512
38513 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
38514 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
38515 Add info directory entry and category.
38516
18c6ada9
JH
385172004-04-02 Jan Hubicka <jh@suse.cz>
38518
38519 * utils.c: Include function.h
38520 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
38521
7cd4527e
AC
385222004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38523
38524 PR ada/14150
38525 * Make-lang.in: Clean up generation of documentation
38526
38527 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
38528
38529 * xgnatug.adb: Removed, replaced by xgnatugn.adb
38530
38531 * xgnatugn.adb: Replaces xgnatug.adb
38532
38533 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
38534
38535 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
38536
38537 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38538 gnat_ug_wnt.texi: Removed.
38539
0c250f07
AC
385402004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38541
38542 * utils2.c: Update copyright notice.
38543
6b6fcd3e
AC
385442004-04-01 Robert Dewar <dewar@gnat.com>
38545
38546 * checks.adb: Minor reformatting throughout
38547 Note that prev checkin added RM reference to alignment warning
38548
385492004-04-01 Ed Schonberg <schonberg@gnat.com>
38550
38551 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
38552 non-static when building aggregate for bit-packed array.
38553
38554 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
38555 function call that is itself the actual in a procedure call, build
38556 temporary for it.
38557
38558 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
38559 a string literal, create a temporary for it, constant folding only
38560 handles scalars here.
38561
385622004-04-01 Vincent Celier <celier@gnat.com>
38563
38564 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
38565 Error_Msg_SP): New empty procedures to instantiate the Scanner.
38566 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
38567 tokens.
38568 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
38569 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
38570 and get the checksum.
38571
38572 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
38573 already in the Q.
38574 Increase the Marking_Label at the end of the Multiple_Main_Loop,
38575 instead of at the beginning.
38576
38577 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
38578 directly.
38579 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
38580 on VMS.
38581
38582 * osint.ads (Multi_Unit_Index_Character): New Character global variable
38583
38584 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
38585 not '~' directly.
38586
38587 * par.adb: Remove test on file name to detect language defined units.
38588 Add test on unit name, after parsing, to detect language defined units
38589 that are not compiled with -gnatg (except System.RPC and its children)
38590
38591 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
38592 following units without style checking.
38593
38594 * switch-c.adb: Change -gnatC to -gnateI
38595
38596 * usage.adb: Document new switch -gnateInnn
38597
38598 * scng.adb (Accumulate_Token_Checksum): New procedure
38599 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
38600 word or literal number.
38601 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
38602 numbers.
38603
386042004-04-01 Thomas Quinot <quinot@act-europe.fr>
38605
38606 * a-tasatt.adb,
38607 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
38608 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
38609 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
38610 5vtpopde.adb: Add missing 'constant' keywords.
38611
386122004-04-01 Javier Miranda <miranda@gnat.com>
38613
38614 * par-ch4.adb: (P_Allocator): Code cleanup
38615
38616 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
38617 attribute.
38618
38619 * sinfo.ads: Complete documentation of previous change
38620
386212004-04-01 Pascal Obry <obry@gnat.com>
38622
38623 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
38624 only on VMS. This special handling was done because an old GNU/ld bug
38625 on Windows which has been fixed.
38626
386272004-04-01 GNAT Script <nobody@gnat.com>
38628
38629 * Make-lang.in: Makefile automatically updated
38630
8df83eae
RK
386312004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38632
38633 * decl.c (gnat_to_gnu_entity, make_type_from_size):
38634 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
38635 * trans.c (tree_transform, convert_with_check): Likewise.
38636 * utils.c (gnat_signed_or_unsigned_type): Likewise.
38637 (build_vms_descriptor, unchecked_convert): Likewise.
38638 * utils2.c (nonbinary_modular_operation): Likewise.
38639
2820d220
AC
386402004-03-29 Javier Miranda <miranda@gnat.com>
38641
38642 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
38643 (Install_Null_Excluding_Check): Local subprogram that determines whether
38644 an access node requires a runtime access check and if so inserts the
38645 appropriate run-time check.
38646 (Apply_Access_Check): Call Install_Null_Excluding check if required
38647 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
38648
38649 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
38650
38651 * einfo.ads: Fix typo in comment
38652
38653 * exp_ch3.adb (Build_Assignment): Generate conversion to the
38654 null-excluding type to force the corresponding run-time check.
38655 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
38656 type to force the corresponding run-time check.
38657
38658 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
38659 the null-excluding type to force the corresponding run-time check.
38660
38661 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
38662 case of access types unless they have the null-excluding attribute.
38663
38664 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
38665 part.
38666
38667 * exp_util.ads: Fix typo in comment
38668
38669 * par.adb (P_Null_Exclusion): New subprogram
38670 (P_Subtype_Indication): New formal that indicates if the null-excluding
38671 part has been scanned-out and it was present
38672
38673 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
38674
38675 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
38676 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
38677 type to force the corresponding run-time check
38678 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
38679 components
38680 (Resolve_Array_Aggregate): Carry out some static checks
38681 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
38682
38683 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
38684 attribute must be set only if specified by means of the null-excluding
38685 part. In addition, we must also propagate the access-constant attribute
38686 if present.
38687 (Access_Subprogram_Declaration, Access_Type_Declaration,
38688 Analyze_Component_Declaration, Analyze_Object_Declaration,
38689 Array_Type_Declaration, Process_Discriminants,
38690 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
38691 and carry out some static checks.
38692 (Build_Derived_Access_Type): Set the null-excluding attribute
38693 (Derived_Type_Declaration, Process_Subtype): Carry out some static
38694 checks.
38695
38696 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
38697
38698 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
38699
38700 * sem_ch6.adb (Process_Formals): Carry out some static checks.
38701 (Set_Actual_Subtypes): Generate null-excluding subtype if the
38702 null-excluding part was present; it is not required to be done here in
38703 case of anonymous access types.
38704 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
38705 value.
38706
38707 * sem_res.adb (Resolve_Actuals): Carry out some static check
38708 (Resolve_Null): Allow null in anonymous access
38709
38710 * sinfo.adb: New subprogram Null_Exclusion_Present
38711 All_Present and Constant_Present available on access_definition nodes
38712
38713 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
38714 object_declaration, derived_type_definition, component_definition,
38715 discriminant_specification, access_to_object_definition,
38716 access_function_definition, allocator, access_procedure_definition,
38717 access_definition, parameter_specification, All_Present and
38718 Constant_Present flags available on access_definition nodes.
38719
387202004-03-29 Robert Dewar <dewar@gnat.com>
38721
38722 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
38723 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
38724 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
38725 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
38726 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
38727 sem_prag.adb: Updates to handle multiple units/file
38728
38729 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
38730
38731 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
38732 sem_util.adb: Minor reformatting
38733
38734 * sem_ch12.adb: Add comment for previous change
38735
387362004-03-29 Laurent Pautet <pautet@act-europe.fr>
38737
38738 * osint.adb (Executable_Prefix): Set Exec_Name to the current
38739 executable name when not initialized. Otherwise, use its current value.
38740
38741 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
38742 initialize it to another executable name than the current one. This
38743 allows to configure paths for an executable name (gnatmake) different
38744 from the current one (gnatdist).
38745
387462004-03-29 Ed Schonberg <schonberg@gnat.com>
38747
38748 * exp_ch6.adb (Expand_Call): A call to a function declared in the
38749 current unit cannot be inlined if it appears in the body of a withed
38750 unit, to avoid order of elaboration problems in gigi.
38751
38752 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
38753 information for protected (wrapper) operation as well, to simplify gdb
38754 use.
38755
38756 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
38757 protected body, indicate that the entity for the generated spec comes
38758 from source, to ensure that references are properly generated for it.
38759 (Build_Body_To_Inline): Do not inline a function that returns a
38760 controlled type.
38761
38762 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
38763 apply convention to homonyms that are declared explicitly.
38764
38765 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
38766 that renames an equality operator and the operands are overloaded,
38767 resolve them with the declared formal types, before rewriting as an
38768 operator.
38769
387702004-03-29 GNAT Script <nobody@gnat.com>
38771
38772 * Make-lang.in: Makefile automatically updated
38773
6d11af89
AC
387742004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
38775
38776 * memtrack.adb: Log realloc calls, which are treated as free followed
38777 by alloc.
38778
387792004-03-25 Vincent Celier <celier@gnat.com>
38780
38781 * prj-makr.adb (Process_Directories): Detect when a file contains
38782 several units. Do not include such files in the config pragmas or
38783 in the naming scheme.
38784
38785 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
38786 Resolve links only when not in Trusted_Mode.
38787 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
38788 Do not resolve links for the display names.
38789
38790 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
38791 resolve links when computing the display names.
38792
387932004-03-25 Thomas Quinot <quinot@act-europe.fr>
38794
38795 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
38796 attribute reference does not denote a subtype, it can be any
38797 expression that has a classwide type, potentially after an implicit
38798 dereference. In particular, the prefix can be a view conversion for
38799 a classwide type (for which Is_Object_Reference holds), but it can
38800 also be a value conversion for an access-to-classwide type. In the
38801 latter case, there is an implicit dereference, and the original node
38802 for the prefix does not verify Is_Object_Reference.
38803
38804 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
38805 conversion of a discriminant-dependent component of a mutable object
38806 is one itself.
38807
388082004-03-25 Ed Schonberg <schonberg@gnat.com>
38809
38810 * freeze.adb (Freeze_Entity): When an inherited subprogram is
38811 inherited, has convention C, and has unconstrained array parameters,
38812 place the corresponding warning on the derived type declaration rather
38813 than the original subprogram.
38814
38815 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
38816 indication on renaming declaration, if formal has a box and actual
38817 is absent.
38818
38819 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
38820 determine whether to generate an implicit or explicit reference to
38821 the renamed entity.
38822
38823 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
38824 subprogram renaming comes from a defaulted formal subprogram in an
38825 instance.
38826
388272004-03-25 Gary Dismukes <dismukes@gnat.com>
38828
38829 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
38830 value expressions to ensure that calls within a component definition
38831 will be checked (since those are evaluated during the record type's
38832 elaboration).
38833
388342004-03-25 Arnaud Charlet <charlet@act-europe.fr>
38835
38836 * s-tpobop.adb: Code clean up:
38837 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
38838 code.
38839 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
38840
388412004-03-25 Jose Ruiz <ruiz@act-europe.fr>
38842
38843 * Makefile.in: Clean up in the ravenscar run time.
38844
22421b79
RK
388452004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38846
38847 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
38848 of No_Strict_Aliasing to build_pointer_type_for_mode.
38849 * utils.c (update_pointer_to): Walk pointer and ref chains.
38850
24105bab
AC
388512004-03-22 Cyrille Comar <comar@act-europe.fr>
38852
38853 * ali.ads: Fix Comment about Dynamic_Elab.
38854
38855 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
38856 Has_RACW, Is_Generic, etc.)
38857 (Output_Object, Gnatls): Take into account ALI files not attached to
38858 an object.
38859
388602004-03-22 Vincent Celier <celier@gnat.com>
38861
38862 * gprep.adb: Change all String_Access to Name_Id
38863 (Is_ASCII_Letter): new function
38864 (Double_File_Name_Buffer): New procedure
38865 (Preprocess_Infile_Name): New procedure
38866 (Process_Files): New procedure
38867 (Gnatprep): Check if output and input are existing directories.
38868 Call Process_Files to do the real job.
38869
388702004-03-22 Robert Dewar <dewar@gnat.com>
38871
38872 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
38873 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
38874
388752004-03-22 Sergey Rybin <rybin@act-europe.fr>
38876
38877 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
38878 case when the source contains only comments.
38879
388802004-03-22 Ed Schonberg <schonberg@gnat.com>
38881
38882 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
38883 declaration for a child subprogram body that acts as a spec, indicate
38884 that the entity in the declaration needs debugging information.
38885
38886 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
38887 full view if the subtype is created for a constrained record component;
38888 gigi has enough information to construct the record, and there is no
38889 place in the tree for the declaration.
38890
38891 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
38892 serial number for the dummy body that is built for analysis, to avoid
38893 inconsistencies in the generation of internal names when compiling
38894 with -gnatN.
38895
388962004-03-22 Thomas Quinot <quinot@act-europe.fr>
38897
38898 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
38899 object.
38900
389012004-03-22 GNAT Script <nobody@gnat.com>
38902
38903 * Make-lang.in: Makefile automatically updated
38904
6fce44af
RK
389052004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38906
38907 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38908 * trans.c (tree_transform, emit_index_check): Likewise.
38909 * utils.c (build_template): Likewise.
38910 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
38911 (maybe_unconstrained_array, unchecked_convert): Likewise.
38912 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
38913 (build_unary_op): Likewise.
38914 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
38915 (fill_vms_descriptor): Likewise.
38916 (build_call_alloc_dealloc): Likewise.
38917 ALIGN is unsigned.
38918 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
38919
802f6d4b
JM
389202004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
38921
38922 PR other/14630
38923 * gnat_ug.texi: Add info directory category and entry.
38924 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38925 gnat_ug_wnt.texi: Regenerate.
38926
30f3b32b
AC
389272004-03-19 Arnaud Charlet <charlet@act-europe.fr>
38928
38929 * ada-tree.h: Update copyright notice.
38930 Minor reformatting.
38931
389322004-03-19 Olivier Hainque <hainque@act-europe.fr>
38933
38934 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
38935 as regular exception objects and not as mere integers representing the
38936 condition code. The latter approach required some dynamics to mask off
38937 severity bits, which did not fit well into the GCC table based model.
38938 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
38939 exception data objects. We don't it and it would conflict with the other
38940 external symbol we have to generate for such exceptions.
38941
38942 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
38943 the special code for VMS exceptions, since these are now represented
38944 as regular exceptions objects.
38945
7548281d
RK
389462004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38947
38948 * decl.c (debug_no_type_hash): Remove.
38949 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
38950 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
38951
9e94c78f 389522004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 38953
90afe2c9 38954 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 38955 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 38956
eb34af89
RK
389572004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38958
38959 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
38960 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
38961 (TYPE_RM_SIZE_INT): Directly use type.values.
38962 (TREE_LOOP_ID): Clean up check.
38963 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
38964 TYPE_VALUES, not TYPE_FIELDS.
38965 * trans.c (convert_with_check): Delay access of bounds of basetype
38966 until sure is numeric.
38967
a336eaca
AC
389682004-03-18 Arnaud Charlet <charlet@act-europe.fr>
38969
38970 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
38971
38972 Code clean up:
38973 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
38974 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
38975 Specific.Set instead of direct call to e.g pthread_setspecific.
38976
389772004-03-18 Thomas Quinot <quinot@act-europe.fr>
38978
38979 * adaint.c: Update comments.
38980
38981 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
38982 GNATLIB_SHARED for FreeBSD.
38983
389842004-03-18 Jose Ruiz <ruiz@act-europe.fr>
38985
38986 * init.c [VxWorks]: Do not fix the stack size for the environment task.
38987 When needed (stack checking) the stack size is retrieved
38988 from the VxWorks kernel.
38989
38990 * Makefile.in: Flag -nostdinc is required when building the run time
38991 for avoiding looking for files in the base compiler.
38992 Add the VxWorks specific version of the package body for
38993 System.Stack_checking.Operations (5zstchop.adb).
38994
38995 * Make-lang.in: Add the object file for
38996 System.Stack_Checking.Operations.
38997
38998 * Makefile.rtl: Add object file for the package
38999 System.Stack_Checking.Operations.
39000
39001 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
39002
39003 * s-stache.ads, s-stache.adb: Move the operations related to stack
39004 checking from this package to package System.Stack_Checking.Operations.
39005 This way, stack checking operations are only linked in the final
39006 executable when using the -fstack-check flag.
39007
390082004-03-18 Doug Rupp <rupp@gnat.com>
39009
39010 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
39011 Reorganize ifeq's.
39012
39013 * 5qsystem.ads, 5xcrtl.ads: New files.
39014
390152004-03-18 Vincent Celier <celier@gnat.com>
39016
39017 * prj.adb (Reset): Reset hash table Files_Htable
39018
39019 * prj-env.adb (Source_Paths, Object_Paths): New tables.
39020 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
39021 the procedures Add_To_Path_File.
39022 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
39023 making sure that each directory is present only once and, for object
39024 dirs, when a directory already present is added, the duplicate is
39025 removed and the directory is always put as the last in the table.
39026 Write the path files at the end of these accumulations.
39027
39028 * prj-nmsc.adb (Record_Source): Add source file name in hash table
39029 Files_Htable for all sources.
39030
39031 * prj-proc.adb (Process): Remove restrictions between not directly
39032 related extending projects.
39033
390342004-03-18 Emmanuel Briot <briot@act-europe.fr>
39035
39036 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
39037 (Find_Sources): Minor speed optimization.
39038
39039 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
39040 parameter Trusted_Mode.
39041
390422004-03-18 Sergey Rybin <rybin@act-europe.fr>
39043
39044 * scn.adb (Determine_License): Take into account a degenerated case
39045 when the source contains only comments.
39046
390472004-03-18 Ed Schonberg <schonberg@gnat.com>
39048
39049 * sem_warn.adb (Check_References): For a warning on a selected
39050 component that does not come from source, locate an uninitialized
39051 component of the record type to produce a more precise error message.
39052
e6f69614
AC
390532004-03-15 Jerome Guitton <guitton@act-europe.fr>
39054
39055 * 3zsoccon.ads: Fix multicast options.
39056
39057 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
39058 in the spec.
39059
390602004-03-15 Robert Dewar <dewar@gnat.com>
39061
39062 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
39063 pragma used for a private type.
39064
39065 * lib-xref.adb (Generate_Reference): Do not generate warning if
39066 reference is in a different unit from the pragma Unreferenced.
39067
39068 * 5vtpopde.adb: Minor reformatting
39069 Fix casing of To_Task_ID
39070
39071 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
39072 flag if we have an unchecked conversion to an access type in the same
39073 unit.
39074
390752004-03-15 Geert Bosch <bosch@gnat.com>
39076
39077 * a-ngcoty.adb (Modulus): In alternate formula for large real or
39078 imaginary parts, use Double precision throughout.
39079
39080 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
39081 we want to be able to compile run-time with -gnata for testing, but
39082 this may also be instantiated in user code that is compiled with -gnata.
39083
390842004-03-15 Olivier Hainque <hainque@act-europe.fr>
39085
39086 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
39087 codes. Having a separate type for this is useful to enforce consistency
39088 throughout the various run-time units.
39089 (Exception_Data): Use Exception_Code for Import_Code.
39090
39091 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
39092 Natural and Integer in various places.
39093 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
39094 with the severity bits masked off.
39095 (Register_VMS_Exception): Handle the additional exception data pointer
39096 argument.
39097
39098 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
39099 component, now reflected by an exported accessor.
39100 (is_handled_by): New routine to compute whether the propagated
39101 occurrence matches some handler choice specification. Extracted out of
39102 get_action_description_for, and expanded to take care of the VMS
39103 specifities.
39104 (get_action_description_for): Use is_handled_by instead of an explicit
39105 complex condition to decide if the current choice at hand catches the
39106 propagated occurrence.
39107
39108 * raise.h (Exception_Code): New type for C.
39109
39110 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
39111 System.Standard_Library.Exception_Code, to allow references from the
39112 pragma import/export expander.
39113
39114 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
39115 New accessors to allow easy access to GNAT exception data
39116 characteristics.
39117 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
39118 redundant Handled_By_Others component, helper for the personality
39119 routine which will now be able to call the appropriate exception data
39120 accessor instead.
39121
39122 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
39123 component of Standard_Exception_Type to be the closest possible to
39124 Exception_Code in System.Standard_Library, that we cannot get at this
39125 point. Expand a ??? comment to notify that this type node should
39126 probably be rewritten later on.
39127
39128 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
39129 registration call to include a pointer to the exception object in the
39130 arguments.
39131
39132 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
39133 instead of int and explicit bitmasks.
39134
391352004-03-15 Vincent Celier <celier@gnat.com>
39136
39137 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
39138 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
39139
39140 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
39141 longer needed now that it is in the spec of
39142 System.Tasking.Task_Attributes.
39143
39144 * adaint.h, adaint.c: (__gnat_create_output_file): New function
39145
39146 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
39147
39148 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
39149
39150 * make.adb (Gnatmake): Do not check the executable suffix; it is being
39151 taken care of in Scan_Make_Arg.
39152 (Scan_Make_Arg): Add the executable suffix only if the argument
39153 following -o, in canonical case, does not end with the executable
39154 suffix. When in verbose mode and executable file name does not end
39155 with executable suffix, output the executable name, in canonical case.
39156
39157 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
39158 to avoid warnings when instantiating Ada.Task_Attributes.
39159 Minor reformating.
39160
39161 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
39162 in the correct order.
39163
39164 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
39165 redirect standard output and error to a file for the invocation of the
39166 compiler, then read the file.
39167
39168 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
39169 directory, instead of the Value.
39170 (Find_Source_Dirs): Remove useless code & comments.
39171
391722004-03-15 Ed Schonberg <schonberg@gnat.com>
39173
39174 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
39175 tagged type is inherited, and the parent operation is not frozen yet,
39176 force generation of a freeze node for the inherited operation, so the
39177 corresponding dispatch entry is properly initialized.
39178 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
39179 when looking for user-defined equality operation.
39180
39181 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
39182 boolean when locating primitive equality of tagged component.
39183
39184 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
39185 bit-aligned field and the right-hand side a string literal, introduce
39186 a temporary before expanding assignment into a loop.
39187
39188 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
39189 priority in full, to ensure that any expanded subepxressions of it are
39190 elaborated in the scope of the init_proc.
39191
39192 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
39193 after object declaration, skipping over code that may have been
39194 generated for validity checks.
39195
39196 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
39197 discriminants, ignore the known discriminants of its full view, if
39198 any, to check legality.
39199
39200 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
39201 component if type has unknown discriminants.
39202 (Analyze_Private_Extension_Declaration): Discriminant constraint is
39203 null if type has unknown discriminants.
39204
39205 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
39206 for end label when present.
39207
39208 * s-fileio.adb (Open): When called with a C_Stream, use given name for
39209 temporary file, rather than an empty string.
39210
392112004-03-15 Ed Falis <falis@gnat.com>
39212
39213 * s-thread.adb: Removed, no longer used.
39214
392152004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39216
39217 * decl.c (target.h): Now include.
39218 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
39219 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
39220 (validate_size): For POINTER_TYPE, get smallest size permitted on
39221 machine.
39222
39223 * fe.h: Sort Einfo decls and add Set_Mechanism.
39224
39225 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
39226 (ada/decl.o): Depends on target.h.
39227
39228 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
39229 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
39230
392312004-03-15 Thomas Quinot <quinot@act-europe.fr>
39232
39233 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
39234
39235 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
39236 Insert_Dereference_Action when rewriting an implicit dereference into
39237 an explicit one, this will be taken care of during expansion of the
39238 explicit dereference.
39239 (Expand_N_Slice): Same. Always do the rewriting, even for the case
39240 of non-packed slices, since the dereference action generated by
39241 expansion of the explicit dereference is needed in any case.
39242 (Expand_N_Selected_Component): When rewriting an implicit dereference,
39243 analyze and resolve the rewritten explicit dereference so it is seen
39244 by the expander.
39245 (Insert_Dereference_Action): This procedure is now called only for the
39246 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
39247 dereferences that do not come from source (including explicit
39248 dereferences resulting from rewriting implicit ones), but do not
39249 recursively insert a check for the dereference nodes contained within
39250 the check.
39251 (Insert_Dereference_Action): Clarify and correct comment.
39252
e4c9c075
PB
392532004-03-08 Paolo Bonzini <bonzini@gnu.org>
39254
39255 PR ada/14131
39256 Move language detection to the top level.
39257 * config-lang.in: Build by default.
39258
8a6a52dc
AC
392592004-03-05 Robert Dewar <dewar@gnat.com>
39260
39261 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
39262
39263 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
39264 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 39265 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
39266 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
39267 unchecked conversion to spec to avoid warnings.
39268
39269 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
39270 to Task_ID
39271
39272 * 7stpopsp.adb: Correct casing in To_Task_ID call
39273
39274 * a-strsea.ads, a-strsea.adb: Minor reformatting
39275
39276 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
39277
39278 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
39279 Adjust Max_Msg_Length to be clearly large enough.
39280
39281 * fe.h: Define In_Same_Source_Unit
39282
39283 * osint.adb: Add pragma Warnings Off to suppress warnings
39284 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
39285 aliasing warnings.
39286
39287 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
39288
39289 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
39290
39291 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
39292
39293 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
39294
39295 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
39296
39297 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
39298 node. We now do generate them for gcc back end.
39299
39300 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
39301 warning.
39302
39303 * sinput-c.adb: Fix bad name in header.
39304 Add pragma Warnings Off to suppress aliasing warning.
39305
39306 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
39307
39308 * snames.h, snames.ads, snames.adb: Add entry for pragma
39309 No_Strict_Aliasing.
39310
393112004-03-05 Vincent Celier <celier@gnat.com>
39312
39313 * prj-com.ads: Add hash table Files_Htable to check when a file name
39314 is already a source of another project.
39315
39316 * prj-nmsc.adb (Record_Source): Before recording a new source, check
39317 if its file name is not already a source of another project. Report an
39318 error if it is.
39319
39320 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
39321 source file name, call gnatpp with all the sources of the main project.
39322
39323 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
39324 of file names.
39325
39326 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
39327 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
39328 /RUNTIME_SYSTEM=, converted to --RTS=
39329 /NOTABS, converted to -notabs
39330
393312004-03-05 Pascal Obry <obry@gnat.com>
39332
39333 * make.adb: Minor reformatting.
39334
393352004-03-05 Ed Schonberg <schonberg@gnat.com>
39336
39337 Part of implemention of AI-262.
39338 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
39339
39340 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
39341 procedure.
39342
39343 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
39344 when component type is a partially constrained class-wide subtype.
39345 (Constrain_Discriminated_Type): If parent type has unknown
39346 discriminants, a constraint is illegal, even if full view has
39347 discriminants.
39348 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
39349 with unknown discriminants whose full view is a discriminated record.
39350
39351 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
39352 flag, to handle properly derivations of tagged types with unknown
39353 discriminants.
39354 (Analyze_Package_Spec, Analyze_Package_Body): Install
39355 Private_With_Clauses before analyzing private part or body.
39356
39357 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
39358 Has_Discriminants can be true for a given type (documentation).
39359
393602004-03-05 Arnaud Charlet <charlet@act-europe.fr>
39361
39362 * s-restri.ads: Fix license (GPL->GMGPL).
39363
39364 * s-tassta.adb: Minor reformatting.
39365
39366 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39367 by calls to Exit_One_ATC_Level, since additional clean up is performed
39368 by this function.
39369
39370 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39371 by calls to Exit_One_ATC_Level, since additional clean up is performed
39372 by this function.
39373
393742004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39375
39376 * trans.c: Reflect GCC changes to fix bootstrap problem.
39377 Add warning for suspicious aliasing unchecked conversion.
39378
393792004-03-05 GNAT Script <nobody@gnat.com>
39380
39381 * Make-lang.in: Makefile automatically updated
39382
555360a5
AC
393832004-03-02 Emmanuel Briot <briot@act-europe.fr>
39384
39385 * ali.adb (Read_Instantiation_Instance): Do not modify the
39386 current_file_num when reading information about instantiations, since
39387 this corrupts files in later references.
39388
393892004-03-02 Vincent Celier <celier@gnat.com>
39390
39391 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
39392 before checking if it is read-only.
39393
39394 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
39395 of SRC_DIRS and eliminate duplicates.
39396
39397 * gprcmd.adb: Replace command "path" with command "path_sep" to return
39398 the path separator.
39399 (Usage): Document path_sep
39400
39401 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
39402 C++ compiler. No need for a script.
39403 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
39404 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
39405 subst.
39406
39407 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
39408 where there are Ada sources.
39409 (Set_Ada_Paths): Only add to the include path the source dirs of project
39410 with Ada sources.
39411 (Add_To_Path): Add the Display_Values of the directories, not their
39412 Values.
39413
39414 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
39415 data.
39416
39417 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
39418 is not No_Name.
39419 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
39420 Value is canonicalized.
39421 (Language_Independent_Check): Do not copy Value to Display_Value when
39422 canonicalizing Value.
39423
39424 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
39425 path to find limited with cycles.
39426 (Parse_Single_Project): Use canonical cased path to find the end of a
39427 with cycle.
39428
394292004-03-02 Ed Schonberg <schonberg@gnat.com>
39430
39431 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
39432 and not a child unit.
39433
39434 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
39435 appear in a with_clause.
39436
39437 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
39438 only happen in type_annotate mode, do not try to elaborate it.
39439
39440 * exp_util.adb (Force_Evaluation): If expression is a selected
39441 component on the left of an assignment, use a renaming rather than a
39442 temporary to remove side effects.
39443
39444 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
39445 inlined instance body, which is analyzed before the end of the
39446 enclosing scope.
39447
394482004-03-02 Robert Dewar <dewar@gnat.com>
39449
39450 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
39451 sem_ch4.adb: Use new feature for substitution of keywords in VMS
39452
39453 * errout.ads, errout.adb: Implement new circuit for substitution of
39454 keywords in VMS.
39455
39456 * sem_case.adb (Analyze_Choices): Place message properly when case is
39457 a subtype reference rather than an explicit range.
39458
39459 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
39460
394612004-03-02 Doug Rupp <rupp@gnat.com>
39462
39463 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
39464
394652004-03-02 Thomas Quinot <quinot@act-europe.fr>
39466
39467 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
39468
394692004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39470
39471 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
39472 BLKmode bitfield.
39473
8a7988f5
AC
394742004-02-25 Robert Dewar <dewar@gnat.com>
39475
39476 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
39477 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
39478 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
39479 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
39480 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
39481 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
39482 the defining instance of the type to avoid aliasing problems.
39483 Fix copyright header. Fix bad comments in package header.
39484
39485 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
39486
394872004-02-25 Ed Schonberg <schonberg@gnat.com>
39488
39489 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
39490 rewritten as references when aliased through an address clause.
39491
39492 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
39493 whether call can be interpreted as an indirect call to the result of a
39494 parameterless function call returning an access subprogram.
39495
394962004-02-25 Arnaud Charlet <charlet@act-europe.fr>
39497
39498 Code clean up:
39499 * exp_ch7.adb (Make_Clean): Remove generation of calls to
39500 Unlock[_Entries], since this is now done by Service_Entries directly.
39501
39502 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
39503
39504 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
39505 Requeue_Call for better code readability. Change spec and update calls:
39506 PO_Service_Entries now unlock the PO on exit.
39507 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
39508 PO_Service_Entries.
39509
39510 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
39511
39512 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
39513
395142004-02-25 Sergey Rybin <rybin@act-europe.fr>
39515
39516 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
39517 protected subprogram call and analyzing the result of such expanding
39518 in case when the called protected subprogram is eliminated.
39519
39520 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
39521 names.
39522
395232004-02-25 Jerome Guitton <guitton@act-europe.fr>
39524
39525 * Makefile.in: Clean ups.
39526
6871ba5f
AC
395272004-02-23 Ed Schonberg <schonberg@gnat.com>
39528
39529 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
39530 protected operations if original subprogram is flagged as eliminated.
39531 (Expand_N_Subprogram_Body): For a protected operation, create
39532 discriminals for next operation before checking whether the operation
39533 is eliminated.
39534
39535 * exp_ch9.adb (Expand_N_Protected_Body,
39536 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
39537 for internal protected operations if the original subprogram is
39538 eliminated.
39539
39540 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
39541 declared in a single protected object.
39542
395432004-02-23 Vincent Celier <celier@gnat.com>
39544
39545 * prj-attr.adb: Make attribute Builder'Executable an associative array,
39546 case insensitive if file names are case insensitive, instead of a
39547 standard associative array.
39548
39549 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
39550 them as case insensitive on platforms where the file names are case
39551 sensitive.
39552
39553 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
39554 project file has already been parsed that canonical path are compared.
39555
395562004-02-23 Robert Dewar <dewar@gnat.com>
39557
39558 * sinput-c.ads: Correct bad unit title in header
39559
39560 * freeze.adb: Minor reformatting
39561
395622004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39563
39564 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
39565 nonaddressable COMPONENT_REF that is removing padding that we are
39566 taking the address of, take the address of the padded record instead
39567 if item is variable size.
39568
6e059adb
AC
395692004-02-20 Robert Dewar <dewar@gnat.com>
39570
39571 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
39572
395732004-02-20 Ed Schonberg <schonberg@gnat.com>
39574
39575 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
39576 itype references for the constrained designated type of a component
39577 whose base type is already frozen.
39578
395792004-02-20 Arnaud Charlet <charlet@act-europe.fr>
39580
39581 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
39582 avoid GCC warnings.
39583
395842004-02-20 Sergey Rybin <rybin@act-europe.fr>
39585
39586 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
39587 identifier for a phantom package that rewrites the formal package
39588 declaration with a box. The Add semantic decorations for the defining
39589 identifier from the original node (that represents the formal package).
39590
88e3a2a3
MK
395912004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
39592
39593 * Make-lang.in (ada/stamp-sdefault): Use the top level
39594 move-if-change.
39595
4221057e
RH
395962004-02-19 Richard Henderson <rth@redhat.com>
39597
39598 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
39599
5c1c8a03
AC
396002004-02-18 Emmanuel Briot <briot@act-europe.fr>
39601
39602 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
39603 Scan_ALI can be used for multiple ALI files without reinitializing
39604 between calls.
39605
396062004-02-18 Robert Dewar <dewar@gnat.com>
39607
39608 * debug.adb: Minor reformatting.
39609
396102004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39611
39612 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
39613 to zero if there is an address clause.
39614
396152004-02-18 Thomas Quinot <quinot@act-europe.fr>
39616
39617 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
39618
396192004-02-18 Gary Dismukes <dismukes@gnat.com>
39620
39621 * layout.adb (Layout_Component_List): Revise generation of call to
39622 discriminant-checking function to pass selections of all of the type's
39623 discriminants rather than just the variant-controlling discriminant.
39624
396252004-02-18 Olivier Hainque <hainque@act-europe.fr>
39626
39627 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
39628 fail in the current setup and triggers spurious system error messages.
39629 Pretend it occurred and failed instead.
39630
396312004-02-18 Vincent Celier <celier@gnat.com>
39632
39633 * bld.adb: Mark FLDFLAGS as saved
39634 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
39635 it is not the root project. Put each directory to be
39636 extended between double quotes to prevent it to be expanded on Windows.
39637 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
39638 the project file. Set them back to their initial values if they have not
39639 been set in the project file.
39640
39641 * gprcmd.adb: (Gprdebug, Debug): New global variables
39642 (Display_Command): New procedure
39643 (Usage): Document new command "linkopts"
39644 Call Display_Command when env var GPRDEBUG has the value "TRUE"
39645 Implement new command "linkopts"
39646 Remove quotes that may be around arguments for "extend"
39647 Always call Normalize_Pathname with arguments formatted for the platform
39648
39649 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
39650 Change @echo to @$(display) in target clean to be able to clean silently
39651
39652 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
39653
39654 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
39655 canonical case.
39656
39657 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
39658 = Extending_All when current project is an extending all project.
39659
39660 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
39661 set to True only for LINK command, after Unix switch -o.
39662 (Process_Arguments): Set Output_File_Expected to True for LINK command
39663 after Unix switch -o. When Output_File_Expected is True, never add an
39664 extension to a file name.
39665
39666 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
39667 option file name, only to the --for-linker= switch.
39668 (Option_File_Name): If option file name do not end with ".opt", append
39669 "/OPTIONS".
39670
396712004-02-18 GNAT Script <nobody@gnat.com>
39672
39673 * Make-lang.in: Makefile automatically updated
39674
80bcb4d2
MK
396752004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
39676
39677 * Make-lang.in (stamp-sdefault): Do not depend on
39678 move-if-change.
39679
1daa84b6
ZW
396802004-02-12 Zack Weinberg <zack@codesourcery.com>
39681
39682 * config-lang.in: Disable Ada by default until probe logic for
39683 a bootstrap Ada compiler can be moved to the top level configure
39684 script.
39685
18c0ecbe
AC
396862004-02-12 Olivier Hainque <hainque@act-europe.fr>
39687
39688 * decl.c (components_to_record): Don't claim that the internal fields
39689 we make to hold the variant parts are semantically addressable, because
39690 they are not.
39691
39692 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
39693 adjust the comment describing the modular type form when we can use it.
39694 (Install_PAT): Account for the Esiz renaming.
39695
39696 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
39697 sc_onstack context indication before raising the exception to which
39698 the signal is mapped. Allows better handling of later signals possibly
39699 triggered by the resumed user code if the exception is handled.
39700
397012004-02-12 Arnaud Charlet <charlet@act-europe.fr>
39702
39703 * 5zinit.adb: Removed, no longer used.
39704
397052004-02-12 Robert Dewar <dewar@gnat.com>
39706
39707 * ali.adb: Remove separating space between parameters on R line. Makes
39708 format consistent with format used by the binder for Set_Globals call.
39709
39710 * atree.ads, atree.adb: Minor reformatting (new function header format)
39711
39712 * bindgen.adb: Add Run-Time Globals documentation section containing
39713 detailed documentation of the globals passed from the binder file to
39714 the run time.
39715
39716 * gnatls.adb: Minor reformatting
39717
39718 * init.c (__gnat_set_globals): Add note pointing to documentation in
39719 bindgen.
39720
39721 * lib-writ.ads, lib-writ.adb: Remove separating space between
39722 parameters on R line.
39723 Makes format consistent with format used by the binder for Set_Globals
39724 call.
39725
39726 * osint.ads: Add 2004 to copyright notice
39727 Minor reformatting
39728
39729 * snames.ads: Correct capitalization of FIFO_Within_Priorities
39730 Noticed during code reading, documentation issue only
39731
39732 * usage.adb: Remove junk line for obsolete C switch
39733 Noticed during code reading
39734
397352004-02-12 Vincent Celier <celier@gnat.com>
39736
39737 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
39738 extend for each directory, so that multiple /** directories are
39739 extended individually.
39740 (Recursive_Process): Set the default for LANGUAGES to ada
39741
39742 * gprcmd.adb: Define new command "ignore", to do nothing.
39743 Implement new comment "path".
39744
39745 * Makefile.generic: Suppress output when SILENT is set
39746 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
39747 used, so that the correct compiler is invoked.
39748 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
39749 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
39750
397512004-02-12 Jerome Guitton <guitton@act-europe.fr>
39752
39753 * Makefile.in: Clean ups and remove obsolete targets.
39754
397552004-02-12 Ed Schonberg <schonberg@gnat.com>
39756
39757 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
39758 predicate declared in exp_util.
39759
39760 * exp_util.adb: Add comments.
39761
39762 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
39763 visibility before compiling context of the subunit.
39764
39765 * sem_res.adb (Check_Parameterless_Call): If the context expects a
39766 value but the name is a procedure, do not attempt to analyze as a call,
39767 in order to obtain more telling diagnostics.
39768
39769 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
39770 'Access on parameterless function calls.
39771 (Normalize_Actuals): For a parameterless function call with missing
39772 actuals, defer diagnostic until resolution of enclosing call.
39773
39774 * sem_util.adb (Wrong_Type): If the context type is an access to
39775 subprogram and the expression is a procedure name, suggest a missing
39776 'attribute.
39777
c1dcfa14
AC
397782004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
39779 Nathanael Nerode <neroden@gcc.gnu.org>
39780
6f7f72f9
EB
39781 PR ada/6637
39782 PR ada/5911
c1dcfa14 39783 Merge with libada-branch:
90afe2c9 39784 * config-lang.in: Build libada only when ada is built.
c1dcfa14 39785
2e071734
AC
397862004-02-09 Ed Schonberg <schonberg@gnat.com>
39787
39788 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
39789 for a tagged type, verify that both formals have the same type.
39790
39791 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
39792 temporary when the formal is an in-parameter and the actual a possibly
39793 unaligned slice.
39794
39795 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
39796 when expansion is disabled, to ensure proper name capture with
39797 overloaded literals. Condition can be of any boolean type, resolve
39798 accordingly.
39799
39800 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
39801 renaming is for a formal subprogram with a default operator name, and
39802 there is a usable operator that is visible at the point of
39803 instantiation.
39804
398052004-02-09 Robert Dewar <dewar@gnat.com>
39806
39807 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
39808 rewrite to ignore errors in ali files, intended to allow tools downward
39809 compatibility with new versions of ali files.
39810
39811 * ali.ads: Add new parameter Ignore_Errors
39812
39813 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
39814 duplicating the error message giving the file with restrictions.
39815
39816 * debug.adb: Add debug flag I for gnatbind
39817
39818 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
39819 operators for the case where the operator is a defining operator.
39820
39821 * exp_ch3.adb: Minor reformatting (new function spec format).
39822
39823 * exp_ch4.adb: Add comment for previous change, and make minor
39824 adjustment to loop to always check for improper loop termination.
39825 Minor reformatting throughout (new function spec format).
39826
39827 * gnatbind.adb: Implement -di debug flag for gnatbind
39828
39829 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
39830
39831 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
39832
39833 * lib-load.adb: Fix bad assertion.
39834 Found by testing and code reading.
39835 Minor reformatting.
39836
39837 * lib-load.ads: Minor reformatting.
39838
39839 * lib-writ.adb: There is only one R line now.
39840
39841 * lib-writ.ads: Add documentation on making downward compatible changes
39842 to ali files so old tools work with new ali files.
39843 There is only one R line now.
39844 Add documentation on format incompatibilities (with special GPS note)
39845
39846 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
39847
39848 * par-load.adb: Minor reformatting
39849
39850 * sem_ch8.adb: Fix to error message from last update
39851 Minor reformatting and restructuring of code from last update
39852
39853 * par-prag.adb, snames.adb, snames.ads, snames.h,
39854 sem_prag.adb: Implement pragma Profile.
39855
39856 * stylesw.adb: Implement -gnatyN switch to turn off all style check
39857 options.
39858
39859 * usage.adb: Add line for -gnatyN switch
39860
39861 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
39862
a41ea816
AC
398632004-02-09 Albert Lee <lee@gnat.com>
39864
39865 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
39866
398672004-02-09 Ed Schonberg <schonberg@gnat.com>
39868
39869 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
39870 slices.
39871
39872 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
39873 is nested in an instance that is not frozen yet, to avoid
39874 order-of-elaboration problems in gigi.
39875
39876 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
39877 body the attribute is legal.
39878
398792004-02-09 Robert Dewar <dewar@gnat.com>
39880
39881 * s-rident.ads: Minor comment correction
39882
39883 * targparm.adb: Remove dependence on uintp completely. There was
39884 always a bug in Make in that it called Targparm before initializing
39885 the Uint package. The old code appeared to get away with this, but
39886 the new code did not! This caused an assertion error in gnatmake.
39887
39888 * targparm.ads: Fix bad comment, restriction pragmas with parameters
39889 are indeed fully supported.
39890
725c60f8
AM
398912004-02-06 Alan Modra <amodra@bigpond.net.au>
39892
39893 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
39894
136e64db
KH
398952004-02-05 Kazu Hirata <kazu@cs.umass.edu>
39896
39897 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
39898 with targetm.calls.promote_prototypes.
39899
06effe87
AC
399002004-02-04 Robert Dewar <dewar@gnat.com>
39901
39902 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
39903 ali.ads, gprcmd.adb: Minor reformatting
39904
39905 * bindgen.adb: Output restrictions string for new style restrictions
39906 handling
39907
39908 * impunit.adb: Add s-rident.ads (System.Rident) and
39909 s-restri (System.Restrictions)
39910
39911 * lib-writ.adb: Fix bug in writing restrictions string (last few
39912 entries wrong)
39913
39914 * s-restri.ads, s-restri.adb: Change name Restrictions to
39915 Run_Time_Restrictions to avoid conflict with package name.
39916 Add circuit to read and acquire run time restrictions.
39917
399182004-02-04 Jose Ruiz <ruiz@act-europe.fr>
39919
39920 * restrict.ads, restrict.adb: Use the new restriction
39921 No_Task_Attributes_Package instead of the old No_Task_Attributes.
39922
39923 * sem_prag.adb: No_Task_Attributes is a synonym of
39924 No_Task_Attributes_Package.
39925
39926 * snames.ads, snames.adb: New entry for proper handling of
39927 No_Task_Attributes.
39928
39929 * s-rident.ads: Adding restriction No_Task_Attributes_Package
39930 (AI-00249) that supersedes the GNAT specific restriction
39931 No_Task_Attributes.
39932
399332004-02-04 Ed Schonberg <schonberg@gnat.com>
39934
90afe2c9 39935 * sem_prag.adb:
06effe87
AC
39936 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
39937 body, an identifier may be wrapped in an unchecked conversion.
39938
399392004-02-04 Vincent Celier <celier@gnat.com>
39940
39941 * lib-writ.ads: Comment update for the W lines
39942
39943 * bld.adb: (Expression): An empty string list is static
39944
39945 * fname-uf.adb: Minor comment update
39946
39947 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
39948
39949 * gnatbind.adb: Initialize Cumulative_Restrictions with the
39950 restrictions on the target.
39951
2fb00d7f
KH
399522004-02-03 Kazu Hirata <kazu@cs.umass.edu>
39953
39954 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
39955 gen_rtx.
39956
5ed23e25
AC
399572004-02-02 Arnaud Charlet <charlet@gnat.com>
39958
39959 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
39960
6e937c1c
AC
399612004-02-02 Vincent Celier <celier@gnat.com>
39962
39963 * gprcmd.adb (Check_Args): If condition is false, print the invoked
39964 comment before the usage.
39965 Gprcmd: Fail when command is not recognized.
39966 (Usage): Document command "prefix"
39967
39968 * g-md5.adb (Digest): Process last block.
39969 (Update): Do not process last block. Store remaining characters and
39970 length in Context.
39971
39972 * g-md5.ads (Update): Document that several call to update are
39973 equivalent to one call with the concatenated string.
39974 (Context): Add fields to allow new Update behaviour.
39975
39976 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
39977 defaulted to False.
39978 When May_Fail is True and no existing file can be found, return No_File.
39979
39980 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
39981 functions.
39982
39983 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
39984 spec file name instead on the W line.
39985
399862004-02-02 Robert Dewar <dewar@gnat.com>
39987
39988 * ali.adb: Read and acquire info from new format restrictions lines
39989
39990 * bcheck.adb: Add circuits for checking restrictions with parameters
39991
39992 * bindgen.adb: Output dummy restrictions data
39993 To be changed later
39994
39995 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39996 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
39997 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
39998 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
39999 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
40000
40001 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
40002 the warning message on access to possibly uninitialized variable S)
40003 Minor changes for new restrictions handling.
40004
40005 * gnatbind.adb: Minor reformatting
40006 Minor changes for new restrictions handling
40007 Move circuit for -r processing here from bcheck (cleaner)
40008
40009 * gnatcmd.adb, gnatlink.adb: Minor reformatting
40010
40011 * lib-writ.adb: Output new format restrictions lines
40012
40013 * lib-writ.ads: Document new R format lines for new restrictions
40014 handling.
40015
40016 * s-restri.ads/adb: New files
40017
40018 * Makefile.rtl: Add entry for s-restri.ads/adb
40019
40020 * par-ch3.adb: Fix bad error messages starting with upper case letter
40021 Minor reformatting
40022
40023 * restrict.adb: Major rewrite throughout for new restrictions handling
40024 Major point is to handle restrictions with parameters
40025
40026 * restrict.ads: Major changes in interface to handle restrictions with
40027 parameters. Also generally simplifies setting of restrictions.
40028
40029 * snames.ads/adb: New entry for proper handling of No_Requeue
40030
40031 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
40032 restriction counting.
40033 Other minor changes for new restrictions handling
40034
40035 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
40036 Restriction_Warnings now allows full parameter notation
40037 Major rewrite of Restrictions for new restrictions handling
40038
400392004-02-02 Javier Miranda <miranda@gnat.com>
40040
40041 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
40042 syntax rule for object renaming declarations.
40043 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
40044 component definitions.
40045
40046 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
40047 components.
40048 (Array_Type_Declaration): Give support to access components. In addition
40049 it was also modified to reflect the name of the object in anonymous
40050 array types. The old code did not take into account that it is possible
40051 to have an unconstrained anonymous array with an initial value.
40052 (Check_Or_Process_Discriminants): Allow access discriminant in
40053 non-limited types.
40054 (Process_Discriminants): Allow access discriminant in non-limited types
40055 Initialize the new Access_Definition field in N_Object_Renaming_Decl
40056 node. Change Ada0Y to Ada 0Y in comments
40057
40058 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
40059 equality operators.
40060 Change Ada0Y to Ada 0Y in comments
40061
40062 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
40063 renamings Change Ada0Y to Ada 0Y in comments
40064
40065 * sem_type.adb (Find_Unique_Type): Give support to the equality
40066 operators for universal access types
40067 Change Ada0Y to Ada 0Y in comments
40068
40069 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
40070
40071 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
40072 field.
40073 (N_Object_Renaming_Declaration): Addition of Access_Definition field
40074 Change Ada0Y to Ada 0Y in comments
40075
40076 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
40077 component definition and object renaming nodes
40078 Change Ada0Y to Ada 0Y in comments
40079
400802004-02-02 Jose Ruiz <ruiz@act-europe.fr>
40081
40082 * restrict.adb: Use the new restriction identifier
40083 No_Requeue_Statements instead of the old No_Requeue for defining the
40084 restricted profile.
40085
40086 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
40087 No_Requeue_Statements.
40088
40089 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
40090 that supersedes the GNAT specific restriction No_Requeue. The later is
40091 kept for backward compatibility.
40092
400932004-02-02 Ed Schonberg <schonberg@gnat.com>
40094
40095 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
40096 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
40097 pragma and fix incorrect ones.
40098
40099 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
40100 warning if the pragma is redundant.
40101
401022004-02-02 Thomas Quinot <quinot@act-europe.fr>
40103
40104 * 5staprop.adb: Add missing 'constant' keywords.
40105
40106 * Makefile.in: use consistent value for SYMLIB on
40107 platforms where libaddr2line is supported.
40108
401092004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40110
40111 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
40112 annotating types.
40113
401142004-02-02 Olivier Hainque <hainque@act-europe.fr>
40115
40116 * init.c (__gnat_install_handler): Setup an alternate stack for signal
40117 handlers in the environment thread. This allows proper propagation of
40118 an exception on stack overflows in this thread even when the builtin
40119 ABI stack-checking scheme is used without support for a stack reserve
40120 region.
40121
40122 * utils.c (create_field_decl): Augment the head comment about bitfield
40123 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
40124 here, because the former is not accurate enough at this point.
40125 Let finish_record_type decide instead.
40126 Don't make a bitfield if the field is to be addressable.
40127 Always set a size for the field if the record is packed, to ensure the
40128 checks for bitfield creation are triggered.
40129 (finish_record_type): During last pass over the fields, clear
40130 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
40131 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
40132 from DECL_BIT_FIELD.
40133
71cbe2c1
KC
401342004-01-30 Kelley Cook <kcook@gcc.gnu.org>
40135
90afe2c9 40136 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
40137 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
40138 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
40139
7f996f90
RO
401402004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40141
40142 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
40143
40144 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
40145 (ZCX_By_Default): Likewise.
40146 (Front_End_ZCX_Support): Likewise.
40147
40148 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
40149 (Initialize_Lock): Mark Level unreferenced.
40150 (Sleep): Mark Reason unreferenced.
40151 (Timed_Sleep): Likewise.
40152 (Wakeup): Likewise.
40153 (Exit_Task): Use Result.
40154 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 40155
7f996f90
RO
40156 * 5gtasinf.adb (New_Sproc): Make Attr constant.
40157 (Bound_Thread_Attributes): Make Sproc constant.
40158 (New_Bound_Thread_Attributes): Likewise.
40159
26fd4eae
AC
401602004-01-26 Ed Schonberg <schonberg@gnat.com>
40161
40162 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
40163 one-dimensional array an slice assignments, when component type is
40164 controlled.
40165
40166 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
40167 component type is controlled, and control_actions are in effect, use
40168 TSS procedure rather than generating inline code.
40169
40170 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
40171 arrays with controlled components.
40172
401732004-01-26 Vincent Celier <celier@gnat.com>
40174
40175 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
40176 command line for the non VMS case.
40177
40178 * gnatlink.adb (Process_Binder_File): When building object file, if
40179 GNU linker is used, put all object paths between quotes, to prevent ld
40180 error when there are unusual characters (such as '!') in the paths.
40181
40182 * Makefile.generic: When there are sources in Ada and the main is in
40183 C/C++, invoke gnatmake with -B, instead of -z.
40184
40185 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
40186 from VMS_Conversion.
40187 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
40188 specification of argument file on the command line.
40189
401902004-01-26 Bernard Banner <banner@gnat.com>
40191
40192 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
40193
401942004-01-26 Ed Schonberg <schonberg@gnat.com>
40195
40196 * snames.adb: Update copyright notice.
40197 Add info on slice assignment for controlled arrays.
40198
b7e429ab
AC
401992004-01-23 Robert Dewar <dewar@gnat.com>
40200
40201 * exp_aggr.adb: Minor reformatting
40202
40203 * exp_ch9.adb: Minor code clean up
40204 Minor reformatting
40205 Fix bad character in comment
40206
40207 PR ada/13471
40208 * targparm.adb (Get_Target_Parameters): Give clean abort error on
40209 unexpected end of file, along with more detailed message.
40210
402112004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40212
40213 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
40214 PAT.
40215
40216 * decl.c (copy_alias_set): New function.
40217 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
40218
402192004-01-23 Doug Rupp <rupp@gnat.com>
40220
40221 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
40222 lib$${file} in case subsequent character is not a separator.
40223
402242004-01-23 Vincent Celier <celier@gnat.com>
40225
40226 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
40227 when the GCC version is at least 3.
40228
40229 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
40230 Remove all "Opt.", to prepare for opt split
40231
40232 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
40233 Extends_All. Set to True when the project parsed is an extending all
40234 project. Fails for importing an extending all project only when the
40235 imported project is an extending all project.
40236 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
40237 depending on the value of Extends_All returned.
40238
40239 * prj-proc.adb (Process): Check that no project shares its object
40240 directory with a project that extends it, directly or indirectly,
40241 including a virtual project.
40242 Check that no project extended by another project shares its object
40243 directory with another also extended project.
40244
40245 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
40246 Kind = N_With_Clause
40247
40248 * prj-tree.ads: Minor reformatting
40249 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
40250
402512004-01-23 Ed Schonberg <schonberg@gnat.com>
40252
40253 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
40254 applies to a type with an incomplete view, use full view in Name of
40255 clause, for consistency with uses of Get_Attribute_Definition_Clause.
40256
402572004-01-23 Arnaud Charlet <charlet@act-europe.fr>
40258
40259 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
40260 SCHED_RR, since other values are not supported by this policy.
40261 (Initialize): Move initialization of mutex attribute to package
40262 elaboration, to prevent early access to this variable.
40263
40264 * Makefile.in: Remove mention of Makefile.adalib, unused.
40265
b291953f
AC
40266 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40267 1ssecsta.ads: Removed, unused.
b7e429ab 40268
adc04486
AC
402692004-01-21 Javier Miranda <miranda@gnat.com>
40270
40271 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
40272 entity if already built in the current scope.
40273
40274 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
40275 reminder in internal scopes. Required for nested limited aggregates.
40276
402772004-01-21 Doug Rupp <rupp@gnat.com>
40278
40279 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
40280 VMS. Replace all occurences of libgnat- and libgnarl- with
40281 libgnat$(hyphen) and libgnarl$(hyphen).
40282 Fixed shared library build problem on VMS.
40283
402842004-01-21 Robert Dewar <dewar@gnat.com>
40285
40286 * mlib-prj.adb: Minor reformatting
40287
402882004-01-21 Thomas Quinot <quinot@act-europe.fr>
40289
40290 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
40291 'constant' keywords for declaration of pointers that are not modified.
40292
40293 * exp_pakd.adb: Fix English in comment.
40294
402952004-01-21 Ed Schonberg <schonberg@gnat.com>
40296
40297 PR ada/10889
40298 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
40299 copy all attributes of the parent, including the foreign language
40300 convention.
40301
403022004-01-21 Sergey Rybin <rybin@act-europe.fr>
40303
40304 PR ada/10565
40305 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
40306 for 'delay until' statement.
40307
a541f69d
KC
403082004-01-20 Kelley Cook <kcook@gcc.gnu.org>
40309
40310 * Make-lang.in: Replace $(docdir) with doc.
40311 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
40312 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
40313 to use consistent MAKEINFO rule.
40314 (ada.man, ada.srcman): Dummy entry.
40315 (ADA_INFOFILES): Define.
40316 (ada.info, ada.srcinfo): New rules.
40317
c01a9391
AC
403182004-01-19 Arnaud Charlet <charlet@act-europe.fr>
40319
40320 * utils.c: Update copyright notice, missed in previous change.
40321
403222004-01-19 Vincent Celier <celier@gnat.com>
40323
40324 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
40325 args if Bind is True. Set First_ALI, if not already done.
40326 (Build_Library): For Stand Alone Libraries, extract from one ALI file
40327 an eventual --RTS switch, for gnatbind, and all backend switches +
40328 --RTS, for linking.
40329
403302004-01-19 Robert Dewar <dewar@gnat.com>
40331
40332 * sem_attr.adb, memtrack.adb: Minor reformatting
40333
403342004-01-19 Ed Schonberg <schonberg@gnat.com>
40335
40336 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
40337 that rename enumeration literals. This is properly done in sem_eval.
40338
40339 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
40340 to functions that rename enumeration literals.
40341
40342 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
40343 functions that rename enumeration literals.
40344
510d1e80
KH
403452004-01-16 Kazu Hirata <kazu@cs.umass.edu>
40346
40347 * Make-lang.in (utils.o): Depend on target.h.
40348 * utils.c: Include target.h.
40349 (process_attributes): Use targetm.have_named_sections instead
40350 of ASM_OUTPUT_SECTION_NAME.
40351
fbf3e0dd
AJ
403522004-01-16 Andreas Jaeger <aj@suse.de>
40353
40354 * Makefile.in: Add $(DESTDIR).
40355
acd47d2a
AC
403562004-01-15 Olivier Hainque <hainque@act-europe.fr>
40357
40358 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
40359 also when not defining if a Size clause applies. That information is
40360 not to be ignored.
40361
403622004-01-15 Arnaud Charlet <charlet@act-europe.fr>
40363
40364 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
40365 symbolic links for the shared gnat run time when needed.
40366
403672004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
40368
40369 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
40370 for writing, and terminate with an error message if not.
40371
403722004-01-15 Ed Schonberg <schonberg@gnat.com>
40373
40374 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
40375 warning on an access to subprogram in an instance, when the target
40376 type is declared in the same generic unit.
40377 (Eval_Attribute): If 'access is known to fail accessibility check,
40378 rewrite as a raise statement.
40379
403802004-01-15 GNAT Script <nobody@gnat.com>
40381
40382 * Make-lang.in: Makefile automatically updated
40383
03787dfd
KC
403842004-01-15 Kelley Cook <kcook@gcc.gnu.org>
40385
40386 * Make-lang.in (ada.srcextra): Dummy entry.
40387
73e232f0
KC
403882004-01-14 Kelley Cook <kcook@gcc.gnu.org>
40389
40390 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
40391
9bc43c53
AC
403922004-01-13 Ed Schonberg <schonberg@gnat.com>
40393
40394 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
40395 components that are initialized with aggregates.
40396
403972004-01-13 Vincent Celier <celier@gnat.com>
40398
40399 * gnatlink.adb (Process_Binder_File): To find directory of shared
40400 libgcc, if "gcc-lib" is not a subdirectory, look for the last
40401 subdirectory "lib" in the path of the shared libgnat or libgnarl.
40402
40403 * make.adb (Gnatmake): If GCC version is at least 3, link with
40404 -shared-libgcc, when there is at least one shared library project.
40405
40406 * opt.ads (GCC_Version): New integer constant.
40407
40408 * adaint.c (get_gcc_version): New function.
40409
404102004-01-13 Robert Dewar <dewar@gnat.com>
40411
40412 * sem_dist.adb, sem_res.adb, sem_util.adb,
40413 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
40414 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
40415
404162004-01-13 Thomas Quinot <quinot@act-europe.fr>
40417
40418 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
40419 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
40420 declarations.
40421
8b52de7b
AC
404222004-01-12 Arnaud Charlet <charlet@act-europe.fr>
40423
f6ea0188
AC
40424 * misc.c: Remove trailing spaces.
40425 Update copyright notice missed in previous change.
40426
8b52de7b
AC
40427 PR ada/13572
40428 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
40429 prefix/share/make
40430
40431 * Makefile.generic: Update copyright.
40432 Add license notice.
40433
40434 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
40435 of prefix/share/make.
40436
40437 * Makefile.prolog: Update copyright.
40438 Add license notice.
40439
404402004-01-12 Laurent Pautet <pautet@act-europe.fr>
40441
40442 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
40443 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
40444 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
40445 instead of String.
40446
40447 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
40448 signature.
40449
404502004-01-12 Javier Miranda <miranda@gnat.com>
40451
40452 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
40453 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
40454 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
40455 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
40456 Component_Definition node.
40457
404582004-01-12 Ed Falis <falis@gnat.com>
40459
40460 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
40461
404622004-01-12 Thomas Quinot <quinot@act-europe.fr>
40463
40464 * link.c: Change default libgnat kind to STATIC for FreeBSD.
40465
404662004-01-12 Bernard Banner <banner@gnat.com>
40467
40468 * Makefile.in: map 86numaux to a-numaux for x86_64
40469
404702004-01-12 Ed Schonberg <schonberg@gnat.com>
40471
40472 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
40473 generated to rename a generic actual, go to the actual itself, the
40474 subtype is not a user-visible entity.
40475
40476 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
40477 part is a private subtype, reset the visibility of its full view, if
40478 any, to be consistent.
40479
40480 PR ada/13417
40481 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
40482 to use a generic package G as a formal package for another generic
40483 declared within G.
40484
404852004-01-12 Robert Dewar <dewar@gnat.com>
40486
40487 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
40488
40489 * usage.adb: Remove mention of obsolete -gnatwb switch
40490 Noticed during code reading
40491
404922004-01-12 Jerome Guitton <guitton@act-europe.fr>
40493
40494 * 1ssecsta.adb: Minor changes for -gnatwa warnings
40495
404962004-01-12 GNAT Script <nobody@gnat.com>
40497
40498 * Make-lang.in: Makefile automatically updated
40499
0fab64a3
MM
405002004-01-09 Mark Mitchell <mark@codesourcery.com>
40501
40502 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
40503
47527624
RO
405042004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40505
40506 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
40507
dedebde1
KC
405082004-01-05 Kelley Cook <kcook@gcc.gnu.org>
40509
fbf3e0dd 40510 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
40511 Update comment and copyright date.
40512 * stamp-xgnatug: Delete.
40513
91b1417d
AC
405142004-01-05 Robert Dewar <dewar@gnat.com>
40515
40516 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
40517 be modified by the binder generated main program if the -D switch is
40518 used.
40519
40520 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
40521 imported functions (since now we expect this to be done for imported
40522 functions)
40523
40524 * 5vtaprop.adb: Add several ??? for sections requiring more comments
40525 Minor reformatting throughout
40526
40527 * 5zinit.adb: Minor reformatting
40528 Add 2004 to copyright date
40529 Minor changes to avoid -gnatwa warnings
40530 Correct some instances of using OR instead of OR ELSE (noted while
40531 doing reformatting)
40532
40533 * sprint.adb: Minor updates to avoid -gnatwa warnings
40534
fbf3e0dd 40535 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
40536 (SS_Get_Max): New function to obtain high water mark for ss stack
40537 Default_Secondary_Stack is not a constant since it may be modified by
40538 the binder generated main program if the -D switch is used.
40539
40540 * switch-b.adb: New -Dnnn switch for binder
40541
fbf3e0dd 40542 * switch-c.adb:
91b1417d
AC
40543 Make -gnatg imply all warnings currently in -gnatwa
40544
40545 * vms_conv.adb: Minor reformatting
40546 Add 2004 to copyright notice
40547 Add 2004 to printed copyright notice
40548
40549 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
40550 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
40551 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
40552 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
40553 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
40554 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
40555 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
40556 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
40557 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
40558 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
40559 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
40560 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
40561 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
40562 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
40563 checks.adb, clean.adb, cstand.adb, einfo.ads,
40564 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
40565 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
40566 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
40567 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
40568 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
40569 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
40570 Minor reformatting and code clean ups.
40571 Minor changes to prevent -gnatwa warnings
40572
40573 * ali.adb: Minor reformatting and cleanup of code
40574 Acquire new SS indication of secondary stack use from ali files
40575
40576 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
40577 (since now we expect this to be done for imported functions)
40578
40579 * bindgen.adb: Generate call to modify default secondary stack size if
40580 -Dnnn switch given
40581
40582 * bindusg.adb: Add line for new -D switch
40583
40584 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
40585 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
40586 Add circuitry for both records and arrays to avoid gigi
40587 processing if the type involved has non-bit-aligned components
40588
40589 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
40590 N_String_Literal node always references an E_String_Literal_Subtype
40591 entity. This may not be true in the future.
40592 (Possible_Bit_Aligned_Component): Move processing of
40593 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
40594
40595 * exp_ch6.adb (Expand_Thread_Body): Pick up
40596 Default_Secondary_Stack_Size as variable so that we get value modified
40597 by possible -Dnnn binder parameter.
40598
40599 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
40600 (Type_May_Have_Bit_Aligned_Components): New function.
40601
40602 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
40603 (Type_May_Have_Bit_Aligned_Components): New function.
40604
40605 * fe.h: (Set_Identifier_Casing): Fix prototype.
40606 Add declaration for Sem_Elim.Eliminate_Error_Msg.
40607 Minor reformatting.
40608
40609 * freeze.adb (Freeze_Entity): Add RM reference to error message about
40610 importing constant atomic/volatile objects.
40611 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
40612 unless explicit Pure_Function pragma given, to avoid insidious bug of
40613 call to non-pure imported function getting eliminated.
40614
40615 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
40616 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
40617 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
40618 Add 2004 to printed copyright notice
40619
40620 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
40621 stack used.
40622
40623 * Makefile.rtl: Add entry for g-sestin.o
40624 g-sestin.ads: New file.
40625
40626 * mdll.adb: Minor changes to avoid -gnatwa warnings
40627
40628 * mlib-tgt.adb: Minor reformatting
40629
40630 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
40631 New switch Sec_Stack_Used (GNAT, GNATBIND)
40632 Make Default_Secondary_Stack_Size a variable instead of a constant,
40633 so that it can be modified by the new -Dnnn bind switch.
40634
40635 * rtsfind.adb (Load_Fail): Give full error message in configurable
40636 run-time mode if all_errors mode is set. This was not done in the case
40637 of a file not found, which was an oversight.
40638 Note if secondary stack unit is used by compiler.
40639
40640 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
40641 ineffective elaborate all pragmas on non-visible packages (this
40642 happened when a renamed subprogram was called). Now the elaborate all
40643 always goes on the package containing the renaming rather than the one
40644 containing the renamed subprogram.
40645
40646 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
40647 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
40648
40649 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
40650 has an Etype that references an E_String_Literal.
40651 (Eval_String_Literal): Avoid assumption that N_String_Literal node
40652 always references an E_String_Literal_Subtype entity. This may not
40653 be true in the future.
40654
40655 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
40656 pragma location.
40657
40658 * sem_res.adb (Resolve): Specialize msg for function name used in proc
40659 call.
40660
406612004-01-05 Ed Falis <falis@gnat.com>
40662
40663 * g-debuti.adb: Replaced direct boolean operator with short-circuit
40664 form.
40665
406662004-01-05 Vincent Celier <celier@gnat.com>
40667
40668 * bld.adb: Minor comment updates
40669 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
40670 of Item_Name).
40671
40672 * make.adb (Gnatmake): Special process for files to compile/check when
40673 -B is specified. Fail when there are only foreign mains in attribute
40674 Main of the project file and -B is not specified. Do not skip bind/link
40675 steps when -B is specified.
40676
40677 * makeusg.adb: Document new switch -B
40678
40679 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
40680
40681 * switch-m.adb: (Scan_Make_Switches): Process -B switch
40682
40683 * vms_data.ads: Add new GNAT PRETTY qualifier
40684 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
40685
406862004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40687
40688 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
40689 case.
40690
40691 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
40692 Set_Identifier_Casing.
40693
40694 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
40695 has size that overflows.
40696
406972004-01-05 Gary Dismukes <dismukes@gnat.com>
40698
40699 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
40700 -gnatwa warning on static condition.
40701
407022004-01-05 Doug Rupp <rupp@gnat.com>
40703
40704 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
40705
407062004-01-05 Arnaud Charlet <charlet@act-europe.fr>
40707
40708 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
40709 all attributes, including read-only attribute.
40710
407112004-01-05 Pascal Obry <obry@gnat.com>
40712
40713 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
40714 library naming scheme.
40715
40716 * mlib-prj.adb (Build_Library): Generate different names for the static
40717 or dynamic version of the GNAT runtime. This is needed to support the
40718 new shared library naming scheme.
40719 (Process_Binder_File): Add detection of shared library in binder file
40720 based on the new naming scheme.
40721
40722 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
40723 scheme for the shared runtime libraries.
40724
40725 * Makefile.in:
40726 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
40727 scheme.
40728 (install-gnatlib): Do not create symlinks for shared libraries.
40729 (gnatlib-shared-default): Idem.
40730 (gnatlib-shared-dual-win32): New target. Not used for now as the
40731 auto-import feature does not support arrays/records.
40732 (gnatlib-shared-win32): Do not create copy for the shared libraries.
40733 (gnatlib-shared-vms): Fix shared runtime libraries names.
40734
40735 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
40736 dependent runtime shared library name.
40737
407382004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
40739
40740 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
40741 than the object.
40742
407432004-01-05 Ed Schonberg <schonberg@gnat.com>
40744
40745 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
40746 protected objects when allocator has a subtype indication, not a
40747 qualified expression. Note that qualified expressions may have to be
40748 checked when limited aggregates are implemented.
40749
40750 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
40751 pure, emit warning.
40752 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
40753 subprogram is imported, remove warning.
40754
407552004-01-05 Geert Bosch <bosch@gnat.com>
40756
40757 * s-poosiz.adb: Update copyright notice.
40758 (Allocate): Use Task_Lock to protect against concurrent access.
40759 (Deallocate): Likewise.
40760
407612004-01-05 Joel Brobecker <brobecker@gnat.com>
40762
40763 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
40764 comment.
40765
2ab127f3
KC
407662003-12-23 Kelley Cook <kcook@gcc.gnu.org>
40767
40768 * gnat_ug.texi: Force a CVS commit by updating copyright.
40769 * gnat_ug_vxw.texi: Regenerate.
40770 * gnat_ug_wnt.texi: Regenerate.
40771 * gnat_ug_vms.texi: Regenerate.
40772 * gnat_ug_unx.texi: Regenerate.
40773
aed8bfdc
KH
407742003-12-20 Kazu Hirata <kazu@cs.umass.edu>
40775
40776 * trans.c: Remove uses of "register" specifier in
40777 declarations of local variables.
40778
90c2f1de
KC
407792003-12-18 Kelley Cook <kcook@gcc.gnu.org>
40780
40781 * stamp-xgnatug: New stamp file.
40782 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
40783 (ada/doctools/xgnatug): Add $(build_exeext).
40784 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
40785 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
40786
891a6e79
AC
407872003-12-17 Ed Falis <falis@gnat.com>
40788
40789 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
40790 eliminate warning.
40791
40792 * a-exextr.adb: Add context clause for
40793 Ada.Exceptions.Last_Chance_Handler.
40794
407952003-12-17 Sergey Rybin <rybin@act-europe.fr>
40796
40797 * cstand.adb (Create_Standard): Change the way how the declaration of
40798 the Duration type is created (making it the same way as it is for all
40799 the other standard types).
40800
408012003-12-17 Robert Dewar <dewar@gnat.com>
40802
40803 * s-crtl.ads: Fix header format
40804 Change Pure to Preelaborate
40805
408062003-12-17 Ed Schonberg <schonberg@gnat.com>
40807
40808 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
40809 the expression type only if it is declared in the current unit.
40810
40811 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
40812 are universal and already analyzed, as can occur in constrained
40813 subcomponents that depend on discriminants, when one constraint is a
40814 subtype mark.
40815
40816 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
40817 type Any_Fixed is legal as the argument of a conversion, if only one
40818 fixed-point type is in context.
40819
408202003-12-17 GNAT Script <nobody@gnat.com>
40821
40822 * Make-lang.in: Makefile automatically updated
40823
209db2bf
AC
408242003-12-15 Robert Dewar <dewar@gnat.com>
40825
40826 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
40827 sec stack size.
40828
408292003-12-15 Vincent Celier <celier@gnat.com>
40830
40831 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
40832 (Gnatchop): Do not set failure status when reporting the number of
40833 warnings.
40834
408352003-12-15 Doug Rupp <rupp@gnat.com>
40836
40837 * s-ctrl.ads: New file.
40838
40839 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
40840
40841 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
40842 (GNATBIND_OBJS): Add ada/s-crtl.o.
40843
40844 * Makefile.in [VMS]: Clean up ifeq rules.
40845
40846 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
40847 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
40848 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
40849 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
40850 s-tasdeb.adb: Update copyright.
40851 Import System.CRTL.
40852 Make minor modifications to use System.CRTL declared functions instead
40853 of importing locally.
40854
408552003-12-15 GNAT Script <nobody@gnat.com>
40856
40857 * Make-lang.in: Makefile automatically updated
40858
a9f4e3d2
AC
408592003-12-11 Ed Falis <falis@gnat.com>
40860
40861 * 5zinit.adb: Clean up.
40862
40863 * 5zintman.adb (Notify_Exception): replaced case statement with a call
40864 to __gnat_map_signal, imported from init.c to support
40865 signal -> exception mappings that depend on the vxWorks version.
40866
fbf3e0dd 40867 * init.c:
a9f4e3d2
AC
40868 Created and exported __gnat_map_signal to support signal -> exception
40869 mapping that is dependent on the VxWorks version.
40870 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
40871
408722003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
40873
40874 * 5wosinte.ads: Link with -mthreads switch.
40875
408762003-12-11 Arnaud Charlet <charlet@act-europe.fr>
40877
40878 * init.c (__gnat_install_handler [NetBSD]): Set
40879 __gnat_handler_installed, as done on all other platforms.
40880 Remove duplicated code.
40881
408822003-12-11 Jerome Guitton <guitton@act-europe.fr>
40883
40884 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
40885
408862003-12-11 Thomas Quinot <quinot@act-europe.fr>
40887
40888 * sinfo.ads: Fix inconsistent example code in comment.
40889
408902003-12-11 Robert Dewar <dewar@gnat.com>
40891
40892 * a-tiinau.adb: Add a couple of comments
40893
40894 * sem_ch3.adb: Minor reformatting
40895
fbf3e0dd 40896 * sem_prag.adb:
a9f4e3d2
AC
40897 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
40898 Minor reformatting throughout
40899
409002003-12-11 Ed Schonberg <schonberg@gnat.com>
40901
40902 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
40903 bounds of a loop, create a separate block in order to generate proper
40904 cleanup actions to prevent memory leaks.
40905
40906 * sem_res.adb (Resolve_Call): After a call to
40907 Establish_Transient_Scope, the call may be rewritten and relocated, in
40908 which case no further processing is needed.
40909
40910 * sem_util.adb: (Wrong_Type): Refine previous fix.
40911 Fixes ACATS regressions.
40912
40913 PR ada/13353
a9f4e3d2
AC
40914 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
40915 be inlined.
40916
c45b6ae0
AC
409172003-12-08 Jerome Guitton <guitton@act-europe.fr>
40918
40919 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
40920 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
40921 obsolete files.
40922
40923 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
40924 (rts-zfp): Ditto.
40925
409262003-12-08 Robert Dewar <dewar@gnat.com>
40927
40928 * 7sintman.adb: Minor reformatting
40929
40930 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
40931 standard linker options to get standard libraries linked. We now plan
40932 to provide dummy versions of these libraries to match the appropriate
40933 configurable run-time (e.g. if a library is not needed at all, provide
40934 a dummy empty library).
40935
40936 * targparm.ads: Configurable_Run_Time mode no longer affects linker
40937 options (-L parameters and standard libraries). What we plan to do is
40938 to provide dummy libraries where the libraries are not required.
40939
40940 * gnatbind.adb: Minor comment improvement
40941
409422003-12-08 Javier Miranda <miranda@gnat.com>
40943
40944 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
40945 aggregate in the parent. Otherwise constants with limited aggregates
40946 are not supported. Add new formal to pass the component type (Ctype).
40947 It is required to call the corresponding IP subprogram in case of
40948 default initialized components.
40949 (Gen_Assign): In case of default-initialized component, generate a
40950 call to the IP subprogram associated with the component.
40951 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
40952 of aggregate with default initialized components.
40953 (Has_Default_Init_Comps): Improve implementation to recursively check
40954 all the present expressions.
40955
40956 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
40957 to indicate that the initialization call corresponds to a
40958 default-initialized component of an aggregate.
40959 In case of default initialized aggregate with tasks this parameter is
40960 used to generate a null string (this is just a workaround that must be
40961 improved later). In case of discriminants, this parameter is used to
40962 generate a selected component node that gives access to the discriminant
40963 value.
40964
40965 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
40966 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
40967 allocated aggregates with default-initialized components.
40968
40969 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
40970 the box notation is used in positional aggregates.
40971
409722003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
40973
40974 * lib.ads: Fix typo in comment
40975
409762003-12-08 Vincent Celier <celier@gnat.com>
40977
40978 * prj.adb (Project_Empty): New component Unkept_Comments
40979 (Scan): Remove procedure; moved to Prj.Err.
40980
40981 * prj.ads (Project_Data): New Boolean component Unkept_Comments
40982 (Scan): Remove procedure; moved to Prj.Err.
40983
40984 * prj-dect.adb: Manage comments for the different declarations.
40985
40986 * prj-part.adb (With_Record): New component Node
40987 (Parse): New Boolean parameter Store_Comments, defaulted to False.
40988 Set the scanner to return ends of line and comments as tokens, if
40989 Store_Comments is True.
40990 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
40991 comments are associated with these nodes. Store the node IDs in the
40992 With_Records.
40993 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
40994 With_Records.
40995 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
40996 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
40997 current project. Call Tree.Restore afterwards. Set the various nodes
40998 for comment storage (Next_End, End_Of_Line, Previous_Line,
40999 Previous_End).
41000
41001 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
41002 defaulted to False.
41003
41004 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
41005 to False. When Truncated is True, truncate the string, never go to the
41006 next line.
41007 (Write_End_Of_Line_Comment): New procedure
41008 (Print): Process comments for nodes N_With_Clause,
41009 N_Package_Declaration, N_String_Type_Declaration,
41010 N_Attribute_Declaration, N_Typed_Variable_Declaration,
41011 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
41012 Process nodes N_Comment.
41013
41014 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
41015 without comments and there are some comments, set the flag
41016 Unkept_Comments to True.
41017 (Scan): If there are comments, set the flag Unkept_Comments to True and
41018 clear the comments.
41019 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
41020 (Next_End_Nodes: New table
41021 (Comment_Zones_Of): New function
41022 (Scan): New procedure; moved from Prj. Accumulate comments in the
41023 Comments table and set end of line comments, comments after, after end
41024 and before end.
41025 (Add_Comments): New procedure
41026 (Save, Restore, Seset_State): New procedures
41027 (There_Are_Unkept_Comments): New function
41028 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
41029 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
41030 procedures.
41031 (First_Comment_After, First_Comment_After_End): New functions
41032 (First_Comment_Before, First_Comment_Before_End): New functions
41033 (Next_Comment): New function
41034 (End_Of_Line_Comment, Follows_Empty_Line,
41035 Is_Followed_By_Empty_Line): New functions
41036 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
41037 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
41038 (Set_Next_Comment): New procedure
41039 (Default_Project_Node): Associate comment before if the node can store
41040 comments.
41041
41042 * scans.ads (Token_Type): New enumeration value Tok_Comment
41043 (Comment_Id): New global variable
41044
41045 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
41046 defaulted to False.
41047 (Scan): Store position of start of comment. If comments are tokens, set
41048 Comment_Id and set Token to Tok_Comment when scanning a comment.
41049 (Set_Comment_As_Token): New procedure
41050
41051 * sinput-p.adb: Update Copyright notice
41052 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
41053 that no longer exists.
41054
410552003-12-08 Javier Miranda <miranda@gnat.com>
41056
41057 * sem_aggr.adb: Add dependence on Exp_Tss package
41058 Correct typo in comment
41059 (Resolve_Aggregate): In case of array aggregates set the estimated
41060 type of the aggregate before calling resolve. This is needed to know
41061 the name of the corresponding IP in case of limited array aggregates.
41062 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
41063 in case of default initialized array components.
41064
41065 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
41066 types. Required to give support to limited aggregates in generic
41067 formals.
41068
410692003-12-08 Ed Schonberg <schonberg@gnat.com>
41070
41071 * sem_ch3.adb (Check_Initialization): For legality purposes, an
41072 inlined body functions like an instantiation.
41073 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
41074 until bounds are analyzed, to diagnose premature use of type.
41075
41076 * sem_util.adb (Wrong_Type): Improve error message when the type of
41077 the expression is used prematurely.
41078
410792003-12-08 GNAT Script <nobody@gnat.com>
41080
41081 * Make-lang.in: Makefile automatically updated
41082
0875a894
AC
410832003-12-08 Arnaud Charlet <charlet@act-europe.fr>
41084
7618d510
AC
41085 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
41086 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
41087 maintenance troubles.
41088
5b4994bc
AC
410892003-12-05 Thomas Quinot <quinot@act-europe.fr>
41090
41091 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
41092 version of this unit).
41093
410942003-12-05 Olivier Hainque <hainque@act-europe.fr>
41095
41096 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
41097 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
41098 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
41099 the body of System.Interrupt_Management common to several targets.
41100 Update copyright notice when appropriate.
41101
41102 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
41103 constant.
41104
41105 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
41106 to ensure that the kernel fills in the interrupted context structure
41107 before calling a signal handler, which is necessary to be able to
41108 unwind past it. Update the copyright notice.
41109
411102003-12-05 Jerome Guitton <guitton@act-europe.fr>
41111
41112 * a-elchha.ads: New file.
41113
41114 * a-elchha.adb: New default last chance handler. Contents taken from
41115 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
41116
41117 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
41118 is moved to a-elchha.adb to provide a target-independent default last
41119 chance handler.
41120
41121 * Makefile.rtl: Add a-elchha.o
41122
41123 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
41124
411252003-12-05 Ed Schonberg <schonberg@gnat.com>
41126
41127 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
41128 declared in an instance, do not inline the call if the instance is not
41129 frozen yet, to prevent order of elaboration problems.
41130
41131 * sem_prag.adb: Add comments for previous fix.
41132
411332003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
41134
41135 * g-table.adb: Use the right variable in Set_Item.
41136 Update copyright notice.
41137
411382003-12-05 Arnaud Charlet <charlet@act-europe.fr>
41139
41140 * Makefile.in: Remove unused rules.
41141
411422003-12-05 Vincent Celier <celier@gnat.com>
41143
41144 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
41145 -nostdlib. Not needed here after all.
41146
efdfd311
AC
411472003-12-03 Thomas Quinot <quinot@act-europe.fr>
41148
41149 PR ada/11724
fbf3e0dd 41150 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
41151 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
41152 on some platforms (including FreeBSD), it is a 64 bit value.
41153 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
41154
411552003-12-03 Arnaud Charlet <charlet@act-europe.fr>
41156
41157 * gnatvsn.ads (Library_Version): Now contain only the relevant
41158 version info.
41159 (Verbose_Library_Version): New constant.
41160
41161 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
41162 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
41163 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
41164
41165 * gnatlbr.adb: Clean up: replace Library_Version by
41166 Verbose_Library_Version.
41167
fbf3e0dd 41168 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
41169 Clean up: replace Library_Version by Verbose_Library_Version.
41170
41171 * 5lintman.adb: Removed.
41172
fbf3e0dd 41173 * Makefile.in:
efdfd311
AC
41174 Update and simplify computation of LIBRARY_VERSION.
41175 Fix computation of GSMATCH_VERSION.
41176 5lintman.adb is no longer used: replaced by 7sintman.adb.
41177
411782003-12-03 Robert Dewar <dewar@gnat.com>
41179
fbf3e0dd 41180 * exp_ch5.adb:
efdfd311
AC
41181 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
41182 name. Modified to consider small non-bit-packed arrays as troublesome
41183 and in need of component-by-component assigment expansion.
41184
411852003-12-03 Vincent Celier <celier@gnat.com>
41186
41187 * lang-specs.h: Process nostdlib as nostdinc
41188
41189 * back_end.adb: Update Copyright notice
41190 (Scan_Compiler_Arguments): Process -nostdlib directly.
41191
411922003-12-03 Jose Ruiz <ruiz@act-europe.fr>
41193
fbf3e0dd 41194 * Makefile.in:
efdfd311
AC
41195 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
41196 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
41197 included in HIE_NONE_TARGET_PAIRS.
41198
411992003-12-03 Ed Schonberg <schonberg@gnat.com>
41200
fbf3e0dd 41201 * sem_attr.adb:
efdfd311
AC
41202 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
41203 is legal in an instance, because legality is cheched in the template.
41204
fbf3e0dd 41205 * sem_prag.adb:
efdfd311
AC
41206 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
41207 appplied to an unchecked conversion of a formal parameter.
41208
fbf3e0dd 41209 * sem_warn.adb:
efdfd311
AC
41210 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
41211 variables.
41212
412132003-12-03 Olivier Hainque <hainque@act-europe.fr>
41214
41215 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
41216 routines. The second one is new functionality to deal with backtracing
41217 through signal handlers.
41218 (unwind): Split into the two separate subroutines above.
41219 Update the documentation, and deal properly with sizeof (REG) different
41220 from sizeof (void*).
41221
08aa9a4a
AC
412222003-12-01 Nicolas Setton <setton@act-europe.fr>
41223
41224 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
41225 so that the debugger can reliably access the value of the parameter,
41226 and therefore is able to display the exception name when an exception
41227 breakpoint is reached.
41228
412292003-12-01 Thomas Quinot <quinot@act-europe.fr>
41230
41231 * fmap.adb: Fix typo in warning message.
41232
41233 * g-socket.ads, g-socket.adb: Make Free a visible instance of
41234 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
41235
412362003-12-01 Vincent Celier <celier@gnat.com>
41237
41238 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
41239 ther is no Afile.
41240 (Build_Library): Get the switches only if Default_Switches is declared
41241 in package Binder.
41242
412432003-12-01 Ed Schonberg <schonberg@gnat.com>
41244
41245 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
41246 actuals that are indexed components, reanalyze actual to ensure that
41247 packed array references are properly expanded.
41248
41249 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
41250 attempted assignment to a discriminant.
41251
412522003-12-01 Robert Dewar <dewar@gnat.com>
41253
41254 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
41255 reformatting.
41256
41257 * switch-c.adb: Minor reformatting of comments
41258
412592003-12-01 Arnaud Charlet <charlet@act-europe.fr>
41260
41261 * Makefile.in: Clean ups.
41262
412632003-12-01 GNAT Script <nobody@gnat.com>
41264
41265 * Make-lang.in: Makefile automatically updated
41266
c6135994
AC
412672003-12-01 Arnaud Charlet <charlet@act-europe.fr>
41268
41269 * 5wsystem.ads: Disable zero cost exception, not ready yet.
41270
51a30506
UW
412712003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
41272
41273 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
41274 to force serialization.
41275
81a5b587
AC
412762003-11-26 Thomas Quinot <quinot@act-europe.fr>
41277
fbf3e0dd 41278 * g-socket.ads, g-socket.adb:
81a5b587
AC
41279 Clarify documentation of function Stream. Introduce a Free procedure
41280 to release the returned Stream once it becomes unused.
41281
41282 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
41283
412842003-11-26 Arnaud Charlet <charlet@act-europe.fr>
41285
41286 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
41287 since NT 4 cannot handle timeout values that are too large,
41288 e.g. DWORD'Last - 1.
41289
412902003-11-26 Ed Schonberg <schonberg@gnat.com>
41291
fbf3e0dd 41292 * exp_ch4.adb:
81a5b587
AC
41293 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
41294 in procedure calls and whose expansion must be deferred.
41295
41296 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
41297 is in exp_ch4.
41298
fbf3e0dd 41299 * sem_ch3.adb:
81a5b587
AC
41300 (Build_Derived_Array_Type): Create operator for unconstrained type
41301 if ancestor is unconstrained.
41302
413032003-11-26 Vincent Celier <celier@gnat.com>
41304
41305 * make.adb (Project_Object_Directory): New global variable
41306 (Change_To_Object_Directory): New procedure
41307 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
41308 of Change_Dir directly. Do not change working directory to object
41309 directory of main project after each compilation.
41310 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
41311 directly.
41312 Change to object directory of main project before binding step.
41313 (Initialize): Initialize Project_Object_Directory to No_Project
41314
fbf3e0dd 41315 * mlib-prj.adb:
81a5b587
AC
41316 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
41317 binding a Stand-Alone Library.
41318
41319 * output.adb: Update Copyright notice
41320 (Write_Char): Output buffer when full
41321
413222003-11-26 Robert Dewar <dewar@gnat.com>
41323
41324 * sem_ch13.adb: (Check_Size): Reset size if size is too small
41325
fbf3e0dd 41326 * sem_ch13.ads:
81a5b587
AC
41327 (Check_Size): Fix documentation to include bit-packed array case
41328
41329 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
41330
41331 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
41332
41333 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
41334
9e94c78f 413352003-11-24 Arnaud Charlet <charlet@act-europe.fr>
d4c47b51
AC
41336
41337 PR ada/13142
41338 * utils.c (init_gigi_decls): Change name of built-in setjmp to
41339 __builtin_setjmp, since this is apparently needed by recent
41340 non Ada changes.
41341
7677e9e0
RO
413422003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41343
d4c47b51 41344 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
41345 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
41346
6c1e24d3
AC
413472003-11-24 Jose Ruiz <ruiz@act-europe.fr>
41348
fbf3e0dd 41349 * Makefile.in:
6c1e24d3
AC
41350 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
41351 signals and interrupts.
41352
41353 * 5zintman.ads: New File.
41354
41355 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
41356 add exception signals to the set of unmasked signals.
41357
fbf3e0dd 41358 * 5ztaprop.adb:
6c1e24d3
AC
41359 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
41360 between signals and interrupts.
41361 Add to Unblocked_Signal_Mask the set of signals that are in
41362 Keep_Unmasked.
41363
fbf3e0dd 41364 * 7sinmaop.adb:
6c1e24d3
AC
41365 Adding a check to see whether the Interrupt_ID we want to unmask is in
41366 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
41367 reason is that the index type of the Keep_Unmasked array is not always
41368 Interrupt_ID; it may be a subtype of Interrupt_ID.
41369
413702003-11-24 Gary Dismukes <dismukes@gnat.com>
41371
fbf3e0dd 41372 * exp_util.adb:
6c1e24d3
AC
41373 (Remove_Side_Effects): Condition constantness of object created for a
41374 an unchecked type conversion on the constantness of the expression
41375 to ensure the correct value for 'Constrained when passing components
41376 of view-converted class-wide objects.
41377
413782003-11-24 Robert Dewar <dewar@gnat.com>
41379
41380 * par-load.adb (Load): Improve handling of misspelled and missing units
41381 Removes several cases of compilation abandoned messages
41382
41383 * lib.adb: (Remove_Unit): New procedure
41384
41385 * lib.ads: (Remove_Unit): New procedure
41386
41387 * lib-load.adb: Minor reformatting
41388
413892003-11-24 Vincent Celier <celier@gnat.com>
41390
fbf3e0dd 41391 * make.adb:
6c1e24d3
AC
41392 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
41393 (Marking_Label): Label to mark processed source files. Incremented for
41394 each executable.
41395 (Gnatmake): Increase Marking_Labet for each executable
41396 (Is_Marked): Compare against marking label
41397 (Mark): Mark with marking label
41398
413992003-11-24 Jerome Guitton <guitton@act-europe.fr>
41400
fbf3e0dd 41401 * s-thread.ads:
6c1e24d3
AC
41402 Move the declaration of the TSD for System.Threads to System.Soft_Links.
41403 Add some comments.
41404
41405 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
41406 (rts-cert): build a single relocatable object for the run-time lib.
41407 Fix perms.
41408
414092003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
41410
fbf3e0dd 41411 * Make-lang.in:
6c1e24d3
AC
41412 Use gnatls rather than gcc to obtain the location of GNAT RTL for
41413 crosstools build.
41414
414152003-11-24 Sergey Rybin <rybin@act-europe.fr>
41416
41417 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
41418 can not use it as before (that is, as a variable) when dumping it into
41419 the tree file. Add a local variable to store the result of this
41420 function and to be used as the string to be written into the tree.
41421
41422 * scn.adb (Initialize_Scanner): Add comments explaining the recent
41423 changes.
41424
41425 * sinput.adb (Source_First, Source_Last): In case of
41426 Internal_Source_File, replace returning attributes of
41427 Internal_Source_Ptr (which is wrong) with returning attributes of
41428 Internal_Source.
41429
414302003-11-24 Ed Schonberg <schonberg@gnat.com>
41431
fbf3e0dd 41432 * sem_ch3.adb:
6c1e24d3
AC
41433 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
41434 used for implicit concatenation operators.
41435 Code cleanup.
41436
fbf3e0dd 41437 * sem_elab.adb:
6c1e24d3
AC
41438 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
41439 task bodies that are in the scope of a Suppress pragma.
41440 (Check_A Call): Use the flag to prevent spurious elaboration checks.
41441
fbf3e0dd 41442 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
41443 New flag No_Elaboration_Check on function/procedure calls, to properly
41444 suppress checks on calls in task bodies that are within a local suppress
41445 pragma.
41446
fbf3e0dd 41447 * exp_ch4.adb:
6c1e24d3
AC
41448 (Expand_Concatenate_Other): Use the proper integer type for the
41449 expression for the upper bound, to avoid universal_integer computations
41450 when possible.
41451
6f2aeb72
KC
414522003-11-21 Kelley Cook <kcook@gcc.gnu.org>
41453
41454 * .cvsignore: Delete.
41455
e9f85cd6
AS
414562003-11-21 Andreas Schwab <schwab@suse.de>
41457
41458 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
41459
4e074baf
VF
414602003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
41461
41462 * 5wsystem.ads: Enable zero cost exception.
41463
f1f9fe30
AC
414642003-11-21 Jerome Guitton <guitton@act-europe.fr>
41465
41466 * 5ztiitho.adb: Remove an unreferenced variable.
41467
414682003-11-21 Thomas Quinot <quinot@act-europe.fr>
41469
41470 * adaint.c: For FreeBSD, use mkstemp.
41471
414722003-11-21 Arnaud Charlet <charlet@act-europe.fr>
41473
41474 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
41475
414762003-11-21 Robert Dewar <dewar@gnat.com>
41477
41478 * bld.adb: Remove useless USE of gnatvsn
41479
41480 * gnatchop.adb: Minor reformatting
41481 Clean up version handling to be more consistent
41482
41483 * gnatxref.adb: Minor reformatting
41484
41485 * gprcmd.adb: Minor reformatting
41486 Fix output of copyright to be more consistent with other tools
41487
414882003-11-21 Vincent Celier <celier@gnat.com>
41489
41490 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
41491
414922003-11-21 Sergey Rybin <rybin@act-europe.fr>
41493
41494 * atree.adb (Initialize): Add initializations for global variables
41495 used in New_Copy_Tree.
41496
41497 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
41498 Internal_Source_File as the actual).
41499 Put the set of statements creating Any_Character before the set of
41500 statements creating Any_Array to have Any_Character fully initialized
41501 when it is used in creating Any_Array.
41502
41503 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
41504 not call Scan in case if the actual is Internal_Source_File
41505 Add 2003 to copyright note.
41506
41507 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
41508 processing Internal_Source_File.
41509
41510 * types.ads: Add the constant Internal_Source_File representing the
41511 source buffer for artificial source-code-like strings created within
41512 the compiler (the definition of Source_File_Index is changed).
41513
c5b2a8ae
AC
415142003-11-20 Arnaud Charlet <charlet@act-europe.fr>
41515
41516 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
41517 56system.ads: New file, FreeBSD version.
41518
a03ad584
JM
415192003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
41520
41521 * Make-lang.in (ada.extraclean): Delete.
41522
19f0526a
AC
415232003-11-19 Arnaud Charlet <charlet@act-europe.fr>
41524
41525 * gnatmem.adb: Clean up verbose output.
41526
41527 * gprcmd.adb: Change copyright to FSF.
41528
415292003-11-19 Vincent Celier <celier@gnat.com>
41530
41531 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
41532 and Version (ignored).
41533
41534 * symbols.ads: (Policy): New type
41535 (Initialize): New parameter Reference, Symbol_Policy and
41536 Library_Version.
41537 Remove parameter Force.
41538 Minor reformatting.
41539
41540 * snames.ads, snames.adbadb: New standard names
41541 Library_Reference_Symbol_File and Library_Symbol_Policy
41542
fbf3e0dd 41543 * mlib-prj.adb:
19f0526a
AC
41544 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
41545 project.
41546
fbf3e0dd 41547 * mlib-tgt.adb:
19f0526a
AC
41548 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
41549
41550 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
41551
41552 * prj.adb: (Project_Empty): New component Symbol_Data
41553
41554 * prj.ads: (Policy, Symbol_Record): New types
41555 (Project_Data): New component Symbol_Data
41556
fbf3e0dd 41557 * prj-attr.adb:
19f0526a
AC
41558 New attributes Library_Symbol_File, Library_Symbol_Policy and
41559 Library_Reference_Symbol_File.
41560
fbf3e0dd 41561 * prj-nmsc.adb:
19f0526a
AC
41562 (Ada_Check): When project is a Stand-Alone library project, process
41563 attribute Library_Symbol_File, Library_Symbol_Policy and
41564 Library_Reference_Symbol_File.
41565
41566 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41567 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
41568 5sml-tgt.adb (Build_Dynamic_Library): New parameter
41569 Symbol_Data (ignored).
41570
41571 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
41572 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
41573 functions Option_File_Name and Version_String. Set new options of
41574 gnatsym related to symbol file, symbol policy and reference symbol
41575 file.
41576
fbf3e0dd 41577 * 5vsymbol.adb:
19f0526a
AC
41578 Extensive modifications to take into account the reference symbol file,
41579 the symbol policy, the library version and to put in the symbol file the
41580 minor and major IDs.
41581
41582 * bld.adb (Process_Declarative_Items): Put second argument of
41583 gprcmd to_absolute between single quotes, to avoid problems with
41584 Windows.
41585
41586 * bld-io.adb: Update Copyright notice.
41587 (Flush): Remove last character of a line, if it is a back slash, to
41588 avoid make problems.
41589
fbf3e0dd 41590 * gnatsym.adb:
19f0526a
AC
41591 Implement new scheme with reference symbol file and symbol policy.
41592
41593 * g-os_lib.ads: (Is_Directory): Clarify comment
41594
415952003-11-19 Robert Dewar <dewar@gnat.com>
41596
41597 * atree.adb: Move New_Copy_Tree global variables to head of package
41598
41599 * errout.adb: Minor reformatting
41600
416012003-11-19 Javier Miranda <miranda@gnat.com>
41602
41603 * sem_ch4.adb: (Diagnose_Call): Improve error message.
41604 Add reference to Ada0Y (AI-50217)
41605
41606 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
41607 sem_util.adb: Add reference to AI-50217
41608
41609 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
41610
41611 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
41612
41613 * sem_aggr.adb: Complete documentation of AI-287 changes
41614
41615 * par-ch4.adb: Document previous changes.
41616
41617 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
41618 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
41619 Ada0Y (AI-50217)
41620
41621 * exp_aggr.adb: Add references to AI-287 in previous changes
41622
416232003-11-19 Ed Schonberg <schonberg@gnat.com>
41624
fbf3e0dd 41625 * exp_ch6.adb:
19f0526a
AC
41626 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
41627 in the rewriting is the result of an inlined call.
41628
41629 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
41630 parameter is a type conversion, use original node to construct the
41631 post-call assignment, because expression may have been rewritten, e.g.
41632 if it is a packed array.
41633
fbf3e0dd 41634 * sem_attr.adb:
19f0526a
AC
41635 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
41636 body, just as it is in an instance.
41637 Categorization routines
41638
41639 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
41640 Instantiate_Object): Set proper sloc reference for message on missing
41641 actual.
41642
416432003-11-19 Thomas Quinot <quinot@act-europe.fr>
41644
41645 * Makefile.in: Add FreeBSD libgnat pairs.
41646
41647 * usage.adb: Fix typo in usage message.
41648
416492003-11-19 Jerome Guitton <guitton@act-europe.fr>
41650
41651 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
41652 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
41653 pragma Thread_Body.
41654 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
41655
41656 * s-thread.adb: This file is now a dummy implementation of
41657 System.Thread.
41658
416592003-11-19 Sergey Rybin <rybin@act-europe.fr>
41660
41661 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
41662
416632003-11-19 Emmanuel Briot <briot@act-europe.fr>
41664
41665 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41666 instanciation references in the parent type description.
41667
0d77ab84
AC
416682003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41669
41670 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
41671
41672 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
41673 TYPE_PRECISION directly from esize.
41674
416752003-11-18 Thomas Quinot <quinot@act-europe.fr>
41676
fbf3e0dd 41677 * cstreams.c:
0d77ab84
AC
41678 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
41679
41680 * init.c: Initialization routines for FreeBSD
41681
41682 * link.c: Link info for FreeBSD
41683
41684 * sysdep.c: Add the case of FreeBSD
41685
cb7a5092
AC
416862003-11-17 Jerome Guitton <guitton@act-europe.fr>
41687
41688 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
41689 already called in System.Threads.
41690
41691 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
41692 environment task, as it has been moved to System.Threads.Initialization.
41693
416942003-11-17 Arnaud Charlet <charlet@act-europe.fr>
41695
41696 * adaint.c (__gnatlib_install_locks): Only reference
41697 __gnat_install_locks on VMS, since other platforms can avoid using
41698 --enable-threads=gnat
41699
417002003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41701
41702 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
41703
41704 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
41705 TYPE_PACKED_ARRAY_TYPE_P.
41706 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
41707
41708 Part of PR ada/12806
41709 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
41710 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
41711
417122003-11-17 Vincent Celier <celier@gnat.com>
41713
41714 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
41715 to False.
41716 Do not set exit status to Failure when Warning is True.
41717 (Gnatchop): Make errors "no compilation units found" and
41718 "no source files written" warnings only.
41719
41720 * make.adb (Gnatmake): When using a project file, set
41721 Look_In_Primary_Dir to False.
41722 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
41723 and Local_Configuration_Pragmas in the project where they are declared
41724 not an extending project which might have inherited them.
41725
41726 * osint.adb (Locate_File): If Name is already an absolute path, do not
41727 look for a directory.
41728
41729 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
41730 -gnats (Check_Syntax) is used, issue only a warning, not an error.
41731
41732 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
41733 in objects of type Variable_Value.
41734
41735 * prj.ads: (Variable_Value): New component Project
41736
41737 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
41738 is in a project extended by Project.
41739
41740 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
41741 Project of Variable_Values to this new parameter value.
41742 (Expression): Set component Project of Variable_Values.
41743 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
41744 Set the component Project in array elements.
41745
417462003-11-17 Sergey Rybin <rybin@act-europe.fr>
41747
41748 * errout.adb: (Initialize): Add initialization for error nodes.
41749
41750 * sem_ch12.adb (Initialize): Add missing initializations for
41751 Exchanged_Views and Hidden_Entities.
41752
417532003-11-17 Ed Schonberg <schonberg@gnat.com>
41754
41755 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
41756 already instantiated tree for use in subsequent inlining.
41757 (Analyze_Associations, Instantiate_Formal_Subprogram,
41758 Instantiate_Object): improve error message for mismatch in
41759 instantiations.
41760
41761 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
41762 instantiations of subprograms declared in instances.
41763
417642003-11-17 Javier Miranda <miranda@gnat.com>
41765
41766 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
41767 executed only under the Extensions_Allowed flag.
41768
417692003-11-17 Robert Dewar <dewar@gnat.com>
41770
41771 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
41772 zeroes suppressed.
41773 (Address_Image): Fix bug of returning 0x instead of 0x0
41774 Minor reformatting (function specs).
41775
41776 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
41777 (missed case of 33-63)
41778
41779 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
41780
41781 * s-thread.adb: Add comments for pragma Restriction
41782
41783 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
41784 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
41785
417862003-11-17 Ed Falis <falis@gnat.com>
41787
41788 * s-thread.adb: Added No_Tasking restriction for this implementation.
41789
417902003-11-17 Emmanuel Briot <briot@act-europe.fr>
41791
41792 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
41793 instanciation references in the parent type description.
41794
417952003-11-17 GNAT Script <nobody@gnat.com>
41796
41797 * Make-lang.in: Makefile automatically updated
41798
7d60db05
JM
417992003-11-16 Jason Merrill <jason@redhat.com>
41800
41801 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
41802 and TAGS files that include them for each front end.
41803
c0040397
AJ
418042003-11-14 Andreas Jaeger <aj@suse.de>
41805
a477ab83 41806 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 41807 is the canonical version.
a477ab83
AJ
41808 * misc.c (gnat_handle_option): Likewise.
41809
c0040397
AJ
41810 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
41811
41812 * 5nsystem.ads: New file for x86_64-linux-gnu.
41813
95a6aaf9
AC
418142003-11-14 Arnaud Charlet <charlet@act-europe.fr>
41815
262cc585 41816 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 41817
4a4fe537
AC
41818 * comperr.adb: Fix logic in previous change.
41819
65356e64
AC
418202003-11-13 Vincent Celier <celier@gnat.com>
41821
41822 * 5bml-tgt.adb (Build_Dynamic_Library): Use
41823 Osint.Include_Dir_Default_Prefix instead of
41824 Sdefault.Include_Dir_Default_Name.
41825
41826 * gnatlbr.adb: Update Copyright notice
41827 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
41828 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
41829 instead of Sdefault.Object_Dir_Default_Name
41830
c0040397 41831 * gnatlink.adb:
65356e64
AC
41832 (Process_Binder_File): Never suppress the option following -Xlinker
41833
c0040397 41834 * mdll-utl.adb:
65356e64
AC
41835 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
41836 Sdefault.Object_Dir_Default_Name.
41837
c0040397 41838 * osint.ads, osint.adb:
65356e64
AC
41839 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
41840 Minor reformatting.
41841
41842 * vms_conv.ads: Minor reformating
41843 Remove GNAT STANDARD and GNAT PSTA
41844
c0040397 41845 * vms_conv.adb:
65356e64
AC
41846 Allow GNAT MAKE to have several files on the command line.
41847 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
41848 Sdefault.Object_Dir_Default_Name.
41849 Minor Reformating
41850 Remove data for GNAT STANDARD
41851
c0040397 41852 * vms_data.ads:
65356e64
AC
41853 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
41854 Remove data for GNAT STANDARD
41855 Remove options and documentation for -gnatwb/-gnatwB: these warning
41856 options no longer exist.
41857
418582003-11-13 Ed Falis <falis@gnat.com>
41859
41860 * 5zthrini.adb: (Init_RTS): Made visible
41861
c0040397 41862 * 5zthrini.adb:
65356e64
AC
41863 (Register): Removed unnecessary call to taskVarGet that checked whether
41864 an ATSD was already set as a task var for the argument thread.
41865
c0040397 41866 * s-thread.adb:
65356e64
AC
41867 Updated comment to reflect that this is a VxWorks version
41868 Added context clause for System.Threads.Initialization
41869 Added call to System.Threads.Initialization.Init_RTS
41870
418712003-11-13 Jerome Guitton <guitton@act-europe.fr>
41872
c0040397 41873 * 5zthrini.adb:
65356e64
AC
41874 (Init_RTS): New procedure, for the initialization of the run-time lib.
41875
c0040397 41876 * s-thread.adb:
65356e64
AC
41877 Remove dependancy on System.Init, so that this file can be used in the
41878 AE653 sequential run-time lib.
41879
418802003-11-13 Robert Dewar <dewar@gnat.com>
41881
41882 * bindgen.adb: Minor reformatting
41883
418842003-11-13 Ed Schonberg <schonberg@gnat.com>
41885
c0040397 41886 * checks.adb:
65356e64
AC
41887 (Apply_Discriminant_Check): Do no apply check if target type is derived
41888 from source type with no applicable constraint.
41889
c0040397 41890 * lib-writ.adb:
65356e64
AC
41891 (Ensure_System_Dependency): Do not apply the style checks that may have
41892 been specified for the main unit.
41893
c0040397 41894 * sem_ch8.adb:
65356e64
AC
41895 (Find_Selected_Component): Further improvement in error message, with
41896 RM reference.
41897
c0040397 41898 * sem_res.adb:
65356e64
AC
41899 (Resolve): Handle properly the case of an illegal overloaded protected
41900 procedure.
41901
419022003-11-13 Javier Miranda <miranda@gnat.com>
41903
c0040397 41904 * exp_aggr.adb:
65356e64
AC
41905 (Has_Default_Init_Comps): New function to check the presence of
41906 default initialization in an aggregate.
41907 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
41908 extension aggregate of a limited record. In addition, a new formal
41909 was added to do not initialize the record controller (if any) during
41910 this recursive expansion of ancestors.
41911 (Init_Controller): Add support for limited record components.
41912 (Expand_Record_Aggregate): In case of default initialized components
41913 convert the aggregate into a set of assignments.
41914
41915 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
41916 describing the new syntax.
41917 Nothing else needed to be done because this subprogram delegates part of
41918 its work to P_Precord_Or_Array_Component_Association.
41919 (P_Record_Or_Array_Component_Association): Give support to the new
41920 syntax for default initialization of components.
41921
c0040397 41922 * sem_aggr.adb:
65356e64
AC
41923 (Resolve_Aggregate): Relax the strictness of the frontend in case of
41924 limited aggregates.
41925 (Resolve_Record_Aggregate): Give support to default initialized
41926 components.
41927 (Get_Value): In case of default initialized components, duplicate
41928 the corresponding default expression (from the record type
41929 declaration). In case of default initialization in the *others*
41930 choice, do not check that all components have the same type.
41931 (Resolve_Extension_Aggregate): Give support to limited extension
41932 aggregates.
41933
c0040397 41934 * sem_ch3.adb:
65356e64
AC
41935 (Check_Initialization): Relax the strictness of the front-end in case
41936 of aggregate and extension aggregates. This test is now done in
41937 Get_Value in a per-component manner.
41938
41939 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
41940 expression corresponds to a limited aggregate. This test is now done
41941 in Get_Value.
41942
41943 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
41944 Box_Present flag.
41945
41946 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
41947 present in an N_Component_Association node
41948
419492003-11-13 Thomas Quinot <quinot@act-europe.fr>
41950
41951 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
41952 type-conformant entry only if they are homographs.
41953
419542003-11-13 GNAT Script <nobody@gnat.com>
41955
41956 * Make-lang.in: Makefile automatically updated
41957
49add53f
RO
419582003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41959
41960 * adadecode.c: Use <> form of include for ctype.h.
41961 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
41962
94bae1cc
RO
419632003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41964
41965 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
41966 Works around PR middle-end/6552.
41967
463f452c
AC
419682003-11-10 Ed Falis <falis@gnat.com>
41969
41970 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
41971
41972 * 5zinit.adb: (Install_Handler): Moved back to spec
41973 (Install_Signal_Handlers): Deleted
41974
41975 * 5zthrini.adb: Added context clause for System.Storage_Elements
41976 (Register): Only handles creation of taskVar; initialization moved to
41977 Thread_Body_Enter.
41978 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
41979 Added declaration of environment task secondary stack and
41980 initialization.
41981
41982 * s-thread.adb: Implement bodies for thread body processing
41983
c0040397 41984 * s-thread.ads:
463f452c
AC
41985 Added comment identifying supported targets for pragma Thread_Body.
41986
419872003-11-10 Pascal Obry <obry@gnat.com>
41988
41989 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
41990 GNAT_MAX_PATH_LEN.
41991
c0040397 41992 * s-fileio.adb:
463f452c
AC
41993 (Open): Properly check for string length before copying into the buffer.
41994 Raises Name_Error if buffer is too small. Note that this was a potential
41995 buffer overflow.
41996
419972003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
41998
41999 * bindgen.adb, comperr.adb: Code clean ups.
42000 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
42001
420022003-11-10 Sergey Rybin <rybin@act-europe.fr>
42003
42004 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
42005
420062003-11-10 Vincent Celier <celier@gnat.com>
42007
c0040397 42008 * gprcmd.adb:
463f452c
AC
42009 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
42010 installation.
42011
42012 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
42013
42014 * prj.adb: (Project_Empty): Add new boolean component Virtual
42015
42016 * prj.ads: (Virtual_Prefix): New constant string
42017 (Project_Data): New boolean component Virtual
42018
42019 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
42020 a library project is extended by a virtual extending project.
42021
c0040397 42022 * prj-part.adb:
463f452c
AC
42023 Modifications throughout to implement extending-all project, including:
42024 (Virtual_Hash, Processed_Hash): New hash tables
42025 (Create_Virtual_Extending_Project): New procedure
42026 (Look_For_Virtual_Projects_For): New procedure
42027
c0040397 42028 * prj-proc.adb:
463f452c
AC
42029 (Process): After checking the projects, if main project is an
42030 extending-all project, set the object directory of all virtual extending
42031 project to the object directory of the main project.
42032 Adjust error message when a virtual extending project has the same
42033 object directory as an project being extended.
42034 (Recursive_Process): If name starts with the virtual prefix, set Virtual
42035 to True in the project data.
42036
c0040397 42037 * prj-tree.adb:
463f452c
AC
42038 (Default_Project_Node): Add new boolean component Extending_All
42039 (Is_Extending_All): New function
42040 (Set_Is_Extending_All): New procedure
42041
42042 * prj-tree.ads: (Is_Extending_All): New function
42043 (Set_Is_Extending_All): New procedure
42044 (Project_Node_Record): New boolean component Extending_All
42045
42046 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
42047
c0040397 42048 * vms_data.ads:
463f452c
AC
42049 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
42050
42051 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
42052 "gprcmd prefix" to define it.
42053
420542003-11-10 Thomas Quinot <quinot@act-europe.fr>
42055
42056 * einfo.ads: Fix a typo and remove an extraneous word in comments.
42057
c0040397 42058 * lib-load.adb:
463f452c
AC
42059 (Create_Dummy_Package_Unit): Set the scope of the entity for the
42060 created dummy package to Standard_Standard, not to itself, to
42061 defend other parts of the front-end against encoutering a cycle in
42062 the scope chain.
42063
c0040397 42064 * sem_ch10.adb:
463f452c
AC
42065 (Analyze_With_Clause): When setting the entities for the successive
42066 N_Expanded_Names that constitute the name of a child unit, do not
42067 attempt to go further than Standard_Standard in the chain of scopes.
42068 This case arises from the placeholder units created by
42069 Create_Dummy_Package_Unit in the case of a with_clause for a
42070 nonexistent child unit.
42071
420722003-11-10 Ed Schonberg <schonberg@gnat.com>
42073
c0040397 42074 * exp_ch6.adb:
463f452c
AC
42075 (Expand_Thread_Body): Place subprogram on scope stack, so that new
42076 declarations are given the proper scope.
42077
c0040397 42078 * sem_ch13.adb:
463f452c
AC
42079 (Check_Expr_Constants): Reject an expression that contains a constant
42080 created during expansion, and that appears after the object to which
42081 the address clause applies.
42082
42083 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
42084 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
42085 that uses 'Range of a function call with controlled components, so
42086 that the function result can be finalized before starting the loop.
42087
c0040397 42088 * sem_ch8.adb:
463f452c
AC
42089 (Find_Selected_Component): Improve error message when prefix is
42090 an implicit dereference of an incomplete type.
42091
420922003-11-10 Robert Dewar <dewar@gnat.com>
42093
42094 * opt.ads: New Print_Standard flag for -gnatS switch
42095
42096 * sem_ch13.adb: Remove some additional checks for unaligned arrays
42097
42098 * cstand.adb (Create_Standard): Print out package standard if -gnatS
42099 switch set
42100
42101 * debug.adb: Update doc for -gnatds to discuss relationship with new
42102 -gnatS flag
42103
42104 * sinfo.adb: Add new field Entity_Or_Associated_Node
42105
42106 * sinfo.ads: Add new field Entity_Or_Associated_Node
42107 Update documentation for Associated_Node and Entity fields to clarify
42108 relationship and usage.
42109
c0040397 42110 * sprint.adb:
463f452c
AC
42111 (Write_Id): Properly process Associated_Node field in generic template
42112
c0040397 42113 * switch-c.adb:
463f452c
AC
42114 Recognize new -gnatS switch for printing package Standard
42115 This replaces gnatpsta
42116
c0040397 42117 * usage.adb:
463f452c
AC
42118 Add line for new -gnatS switch for printing package Standard
42119 This replaces gnatpsta
42120
c77c5f2e
AJ
421212003-11-10 Andreas Jaeger <aj@suse.de>
42122
42123 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
42124 integer.
42125
5c90f17f
AC
421262003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42127
42128 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
42129 by gnat1.
42130
139f0d1e
AC
421312003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42132
42133 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
42134 no longer needed.
42135
42136 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
42137
42138 * sysdep.c: Add handling of cygwin.
42139
f3e4c05c
GS
421402003-11-10 GNAT Script <nobody@gnat.com>
42141
42142 * Make-lang.in: Makefile automatically updated
42143
2cdc8909
AC
421442003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42145
42146 PR 12950
42147 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
42148 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
42149 Replace GNAT_ROOT by GCC_ROOT.
42150
42151 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
42152
37783865
ZW
421532003-11-06 Zack Weinberg <zack@codesourcery.com>
42154
42155 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
42156 and update for changed meaning of GET_MODE_BITSIZE.
42157
6bc1c519
AC
421582003-11-04 Doug Rupp <rupp@gnat.com>
42159
42160 * sysdep.c: Problem discovered during IA64 VMS port.
42161 [VMS] #include <unixio.h> to get proper prototypes.
42162
37783865 42163 * adaint.c:
6bc1c519
AC
42164 Issues discovered/problems fixed during IA64 VMS port.
42165 [VMS] #define _POSIX_EXIT for proper semantics.
42166 [VMS] #include <unixio.h> for proper prototypes.
42167 [VMS] (fork): #define IA64 version.
42168 (__gnat_os_exit): Remove unnecessary VMS specific code.
42169
421702003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42171
42172 Part of PR ada/12806
6bc1c519
AC
42173 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
42174 tree, not integer.
42175
37783865 42176 * decl.c:
6bc1c519
AC
42177 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
42178 not integer.
42179
42180 * targtyps.c, decl.c, misc.c,
42181 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
42182 routines to work around change in FP sizing semantics in GCC.
42183
37783865 42184 * utils.c:
6bc1c519
AC
42185 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
42186
42187 * gigi.h: (enumerate_modes): New function.
42188
42189 * Make-lang.in: (ada/misc.o): Add real.h.
42190
42191 * misc.c: (enumerate_modes): New function.
42192
421932003-11-04 Robert Dewar <dewar@gnat.com>
42194
42195 * 3vtrasym.adb: Minor reformatting
42196 Use terminology encoded/decoded name, rather than C++ specific notion
42197 of mangling (this is the terminology used throughout GNAT).
42198
42199 * einfo.h: Regenerated
42200
42201 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
42202
37783865 42203 * exp_ch6.adb:
6bc1c519
AC
42204 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
42205
42206 * par-prag.adb: Add dummy entry for Thread_Body pragma
42207
37783865 42208 * rtsfind.ads:
6bc1c519
AC
42209 Add entries for System.Threads entities for thread body processing
42210
37783865 42211 * sem_attr.adb:
6bc1c519
AC
42212 (Analyze_Pragma, Access attributes): Check these are not applied to a
42213 thread body, since this is not permitted
42214
42215 * sem_prag.adb: Add processing for Thread_Body pragma.
42216 Minor comment fix.
42217
37783865 42218 * sem_res.adb:
6bc1c519
AC
42219 (Resolve_Call): Check for incorrect attempt to call a thread body
42220 procedure with a direct call.
42221
42222 * snames.ads, snames.adb: Add entry for Thread_Body pragma
42223 Add names associated with thread body expansion
42224
42225 * snames.h: Add entry for Thread_Body pragma
42226
42227 * s-thread.adb: Add entries for thread body processing
42228 These are dummy bodies so far
42229
42230 * s-thread.ads: Add documentation on thread body handling.
42231 Add entries for thread body processing.
42232
422332003-11-04 Javier Miranda <miranda@gnat.com>
42234
37783865 42235 * sem_ch10.adb:
6bc1c519
AC
42236 (Build_Limited_Views): Return after posting an error in case of limited
42237 with_clause on subprograms, generics, instances or generic renamings
42238 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
42239 on subprograms, generics, instances or generic renamings
42240
422412003-11-04 Arnaud Charlet <charlet@act-europe.fr>
42242
42243 * raise.c (setup_to_install): Correct mistake in last revision; two
42244 arguments out of order.
42245
42246 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
42247 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
42248 notice, missed in previous change.
42249 Remove trailing blanks and other style errors introduced in previous
42250 change.
42251
422522003-11-04 Olivier Hainque <hainque@act-europe.fr>
42253
42254 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
42255 rid of the wrapper for a LJM type, ensuring we don't do that if the
42256 field is addressable. This avoids potential low level type view
42257 mismatches later on, for instance in a by-reference argument passing
42258 process.
42259
422602003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42261
42262 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
42263 aligned at byte boundary.
42264
422652003-11-04 Joel Brobecker <brobecker@gnat.com>
42266
42267 * decl.c (components_to_record): Do not delete the empty variants from
42268 the end of the union type.
42269
422702003-11-04 Ed Schonberg <schonberg@gnat.com>
42271
42272 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
42273 operation for a derived type, an explicit declaration may use a local
42274 subtype of Boolean.
42275
422762003-11-04 Vincent Celier <celier@gnat.com>
42277
42278 * make.adb (Gnatmake): Allow main sources on the command line with a
42279 library project when it is only for compilation (no binding or
42280 linking).
42281
487e9fff
RO
422822003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42283
42284 * Makefile.in: Remove many duplicate variables.
42285
63069342
KC
422862003-11-03 Kelley Cook <kcook@gcc.gnu.org>
42287
42288 * Make-lang.in (dvi): Move targets to $(docobjdir).
42289 (gnat_ug_vms.dvi): Simplify rule and adjust target.
42290 (gnat_ug_wnt.dvi): Likewise.
42291 (gnat_ug_unx.dvi): Likewise.
42292 (gnat_ug_vxw.dvi): Likewise.
42293 (gnat_rm.dvi): Likewise.
42294 (gnat-style.dvi): Likewise.
42295
c2edc52b
KC
422962003-10-31 Kelley Cook <kcook@gcc.gnu.org>
42297
42298 * gigi.h: Missed commit from update for C90.
42299
14df9585
KC
423002003-10-31 Kelley Cook <kcook@gcc.gnu.org>
42301
42302 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
42303
acd8e984
AS
423042003-10-31 Andreas Schwab <schwab@suse.de>
42305
42306 * raise.c (get_action_description_for): Fix typo in last change.
42307
b2c62c45
NN
423082003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
42309
42310 PR ada/12761
42311 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
42312 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
42313
9373164a
KC
423142003-10-30 Kelley Cook <kcook@gcc.gnu.org>
42315
42316 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
42317 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
42318 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
42319 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
42320 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
42321
bde58e32
AC
423222003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
42323
37783865 42324 * 3vtrasym.adb:
bde58e32
AC
42325 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
42326 numbers when symbol name is too long.
42327
423282003-10-30 Ed Falis <falis@gnat.com>
42329
42330 * g-signal.ads, g-signal.adb: New files
42331
42332 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
42333
42334 * Makefile.rtl: Introduce GNAT.Signals
42335
423362003-10-30 Robert Dewar <dewar@gnat.com>
42337
42338 * freeze.adb: Minor reformatting
42339
42340 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
42341
37783865
ZW
42342 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
42343 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
42344 New handling of Id_Check parameter to improve recognition of keywords
42345 used as identifiers.
42346 Update copyright notice to include 2003
42347
657a9dd9
AC
423482003-10-29 Robert Dewar <dewar@gnat.com>
42349
42350 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
42351 sem_ch10.adb: Minor reformatting
42352
42353 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
42354 (Expand_Assign_Record): Test right hand side for bit unaligned as well
42355
423562003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
42357
37783865 42358 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
42359 Support for TBK$SYMBOLIZE-based symbolic traceback.
42360
423612003-10-29 Jose Ruiz <ruiz@act-europe.fr>
42362
37783865 42363 * exp_disp.adb:
657a9dd9
AC
42364 Revert previous change, that did not work well when pragma No_Run_Time
42365 was used in conjunction with a run-time other than ZFP.
42366
423672003-10-29 Vincent Celier <celier@gnat.com>
42368
37783865 42369 * make.adb:
657a9dd9
AC
42370 (Gnatmake): When there are no Ada mains in attribute Main, disable the
42371 bind and link steps only is switch -z is not used.
42372
423732003-10-29 Arnaud Charlet <charlet@act-europe.fr>
42374
42375 * Makefile.generic: Remove duplicated setting of CC.
42376
42377 * Makefile.prolog: Set CC to gcc by default, to override make's
42378 default (cc).
42379
42380 * einfo.h: Regenerated.
42381
423822003-10-29 Ed Schonberg <schonberg@gnat.com>
42383
42384 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
42385 current body, after compiling subunit.
42386
42387 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
42388 when in deleted code, because gigi needs properly ordered freeze
42389 actions to annotate types.
42390
42391 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
42392 prevent the premature freezing of record type that contains
42393 subcomponents with a private type that does not yet have a completion.
42394
423952003-10-29 Javier Miranda <miranda@gnat.com>
42396
37783865 42397 * sem_ch12.adb:
657a9dd9
AC
42398 (Analyze_Package_Instantiation): Check that instances can not be used in
42399 limited with_clauses.
42400
37783865 42401 * sem_ch8.adb:
657a9dd9
AC
42402 (Analyze_Package_Renaming): Check that limited withed packages cannot
42403 be renamed. Improve text on error messages related to limited
42404 with_clauses.
42405
42406 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
42407
42408 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
42409 Update copyright notice.
42410
42411 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
42412 (Install_Limited_Context_Clauses): New subprogram that isolates all the
42413 checks required for limited context_clauses and installs the limited
42414 view.
42415 (Install_Limited_Withed_Unit): Complete its documentation.
42416 (Analyze_Context): Check that limited with_clauses are only allowed in
42417 package specs.
42418 (Install_Context): Call Install_Limited_Context_Clauses after the
42419 parents have been installed.
42420 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
42421 package as 'From_With_Type'; this mark indicates that the limited view
42422 is installed. Used to check bad usages of limited with_clauses.
42423 (Build_Limited_Views): Do not add shadow entities to the scope's list
42424 of entities. Do not add real entities to the Non_Limited_Views chain.
42425 Improve error notification.
42426 (Remove_Context_Clauses): Remove context clauses in two phases:
42427 limited views first and regular views later (to maintain the
42428 stack model).
42429 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
42430 its visible entities.
42431
424322003-10-29 Thomas Quinot <quinot@act-europe.fr>
42433
42434 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
42435 with any type that Is_Fixed_Point_Type.
42436
42437 * sinfo.ads: Fix documentation for Associated_Node attribute.
42438
424392003-10-29 Sergey Rybin <rybin@act-europe.fr>
42440
42441 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
42442 both '-gnatc' and '-gnatt' are specified.
42443
42444 * atree.adb (Initialize): Add initialization for Node_Count (set to
42445 zero).
42446
424472003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42448
42449 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
42450 do not consider as Pure.
42451
42452 Part of implementation of function-at-a-time:
42453
42454 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
42455 (tree_transform): Add new argument to build_component_ref.
42456 (tree_transform, case N_Assignment_Statement): Make and return an
42457 EXPR_STMT.
42458 (tree_transform): If result IS_STMT, set flags and return it.
42459 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42460
42461 * utils2.c (build_simple_component_ref, build_component_ref): Add new
42462 arg, NO_FOLD_P.
42463 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
42464 (build_allocator): Likewise.
42465
42466 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
42467 Add new arg to build_component_ref.
42468 (maybe_unconstrained_array, unchecked_convert): Likewise.
42469
42470 * ada-tree.def (EXPR_STMT): New code.
42471
42472 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
42473
42474 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
42475 build_component_ref calls.
42476
42477 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
42478
42479 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42480 (build_component_ref): Add new argument, NO_FOLD_P.
42481
ecad994d
AC
424822003-10-27 Arnaud Charlet <charlet@act-europe.fr>
42483
42484 * Makefile.generic: Add missing substitution on object_deps handling.
42485
6f7f72f9 42486 PR ada/5909
ecad994d
AC
42487 * Make-lang.in (check-ada): Enable ACATS test suite.
42488
424892003-10-27 Robert Dewar <dewar@gnat.com>
42490
37783865 42491 * exp_ch3.adb:
ecad994d
AC
42492 (Freeze_Array_Type): We do not need an initialization routine for types
42493 derived from String or Wide_String. They should be treated the same
42494 as String and Wide_String themselves. This caused problems with the
42495 use of Initialize_Scalars.
42496
37783865 42497 * exp_ch5.adb:
ecad994d
AC
42498 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
42499 composites. This allows use of component clauses that are not byte
42500 aligned.
42501
37783865 42502 * sem_prag.adb:
ecad994d
AC
42503 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
42504 is an attempt to pack an array of atomic objects.
42505
42506 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
42507
425082003-10-27 Pascal Obry <obry@gnat.com>
42509
37783865 42510 * g-dirope.adb:
ecad994d
AC
42511 (Basename): Check for drive letters in a pathname only on DOS based OS.
42512
425132003-10-27 Vincent Celier <celier@gnat.com>
42514
37783865 42515 * make.adb:
ecad994d
AC
42516 (Gnatmake): When unable to change dir to the object dir, display the
42517 content of the parent dir of the obj dir, to try to understand why this
42518 happens.
42519
425202003-10-27 GNAT Script <nobody@gnat.com>
42521
42522 * Make-lang.in: Makefile automatically updated
42523
425242003-10-27 Ed Schonberg <schonberg@gnat.com>
42525
37783865 42526 * sem_ch12.adb:
ecad994d
AC
42527 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
42528 should not be done in Save/Restore_Scope_Stack, because it is performed
42529 locally.
42530
37783865 42531 * sem_ch8.adb:
ecad994d
AC
42532 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42533 whether use clauses should be removed/restored.
42534
37783865 42535 * sem_ch8.ads:
ecad994d
AC
42536 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42537 whether use clauses should be removed/restored.
42538
b6b3c138
AJ
425392003-10-26 Andreas Jaeger <aj@suse.de>
42540
42541 * Makefile.in: Remove duplicated lines.
42542
b6d83931
AC
425432003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42544
42545 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
42546 minimize the differences with ACT tree.
42547
42548 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
42549 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
42550 Gnatvsn.Gnat_Static_Version_String to reduce differences between
42551 ACT and FSF trees.
42552
425532003-10-24 Pascal Obry <obry@gnat.com>
42554
6f7f72f9 42555 PR ada/12014
b6d83931
AC
42556 * adadecode.c (ostrcpy): New function.
42557 (__gnat_decode): Use ostrcpy of strcpy.
42558 (has_prefix): Set first parameter a const.
42559 (has_suffix): Set first parameter a const.
42560 Update copyright notice. Fix source name in header.
42561 Removes a trailing space.
b6d83931
AC
42562
425632003-10-24 Jose Ruiz <ruiz@act-europe.fr>
42564
b6b3c138 42565 * exp_disp.adb:
b6d83931
AC
42566 Remove the test against being in No_Run_Time_Mode before generating a
42567 call to Register_Tag. It is redundant with the test against the
42568 availability of the function Register_Tag.
42569
425702003-10-24 Vincent Celier <celier@gnat.com>
42571
42572 * g-catiio.adb: (Month_Name): Correct spelling of February
42573
42574 * make.adb: (Mains): New package
42575 (Initialize): Call Mains.Delete
42576 (Gnatmake): Check that each main on the command line is a source of a
42577 project file and, if there are several mains, each of them is a source
42578 of the same project file.
42579 (Gnatmake): When a foreign language is specified in attribute Languages,
42580 no main is specified on the command line and attribute Mains is not
42581 empty, only build the Ada main. If there is no Ada main, just compile
42582 the Ada sources and their closure.
42583 (Gnatmake): If a main is specified on the command line with directory
42584 information, check that the source exists and, if it does, that the path
42585 is the actual path of a source of a project.
42586
b6b3c138 42587 * prj-env.adb:
b6d83931
AC
42588 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
42589 Full_Path is True, return the full path instead of the simple file name.
42590 (Project_Of): New function
42591
b6b3c138 42592 * prj-env.ads:
b6d83931
AC
42593 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
42594 defaulted to False.
42595 (Project_Of): New function
42596
425972003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42598
b6b3c138 42599 * Makefile.generic:
b6d83931
AC
42600 Ensure objects of main project are always checked and rebuilt if needed.
42601 Set CC to gcc by default.
42602 Prepare new handling of link by creating a global archive (not activated
42603 yet).
42604
42605 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42606 stringt.h: Update copyright notice. Remove trailing blanks.
42607 Fix source name in header.
42608
426092003-10-24 Robert Dewar <dewar@gnat.com>
42610
42611 * sem_ch12.adb: Minor reformatting
42612
b6b3c138 42613 * sem_ch3.adb:
b6d83931
AC
42614 Minor reformatting (including new function return style throughout)
42615
b6b3c138 42616 * sem_ch3.ads:
b6d83931
AC
42617 Minor reformatting (including new function return style throughout)
42618
426192003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42620
42621 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42622 stringt.h: Update copyright notice. Remove trailing blanks.
42623 Fix source name in header.
42624
426252003-10-24 GNAT Script <nobody@gnat.com>
42626
42627 * Make-lang.in: Makefile automatically updated
42628
b4e2d709
NN
426292003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
42630
42631 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
42632 stringt.h: Convert to ISO C90 declarations and definitions.
42633
9d7d51be
AC
426342003-10-23 Thomas Quinot <quinot@act-europe.fr>
42635
6f7f72f9 42636 PR ada/11978
9d7d51be
AC
42637 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
42638 External_Tag attribute definition clauses.
42639
426402003-10-23 Ed Schonberg <schonberg@gnat.com>
42641
6f7f72f9 42642 PR ada/7613
9d7d51be
AC
42643 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
42644 child unit, generate a fully qualified name to avoid spurious errors
42645 when the context contains renamings of different child units with
42646 the same simple name.
42647
42648 * exp_dbug.ads: Add documentation on name qualification for renamings
42649 of child units.
42650
426512003-10-23 Robert Dewar <dewar@gnat.com>
42652
42653 * g-regpat.ads, g-regpat.adb: Minor reformatting
42654
426552003-10-23 Jose Ruiz <ruiz@act-europe.fr>
42656
42657 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
42658
426592003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42660
42661 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
42662 Machine call.
42663
42664 * urealp.h: (Machine): Update to proper definition.
42665
6d244bbe
AC
426662003-10-23 Arnaud Charlet <charlet@act-europe.fr>
42667
42668 * init.c, adaint.c: Minor reformatting.
42669
8f4eb34b
DS
426702003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
42671
6d244bbe 42672 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
42673 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
42674 rather than t_create, t_access in call to GetFileTime. Use union
42675 to convert between FILETIME and unsigned long long.
42676 (__gnat_file_time_name): Test for invalid file handle.
42677 (__gnat_set_filetime_name): Support win32 targets using
42678 w32api SetFileTime.
42679
25412599
DS
426802003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
42681
42682 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
42683
42684 * ctrl_c.c (__gnat_int_handler): Remove declaration.
42685
42686 * decl.c (creat_concat_name): Const-ify prefix.
42687
42688 * adaint.c: Include ctype.h if __MINGW32__.
42689 (__gnat_readlink): Mark arguments as possibly unused.
42690 (__gnat_symlink): Likewise.
42691 (__gnat_is_symbolic_link): Likewise.
42692 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
42693 declaration
b6b3c138 42694 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
42695 not needed.
42696 (__gnat_is_absolute_path): Add parenthesis around condition of
42697 'if' statement to avoid warning.
42698 (__gnat_plist_init): Specify void as parameter.
42699 (plist_enter): Likewise.
42700 (plist_leave): Likewise.
42701 (remove_handle): Make static. Initialize prev.
42702
698a5e79
AC
427032003-10-22 Arnaud Charlet <charlet@act-europe.fr>
42704
6f7f72f9
EB
42705 PR ada/10110
42706 * Makefile.in: Disable build of gnatpsta.
698a5e79
AC
42707 * cstreams.c (__gnat_full_name): Minor improvements and clean up
42708 of previous change.
42709
e97c30aa
RO
427102003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42711
42712 * tracebak.c (MAX): Avoid redefinition warning.
42713
42714 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
42715 Change msg to const char *.
42716 (__gnat_install_handler): Remove ss, unused.
42717 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
42718 to const char *.
42719 * cstreams.c (__gnat_full_name): Declare p only when used.
42720 (__gnat_full_name) [sgi] Return buffer.
42721
65f1ebd1
AC
427222003-10-22 Arnaud Charlet <charlet@act-europe.fr>
42723
42724 * mingw32.h: New file.
0c644933
AC
42725 * gnat_wrapper.adb: New file.
42726
6d244bbe 427272003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
42728
42729 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
42730 string match a pre compiled regular expression (the corresponding
42731 version of the function working on a raw regular expression)
42732 Fix typos in various comments
42733 Update copyright notice in spec
42734
6d244bbe 427352003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 42736
b6b3c138 42737 * exp_ch3.adb:
0c644933
AC
42738 (Component_Needs_Simple_Initialization): Return False when the type is a
42739 packed bit array. Revise spec comments to document this case.
42740
b6b3c138 42741 * exp_prag.adb:
0c644933
AC
42742 (Expand_Pragma_Import): Set any expression on the imported object to
42743 empty to avoid initializing imported objects (in particular this
42744 covers the case of zero-initialization of bit arrays).
42745 Update copyright notice.
42746
6d244bbe 427472003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 42748
b6b3c138 42749 * sem_ch12.adb:
0c644933
AC
42750 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
42751 a subunit is missing.
42752 (Instantiate_Subprogram_Body): If body of function is missing, set type
42753 of return expression explicitly in dummy body, to prevent cascaded
42754 errors when a subunit is missing.
42755 Fixes PR 5677.
42756
b6b3c138 42757 * sem_ch3.adb:
0c644933
AC
42758 (Access_Subprogram_Declaration): Verify that return type is valid.
42759 Fixes PR 8693.
42760
b6b3c138 42761 * sem_elab.adb:
0c644933
AC
42762 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
42763 generic.
42764 Fixes PR 12318.
42765
b6b3c138 42766 * sem_util.adb:
0c644933
AC
42767 (Corresponding_Discriminant): If the scope of the discriminant is a
42768 private type without discriminant, use its full view.
42769 Fixes PR 8247.
65f1ebd1 42770
fbf5a39b
AC
427712003-10-21 Arnaud Charlet <charlet@act-europe.fr>
42772
42773 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
42774 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
42775 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
42776 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
42777 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
42778 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
42779 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
42780 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
42781 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
42782 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
42783 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
42784 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
42785 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
42786 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
42787 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
42788 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
42789 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
42790 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
42791 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
42792 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
42793 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
42794 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
42795 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
42796 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
42797 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
42798 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
42799 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
42800 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
42801 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
42802 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
42803 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
42804 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
42805 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
42806 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
42807 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
42808 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
42809 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
42810 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
42811 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
42812 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
42813 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
42814 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
42815 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
42816 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
42817 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
42818 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
42819 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
42820 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
42821 vms_conv.ads, vms_conv.adb, vms_data.ads,
42822 vxaddr2line.adb: Files added. Merge with ACT tree.
42823
42824 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
42825 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
42826 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
42827 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
42828 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
42829 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
42830 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
42831 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
42832 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
42833 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
42834
42835 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42836 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42837 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42838 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42839 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
42840 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
42841 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42842 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
42843 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
42844 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
42845 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
42846 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
42847 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
42848 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
42849 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
42850 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
42851 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
42852 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42853 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
42854 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
42855 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
42856 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
42857 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
42858 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
42859 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
42860 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
42861 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
42862 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
42863 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
42864 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
42865 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
42866 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
42867 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
42868 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
42869 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
42870 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
42871 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
42872 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
42873 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
42874 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
42875 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
42876 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
42877 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
42878 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
42879 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
42880 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
42881 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
42882 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
42883 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
42884 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
42885 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
42886 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
42887 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
42888 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
42889 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
42890 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
42891 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
42892 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
42893 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
42894 checks.adb, checks.ads, cio.c, comperr.adb,
42895 comperr.ads, csets.adb, cstand.adb, cstreams.c,
42896 debug_a.adb, debug_a.ads, debug.adb, decl.c,
42897 einfo.adb, einfo.ads, errout.adb, errout.ads,
42898 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
42899 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
42900 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
42901 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
42902 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
42903 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
42904 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
42905 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
42906 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
42907 fe.h, fmap.adb, fmap.ads, fname.adb,
42908 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
42909 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
42910 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
42911 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42912 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42913 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42914 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
42915 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
42916 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
42917 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
42918 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
42919 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
42920 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
42921 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
42922 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
42923 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
42924 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
42925 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
42926 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
42927 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
42928 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
42929 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
42930 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
42931 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
42932 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
42933 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
42934 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
42935 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
42936 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
42937 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
42938 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
42939 layout.adb, lib.adb, lib.ads, lib-list.adb,
42940 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
42941 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42942 link.c, live.adb, make.adb, make.ads,
42943 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
42944 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
42945 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
42946 misc.c, mkdir.c, mlib.adb, mlib.ads,
42947 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
42948 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
42949 namet.adb, namet.ads, namet.h, nlists.ads,
42950 nlists.h, nmake.adt, opt.adb, opt.ads,
42951 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
42952 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
42953 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42954 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
42955 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
42956 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
42957 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
42958 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
42959 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
42960 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
42961 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
42962 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
42963 prj-util.adb, prj-util.ads, raise.c, raise.h,
42964 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
42965 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
42966 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
42967 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
42968 scans.ads, scn.adb, scn.ads, s-crc32.adb,
42969 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
42970 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42971 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
42972 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
42973 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
42974 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42975 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42976 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
42977 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
42978 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
42979 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
42980 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
42981 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
42982 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
42983 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42984 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
42985 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
42986 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
42987 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
42988 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
42989 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
42990 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
42991 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
42992 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
42993 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
42994 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
42995 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
42996 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
42997 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
42998 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
42999 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
43000 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
43001 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
43002 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
43003 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
43004 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
43005 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
43006 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
43007 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
43008 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
43009 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
43010 stringt.adb, stringt.ads, stringt.h, style.ads,
43011 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
43012 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
43013 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
43014 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
43015 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
43016 table.adb, table.ads, targparm.adb, targparm.ads,
43017 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
43018 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
43019 ttypes.ads, types.ads, types.h, uintp.adb,
43020 uintp.ads, uintp.h, uname.adb, urealp.adb,
43021 urealp.ads, urealp.h, usage.adb, utils2.c,
43022 utils.c, validsw.adb, validsw.ads, widechar.adb,
43023 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
43024 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
43025 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
43026 gnatvsn.ads: Merge with ACT tree.
43027
43028 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
43029
97ae108d
MM
430302003-10-20 Mark Mitchell <mark@codesourcery.com>
43031
de696511
MM
43032 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
43033 (gnat_ug_vmx.info): Likewise.
43034 (gnat_ug_vxw.info): Likewise.
43035 (gnat_ug_wnt.info): Likewise.
43036 (gnat_rm.info): Likewise.
43037 (gnat-style.info): Likewise.
43038
97ae108d
MM
43039 * Make-lang.in (ada.install-info): Remove target.
43040 (info): New target.
43041 (install-info): Likewise.
43042 (gnat_ug_unx.info): Simplify rule.
43043 (gnat_ug_vmx.info): Likewise.
43044 (gnat_ug_vxw.info): Likewise.
43045 (gnat_ug_wnt.info): Likewise.
43046 (gnat_rm.info): Likewise.
43047 (gnat-style.info): Likewise.
43048
43aba518
NN
430492003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
43050
43051 * Make-lang.in: Replace uses of $(target_alias) with
43052 $(target_noncanonical).
43053 * ada/Makefile.in: Remove unused mention of $(target_alias).
43054
62b81e45
MM
430552003-10-06 Mark Mitchell <mark@codesourcery.com>
43056
43057 * Make-lang.in (ada.info): Replace with ...
43058 (info): ... this.
43059 (ada.dvi): Replace with ...
43060 (dvi): ... this.
43061
783be936
ZW
430622003-09-29 Zack Weinberg <zack@codesourcery.com>
43063
43064 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
43065 initialize dconstp5 and dconstmp5.
43066
177560b2
RH
430672003-09-28 Richard Henderson <rth@redhat.com>
43068
43069 * trans.c (tree_transform): Update call to expand_asm_operands.
43070
f31686a3
RH
430712003-09-21 Richard Henderson <rth@redhat.com>
43072
43073 * trans.c, utils.c: Revert.
43074
7e2af53a
RH
430752003-09-21 Richard Henderson <rth@redhat.com>
43076
43077 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
43078 change to const.
43079
5f1e32fa
MM
430802003-09-04 Michael Matz <matz@suse.de>
43081
43082 * misc.c: Include "target.h".
43083 * Make-lang.in (misc.o): Add dependency on target.h.
43084
61f71b34
DD
430852003-09-03 DJ Delorie <dj@redhat.com>
43086
43087 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
43088 hook.
43089
2ed26f6b
ZW
430902003-08-30 Zack Weinberg <zack@codesourcery.com>
43091
43092 * Makefile.in: Update substitutions to match changes to
43093 configure. Use include directives instead of @-insertions
43094 to read in host and target fragments. Add a rule to
43095 regenerate ada/Makefile.
43096
b2e608ca
NB
430972003-07-18 Neil Booth <neil@daikokuya.co.uk>
43098
43099 * lang-options.h: Remove.
43100 * lang.opt: Add help text.
43101
0cea056b
NS
431022003-07-07 Nathan Sidwell <nathan@codesourcery.com>
43103
43104 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
43105 calls.
43106
cb66e385
NB
431072003-07-06 Neil Booth <neil@daikokuya.co.uk>
43108
43109 * misc.c (gnat_handle_option): Don't handle filenames.
43110
9e94c78f 431112003-07-04 H.J. Lu <hongjiu.lu@intel.com>
8c90b13a
L
43112
43113 * Make-lang.in: Replace PWD with PWD_COMMAND.
43114 * Makefile.adalib: Likewise.
43115 * Makefile.in: Likewise.
43116
9c286213
MK
431172003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
43118
43119 * misc.c (gnat_argv): Revert last change.
43120 (gnat_handle_option, gnat_init_options): Copy arguments.
43121
b9add449
NB
431222003-07-03 Neil Booth <neil@daikokuya.co.uk>
43123
9c286213 43124 * misc.c (gnat_argv): Make const.
b9add449 43125
836d77a9
NB
431262003-07-02 Neil Booth <neil@daikokuya.co.uk>
43127
43128 * misc.c (save_argc, save_argv): Keep non-static!
43129
b86f6cd9
NB
431302003-07-02 Neil Booth <neil@daikokuya.co.uk>
43131
43132 * misc.c (save_argc, save_argv): Make static.
43133 (gnat_init_options): New prototype.
43134 (gnat_init_options): Update.
43135
6344b1f1
MK
431362003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
43137
43138 * gnat_ug.texi: Remove unlikely characters from @vars.
43139 * gnat_ug_vms.texi: Regenerate.
43140
2e040219
NS
431412003-06-27 Nathan Sidwell <nathan@codesourcery.com>
43142
43143 * misc.c (record_code_position): Adjust emit_note call.
43144
9eee5e72
NB
431452003-06-26 Neil Booth <neil@daikokuya.co.uk>
43146
43147 * misc.c (gnat_handle_option): Don't check for missing arguments.
43148
1f9cc6db
NS
431492003-06-20 Nathan Sidwell <nathan@codesourcery.com>
43150
43151 * utils.c (end_subprog_body): Adjust expand_function_end call.
43152
23d6baa3
MK
431532003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
43154
43155 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
43156 Bind_Main_Program.
43157
be43ab4e
NB
431582003-06-15 Neil Booth <neil@daikokuya.co.uk>
43159
43160 * lang.opt: Declare Ada.
43161 * misc.c (gnat_init_options): Update.
43162
ee6b0296
NS
431632003-06-14 Nathan Sidwell <nathan@codesourcery.com>
43164
43165 * utils.c (begin_subprog_body): Adjust init_function_start call.
43166
d7b42618
NB
431672003-06-14 Neil Booth <neil@daikokuya.co.uk>
43168
43169 * Make-lang.in: Update to use options.c and options.h.
43170 * misc.c: Include options.h not aoptions.h.
43171 (gnat_handle_option): Abort on unrecognized switch.
43172 (gnat_init_options): Request Ada switches.
43173
57eb6503
NB
431742003-06-14 Neil Booth <neil@daikokuya.co.uk>
43175
43176 * lang.opt: Add -Wall.
43177 * misc.c (gnat_handle_option): Handle it.
43178
70fd6569
NB
431792003-06-12 Neil Booth <neil@daikokuya.co.uk>
43180
43181 * misc.c (gnat_handle_option): Fix warnings.
43182
8cdea5a1
MK
431832003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
43184
43185 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
43186
3c900cb5
NB
431872003-06-11 Neil Booth <neil@daikokuya.co.uk>
43188
43189 * Make-lang.in: Update to handle command-line options.
43190 * lang.opt: New file.
43191 * misc.c: Include aoptions.h.
43192 (cl_options_count, cl_options): Remove.
43193 (gnat_handle_option): New.
43194 (gnat_decode_option): Remove.
43195 (LANG_HOOKS_DECODE_OPTION): Remove.
43196 (LANG_HOOKS_HANDLE_OPTION): Override.
43197
e8face4c
NN
431982003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
43199
43200 * init.c, misc.c, trans.c, utils.c: Remove dead code.
43201
4665e56c
NN
432022003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
43203
43204 * Makefile.in: Replace "host_canonical" with "host" for autoconf
43205 substitution.
43206
a165c302
NB
432072003-06-08 Neil Booth <neil@daikokuya.co.uk>
43208
43209 * Make-lang.in: Update.
43210 * misc.c: Include opts.h. Define cl_options_count and cl_options.
43211
2772ef3e
NB
432122003-06-07 Neil Booth <neil@daikokuya.co.uk>
43213
43214 * misc.c (gnat_init_options): Update.
43215
d8277a55
MK
432162003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
43217
43218 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
43219 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
43220 __attribute__ ((__unused__)).
43221
602a82f3 432222003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
43223
43224 * Make-lang.in: Add support for stageprofile and stagefeedback
43225
3aa07c6d
MK
432262003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
43227
43228 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
43229 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
43230
f1093866
MK
432312003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
43232
43233 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
43234 Remove non-VMS directive.
43235 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
43236 alternatives.
43237 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
43238
432392003-06-04 Olivier Hainque <hainque@act-europe.fr>
43240
6f7f72f9 43241 PR ada/9953
2ed26f6b
ZW
43242 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
43243 and turn ZCX_By_Default back to False since the underlying support
43244 is not quite there yet.
dee2df72 43245
80eaf415
AJ
432462003-06-01 Andreas Jaeger <aj@suse.de>
43247
43248 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
43249 and ROUND_TYPE_SIZE_UNIT.
43250
9e94c78f 432512003-05-22 Geert Bosch <bosch@gnat.com>
36f9020c
GB
43252
43253 * gnat_rm.texi : Remove reference to Ada Core Technologies.
43254
e7b5f0c9
NS
432552003-05-03 Nathan Sidwell <nathan@codesourcery.com>
43256
43257 * trans.c (tree_transform): Use location_t and input_location
43258 directly.
43259 (build_unit_elab): Likewise.
43260 * utils.c (create_label_decl): Likewise.
43261
d479d37f
NS
432622003-05-01 Nathan Sidwell <nathan@codesourcery.com>
43263
561712fe
NS
43264 * trans.c (tree_transform, build_unit_elab,
43265 set_lineno): Rename lineno to input_line.
d479d37f
NS
43266 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
43267 end_subprog_body): Likewise.
43268 * utils2.c (build_call_raise): Likewise.
43269
9e94c78f 432702003-05-01 Laurent Guerby <guerby@acm.org>
4f9335cd 43271
2ed26f6b
ZW
43272 PR ada/10546
43273 * 5iosinte.ads: Increase pthread_cond_t size to match recent
43274 LinuxThread and NPTL version, merge from ACT.
80eaf415 43275
0864034e
ZW
432762003-04-28 Zack Weinberg <zack@codesourcery.com>
43277
43278 * utils.c (convert): No need to clear TREE_CST_RTL.
43279
9e94c78f 432802003-04-23 Geert Bosch <bosch@gnat.com>
bcea76b6
GB
43281
43282 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
43283 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
43284 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
43285 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
43286 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
43287 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
43288 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
43289 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
43290 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
43291 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
43292 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
43293 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
43294 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
43295 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
43296 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
43297 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
43298 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
43299 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
43300 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
43301 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
43302 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
43303 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
43304 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
43305 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
43306 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
43307 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
43308 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
43309 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
43310 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
43311 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
43312 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
43313 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
43314 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
43315 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
43316 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
43317 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
43318 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
43319 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
43320 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
43321 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
43322 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
43323 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
43324 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
43325 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
43326 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
43327 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
43328 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
43329 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
43330 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
43331 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
43332 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
43333 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
43334 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
43335 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
43336 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
43337 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
43338 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
43339 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
43340 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
43341 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
43342 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
43343 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
43344 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
43345 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
43346 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
43347 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
43348 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
43349 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
43350 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
43351 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
43352 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
43353 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
43354 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
43355 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
43356 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
43357 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
43358 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
43359 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
43360 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
43361 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
43362 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
43363 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
43364 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
43365 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
43366 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
43367 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
43368 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
43369 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
43370 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
43371 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
43372 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
43373 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
43374 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
43375 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
43376 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
43377 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
43378 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
43379 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
43380 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
43381 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
43382 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
43383 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
43384 ali.adb, ali.ads, alloc.ads, argv.c,
43385 atree.adb, atree.ads, atree.h, aux-io.c,
43386 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
43387 binde.adb, binde.ads, binderr.adb, binderr.ads,
43388 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
43389 butil.adb, butil.ads, cal.c, calendar.ads,
43390 casing.adb, casing.ads, ceinfo.adb, checks.adb,
43391 checks.ads, cio.c, comperr.adb, comperr.ads,
43392 config-lang.in, csets.adb, csets.ads, csinfo.adb,
43393 cstand.adb, cstand.ads, cuintp.c, debug.adb,
43394 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
43395 dec-io.ads, dec.ads, deftarg.c, directio.ads,
43396 einfo.adb, einfo.ads, elists.adb, elists.ads,
43397 elists.h, errno.c, errout.adb, errout.ads,
43398 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
43399 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
43400 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
43401 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
43402 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
43403 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
43404 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
43405 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
43406 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
43407 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
43408 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
43409 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
43410 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
43411 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
43412 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
43413 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
43414 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
43415 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
43416 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
43417 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
43418 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43419 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43420 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43421 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
43422 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
43423 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
43424 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
43425 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
43426 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
43427 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
43428 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
43429 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
43430 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
43431 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
43432 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
43433 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
43434 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
43435 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
43436 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
43437 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
43438 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
43439 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
43440 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
43441 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
43442 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
43443 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
43444 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
43445 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
43446 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
43447 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
43448 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
43449 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
43450 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
43451 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
43452 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
43453 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
43454 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
43455 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
43456 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
43457 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43458 lib.adb, lib.ads, live.adb, live.ads,
43459 machcode.ads, make.adb, make.ads, makeusg.adb,
43460 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
43461 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
43462 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
43463 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
43464 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
43465 mlib.ads, namet.adb, namet.ads, nlists.adb,
43466 nlists.ads, opt.adb, opt.ads, osint-b.adb,
43467 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
43468 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
43469 osint.ads, output.adb, output.ads, par-ch10.adb,
43470 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
43471 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43472 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
43473 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
43474 par-tchk.adb, par-util.adb, par.adb, par.ads,
43475 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
43476 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
43477 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
43478 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
43479 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
43480 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
43481 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
43482 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
43483 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
43484 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
43485 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
43486 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
43487 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
43488 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
43489 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
43490 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
43491 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
43492 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43493 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
43494 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
43495 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
43496 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
43497 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43498 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
43499 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
43500 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
43501 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
43502 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
43503 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
43504 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
43505 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
43506 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
43507 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
43508 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
43509 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
43510 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
43511 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
43512 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
43513 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
43514 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
43515 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
43516 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
43517 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
43518 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
43519 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
43520 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
43521 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
43522 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
43523 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
43524 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
43525 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
43526 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
43527 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
43528 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
43529 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
43530 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
43531 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
43532 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
43533 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
43534 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
43535 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
43536 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
43537 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
43538 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
43539 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
43540 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
43541 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
43542 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
43543 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
43544 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
43545 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
43546 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
43547 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
43548 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
43549 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
43550 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
43551 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
43552 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
43553 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
43554 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
43555 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
43556 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
43557 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
43558 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43559 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
43560 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
43561 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
43562 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
43563 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
43564 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
43565 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
43566 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
43567 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
43568 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
43569 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
43570 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
43571 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
43572 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
43573 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
43574 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
43575 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
43576 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
43577 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
43578 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
43579 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
43580 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43581 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
43582 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
43583 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
43584 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
43585 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43586 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43587 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
43588 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
43589 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
43590 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
43591 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
43592 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
43593 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
43594 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
43595 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
43596 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
43597 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
43598 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
43599 snames.ads, sprint.adb, sprint.ads, stand.adb,
43600 stand.ads, stringt.adb, stringt.ads, style.adb,
43601 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
43602 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
43603 switch-m.ads, switch.adb, switch.ads, system.ads,
43604 table.adb, table.ads, targparm.adb, targparm.ads,
43605 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
43606 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
43607 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
43608 ttypef.ads, ttypes.ads, types.adb, types.ads,
43609 uintp.adb, uintp.ads, uname.adb, uname.ads,
43610 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
43611 usage.adb, usage.ads, validsw.adb, validsw.ads,
43612 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
43613 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
43614 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
43615 formatting and other trivial changes from ACT.
43616
dcf92453
ZW
436172003-04-12 Zack Weinberg <zack@codesourcery.com>
43618
43619 * gigi.h, utils2.c (build_constructor):
43620 Rename gnat_build_constructor. Use build_constructor.
43621 * decl.c (gnat_to_gnu_entity)
43622 * trans.c (tree_transform, pos_to_constructor, extract_values)
43623 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
43624 (unchecked_convert)
43625 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
43626 (fill_vms_descriptor):
43627 Update to match.
43628
d78e771d
ZW
436292003-04-06 Zack Weinberg <zack@codesourcery.com>
43630
43631 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
43632 * misc.c (gnat_tree_size): New function.
43633 (LANG_HOOKS_TREE_SIZE): Override.
43634
78d55cc8
JM
436352003-04-03 Jason Merrill <jason@redhat.com>
43636
43637 * misc.c (gnat_adjust_rli): #if 0.
43638
9e94c78f 436392003-03-31 Geert Bosch <bosch@gnat.com>
b174e2d4
GB
43640
43641 PR ada/10020
43642 * link.c : Fix misspelled "const" keyword
43643
f29a2bd1
MM
436442003-03-23 Mark Mitchell <mark@codesourcery.com>
43645
43646 PR c++/7086
43647 * utils2.c: Adjust calls to put_var_into_stack.
43648
08e247b1
NN
436492003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
43650
43651 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
43652
4bfec483
NB
436532003-03-08 Neil Booth <neil@daikokuya.co.uk>
43654
43655 * misc.c (gnat_init): Update for new prototype.
43656
3d713bb8
GB
436572003-03-05 Olivier Hainque <hainque@gnat.com>
43658
43659 ada/9961
78d55cc8
JM
43660 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
43661 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 43662
8b89fcdf
TT
436632003-03-04 Tom Tromey <tromey@redhat.com>
43664
43665 * Make-lang.in (ada.tags): New target.
43666
3d713bb8 436672003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
43668
43669 ada/9911
43670 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
43671 wrapper, which name remains constant whatever underlying GCC
43672 scheme.
43673
43674 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
43675 the stable interface needed for a-except.
43676
f4ae98be
AJ
436772003-03-02 Andreas Jaeger <aj@suse.de>
43678
43679 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43680 gnat_ug_wnt.texi: Regenerate.
43681
9e94c78f 436822003-03-02 Laurent Guerby <guerby@acm.org>
5348742b 43683
f4ae98be 43684 * Makefile.in (install-gnatlib): Match previous change there
5348742b 43685 so it works.
f4ae98be 43686
8c108db2
AS
436872003-02-28 Andreas Schwab <schwab@suse.de>
43688
43689 * Make-lang.in (install-gnatlib): Change to ada directory before
43690 running make instead of using ada/Makefile directly.
43691
601d71bc
BE
436922003-02-18 Ben Elliston <bje@redhat.com>
43693
6f7f72f9 43694 Part of PR ada/9406
601d71bc
BE
43695 * gnat_ug.texi (Binder output file): Grammar fix.
43696
bf7c02dd
BE
436972003-02-18 Ben Elliston <bje@redhat.com>
43698
43699 PR other/7350
43700 * 5qtaprop.adb (Sleep): Fix typo in comment.
43701
b3a8389d
JM
437022003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
43703
43704 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
43705 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43706 gnat_ug_wnt.texi: Regenerate.
43707
9e94c78f 437082003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5da14cb5
CC
43709
43710 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
43711 be created if necessary.
43712 (ada.install-common): Let $(DESTDIR)$(bindir) be created
43713 if necessary. Remove erroneous and redundant gnatchop
43714 installation commands. Test for gnatdll before attempting
43715 to install it.
43716 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
43717 and gnatdll from all plausible locations.
43718
271bd540
RS
437192003-02-01 Richard Sandiford <rsandifo@redhat.com>
43720
43721 * utils2.c (build_unary_op): Don't check flag_volatile.
43722 * gnat_ug.texi: Remove -fvolatile from example.
43723 * gnat_ug_vxw.texi: Likewise.
43724
9e94c78f 437252003-01-29 Laurent Guerby <guerby@acm.org>
c1cc6a51 43726
d78e771d
ZW
43727 PR ada/8344
43728 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
43729 * Makefile.in: match previous change.
43730 * Make-lang.in: match previous change.
c1cc6a51 43731
9e94c78f 437322003-01-29 Joel Sherrill <joel@OARcorp.com>
c4039eb0
JS
43733
43734 * 5rosinte.ads: Add SIGXCPU.
43735 * 5rtpopsp.adb: New file.
43736 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
43737 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
43738 specific file 5rtpopsp.adb.
43739 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
43740 is likely needed for all newlib targets.
43741 * init.c: Add RTEMS specific version of __gnat_initialize().
43742
00d29f7d
RO
437432003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43744
43745 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
43746
437026ef
RO
437472003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43748
43749 * init.c (__gnat_error_handler): Make msg const.
43750
43751 * gmem.c (convert_addresses): Move declaration ...
43752 * adaint.h: ... here.
43753 * adaint.c (convert_addresses): Adapt addrs type to match
43754 prototype.
43755
43756 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
43757
e12825cd
AS
437582003-01-24 Andreas Schwab <schwab@suse.de>
43759
43760 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
43761 size_t to avoid warning.
43762
a8729406
ZW
437632003-01-21 Zack Weinberg <zack@codesourcery.com>
43764
b09b91b9 43765 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 43766
17211ab5
GK
437672003-01-09 Geoffrey Keating <geoffk@apple.com>
43768
43769 * gnat_rm.texi: Remove RCS version number.
43770
43771 * ada-tree.h (union lang_tree_node): Add chain_next option.
43772
1d27195c
CC
437732003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
43774
43775 * Make-lang.in (ada.install-info, ada.install-common,
43776 ada.uninstall): Prepend $(DESTDIR) to the destination
43777 directory in all (un)installation commands.
43778 * Makefile.in (install-gnatlib, install-rts): Ditto.
43779
bdefb2ab
JM
437802002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
43781
43782 * gnat_rm.texi, gnat_ug.texi: Use @copying.
43783 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43784 gnat_ug_wnt.texi: Regenerate.
43785
46d40353
JM
437862002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
43787
43788 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
43789 only.
43790 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
43791 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
43792 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
43793 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
43794 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
43795 $(srcdir)/doc/include/gcc-common.texi.
43796
9e94c78f 437972002-12-15 Geert Bosch <bosch@gnat.com>
d2f97d3e
GB
43798
43799 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
43800
9e94c78f 438012002-12-14 Geert Bosch <bosch@gnat.com>
93a81b02 43802
6f7f72f9 43803 PR ada/5690
4977bab6
ZW
43804 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
43805 case of a body created for a Renaming_As_Body, on which
6f7f72f9 43806 conformance checks are not performed.
4977bab6
ZW
43807
438082002-11-30 Zack Weinberg <zack@codesourcery.com>
43809
43810 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
43811 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
43812 not already included.
43813 * Make-lang.in: Update dependencies.
93a81b02 43814
dfc15546
NN
438152002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
43816 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 43817 solution to buffer overflow bug on GNU/Linux.
dfc15546 43818
8b54424d 438192002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9
EB
43820
43821 PR ada/5856
43822 PR ada/6919
8b54424d
NN
43823 * bindgen.adb: Remove all references to Public_Version.
43824 * comperr.adb: Remove all references to Public_Version and
43825 GNATPRO_Version; correct bug reporting instructions.
43826 * comperr.ads: Change to match bug box.
43827 * gnatvsn.ads: Remove all references to Public version and
43828 GNATPRO version.
43829
cc41268d 438302002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 43831
1a083c0e
NN
43832 PR ada/6919
43833 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
43834 GNU/Linux.
43835
cc41268d
NN
43836 PR ada/6558
43837 * config-lang.in: Remove diff_excludes.
43838
1c7b0712 438392002-11-05 Graham Stott <graham.stott@btinternet.com>
6f7f72f9 43840
1c7b0712
GS
43841 PR ada/8358
43842 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 43843 (build_unit_elab): Use..
1c7b0712 43844
9e94c78f 438452002-10-30 Geert Bosch <bosch@gnat.com>
6f7f72f9 43846
1c4048ca
GB
43847 PR ada/6558
43848 * misc.c : Include optabs.h
43849
43850 * Make-lang.in (misc.o): Add dependency on optabs.h
43851
9e94c78f 438522002-10-29 Geert Bosch <bosch@gnat.com>
6f7f72f9 43853
4977bab6 43854 PR ada/6558
f0d96f9c
GB
43855 * Make-lang.in (gnatbind): Depend on CONFIG_H
43856
a7512dec 438572002-10-29 Geert bosch <bosch@gnat.com>
6f7f72f9 43858
4977bab6
ZW
43859 PR ada/6558
43860 * misc.c: Unrevert misc.c (1.13)
a7512dec 43861
c6362f4f
NN
438622002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
43863
43864 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
43865 maintainership comments.
43866
438672002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 43868
91ed4b19 43869 PR ada/5904
4977bab6
ZW
43870 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
43871 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
43872 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
43873 7staprop.adb: Correct statements in comments about
91ed4b19
NN
43874 maintainership of GNAT.
43875
1f02b6af 43876 PR ada/5904
4977bab6
ZW
43877 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
43878 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
43879 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
43880 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
43881 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
43882 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
43883 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
43884 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
43885 comments about maintainership of GNAT.
43886
71ff80dc 43887 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
43888 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
43889 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
43890 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
43891 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
43892 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
43893 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
43894 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
43895 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
43896 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
43897 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
43898 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
43899 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
43900 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
43901 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
43902 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
43903 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
43904 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
43905 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
43906 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
43907 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
43908 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
43909 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
43910 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
43911 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
43912 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
43913 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
43914 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
43915 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
43916 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
43917 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
43918 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
43919 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
43920 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
43921 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
43922 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
43923 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
43924 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
43925 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
43926 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
43927 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
43928 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
43929 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
43930 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
43931 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
43932 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
43933 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
43934 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
43935 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
43936 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
43937 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
43938 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
43939 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
43940 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
43941 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
43942 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
43943 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
43944 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
43945 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
43946 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
43947 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
43948 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
43949 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
43950 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
43951 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
43952 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
43953 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
43954 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
43955 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
43956 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
43957 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
43958 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
43959 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
43960 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
43961 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
43962 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
43963 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
43964 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
43965 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
43966 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
43967 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
43968 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
43969 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
43970 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
43971 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
43972 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
43973 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
43974 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
43975 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
43976 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
43977 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
43978 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
43979 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
43980 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
43981 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
43982 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
43983 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
43984 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
43985 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
43986 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
43987 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
43988 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
43989 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
43990 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
43991 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
43992 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
43993 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
43994 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
43995 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
43996 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
43997 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
43998 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
43999 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
44000 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
44001 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
44002 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
44003 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
44004 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
44005 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
44006 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
44007 par-endh.adb par-labl.adb par-load.adb par-prag.adb
44008 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
44009 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
44010 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
44011 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
44012 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
44013 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
44014 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
44015 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
44016 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
44017 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
44018 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
44019 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
44020 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
44021 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
44022 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
44023 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
44024 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
44025 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
44026 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
44027 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
44028 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
44029 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
44030 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
44031 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
44032 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
44033 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
44034 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
44035 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
44036 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
44037 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
44038 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
44039 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
44040 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
44041 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
44042 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
44043 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
44044 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
44045 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
44046 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
44047 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
44048 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
44049 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
44050 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
44051 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
44052 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
44053 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
44054 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
44055 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
44056 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
44057 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
44058 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
44059 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
44060 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
44061 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
44062 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
44063 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
44064 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
44065 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
44066 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
44067 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
44068 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
44069 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
44070 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
44071 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
44072 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
44073 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
44074 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
44075 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
44076 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
44077 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
44078 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
44079 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
44080 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
44081 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
44082 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
44083 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
44084 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
44085 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
44086 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
44087 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
44088 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
44089 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
44090 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
44091 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
44092 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
44093 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
44094 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
44095 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
44096 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
44097 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
44098 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
44099 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
44100 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
44101 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
44102 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
44103 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
44104 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
44105 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
44106 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
44107 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
44108 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
44109 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
44110 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
44111 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
44112 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
44113 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
44114 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
44115 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
44116 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
44117 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
44118 stringt.ads stringt.h style.adb style.ads stylesw.adb
44119 stylesw.ads switch.adb switch.ads sysdep.c system.ads
44120 table.adb table.ads targparm.adb targparm.ads targtyps.c
44121 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
44122 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
44123 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
44124 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
44125 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
44126 usage.ads utils.c utils2.c validsw.adb validsw.ads
44127 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
44128 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
44129 xtreeprs.adb: Correct statements in comments about maintainership
44130 of GNAT.
44131
b4f94ac1
ZW
441322002-09-23 Zack Weinberg <zack@codesourcery.com>
44133
44134 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
44135 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
44136 * gnatvsn.ads: Gnat_Version_String is now a function.
44137 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
44138 copy the C version_string into a String and return it.
44139 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
44140 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
44141 Remove pragma Ident (Gnat_Version_String). If this was the
44142 sole use of package Gnatvsn, remove the with statement too.
44143 * gnat1drv.adb: Tweak -gnatv output.
44144
eaff3bf8
RH
441452002-09-17 Richard Henderson <rth@redhat.com>
44146
44147 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
44148 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
44149 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
44150 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
44151 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
44152 and real_2expN instead of a loop.
44153 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
44154 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
44155
9e94c78f
EB
441562002-08-25 Andre Leis <a.leis@gmx.net>
44157 David Billinghurst <David.Billinghurst@riotinto.com>
d241f75b 44158
f4ae98be 44159 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 44160
4320085a
RO
441612002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44162
44163 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
44164 Remove $(CONFIG_H) dependency.
44165
22aa533e
NS
441662002-08-08 Nathan Sidwell <nathan@codesourcery.com>
44167
44168 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
44169
1dcd444b
KG
441702002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44171
44172 * adadecode.c (ada_demangle): Use xstrdup in lieu of
44173 xmalloc/strcpy.
44174 * misc.c (gnat_decode_option): Likewise.
44175
7bc7d27b
FW
441762002-07-15 Florian Weimer <fw@deneb.enyo.de>
44177
44178 * make.adb (Add_Switch): Make Generic_Position a procedure. The
44179 function approach did not work well because of a side effect (the
44180 function call could reallocate the table which was being indexed
44181 using its result). Fixes ada/4851. [RESURRECTED]
44182
6a2dd09a
RS
441832002-07-01 Roger Sayle <roger@eyesopen.com>
44184
44185 * ada/utils.c (builtin_function): Accept an additional parameter.
44186
c168bbd7
AJ
441872002-06-28 Andreas Jaeger <aj@suse.de>
44188
44189 PR ada/7144
44190 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
44191 <adi@thur.de>.
44192
b41e09a7
KG
441932002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44194
44195 * Makefile.in (SHELL): Set to @SHELL@.
44196
62c71f4b
KG
441972002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44198
44199 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
44200 array size calculation.
44201
94213cff
AJ
442022002-06-04 Andreas Jaeger <aj@suse.de>
44203
44204 * Make-lang.in (gnatbind): Readd rule that has been lost in last
44205 patch.
44206
e2500fed
GK
442072002-06-03 Geoffrey Keating <geoffk@redhat.com>
44208
44209 Merge from pch-branch:
44210
44211 * config-lang.in (gtfiles): Add ada-tree.h.
44212 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
44213 (SET_TYPE_MODULUS): New.
44214 (SET_TYPE_INDEX): New.
44215 (SET_TYPE_DIGITS_VALUE): New.
44216 (SET_TYPE_RM_SIZE): New.
44217 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
44218 (SET_TYPE_ADA_SIZE): New.
44219 (SET_TYPE_ACTUAL_BOUNDS): New.
44220 (SET_DECL_CONST_CORRESPONDING_VAR): New.
44221 (SET_DECL_ORIGINAL_FIELD): New.
44222 (TREE_LOOP_ID): Correct typo.
44223 * decl.c: Use new macros.
44224 * utils.c: Include debug.h, use new macros.
94213cff 44225 * utils2.c: Use new macros.
e2500fed
GK
44226
44227 * ada-tree.h: Update all macros for new tree description.
44228 (struct tree_loop_id): New.
44229 (union lang_tree_node): New.
44230 (struct lang_decl): New.
44231 (struct lang_type): New.
44232 * misc.c (gnat_mark_tree): Delete.
44233 (LANG_HOOKS_MARK_TREE): Delete.
44234 * trans.c (tree_transform): No longer any need to cast
44235 for TREE_LOOP_ID.
44236
44237 * utils.c (struct language_function): New dummy structure.
44238
44239 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
44240 (misc.o): Likewise.
44241 (utils.o): Likewise; also gtype-ada.h.
44242 * Make-lang.in (gnat1): Add dependency on s-gtype.
44243 (gnatbind): Add dependency on $(CONFIG_H).
44244 * utils.c: Correct last #include.
44245 (stuct e_stack): Remove unnecessary 'static'.
44246 (mark_e_stack): Remove unused prototype.
44247
44248 * scn-nlit.adb: Remove whitespace after version number to
44249 keep lines under 80 chars.
44250 * snames.adb: Likewise.
44251 * treepr.ads: Likewise.
94213cff 44252
e2500fed
GK
44253 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
44254 (misc.o): Likewise.
44255 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
44256 * config-lang.in (gtfiles): New.
44257 * decl.c: Use gengtype for roots.
44258 * gigi.h: Use gengtype for roots.
44259 * trans.c: Use gengtype for roots.
44260 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
44261
27e511e0
GDR
442622002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
44263
44264 * misc.c (gnat_init): Adjust setting of internal_error_function.
44265
113dc143
JM
442662002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
44267
44268 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
44269 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44270 gnat_ug_wnt.texi: Regenerate.
44271
5321fb3e
FW
442722002-05-31 Florian Weimer <fw@deneb.enyo.de>
44273
15e6136e
FW
44274 * 5ntaprop.adb (with System.OS_Primitives): Remove.
44275
019310ac
FW
44276 * cstreams.c (max_path_len): Move from here ...
44277 * adaint.c (__gnat_max_path_len): ... to here.
44278 * adaint.c (__gnat_max_path_len): Declare.
44279 * g-dirope.adb (Max_Path): Adjust.
44280 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 44281 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
44282 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
44283 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
44284
5321fb3e
FW
44285 * Makefile.in, Make-lang.in: Documentation is now built in
44286 Make-lang.in. Store Info and generated Texinfo files in the
44287 source directory.
44288 * gnat_ug.texi: Remove CVS keywords, correct version number.
44289 Set file name correctly.
44290
44291 * gnat_ug_*.texi: Add.
44292 * .cvsignore: Ignore generated Texinfo files.
44293
b1c12c4b
ZW
442942002-05-30 Zack Weinberg <zack@codesourcery.com>
44295
44296 * ada.h: Add MI guard macro.
44297 (SUBTYPE): Define constants with an anonymous enum, not static
44298 const variables.
44299 (IN): Cast constants to appropriate type before use.
44300
ead33da9
JM
443012002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
44302
44303 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
44304 (experimental)".
44305
7d600178
RO
443062002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44307
44308 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
44309 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
44310 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
44311 (ALL_ADA_CFLAGS): Likewise.
44312 (ADA_INCLUDES): Likewise.
44313 Adapt for new working dir.
44314 (GNATBIND): Use Makefile.in version.
44315 (.SUFFIXES): Copy from Makefile.in.
44316 (ada-warn): Define.
44317 (.adb.o, .ads.o): Copy from Makefile.in.
44318 Added $(OUTPUT_OPTION).
44319 (GNAT1_C_OBJS): Moved from Makefile.in.
44320 Prefix with ada subdir.
44321 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
44322 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
44323 Adapt for new working dir.
44324 (EXTRA_GNATBIND_OBJS): Likewise.
44325 (ADA_BACKEND): Moved from Makefile.in.
44326 Renamed to avoid conflict with global BACKEND.
44327 Use that one.
44328 (TARGET_ADA_SRCS): Moved from Makefile.in.
44329 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
44330 Use ADA_BACKEND.
44331 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
44332 (ada_extra_files): Moved from Makefile.in.
44333 Prefix with ada subdir.
44334 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
44335 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
44336 (ada/nmake.ads): Likewise.
44337 (update-sources): Moved from Makefile.in.
44338 Prefix with ada subdir.
44339 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
44340 (ADA_TREE_H): Likewise.
44341 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
44342 (ada/memtrack.o): Likewise.
44343 (ada/adadecode.o): Likewise.
44344 Update dependencies.
44345 (ada/adaint.o): New.
44346 (ada/argv.o): Moved from Makefile.in.
44347 Prefix with ada subdir.
94213cff 44348 Update dependencies.
7d600178
RO
44349 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
44350 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
44351 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
44352 Prefix with ada subdir.
44353 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
44354 (GNAT DEPENDENCIES): Regenerate.
44355 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
44356 toplevel Makefile.in.
44357 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
44358 (TARGET_ADA_SRCS): Removed.
44359 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
44360 (GNATBIND_OBJS): Likewise.
44361 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
44362 (BACKEND): Removed.
44363 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
44364 (TREE_H): Likewise.
44365 (ada_extra_files): Likewise.
44366 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
44367 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
44368 (update-sources): Likewise.
44369 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
44370 (ADA_TREE_H): Likewise.
44371 (adadecoce.o): Likewise.
44372 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
44373 (GNAT DEPENDENCIES): Likewise.
44374
1e6347d8
RO
443752002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44376
44377 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
44378 * Makefile.in: Likewise.
44379
db80834f
RO
443802002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44381
44382 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
44383 Restore $(CONFIG_H) and prefix.o dependencies.
44384 (ada.stage[1-4]): Depend on stage?-start.
44385
44386 * Makefile.in (b_gnatb.c): Depend on interfac.o.
44387
ac293f98
JW
443882002-05-02 Jim Wilson <wilson@redhat.com>
44389
44390 * utils.c (finish_record_type): Change record_size to record_type.
44391
b303008e
JDA
443922001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
44393
44394 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
44395 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
44396 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 44397
ff45c01e
NB
443982002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
44399
44400 * misc.c (gnat_parse_file): Update.
44401
349ae713
NB
444022002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
44403
44404 * misc.c (gnat_init): Don't set lang_attribute_common.
44405
ace133aa
JM
444062002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
44407
44408 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
44409
5c558dd9
FW
444102002-04-21 Florian Weimer <fw@deneb.enyo.de>
44411
b4f94ac1 44412 * gnat_ug.texi: New file.
88e1739c 44413
5c558dd9
FW
44414 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
44415 instead of gfdl.texi
44416
44417 * xgnatug.adb, ug_words: New files.
44418
44419 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 44420 gnat_rm and gnat-style manuals.
5c558dd9 44421
7a228918
NB
444222002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
44423
44424 * gigi.h (incomplete_type_error): Remove.
44425 * utils.c (incomplete_type_error): Remove.
44426
b2123dc0
MM
444272002-04-16 Mark Mitchell <mark@codesourcery.com>
44428
44429 * trans.c (tree_transform): Add has_scope argument to
44430 expand_start_stmt_expr.
44431
78ef5b89
NB
444322002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44433
44434 * gigi.h (truthvalue_conversion): Rename.
44435 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
44436 * trans.c (tree_transform): Update.
44437 * utils2.c (truthvalue_conversion): Rename, update.
44438 (build_binary_op, build_unary_op): Update.
44439
a71742a8
LG
444402002-04-04 Laurent Guerby <guerby@acm.org>
44441
44442 * make.adb: Implement -margs, remove restriction about file name placement.
44443 * makeusg.adb: Documentation update.
44444 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
44445 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
44446
82a4b025
NB
444472002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44448
44449 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
44450 (builtin_function): Similarly.
44451
dffd7eb6
NB
444522002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44453
44454 * decl.c (gnat_to_gnu_entity): Update.
44455 * gigi.h (mark_addressable): Rename.
44456 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
44457 * trans.c (tree_transform): Update.
44458 * utils.c (create_var_decl): Update.
44459 * util2.c (build_binary_op, build_unary_op,
44460 fill_vms_descriptor): Update.
44461 (mark_addressable): Rename, update.
44462
ceef8ce4
NB
444632002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44464
44465 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
44466 Rename.
44467 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
44468 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
44469 * trans.c (tree_transform, convert_with_check): Update.
44470 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
44471 Rename.
44472
48a7a235
NB
444732002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
44474
44475 * gigi.h (finish_incomplete_decl): Rename.
44476 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
44477 * utils.c (gnat_init_decl_processing): Don't set hook.
44478 (finish_incomplete_decl): Rename.
44479
1d5af871
AS
444802002-03-29 Andreas Schwab <schwab@suse.de>
44481
44482 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
44483 directory.
44484
9e94c78f 444852001-03-28 Robert Dewar <dewar@gnat.com>
8cbb664e
MG
44486
44487 * checks.ads:
44488 (Remove_Checks): New procedure
44489
44490 * checks.adb:
44491 (Remove_Checks): New procedure
44492
44493 * exp_util.adb:
44494 Use new Duplicate_Subexpr functions
44495 (Duplicate_Subexpr_No_Checks): New procedure
44496 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44497 (Duplicate_Subexpr): Restore original form (checks duplicated)
44498 (Duplicate_Subexpr): Call Remove_Checks
44499
82a4b025 44500 * exp_util.ads:
8cbb664e
MG
44501 (Duplicate_Subexpr_No_Checks): New procedure
44502 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44503 Add 2002 to copyright notice
44504
44505 * sem_util.adb: Use new Duplicate_Subexpr functions
44506
82a4b025 44507 * sem_eval.adb:
8cbb664e
MG
44508 (Eval_Indexed_Component): This is the place to call
44509 Constant_Array_Ref and to replace the value. We simply merge
44510 the code of this function in here, since it is now no longer
44511 used elsewhere. This fixes the problem of the back end not
44512 realizing we were clever enough to see that this was
44513 constant.
44514 (Expr_Val): Remove call to Constant_Array_Ref
44515 (Expr_Rep_Val): Remove call to Constant_Array_Ref
44516 Minor reformatting
44517 (Constant_Array_Ref): Deal with string literals (patch
44518 suggested by Zack Weinberg on the gcc list)
44519
9e94c78f 445202001-03-28 Ed Schonberg <schonber@gnat.com>
8cbb664e 44521
82a4b025 44522 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
44523 Duplicate_Subexpr_Move_Checks.
44524
82a4b025 44525 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
44526 Duplicate_Subexpr_Move_Checks.
44527
82a4b025
NB
44528 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
44529 value of array exists before retrieving it (it may a private
8cbb664e
MG
44530 protected component in a function).
44531
9e94c78f 445322002-03-28 Geert Bosch <bosch@gnat.com>
792c4e74
GB
44533
44534 * prj-pp.adb : New file.
44535
44536 * prj-pp.ads : New file.
44537
915e8bad
AJ
445382002-03-28 Andreas Jaeger <aj@suse.de>
44539
44540 * Makefile.in (stamp-sdefault): Fix path for Makefile.
44541
0840811c
NB
445422002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
44543
44544 * misc.c (gnat_expand_expr): Move prototype.
44545
7ffb4fd2
NB
445462002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44547
44548 * misc.c (insert_default_attributes): Remove.
44549
c9d892a8
NB
445502002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44551
44552 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
44553 (gnat_init): Don't set hook.
44554 (gnat_expand_expr): Fix prototype.
44555
31c816cf
NB
445562002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44557
44558 * misc.c (ggc_p): Remove.
44559
ef83161c
GB
445602002-03-27 Geert Bosch <bosch@gnat.com>
44561
44562 * prj-makr.ads, prj-makr.adb : New files.
44563
4f0ade92
NB
445642002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
44565
44566 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
44567 (lang_mark_tree): Make static, rename.
44568
c88770e9
NB
445692002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
44570
44571 * misc.c (maybe_build_cleanup): Remove.
44572
05671968
NB
445732002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
44574
44575 * gigi.h (yyparse): Remove.
44576
ad42149c
FW
445772002-03-23 Florian Weimer <fw@deneb.enyo.de>
44578
9e94c78f 44579 From Ben Brosgol <brosgol@gnat.com>
82a4b025 44580 * gnat_rm.texi: Sync with ACT version.
ad42149c 44581
7afff7cf
NB
445822002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
44583
44584 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
44585 (gnat_init): Remove old hook.
44586
52dabb6c
NB
445872002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
44588
44589 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
44590 (yyparse): Rename gnat_parse_file.
44591
6cbcc541
GK
445922002-03-14 Geoffrey Keating <geoffk@redhat.com>
44593
44594 Delete all lines containing "$Revision:".
44595 * xeinfo.adb: Don't look for revision numbers.
44596 * xnmake.adb: Likewise.
44597 * xsinfo.adb: Likewise.
44598 * xsnames.adb: Likewise.
44599 * xtreeprs.adb: Likewise.
44600
2f9834e8
KG
446012002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44602
44603 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
44604 gnat_tree_code_name): Delete.
44605 (tree_code_type, tree_code_length, tree_code_name): Define.
44606 (gnat_init): Don't try to copy into the various tree_code
44607 arrays.
44608
63adb4ff
RH
446092002-03-11 Richard Henderson <rth@redhat.com>
44610
44611 * Makefile.in (.NOTPARALLEL): Add fake tag.
44612
43ff4547
GB
446132002-03-07 Geert Bosch <bosch@gnat.com>
44614
82a4b025
NB
44615 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
44616 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
44617 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
44618 switch-m.adb, switch-m.ads : New files.
44619
07fc65c4
GB
446202002-03-07 Geert Bosch <bosch@gnat.com>
44621
44622 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
44623 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
44624 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
44625 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
44626 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
44627 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
44628 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
44629 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
44630 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
44631 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
44632 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
44633 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
44634 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
44635 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
44636 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
44637 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
44638 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
44639 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
44640 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
44641 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
44642 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
44643 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
44644 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
44645 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
44646 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
44647 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
44648 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
44649 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
44650 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
44651 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
44652 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
44653 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
44654 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
44655 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
44656 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
44657 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
44658 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
44659 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
44660 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
44661 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
44662 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
44663 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
44664 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
44665 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
44666 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
44667 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
44668 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
44669 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
44670 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
44671 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
44672 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
44673 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
44674 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
44675 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
44676 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
44677 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
44678 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
44679 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
44680 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
44681 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
44682 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
44683 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
44684 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
44685 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
44686 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
44687 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
44688 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
44689 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
44690 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
44691 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
44692 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
44693 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
44694 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
44695 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
44696 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
44697 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
44698 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
44699 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
44700 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
44701 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
44702 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
44703 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
44704 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
44705 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
44706 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
44707 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
44708 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
44709 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
44710 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
44711 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
44712 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
44713 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
44714 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
44715 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
44716 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
44717 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
44718 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
44719
44720 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
44721 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
44722 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
44723 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
44724
44725 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
44726 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
44727
44728 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
44729 to mdll-fil.ad[bs] and mdll-util.ad[bs]
44730
44731 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
44732 from mdllfile.ad[bs] and mdlltool.ad[bs]
44733
ca7558fc
KG
447342002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44735
44736 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
44737 lieu of explicit sizeof/sizeof.
44738
63e1b1c4
NB
447392002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
44740
44741 * misc.c (copy_lang_decl): Remove.
44742
f458d1d5
ZW
447432002-02-27 Zack Weinberg <zack@codesourcery.com>
44744
44745 * misc.c: Delete traditional-mode-related code copied from the
44746 C front end but not used, or used only to permit the compiler
44747 to link.
44748
21e09952
RH
447492002-02-07 Richard Henderson <rth@redhat.com>
44750
44751 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
44752 * adaint.h (__gnat_to_gm_time): Update prototype.
44753
ead39bdf 447542002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
44755
44756 * trans.c (tree_transform) [N_Loop_Statement]: Use
44757 expand_exit_loop_top_cond.
44758
72ac12bf
RH
447592001-12-23 Richard Henderson <rth@redhat.com>
44760
44761 * utils.c (end_subprog_body): Push GC context around
44762 rest_of_compilation for nested functions.
44763
14aacce7
RH
447642001-12-23 Richard Henderson <rth@redhat.com>
44765
44766 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
44767
b3d45d87
FW
447682001-12-23 Florian Weimer <fw@deneb.enyo.de>
44769
ece2d1b8
FW
44770 * gnat-style.texi (Declarations and Types): Remove ancient style
44771 rule which was mandated by code generation issues.
82a4b025 44772
b3d45d87
FW
44773 * gnat-style.texi (header): Add @dircategory, @direntry.
44774 (title page): Remove date.
44775 (general) Add @./@: where approriate, and two spaces after the
44776 full stop at the end of a sentence. Use @samp markup when
44777 referring concrete lexical entities (keywords, attribute names
44778 etc.), and @syntax for ARM grammar elements. Use @r for English
44779 text in comments. Use @emph for emphasis. Change "if-statements"
44780 etc. to "if statements" (without @samp). Break long lines. Make
44781 casing of section names consistent.
44782 (Identifiers): Use @samp markup for variable names.
44783 (Comments): Use @samp markup for comment characters. Line-end
44784 comments may follow any Ada code, not just statements. Fix
44785 misspelling of "Integer" as "integer".
44786 (Loop statements): Do not use variable name "I", use "J".
44787 (Subprogram Declarations): Document alignment.
44788 (Subprogram Bodies, Block statements): Document empty line before
44789 "begin".
44790
7a73ad55
FW
447912001-12-22 Florian Weimer <fw@deneb.enyo.de>
44792
44793 * make.adb (Add_Switch): Make Generic_Position a procedure. The
44794 function approach did not work well because of a side effect (the
44795 function call could reallocate the table which was being indexed
44796 using its result). Fixes ada/4851.
44797
9e94c78f 447982001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
44799
44800 * bindgen.adb: Minor reformatting
82a4b025 44801
17c5c8a5 44802 * cstand.adb: Minor reformatting
82a4b025 44803
17c5c8a5
GB
44804 * fmap.adb: Minor reformatting
44805 Change name from Add for Add_To_File_Map (Add is much too generic)
44806 Change Path_Name_Of to Mapped_Path_Name
44807 Change File_Name_Of to Mapped_File_Name
44808 Fix copyright dates in header
82a4b025 44809
17c5c8a5
GB
44810 * fmap.ads:
44811 Change name from Add for Add_To_File_Map (Add is much too generic)
44812 Change Path_Name_Of to Mapped_Path_Name
44813 Change File_Name_Of to Mapped_File_Name
44814 Fix copyright dates in header
82a4b025 44815
17c5c8a5
GB
44816 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
44817 Add use clause for Fmap.
82a4b025 44818
17c5c8a5 44819 * make.adb: Minor reformatting
82a4b025 44820
17c5c8a5
GB
44821 * osint.adb: Minor reformatting. Change of names in Fmap.
44822 Add use clause for Fmap.
82a4b025 44823
17c5c8a5 44824 * prj-env.adb: Minor reformatting
82a4b025 44825
17c5c8a5 44826 * prj-env.ads: Minor reformatting
82a4b025 44827
07fc65c4
GB
44828 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
44829 error found (there were odd exceptions to this general rule in
17c5c8a5 44830 -gnatec/-gnatem processing)
82a4b025 44831
9e94c78f 448322001-12-19 Olivier Hainque <hainque@gnat.com>
17c5c8a5 44833
07fc65c4
GB
44834 * raise.c (__gnat_eh_personality): Exception handling personality
44835 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 44836 and still containing a bunch of debugging artifacts.
07fc65c4 44837 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 44838 inspired from the C++ library.
82a4b025 44839
07fc65c4 44840 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 44841 exception handling integration.
82a4b025 44842
9e94c78f 448432001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5
GB
44844
44845 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
44846 (HIE_SOURCES): Add s-secsta.ad{s,b}.
44847 (HIE_OBJS): Add s-fat*.o
07fc65c4 44848 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
44849 interrupt handling files.
44850 (RAVEN_MOD): Removed, no longer needed.
82a4b025 44851
9e94c78f 448522001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
44853
44854 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
44855 Add 2001 to copyright date
82a4b025 44856
07fc65c4 44857 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 44858 need to force universal inlining for these cases.
82a4b025 44859
9e94c78f 448602001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5 44861
07fc65c4 44862 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 44863 Ravenscar HI.
82a4b025 44864
17c5c8a5
GB
44865 * exp_ch7.adb: Allow use of secondary stack in HI mode.
44866 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 44867
9e94c78f 448682001-12-19 Vincent Celier <celier@gnat.com>
17c5c8a5 44869
07fc65c4 44870 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 44871 Pkg_Id and Case_Insensitive.
82a4b025 44872
9e94c78f 448732001-12-19 Pascal Obry <obry@gnat.com>
17c5c8a5
GB
44874
44875 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 44876
9e94c78f 448772001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
44878
44879 * prj-tree.ads: Minor reformatting
44880
38be19f6
JM
448812001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
44882
44883 * config-lang.in (diff_excludes): Remove.
44884
9e94c78f 448852001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 44886
07fc65c4
GB
44887 * sem_res.adb (Resolve_Selected_Component): do not generate a
44888 discriminant check if the selected component is a component of
6510f4c9
GB
44889 the argument of an initialization procedure.
44890
07fc65c4
GB
44891 * trans.c (tree_transform, case of arithmetic operators): If result
44892 type is private, the gnu_type is the base type of the full view,
6510f4c9 44893 given that the full view itself may be a subtype.
82a4b025 44894
9e94c78f 448952001-12-17 Robert Dewar <dewar@gnat.com>
6510f4c9
GB
44896
44897 * sem_res.adb: Minor reformatting
82a4b025 44898
07fc65c4
GB
44899 * trans.c (tree_transform, case N_Real_Literal): Add missing third
44900 parameter in call to Machine (unknown horrible effects from this
6510f4c9 44901 omission).
82a4b025 44902
6510f4c9
GB
44903 * urealp.h: Add definition of Round_Even for call to Machine
44904 Add third parameter for Machine
82a4b025 44905
9e94c78f 449062001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 44907
07fc65c4 44908 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 44909 predefined units in No_Run_Time mode.
82a4b025 44910
9e94c78f 449112001-12-17 Richard Kenner <kenner@gnat.com>
6510f4c9
GB
44912
44913 * misc.c (insn-codes.h): Now include.
82a4b025 44914
9e94c78f 449152001-12-17 Olivier Hainque <hainque@gnat.com>
6510f4c9 44916
07fc65c4 44917 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
44918 exception handling mechanism
44919 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
44920 to factorize previous code sequences and make them externally callable,
44921 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
44922 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
44923 Use the new notification routines.
82a4b025 44924
9e94c78f 449252001-12-17 Emmanuel Briot <briot@gnat.com>
6510f4c9
GB
44926
44927 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 44928
9e94c78f 449292001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9 44930
07fc65c4 44931 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 44932 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 44933
07fc65c4 44934 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 44935 mode on 32 bits targets.
82a4b025 44936
9e94c78f 449372001-12-17 Vincent Celier <celier@gnat.com>
6510f4c9
GB
44938
44939 * fmap.adb: Initial version.
82a4b025 44940
6510f4c9 44941 * fmap.ads: Initial version.
82a4b025 44942
6510f4c9
GB
44943 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
44944 If search is successfully done, add to mapping.
82a4b025 44945
6510f4c9 44946 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 44947
6510f4c9
GB
44948 * make.adb:
44949 (Gnatmake): Add new local variable Mapping_File_Name.
44950 Create mapping file when using project file(s).
44951 Delete mapping file before exiting.
82a4b025 44952
6510f4c9 44953 * opt.ads (Mapping_File_Name): New variable
82a4b025 44954
6510f4c9 44955 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 44956
6510f4c9 44957 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 44958
6510f4c9 44959 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 44960
07fc65c4 44961 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 44962 (Mapping_File)
82a4b025 44963
6510f4c9 44964 * usage.adb: Add entry for new switch -gnatem.
82a4b025 44965
6510f4c9 44966 * Makefile.in: Add dependencies for fmap.o.
82a4b025 44967
9e94c78f 449682001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 44969
07fc65c4 44970 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
44971 is a package instantiation rewritten as a package body.
44972 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 44973
9e94c78f 449742001-12-17 Gary Dismuke <dismukes@gnat.com>
6510f4c9
GB
44975
44976 * layout.adb:
44977 (Compute_Length): Move conversion to Unsigned to callers.
44978 (Get_Max_Size): Convert Len expression to Unsigned after calls to
44979 Compute_Length and Determine_Range.
44980 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
44981 Compute_Length and Determine_Range.
44982 Above changes fix problem with length computation for supernull arrays
07fc65c4 44983 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 44984 conversion used by Compute_Length.
82a4b025 44985
9e94c78f 449862001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9
GB
44987
44988 * rtsfind.ads:
44989 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
44990 System.Secondary_Stack.
44991 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
44992 in HI-E mode.
44993 Remove unused entity RE_Exception_Data.
82a4b025 44994
6510f4c9 44995 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 44996
6510f4c9
GB
44997 * rident.ads (No_Secondary_Stack): New restriction.
44998
9e94c78f 449992001-12-17 Joel Brobecker <brobecke@gnat.com>
3a77b68d 45000
07fc65c4 45001 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
45002 regarding "Bit_Order Clauses" that was sent to a customer.
45003 Very interesting documentation!
82a4b025 45004
9e94c78f 450052001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d 45006
07fc65c4
GB
45007 * sem_case.adb (Choice_Image): Avoid creating improper character
45008 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 45009 fixes bombs in certain error message cases.
82a4b025 45010
9e94c78f 450112001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d
GB
45012
45013 * a-reatim.adb: Minor reformatting.
82a4b025 45014
9e94c78f 450152001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 45016
07fc65c4
GB
45017 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
45018 case where the formal is an extension of another formal in the current
3a77b68d 45019 unit or in a parent generic unit.
82a4b025 45020
9e94c78f 450212001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d 45022
07fc65c4 45023 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 45024 Minor code clean up.
82a4b025 45025
3a77b68d 45026 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 45027
9e94c78f 450282001-12-17 Gary Dismukes <dismukes@gnat.com>
3a77b68d 45029
07fc65c4 45030 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 45031 when Java_VM.
82a4b025 45032
9e94c78f 450332001-12-17 Robert Dewa <dewar@gnat.com>
3a77b68d
GB
45034
45035 * exp_attr.adb: Minor reformatting
82a4b025 45036
9e94c78f 450372001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 45038
07fc65c4 45039 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
45040 derivations nested within a child unit: verify that the parent
45041 type is declared in an outer scope.
82a4b025 45042
9e94c78f 450432001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
45044
45045 * sem_ch12.adb: Minor reformatting
82a4b025 45046
9e94c78f 450472001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 45048
07fc65c4
GB
45049 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
45050 warning if current unit is a predefined one, from which bodies may
3a77b68d 45051 have been deleted.
82a4b025 45052
9e94c78f 450532001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
45054
45055 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
45056 Fix header format. Add 2001 to copyright date.
82a4b025 45057
07fc65c4 45058 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
45059 which caused CE during compilation if checks were enabled.
45060
9e94c78f 450612001-12-17 Vincent Celier <celier@gnat.com>
79503fdd
GB
45062
45063 * make.adb:
45064 (Switches_Of): New function
45065 (Test_If_Relative_Path): New procedure
45066 (Add_Switches): Use new function Switches_Of
45067 (Collect_Arguments_And_Compile): Use new function Switches_Of.
45068 When using a project file, test if there are any relative
45069 search path. Fail if there are any.
07fc65c4
GB
45070 (Gnatmake): Only add switches for the primary directory when not using
45071 a project file. When using a project file, change directory to the
45072 object directory of the main project file. When using a project file,
45073 test if there are any relative search path. Fail if there are any.
45074 When using a project file, fail if specified executable is relative
45075 path with directory information, and prepend executable, if not
45076 specified as an absolute path, with the exec directory. Make sure
79503fdd 45077 that only one -o switch is transmitted to the linker.
82a4b025 45078
79503fdd 45079 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 45080
79503fdd
GB
45081 * prj-nmsc.adb:
45082 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
45083 when using a non standard naming scheme.
45084 (Check_Ada_Naming_Scheme): Make sure that error messages
45085 do not raise exceptions.
45086 (Is_Illegal_Append): Return True if there is no dot in the suffix.
45087 (Language_Independent_Check): Check the exec directory.
82a4b025 45088
79503fdd 45089 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 45090
79503fdd
GB
45091 * prj.ads:
45092 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
45093 (Project_Data): Add component Exec_Directory
82a4b025 45094
79503fdd 45095 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 45096
79503fdd 45097 * snames.ads: Added Exec_Dir
82a4b025 45098
9e94c78f 450992001-12-17 Robert Dewar <dewar@gnat.com>
79503fdd
GB
45100
45101 * make.adb: Minor reformatting
82a4b025 45102
79503fdd 45103 * prj-nmsc.adb: Minor reformatting
82a4b025 45104
79503fdd 45105 * snames.adb: Updated to match snames.ads
82a4b025 45106
79503fdd
GB
45107 * snames.ads: Alphebetize entries for project file
45108
9e94c78f 451092001-12-17 Ed Schonberg <schonber@gnat.com>
79503fdd 45110
07fc65c4 45111 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 45112 subprogram that was already elaborated.
82a4b025 45113
9e94c78f 451142001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 45115
07fc65c4 45116 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
45117 and Esize if object is referenced via pointer.
45118
9e94c78f 451192001-12-17 Ed Schonberg <schonber@gnat.com>
855ff2e1 45120
07fc65c4 45121 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 45122 is discrete before analyzing choices.
82a4b025 45123
9e94c78f 451242001-12-17 Joel Brobecker <brobecke@gnat.com>
855ff2e1 45125
07fc65c4
GB
45126 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
45127 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
45128 intended for the debugger.
45129 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 45130
9e94c78f 451312001-12-17 Robert Dewar <dewar@gnat.com>
855ff2e1
GB
45132
45133 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 45134
855ff2e1 45135 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 45136
855ff2e1 45137 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 45138
855ff2e1 45139 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 45140
855ff2e1 45141 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 45142
855ff2e1
GB
45143 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
45144
9e94c78f 451452001-12-17 Robert Dewar <dewar@gnat.com>
c1c22e7a
GB
45146
45147 * ali.adb: Type reference does not reset current file.
82a4b025 45148
c1c22e7a 45149 * ali.adb: Recognize and scan renaming reference
82a4b025 45150
c1c22e7a 45151 * ali.ads: Add spec for storing renaming references.
82a4b025 45152
c1c22e7a 45153 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 45154
c1c22e7a 45155 * lib-xref.adb: Implement output of renaming reference.
82a4b025 45156
c1c22e7a
GB
45157 * checks.adb:
45158 (Determine_Range): Document local variables
45159 (Determine_Range): Make sure Hbound is initialized. It looks as though
45160 there could be a real problem here with an uninitialized reference
45161 to Hbound, but no actual example of failure has been found.
82a4b025 45162
9e94c78f 451632001-12-17 Laurent Pautet <pautet@gnat.com>
c1c22e7a
GB
45164
45165 * g-socket.ads:
45166 Fix comment of Shutdown_Socket and Close_Socket. These functions
45167 should not fail silently because if they are called twice, this
45168 probably means that there is a race condition in the user program.
45169 Anyway, this behaviour is consistent with the rest of this unit.
45170 When an error occurs, an exception is raised with the error message
45171 as exception message.
45172
9e94c78f 451732001-12-17 Robert Dewar <dewar@gnat.com>
7eb7bb07 45174
07fc65c4 45175 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 45176 that it happens before modification of Sloc values for -gnatD.
82a4b025 45177
07fc65c4 45178 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 45179 so that it happens before modification of Sloc values for -gnatD.
82a4b025 45180
7eb7bb07
RD
45181 * switch.adb: Minor reformatting
45182
b6434700
RH
451832001-12-15 Richard Henderson <rth@redhat.com>
45184
45185 * sem_ch7.adb: Wrap comment.
45186
44d6a706
JM
451872001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
45188
45189 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
45190 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
45191 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
45192 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
45193 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
45194 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
45195 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
45196 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
45197 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
45198 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
45199 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
45200 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
45201 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
45202 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
45203 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
45204 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
45205 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
45206 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
45207 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
45208 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
45209 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
45210 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
45211 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
45212 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
45213 spelling errors.
45214
9e94c78f 452152001-12-14 Vincent Celier <celier@gnat.com>
226ada7a 45216
07fc65c4 45217 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 45218 put the .dg file in the same directory as the object file.
82a4b025 45219
9e94c78f 452202001-12-14 Robert Dewar <dewar@gnat.com>
226ada7a
GB
45221
45222 * osint.adb: Minor reformatting
82a4b025 45223
07fc65c4 45224 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 45225 instantiation references.
82a4b025 45226
226ada7a 45227 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 45228
07fc65c4 45229 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 45230 instantiation references
82a4b025 45231
226ada7a 45232 * ali.ads: Add spec for storing instantiation references
82a4b025 45233
226ada7a 45234 * bindusg.adb: Minor reformatting
82a4b025 45235
226ada7a 45236 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 45237
226ada7a 45238 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 45239
226ada7a 45240 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 45241
226ada7a 45242 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 45243
226ada7a
GB
45244 * csets.ads:
45245 Fix header format
45246 Add 2001 to copyright date
45247 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 45248
9e94c78f 452492001-12-14 Matt Gingell <gingell@gnat.com>
226ada7a 45250
07fc65c4 45251 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 45252 expression.
82a4b025 45253
9e94c78f 452542001-12-14 Richard Kenner <kenner@gnat.com>
226ada7a 45255
07fc65c4 45256 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 45257 if operand is CONSTRUCTOR.
82a4b025 45258
9e94c78f 452592001-12-14 Ed Schonberg <schonber@gnat.com>
226ada7a 45260
07fc65c4
GB
45261 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
45262 before emiting check on right-hand side, so that exception information
226ada7a
GB
45263 is correct.
45264
9e94c78f 452652001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 45266
07fc65c4 45267 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 45268 if just annotating types and non-constant.
82a4b025 45269
9e94c78f 452702001-12-14 Vincent Celier <celier@gnat.com>
226ada7a
GB
45271
45272 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
45273 Default_Ada_...
82a4b025 45274
07fc65c4 45275 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
45276 Remove functions.
45277 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 45278
07fc65c4 45279 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
45280 Remove functions.
45281 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
45282
9b94bf9e
JM
452832001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
45284
45285 * ChangeLog: Remove piece of diff output.
45286
9e94c78f 452872001-12-14 Geert Bosch <bosch@gnat.com>
449d2be3
GB
45288
45289 * config-lang.in: Update copyright notice
45290
45291 * layout.adb: Remove commented out code.
45292
45293 * mdllfile.ads: Update copyright notice. Fix header format.
45294
45295 * sem_case.ads: Likewise.
45296
45297 * sem_ch3.adb: Minor reformatting.
45298
9e94c78f 452992001-12-12 Geert Bosch <bosch@gnat.com>
e5bd5cb4
GB
45300
45301 * freeze.ads: Update copyright date.
45302
45303 * g-comlin.ads: Minor reformatting.
45304
45305 * gnat-style.texi: Fix typo.
45306
9e94c78f 453072001-12-12 Geert Bosch <bosch@gnat.com>
b468d8ec
GB
45308
45309 * einfo.h: Regenerate.
45310
9e94c78f 453112001-12-12 Ed Schonberg <schonber@gnat.com>
ed7da216 45312
07fc65c4 45313 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 45314 on known node types, rather than untyped fields. Further cleanups.
82a4b025 45315
9e94c78f 453162001-12-12 Robert Dewar <dewar@gnat.com>
ed7da216
GB
45317
45318 * sem_ch12.adb:
45319 (Save_Entity_Descendant): Minor comment update.
45320 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 45321 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 45322 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 45323 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 45324 reference nodes, since this field is used in such nodes.
82a4b025 45325
ed7da216
GB
45326 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
45327
9e94c78f 453282001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
45329
45330 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 45331
de76a39c 45332 * par-ch12.adb: Minor reformatting
82a4b025 45333
de76a39c 45334 * prj-dect.ads: Fix copyright header
82a4b025 45335
07fc65c4 45336 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 45337 inputs fit in 32 bits, but the result still overflows.
82a4b025 45338
de76a39c 45339 * s-fatgen.ads: Minor comment improvement
82a4b025 45340
9e94c78f 453412001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 45342
07fc65c4
GB
45343 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
45344 formal derived type, look for an inherited component from the full
de76a39c 45345 view of the parent, if any.
82a4b025 45346
9e94c78f 453472001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
45348
45349 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 45350
07fc65c4
GB
45351 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
45352 ensure that the alignment of objects with address clauses is
de76a39c
GB
45353 appropriate, and raise PE if not.
45354
07fc65c4 45355 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 45356 Exp_Pakd.Known_Aligned_Enough
82a4b025 45357
de76a39c
GB
45358 * mdllfile.ads: Minor reformatting
45359
45360 * mlib-fil.ads: Minor reformatting
82a4b025 45361
9e94c78f 453622001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 45363
07fc65c4
GB
45364 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
45365 fix to any component reference if enclosing record has non-standard
de76a39c 45366 representation.
82a4b025 45367
9e94c78f 453682001-12-12 Vincent Celier <celier@gnat.com>
de76a39c 45369
07fc65c4 45370 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 45371 Iteration
82a4b025 45372
9e94c78f 453732001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 45374
07fc65c4 45375 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 45376 sem_attr.
82a4b025 45377
9e94c78f 453782001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
45379
45380 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 45381
9e94c78f 453822001-12-12 Emmanuel Briot <briot@gnat.com>
de76a39c
GB
45383
45384 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
45385 and it adds dependencies to system.io.
82a4b025 45386
9e94c78f 453872001-12-12 Pascal Obry <obry@gnat.com>
de76a39c 45388
07fc65c4 45389 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
45390 variable name.
45391
9e94c78f 453922001-12-11 Ed Schonberg <schonber@gnat.com>
0b09835f
ES
45393
45394 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
45395 that is the parent of other generics, the instance body replaces the
45396 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
45397 that is visible in clients and within the body.
45398
9e94c78f 453992001-12-11 Vincent Celier <celier@gnat.com>
598c3446
GB
45400
45401 * gnatmain.adb: Initial version.
82a4b025 45402
598c3446 45403 * gnatmain.ads: Initial version.
82a4b025 45404
598c3446 45405 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 45406
598c3446 45407 * snames.adb: Updated to match snames.ads.
82a4b025 45408
598c3446 45409 * snames.ads: Added Gnatstub.
82a4b025 45410
9e94c78f 454112001-12-11 Vincent Celier <celier@gnat.com>
598c3446 45412
07fc65c4 45413 * prj-attr.adb (Initialization_Data): Change name from
598c3446 45414 Initialisation_Data.
82a4b025 45415
9e94c78f 454162001-12-11 Emmanuel Briot <briot@gnat.com>
598c3446
GB
45417
45418 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
45419 + and * applied to backslashed expressions like \r.
82a4b025 45420
9e94c78f 454212001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
598c3446 45422
07fc65c4 45423 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 45424 subtype of String_List.
82a4b025 45425
9e94c78f 454262001-12-11 Robert Dewar <dewar@gnat.com>
598c3446
GB
45427
45428 * g-os_lib.ads: Change copyright to FSF
45429 Add comments for String_List type
82a4b025 45430
9e94c78f 454312001-12-11 Vincent Celier <celier@gnat.com>
598c3446 45432
07fc65c4 45433 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
45434 string to the buffer).
45435
9e94c78f 454362001-12-11 Ed Schonberg <schonber@gnat.com>
7fb754a1
GB
45437
45438 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
45439 sem_attr.
82a4b025 45440
7fb754a1 45441 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
45442 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
45443 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
45444 constraint error.
45445
9e94c78f 454462001-12-11 Robert Dewar <dewar@gnat.com>
7fb754a1 45447
07fc65c4 45448 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 45449 handled.
82a4b025 45450
9e94c78f 454512001-12-11 Ed Schonber <schonber@gnat.com>
7fb754a1 45452
07fc65c4 45453 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 45454 renamed unit before checking for recursive instantiations.
82a4b025 45455
9e94c78f 454562001-12-11 Emmanuel Briot <briot@gnat.com>
7fb754a1
GB
45457
45458 * prj.ads: Add comments for some of the fields.
45459
9e94c78f 454602001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc 45461
07fc65c4 45462 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 45463 the main unit if they are not otherwise referenced.
82a4b025 45464
9e94c78f 454652001-12-11 Ed Schonberg <schonber@gnat.com>
0873bafc 45466
07fc65c4 45467 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 45468 code and diagnose additional illegal uses
82a4b025 45469
07fc65c4 45470 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 45471 object only if the prefix is.
82a4b025 45472
9e94c78f 454732001-12-11 Vincent Celier <celier@gnat.com>
0873bafc
GB
45474
45475 * g-diopit.adb: Initial version.
82a4b025 45476
0873bafc 45477 * g-diopit.ads: Initial version.
82a4b025 45478
0873bafc
GB
45479 * g-dirope.adb:
45480 (Expand_Path): Avoid use of Unbounded_String
45481 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 45482
0873bafc 45483 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 45484
9e94c78f 454852001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
45486
45487 * sem_attr.adb: Minor reformatting
45488
9e94c78f 454892001-12-11 Ed Schonberg <schonber@gnat.com>
d087cd96
GB
45490
45491 * sem_ch3.adb: Clarify some ???.
82a4b025 45492
9e94c78f 454932001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96 45494
07fc65c4 45495 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 45496 Exp_Pakd.Known_Aligned_Enough
82a4b025 45497
07fc65c4 45498 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
45499 version is moved to Exp_Ch13.
45500
9e94c78f 455012001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96
GB
45502
45503 * einfo.ads: Minor reformatting
82a4b025 45504
d087cd96 45505 * exp_ch5.adb: Add comment for previous.change
82a4b025 45506
d087cd96 45507 * ali.adb: New interface for extended typeref stuff.
82a4b025 45508
d087cd96 45509 * ali.ads: New interface for typeref stuff.
82a4b025 45510
d087cd96 45511 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 45512
d087cd96 45513 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 45514
d087cd96 45515 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 45516
07fc65c4
GB
45517 * lib-xref.adb: Extend generation of <..> notation to cover
45518 subtype/object types. Note that this is a complete rewrite,
45519 getting rid of the very nasty quadratic algorithm previously
d087cd96 45520 used for derived type output.
82a4b025 45521
07fc65c4
GB
45522 * lib-xref.ads: Extend description of <..> notation to cover
45523 subtype/object types. Uses {..} for these other cases.
d087cd96 45524 Also use (..) for pointer types.
82a4b025 45525
d087cd96 45526 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 45527
07fc65c4 45528 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
45529 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
45530
9e94c78f 455312001-12-11 Vincent Celier <celier@gnat.com>
290986ed
GB
45532
45533 * gnatcmd.adb:
45534 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
45535 Changed /BIND_ONLY to /ACTIONS=BIND
45536 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 45537
290986ed
GB
455382001-12-11 Ed Schonberg <schonber@gnat.com>
45539
45540 * sem_ch8.adb (Find_Selected_Component): improved search for a
45541 candidate package in case of error.
82a4b025 45542
290986ed
GB
45543 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
45544 chain back on scope stack before reinstalling use clauses.
82a4b025 45545
290986ed
GB
45546 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
45547 is enabled, do not kill the code for the condition, to preserve
45548 warning.
45549
9e94c78f 455502001-12-11 Robert Dewar <dewar@gnat.com>
84157f51 45551
07fc65c4 45552 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
45553 of conversion, not to result of conversion.
45554
9e94c78f 455552001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 45556
07fc65c4
GB
45557 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
45558 before freezing parent. If the declarations are mutually recursive,
45559 an access to the current record type may be frozen before the
84157f51
GB
45560 derivation is complete.
45561
9e94c78f 455622001-12-05 Vincent Celier <celier@gnat.com>
7ffa903f 45563
07fc65c4 45564 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 45565 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 45566
7ffa903f
VC
45567 * opt.ads:
45568 (Bind_Only): New Flag
45569 (Link_Only): New flag
82a4b025 45570
07fc65c4 45571 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 45572 and -l (Link_Only)
82a4b025 45573
7ffa903f 45574 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 45575
7ffa903f
VC
45576 * make.adb:
45577 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
45578 (Gnatmake): Set the step flags. Only perform a step if the
45579 corresponding step flag is True.
45580 (Scan_Make_Arg): Reset the bind and link step flags when -u
45581 or -gnatc has been specified.
45582
9e94c78f 455832001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 45584
07fc65c4 45585 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 45586 get bounds from right operand.
82a4b025 45587
f91b40db 45588 * sem_eval.adb: Minor reformatting
82a4b025 45589
07fc65c4 45590 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 45591 than Index'First, its lower bound may be different from 1.
82a4b025 45592
07fc65c4 45593 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 45594 and C48009J
82a4b025 45595
9e94c78f 455962001-12-05 Vincent Celier <celier@gnat.com>
f91b40db
GB
45597
45598 * prj-nmsc.adb Minor reformatting
82a4b025 45599
07fc65c4 45600 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 45601 set and libraries are not supported.
82a4b025 45602
9e94c78f 456032001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 45604
07fc65c4
GB
45605 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
45606 private view explicitly, so the back-end can treat as a global
f91b40db
GB
45607 when appropriate.
45608
9e94c78f 456092001-12-05 Ed Schonberg <schonber@gnat.com>
45d04cbb
GB
45610
45611 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
45612 unit, always replace instance node with new body, for ASIS use.
45613
9e94c78f 456142001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 45615
07fc65c4
GB
45616 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
45617 libraries are not supported and both attributes Library_Name and
45d04cbb 45618 Library_Dir are specified.
82a4b025 45619
07fc65c4 45620 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 45621 first term.
82a4b025 45622
45d04cbb
GB
45623 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
45624 (prj-nmsc is now importing MLib.Tgt)
82a4b025 45625
45d04cbb
GB
45626 * prj-proc.adb: Put the change indicated above that was forgotten.
45627
9e94c78f 456282001-12-05 Robert Dewar <dewar@gnat.com>
84436014
RD
45629
45630 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
45631
9e94c78f 456322001-12-05 Ed Schonberg <schonber@gnat.com>
7ae0dcd8
ES
45633
45634 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
45635 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 45636
7ae0dcd8
ES
45637 * sem_ch3.adb: Minor reformatting
45638
9e94c78f 456392001-12-05 Robert Dewar <dewar@gnat.com>
c9a4817d 45640
07fc65c4 45641 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 45642 Minor reformatting
82a4b025 45643
c9a4817d
RD
45644 * exp_ch6.adb: Minor reformatting
45645 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
45646 a parameter whose root type is System.Address, since treating such
45647 subprograms as pure in the code generator is almost surely a mistake
45648 that will lead to unexpected results.
82a4b025 45649
07fc65c4 45650 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 45651 change handling of conversions.
82a4b025 45652
c9a4817d
RD
45653 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
45654
9e94c78f 456552001-12-05 Ed Schonberg <schonber@gnat.com>
2514b839 45656
07fc65c4
GB
45657 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
45658 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
45659 declaration.
45660
9e94c78f 456612001-12-05 Robert Dewar <dewar@gnat.com>
457b6274 45662
07fc65c4 45663 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
45664 Fixes compilation abandoned bomb in B24009B.
45665
9e94c78f 456662001-12-05 Ed Schonberg <schonber@gnat.com>
19349925
ES
45667
45668 * sem_ch12.adb:
45669 Document use of Associated_Node on Selected_Components.
45670 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
45671 to clarify use of untyped descendant fields.
45672
9e94c78f 456732001-12-05 Robert Dewar <dewar@gnat.com>
6663c393
RD
45674
45675 * prj-dect.ads: Add ??? comment
45676 Add 2001 to copyright notice (was not done in after all)
82a4b025 45677
6663c393 45678 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 45679
6663c393 45680 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 45681
6663c393
RD
45682 * snames.ads: Minor reformatting
45683
9e94c78f 456842001-12-05 Geert Bosch <bosch@gnat.com>
d7b2a6af
GB
45685
45686 * snames.adb: Autoupdate
45687
9e94c78f 456882001-12-05 Vincent Celier <celier@gnat.com>
fbc9a404
VC
45689
45690 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 45691
fbc9a404 45692 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 45693
fbc9a404 45694 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 45695
fbc9a404 45696 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 45697
07fc65c4 45698 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 45699 Tok_Extends.
82a4b025 45700
fbc9a404 45701 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 45702
fbc9a404 45703 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 45704
fbc9a404 45705 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 45706
fbc9a404
VC
45707 * snames.ads: Change modifying to extends.
45708
9e94c78f 457092001-12-05 Robert Dewar <dewar@gnat.com>
7cff0b1b 45710
07fc65c4 45711 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 45712 do this after all.
82a4b025 45713
07fc65c4 45714 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
45715 do this after all. Add 2001 to copyright notice
45716
9e94c78f 457172001-12-04 Geert Bosch <bosch@gnat.com>
4f56ebb7
GB
45718
45719 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
45720
9e94c78f 457212001-12-04 Robert Dewar <dewar@gnat.com>
053defdf 45722
07fc65c4
GB
45723 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
45724 location if we already have errors. Stops some cases of cascaded
053defdf 45725 errors.
82a4b025 45726
053defdf
RD
45727 * errout.adb: Improve comment.
45728
9e94c78f 457292001-12-04 Robert Dewar <dewar@gnat.com>
f311e166
RD
45730
45731 * sem_ch12.adb:
45732 (Analyze_Formal_Type_Definition): Defend against Error.
45733 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 45734
07fc65c4 45735 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
45736 remove following semicolon if present. Removes cascaded error.
45737
9e94c78f 457382001-12-04 Douglas B. Rupp <rupp@gnat.com>
d61bd65a
DR
45739
45740 * bindgen.adb:
45741 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
45742 exceptions equals 0.
45743 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
45744 Fixes PIWG E tests (which have to be run with -gnatL).
45745
9e94c78f 457462001-12-04 Robert Dewar <dewar@gnat.com>
4ba603e2
RD
45747
45748 * einfo.ads: Minor reformatting
45749
9e94c78f 457502001-12-04 Ed Schonberg <schonber@gnat.com>
57568d91 45751
07fc65c4
GB
45752 * einfo.ads: Block_Node points to the identifier of the block, not to
45753 the block node itself, to preserve the link when the block is
45754 rewritten, e.g. within an if-statement with a static condition.
82a4b025 45755
07fc65c4 45756 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 45757 entity using new meaning of Block_Node.
82a4b025 45758
07fc65c4 45759 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
45760 identifier of block node, rather than to node itself.
45761
9e94c78f 457622001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 45763
0815d36a
GD
45764 * layout.adb:
45765 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
45766 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 45767 because the Vname component does not exist at this point and will
0815d36a
GD
45768 fail name resolution. Also set Analyzed.
45769 Remove with and use of Sem_Res.
45770
9e94c78f 457712001-12-04 Arnaud Charlet <charlet@gnat.com>
edc0f304
AC
45772
45773 * Makefile.in: (HIE_SOURCES): add s-fat*.
45774
9e94c78f 457752001-12-04 Robert Dewar <dewar@gnat.com>
32213142
RD
45776
45777 * sem_attr.adb:
45778 (Compile_Time_Known_Attribute): New procedure.
45779 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
45780 proper range check.
45781
9e94c78f 457822001-12-04 Ed Schonberg <schonber@gnat.com>
c0def2ad 45783
07fc65c4 45784 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
45785 processing discriminants to diagnose illegal default values.
45786
9e94c78f 457872001-12-04 Ed Schonberg <schonber@gnat.com>
ee0a48c5 45788
07fc65c4
GB
45789 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
45790 access discriminant within a type extension that constrains its
ee0a48c5
ES
45791 parent discriminants.
45792
9e94c78f 457932001-12-04 Ed Schonberg <schonber@gnat.com>
dd5875a6 45794
07fc65c4 45795 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 45796 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 45797
07fc65c4 45798 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
45799 type definition is illegal.
45800 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
45801 misplaced.
45802
9e94c78f 458032001-12-04 Ed Schonberg <schonber@gnat.com>
c2a41e57 45804
07fc65c4 45805 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
45806 constants.
45807
9e94c78f 458082001-12-04 Robert Dewar <dewar@gnat.com>
0ae84753
RD
45809
45810 * errout.adb: Minor reformatting
45811
9e94c78f 458122001-12-04 Robert Dewar <dewar@gnat.com>
63db260e
RD
45813
45814 * exp_util.adb: Minor reformatting from last change
82a4b025 45815
07fc65c4
GB
45816 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
45817 which is a rewriting of an expression, traverse the original
63db260e
RD
45818 expression to remove warnings that may have been posted on it.
45819
9e94c78f 458202001-12-04 Ed Schonberg <schonber@gnat.com>
c6d289f4 45821
07fc65c4 45822 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
45823 record that has other packed components.
45824
9e94c78f 458252001-12-04 Douglass B. Rupp <rupp@gnat.com>
5917e80d
DR
45826
45827 * adaint.c: Minor cleanups.
45828
9e94c78f 458292001-12-04 Douglass B. Rupp <rupp@gnat.com>
2c70f9dd
DR
45830
45831 * adaint.c: Do not use utime.h on vxworks.
45832
9e94c78f 458332001-12-04 Arnaud Charlet <charlet@gnat.com>
e59b3387 45834
07fc65c4 45835 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
45836 more confusion than it solves.
45837
9e94c78f 458382001-12-04 Geert bosch <bosch@gnat.com>
e288604a
GB
45839
45840 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
45841
5ac21013
GB
458422001-12-04 Geert Bosch <bosch@gnat.com>
45843
07fc65c4 45844 * Makefile.in (update-sources): New target.
5ac21013
GB
45845 For use by gcc_release script.
45846
9e94c78f 458472001-12-04 Ed Schonberg <schonber@gnat.com>
7dd5bd5e 45848
07fc65c4 45849 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
45850 a configuration pragma, it is now legal wherever a pragma can appear.
45851
a078a589
ZW
458522001-12-04 Zack Weinberg <zack@codesourcery.com>
45853
45854 * Makefile.in: Don't set ALL. Delete @cross_defines@,
45855 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
45856 is now @CROSS@ -DIN_GCC; update comment.
45857
9e94c78f 458582001-12-04 Robert Dewar <dewar@gnat.com>
0839863c
GB
45859
45860 * einfo.adb (Has_Pragma_Pure_Function): New flag.
45861 Fix problem that stopped ceinfo from working
82a4b025 45862
0839863c 45863 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 45864
0839863c
GB
45865 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
45866
9e94c78f 458672001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
45868
45869 * gnatchop.adb:
45870 (File_Time_Stamp): New procedure.
45871 (Preserve_Mode): New boolean.
45872 (Write_Unit): Pass time stamp.
45873 Implement -p switch (preserve time stamps).
82a4b025 45874
9678de49 45875 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 45876
9678de49 45877 * gnatchop.adb: Do usage info for -p switch
82a4b025 45878
9678de49 45879 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 45880
9678de49 45881 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 45882
9678de49
DR
45883 * adaint.h: Fix typo
45884
9e94c78f 458852001-12-03 Robert Dewar <dewar@gnat.com>
3b9a13c4 45886
667e5c5d 45887 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 45888 have Associated_Node.
3b9a13c4 45889
9e94c78f 458902001-12-03 Robert Dewar <dewar@gnat.com>
767b404e
RD
45891
45892 * prj-proc.adb: Minor reformatting
667e5c5d 45893
767b404e
RD
45894 * make.adb: Minor reformatting
45895
9e94c78f 458962001-12-03 Geert Bosch <bosch@gnat.com>
11ac71ba 45897
667e5c5d 45898 * make.adb: Minor reformatting.
11ac71ba 45899
ef3d4d6e 459002001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
45901
45902 * sem_ch12.adb: Minor reformatting
45903
9e94c78f 459042001-12-03 Ed Schonberg <schonber@gnat.com>
d6d32b24 45905
667e5c5d
AJ
45906 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
45907 push Standard on the stack before analyzing the instance body,
d6d32b24 45908 in order to have a clean visibility environment.
667e5c5d
AJ
45909
45910 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 45911
9e94c78f 459122001-12-03 Ed Schonberg <schonber@gnat.com>
13f08f03 45913
667e5c5d 45914 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
45915 instantiation of a body that contains an inlined body.
45916
9e94c78f 459172001-12-03 Ed Schonberg <schonber@gnat.com>
3bd6c100
ES
45918
45919 * sem_ch12.adb:
45920 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
45921 to prevent freezing within formal packages.
45922 (Freeze_Subprogram_Body): If body comes from another instance that
45923 appeared before its own body, place freeze node at end of current
45924 declarative part, to prevent a back-end crash.
45925 (Inline_Instance_Body): Handle properly a package instance within
45926 a subprogram instance that is a child unit.
45927
58d07d8f
GS
459282001-12-01 Graham Stott <grahams@redhat.com>
45929
45930 * Makefile.in (misc.o): Add missing $(srcdir) prefix
45931 and add optabs.h dependency.
45932
45933 * misc.c: Include optabs.h
45934 (gnat_tree_code_type): Make static and const.
45935 (gnat_tree_code_length): Likewise.
45936 (gnat_tree_code_name): Likewise.
45937 (update_setjmp_buf): Obtain operands mode from insn_data.
45938
c87222f0
RH
459392001-11-29 Richard Henderson <rth@redhat.com>
45940
45941 * init.c: Remove obsolete dwarf2 frame.h section.
45942
d3945f0a
JM
459432001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
45944
45945 * Make-lang.in (ada.generated-manpages): New dummy target.
45946
9e94c78f 459472001-11-29 Ed Schonberg <schonber@gnat.com>
9f639397 45948
667e5c5d
AJ
45949 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
45950 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
45951 ACATS B460005.
45952
9e94c78f 459532001-11-28 Geert Bosch <bosch@gnat.com>
c835e5c6
GB
45954
45955 * init.c: Minor whitespace changes.
45956
9e94c78f 459572001-11-28 Doug Rupp <rupp@gnat.com>
49bb4548 45958
667e5c5d 45959 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
45960 signal stack.
45961
ea2417e5
ZW
459622001-11-28 Zack Weinberg <zack@codesourcery.com>
45963
45964 * misc.c (gnat_expand_constant): Move declaration above
45965 definition of lang_hooks.
45966 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
45967 (gnat_init): lang_expand_constant no longer exists.
45968
45969 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
45970 always have vprintf.
45971 (gnat_init): Always call set_internal_error_function.
45972
f8e0aa73
AJ
459732001-11-27 Andreas Jaeger <aj@suse.de>
45974
45975 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
45976
d99b0e79
LG
459772001-11-27 Laurent Guerby <guerby@acm.org>
45978
45979 * Makefile.in: Regenerate Ada dependencies.
45980
3f0496e5
RH
459812001-11-26 Richard Henderson <rth@redhat.com>
45982
45983 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
45984 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
45985 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
45986
92fa4733
LG
459872001-11-25 Laurent Guerby <guerby@acm.org>
45988
45989 * sysdep.c (rts_get_*): Fix style.
45990
07626501
LG
459912001-11-19 Laurent Guerby <guerby@acm.org>
45992
45993 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
45994 since it is of no apparent use and cause warnings.
45995
22703ccc
NB
459962001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
45997
45998 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
45999 static too.
46000 (gnat_init): Don't return NULL.
46001 (finish_parse): Remove.
46002
b0df4321
LG
460032001-11-17 Laurent Guerby <guerby@acm.org>
46004
46005 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
46006 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
46007 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
46008 * lang-spec.h: Add missing struct field to silence warnings.
46009 * sysdep.c (rts_get_*): Provide K&R prototype.
46010 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
46011 * traceback.c (Unlock_Task, Lock_Task): Likewise.
46012 * tracebak.c (__gnat_backtrace): Remove unused variable.
46013 * utils.c (end_subprog_body): Move to K&R style.
46014
d215024f
RK
46015Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
46016
46017 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
46018
f5e99456
NB
460192001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
46020
46021 * misc.c (gnat_init): Change prototype. Include the
46022 functionality of the old init_parse and init_decl_processing.
46023 (gnat_init_decl_processing): New prototype.
46024 (init_parse): Remove.
46025 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
46026
5d69f816
NB
460272001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
46028
46029 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
46030 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
46031 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
46032 set_yydebug): Remove.
46033
3ac88239
NB
460342001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
46035
46036 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
46037 (struct lang_hooks): Constify.
46038 (language_string, lang_identify): Remove.
46039 * utils.c (init_decl_processing): Update.
46040
d23c55c2
NB
460412001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
46042
46043 * misc.c: Include langhooks-def.h.
46044 * Makefile.in: Update.
46045
9e94c78f 460462001-10-30 Robert Dewar <dewar@gnat.com>
04a1b79c
RD
46047
46048 * style.adb:
46049 (Check_Identifier): Rewrite circuit to be compatible with use of letters
46050 in the upper half of ASCII.
46051 (Check_Identifier): Minor reformatting
46052
9e94c78f 460532001-10-30 Geert Bosch <bosch@gnat.com>
81fa2d39 46054
f8e0aa73 46055 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
46056 Freeze_Entity.
46057
9e94c78f 460582001-10-30 Robert Dewar <dewar@gnat.com>
ffc5527f
RD
46059
46060 * a-reatim.ads: Minor reformatting
46061
9e94c78f 460622001-10-30 Robert Dewar <dewar@gnat.com>
865335eb 46063
f8e0aa73 46064 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
46065 undocumented declarations.
46066
9e94c78f 460672001-10-30 Pascal Obry <obry@gnat.com>
5e257178 46068
f8e0aa73 46069 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
46070 to the binder and linker.
46071 Minor style fix.
f8e0aa73 46072
5e257178
PO
46073 * mdll.ads: Fix layout. Update copyright notice.
46074
46075 * mdll.adb: Fix layout. Update copyright notice.
46076
9e94c78f 460772001-10-30 Robert Dewar <dewar@gnat.com>
1753e0ad
RD
46078
46079 * usage.adb: Minor fix to output for -gnaty.
46080
9e94c78f 460812001-10-30 Ed Schonberg <schonber@gnat.com>
84bfdde0 46082
f8e0aa73
AJ
46083 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
46084 to accommodate all its possible values.
84bfdde0 46085
f8e0aa73 46086 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
46087 and of small absolute values of T.
46088
9e94c78f 460892001-10-30 Richard Kenner <kenner@gnat.com>
c296e5fc 46090
f8e0aa73
AJ
46091 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
46092 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
46093 fixes ACATS failures.
46094
9e94c78f 460952001-10-30 Geert Bosch <bosch@gnat.com>
07c809df
GB
46096
46097 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
46098 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
46099
9e94c78f 461002001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 46101
54d22416 46102 * bindusg.adb: Undocument -f switch.
f8e0aa73 46103
54d22416 46104 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
46105
46106 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 46107 obsolescent.
f8e0aa73 46108
54d22416 46109 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 46110
54d22416
RD
46111 * gnatbind.adb: Minor update of warning msg.
46112
9e94c78f 461132001-10-30 Vincent Celier <celier@gnat.com>
af5cf6f8 46114
f8e0aa73 46115 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 46116 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 46117 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
46118 or MEDIUM or HIGH)
46119
9e94c78f 461202001-10-30 Geert Bosch <bosch@gnat.com>
984bc4c3
GB
46121
46122 * decl.c: Minor whitespace fixes.
46123
9e94c78f 461242001-10-30 Richard Kenner <kenner@gnat.com>
5dece937
RK
46125
46126 * utils2.c (build_allocator): Test for SIZE overflow in array case too
46127
9e94c78f 461282001-10-30 Geert Bosch <bosch@gnat.com>
de4bf6cb 46129
f8e0aa73 46130 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 46131 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 46132
de4bf6cb
GB
46133 * layout.adb:
46134 (Get_Max_Size): Use variant record for tracking value/expression.
46135 Makes logic clearer and prevents warnings for uninitialized variables.
46136 (Layout_Array_Type): Use variant record for tracking value/expression.
46137 Makes logic clearer and prevents warnings for uninitialized variables.
46138
9e94c78f 461392001-10-30 Robert Dewar <dewar@gnat.com>
f5e44987
RD
46140
46141 * lib.adb: Minor reformatting
46142
46143 * s-taprop.ads: Minor reformatting
46144
45659035 461452001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 46146
45659035
GB
46147 * init.c:
46148 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
46149 const.
46150 (_gnat_error_handler): Make MSG const.
46151
9e94c78f 461522001-10-29 Richard Kenner <kenner@gnat.com>
45659035
GB
46153
46154 * sysdep.c: Fix localtime_r problem on LynxOS.
46155 Also remove #elif to avoid warnings.
f8e0aa73
AJ
46156
46157 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 46158 used by this.
f8e0aa73 46159
45659035
GB
46160 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
46161
638e383e
JM
461622001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
46163
46164 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
46165 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
46166 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
46167 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
46168 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
46169 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
46170 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
46171 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
46172 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
46173 types.ads, urealp.adb: Fix spelling errors.
46174
9e94c78f 461752001-10-27 Laurent Guerby <guerby@acm.org>
97f6baa0
LG
46176
46177 * trans.c (gigi): Fix non determinism leading to bootstrap
46178 comparison failures for debugging information.
46179
46b58b8c
FW
461802001-10-26 Florian Weimer <fw@deneb.enyo.de>
46181
46182 * gnat_rm.texi: Use @./@: where appropriate.
46183
9e94c78f 461842001-10-26 Robert Dewar <dewar@gnat.com>
30151c7b
RD
46185
46186 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
46187
9e94c78f 461882001-10-26 Richard Kenner <kenner@gnat.com>
c0b1738d
RK
46189
46190 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
46191
9e94c78f 461922001-10-26 Richard Kenner <kenner@gnat.com>
5b09c153 46193
f8e0aa73 46194 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
46195 implication that compiler is modifying the size.
46196
9e94c78f 461972001-10-26 Robert Dewar <dewar@gnat.com>
4d553668
RD
46198
46199 * prj-util.adb: Minor reformatting. Fix bad header format.
46200
9e94c78f 462012001-10-26 Robert Dewar <dewar@gnat.com>
3e542a58
RD
46202
46203 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 46204
3e542a58 46205 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
46206
46207 * sem_ch12.adb: Change Node4 to Associated_Node. Change
46208 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
46209 much more narrowly in places where needed. These are cleanups.
46210
9e94c78f 462112001-10-26 Joel Brobecker <brobecke@gnat.com>
0bf08bfe
JB
46212
46213 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 46214
0bf08bfe
JB
46215 * 5ztaprop.adb:
46216 (Initialize_TCB): Initialize thread ID to null, to be able to verify
46217 later that this field has been set.
46218 (Finalize_TCB): ditto.
46219 (Suspend_Task): Verify that the thread ID is not null before using it.
46220 (Resume_Task): ditto.
f8e0aa73 46221
0bf08bfe
JB
46222 * s-tasdeb.adb:
46223 (Resume_All_Tasks): Lock the tasks list before using it.
46224 (Suspend_All_Tasks): ditto.
46225
9e94c78f 462262001-10-26 Richard Kenner <kenner@gnat.com>
7a3a8c06 46227
f8e0aa73 46228 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
46229 Make constant variant of designated type for Is_Access_Constant.
46230 Call update_pointer_to with main variant.
f8e0aa73
AJ
46231
46232 * trans.c (process_freeze_entity, process_type):
7a3a8c06 46233 Call update_pointer_to on main variant.
f8e0aa73 46234
7a3a8c06
RK
46235 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
46236 If main variant, update all other variants.
f8e0aa73
AJ
46237
46238 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
46239 TREE_STATIC.
46240
9e94c78f 462412001-10-26 Robert Dewar <dewar@gnat.com>
a160babb
RD
46242
46243 * prj-util.adb: Minor reformatting
46244
9e94c78f 462452001-10-26 Robert Dewar <dewar@gnat.com>
b403bd17
RD
46246
46247 * prj-util.adb: Minor reformatting
46248
9e94c78f 462492001-10-26 Robert Dewar <dewar@gnat.com>
5fc3b4c7
RD
46250
46251 * prj-attr.adb: Minor reformatting throughout
46252
9e94c78f 462532001-10-26 Robert Dewar <dewar@gnat.com>
8c736034
RD
46254
46255 * prj-attr.ads: Minor reformatting
46256 Add ??? comment (this whole spec has almost no comments)
46257
9e94c78f 462582001-10-26 Vincent Celier <celier@gnat.com>
47d5b6ed 46259
f8e0aa73 46260 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 46261 ("//") that precede the drive letter on Interix.
47d5b6ed 46262
9e94c78f 462632001-10-26 Geert Bosch <bosch@gnat.com>
41af791f
GB
46264
46265 * gnat_rm.texi: Add GNAT Reference Manual.
46266
9e94c78f 462672001-10-25 Robert Dewar <dewar@gnat.com>
ed4a1468 46268
f8e0aa73 46269 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 46270 is Error. Similar change for other renaming cases.
ed4a1468 46271
9e94c78f 462722001-10-25 Robert Dewar <dewar@gnat.com>
24377ae4
RD
46273
46274 * s-atacco.ads: Add pragma Inline_Always for functions.
46275 Fix header format. Add copyright 2001
46276
9e94c78f 462772001-10-25 Ed Schonberg <schonber@gnat.com>
fef3204e 46278
f8e0aa73 46279 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 46280 return Error rather than Empty so that analysis can proceed.
fef3204e 46281
9e94c78f 462822001-10-25 Ed Schonberg <schonber@gnat.com>
dfc69d80 46283
f8e0aa73 46284 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 46285 messages when a unit appears in its own context.
dfc69d80 46286
9e94c78f 462872001-10-25 Ed Schonberg <schonber@gnat.com>
5a15af62 46288
f8e0aa73 46289 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 46290 entity to specification, so that semantic analysis can proceed.
5a15af62 46291
9e94c78f 462922001-10-25 Robert Dewar <dewar@gnat.com>
2b881d53 46293
f8e0aa73 46294 * sem_util.adb
b4f94ac1 46295 (Defining_Entity): Deal with Error.
2b881d53
RD
46296 (Process_End_Label): Deal with bad end label for.
46297
9e94c78f 462982001-10-25 Ed Schonberg <schonber@gnat.com>
578053f2 46299
f8e0aa73 46300 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
46301 instance but callee is not declared in the generic unit.
46302
9e94c78f 463032001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
46304
46305 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
46306 enclosing unit, which may already be different from the calling unit.
46307
9e94c78f 463082001-10-25 Geert Bosch <bosch@gnat.com>
3de6e6da
GB
46309
46310 * 4gintnam.ads: fix header format.
46311
9e94c78f 463122001-10-25 Ed Schonberg <schonber@gnat.com>
6f311316 46313
f8e0aa73 46314 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
46315 operation on the result of a parameterless call, perform elaboration
46316 check after the node has been properly rewritten.
f8e0aa73
AJ
46317
46318 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
46319 inlined within the generic tree, the defining identifier is not a
46320 compilation_unit.
6f311316 46321
9e94c78f 463222001-10-25 Ed Schonberg <schonber@gnat.com>
17be0cdf 46323
f8e0aa73 46324 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 46325 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
46326
46327 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 46328 compatibility by retrieving the access type of the generic copy.
17be0cdf 46329
9e94c78f 463302001-10-25 Robert Dewar <dewar@gnat.com>
ce9e9122
RD
46331
46332 * sem_ch3.adb:
46333 (Analyze_Number_Declaration): Handle error expression.
46334 (Signed_Integer_Type_Declaration): Handle error bound.
46335 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 46336
ce9e9122
RD
46337 * sem_util.adb (Get_Index_Bounds): Check for Error.
46338
9e94c78f 463392001-10-25 Robert Dewar <dewar@gnat.com>
e12fbc9e 46340
f8e0aa73 46341 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
46342 in no run time mode.
46343
9e94c78f 463442001-10-25 Pascal Obry <obry@gnat.com>
52b80488 46345
f8e0aa73 46346 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 46347 mode case for ALLOC case.
f8e0aa73
AJ
46348
46349 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 46350 all platforms. Improvement of last change.
52b80488 46351
9e94c78f 463522001-10-25 Robert Dewar <dewar@gnat.com>
316ad9c5
RD
46353
46354 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
46355
1a7e4df4
GB
463562001-10-25 Geert Bosch <bosch@gnat.com>
46357
46358 * osint.adb (Is_Relative): Remove duplicate.
46359
9e94c78f 463602001-10-25 Pascal Obry <obry@gnat.com>
90a9fff2 46361
f8e0aa73 46362 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 46363 pathnames in UNIX and DOS style with drive letter.
90a9fff2 46364 (Is_Relative): new routine.
f8e0aa73 46365
90a9fff2 46366 * osint.adb: Minor reformatting
f8e0aa73
AJ
46367
46368 * osint.adb (Is_Relative): implementation using
b4f94ac1 46369 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 46370
9e94c78f 463712001-10-25 Pascal Obry <obry@gnat.com>
5c1ba4cc 46372
f8e0aa73 46373 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 46374 original Path and the translated one.
f8e0aa73 46375
5c1ba4cc
PO
46376 * g-dirope.adb: (Base_Name): add some comments.
46377
9e94c78f 463782001-10-25 Robert Dewar <dewar@gnat.com>
a7fb206d 46379
f8e0aa73 46380 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 46381 in HIE mode, avoids compilation abandoned message
f8e0aa73 46382
a7fb206d 46383 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 46384
a7fb206d
RD
46385 * exp_imgv.adb: Correct typo in previous change (not my day!)
46386
9e94c78f 463872001-10-25 Robert Dewar <dewar@gnat.com>
e6a7e62e
RD
46388
46389 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
46390
9e94c78f 463912001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 46392
f8e0aa73 46393 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 46394 declarations. This is more uniform with other GNAT spec.
75c09e7d 46395
0d2b8e0b 463962001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
46397
46398 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
46399
0d2b8e0b 464002001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
46401
46402 * Makefile.in (tools, gnattools): Remove gnatmem.
46403
17ed6335
RH
464042001-10-17 Richard Henderson <rth@redhat.com>
46405
46406 * Makefile.in (misc.o): Depend on langhooks.h.
46407 * misc.c: Include it.
46408 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
46409 (LANG_HOOKS_DECODE_OPTION): New.
46410 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
46411
f2436274
FW
464122001-10-16 Florian Weimer <fw@deneb.enyo.de>
46413
46414 * trans.c (tree_transform): Adjust to recent change in
46415 expand_asm_operands to implement named asm operands.
46416
b14127e6
ES
464172001-10-11 Ed Schonberg <schonber@gnat.com>
46418
f8e0aa73 46419 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
46420 renaming of discriminant for mutable record type.
46421
e70ee92a
RD
464222001-10-11 Robert Dewar <dewar@gnat.com>
46423
46424 * validsw.adb: Properly save -gnatVn status.
46425
9e94c78f 464262001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 46427
9a5621d7
RD
46428 * usage.adb: Add lines for V switch.
46429
f8e0aa73 46430 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
46431 (/VALIDITY_CHECKING).
46432
9e94c78f 464332001-10-11 Ed Schonberg <schonber@gnat.com>
45667f04 46434
f8e0aa73 46435 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
46436 an extension of System is known to be visible.
46437
9e94c78f 464382001-10-11 Ed Schonberg <schonber@gnat.com>
c3de5c4c 46439
f8e0aa73 46440 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
46441 properly. Fixes regression on ACATS C34005G.
46442
9e94c78f 464432001-10-11 Robert Dewar <dewar@gnat.com>
4fa964a6 46444
f8e0aa73 46445 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
46446 loop in generic instance, since this is likely not very useful.
46447
9e94c78f 464482001-10-11 Robert Dewar <dewar@gnat.com>
0868e09c 46449
f8e0aa73 46450 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 46451 the error message for high integrity mode.
f8e0aa73
AJ
46452
46453 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 46454 is not available in high integrity mode.
f8e0aa73 46455
0868e09c
RD
46456 * rtsfind.ads:
46457 (OK_To_Use_In_HIE_Mode): New array.
46458 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
46459
46460 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
46461 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
46462
46463 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
46464 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 46465 caused by new Rtsfind changes.
f8e0aa73
AJ
46466
46467 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 46468 body is deleted.
f8e0aa73
AJ
46469
46470 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
46471 giving message for entity not available in high integrity mode.
46472
9e94c78f 464732001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 46474
934abf9c
PO
46475 * impunit.adb: Add GNAT.CRC32.
46476
9e94c78f 464772001-10-11 Ed Schonberg <schonber@gnat.com>
3c72bea4 46478
f8e0aa73
AJ
46479 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
46480 properly the case where one universal operand in a non-static
3c72bea4
ES
46481 exponentiation of a real literal.
46482
9e94c78f 464832001-10-11 Ed Schonberg <schonber@gnat.com>
44d8d2bb 46484
f8e0aa73
AJ
46485 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
46486 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 46487
9e94c78f 464882001-10-11 Ed Schonberg <schonber@gnat.com>
9e2b9627 46489
f8e0aa73
AJ
46490 * exp_ch7.adb (Make_Transient_Block): if statement is within
46491 exception handler, always use new transient scope to place Clean
9e2b9627
ES
46492 procedure.
46493
9e94c78f 464942001-10-11 Pascal Obry <obry@gnat.com>
cfac6e9f
PO
46495
46496 * Makefile.in:
46497 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46498 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46499 (GNATLS_RTL_OBJS): add g-crc32.o
46500 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 46501
cfac6e9f
PO
46502 * ali-util.adb:
46503 (CRC_Match): new function.
f8e0aa73 46504 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
46505 instead of the previous simple checksum algorithm.
46506 (Time_Stamp_Mismatch): use CRC_Match for comparison.
46507 (Set_Source_Table): idem.
f8e0aa73 46508
cfac6e9f 46509 * ali-util.ads:
f8e0aa73 46510 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
46511 instead of simple checksum.
46512 (CRC_Match): new function.
46513 (CRC_Error): new constant.
f8e0aa73
AJ
46514
46515 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
46516 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 46517 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
46518
46519 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 46520 is what this variable will store.
f8e0aa73 46521
cfac6e9f 46522 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
46523 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
46524 rename All_Checksum_Match to All_CRC_Match. Change due to API
46525 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 46526 CRC using GNAT.CRC32.
f8e0aa73
AJ
46527
46528 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 46529 now and not anymore a simple checksum.
f8e0aa73
AJ
46530
46531 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 46532 places.
f8e0aa73 46533
cfac6e9f 46534 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 46535
cfac6e9f
PO
46536 * scans.adb:
46537 (Restore_Scan_State): rename Checksum to CRC.
46538 (Save_Scan_State): idem.
f8e0aa73 46539
cfac6e9f
PO
46540 * scans.ads:
46541 With GNAT.CRC32.
46542 (Checksum): rename to CRC.
46543 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
46544
46545 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 46546 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
46547
46548 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 46549 GNAT.CRC32). Update copyright notice.
f8e0aa73 46550
cfac6e9f
PO
46551 * scn.adb:
46552 (Accumulate_Checksum): removed.
46553 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 46554
cfac6e9f
PO
46555 * sinput-l.adb:
46556 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 46557 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 46558 Source_CRC)
f8e0aa73
AJ
46559
46560 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 46561 Source_CRC in S initialization.
f8e0aa73 46562
cfac6e9f 46563 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 46564
cfac6e9f
PO
46565 * sinput.ads (Source_Checksum): renamed to Source_CRC.
46566 Update comments for the CRC.
f8e0aa73 46567
cfac6e9f 46568 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
46569
46570 * types.ads (Get_Hex_String): Returns the hexadecimal representation
46571 for a word. This is currently used only for CRC. In previous version,
46572 the checksum was using a representation with all letter being
46573 upper-case. With the new implementation (using CRC) we do not remove
46574 the 32th bit of the CRC, so we can have an upper-case starting letter
46575 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
46576 It is ambigous since the CRC was optional and could be followed by
46577 options like EB, EE. So now this routines uses lower-case letter for
46578 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 46579 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 46580
cfac6e9f 46581 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
46582
46583 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 46584 for the compiler.
f8e0aa73
AJ
46585
46586 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 46587 for the compiler.
f8e0aa73 46588
cfac6e9f
PO
46589 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
46590 Add 2001 to copyright notice
46591 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
46592
46593 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 46594 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 46595
cfac6e9f
PO
46596 * ali.adb: Undo some of previous changes, not needed.
46597 Keep the change for lower case letters in the checksum.
f8e0aa73 46598
cfac6e9f
PO
46599 * ali.ads: Undo previous change not needed.
46600
46601 * bcheck.adb: Undo most of previous change, not needed.
46602 But do use Checksums_Match for checksum comparison.
f8e0aa73 46603
cfac6e9f
PO
46604 * gnatls.adb: Undo most of previous change, not needed.
46605 But do use Checksums_Match for comparing checksums.
f8e0aa73 46606
cfac6e9f 46607 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 46608
cfac6e9f 46609 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
46610
46611 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 46612 not upper case letters.
f8e0aa73 46613
cfac6e9f 46614 * scans.adb: Undo previous change, not needed
f8e0aa73 46615
cfac6e9f 46616 * scans.ads: Undo previous change, not needed.
f8e0aa73 46617
cfac6e9f 46618 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 46619
cfac6e9f 46620 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 46621
cfac6e9f
PO
46622 * scn.adb:
46623 (Accumulate_Checksum): Use System.CRC32.
46624 (Initialize_Checksum): New procedure.
46625 Remove other changes of previous revision.
f8e0aa73 46626
cfac6e9f 46627 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 46628
cfac6e9f
PO
46629 * sinput.adb: Undo previous change, not needed.
46630
46631 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
46632
46633 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 46634 on new checksum algorithm
f8e0aa73 46635
cfac6e9f
PO
46636 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
46637 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 46638
cfac6e9f 46639 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 46640
cfac6e9f
PO
46641 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
46642
4d6d06a5
GB
466432001-10-11 Geert Bosch <bosch@gnat.com>
46644
46645 * einfo.h: Regenerate.
46646
46647 * nmake.ads: Regenerate.
46648
46649 * nmake.adb: Regenerate.
46650
46651 * sinfo.h: Regenerate.
46652
46653 * treeprs.adb: Regenerate.
46654
c97412e2
GB
466552001-10-10 Geert Bosch <bosch@gnat.com>
46656
46657 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 46658
9e94c78f 466592001-10-10 Ed Schonberg <schonber@gnat.com>
b83018ca 46660
f8e0aa73 46661 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
46662 is Flag174.
46663
e834fe1f
GB
466642001-10-10 Geert Bosch <bosch@gnat.com>
46665
46666 * snames.ads: Add new names for project facility.
46667
46668 * snames.adb: Update to reflect snames.ads changes.
46669
46670 * snames.h: Update to reflect snames.ads changes.
46671
9e94c78f 466722001-10-10 Vincent Celier <celier@gnat.com>
b30668b7
VC
46673
46674 * make.adb:
46675 (Add_Switches): reflect the changes for the switches attributes
46676 Default_Switches indexed by the programming language,
46677 Switches indexed by the file name.
46678 (Collect_Arguments_And_Compile): Idem.
46679 Reflect the attribute name changes.
f8e0aa73 46680
b30668b7
VC
46681 * prj-attr.adb:
46682 (Initialisation_Data): Change the names of some packages and
46683 attributes.
46684 (Initialize): process case insensitive associative arrays.
f8e0aa73 46685
b30668b7
VC
46686 * prj-attr.ads:
46687 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 46688
b30668b7
VC
46689 * prj-dect.adb:
46690 (Parse_Attribute_Declaration): For case insensitive associative
46691 arrays, set the index string to lower case.
f8e0aa73 46692
b30668b7
VC
46693 * prj-env.adb:
46694 Reflect the changes of the project attributes.
f8e0aa73 46695
b30668b7
VC
46696 * prj-nmsc.adb:
46697 Replace Check_Naming_Scheme by Ada_Check and
46698 Language_Independent_Check.
f8e0aa73 46699
b30668b7
VC
46700 * prj-nmsc.ads:
46701 Replaced Check_Naming_Scheme by 2 procedures:
46702 Ada_Check and Language_Independent_Check.
f8e0aa73 46703
b30668b7
VC
46704 * prj-proc.adb:
46705 (Process_Declarative_Items): For case-insensitive associative
46706 arrays, set the index string to lower case.
46707 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
46708 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 46709
b30668b7
VC
46710 * prj-tree.adb:
46711 (Case_Insensitive): New function
46712 (Set_Case_Insensitive): New procedure
f8e0aa73 46713
b30668b7
VC
46714 * prj-tree.ads:
46715 (Case_Insensitive): New function
46716 (Set_Case_Insensitive): New procedure
46717 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 46718
b30668b7
VC
46719 * prj-util.adb:
46720 (Value_Of): new function to get the string value of a single
46721 string variable or attribute.
f8e0aa73 46722
b30668b7
VC
46723 * prj-util.ads:
46724 (Value_Of): new function to get the string value of a single
46725 string variable or attribute.
f8e0aa73 46726
b30668b7
VC
46727 * prj.adb:
46728 (Ada_Default_Spec_Suffix): New function
46729 (Ada_Default_Impl_Suffix): New function
46730 Change definitions of several constants to reflect
46731 new components of record types.
f8e0aa73 46732
b30668b7
VC
46733 * prj.ads:
46734 (Naming_Data): Change several components to reflect new
46735 elements of naming schemes.
46736 (Project_Data): New flags Sources_Present and
46737 Language_Independent_Checked.
46738 (Ada_Default_Spec_Suffix): New function.
46739 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 46740
b30668b7
VC
46741 * snames.ads:
46742 Modification of predefined names for project manager: added
46743 Implementation, Specification_Exceptions, Implementation_Exceptions,
46744 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
46745 Default_Switches, _Languages, Builder, Cross_Reference,
46746 Finder. Removed Body_Part, Specification_Append, Body_Append,
46747 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
46748 Gnatlink.
f8e0aa73 46749
b30668b7
VC
46750 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46751 Add comments.
f8e0aa73 46752
b30668b7
VC
46753 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
46754 not that it is Nil_Variable_Value.
f8e0aa73 46755
b30668b7
VC
46756 * prj.ads: Add ??? for uncommented declarations
46757
9e94c78f 467582001-10-10 Ed Schonberg <schonber@gnat.com>
662e57b4 46759
f8e0aa73
AJ
46760 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
46761 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
46762 treat it as a bona fide constant.
46763
9e94c78f 467642001-10-10 Robert Dewar <dewar@gnat.com>
72e4357f
RD
46765
46766 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 46767
72e4357f 46768 * snames.ads: Add entry for pragma External.
f8e0aa73 46769
72e4357f 46770 * par-prag.adb: Add pragma External.
f8e0aa73 46771
72e4357f
RD
46772 * snames.adb: Updated to match snames.ads.
46773
9e94c78f 467742001-10-10 Ed Schonberg <schonber@gnat.com>
7bc1c7df
ES
46775
46776 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
46777 a dynamic task if the allocator appears in an indexed assignment
46778 or selected component assignment.
f8e0aa73
AJ
46779
46780 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
46781 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
46782 assignment to generate meaningful name.
46783
9e94c78f 467842001-10-10 Ed Schonberg <schonber@gnat.com>
c84700e7 46785
f8e0aa73 46786 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
46787 a generic package.
46788
46789 * einfo.ads: Body_Entity is also defined for generic package.
46790 Documentation change only
f8e0aa73
AJ
46791
46792 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
46793 others_choice for a discriminated component initialization,
46794 convert discriminant references into the corresponding discriminals.
46795
46796 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
46797 only if original type is private and expression has to be wrapped
c84700e7 46798 in a conversion.
f8e0aa73
AJ
46799
46800 * checks.adb:
46801 (Apply_Constraint_Check): Do not perform length check
c84700e7 46802 if expression is an aggregate with only an others_choice.
f8e0aa73 46803 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
46804 (typically the discriminal in an init_proc) denote the same value.
46805 Two useful optimization uncovered by bugfixes above.
46806
9e94c78f 468072001-10-10 Robert Dewar <dewar@gnat.com>
d8d80dcd 46808
f8e0aa73 46809 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
46810 This fixes a problem in the C representation of component alignment.
46811 Add 2001 to copyright notice
46812
9e94c78f 468132001-10-10 Richard Kenner <kenner@gnat.com>
a8fee948 46814
f8e0aa73 46815 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
46816 if it is a packed array type.
46817
9e94c78f 468182001-10-10 Richard Kenner <kenner@gnat.com>
c2d7fe59 46819
f8e0aa73 46820 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
46821 VAR_DECL for constant if not Is_Public but -O0.
46822
fb75e100
RK
468232001-10-10 Richard Kenner <kenner@gnat.com>
46824
46825 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
46826
1724557a
GB
468272001-10-10 Geert Bosch <bosch@gnat.com>
46828
f8e0aa73 46829 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
46830 use '/' as switch character, allowing for absolute file names.
46831
9f2f9eb6
JM
468322001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
46833
46834 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
46835 FSF address.
46836
8fecf41d
GB
468372001-10-08 Geert Bosch <bosch@gnat.com>
46838
46839 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
46840 Automatically build utilities when files need to be regenerated.
46841
589f1edf
GB
468422001-10-08 Geert Bosch <bosch@gnat.com>
46843
46844 * xsnames.adb: New utility for updating snames.ads and snames.adb
46845
67f28219
ZW
468462001-10-08 Zack Weinberg <zack@codesourcery.com>
46847
46848 * Make-lang.in (ADAFLAGS): Add -W -Wall.
46849 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
46850 (gnat1): Also depend on attribs.o.
46851 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
46852 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
46853 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
46854 (ADAFLAGS): Add -W -Wall.
46855 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
46856 take out CFLAGS.
46857
46858 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
46859 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
46860 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
46861 Use $(ADAC), not $(CC), as compilation command.
46862
46863 (gnattools): Depend directly on tools to build, don't use
46864 recursive make.
46865 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
46866
46867 * einfo.h, sinfo.h: New files (autogenerated).
46868
295ef2bb
RH
468692001-10-08 Richard Henderson <rth@redhat.com>
46870
46871 * comperr.adb (Abort_In_Progress): New.
46872 (Compiler_Abort): Use it to prevent recursion.
46873
9e94c78f 468742001-10-08 Robert Dewar <dewar@gnat.com>
5c736541
RD
46875
46876 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
46877
46878 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 46879 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
46880
46881 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 46882 to help error recovery. Part of general work on 9407-004.
67f28219 46883
5c736541 46884 * par.adb: Add ??? for misuse of error
67f28219 46885
5c736541
RD
46886 * sem_res.adb:
46887 (Resolve): Defend against Error, fixes 9407-003.
46888 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
46889
46890 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
46891 to Any_Type to help error recovery).
46892
9e94c78f 468932001-10-08 Richard Kenner <kenner@gnat.com>
a153ae15
RK
46894
46895 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
46896 Consistently set MEM attributes from expression; fixes
46897 bootstrap failure on x86.
46898
9e94c78f 468992001-10-08 Geert Bosch <bosch@gnat.com>
743f3c7b
GB
46900
46901 * 5oosinte.adb: Add 2001 to copyright notice.
46902
9e94c78f 469032001-10-08 Geert Bosch <bosch@gnat.com>
210c4ef4
GB
46904
46905 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
46906
46907 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
46908
cc712abf
JM
469092001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
46910
46911 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
46912
9e94c78f 469132001-10-05 Geert Bosch <bosch@gnat.com>
4c4abc0f
GB
46914
46915 * adaint.h: Small formatting fix.
46916
7f50e2e3
GB
469172001-10-04 Geert Bosch <bosch@gnat.com>
46918
46919 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
46920 Arg is int, not FILE *, in dummy version of functions.
67f28219 46921
7f50e2e3
GB
46922 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
46923 Arg is int, not FILE *.
46924
5d1a9698
GB
469252001-10-04 Geert Bosch <bosch@gnat.com>
46926
46927 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 46928
5d1a9698
GB
46929 * 4lintnam.ads: Fix header format.
46930 Change Linux to GNU/Linux.
67f28219 46931
5d1a9698
GB
46932 * 5iosinte.adb: Change Linux to GNU/Linux.
46933
46934 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 46935
5d1a9698 46936 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 46937
5d1a9698
GB
46938 * 5itaspri.ads: Change Linux to GNU/Linux.
46939 Update copyright notice.
67f28219 46940
5d1a9698 46941 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 46942
5d1a9698 46943 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 46944
5d1a9698 46945 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 46946
5d1a9698 46947 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 46948
5d1a9698 46949 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 46950
5d1a9698 46951 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 46952
5d1a9698 46953 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 46954
5d1a9698 46955 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 46956
5d1a9698
GB
46957 * 5qtaspri.ads: Change Linux to GNU/Linux.
46958 Add 2001 to copyright notice.
67f28219 46959
5d1a9698
GB
46960 * 5vintman.ads: Change Linux to GNU/Linux.
46961 Fix header format. Add 2001 to copyright notice.
67f28219 46962
5d1a9698 46963 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 46964
5d1a9698
GB
46965 * g-trasym.ads: Change Linux to GNU/Linux.
46966 Add 2001 to copyright notice.
67f28219 46967
5d1a9698 46968 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 46969
5d1a9698
GB
46970 * s-intman.ads: Change Linux to GNU/Linux.
46971 Add 2001 to copyright notice. Fix header format.
67f28219 46972
5d1a9698 46973 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 46974
5d1a9698 46975 * adaint.c: Change Linux to GNU/Linux.
67f28219 46976
5d1a9698 46977 * cio.c: Change Linux to GNU/Linux.
67f28219 46978
5d1a9698 46979 * cstreams.c: Change Linux to GNU/Linux.
67f28219 46980
5d1a9698 46981 * init.c: Change Linux to GNU/Linux.
67f28219 46982
5d1a9698 46983 * gmem.c: Change Linux to GNU/Linux.
67f28219 46984
5d1a9698
GB
46985 * tracebak.c: Change Linux to GNU/Linux.
46986
46987
c25ca2d7
GB
469882001-10-02 Geert Bosch <bosch@gnat.com>
46989
46990 * misc.c (insert_default_attributes): Add dummy version.
This page took 6.739181 seconds and 5 git commands to generate.