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