]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
Fix nits
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
c172df28
AH
12009-06-13 Aldy Hernandez <aldyh@redhat.com>
2
3 * gcc-interface/utils.c (record_builtin_type): Pass location
4 argument to build_decl.
5 (create_type_stub_decl): Same.
6 (create_type_decl): Same.
7 (create_var_decl_1): Same.
8 (create_field_decl): Same.
9 (create_param_decl): Same.
10 (create_label_decl): Same.
c172df28
AH
11 (create_subprog_decl): Same.
12 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
13 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
14 argument to create_artificial_label.
c172df28
AH
15 (Loop_Statement_to_gnu): Same.
16 (Subprogram_Body_to_gnu): Same.
17 (gnat_gimplify_stmt): Same.
18
53b2323e
RH
192009-06-11 Richard Henderson <rth@redhat.com>
20
cd19075f
EB
21 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
22 OPT_gdwarfplus.
53b2323e 23
2995ebee
AC
242009-06-11 Ed Schonberg <schonberg@adacore.com>
25
26 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
27 accessibiliy check on access_to_subprogram in the context of an
28 anonymous access that is not an access parameter.
29
302009-06-11 Eric Botcazou <ebotcazou@adacore.com>
31
32 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
33
342009-06-11 Quentin Ochem <ochem@adacore.com>
35
36 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
37 comments for message handled by GPS.
38
392009-06-11 Matthew Gingell <gingell@adacore.com>
40
41 * adaint.c: Use fopen64 instead of fopen on platforms where we know
42 it's supported.
43
442009-06-11 Pascal Obry <obry@adacore.com>
45
46 * g-cgi.ads: Fix comment typo.
47
48 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
49
c244bf8f
EB
502009-06-10 Eric Botcazou <ebotcazou@adacore.com>
51
52 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
53 a reference to the original type for the type of the field of the
54 XVS type.
55 (maybe_pad_type): Likewise.
56
57 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
58 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
59 Pass correctly typed arguments to create_field_decl.
60 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
61 case of contrained discriminants as well. Use the padded base type
62 in the other case as well. Rename temporary variable. Tweak test.
63 Factor common access pattern. Set GNU_SIZE only once.
64
ff346f70
OH
652009-06-09 Olivier Hainque <hainque@adacore.com>
66
67 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
68 helper for build_call_alloc_dealloc with arguments to be interpreted
69 identically. Process the case where a GNAT_PROC to call is provided.
70 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
71 and return an allocator for DATA_SIZE bytes aimed at containing a
72 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
73 DATA_TYPE alignments greater than what the latter offers.
74 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
75 release a DATA_TYPE object designated by DATA_PTR using the
76 __gnat_free entry point.
77 (build_call_alloc_dealloc): Expect object data type instead of naked
78 alignment constraint. Use the new helpers.
79 (build_allocator): Remove special processing for the super-aligned
80 case, now handled by build_call_alloc_dealloc. Pass data
81 type instead of the former alignment argument, as expected by the new
82 interface.
83 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
84 and comment.
85 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
86 Remove special processing for the super-aligned case, now handled
87 by build_call_alloc_dealloc. Pass data type instead of the former
88 alignment argument, as expected by the new interface.
89
2153915d
AO
902009-06-08 Alexandre Oliva <aoliva@redhat.com>
91
92 * lib-writ.adb (flag_compare_debug): Import.
93 (Write_ALI): Skip during -fcompare-debug-second.
94
cdaa0e0b
EB
952009-06-03 Eric Botcazou <ebotcazou@adacore.com>
96
97 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
98 adjusting the discriminant nodes in an extension, use the full view
99 of the parent subtype if it is of a private kind.
100
a6a29d0c
EB
1012009-06-03 Eric Botcazou <ebotcazou@adacore.com>
102
103 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
104 _Parent field, if any, to the record before adding the other fields.
105 <E_Record_Subtype>: Put the _Controller field before the other fields
106 except for the _Tag or _Parent fields.
107 (components_to_record): Likewise. Retrieve the _Parent field from the
108 record type.
109
8cd28148
EB
1102009-06-03 Eric Botcazou <ebotcazou@adacore.com>
111
112 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
113 remove unused parameter and simplify.
114 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
115 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
116 as context for all discriminants. Fix formatting nits.
117 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
118 before Discriminant_Constraint. Adjust for above renaming. Do not
119 set GNU_TYPE more than once.
120 (elaborate_entity): Test Has_Discriminants on the entity and use
121 Implementation_Base_Type.
122 (components_to_record): Rename component_list to gnat_component_list.
123 Retrieve the _Parent field from the list. Fix nits in comments.
124 Clarify logic in loop. Pass correct arguments to create_field_decl.
125
beb7e030
EB
1262009-06-02 Eric Botcazou <ebotcazou@adacore.com>
127
128 * gcc-interface/Make-lang.in: Fix formatting.
129
db868e1e 1302009-06-01 Olivier Hainque <hainque@adacore.com>
53b2323e 131 Eric Botcazou <ebotcazou@adacore.com>
db868e1e
OH
132
133 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
134 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
135 on the result if at least one of the input fields couldn't be output
136 as a static constant any more.
137
324c9b02 1382009-06-01 Olivier Hainque <hainque@adacore.com>
53b2323e 139 Eric Botcazou <ebotcazou@adacore.com>
324c9b02
OH
140
141 * gcc-interface/utils2.c (gnat_build_constructor): Factor
18d6353c 142 out code. Use initializer_constant_valid_for_bitfield_p and
324c9b02
OH
143 CONSTRUCTOR_BITFIELD_P for bit-fields.
144
7980bfb8
ILT
1452009-05-26 Ian Lance Taylor <iant@google.com>
146
147 * gcc-interface/Makefile.in (COMPILER): Define.
148 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
149 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
150 (seh_init.o, tracebak.o): Likewise.
151 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
152 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
153 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
154 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
155 (ada/utils2.o): Likewise.
156
6e00e546
OH
1572009-05-24 Olivier Hainque <hainque@adacore.com>
158
159 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
160 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
161 Add -auxbase variants to the list of recognized internal switches.
162 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
163 adjust comments.
164 * lib.ads: Make comment on internal GCC switches more general.
165 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
166 as for C.
167
22702f93
EB
1682009-05-23 Eric Botcazou <ebotcazou@adacore.com>
169
170 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
171
03049a4e
EB
1722009-05-23 Eric Botcazou <ebotcazou@adacore.com>
173
174 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
175 types.
176
aae8570a
EB
1772009-05-23 Eric Botcazou <ebotcazou@adacore.com>
178
179 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
180 original type because of the alignment when there is an address clause.
181
3f6f0eb2
EB
1822009-05-20 Eric Botcazou <ebotcazou@adacore.com>
183
184 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
185 discriminants affect the shape of the subtype, retrieve the GCC type
186 directly from the original field if the GNAT types for the field and
187 the original field are the same.
188
84fb43a1
EB
1892009-05-15 Eric Botcazou <ebotcazou@adacore.com>
190
191 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
192 New macros.
193 (TYPE_RM_VALUES): Likewise.
194 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
195 (SET_TYPE_RM_SIZE): New macro.
196 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
197 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
198 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
199 * gcc-interface/gigi.h (create_range_type): Declare.
200 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
201 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
202 <E_Signed_Integer_Subtype>: Build a regular integer type first and
203 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
204 <E_Floating_Point_Subtype>: Build a regular floating-point type first
205 and then set the RM bounds.
206 <E_Array_Type>: Use create_range_type instead of build_range_type.
207 <E_Array_Subtype>: Build a regular integer type first and then set
208 the RM bounds for the extra subtype.
209 <E_String_Literal_Subtype>: Use create_range_type instead of
210 build_range_type.
211 <all>: Set the RM bounds for enumeration types and the GCC bounds for
212 floating-point types.
213 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
214 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
215 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
216 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
217 types and with RM bounds for subtypes.
218 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
219 (gnat_print_type) <REAL_TYPE>: New case.
220 <ENUMERAL_TYPE>: Fall through to above case.
221 (gnat_get_subrange_bounds): New function.
222 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
223 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
224 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
225 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
226 (create_range_type): New function.
227 (create_param_decl): Build a regular integer type first and then set
228 the RM bounds for the extra subtype.
229 (unchecked_convert): Remove kludge for 'Valid.
230 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
231 the index to sizetype instead of TYPE_DOMAIN.
232
a531043b
EB
2332009-05-14 Eric Botcazou <ebotcazou@adacore.com>
234
235 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
236 parameter and move check for static expression to...
237 (elaborate_expression): ...here. Adjust call to above function.
238 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
239 in calls to elaborate_expression.
240 (elaborate_entity): Likewise.
241 (substitution_list): Likewise.
242 (maybe_variable): Fix formatting.
243 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
244 missing guard.
245 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
246
59141a28
AC
2472009-05-07 Arnaud Charlet <charlet@adacore.com>
248
c608b4d2 249 * gcc-interface/Make-lang.in: Update dependencies.
59141a28 250
c608b4d2
EB
2512009-05-06 Laurent GUERBY <laurent@guerby.net>
252
253 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
254 Define sa_handler_pos.
255 * s-osinte-linux.ads: Use it.
256 * s-linux-mipsel.ads: New.
257 * system-linux-mips64el.ads: New.
258 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
259 mips64el-linux.
e84efdce 260
1f110335
AC
2612009-05-06 Arnaud Charlet <charlet@adacore.com>
262
263 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
264 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
265 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
266 (Tagged_Type_Expansion): New flag.
267 Replace use of VM_Target related to tagged types expansion by
268 Tagged_Type_Expansion, since tagged type expansion is not necessarily
269 linked to VM targets.
270
e0bf7d65
RD
2712009-05-06 Robert Dewar <dewar@adacore.com>
272
1f110335
AC
273 * sem_attr.adb: Add processing for Standard'Compiler_Version
274
e0bf7d65
RD
275 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
276 skipping.
277 (Expr_First_Char): Add ??? comment that paren skipping needs work
278 (Expr_Last_Char): Add ??? comment that paren skipping needs work
279
280 * exp_attr.adb: Add processing for Compiler_Version
281
282 * sem_attr.adb: New attribute Compiler_Version
283
284 * snames.ads-tmpl: Add entries for Compiler_Version attribute
285
286 * gnat_rm.texi: Document Compiler_Version attribute
287
483c78cb
RD
2882009-05-06 Robert Dewar <dewar@adacore.com>
289
290 * errout.adb: Minor reformatting
291
292 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
293 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
294 styleg.adb: Add stylized comments to error messages that are included
295 in the codefix circuitry of IDE's such as GPS.
296
4e7a4f6e
AC
2972009-05-06 Sergey Rybin <rybin@adacore.com>
298
299 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
300 new form of the rule parameter that allows to specify the suffix for
301 access-to-access type names.
302
3032009-05-06 Robert Dewar <dewar@adacore.com>
304
305 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
306 out parameter assigned when exception handlers are present.
307
308 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
309 assignments on exit.
310
311 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
312 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
313 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
314 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
315 messages that are included in the codefix circuitry of IDE's such as
316 GPS.
317
318 * sinput.ads, sinput.adb (Expr_First_Char): New function
53b2323e 319 (Expr_Last_Char): New function
4e7a4f6e 320
35117aa8
AC
3212009-05-06 Sergey Rybin <rybin@adacore.com>
322
323 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
324 Add formal definition for extra exit point metric
325
3262009-05-06 Pascal Obry <obry@adacore.com>
327
328 * adaint.c: Support for setting attributes on unicode filename on
329 Windows.
330
0c020dde
AC
3312009-05-06 Robert Dewar <dewar@adacore.com>
332
333 * sem_warn.adb: Minor reformatting
334
3352009-05-06 Javier Miranda <miranda@adacore.com>
336
337 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
338 not have discriminants or components with default expressions.
339 (Analyze_Pragma): For pragma CPP_Class check that imported types
340 have no discriminants and components have no default expression.
341
342 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
343 class-wide types in the expression of a record component association.
344
3452009-05-06 Sergey Rybin <rybin@adacore.com>
346
347 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
348
349 * gnat_ugn.texi: Add description for the new extra exit points metric
350 (gnatmetric section).
351
deef4289
AC
3522009-05-06 Robert Dewar <dewar@adacore.com>
353
354 * s-fileio.adb: Minor comment update
355
356 * sem_ch8.adb: Minor reformatting
357
358 * exp_ch3.adb: Update comments.
359
3602009-05-06 Tristan Gingold <gingold@adacore.com>
361
362 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
363
89522556
AC
3642009-05-06 Arnaud Charlet <charlet@adacore.com>
365
366 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
367 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
368
369 * gcc-interface/Make-lang.in: Update dependencies
370
a693f55e
AC
3712009-05-06 Ed Schonberg <schonberg@adacore.com>
372
373 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
374 change. The context clause of a generic instance declaration must be
375 preserved until the end of the compilation, because it may have to be
376 installed/removed repeatedly.
377 The latest change to sem.adb ensures that the context of both spec and
378 body of an instance is traversed before the instance itself, making
379 this patch redundant.
380
e264efcc
AC
3812009-05-06 Gary Dismukes <dismukes@adacore.com>
382
383 * sem_aggr.adb: Fix typo.
384
3852009-05-06 Thomas Quinot <quinot@adacore.com>
386
387 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
388 declaration, do not adjust if the declaration is to be rewritten into
389 a renaming.
390
3912009-05-06 Ed Schonberg <schonberg@adacore.com>
392
393 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
394 discriminant part.
395
3962009-05-06 Bob Duff <duff@adacore.com>
397
398 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
399 otherwise the compiler would be allowed to optimize away the cleanup
400 code.
401
69a0c174
AC
4022009-05-06 Gary Dismukes <dismukes@adacore.com>
403
404 * gnat_ugn.texi: Fix typo.
405
4062009-05-06 Thomas Quinot <quinot@adacore.com>
407
408 * g-debuti.adb: Minor reformatting
409
410 * exp_attr.adb: Minor reformatting
411
4122009-05-06 Robert Dewar <dewar@adacore.com>
413
414 * sem_aggr.adb: Minor reformatting.
415
416 * g-socthi-vms.adb: Minor reformatting
417
4182009-05-06 Bob Duff <duff@adacore.com>
419
420 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
421 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
422
4e0d20ca
BD
4232009-05-06 Bob Duff <duff@adacore.com>
424
425 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
426 flags.
427
11795185
JM
4282009-05-06 Javier Miranda <miranda@adacore.com>
429
430 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
431 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
432 extension aggregates.
433 (Resolve_Record_Aggregate): Add support for C++ constructors in
434 extension aggregates.
435
436 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
437 constructors in extension aggregates.
438
426d2717
AC
4392009-05-06 Robert Dewar <dewar@adacore.com>
440
441 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
442 clause.
443
4442009-05-06 Thomas Quinot <quinot@adacore.com>
445
446 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
447 packed type, since on OpenVMS, struct msghdr is packed.
448
4492009-05-06 Ed Schonberg <schonberg@adacore.com>
450
451 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
452 call returning an unconstrained composite value, create the proper
453 subtype for it, as is done for object dclarations with unconstrained
454 nominal subtypes. Perform this transformation regarless of whether
455 call comes from source.
456
8dc10d38
AC
4572009-05-06 Robert Dewar <dewar@adacore.com>
458
459 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
460 records
461
462 * gnat_rm.texi:
463 Add documentation for pragma Implicit_Packing applied to record
464 types.
465
4662009-05-06 Ed Schonberg <schonberg@adacore.com>
467
468 * sem.adb (Walk_Library_Items): Place all with_clauses of an
469 instantiation on the spec, because late instance bodies may generate
470 with_clauses for the instance body but are inserted in the instance
471 spec.
472
3249690d
AC
4732009-05-06 Emmanuel Briot <briot@adacore.com>
474
475 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
476 support for returning the directory even if it doesn't exist. This is
477 used for the object directory, since we are always setting it to a
478 non-null value, and we should set it to an absolute name rather than a
479 relative name for the sake of external tools that might depend on it.
480 (Check_Library_Attributes): When Project.Library_Dir is known, check
481 that the directory exists.
482
4832009-05-06 Ed Schonberg <schonberg@adacore.com>
484
485 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
486 reference is an implicit dereference, do not freeze the designated type
487 if within a default expression or when preanalyzing a pre/postcondtion.
488
fd366a46
AC
4892009-05-06 Ed Schonberg <schonberg@adacore.com>
490
491 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
492 call returning an unconstrained composite value, create the proper
493 subtype for it, as is done for object dclarations with unconstrained
494 nominal subtypes
495
4962009-05-06 Robert Dewar <dewar@adacore.com>
497
498 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
499 improvements
500
501 * freeze.adb: Minor reformatting
502
7dd1ab84
AC
5032009-05-06 Thomas Quinot <quinot@adacore.com>
504
505 * sem_ch3.adb (Access_Type_Declaration): An access type whose
506 designated type is a limited view from a limited with clause (flagged
507 From_With_Type) is not itself such a limited view.
508
5092009-05-06 Emmanuel Briot <briot@adacore.com>
510
511 * prj-nmsc.adb: Remove unused variable.
512
513 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
514 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
515 makeutl.ads, since not all users of prj.ads need this.
516
28541488
JM
5172009-05-06 Javier Miranda <miranda@adacore.com>
518
519 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
520 constructor in case of aggregates whose type is a CPP_Class type.
521
55c078ac
AC
5222009-05-06 Robert Dewar <dewar@adacore.com>
523
524 * sem_ch13.adb: Minor comment additions
525
526 * osint.adb: Minor reformatting
527
5282009-05-06 Pascal Obry <obry@adacore.com>
529
530 * initialize.c: On Windows, keep full pathname to expanded command
531 line patterns.
532
6bde3eb5
AC
5332009-05-06 Ed Schonberg <schonberg@adacore.com>
534
535 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
536 an aggregate with box default is of a discriminated private type, do
537 not build a subaggregate for it.
538 A proper call to the initialization procedure is generated for it.
539
5402009-05-06 Thomas Quinot <quinot@adacore.com>
541
542 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
543 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
544 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
545 use standard array code for Standard.String.
546 (Exp_Dist): Bump PolyORB s-parint API version to 3.
547 (Rtsfind): New entities TA_Std_String, Unbounded_String.
548
5492009-05-06 Robert Dewar <dewar@adacore.com>
550
551 * g-comlin.ads: Minor reformatting
552
553 * xoscons.adb: Minor reformatting
554
3743d5bd
AC
5552009-05-06 Gary Dismukes <dismukes@adacore.com>
556
557 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
558 Underlying_Type before retrieving the type definition for gathering
559 components, to account for the case where the type is private.
560
5612009-05-06 Tristan Gingold <gingold@adacore.com>
562
563 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
564
5652009-05-06 Thomas Quinot <quinot@adacore.com>
566
567 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
568 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
569 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
570 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
571 Windows versions): Fix incorrect base
572 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
573 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
574 System.Address for the To parameter instead of a Sockaddr_In_Access, to
575 achieve independance from AF_INET family, and also to allow this
576 parameter to be retrieved from a Msghdr for the Windows case where
577 these routines are used to implement C_Sendmsg and C_Recvmsg.
578
5792009-05-06 Bob Duff <duff@adacore.com>
580
581 * g-expect.adb, g-expect.ads: Minor reformatting
582
583 * sdefault.ads: Minor comment fix
584
585 * g-expect-vms.adb: Minor reformatting
586
587 * table.ads, table.adb (Append_All): New convenience procedure for
588 appending a whole array.
589
590 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
591 box message. Call Osint.Dump_Source_File_Names to print out the file
592 list, instead of rummaging around in various data structures.
593
594 * debug.adb: New switch -gnatd.n, to print source file names as they
595 are read.
596
597 * alloc.ads: Add parameters for Osint.File_Name_Chars.
598
599 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
600 out source file names during a "bug box".
601 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
602 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
603 If it's not part of the runtimes, store it for later printing by
604 Dump_Source_File_Names.
605
6062009-05-06 Javier Miranda <miranda@adacore.com>
607
608 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
609 documentation and add reference to the GNAT user guide for further
610 details.
611
6122009-05-06 Javier Miranda <miranda@adacore.com>
613
614 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
615 also wrong examples that use extension aggregates.
616
6172009-05-06 Albert Lee <lee@adacore.com>
618
619 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
620 of Msg_Iovlen_T for VMS.
621
ffef1219
LG
6222009-05-04 Laurent GUERBY <laurent@guerby.net>
623
624 PR ada/38874
625 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
626
70b70ce8
AC
6272009-04-29 Ed Schonberg <schonberg@adacore.com>
628
629 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
630 box-defaulted operator in an instantiation, when the type of the
631 operands is not directly visible.
632
6332009-04-29 Gary Dismukes <dismukes@adacore.com>
634
635 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
636 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
637 analysis of the ancestor part. Remove prohibition against limited
638 interpretations of the ancestor expression in the case of Ada 2005.
639 Revise error message in overloaded case, adding a message to cover
640 the Ada 2005 case.
641
6422009-04-29 Thomas Quinot <quinot@adacore.com>
643
644 * xoscons.adb: Minor reformatting
645
6462009-04-29 Bob Duff <duff@adacore.com>
647
648 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
649 attribute_definition_clauses for the following attributes when the
650 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
651 Storage_Size, Write. Otherwise, we get spurious errors (for example,
652 missing Read attribute on remote types).
653
654 * gnat_ugn.texi: Document the change, and add a stern warning.
655
6562009-04-29 Ed Schonberg <schonberg@adacore.com>
657
658 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
659 disabled not just for the current scope, but for the innermost dynamic
660 scope as well.
661
4cc51f5e
AC
6622009-04-29 Arnaud Charlet <charlet@adacore.com>
663
664 * gcc-interface/Make-lang.in: Update dependencies
665
107b023c
AC
6662009-04-29 Vincent Celier <celier@adacore.com>
667
668 * prj-part.adb: Minor comment update
669
6702009-04-29 Ed Schonberg <schonberg@adacore.com>
671
672 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
673 box-initialized records with discriminated subcomponents that are
674 constrained by discriminants of enclosing components. New subsidiary
675 procedures Add_Discriminant_Values, Propagate_Discriminants.
676
6772009-04-29 Arnaud Charlet <charlet@adacore.com>
678
679 * g-socket.adb: Code clean up.
680
1933c497
AC
6812009-04-29 Gary Dismukes <dismukes@adacore.com>
682
683 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
684 function entity, to cover the case of a parameterless function call
685 that has not been resolved.
686
6872009-04-29 Robert Dewar <dewar@adacore.com>
688
689 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
690 reformatting and comment updates.
691
51ec70b8
AC
6922009-04-29 Arnaud Charlet <charlet@adacore.com>
693
694 * gnat_ugn.texi: Update some documentation about interfacing with C++
695 Mention -fkeep-inline-functions.
696
697 * gnat_ugn.texi: Minor edits
698
6992009-04-29 Ed Schonberg <schonberg@adacore.com>
700
701 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
702 for a defaulted component of an enclosing aggregate, inherit the type
703 from the component declaration of the enclosing type.
704
7052009-04-29 Albert Lee <lee@adacore.com>
706
707 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
708 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
709 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
710 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
711 Relocate the Msghdr record type from GNAT.Sockets.Thin to
712 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
713 type for the Msg_Iovlen field.
714
9e895ab5
AC
7152009-04-29 Vincent Celier <celier@adacore.com>
716
717 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
718 Source_File_Index_Table entries for the source, to avoid crash when
719 reporting an error.
720
721 * gnatcmd.adb (Test_If_Relative_Path): Use
722 Makeutl.Test_If_Relative_Path.
723
724 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
725 Including_RTS is True.
726
727 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
728 Including_RTS defaulted to False.
729
730 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
731 a default value.
732
7332009-04-29 Javier Miranda <miranda@adacore.com>
734
735 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
736
236fecbf
JM
7372009-04-29 Javier Miranda <miranda@adacore.com>
738
739 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
740 associated with dyamically tagged expressions if the expression
741 initializing a tagged type corresponds with a non default CPP
742 constructor.
743 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
744 of limited type objects.
745
746 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
747 when a CPP constructor is called in an assignment. Disable also the
748 error message associated with dyamically tagged expressions if the
749 exporession initializing a tagged type corresponds with a non default
750 CPP constructor.
751
752 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
753 non-default C++ constructors.
754
755 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
756
757 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
758 non-default constructors.
759 (Init_Proc): Add support for non-default constructors.
760
761 * exp_disp.adb (Set_Default_Constructor): Removed.
762 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
763 but extending its functionality to handle non-default constructors.
764
765 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
766 constructors. Minor code cleanup removing unrequired label and goto
767 statement.
768
769 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
770 constructors.
771 (Build_Init_Statements): Add support for non-default constructors.
772 (Expand_N_Object_Declaration): Add support for non-default constructors.
773 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
774 to Set_CPP_Constructors.
775
776 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
777 non-default constructors.
778 Required to handle its use in build-in-place statements.
779
780 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
781 pragma for non-default C++ constructors and the new compiler support
782 that allows the use of these constructors in record components, limited
783 aggregates, and extended return statements.
784
0ec21a5b
AC
7852009-04-29 Vincent Celier <celier@adacore.com>
786
787 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
788 project extending an abstract project.
789
7902009-04-29 Eric Botcazou <ebotcazou@adacore.com>
791
792 * targparm.ads: Fix oversight.
793
96b20738
ES
7942009-04-29 Ed Schonberg <schonberg@adacore.com>
795
796 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
797 derivation when necessary, to find the user-subprogram that is actally
798 being overridden.
799
3b4ebfc3
RD
8002009-04-29 Robert Dewar <dewar@adacore.com>
801
802 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
803 components
804
eb9cb0fc
ES
8052009-04-29 Ed Schonberg <schonberg@adacore.com>
806
807 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
808 primitive operation, rather than source line of synchronized type, when
809 building the wrapper for a primitive operation that overrides an
810 operation inherited from a progenitor, to improve the error message on
811 duplicate declarations.
812
813 * sem_ch3.adb (Process_Full_View): Use new signature of
814 Build_Wrapper_Spec.
815
7f7d37cb
AC
8162009-04-29 Robert Dewar <dewar@adacore.com>
817
818 * prj-nmsc.ads: Minor reformatting
819
8202009-04-29 Eric Botcazou <ebotcazou@adacore.com>
821
822 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
823 expression on the existing parent If statement.
824
3c638456
RD
8252009-04-29 Robert Dewar <dewar@adacore.com>
826
827 * prj-proc.adb, prj.ads: Minor reformatting
828
fb1949a0
EB
8292009-04-29 Eric Botcazou <ebotcazou@adacore.com>
830
831 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
832 existing parent If statement on the newly created one.
833
bd0a4cab
EB
8342009-04-29 Emmanuel Briot <briot@adacore.com>
835
836 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
837 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
838 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
839 (Set_In_Configuration, In_Configuration): Removed.
840 Replaced by an extra parameter Is_Config_File in several parameter to
841 avoid global variables to store the state of the parser.
842
9af094a1
ES
8432009-04-29 Ed Schonberg <schonberg@adacore.com>
844
845 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
846 with_clauses generated for the same unit through rtsfind, and that
847 appear in the context of different units.
848
849 * rtsfind.adb: New attribute First_Implicit_With, component of the
850 Unit_Record that stores information about a unit loaded through rtsfind.
851
ac72c9c5
AC
8522009-04-29 Gary Dismukes <dismukes@adacore.com>
853
854 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
855 (other conditions permitting), so that abstract stream subprograms will
856 be declared for them.
857
8582009-04-29 Bob Duff <duff@adacore.com>
859
860 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
861
862 * g-expect.ads: Minor comment fixes.
863
8642009-04-29 Ed Schonberg <schonberg@adacore.com>
865
866 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
867 dispatching operation is a body without previous spec, update the list
868 of primitive operations to ensure that cross-reference information is
869 up-to-date.
870
8712009-04-29 Albert Lee <lee@adacore.com>
872
873 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
874 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
875 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
876 (GNAT.Sockets.Thin.C_Readv,
877 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
878 (GNAT.Sockets.Thin.C_Recvmsg,
879 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
880 sendmsg(2).
881 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
882 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
883
4fc26524
AC
8842009-04-29 Ed Schonberg <schonberg@adacore.com>
885
886 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
887 operation is a body without previous spec, update the list of
888 primitive operations to ensure that cross-reference information is
889 up-to-date.
890
891 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
892 new compilation unit node for the instance declaration, keep the
893 context items of the original unit on it, so that the context of the
894 instance body only holds the context inherited from the generic body.
895
8962009-04-29 Bob Duff <duff@adacore.com>
897
898 * sem_res.adb: Minor comment fix.
899
7f4c1903
AC
9002009-04-29 Thomas Quinot <quinot@adacore.com>
901
902 * sem_elim.adb: Minor reformatting
903
9042009-04-29 Ed Schonberg <schonberg@adacore.com>
905
906 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
907 predefined unit, allow arbitrary number of components in static
908 aggregate, to ensure that the same level of constant folding applies
909 for Ada 95 and Ada 05 versions of the file.
910
33374829
AC
9112009-04-29 Ed Schonberg <schonberg@adacore.com>
912
913 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
914 information: no need for full scope check.
915 (Eliminate_Error): Do not emit error in a generic context.
916
9172009-04-29 Ed Falis <falis@adacore.com>
918
919 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
920 VxWorks 653 POS does not support rmdir.
921
9222009-04-29 Matteo Bordin <bordin@adacore.com>
923
924 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
925 results are printed.
926
91c2cbdb
AC
9272009-04-29 Arnaud Charlet <charlet@adacore.com>
928
929 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
930 unused assignment.
931
9322009-04-29 Thomas Quinot <quinot@adacore.com>
933
934 * make.adb: Minor reformatting.
935 Minor code reorganization throughout.
936
9372009-04-29 Matteo Bordin <bordin@adacore.com>
938
939 * s-stausa.ads: Changed visibility of type Task_Result: moved to
940 public part to give application visibility over it.
941 This is for future improvement and to build a public API on top of it.
942 Changed record components name of type Task_Result to reflect the new
943 way of reporting.
944
945 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
946 reporting Stack usage.
947
948 * gnat_ugn.texi: Update doc of stack usage report.
949
950 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
951
952 * Makefile.rtl: Add new run-time files.
953
6d47b1e3
PO
9542009-04-29 Pascal Obry <obry@adacore.com>
955
956 * initialize.c: Do not expand quoted arguments.
957
d45871da
EB
9582009-04-29 Emmanuel Briot <briot@adacore.com>
959
960 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
961
962 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
963 Prj.Ultimate_Extending_Project_Of
964
4f87ded3
ES
9652009-04-29 Ed Schonberg <schonberg@adacore.com>
966
967 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
968 Amendment type, add the with_clause for Finalization.List_Controller
969 only if the current context is a package body.
970
349ff68f
AC
9712009-04-29 Thomas Quinot <quinot@adacore.com>
972
973 * sem_ch12.adb: Minor reformatting
974
975 * sem_aggr.adb: Minor reformatting
976
977 * sem_ch6.adb, sem_cat.ads: Minor reformatting
978
979 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
980
9812009-04-29 Quentin Ochem <ochem@adacore.com>
982
983 * prj.ads (Source_Id): Now general pointer type.
984
d81b4bfe
TQ
9852009-04-29 Thomas Quinot <quinot@adacore.com>
986
987 * exp_ch7.adb, rtsfind.adb: Minor reformatting
988
989 * sem_res.adb: Minor reformatting
990
4342eda9
TQ
9912009-04-29 Thomas Quinot <quinot@adacore.com>
992
993 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
994 operands is static only if it is a predefined concatenation operator.
995
996 * sem_util.adb: Minor reformatting
997
998 * sem_ch12.adb (Save_References): When propagating semantic information
999 from generic copy back to generic template, for the case of an
1000 identifier that has been rewritten to an explicit dereference whose
1001 prefix is either an object name or a parameterless funcion call
1002 denoting a global object or function, properly capture the denoted
1003 global entity: perform the corresponding rewriting in the template,
1004 and point the rewritten identifier to the correct global entity (not
1005 to the associated identifier in the generic copy).
1006
0b8074ed
AC
10072009-04-29 Robert Dewar <dewar@adacore.com>
1008
1009 * rtsfind.adb, prj-env.adb: Minor reformatting
1010 Minor code reorganization
1011
10122009-04-29 Emmanuel Briot <briot@adacore.com>
1013
1014 * make.adb: Fix comment
1015
1016 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
1017 is given as argument, as might happen in gnatmake.
1018
8f983e64
ES
10192009-04-29 Ed Schonberg <schonberg@adacore.com>
1020
1021 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
1022 an abstract operation of a progenitor is not properly overridden by an
1023 operation of a derived synchronized type.
1024
132410cb
RD
10252009-04-29 Robert Dewar <dewar@adacore.com>
1026
1027 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
1028 prj-proc.adb: Minor reformatting
1029 Minor code reorganization
1030
66713d62
AC
10312009-04-29 Bob Duff <duff@adacore.com>
1032
1033 * exp_ch7.adb (Build_Final_List): For an access type that designates a
1034 Taft Amendment type, if the access type needs finalization, make sure
1035 the implicit with clause for List_Controller occurs on the package spec.
1036
1037 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
1038 with's created for the pseudo-children of Text_IO and friends. In
1039 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
1040 Ada.Text_IO.Integer_IO both with-ing each other.
1041
1042 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
1043 oddball cases when pragma Extend_System is used.
1044
1045 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
1046 the case where a package spec instantiates a generic whose body with's
1047 this package, so Walk_Library_Items won't complain about cyclic with's.
1048
10492009-04-29 Emmanuel Briot <briot@adacore.com>
1050
1051 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
1052 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
1053 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
1054 (Project_Id): now a real pointer to Project_Data, instead of an index
1055 into the Projects_Table. This simplifies the API significantly, avoiding
1056 extra lookups in this table and the need to pass the Project_Tree_Ref
1057 parameter in several cases
1058
059caa3e
NS
10592009-04-29 Nicolas Setton <setton@adacore.com>
1060
1061 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
1062 darwin.
1063
19440588
EB
10642009-04-25 Eric Botcazou <ebotcazou@adacore.com>
1065
1066 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
1067 back kludge.
1068
b178461a
RD
10692009-04-24 Robert Dewar <dewar@adacore.com>
1070
1071 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
1072 clean.adb: Minor reformatting.
1073 Minor code reorganization and message improvement.
1074
e1c9f239
EB
10752009-04-24 Emmanuel Briot <briot@adacore.com>
1076
1077 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
1078 (Alternate_Languages): now implemented as a malloc-ed list rather
1079 than through a table.
1080
c72a85f2
TQ
10812009-04-24 Thomas Quinot <quinot@adacore.com>
1082
1083 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
1084 accurately handle cases such as "lit" & "lit" and
1085 "lit" & static_string_constant
1086
3563739b
AC
10872009-04-24 Emmanuel Briot <briot@adacore.com>
1088
1089 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
1090 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
1091 removed. Lists of projects are now implemented via standard malloc
1092 rather than through the table.
1093
10942009-04-24 Thomas Quinot <quinot@adacore.com>
1095
1096 * sem_ch12.adb: Minor reformatting
1097
1098 * g-trasym.adb: Minor reformatting
1099
1100 * exp_ch6.adb: Minor reformatting
1101
11022009-04-24 Robert Dewar <dewar@adacore.com>
1103
1104 * layout.adb (Layout_Type): For packed array type, copy unset
1105 size/alignment fields from the referenced Packed_Array_Type.
1106
11072009-04-24 Bob Duff <duff@adacore.com>
1108
1109 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
1110 longer needed after sem_ch12 changes.
1111
1112 * sem.adb (Walk_Library_Items): Include with's in some debugging
1113 printouts.
1114
757240b3
AC
11152009-04-24 Emmanuel Briot <briot@adacore.com>
1116
1117 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
1118 only ever using the Project field.
1119
11202009-04-24 Ed Schonberg <schonberg@adacore.com>
1121
1122 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
1123 Body_Required on the generated compilation node. The new node is linked
1124 to its body, but both share the same file, so we do not set this flag
1125 on the new unit so as not to create a spurious dependency on a
1126 non-existent body in the ali file for the instance.
1127
11282009-04-24 Robert Dewar <dewar@adacore.com>
1129
1130 * make.adb: Minor reformatting
1131
aca53298
AC
11322009-04-24 Emmanuel Briot <briot@adacore.com>
1133
1134 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
1135 Add_Source): merge some code between those. In particular change where
1136 file normalization is done to avoid a few extra calls to
1137 Canonicalize_File_Name. This also removes the need for passing
1138 Current_Dir in a number of subprograms.
1139
11402009-04-24 Bob Duff <duff@adacore.com>
1141
1142 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
1143 False, assign the correct unit to the Cunit field of the new table
1144 entry. We want the spec unit, not the body unit.
1145
1146 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
1147 interface for these.
1148 (Maybe_Add_With): Check whether we're trying to a with on the current
1149 unit, and avoid creating such directly self-referential with clauses.
1150 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
1151 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
1152 and matches existing comments in the spec.
1153
1154 * sem.adb (Walk_Library_Items): Add various special cases to make the
1155 assertions pass.
1156
1157 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
1158 instead of Parent (N), for uniformity.
1159
6db828c3
AC
11602009-04-24 Robert Dewar <dewar@adacore.com>
1161
1162 * errout.ads: Minor reformatting
1163
11642009-04-24 Emmanuel Briot <briot@adacore.com>
1165
1166 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
1167 behavior when the project includes sources from multiple languages
1168
11692009-04-24 Vincent Celier <celier@adacore.com>
1170
1171 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
1172 is a language other than Ada declared.
1173
1174 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
1175 Imported_First set to True.
1176
a7a3cf5c
AC
11772009-04-24 Ed Schonberg <schonberg@adacore.com>
1178
1179 * sem_res.adb: additional optimization to inhibit creation of
1180 redundant transient scopes.
1181
11822009-04-24 Bob Duff <duff@adacore.com>
1183
1184 * rtsfind.ads: Minor comment fix
1185
11862009-04-24 Emmanuel Briot <briot@adacore.com>
1187
1188 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
1189 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
1190 basically doing the same work (for explicit or implicit sources).
1191 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
1192 role. Rewritten to share some code (testing that all explicit sources
1193 have been found) between ada_only and multi_language modes.
1194
11952009-04-24 Jerome Lambourg <lambourg@adacore.com>
1196
1197 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
1198 for CLI imported types.
1199 (Analyze_Pragma): Allow CIL or Java imported functions returning
1200 access-to-subprogram types.
1201
2324b3fd
EB
12022009-04-24 Emmanuel Briot <briot@adacore.com>
1203
1204 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
1205 (Project_Data.Dir_Path): field removed, since it can be computed
1206 directly from .Directory, and is needed only once when processing the
1207 project is buildgpr.adb or make.adb
1208
8eaf1723
RD
12092009-04-24 Robert Dewar <dewar@adacore.com>
1210
1211 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
1212 rtsfind.adb: Minor reformatting.
1213 Minor code reorganization
1214
04f33e7b
AC
12152009-04-24 Arnaud Charlet <charlet@adacore.com>
1216
1217 * mlib-prj.adb: Use friendlier english identifier.
1218
1219 * gnatcmd.adb, make.adb: Use better english identifiers.
1220
12212009-04-24 Robert Dewar <dewar@adacore.com>
1222
1223 * clean.adb: Minor reformatting
1224
d1f453b7
RD
12252009-04-24 Robert Dewar <dewar@adacore.com>
1226
1227 * einfo.adb (OK_To_Rename): New flag
1228
1229 * einfo.ads (OK_To_Rename): New flag
1230
1231 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
1232 OK_To_Rename set.
1233
1234 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
1235
1236 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
1237 OK_To_Rename.
1238
8b9890fa
EB
12392009-04-24 Emmanuel Briot <briot@adacore.com>
1240
1241 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
1242 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
1243 field removed. This is not a property of the
1244 project, just a boolean used to traverse the project tree, and storing
1245 it in the structure prevents doing multiple traversal in parallel.
1246 (Project_Data.Checked): also removed, since it was playing the same role
1247 as Seen when we had two nested loops, and this is no longer necessary
1248 (For_All_Imported_Projects): removed, since in fact there was already
1249 the equivalent in For_Every_Project_Imported. The latter was rewritten
1250 to use a local hash table instead of Project_Data.Seen
1251 Various loops were rewritten to use For_Every_Project_Imported, thus
1252 removing the need for Project_Data.Seen. This avoids a lot of code
1253 duplication
1254
76e776e5
AC
12552009-04-24 Ed Schonberg <schonberg@adacore.com>
1256
1257 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
1258 statements, even though the actual of the call is a concatenation,
1259 because the argument is static, and we want to preserve warning
1260 messages about sequences of code statements that are not marked
1261 volatile.
1262
1263 * sem_warn.adb: remove obsolete comment about warning being obsolete
1264
1265 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
1266 requeued and the delay has expired while within the accept statement
1267 that executes the requeue, do not perform the requeue and indicate that
1268 the timed call has been aborted.
1269
12702009-04-24 Emmanuel Briot <briot@adacore.com>
1271
1272 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
1273 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
1274 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
1275 since they can be computed from the above.
1276
481f29eb
VC
12772009-04-24 Vincent Celier <celier@adacore.com>
1278
1279 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
1280
1281 * prj-env.adb: Move all global variables to the private part of the
1282 project tree data.
1283 Access these new components instead of the global variables no longer
1284 in existence.
1285 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
1286 components that were previously global variables.
1287
1288 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
1289 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
1290 parameter.
1291
1292 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
1293 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
1294
1295 * prj.adb (Initialize): Do not call Prj.Env.Initialize
1296 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
1297 components in the private part of the project tree data.
1298
1299 * prj.ads (Private_Project_Tree_Data): new components moved from
1300 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
1301 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
1302 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
1303
c54ab0b5
AC
13042009-04-24 Vincent Celier <celier@adacore.com>
1305
1306 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
1307
1308 * prj-nmsc.adb (Check_Library): No error for imports by shared library
1309 projects, when --unchecked-shared-lib-imports is used.
1310
13112009-04-24 Robert Dewar <dewar@adacore.com>
1312
1313 * sem_ch7.adb: Minor reformatting
1314
b3520ca0
AC
13152009-04-24 Tristan Gingold <gingold@adacore.com>
1316
1317 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
1318 mach thread id.
1319
13202009-04-24 Emmanuel Briot <briot@adacore.com>
1321
1322 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
1323 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
1324 (For_All_Imported_Projects): new procedure
1325 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
1326 above rather than duplicating code.
1327
5d07d0cf
EB
13282009-04-24 Emmanuel Briot <briot@adacore.com>
1329
1330 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
1331 (Source_Id, Source_Data): use a real list to store sources rather than
1332 using an external table to store the elements. This makes code more
1333 efficient and more readable.
1334
5eed512d
EB
13352009-04-24 Emmanuel Briot <briot@adacore.com>
1336
1337 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
1338 (Source_Iterator): new type.
53b2323e
RH
1339 This removes the need for having the sources on three different
1340 lists at the project tree, project and language level. They are now
1341 on a single list.
5eed512d 1342
5876578b
EB
13432009-04-24 Emmanuel Briot <briot@adacore.com>
1344
1345 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
1346
a9d17e32
ES
13472009-04-24 Ed Schonberg <schonberg@adacore.com>
1348
1349 * sem_warn.adb: Add comment on obsolete warning
1350
144c034d
AC
13512009-04-24 Arnaud Charlet <charlet@adacore.com>
1352
1353 * s-tassta.adb (Create_Task): Fix violation of locking rule.
1354
e0697153
EB
13552009-04-24 Emmanuel Briot <briot@adacore.com>
1356
1357 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
1358 to Language_Ptr to better reflect its new implementation.
1359 (Project_Data.First_Languages_Processing): renamed to Languages now
1360 that the field with that name is no longer used
1361 (Project_Data.Languages): removed, no longer used, and duplicates
1362 information already available through First_Language_Processing.
1363 (Prj.Language_Index): now an actual pointer, instead of an index into
1364 a table. This makes the list somewhat more obvious, but more importantly
1365 removes the need to pass a pointer to the project_tree_data in a few
1366 places, and makes accessing the attributes of a languages more
1367 efficient.
1368
18e6d56a 13692009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
53b2323e 1370 Thomas Quinot <quinot@adacore.com>
18e6d56a
RK
1371
1372 * fe.h (Set_Identifier_Casing): Add const to second parameter.
c91f9cd4 1373 * gcc-interface/misc.c (internal_error_function): Make copy of return
18e6d56a
RK
1374 from pp_formatted_text before assigning BUFFER to it.
1375 (gnat_init): Likewise for main_input_filename and gnat_argv.
1376 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
1377
caa9d12a
EB
13782009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1379
1380 * ttypes.ads (Target_Double_Float_Alignment): New variable.
1381 (Target_Double_Scalar_Alignment): Likewise.
1382 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
1383 (Get_Double_Float_Alignment): New imported function.
1384 (Get_Double_Scalar_Alignment): Likewise.
1385 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
1386 the alignment of "double" floating-point types and "double" or larger
1387 scalar types, as parameterized by Target_Double_Float_Alignment and
1388 Target_Double_Scalar_Alignment respectively.
1389 * gcc-interface/gigi.h (double_float_alignment): Declare.
1390 (double_scalar_alignment): Likewise.
1391 (is_double_float_or_array): Likewise.
1392 (is_double_scalar_or_array): Likewise.
1393 (get_target_double_float_alignment): Likewise.
1394 (get_target_double_scalar_alignment): Likewise.
1395 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
1396 (get_target_strict_alignment): ...this.
1397 (get_target_double_float_alignment): New function.
1398 (get_target_double_scalar_alignment): Likewise.
1399 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1400 Test the presence of an alignment clause for under-aligned integer
1401 types. Take into account specific caps for the alignment of "double"
1402 floating-point types and "double" or larger scalar types, as
1403 parameterized by Target_Double_Float_Alignment and
1404 Target_Double_Scalar_Alignment respectively.
1405 (validate_alignment): Likewise.
1406 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
1407 (gigi): Initialize double_float_alignment and double_scalar_alignment.
1408 * gcc-interface/utils.c (double_float_alignment): New global variable.
1409 (double_scalar_alignment): Likewise.
1410 (is_double_float_or_array): New predicate.
1411 (is_double_scalar_or_array): Likewise.
1412
1275de7d
EB
14132009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1414
1415 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
1416 the conditional expression only if it is common to both arms.
1417
6f61bd41
EB
14182009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1419
1420 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
1421 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
1422 arguments to build_allocator.
1423 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
1424 Remove code handling special allocator and assert its uselessness.
1425
0d858698
EB
14262009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1427
1428 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
1429 alignment is specified, do not promote that of the component type
1430 beyond it.
1431 <E_Array_Subtype>: Likewise.
1432
bbaba73f
EB
14332009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1434
1435 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
1436 * sinfo.ads (Object Declaration): Likewise.
1437 (Assignment Statement): Likewise.
1438 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
1439 Do not force Is_True_Constant to false on the temporary.
1440 (Freeze_Entity): Do not force Is_True_Constant to false on names on
1441 the RHS of object declarations.
1442 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
1443 New case. Return 1 if the object is atomic.
1444 <N_Assignment_Statement>: Likewise.
1445
4fd78fe6
EB
14462009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1447
1448 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
1449 For packed array types, make the original array type a parallel type
1450 for the modular type and its JM wrapper if the type is bit-packed.
1451 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
1452 record type for packed array types. Remove kludge.
1453
c1abd261
EB
14542009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1455
1456 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
1457 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1458 Use front-end predicates to compute signedness and precision.
1459 <E_String_Literal_Subtype>: Fold range type.
1460 Make sure to set longest_float_type_node to a scalar type.
1461 (elaborate_entity): Use consistent Constraint_Error spelling.
1462 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
1463 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
1464 output for the modulus, if any.
1465 <ENUMERAL_TYPE>: Likewise for the RM size.
1466 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
1467 spelling.
1468 * gcc-interface/utils.c (finish_record_type): Really test the alignment
1469 of BLKmode bit-fields to compute their addressability.
1470 (create_index_type): Adjust comments.
1471 (create_param_decl): Create the biased subtype manually.
1472 * gcc-interface/utils2.c (build_component_ref): Use consistent
1473 Constraint_Error spelling.
1474
8713b7e4
EB
14752009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1476
1477 * gcc-interface/cuintp.c: Clean up include directives.
1478 * gcc-interface/targtyps.c: Likewise.
1479 * gcc-interface/decl.c: Likewise.
1480 * gcc-interface/misc.c: Likewise.
1481 * gcc-interface/trans.c: Likewise.
1482 * gcc-interface/utils.c: Likewise.
1483 * gcc-interface/utils2.c: Likewise.
1484 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
1485
26383c64
EB
14862009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1487
1488 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
1489 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
1490 (SET_DECL_LANG_SPECIFIC): Likewise.
1491 Reorder macros.
1492 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1493 Update comment about use of build_range_type.
1494 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
1495 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
1496 check for other cases of overloading.
1497 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
1498 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
1499 Use size_int in lieu of build_int_cst.
1500 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
1501 build_range_type.
1502
b7babd5d
EB
15032009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1504
1505 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
1506 type is an enumeral or a boolean type, change it to an integer type
1507 with the same mode and signedness.
1508
5225a138
EB
15092009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1510
1511 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
1512 for an external constant whose initializer is not absolute.
1513
15142009-04-22 Taras Glek <tglek@mozilla.com>
d1b38208
TG
1515
1516 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
1517 * gcc-interface/trans.c: Likewise.
1518 * gcc-interface/utils.c: Likewise.
1519
a52fefe6
AC
15202009-04-22 Ed Schonberg <schonberg@adacore.com>
1521
1522 * sem_res.adb: Create block around procedure call when actual is a
1523 concatenation.
1524
15252009-04-22 Thomas Quinot <quinot@adacore.com>
1526
1527 * s-soflin.ads: Fix typos
1528
15292009-04-22 Vincent Celier <celier@adacore.com>
1530
1531 * prj-env.adb: Minor comment change
1532
1533 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
1534 Get_Name_String with No_File.
1535
1536 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
1537 cannot be created even when not in verbose mode.
1538
2f1e0b61
EB
15392009-04-22 Emmanuel Briot <briot@adacore.com>
1540
1541 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
1542 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
1543 Multi_Language modes, to avoid code duplication.
1544 (Project_Data.Include_Language): Removed.
1545
35afb012
AC
15462009-04-22 Vincent Celier <celier@adacore.com>
1547
1548 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
1549 the temporary file cannot be created, indicating the directory when the
1550 creation was attempted.
1551
15522009-04-22 Emmanuel Briot <briot@adacore.com>
1553
1554 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
1555 the language names, not their indices.
1556
10d2a6f7
EB
15572009-04-22 Emmanuel Briot <briot@adacore.com>
1558
1559 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
1560 (Source_Data.Language_Name): Field removed.
1561
39d4e04a
EB
15622009-04-22 Emmanuel Briot <briot@adacore.com>
1563
1564 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
1565 Two fields removed.
1566
f1eea135
EB
15672009-04-22 Emmanuel Briot <briot@adacore.com>
1568
1569 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
1570 separate_suffix to the same value as the body_suffix.
1571
d9c0e057
AC
15722009-04-22 Robert Dewar <dewar@adacore.com>
1573
1574 * prj.adb: Minor code reorganization
1575 Code clean up.
1576
1577 * prj-proc.adb: Minor code reorganization, clean up.
1578
1579 * prj-nmsc.adb: Minor reformatting
1580 Minor code reorganization
1581
1582 * gnat_ugn.texi: Add to doc on strict aliasing
1583
15842009-04-22 Pascal Obry <obry@adacore.com>
1585
1586 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
1587 SpinCount.
1588
1589 * s-tasini.adb: Minor reformatting.
1590
1591 * s-tassta.adb: Minor reformatting.
1592
ce30eccb
EB
15932009-04-22 Emmanuel Briot <briot@adacore.com>
1594
1595 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
1596 smaller subprograms.
1597 Renamed to Check_File_Naming_Schemes to avoid confusion with the
1598 other Check_Naming_Schemes functions that plays a totally different
1599 role.
1600 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
1601 extracted from the above. These were partially rewritten to avoid
1602 unnecessary code and temporary variables.
1603 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
1604 and Get_Unit (which for now still exist since they contain mode-specific
1605 code)
1606
347ab254
EB
16072009-04-22 Emmanuel Briot <briot@adacore.com>
1608
1609 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
1610 Remove duplicated code.
1611 (Canonical_Case_File_Name): new subprogram
1612 (Check_And_Normalize_Unit_Names): new subprogram
1613 (Write_Attr): new subprogram
1614 Better sharing of code
1615 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
1616 split Check_Naming and help find duplicated code
1617 (Check_Common): new subprogram, sharing code between ada_only and
1618 multi_language mode.
1619 (Naming_Data.Dot_Repl_Loc): field removed
1620
aa903780
EB
16212009-04-22 Emmanuel Briot <briot@adacore.com>
1622
1623 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
1624 Minor refactoring to reduce the size of
1625 Process_Sources_In_Multi_Language_Mode.
1626 Avoid extra copied of Source_Data, which we found in the past could be
1627 quite slow.
1628 (Mark_Excluded_Sources): new subprogram.
1629 (Remove_Locally_Removed_Files_From_Units): merged into the above
1630 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
1631 and allow better sharing of code between multi_lang and ada_only modes
1632 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
1633
95c05c62
EB
16342009-04-22 Emmanuel Briot <briot@adacore.com>
1635
1636 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
1637 Removed, since unused.
1638
c9a1acdc
AC
16392009-04-22 Vincent Celier <celier@adacore.com>
1640
1641 * prj-attr.adb: New single project level attribute
1642 Separate_Run_Path_Options.
1643
1644 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
1645 attribute Seperate_Run_Path_Options.
1646
1647 * prj.ads: (Project_Configuration): New Boolean component
1648 Separate_Run_Path_Options, defaulted to False.
1649
1650 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
1651
6d2a1120
RD
16522009-04-22 Robert Dewar <dewar@adacore.com>
1653
c9a1acdc
AC
1654 * sem_type.adb: Minor reformatting
1655
6d2a1120
RD
1656 * mlib.adb: Minor reformatting
1657
1658 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
1659 syntax error.
1660
3b81743f
NS
16612009-04-22 Nicolas Setton <setton@adacore.com>
1662
1663 * link.c: Add flag __gnat_separate_run_path_options.
1664
1665 * mlib.adb (Separate_Run_Path_Options): New subprogram.
1666
1667 * mlib.ads (Separate_Run_Path_Options): Declare.
1668
1669 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
1670 switch per directory, rather than one "rpath" switch listing all
1671 directories.
1672
1673 * gnatlink.adb (Process_Binder_File): Likewise.
1674
1675 * make.adb (Gnatmake): Likewise.
1676
3a69b5ff
AC
16772009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
1678
1679 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
1680 Add a call to Move_Final_List when the target of the assignment is a
1681 return object that needs finalization and the expression is a
1682 controlled build-in-place function.
1683
16842009-04-22 Vincent Celier <celier@adacore.com>
1685
1686 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
1687 Including_Libraries set to True.
1688
f3a67cfc
ES
16892009-04-22 Ed Schonberg <schonberg@adacore.com>
1690
1691 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
1692 create a unit table entry for the subprogram declaration created for a
1693 child suprogram body that has no separate specification.
1694
1695 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
1696 subprogram body, call Make_Child_Decl_Unit.
1697
1698 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
1699 table can only be the created specification of a child subprogram body
1700 that is the main unit, which has not been entered in the table yet.
1701
1702 * errout.adb (Output_Messages): Ignore created specification of a
1703 child subprogram body to prevent repeated listing of error messages.
1704
1705 * gnat1drv.adb (gnat1drv): The generated specification for a child
1706 subprogram body does not generate code.
1707
1ef4d0a8
AC
17082009-04-22 Arnaud Charlet <charlet@adacore.com>
1709
1710 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
1711 since this unit is now part of bootstrap units, so must use Ada 95
1712 syntax only.
1713
17142009-04-22 Thomas Quinot <quinot@adacore.com>
1715
1716 * a-tasatt.adb: Minor reformatting
1717
17182009-04-22 Bob Duff <duff@adacore.com>
1719
1720 * s-stalib.ads: Remove "with System;" since we're inside System, so
1721 it's unnecessary.
1722
17232009-04-22 Vincent Celier <celier@adacore.com>
1724
1725 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
1726 the source record, as there may be a dependency file even if no object
1727 file is created.
1728
1cb46af0
RD
17292009-04-22 Robert Dewar <dewar@adacore.com>
1730
1ef4d0a8 1731 * lib-load.adb: Minor reformatting
1cb46af0
RD
1732
1733 * lib-load.ads: Minor reformatting
1734
1735 * sinfo.ads: Minor reformatting
1736
218e53ff
BD
17372009-04-22 Bob Duff <duff@adacore.com>
1738
1739 * exp_pakd.adb: Minor comment fixes.
1740
1741 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
1742 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
1743 include units containing instantiations, as well as units that are
1744 generic instantiations.
1745
1746 * sem.adb: Include dependents and corresponding specs/bodies in the
1747 unit walk.
1748
1749 * gcc-interface/Make-lang.in:
1750 sem now depends on s-bitops, because of the packed array of Booleans.
1751
feec4372
EB
17522009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1753
1754 * gcc-interface/ada-tree.def: Fix formatting nits.
1755 (REGION_STMT): Delete.
1756 (HANDLER_STMT): Likewise.
1757 * gcc-interface/ada-tree.h: Fix formatting nits.
1758 (IS_STMT): Delete.
1759 (REGION_STMT_BODY): Likewise.
1760 (REGION_STMT_HANDLE): Likewise.
1761 (REGION_STMT_BLOCK): Likewise.
1762 (HANDLER_STMT_ARG): Likewise.
1763 (HANDLER_STMT_LIST): Likewise.
1764 (HANDLER_STMT_BLOCK): Likewise.
1765 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
1766 (fp_size_to_prec): Likewise.
1767 (largest_move_alignment): Delete.
1768 (gnat_compute_largest_alignment): Likewise.
1769 Fix minor nits.
1770 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1771 Remove redundant code.
1772 <E_Array_Type>: Remove redundant assert.
1773 <E_Array_Subtype>: Exit early from index computation in pathological
1774 cases.
1775 Rewrite conditional assignment.
1776 (make_type_from_size): Likewise.
1777 * gcc-interface/misc.c (largest_move_alignment): Delete.
1778 (gnat_finish_incomplete_decl): Likewise.
1779 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
1780 (asm_out_file): Likewise
1781 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
1782 (gnat_dwarf_name): Move around.
1783 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
1784 (gigi): Remove call to gnat_compute_largest_alignment.
1785 * utils.c (create_field_decl): Rewrite conditional assignment.
1786 Fix minor nits.
1787
a8e05f92
EB
17882009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1789
1790 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
1791 on entry. Defer common processing for types. Reorder and clean up.
1792 Compute the equivalent GNAT node and the default size for types only.
1793 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
1794 <E_Access_Type>: For an unconstrained designated type, do not pretend
1795 that a dummy type is always made.
1796 <all> Fix nits in comments.
1797 (validate_size): Fix formatting nits and comments.
1798 (set_rm_size): Likewise.
1799 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
1800 passed to TARGET_PROMOTE_PROTOTYPES hook.
1801
0fb2335d
EB
18022009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1803
1804 * fe.h (Get_External_Name): Declare.
1805 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
1806 (concat_name): ...this.
1807 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
1808 gnu_entity_name and adjust for above renaming.
1809 <E_Access_Type>: Use create_concat_name to get the name of the various
1810 types associated with unconstrained array types.
1811 (make_aligning_type): Adjust for above renaming.
1812 (maybe_pad_type): Likewise.
a8e05f92 1813 (components_to_record): Likewise. Use get_identifier_with_length for
0fb2335d
EB
1814 the encoding of the variant.
1815 (get_entity_name): Use get_identifier_with_length.
a8e05f92 1816 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
0fb2335d
EB
1817 Do not fiddle with Name_Buffer.
1818 (concat_id_with_name): Rename to...
a8e05f92 1819 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
0fb2335d
EB
1820 with Name_Buffer.
1821 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
1822 above renaming.
1823
ad41bd84
JM
18242009-04-21 Joseph Myers <joseph@codesourcery.com>
1825
1826 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
1827 license notices.
1828
ca80e52b
EB
18292009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1830
1831 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
1832
b4680ca1
EB
18332009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1834
71b495a2 1835 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
b4680ca1 1836 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
71b495a2
EB
1837 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
1838 Remove useless support code for packed array types and assert its
1839 uselessness.
b4680ca1
EB
1840 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
1841 adjust for TYPE_RM_SIZE change.
1842 <all> Fix nits in comments. Use Original_Array_Type accessor instead
1843 of Associated_Node_For_Itype accessor for packed array types.
1844 (make_packable_type): Likewise.
1845 (maybe_pad_type): Likewise.
1846 (set_rm_size): Likewise. Rework conditional statement. Adjust for
1847 TYPE_RM_SIZE change.
1848 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
1849 (rm_size): Fix nits in comments. Rework conditional statements.
71b495a2
EB
1850 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
1851 change.
1852 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
1853 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
1854 appropriate function to initialize the size_type_node. Adjust for
1855 TYPE_RM_SIZE change.
b4680ca1 1856
a962b0a1
EB
18572009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1858
1859 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
1860 for imported subprograms.
1861
2f283818
EB
18622009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1863
1864 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
1865 constant objects covered by 13.3(19) volatile.
1866
ac53d5f2
EB
18672009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1868
1869 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
1870 of dummy fat pointer types to the debug back-end.
1871
6e0f0975
EB
18722009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1873
1874 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
1875 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
1876 before wrapping it up in the record type. Do not overwrite the
1877 Ada size of the record type with the Esize.
1878
c2efda0d
EB
18792009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1880
1881 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
1882 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
1883 if the conversion is on the LHS of an assignment and a no-op.
1884 <all> Do not convert the result to the result type if the Parent
1885 node is such a conversion.
1886
77022fa8
EB
18872009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1888
1889 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
1890 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
1891 of types with unknown discriminants.
1892 (substitute_in_type): Rewrite and restrict to formal substitutions.
1893 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
1894 (update_pointer_to): Update comment.
1895
e69614ad
AC
18962009-04-20 Ed Schonberg <schonberg@adacore.com>
1897
1898 * sem_ch8.adb (Use_One_Package): In an instance, if two
1899 potentially_use_visible and non-overloadable homonyms are available
1900 from the actuals of distinct formal packages, retain the current one,
1901 which was visible in the generic, to prevent spurious visibility
1902 errors.
1903 (End_Use_Package): Restore use_visibility when needed.
1904
19052009-04-20 Sergey Rybin <rybin@adacore.com>
1906
1907 * gnat_ugn.texi, vms_data.ads: Update doc.
1908
32838704
AC
19092009-04-20 Arnaud Charlet <charlet@adacore.com>
1910
1911 * gcc-interface/Make-lang.in: Update dependencies
1912
1913 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
1914 Windows.
1915
37951d8e
AC
19162009-04-20 Robert Dewar <dewar@adacore.com>
1917
1918 * checks.ads: Fix documentation of range check handling
1919
19202009-04-20 Ed Schonberg <schonberg@adacore.com>
1921
1922 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
1923 a redundant use_type clause.
1924
5d5832bc
AC
19252009-04-20 Robert Dewar <dewar@adacore.com>
1926
1927 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
1928 this attribute can be evaluated at compile time.
1929 (Eval_Attribute, case Range_Length): Same improvement
1930
1931 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
1932
19332009-04-20 Ed Schonberg <schonberg@adacore.com>
1934
1935 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
1936 for better handling of null procedures.
1937 (Check_Overriding_Indicator): Do not emit a warning on a missing
1938 overriding indicator on an operator when the type of which the operator
1939 is a primitive is private.
1940
97a8fb16
AC
19412009-04-20 Bob Duff <duff@adacore.com>
1942
1943 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
1944 debugging output.
1945
19462009-04-20 Robert Dewar <dewar@adacore.com>
1947
1948 * sem_attr.adb: Minor reformatting
1949
1950 * gnatcmd.adb: Minor reformatting
1951
7340e432
AC
19522009-04-20 Ed Schonberg <schonberg@adacore.com>
1953
1954 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
1955 overloaded and one interpretation matches the context, label the
1956 operand with the type of first formal.
1957
19582009-04-20 Bob Duff <duff@adacore.com>
1959
1960 * debug.ads: Minor comment fix.
1961
1962 * debug.adb: Minor comment fixes.
1963
19642009-04-20 Javier Miranda <miranda@adacore.com>
1965
1966 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
1967
1968 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
1969
1970 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
1971 is expanded into a call to Raise_Exception, avoid passing the
1972 exception-name'identity in runtimes in which this argument
1973 is not used.
1974
bf06d37f
AC
19752009-04-20 Jerome Lambourg <lambourg@adacore.com>
1976
1977 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
1978 generated bindings for cil.
1979
19802009-04-20 Ed Schonberg <schonberg@adacore.com>
1981
1982 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
1983 discriminants, collect components from the Underlying_Record_View,
1984 which will be used in the expansion of the aggregate into assignments.
1985
1986 * sem_ch3.adb: Do not label derived type with unknown discriminants as
1987 having a private declaration.
1988
58a9d876
AC
19892009-04-20 Ed Schonberg <schonberg@adacore.com>
1990
1991 * exp_util.adb (Expand_Subtype_From_Expr): use the
1992 underlying_record_view when available, to create the proper constrained
1993 subtype for an object of a derived type with unknown discriminants.
1994
19952009-04-20 Javier Miranda <miranda@adacore.com>
1996
1997 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
1998 formals that have pragma unreferenced.
1999
e34ca162
AC
20002009-04-20 Pascal Obry <obry@adacore.com>
2001
2002 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
2003 Remove all calls to To_Lower_If_Case_Insensitive to preserve
2004 the pathname original casing.
2005
20062009-04-20 Robert Dewar <dewar@adacore.com>
2007
2008 * g-trasym.adb: Minor reformatting
2009
2010 * s-os_lib.adb: Minor reformatting
2011
2012 * sem.adb: Minor reformatting
2013 Minor code reorganization
2014
2015 * sem_ch3.adb: Minor reformatting
2016
2017 * sem_ch4.adb: Minor reformatting
2018
2019 * sem_ch8.adb: Minor reformatting
2020
2021 * sem_type.adb: Minor reformatting
2022
ee9aa7b6
AC
20232009-04-20 Javier Miranda <miranda@adacore.com>
2024
2025 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
2026 generated by derivations of tagged types use the aliased subprogram a
2027 reference to locate their controlling type.
2028
20292009-04-20 Tristan Gingold <gingold@adacore.com>
2030
2031 * g-trasym.adb: Set size of result buffer before calling
2032 convert_address.
2033
20342009-04-20 Ed Schonberg <schonberg@adacore.com>
2035
2036 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
2037 to a function returning an array can be interpreted as a call with
2038 defaulted parameters whose result is indexed, take into account the
2039 types of all the indices of the array result type.
2040
20412009-04-20 Pascal Obry <obry@adacore.com>
2042
2043 * a-direct.adb, s-os_lib.adb: Minor reformatting.
2044
bddd6058
AC
20452009-04-20 Ed Schonberg <schonberg@adacore.com>
2046
2047 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
2048 null exclusion qualifiers for object renaming declarations.
2049
20502009-04-20 Nicolas Roche <roche@adacore.com>
2051
2052 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
2053 unsigned long long. So compare local_time and utc_time before computing
2054 the difference.
2055
20562009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2057
2058 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
2059 of the Underlying_Record_View before that of the derived type.
2060
2061 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
2062 with unknown discriminants with regard to the parent subtype.
2063
4f18d860
BD
20642009-04-20 Bob Duff <duff@adacore.com>
2065
2066 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
2067 that are not included. This is necessary if the main unit is a generic
2068 instantiation.
2069
2070 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
2071 because it doesn't work if -gnatn is used.
2072
5987e59c
AC
20732009-04-20 Ed Schonberg <schonberg@adacore.com>
2074
2075 * rtsfind.adb (RTE, RTE_Record_Component): In
2076 Configurable_Run_Time_Mode, do not enable front-end inlining.
2077
20782009-04-20 Thomas Quinot <quinot@adacore.com>
2079
2080 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
2081 System.Address_To_Access_Conversions.
2082
20832009-04-20 Ed Schonberg <schonberg@adacore.com>
2084
2085 * sem.adb: Guard against ill-formed subunits.
2086
20872009-04-20 Bob Duff <duff@adacore.com>
2088
2089 * output.adb (Flush_Buffer): Do not indent blank lines.
2090 (Ignore_Output): New procedure for output suppression.
2091
20922009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2093
2094 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
2095 when it is positive. This avoids a potential constraint error raised
2096 by the conversion to Natural.
2097
20982009-04-20 Gary Dismukes <dismukes@adacore.com>
2099
2100 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
2101 involves a target that has a specified address, don't set Forward_OK
2102 and Backward_OK to False if the rhs is an aggregate, since overlap
2103 can't occur.
2104
21052009-04-20 Ed Schonberg <schonberg@adacore.com>
2106
451800a0 2107 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5987e59c
AC
2108 in an object renaming declaration when the expected type is an
2109 anonymous access type.
2110
2111 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
2112 ambiguity when one interpretation is an anonymous access type and the
2113 other is a named access type, and the context itself is anonymous
2114
21152009-04-20 Thomas Quinot <quinot@adacore.com>
2116
2117 * einfo.ads: Minor comment rewording
2118
2119 * sem_aggr.adb: Minor comment rewording
2120
2121 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
2122
21232009-04-20 Pascal Obry <obry@adacore.com>
2124
2125 * adaint.c (__gnat_is_readable_file): Check for file existence
2126 when not using ACL (always the case on remote drives).
2127
8737a29a
AC
21282009-04-20 Robert Dewar <dewar@adacore.com>
2129
2130 * sinfo.ads: Minor comment fixes
2131
2132 * exp_disp.adb: Minor reformatting
2133
2134 * gnat1drv.adb: Minor reformatting
2135
2136 * output.adb: Minor reformatting
2137
2138 * s-vxwext-kernel.ads: Minor reformatting
2139
2140 * sem.ads: Minor reformatting
2141
2142 * sem.adb: Minor reformatting
2143
2144 * sem_elim.adb: Minor reformatting
2145
2146 * uname.ads: Minor reformatting
2147
21482009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2149
2150 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
2151 a small dope of 4 words to the adjustment to the stack pointer.
2152
21532009-04-20 Thomas Quinot <quinot@adacore.com>
2154
2155 * xoscons.adb: generate C header s-oscons.h in
2156 addition to s-oscons.ads.
2157
2158 * socket.c: On VMS, use s-oscons.h.
2159
2160 * sem_ch3.adb: Minor reformatting
2161
2162 * exp_ch9.adb: Minor reformatting
2163
85087bcb
EB
21642009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2165
2166 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
2167 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
2168 (call_to_gnu): Likewise.
2169
ecc3905a
EB
21702009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2171
2172 * gcc-interface/trans.c (gigi): Declare the name of the compilation
2173 unit as the first global name at the very beginning.
2174
2907036d
TQ
21752009-04-20 Thomas Quinot <quinot@adacore.com>
2176
2177 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
2178 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
2179 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
2180 since HP-UX supports neither inet_aton nor inet_pton (altough the
2181 latter is part of the Single UNIX Specification!).
2182 So reorganize code, and share C implementation based on inet_addr(3)
2183 with VMS (instead of having a VMS specific Ada implementation in
2184 g-socthi-vms.adb).
2185
d5063351
AC
21862009-04-20 Gary Dismukes <dismukes@adacore.com>
2187
2188 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
2189 to return the object file name saved by Set_Object_Output_File_Name.
2190
21912009-04-20 Emmanuel Briot <briot@adacore.com>
2192
2193 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
2194 for the standard command line, when argc has been modified since the
2195 start of the application.
2196
21972009-04-20 Thomas Quinot <quinot@adacore.com>
2198
2199 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
2200 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
2201
3edf2f76
AC
22022009-04-20 Bob Duff <duff@adacore.com>
2203
2204 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
2205 pragma Debug.
2206
22072009-04-20 Ed Schonberg <schonberg@adacore.com>
2208
2209 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
2210 subprogram as Eliminated when source operation is.
2211 (Expand_N_Protected_Type_Declaration): Generate protected and
2212 unprotected specs for the internal operations, even if the source
2213 operation is eliminated.
2214
22152009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2216
2217 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
2218 Predefined_Primitive_Bodies): Do not create the declarations and bodies
2219 of the primitive subprograms associated with dispatching select
2220 statements when the runtime is in configurable mode.
2221
22222009-04-20 Ed Falis <falis@adacore.com>
2223
2224 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
2225
4fd1e8b0
AC
22262009-04-20 Thomas Quinot <quinot@adacore.com>
2227
2228 * s-oscons-tmplt.c: Add support for generating a dummy version of
2229 s-oscons.ads providing all possible constants.
2230
2231 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
2232
2233 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
2234 ANSI version (not the UNICODE version) of WSAStringToAddress.
2235
22362009-04-20 Pascal Obry <obry@adacore.com>
2237
2238 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
2239 allocated for the security descriptor and make sure all
2240 handles are closed before leaving this procedure.
2241
9013065b
AC
22422009-04-20 Javier Miranda <miranda@adacore.com>
2243
2244 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
2245 (Set_Is_Underlying_Record_View): New subprogram
2246
2247 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
2248 private types with unknown discriminants use the underlying record view
2249 if available.
2250
2251 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
2252 underlying record view in the full view of private types whose parent
2253 has unknown discriminants.
2254 (Build_Derived_Record_Type): Avoid generating the class-wide entity
2255 associated with an underlying record view.
2256 (Derived_Type_Declaration): Avoid deriving parent primitives in
2257 underlying record views.
2258
2259 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
2260 records with unknown discriminants.
2261
2262 * sem_type.adb (Covers): Handle underlying record views.
2263 (Is_Ancestor): Add support for underlying record views.
2264
2265 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
2266 dispatching call if the type of the target object is tagged and has
2267 unknown discriminants.
2268
2269 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
2270 unknown discriminants.
2271
2272 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
2273 tables for internally built underlying record views.
2274
2275 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
2276 empty list of component associations.
2277
22782009-04-20 Thomas Quinot <quinot@adacore.com>
2279
2280 * sem_ch10.adb: Minor reformatting
2281
2282 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
2283 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
2284 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
2285 standard inet_pton API (and emulate it on platforms that do not
2286 support it).
2287 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
2288 DECC$INET_ADDR, imported in Ada.
2289 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
2290 implementation provided by GNAT runtime.
2291 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
2292 Windows.
2293
7289b80c
AC
22942009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2295
2296 * gnat_ugn.texi: Add documentation for -fno-ivopts.
2297
22982009-04-20 Ed Schonberg <schonberg@adacore.com>
2299
2300 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
2301 with_clause if it is the main unit.
2302
c09a557e
AC
23032009-04-20 Thomas Quinot <quinot@adacore.com>
2304
2305 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
2306 (no behaviour change): Use Append instead of Increment_Last followed
2307 by assignment.
2308
23092009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2310
2311 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
2312 declarations of all primitives associated with dispatching asynchronous,
2313 conditional and timed selects when dispaching calls are forbidden and
2314 select statements are not allowed (such as in Ravenscar).
2315 (Predefined_Primitive_Bodies): Ditto for bodies.
2316
2317 * exp_disp.ad (Make_DT): Do not create and populate the
2318 Select_Specific_Data of the dispatch table when dispatching calls are
2319 forbidden and select statements are not allowed (such as in Ravenscar).
2320
23212009-04-20 Robert Dewar <dewar@adacore.com>
2322
2323 * a-tifiio.adb: Minor reformatting
2324
23252009-04-20 Thomas Quinot <quinot@adacore.com>
2326
2327 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
2328 other C library functions, report *failure* with a zero status, and
2329 success with a non-zero status.
2330
23312009-04-20 Bob Duff <duff@adacore.com>
2332
2333 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
2334 (Semantics): After analyzing each unit, Append it to the
2335 Comp_Unit_List, if appropriate.
2336
2337 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
2338 purposes.
2339 (Gnat1drv): Correct comment regarding Back_End_Mode.
2340
23412009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2342
2343 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
2344
7e728b0f
TQ
23452009-04-20 Thomas Quinot <quinot@adacore.com>
2346
2347 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2348 output.adb, output.ads, s-taprop-hpux-dce.adb,
2349 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
2350 reformatting.
2351
5e39baa6
TQ
23522009-04-20 Thomas Quinot <quinot@adacore.com>
2353
2354 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
2355 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
2356 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
2357 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
2358 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
2359 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
2360
2361 * debug.adb: Fix typo
2362
2363 * gnat_rm.texi: Minor doc fix.
2364
2365 * sem_ch7.adb, freeze.adb: Minor reformatting
2366
3568b271
AC
23672009-04-20 Thomas Quinot <quinot@adacore.com>
2368
2369 * g-socket.ads: Add new constants:
2370 Loopback_Inet_Addr
2371 Unspecified_Group_Inet_Addr
2372 All_Hosts_Group_Inet_Addr
2373 All_Routers_Group_Inet_Addr
2374
2375 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
2376 ERANGE (Result too large).
2377 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
2378 propagation of errno to caller.
2379
23802009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2381
2382 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
2383 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
2384 Leap_Second_Times.
2385
23862009-04-20 Gary Dismukes <dismukes@adacore.com>
2387
2388 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
2389 checking for references to eliminated subprograms that should be
2390 flagged.
2391 (Eliminate_Error_Message): Update comment to say "references" rather
2392 than "calls" (since attribute cases are handled here as well).
2393
2394 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
2395 checking for references to eliminated subprograms that should be
2396 flagged. Add with and use of Sem and Sem_Util.
2397
2398 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
2399 Add with and use of Sem_Elim.
2400
2401 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
2402 applied to eliminated subprograms.
2403 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
2404 eliminated subprograms.
2405 Add with and use of Sem_Elim.
2406
2407 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
2408 to eliminated subprograms, now handled during Resolve_Call.
2409 Remove with and use of Sem_Elim.
2410
2411 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
2412 testing Is_Eliminated, for proper handling of primitive derived from
2413 eliminated subprograms.
2414
24152009-04-20 Vincent Celier <celier@adacore.com>
2416
2417 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
2418 has been declared (Library_GCC or Linker'Driver), for the driver name.
2419
2420 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
2421 Linker'Driver is, use Linker'Driver as the shared library linker.
2422 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
2423 Library_GCC is declared.
2424 (Check_Library_Attributes): Set up the shared linker driver: either
2425 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
2426 declared.
2427
6e55ac7a
TQ
24282009-04-20 Thomas Quinot <quinot@adacore.com>
2429
2430 * g-socket.ads (Send_Socket): Fix misleading comment.
2431
68218f7c
AC
24322009-04-20 Arnaud Charlet <charlet@adacore.com>
2433
2434 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
2435 ASIS mode.
2436
24372009-04-20 Geert Bosch <bosch@adacore.com>
2438
2439 * a-tifiio.adb (Put): Avoid generating too many digits for certain
2440 fixed types with smalls that are neither integer or the reciprocal
2441 of an integer.
2442
24432009-04-20 Bob Duff <duff@adacore.com>
2444
2445 * uname.ads: Minor comment fix.
2446
2447 * types.ads: Minor comment fix.
2448
262991d8
PO
24492009-04-20 Pascal Obry <obry@adacore.com>
2450
2451 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
2452 avoid warning. At the same time fix a memory leak.
2453
2454 * osint.adb (Get_Libraries_From_Registry): Properly free memory
2455 returned by the above routine.
2456
d0f8d157
AC
24572009-04-20 Robert Dewar <dewar@adacore.com>
2458
2459 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
2460 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
2461 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
2462 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
2463
2464 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
2465
24662009-04-20 Pascal Obry <obry@adacore.com>
2467
2468 * initialize.c (__gnat_initialize): Add braces to kill warning.
2469
262991d8 2470 * adaint.c: Minor reformatting, remove trailing spaces.
d0f8d157 2471
34c25b32
AC
24722009-04-17 Arnaud Charlet <charlet@adacore.com>
2473
2474 * gcc-interface/Make-lang.in: Update dependencies.
2475
9549767b
AC
24762009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2477
2478 * adaint.h (__gnat_lwp_self): Declare on Linux.
2479
2480 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
2481
24822009-04-20 Robert Dewar <dewar@adacore.com>
2483
2484 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
2485 front-end part of -fpreserve-control-flow switch.
2486
d7f94401
AC
24872009-04-20 Bob Duff <duff@adacore.com>
2488
2489 * rtsfind.adb: Minor comment fix
2490
24912009-04-20 Robert Dewar <dewar@adacore.com>
2492
2493 * exp_aggr.adb: Minor reformatting
2494 Minor code reorganization (use Nkind_In)
2495
2496 * g-socket.adb: Minor reformatting
2497
2498 * g-socket.ads: Minor comment fix
2499
2500 * s-auxdec.ads: Minor comment and organization update.
2501
2502 * s-auxdec-vms_64.ads: Minor comment and organization update.
2503
2504 * sem_ch10.adb: Minor addition of ??? comment
2505
2506 * sem_disp.adb: Minor reformatting
2507
f8b86c2d
AC
25082009-04-20 Ed Schonberg <schonberg@adacore.com>
2509
2510 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
2511 list a caller of an inlined subprogram, if the caller itself is not
2512 called.
2513
25142009-04-20 Pascal Obry <obry@adacore.com>
2515
2516 * adaint.c: Disable use of ACL on network drives.
2517
25182009-04-20 Arnaud Charlet <charlet@adacore.com>
2519
2520 * gnat_ugn.texi: Add examples.
2521
efec4f2a
TQ
25222009-04-20 Thomas Quinot <quinot@adacore.com>
2523
2524 * g-socket.ads (Abort_Selector): Clarify documentation.
2525
ff2e7c1e
AC
25262009-04-20 Arnaud Charlet <charlet@adacore.com>
2527
2528 * opt.ads (Inspector_Mode): Update documentation of this flag.
2529
25302009-04-20 Thomas Quinot <quinot@adacore.com>
2531
2532 * g-socket.ads: Minor reformatting
2533
2534 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
2535 consider S_resolvLib error codes since we only use the hostLib wrappers.
2536
25372009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2538
2539 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
2540 of the Underlying_Record_View after that of the derived type.
2541
26a43556
AC
25422009-04-20 Arnaud Charlet <charlet@adacore.com>
2543
2544 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
2545 in inspector mode.
2546
25472009-04-20 Javier Miranda <miranda@adacore.com>
2548
2549 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
2550
2551 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
2552 documentation.
2553
2554 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
2555
2556 * sem_disp.adb
2557 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
2558 in internally built overriding subprograms.
2559
25602009-04-20 Doug Rupp <rupp@adacore.com>
2561
2562 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
2563
2564 * s-auxdec.ads: Likewise
2565
25662009-04-20 Ed Schonberg <schonberg@adacore.com>
2567
2568 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
2569 type by an interface.
2570
2571 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
2572 minimze difference in expanded tree when compiled as spec of the main
2573 unit, or as a spec in the context of another unit.
2574
3f25c54d
AC
25752009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2576
2577 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
2578 (localtime_tzoff): This routine no longer accepts an actual of type
2579 tm_Pointer.
2580 (UTC_Time_Offset): Remove local variable Secs_TM.
2581
2582 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
2583 actual of type struct tm*. Add local variable of type struct tm for all
2584 targets that provide localtime_r and need to invoke it.
2585
25862009-04-20 Thomas Quinot <quinot@adacore.com>
2587
2588 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
2589 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
2590 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
2591
8dbf3473
AC
25922009-04-20 Robert Dewar <dewar@adacore.com>
2593
2594 * sem_ch3.adb: Minor reformatting
2595
2596 * lib-load.adb: Minor reformatting
2597
2598 * sem_ch4.adb: Minor reformatting
2599
26002009-04-20 Robert Dewar <dewar@adacore.com>
2601
2602 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
2603 (equal values => False).
2604
26052009-04-20 Ed Schonberg <schonberg@adacore.com>
2606
2607 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
2608 to null procedures can be inlined unconditionally.
2609
56fe7b05
EB
26102009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2611
2612 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
2613 non-addressable parameter passed by reference, do not convert the
2614 actual if its type is already the nominal type, unless it is of
2615 self-referential size.
2616
9fcf2a0b
AC
26172009-04-20 Arnaud Charlet <charlet@adacore.com>
2618
2619 * gnat_ugn.texi: Fix typos.
2620
26212009-04-20 Robert Dewar <dewar@adacore.com>
2622
2623 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
2624 Validate_Unchecked_Warnings to suppress warnings about size or
2625 alignment or extra bits if either type involved has pragma Warnings
2626 (Off) set for the type entity.
2627
f7ebc6a8
EB
26282009-04-19 Eric Botcazou <ebotcazou@adacore.com>
2629
2630 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
2631 a builtin type and give it a name.
2632
105ab5db
DN
26332009-04-17 Diego Novillo <dnovillo@google.com>
2634
2635 * gcc-interface/misc.c (gnat_expand_expr): Remove.
2636 (LANG_HOOKS_EXPAND_EXPR): Remove.
2637
03b64787
AC
26382009-04-17 Robert Dewar <dewar@adacore.com>
2639
2640 * sem_ch3.adb: Minor reformatting
2641
26422009-04-17 Pascal Obry <obry@adacore.com>
2643
2644 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
2645
054275e4
ES
26462009-04-17 Ed Schonberg <schonberg@adacore.com>
2647
2648 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
2649 illegal constraints on type derived from formal discrete types.
2650
aed6fda8
TQ
26512009-04-17 Thomas Quinot <quinot@adacore.com>
2652
2653 PR ada/35953
2654
2655 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2656 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2657 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
2658 g-socket.ads (GNAT.Sockets.Thin.C_Send,
2659 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
2660 Replace calls to send(2) with equivalent sendto(2) calls.
2661 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
2662 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
2663 report an error in that case. Factor code common to the two versions
2664 (datagram and stream) in common routine Stream_Write.
2665
c5d91669
AC
26662009-04-17 Robert Dewar <dewar@adacore.com>
2667
2668 * exp_disp.adb: Minor reformatting
2669 Minor code reorganization (use Nkind_In)
2670
2671 * prepcomp.adb: Minor reformatting
2672
2673 * sem_ch3.adb: Minor reformatting
2674
2675 * sem_res.adb: Minor comment addition
2676
2677 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
2678 for address clause
2679
2680 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
2681 setting Is_Referenced
2682
2683 * types.ads: Minor reformatting
2684
26852009-04-17 Arnaud Charlet <charlet@adacore.com>
2686
2687 * gnat_ugn.texi: Initial documentation on binding generator.
2688
39f346aa
ES
26892009-04-17 Ed Schonberg <schonberg@adacore.com>
2690
2691 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
2692 type extensions whose parent is a type with unknown discriminants.
2693
2694 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
2695 aggregate has unknown discriminants, use the Underlying_Record_View to
2696 obtain the discriminants of the ancestor part.
2697
2698 * exp_disp.adb (Build_Dispatch_Tables): Types that are
2699 Underlying_Record_Views share the dispatching information of the
2700 original record extension.
2701
2702 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
2703 discriminants, propagate dispach table information to the
2704 Underlying_Record_View.
2705
2706 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
2707 discriminants and declaration is not a completion, generate
2708 Underlying_Record_View to provide proper discriminant information to
2709 the front-end and to gigi.
2710
8c64de1e
RD
27112009-04-17 Robert Dewar <dewar@adacore.com>
2712
2713 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
2714 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
2715 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
2716 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
2717 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
2718 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
2719 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
2720 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
2721 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
2722 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
2723 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
2724 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
2725 s-conca3.ads: Remove unneeded pragma Warnings
2726
74e63df1
RD
27272009-04-17 Robert Dewar <dewar@adacore.com>
2728
2729 * g-moreex.adb: Add comments.
2730
2731 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
2732
2733 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
2734 Warnings (Off)
2735
2736 * prepcomp.adb: Add ??? comment
2737
2738 * a-tasatt.adb: Minor reformatting
2739
2740 * g-trasym-vms-alpha.adb: Add ??? comment
2741
2742 * g-trasym-vms-ia64.adb: Add ??? comment
2743
2744 * xoscons.adb: Minor reformatting
2745
2746 * s-tassta.adb: Minor reformatting
2747
2748 * s-scaval.adb: Add ??? comment
2749
2750 * stand.ads: Minor code clean up (remove junk with of Namet)
2751
2752 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
2753 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
2754 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
2755 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
2756 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
2757 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
2758 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
2759 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
2760 Warnings off pragmas.
2761
df416fb0
AC
27622009-04-17 Pascal Obry <obry@adacore.com>
2763
2764 * initialize.c: Fix test for reallocating the arguments array.
2765
27662009-04-17 Geert Bosch <bosch@adacore.com>
2767
2768 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
2769 conversion truncate only for decimal fixed point types.
2770
27712009-04-17 Jerome Lambourg <lambourg@adacore.com>
2772
2773 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
2774 reinitialized.
2775
01cd0938
AC
27762009-04-17 Robert Dewar <dewar@adacore.com>
2777
2778 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
2779 Backwards_OK if either operand has an address clause.
2780
27812009-04-17 Pascal Obry <obry@adacore.com>
2782
2783 * initialize.c: Code clean up, use realloc.
2784
46e26fe3
PO
27852009-04-17 Pascal Obry <obry@adacore.com>
2786
2787 * initialize.c: Do not get Unicode command line if Unicode support not
2788 activated.
2789 Add support for wildcard expansion for Unicode parameters on Win32.
2790
2791 * mingw32.h: Add missing macros when Unicode support not activated.
2792
b20de9b9
AC
27932009-04-17 Javier Miranda <miranda@adacore.com>
2794
2795 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
2796 avoid generating code that references the Current_Master
2797 when compiling without tasks.
2798
27992009-04-17 Vincent Celier <celier@adacore.com>
2800
2801 * prj-attr.adb: New project level attribute Target
2802
2803 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
2804 attribute Target
2805
2806 * prj.ads (Project_Configuration): New component Target
2807
a8f59a33
AC
28082009-04-17 Thomas Quinot <quinot@adacore.com>
2809
2810 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
2811 case for the case of an aggregate component, the attach call for the
2812 result is actually needed.
2813
2814 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
2815 an array aggregate must be disabled if the component type requires
2816 controlled actions.
2817
2818 * exp_ch3.adb: Minor reformatting
2819
28202009-04-17 Bob Duff <duff@adacore.com>
2821
2822 * output.ads (Indent,Outdent): New procedures for indenting the output.
2823 (Write_Char): Correct comment -- LF _is_ allowed.
2824
2825 * output.adb (Indent,Outdent): New procedures for indenting the output.
2826 Keep track of the indentation level, and make sure it doesn't get too
2827 high.
2828 (Flush_Buffer): Insert spaces at the beginning of each line, if
2829 indentation level is nonzero.
2830 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
2831 indentation level.
2832 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
2833 "Next_Col := 1;". Flush_Buffer does that.
2834
2835 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
2836 controlled by the -gnatdc switch. It now occurs on entry/exit to the
2837 relevant analysis routines, and calls Indent/Outdent to make the
2838 indentation reflect the nesting level. Add "helper" routines, since
2839 otherwise lots of "return;" statements would skip the debugging output.
2840
28412009-04-17 Arnaud Charlet <charlet@adacore.com>
2842
2843 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
2844 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
2845 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
2846
32beb1f3
AC
28472009-04-17 Thomas Quinot <quinot@adacore.com>
2848
2849 * exp_aggr.adb: Minor code reorganization, no behaviour change.
2850
28512009-04-17 Ed Schonberg <schonberg@adacore.com>
2852
2853 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
2854 clause in a unit that is a package body or a subunit, when the previous
2855 clause appears in a spec or a parent.
2856
36c73552
AC
28572009-04-17 Thomas Quinot <quinot@adacore.com>
2858
2859 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
2860
2861 * exp_ch7.adb: Minor reformatting
2862
28632009-04-17 Bob Duff <duff@adacore.com>
2864
2865 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
2866 allocator, check that the expression of the qualified expression obeys
2867 the constraints of the subtype of the qualified expression.
2868
28692009-04-17 Thomas Quinot <quinot@adacore.com>
2870
2871 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
2872
cac5a801
AC
28732009-04-17 Ed Schonberg <schonberg@adacore.com>
2874
2875 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
2876 aggregate, using context imposed by subtype mark in allocator.
2877
28782009-04-17 Pascal Obry <obry@adacore.com>
2879
2880 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
2881
03f050b6
AC
28822009-04-17 Nicolas Roche <roche@adacore.com>
2883
2884 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
2885 argument length.
2886
28872009-04-17 Gary Dismukes <dismukes@adacore.com>
2888
2889 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
2890 cover both calls and attribute references ("call" => "reference").
2891
28922009-04-17 Ed Schonberg <schonberg@adacore.com>
2893
2894 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
2895 type for which Storage_Size is set to 0 is legal in a pure unit.
2896
bf327c92
AC
28972009-04-17 Thomas Quinot <quinot@adacore.com>
2898
2899 * exp_ch7.adb: Minor reformatting
2900
29012009-04-17 Robert Dewar <dewar@adacore.com>
2902
2903 * restrict.adb (Check_Restriction_No_Dependence): Don't check
2904 restriction if outside main extended source unit.
2905
2906 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
2907 for parents of child units as well as the child unit itself.
2908
29092009-04-17 Bob Duff <duff@adacore.com>
2910
2911 * checks.ads: Minor comment fix
2912
2913 * exp_aggr.ads: Minor comment fix
2914
29152009-04-17 Nicolas Roche <roche@adacore.com>
2916
2917 * adaint.c: Improve cross compiler detection and handling.
2918
ffec8e81
AC
29192009-04-17 Eric Botcazou <ebotcazou@adacore.com>
2920
2921 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
2922
29232009-04-17 Pascal Obry <obry@adacore.com>
2924
2925 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
2926 CurrentCodePage.
2927
2928 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
2929 value when no encoding form paramter is set on Text_IO services.
2930
2931 * adaint.c: CurrentCodePage new variable on Windows.
2932 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
2933 ones.
2934
2935 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
2936 ones.
2937
2938 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
2939 environment variable value. Default is UTF-8.
2940
2941 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
2942 fopen and freopen encoding parameter is now set to Unspecified.
2943 The default value is in this case UTF-8 (as it was before) but
2944 use the new macros that convert to/from the code page set
2945 at runtime (CurrentCodePage).
2946
2947 * s-fileio.adb: When no encoding specified use Unspecified value.
2948
29492009-04-17 Ed Schonberg <schonberg@adacore.com>
2950
2951 * atree.adb, atree.ads: Remove dead code.
2952
432e3422
AC
29532009-04-17 Arnaud Charlet <charlet@adacore.com>
2954
2955 * gcc-interface/Make-lang.in: Update dependencies.
2956
f3b01cd9
AC
29572009-04-17 Ed Schonberg <schonberg@adacore.com>
2958
2959 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
2960 illegal uses of incomplete types in formal parts and return types.
2961
2962 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
2963 access to subprograms.
2964
2965 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
2966 Taft-amendment types as the return type of an access_to_function type.
2967
2968 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
2969 type for access_to_subprograms. The check is performed on package exit.
2970
29712009-04-17 Ed Schonberg <schonberg@adacore.com>
2972
2973 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
2974
2975 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
2976
2977 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
2978
2979 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
2980 semantic units, because the handling of itypes in the copied tree
2981 requires semantic information that does not belong in atree.
2982
29832009-04-17 Robert Dewar <dewar@adacore.com>
2984
2985 * par-ch6.adb: Minor reformatting
2986
2987 * prj.adb: Minor reformatting
2988
618fb570
AC
29892009-04-17 Gary Dismukes <dismukes@adacore.com>
2990
2991 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
2992 on protected subprogram bodies, so exclude the case where Pf_Flags is
2993 Pf_Decl_Pbod from the error check.
2994
2995 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
2996 indicators on subprograms in protected bodies, and proceed with parsing
2997 the subprogram.
2998
2999 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
3000 subprograms from the check for primitiveness on subprograms with
3001 overriding indicators.
3002 (Check_Overriding_Indicator): Include protected subprograms in the
3003 style check for missing overriding indicators.
3004
30052009-04-17 Tristan Gingold <gingold@adacore.com>
3006
3007 * init.c: Fix stack checking for x86 Darwin.
3008
30092009-04-17 Vincent Celier <celier@adacore.com>
3010
3011 * prj-attr.adb: New project level attribute Object_File_Suffix
3012 (<language>).
3013
3014 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
3015 object file name
3016 (Process_Compiler): Process attribute Object_File_Suffix
3017
3018 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
3019 platform suffix, when specified.
3020
3021 * prj.ads (Language_Config): New component Object_File_Suffix,
3022 defaulted to No_Name.
3023 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
3024
3025 * snames.ads-tmpl: New standard name Object_File_Suffix
3026
93bcda23
AC
30272009-04-17 Robert Dewar <dewar@adacore.com>
3028
3029 * gnat_rm.texi: Add documentation about No_Streams restriction
3030
3031 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
3032 attributes when checking No_Streams restriction.
3033
30342009-04-17 Thomas Quinot <quinot@adacore.com>
3035
3036 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
3037
3038 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
3039 missing calls to RE_Request_Destroy to deallocate request objects after
3040 use.
3041
30422009-04-17 Nicolas Setton <setton@adacore.com>
3043
3044 * link.c: Fix support for passing a response file under Darwin.
3045
30462009-04-17 Emmanuel Briot <briot@adacore.com>
3047
3048 * prj.adb (Free): new subprogram.
3049
30502009-04-17 Ed Schonberg <schonberg@adacore.com>
3051
3052 * sem_ch3.adb: additional initialization on incomplete subtypes.
3053
3054 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
3055 part and one of the formals is an incomplete tagged type, attach to
3056 list of private dependends of the type for later validation.
3057
3058 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
3059 primitive operations of a Taft-amendmment type.
3060
3061 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
3062 type. The check is performed on package exit, possibly after the
3063 subprogram is frozen.
3064
30652009-04-17 Vincent Celier <celier@adacore.com>
3066
3067 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
3068 before looking for source directories, but make sure that there are nil
3069 if they are not explicitely declared and there is explicitely no
3070 sources in the project.
3071
ba4a2f78 30722009-04-17 Pascal Obry <obry@adacore.com>
78246a6e 3073
ba4a2f78 3074 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
78246a6e 3075
ba4a2f78 3076 * init.c: Fix minor typo and style fix.
ee00428a 3077
ba4a2f78 30782009-04-17 Robert Dewar <dewar@adacore.com>
ee00428a 3079
ba4a2f78 3080 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
ee00428a 3081
ba4a2f78
AC
3082 * sem_attr.adb (Analyze_Attribute, case Address): Use
3083 PE_Address_Of_Intrinsic.
3084
3085 * types.ads: Add PE_Address_Of_Intrinsic
3086
3087 * types.h: Add PE_Address_Of_Intrinsic
3088
30892009-04-17 Nicolas Setton <setton@adacore.com>
3090
3091 * gcc-interface/Makefile.in: Under darwin, build shared libraries
3092 with install_name starting with "@rpath/".
ee00428a
AC
3093
30942009-04-17 Nicolas Setton <setton@adacore.com>
3095
3096 * link.c: Add darwin section
3097
9fbb3ae6
AC
30982009-04-16 Robert Dewar <dewar@adacore.com>
3099
3100 * g-pehage.adb: Minor reformatting
3101
3102 * sem_ch12.adb: Minor reformatting
3103
3104 * exp_dist.adb: Minor reformatting
3105
3106 * bindgen.adb: Minor style fixes.
3107
31082009-04-16 Ed Schonberg <schonberg@adacore.com>
3109
3110 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
3111 indexed components to the case where the prefix is a static string
3112 literal.
3113
31142009-04-16 Javier Miranda <miranda@adacore.com>
3115
3116 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
3117 objects avoid any further expansion of the expression initializing the
3118 object.
3119
c1c5e0fa
AC
31202009-04-16 Ed Schonberg <schonberg@adacore.com>
3121
3122 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
3123 that hides an outer homograph, make that homograph invisible when
3124 analyzing the actuals, to to prevent illegal direct visibility on it.
3125
31262009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3127
3128 * g-pehage.adb (Initialize): Fix off-by-one error.
3129
d15d61c6
AC
31302009-04-16 Tristan Gingold <gingold@adacore.com>
3131
3132 * init.c: Detect real stack overflow on Darwin.
3133
3134 * system-darwin-x86.ads: Use stack probing on darwin x86.
3135
31362009-04-16 Ed Schonberg <schonberg@adacore.com>
3137
3138 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
3139 take the address of an intrinsic subprogram.
3140
0a0a18c3
AC
31412009-04-16 Arnaud Charlet <charlet@adacore.com>
3142
3143 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
3144 for the targets where GNAT.Traceback.Symbolic is not supported.
3145
d15d61c6
AC
31462009-04-16 Vincent Celier <celier@adacore.com>
3147
3148 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
3149
3150 * g-trasym.ads: Update comments.
3151
31522009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
3153
3154 * tracebak.c (STOP_FRAME): Verify validity of the current address
3155 before dereferencing.
3156
b61ebe4f
AC
31572009-04-16 Ed Schonberg <schonberg@adacore.com>
3158
3159 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
3160 the original location of the index expressions and the index subtypes,
3161 to prevent spurious out-of-scope references in gigi.
3162
31632009-04-16 Tristan Gingold <gingold@adacore.com>
3164
3165 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
3166 Add support for stack checking on darwin.
3167
31682009-04-16 Vincent Celier <celier@adacore.com>
3169
3170 * prj-attr.adb: New attribute Runtime_Source_Dir
3171
3172 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
3173 attribute Runtime_Source_Dir.
3174 (Check_Naming_Schemes): Give default values to out parameters to avoid
3175 invalid data.
3176
3177 * prj.ads (Language_Config): New component Runtime_Source_Dir
3178
3179 * snames.ads-tmpl: New standard name Runtime_Source_Dir
3180
468ee337
PO
31812009-04-16 Pascal Obry <obry@adacore.com>
3182
3183 * adaint.h, adaint.c (__gnat_rmdir): New routine.
3184 Simple wrapper routines used to convert to proper encoding on
3185 Windows.
3186
3187 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
3188
3189 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
3190 twice.
3191
bca17d51
PO
31922009-04-16 Pascal Obry <obry@adacore.com>
3193
3194 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
3195
4e0079cc
AC
31962009-04-16 Thomas Quinot <quinot@adacore.com>
3197
3198 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
3199 integrated preprocessor.
3200
3201 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
3202 (Initialize): Split into two subprograms, Initialize (to be called
3203 prior to compiler command line processing) and Setup_Hooks (to be called
3204 later on when the first source file is loaded).
3205
3206 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
3207 Add call to Prep.Initialize.
3208
3209 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
3210 to Prep.Setup_Hooks.
3211
32122009-04-16 Pascal Obry <obry@adacore.com>
3213
3214 * adaint.h, adaint.c (__gnat_chdir): New routine.
3215 Simple wrapper routines used to convert to proper encoding on
3216 Windows.
3217
3218 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
3219
3220 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
3221
cbbdee52
AC
32222009-04-16 Quentin Ochem <ochem@adacore.com>
3223
3224 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
3225 of Source.Init.
3226
32272009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3228
3229 * a-convec.ads (Is_Empty): Mark inline.
3230
32312009-04-16 Nicolas Roche <roche@adacore.com>
3232
3233 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
3234
32352009-04-16 Thomas Quinot <quinot@adacore.com>
3236
3237 * prepcomp.adb: Minor reformatting
3238
7e8ed0a6
AC
32392009-04-16 Jerome Lambourg <lambourg@adacore.com>
3240
3241 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
3242 Access_Subprogram types can also be imported.
3243 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
3244 names.
3245
32462009-04-16 Ed Schonberg <schonberg@adacore.com>
3247
3248 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
3249 preserve homonym chain when the declaration is rewritten into a
3250 renaming declaration, in order to preserve visibility structure.
3251
540b5d9c
AC
32522009-04-16 Jerome Lambourg <lambourg@adacore.com>
3253
3254 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
3255 taken into account for VM targets.
3256
32572009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
3258
3259 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
3260 Year_Week_In_Year.
3261 (Year_Week_In_Year): New routine which contains the original code from
3262 Week_In_Year. Add the missing special case for January 1st falling on
3263 a Monday.
3264
dae4faf2
TQ
32652009-04-16 Thomas Quinot <quinot@adacore.com>
3266
3267 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
3268 actual type, use the base type to build the To_Any function.
3269 (Build_From_Any_Function): Remove junk, useless subtype conversion.
3270
32712009-04-16 Thomas Quinot <quinot@adacore.com>
3272
3273 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
3274 restrict.adb: Minor code reorganization (use
3275 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
3276
2794f022
AC
32772009-04-16 Bob Duff <duff@adacore.com>
3278
3279 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
3280 unused.
3281
32822009-04-16 Thomas Quinot <quinot@adacore.com>
3283
3284 * sem_ch4.adb: Minor reformatting
3285
3286 * adaint.c: Remove junk duplicated code.
3287
3288 * sem_ch3.adb: Minor reformatting
3289
3290 * exp_dist.adb: Minor comment rewording
3291
a8e65aa5
AC
32922009-04-16 Robert Dewar <dewar@adacore.com>
3293
3294 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
3295 used together.
3296
32972009-04-16 Ed Schonberg <schonberg@adacore.com>
3298
3299 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
3300 usable before calling Add_One_Interp, to resolve spurious ambiguities.
3301
bded454f
RD
33022009-04-16 Robert Dewar <dewar@adacore.com>
3303
b0fbf3c0
RD
3304 * Make-lang.in: Add entries for s-conca?.o
3305
bded454f
RD
3306 * Makefile.rtl: Add entries for s-conca?
3307
3308 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
3309 of concatenation expansion
3310
3311 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
3312 string cases instead of expanding assignments inline.
3313
3314 * opt.ads (Optimize_Size): New flag
3315
3316 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
3317 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
3318 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
3319 s-conca9.adb, s-conca9.ads: New file.
3320
4a3b249c
RD
33212009-04-16 Robert Dewar <dewar@adacore.com>
3322
3323 * exp_ch6.adb: Add comments
3324
3325 * rtsfind.ads: Add entries for s-conca? routines
3326
e8e028cb 33272009-04-16 Arnaud Charlet <charlet@adacore.com>
14814170
AC
3328
3329 * gcc-interface/Make-lang.in: Update dependencies.
3330
3331 * gcc-interface/Makefile.in: Update translation for vms.
3332
3204b9cd
AC
33332009-04-16 Ed Schonberg <schonberg@adacore.com>
3334
3335 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
3336 and made global, to be used when installing parents of a child
3337 instance, to provide mappings for entities declared in formal packages
3338 of ancestor units. Now called from Install_Formal_Packages.
3339
33402009-04-16 Doug Rupp <rupp@adacore.com>
3341
3342 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
3343 notation for clarity.
3344
3345 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3346 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
3347 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
3348 (Initialize): Initialize Known_Tasks with Environment task.
3349
3350 * s-taskin.ads (Task_States): Move new states to end for the sake of
3351 GDB compatibility.
3352
3353 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
3354
f17f3601
ES
33552009-04-16 Ed Schonberg <schonberg@adacore.com>
3356
3357 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
3358 operation has an inline pragma, propagate the flag to the internal
3359 unprotected subprogram.
3360
5e44c5ea
DR
33612009-04-16 Doug Rupp <rupp@adacore.com>
3362
3363 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
3364 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
3365 s-taprop-hpux-dce.adb, s-taprop-posix.adb
3366 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
3367
3368 * s-taprop-vms.adb (Enter_Task): Likewise.
3369 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
3370
3371 * s-tassta.adb (Activate_Tasks): After task creation set state to
3372 Activating, vice Runnable. Initialize Known_Tasks, moved here from
3373 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
3374 Set state to Runnable after above.
3375 (Task_Wrapper): Set Debug_Event_Run. In exception block set
3376 Debug_Event_Terminated.
3377
3378 * s-taskin.ads (Task_States): Add new states Activiting and
3379 Activator_Delay_Sleep.
3380 (Bit_Array, Debug_Event_Array): New types.
3381 (Global_Task_Debug_Event_Set: New flag.
3382 (Common_ATCB): New field Debug_Events.
3383
3384 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
3385
3386 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
3387 Activator_Sleep.
3388
3389 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
3390 Activating and when Acceptor_Delay_Sleep.
3391
3392 * s-tasdeb.ads: Add constants for Debug_Events.
3393 (Debug_Event_Kind_Type): New subtype.
3394 (Signal_Debug_Event): New subprogram.
3395
3396 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
3397
205c14b0
TQ
33982009-04-16 Thomas Quinot <quinot@adacore.com>
3399
3400 * sem_elim.adb: Minor reformatting
3401
3402 * freeze.adb: Minor reformatting
3403
3404 * exp_ch4.adb: Minor reformatting
3405
b4763f5c
AC
34062009-04-16 Emmanuel Briot <briot@adacore.com>
3407
3408 * prj-nmsc.adb (Path_Name_Of): fix memory leak
3409
34102009-04-16 Robert Dewar <dewar@adacore.com>
3411
3412 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
3413
34142009-04-16 Vincent Celier <celier@adacore.com>
3415
3416 * fmap.adb (Initialize): Show the current line when the mapping file
3417 is detected as "incorrectly formatted".
3418
34192009-04-16 Robert Dewar <dewar@adacore.com>
3420
3421 * sem_ch12.adb: Minor reformatting
3422
3423 * sem_ch5.adb: Minor comment addition
3424
3425 * sem_util.adb: Minor reformatting
3426
3427 * sinput-p.adb: Minor reformatting
3428 Add missing pragma Warnings (On)
3429
0c72247e
AC
34302009-04-16 Ed Falis <falis@adacore.com>
3431
3432 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
3433
34342009-04-16 Vincent Celier <celier@adacore.com>
3435
3436 * ali-util.adb: Minor comment spelling error fix
3437
014caddb
EB
34382009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3439
3440 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
3441 generate an assignment loop in case of overlap.
3442
b2ed7a03
AC
34432009-04-16 Olivier Hainque <hainque@adacore.com>
3444
3445 * gnat_ugn.texi (gnatmem description): Make it explicit that
3446 gnatmem is designed to work in association with static runtime
3447 library only.
3448
34492009-04-16 Thomas Quinot <quinot@adacore.com>
3450
3451 * sem_type.adb: Minor reformatting
3452
34532009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
3454
3455 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
3456 concerning return codes of gettimeofday and return value check.
3457
34582009-04-16 Ed Falis <falis@adacore.com>
3459
3460 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
3461 body can be renaming of imported routines.
3462
34632009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
3464
3465 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
3466 targeted fashion.
3467
8a912a6e
AC
34682009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3469
3470 * exp_ch9.adb: Comment improvements.
3471 (Build_Entry_Family_Name): Add parentheses around the index of a entry
3472 family member.
3473
34742009-04-15 Bob Duff <duff@adacore.com>
3475
3476 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
3477 "while X /= null loop" where X is unchanged inside the loop. We were
3478 not warning in this case, because of the pointers -- we feared that the
3479 loop variable could be updated via a pointer, if there are any pointers
3480 around the place. But that is impossible in this case.
3481
3482 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
3483 the case of dereferences. In X.all, X cannot be an l-value. We now
3484 catch that case (and implicit dereferences, too).
3485
34862009-04-15 Vincent Celier <celier@adacore.com>
3487
3488 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
3489
34902009-04-15 Ed Schonberg <schonberg@adacore.com>
3491
3492 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
3493 From code reading.
3494 (Analyze_Package_Instantiation): If generic unit in child instance is
3495 the same as generic unit in parent instance, look for an outer homonym
3496 to locate the desired generic.
3497
4a13695c
AC
34982009-04-15 Bob Duff <duff@adacore.com>
3499
3500 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
3501 warnings unless the loop comes from source, because checking generated
3502 loops is a waste of time, and makes it harder to debug
3503 Check_Infinite_Loop_Warning.
3504
3505 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
3506 tested in the while loop is a renaming, do not warn. Otherwise, we get
3507 false alarms, because it's usually renaming something that we can't
3508 deal with (an indexed component, a global variable, ...).
3509
3510 * gnat_rm.texi: Fix typo
3511
35122009-04-15 Thomas Quinot <quinot@adacore.com>
3513
3514 * sem_ch6.adb: Minor reformatting
3515
c3b36d48
AC
35162009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3517
3518 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
3519 immediate parent of the controlled function call is a component
3520 association.
3521
35222009-04-15 Ed Schonberg <schonberg@adacore.com>
3523
3524 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
3525 corresponding class-wide type is also in use.
3526
35272009-04-15 Thomas Quinot <quinot@adacore.com>
3528
3529 * frontend.adb: Minor comment fix
3530
1f07382d
AC
35312009-04-15 Robert Dewar <dewar@adacore.com>
3532
3533 * gnatchop.adb (BOM_Length): New global variable
3534 (Write_Unit): Add new parameter Write_BOM
3535 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
3536 to Write_Unit
3537
3538 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
3539
35402009-04-15 Geert Bosch <bosch@adacore.com>
3541
3542 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
3543 (Backend_Overflow_Checks): Set to True.
3544
35452009-04-15 Gary Dismukes <dismukes@adacore.com>
3546
3547 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
3548 keyword is given in a record extension.
3549
35502009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3551
3552 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
3553 of a controlled function call in the context of a record aggregate.
3554 This does not apply to array aggregates since the call will be expanded
3555 into assignments.
3556
35572009-04-15 Ed Falis <falis@adacore.com>
3558
3559 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
3560 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
3405870d
EF
3561 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
3562 s-osinte-vxworks* and s-vxwext*.
1f07382d 3563
6cc60200
AC
35642009-04-15 Arnaud Charlet <charlet@adacore.com>
3565
3566 * gcc-interface/Make-lang.in: Update dependencies.
3567
3568 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
3569 and s-vxwext*.
3570
f66d46ec
AC
35712009-04-15 Robert Dewar <dewar@adacore.com>
3572
3573 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
3574 of node for location for warning messages.
3575
3576 * gnatchop.adb: Minor reformatting
3577
35782009-04-15 Ed Schonberg <schonberg@adacore.com>
3579
3580 * exp_ch6.adb: additional guard for renaming declarations for in
3581 parameters of an array type.
3582
bafc9e1d
AC
35832009-04-15 Robert Dewar <dewar@adacore.com>
3584
3585 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
3586 in case they were rewritten by expander (Force_Evaluation).
3587
3588 * targparm.adb (Get_Target_Parameters): Correct check for
3589 Suppress_Exception_Locations.
3590
35912009-04-15 Ed Schonberg <schonberg@adacore.com>
3592
3593 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
3594 inlined is of an array type that is not bit-packed, use a renaming
3595 declaration to capture its value, rather than a constant declaration.
3596
443614e3
AC
35972009-04-15 Robert Dewar <dewar@adacore.com>
3598
3599 * rtsfind.adb: Minor reformatting.
3600
36012009-04-15 Emmanuel Briot <briot@adacore.com>
3602
3603 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
3604 Restore, and free the saved context.
3605
36062009-04-15 Gary Dismukes <dismukes@adacore.com>
3607
3608 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
3609 for illegal private extension from a synchronized interface parent in
3610 front of check for illegal limited extension so that limited extension
3611 from a synchronized interface will be rejected.
3612 (Check_Ifaces): Check that a private extension that has a synchronized
3613 interface as a progenitor must be explicitly declared synchronized.
3614 Also check that a record extension cannot derive from a synchronized
3615 interface.
3616
991395ab
AC
36172009-04-15 Pascal Obry <obry@adacore.com>
3618
3619 * adaint.h (__gnat_unlink): Add spec.
3620 (__gnat_rename): Likewise.
3621
36222009-04-15 Vincent Celier <celier@adacore.com>
3623
3624 * prj-nmsc.adb: Minor spelling error corrections in error messages
3625
36262009-04-15 Robert Dewar <dewar@adacore.com>
3627
3628 * sinfo.ads: Minor comment update
3629
3630 * opt.ads: Minor comment updates
3631
3632 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
3633 modular type.
3634
36352009-04-15 Ed Schonberg <schonberg@adacore.com>
3636
3637 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
3638 that generates the code needed to update a dispatch table when a
3639 primitive operation is declared with a subprogram body without previous
3640 spec. Insertion of the generated code is responsibility of the caller.
3641 (Make_DT): When building static tables, append the code created by
3642 Register_Primitive to update a secondary table after it has been
3643 constructed.
3644
3645 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
3646
3647 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
3648 on an overriding operation that implements an interface operation only
3649 if not building static dispatch tables.
3650
36512009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3652
3653 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
3654 does not cause overflow when converted to Duration. Use the safe value
3655 as the maximum allowable time delay..
3656
36572009-04-15 Jerome Lambourg <lambourg@adacore.com>
3658
3659 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
3660 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
3661 translated to "-j 2".
3662
36632009-04-15 Bob Duff <duff@adacore.com>
3664
3665 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
3666 with_clauses, to avoid code duplication. Change this processing so we
3667 always add a with_clause on the main unit if needed.
3668
55cc1a05
AC
36692009-04-15 Pascal Obry <obry@adacore.com>
3670
3671 Add support for Win32 native encoding for delete/rename routines.
3672
3673 * adaint.c (__gnat_unlink): New routine.
3674 (__gnat_rename): New routine.
3675 Simple wrapper routines used to convert to proper encoding on
3676 Windows.
3677
3678 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
3679 call to the C library.
3680
3681 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
3682
36832009-04-15 Robert Dewar <dewar@adacore.com>
3684
3685 * s-tassta.adb: Minor reformatting
3686
1f6821b4
AC
36872009-04-15 Robert Dewar <dewar@adacore.com>
3688
3689 * frontend.adb (Frontend): Set proper default for
3690 Warn_On_Non_Local_Exception.
3691
3692 * opt.ads (Exception_Handler_Encountered): New flag
3693 (No_Warn_On_Non_Local_Exception): New flag
3694
3695 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
3696
3697 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
3698 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
3699
37002009-04-15 Cyrille Comar <comar@adacore.com>
3701
3702 * s-tassta.adb, a-exextr.adb, a-elchha.adb
3703 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
3704 message when exception traces are active since it would generate
3705 redundant information.
3706 (Exception_Traces.Notify_Exception): put message output by a critical
3707 section to avoid unsynchronized output.
3708 (Trace_Unhandled_Exception_In_Task): put message output by a critical
3709 section to avoid unsynchronized output.
3710
37112009-04-15 Emmanuel Briot <briot@adacore.com>
3712
3713 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
3714 (Free): New subprogram.
3715
8aec446b
AC
37162009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3717
3718 * a-calend.adb: Add new constant Nanos_In_Four_Years.
3719 (Formatting_Operations.Time_Of): Change the way four year chunks of
3720 nanoseconds are added to the intermediate result.
3721
37222009-04-15 Nicolas Setton <setton@adacore.com>
3723
3724 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
3725 does not need to wait for a carriage return.
3726
37272009-04-15 Tristan Gingold <gingold@adacore.com>
3728
3729 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
3730 is set.
3731
37322009-04-15 Ed Schonberg <schonberg@adacore.com>
3733
3734 * freeze.adb (Freeze_Entity): improve error message for improper use of
3735 incomplete types.
3736 Diagnose additional illegal uses of incomplete types in formal parts.
3737 appearing in formal parts.
3738
3739 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
3740
37412009-04-15 Robert Dewar <dewar@adacore.com>
3742
3743 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
3744
442dd5fb
NR
37452009-04-15 Nicolas Roche <roche@adacore.com>
3746
3747 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
3748 current thread.
3749
3750 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
3751
3752 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
3753
61bee0e3
AC
37542009-04-15 Ed Schonberg <schonberg@adacore.com>
3755
3756 * sem_ch4.adb: improve error message on exponentiation.
3757
37582009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3759
3760 * a-calend.adb: Move constant Epoch_Offset from package
3761 Conversion_Operations to top level.
3762 (Delay_Operations.To_Duration): Define a constant which represents
3763 "end of time" and use it as a guard against very distant delay dates.
3764 Protect the code against overflow when performing the origin shift to
3765 Unix time.
3766
361effb1
AC
37672009-04-15 Robert Dewar <dewar@adacore.com>
3768
3769 * sem_prag.adb: Minor reformatting.
3770
3771 * sem_type.adb: Minor reformatting
3772
37732009-04-15 Javier Miranda <miranda@adacore.com>
3774
3775 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
3776 support to check eliminated subprograms.
3777
3778 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
3779
3780 * sem_elim.adb (Set_Eliminated): Add support for elimination of
3781 dispatching subprograms.
3782
3783 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
3784 operations. Initialize with "null" the slots of eliminated dispaching
3785 primitives.
3786 (Write_DT): Add output for eliminated primitives.
3787
3788 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
3789
f7ca1d04
AC
37902009-04-15 Ed Schonberg <schonberg@adacore.com>
3791
3792 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
3793 the second is redundant, regardless of scopes.
3794
37952009-04-15 Vincent Celier <celier@adacore.com>
3796
3797 * prj-nmsc.adb (Get_Directories): Check for sources before checking
3798 the object directory as when there are no sources, they may not be any
3799 object directory.
3800
3801 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
3802 directory, when there are no exec directory.
3803
38042009-04-15 Ed Schonberg <schonberg@adacore.com>
3805
3806 * sem_type.adb (Remove_Conversions): In order to resolve spurious
3807 ambiguities, refine removal of universal interpretations from complex
3808 expressions with literal arguments, when some numeric operators have
3809 been declared abstract.
3810
38112009-04-15 Ed Falis <falis@adacore.com>
3812
3813 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
3814 and backward compatibility for targets using probing for stack overflow
3815
38162009-04-15 Ed Schonberg <schonberg@adacore.com>
3817
3818 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
3819 after any declaration, including renaming declarations.
3820
4bffd4e0
AC
38212009-04-15 Arnaud Charlet <charlet@adacore.com>
3822
3823 * gcc-interface/Make-lang.in: Update dependencies.
3824
3825 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
cbd8be94 3826 Update xenomai target pairs.
4bffd4e0 3827
a523b302
JM
38282009-04-15 Javier Miranda <miranda@adacore.com>
3829
3830 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
3831
3832 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
3833 functions returning anonymous access to class-wide limited types. Mark
3834 also the containing scope as a task master.
3835
3836 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
3837 limited-withed packages. Required to restore their visibility after
3838 processing packages associated with implicit with-clauses.
3839
3840 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
3841 associated with return statements because this work is now done by
3842 Check_Anonymous_Return.
3843 (Build_Master): Code cleanup.
3844
e358346d
AC
38452009-04-15 Thomas Quinot <quinot@adacore.com>
3846
3847 * sem_warn.ads: Minor reformatting
3848
38492009-04-15 Ed Schonberg <schonberg@adacore.com>
3850
3851 * sem_ch3.adb: better error message for illegal interfaces
3852
3853 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
3854 formal is an incomplete type from a limited_with clause.
3855
a9872a59
VC
38562009-04-15 Vincent Celier <celier@adacore.com>
3857
3858 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
3859 Externally_Built indicating if the project is externally built. If it
3860 is, and --subdirs is specified, but the subdir does not exist, look
3861 for the specified directory, without the subdir.
3862
b8aadf01
AC
38632009-04-15 Gary Dismukes <dismukes@adacore.com>
3864
3865 * a-tasatt.adb: Fix typo, plus minor reformatting
3866
3867 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
3868
3869 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
3870
38712009-04-15 Ed Schonberg <schonberg@adacore.com>
3872
3873 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
3874 private extension whose parent is a synchronized interface carries an
3875 explicit synchronized keyword.
3876
a808ba1b
TQ
38772009-04-15 Thomas Quinot <quinot@adacore.com>
3878
3879 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
3880 instantiate generic shared object package with the corresponding
3881 record type.
3882
e0568eec
AC
38832009-04-15 Arnaud Charlet <charlet@adacore.com>
3884
3885 * system-linux-sparc.ads: Remove obsolete entries.
3886
38872009-04-15 Thomas Quinot <quinot@adacore.com>
3888
3889 * s-tasuti.ads: Add ??? comment
3890
28450a75
ES
38912009-04-15 Ed Schonberg <schonberg@adacore.com>
3892
3893 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
3894 type even if the designated type comes from a limited_with clause, to
3895 ensure that the symbol for the finalization list of the access type is
3896 created.
3897
b0d3b11d
AC
38982009-04-10 Robert Dewar <dewar@adacore.com>
3899
3900 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
3901 for warning suppression.
3902
39032009-04-10 Ed Schonberg <schonberg@adacore.com>
3904
3905 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
3906 identical, there is no redudancy to check.
3907
39082009-04-10 Gary Dismukes <dismukes@adacore.com>
3909
3910 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
3911 calls initializing SS_Allocator (which is initialized in following
3912 code).
3913 (Expand_Simple_Function_Return): Add comment about False value for
3914 Comes_From_Source on secondary-stack allocator.
3915
3916 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
3917 (Build_Entry_Name): Add comment.
3918
fad0600d
AC
39192009-04-10 Robert Dewar <dewar@adacore.com>
3920
3921 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
3922
3923 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
3924 bound tested, since this is now done more generally in Sem_Res.
3925
3926 * sem_res.adb (Resolve_Comparison_Op): Add call to
3927 Check_Lower_Bound_Tested.
3928 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
3929
3930 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
3931 (Low_Bound_Tested): New name for Low_Bound_Known flag
3932
3933 * exp_ch5.adb: Minor reformatting
3934
3935 * exp_ch4.adb:
3936 Add comments on copying the Comes_From_Source flag for allocators
3937
3938 * sinfo.ads:
3939 Add comments on copying the Comes_From_Source flag for allocators
3940
3941 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
3942 Comes_From_Source flag from old allocator to new one.
3943
39442009-04-10 Ed Schonberg <schonberg@adacore.com>
3945
3946 * sem_ch6.ads: Address missing documentation query
3947
39482009-04-10 Vincent Celier <celier@adacore.com>
3949
3950 * prj-attr.adb:
3951 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
3952 and Response_File_Switches.
3953
3954 * prj-nmsc.adb (Process_Linker): Process new attributes
3955 Max_Command_Line_Length, Response_File_Format and
3956 Response_File_Switches.
3957
3958 * prj.ads (Response_File_Format): New enumeration type
3959 (Project_Configuration): New componants Max_Command_Line_Length,
3960 Resp_File_Format and Resp_File_Options.
3961
3962 * snames.ads-tmpl: Add new standard names for linking response files
3963 for gprbuild: GNU, None, Object_List, Option_List,
3964 Max_Command_Line_Length, Response_File_Format and
3965 Response_File_Switches.
3966
39672009-04-10 Geert Bosch <bosch@adacore.com>
3968
3969 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
3970 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
3971 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
3972 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
3973 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
3974 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
3975 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
3976 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
3977 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
3978 system-vxworks-arm.ads, system-vxworks-m68k.ads,
3979 system-vxworks-mips.ads, system-vxworks-ppc.ads,
3980 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
3981 (Backend_Overflow_Checks): Set to True.
3982
934a3a25
AC
39832009-04-10 Thomas Quinot <quinot@adacore.com>
3984
3985 * exp_attr.adb: Minor reformatting
3986
39872009-04-10 Ed Schonberg <schonberg@adacore.com>
3988
3989 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
3990 analyze the expression for a postcondition, even if the compiler mode
3991 is Generate_Code.
3992
ab8e1b35
RD
39932009-04-10 Robert Dewar <dewar@adacore.com>
3994
3995 * sem_aux.adb: Minor reformatting
3996
2c880bdf
EF
39972009-04-10 Ed Falis <falis@adacore.com>
3998
3999 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
4000
4001 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
4002
d8221f45
TQ
40032009-04-10 Thomas Quinot <quinot@adacore.com>
4004
4005 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
4006 undocumented formal.
4007 Minor reformatting
4008
4009 * a-direio.ads: Fix typo in comment
4010
4011 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
4012 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
4013 Use uniform phrasing for comment at start of subprogram body.
4014
4015 * xsnamest.adb: Add note to explain why we use specific names for the
4016 newly generated files instead of generating snames.{ads,adb,h} directly
4017
f559e62f
AC
40182009-04-10 Sergey Rybin <rybin@adacore.com>
4019
4020 * vms_data.ads:
4021 Add qualifier for new gnatstub option '--no-exception'
4022
4023 * gnat_ugn.texi:
4024 Add the description of the new gnatstub option '--no-exception'
4025
40262009-04-10 Robert Dewar <dewar@adacore.com>
4027
4028 * rtsfind.adb: Minor reformatting
4029
40302009-04-10 Thomas Quinot <quinot@adacore.com>
4031
4032 * sem_disp.adb: Minor reformatting.
4033 Add comment pointing to RM clause for the case of warning against a
4034 (failed) attempt at declaring a primitive operation elsewhere than in a
4035 package spec.
4036
40372009-04-10 Ed Schonberg <schonberg@adacore.com>
4038
4039 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
4040 an actual for a previous formal package of the current instance.
4041
e50e1c5e
AC
40422009-04-10 Bob Duff <duff@adacore.com>
4043
4044 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
4045 them first, rather than on the extended main unit.
4046
40472009-04-10 Ed Schonberg <schonberg@adacore.com>
4048
4049 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
4050 specification of full view carries a null exclusion indicator, create
4051 an itype for it, to check for conformance with partial view.
4052
cb736868
AC
40532009-04-10 Bob Duff <duff@adacore.com>
4054
4055 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
4056
4057 * rtsfind.adb: Minor comment changes, and remove useless code.
4058
4059 * sinfo.ads: Add ??? comment.
4060
40612009-04-10 Vincent Celier <celier@adacore.com>
4062
4063 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
4064
8a78c50d
AC
40652009-04-10 Ed Schonberg <schonberg@adacore.com>
4066
4067 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
4068 type is a synchronized type, retrieve tag information from the
4069 corresponding record, which has the dispatch table link.
4070
40712009-04-10 Jerome Lambourg <lambourg@adacore.com>
4072
4073 * g-comlin.adb (Group_Analysis): Take care of switches that might be
4074 decomposed afterwards, but are present as-is in the command line
4075 configuration, and thus should be kept as-is.
4076
b66c3ff4
AC
40772009-04-10 Robert Dewar <dewar@adacore.com>
4078
4079 * gnat_rm.texi: Document that postconditions are tested on implicit
4080 returns.
4081
4082 * sem_aux.adb: Minor reformatting
4083
40842009-04-10 Gary Dismukes <dismukes@adacore.com>
4085
4086 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
4087 setting Etype.
4088
4089 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
4090 Null_Exclusion_In_Return_Present when an access-to-function type has a
4091 result type with an explicit not null.
4092
4093 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
4094 given on the result type, then create a null-excluding itype for the
4095 function.
4096
4097 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
4098 the case where a null exclusion is imposed on a named access type.
4099 (Analyze_Subprogram_Specification): Push and pop the scope of the
4100 function around the call to Analyze_Return_Type in the case of no
4101 formals, for consistency with handling when formals are present
4102 (Process_Formals does this). Ensures that any itype created for the
4103 return type will be associated with the proper scope.
4104
4105 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
4106 exclusion is given on a generic function's result type, then create a
4107 null-excluding itype for the generic function.
4108 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
4109 for an actual for a formal in object according to the setting on the
4110 formal. Ensures null exclusion checks are done when the association is
4111 elaborated.
4112
4113 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
4114 N_Access_Function_Definition.
4115
4116 * sinfo.adb: Add Get_ and Set_ operations for
4117 Null_Exclusion_In_Return_Present.
4118
5334d18f
BD
41192009-04-10 Bob Duff <duff@adacore.com>
4120
4121 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
4122 call to the _Postconditions procedure in the case of implicit returns
4123 from analysis to expansion. This eliminates some duplicated code. Use
4124 the Postcondition_Proc to find the identity of this procedure during
4125 expansion.
4126
701b7fbb
RD
41272009-04-10 Robert Dewar <dewar@adacore.com>
4128
4129 * sem_ch6.adb: Minor code clean up.
4130
4131 * einfo.ads, sem_attr.adb: Minor comment fixes.
4132
41332009-04-10 Robert Dewar <dewar@adacore.com>
4134
4135 * sem_ch8.adb: Minor reformatting
4136
7ca78bba
RD
41372009-04-10 Robert Dewar <dewar@adacore.com>
4138
4139 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
4140 procedures.
4141
4142 * sem_ch6.adb: Minor code clean up.
4143
043ce308
AC
41442009-04-10 Robert Dewar <dewar@adacore.com>
4145
4146 * mlib-tgt-specific-xi.adb: Minor reformatting
4147
41482009-04-10 Bob Duff <duff@adacore.com>
4149
4150 * einfo.ads: Minor comment fixes
4151
41522009-04-10 Vincent Celier <celier@adacore.com>
4153
4154 * snames.ads-tmpl: Remove names that are no longer used in the
4155 Project Manager.
4156 Mark specifically those that are used only in gprbuild
4157
41582009-04-10 Eric Botcazou <ebotcazou@adacore.com>
4159
4160 * init.c: Adjust EH support code on Alpha/Tru64.
4161
41622009-04-10 Bob Duff <duff@adacore.com>
4163
4164 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
4165 procedure on every path that could return implicitly (not via a return
4166 statement) from a procedure.
4167
41682009-04-10 Ed Schonberg <schonberg@adacore.com>
4169
4170 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
4171 valid scope for a task declarations and therefore for a master id.
4172
41732009-04-10 Robert Dewar <dewar@adacore.com>
4174
4175 * sem_aux.adb: Minor reformatting
4176
41772009-04-10 Vincent Celier <celier@adacore.com>
4178
4179 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
4180 True.
4181 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
4182 (Set_Obsolescent_Check): New procedure to change the value of
4183 Obsolescent_Check_Flag.
4184
4185 * scn.ads (Set_Obsolescent_Check): New procedure to control
4186 Obsolescent_Check.
4187
4188 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
4189 obsolescent features while preprocessing.
4190
550f4135
AC
41912009-04-10 Thomas Quinot <quinot@adacore.com>
4192
4193 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
4194 generated files on all platforms.
4195
41962009-04-10 Robert Dewar <dewar@adacore.com>
4197
4198 * sem_aux.adb: Minor reformatting
4199
42002009-04-10 Ed Schonberg <schonberg@adacore.com>
4201
4202 * sem_ch3.adb (Access_Definition): Handle properly the case of a
4203 protected function with formals that returns an anonymous access type.
4204
42052009-04-10 Thomas Quinot <quinot@adacore.com>
4206
4207 * sem_disp.adb: Minor reformatting
4208
42092009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
4210
4211 * seh_init.c: Do not use the 32-bit specific implementation of
4212 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
4213 version TBD).
4214
42152009-04-10 Jose Ruiz <ruiz@adacore.com>
4216
4217 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
4218 a '/' at the end so we better use the complete target name to determine
4219 whether it is a PowerPC 55xx target.
4220
3996951a
TQ
42212009-04-10 Thomas Quinot <quinot@adacore.com>
4222
4223 * sem_eval.adb: Minor reformatting
4224
b62a90f2
AC
42252009-04-10 Thomas Quinot <quinot@adacore.com>
4226
4227 * snames.h, snames.ads, snames.adb: Remove files, now generated from
4228 templates.
4229
4230 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
4231 above.
4232
4233 * xsnamest.adb: New file.
4234
4235 * gcc-interface/Make-lang.in: New target for automated generation of
4236 snames.ads, snames.adb and snames.h
4237
62298c61
TG
42382009-04-10 Tristan Gingold <gingold@adacore.com>
4239
4240 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
4241 avoid compile time warnings.
4242 Do not add gcc/config in include search list while compiling the RTS.
4243 Pragma Thread_Local_Storage is available on any target.
4244
3764bb00
BD
42452009-04-10 Bob Duff <duff@adacore.com>
4246
4247 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
4248
b3b9865d
AC
42492009-04-10 Tristan Gingold <gingold@adacore.com>
4250
4251 * init.c: Install signal handler on Darwin.
4252
42532009-04-10 Robert Dewar <dewar@adacore.com>
4254
4255 * sem_prag.adb: Minor reformatting
4256
4257 * exp_util.adb (Make_Non_Empty_Check): New function
4258 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
4259 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
4260
42612009-04-10 Arnaud Charlet <charlet@adacore.com>
4262
4263 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
4264
42652009-04-10 Jose Ruiz <ruiz@adacore.com>
4266
4267 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
4268 tool prefix for AVR and PowerPC 55xx targets.
4269
42702009-04-10 Robert Dewar <dewar@adacore.com>
4271
4272 * sem_warn.adb (Within_Postcondition): New function
4273 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
4274
c5288c90
AC
42752009-04-10 Robert Dewar <dewar@adacore.com>
4276
4277 * sem_warn.adb: Minor reformatting
4278
4279 * make.adb: Minor reformatting.
4280
42812009-04-10 Gary Dismukes <dismukes@adacore.com>
4282
4283 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
4284 entity and the scope is a subprogram, retrieve the Sloc of the
4285 subprogram's body rather than using the sloc of the spec, for better
4286 line-stepping behavior in gdb.
4287 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
4288 controller, use the Sloc of the first declaration of the containing list
4289 rather than that of the node that triggered creation of the list
4290 controller.
4291
2844b330
AC
42922009-04-10 Vincent Celier <celier@adacore.com>
4293
4294 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
4295 to avoid gcc warning.
4296
42972009-04-10 Robert Dewar <dewar@adacore.com>
4298
4299 * g-comlin.adb: Add ??? comment
4300
43012009-04-10 Ed Schonberg <schonberg@adacore.com>
4302
4303 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
4304 unreferenced entities for a package with no visible declarations.
4305
43062009-04-10 Robert Dewar <dewar@adacore.com>
4307
4308 * exp_ch9.adb: Minor reformatting
4309
be21e9d8
AC
43102009-04-10 Thomas Quinot <quinot@adacore.com>
4311
4312 * sem_prag.adb: Minor reformatting
4313
43142009-04-10 Vincent Celier <celier@adacore.com>
4315
4316 * prj-nmsc.adb:
4317 (Check_Library_Attributes): For a project qualified as a library project
4318 that is not a library project, indicate in the error message which
4319 attributes are missing (Library_Dir and/or Library_Name).
4320
4a7dedcb
BD
43212009-04-10 Bob Duff <duff@adacore.com>
4322
4323 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
4324 generated nodes, because it might confuse various circuits in the FE.
4325
4017021b
AC
43262009-04-10 Ed Schonberg <schonberg@adacore.com>
4327
4328 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
4329 of pragma. It will be recopied and analyzed when used in call to
4330 Create_Task.
4331
4332 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
4333 initialization operations and recognize use of it in procedure calls
4334 within init_procs.
4335
4336 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
4337 argument, because it may have side-effects.
4338
4339 * exp_ch2.adb: Remove obsolete comments on default functions
4340
43412009-04-10 Jose Ruiz <ruiz@adacore.com>
4342
4343 * adaint.c (RTX section): Do for RTX the same thing as we do for
4344 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
4345
24357840
RD
43462009-04-10 Robert Dewar <dewar@adacore.com>
4347
4348 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
4349
4350 * sem_res.adb (Resolve_Call): Fix test for
4351 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
4352 a non-dynamic scope).
4353
4f64abad
AC
43542009-04-10 Robert Dewar <dewar@adacore.com>
4355
4356 * make.adb: Add comment.
4357 Minor reformatting
4358
43592009-04-10 Nicolas Setton <setton@adacore.com>
4360
4361 * s-osprim-darwin.adb: New file.
4362
4363 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
4364
43652009-04-10 Thomas Quinot <quinot@adacore.com>
4366
4367 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
4368
748086b7
JJ
43692009-04-09 Nick Clifton <nickc@redhat.com>
4370
4371 * adadecode.h: Change copyright header to refer to version
4372 3 of the GNU General Public License with version 3.1 of the
4373 GCC Runtime Library Exception and to point readers at the
4374 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
4375 page.
4376 * 9drpc.adb: Likewise.
4377 * a-assert.adb: Likewise.
4378 * a-astaco.adb: Likewise.
4379 * a-calari.adb: Likewise.
4380 * a-calcon.adb: Likewise.
4381 * a-calcon.ads: Likewise.
4382 * a-caldel.ads: Likewise.
4383 * a-calend-vms.adb: Likewise.
4384 * a-calend-vms.ads: Likewise.
4385 * a-calend.adb: Likewise.
4386 * a-calend.ads: Likewise.
4387 * a-calfor.adb: Likewise.
4388 * a-catizo.adb: Likewise.
4389 * a-cdlili.adb: Likewise.
4390 * a-cdlili.ads: Likewise.
4391 * a-cgaaso.adb: Likewise.
4392 * a-cgaaso.ads: Likewise.
4393 * a-cgarso.adb: Likewise.
4394 * a-cgcaso.adb: Likewise.
4395 * a-chacon.adb: Likewise.
4396 * a-chacon.ads: Likewise.
4397 * a-chahan.adb: Likewise.
4398 * a-chahan.ads: Likewise.
4399 * a-chlat9.ads: Likewise.
4400 * a-chtgke.adb: Likewise.
4401 * a-chtgke.ads: Likewise.
4402 * a-chtgop.adb: Likewise.
4403 * a-chtgop.ads: Likewise.
4404 * a-chzla1.ads: Likewise.
4405 * a-chzla9.ads: Likewise.
4406 * a-cidlli.adb: Likewise.
4407 * a-cidlli.ads: Likewise.
4408 * a-cihama.adb: Likewise.
4409 * a-cihama.ads: Likewise.
4410 * a-cihase.adb: Likewise.
4411 * a-cihase.ads: Likewise.
4412 * a-ciorma.adb: Likewise.
4413 * a-ciorma.ads: Likewise.
4414 * a-ciormu.adb: Likewise.
4415 * a-ciormu.ads: Likewise.
4416 * a-ciorse.adb: Likewise.
4417 * a-ciorse.ads: Likewise.
4418 * a-clrefi.adb: Likewise.
4419 * a-clrefi.ads: Likewise.
4420 * a-cohama.adb: Likewise.
4421 * a-cohama.ads: Likewise.
4422 * a-cohase.adb: Likewise.
4423 * a-cohase.ads: Likewise.
4424 * a-cohata.ads: Likewise.
4425 * a-coinve.adb: Likewise.
4426 * a-coinve.ads: Likewise.
4427 * a-colien.adb: Likewise.
4428 * a-colien.ads: Likewise.
4429 * a-colire.adb: Likewise.
4430 * a-colire.ads: Likewise.
4431 * a-comlin.adb: Likewise.
4432 * a-comlin.ads: Likewise.
4433 * a-convec.adb: Likewise.
4434 * a-convec.ads: Likewise.
4435 * a-coorma.adb: Likewise.
4436 * a-coorma.ads: Likewise.
4437 * a-coormu.adb: Likewise.
4438 * a-coormu.ads: Likewise.
4439 * a-coorse.adb: Likewise.
4440 * a-coorse.ads: Likewise.
4441 * a-coprnu.adb: Likewise.
4442 * a-coprnu.ads: Likewise.
4443 * a-crbltr.ads: Likewise.
4444 * a-crbtgk.adb: Likewise.
4445 * a-crbtgk.ads: Likewise.
4446 * a-crbtgo.adb: Likewise.
4447 * a-crbtgo.ads: Likewise.
4448 * a-crdlli.adb: Likewise.
4449 * a-crdlli.ads: Likewise.
4450 * a-cwila1.ads: Likewise.
4451 * a-cwila9.ads: Likewise.
4452 * a-decima.adb: Likewise.
4453 * a-decima.ads: Likewise.
4454 * a-diocst.adb: Likewise.
4455 * a-diocst.ads: Likewise.
4456 * a-direct.adb: Likewise.
4457 * a-direct.ads: Likewise.
4458 * a-direio.adb: Likewise.
4459 * a-direio.ads: Likewise.
4460 * a-dirval-mingw.adb: Likewise.
4461 * a-dirval-vms.adb: Likewise.
4462 * a-dirval.adb: Likewise.
4463 * a-dirval.ads: Likewise.
4464 * a-dynpri.adb: Likewise.
4465 * a-einuoc.adb: Likewise.
4466 * a-einuoc.ads: Likewise.
4467 * a-elchha.adb: Likewise.
4468 * a-elchha.ads: Likewise.
4469 * a-envvar.adb: Likewise.
4470 * a-excach.adb: Likewise.
4471 * a-except-2005.adb: Likewise.
4472 * a-except-2005.ads: Likewise.
4473 * a-except.adb: Likewise.
4474 * a-except.ads: Likewise.
4475 * a-excpol-abort.adb: Likewise.
4476 * a-excpol.adb: Likewise.
4477 * a-exctra.adb: Likewise.
4478 * a-exctra.ads: Likewise.
4479 * a-exetim-mingw.adb: Likewise.
4480 * a-exetim-mingw.ads: Likewise.
4481 * a-exexda.adb: Likewise.
4482 * a-exexpr-gcc.adb: Likewise.
4483 * a-exexpr.adb: Likewise.
4484 * a-exextr.adb: Likewise.
4485 * a-exstat.adb: Likewise.
4486 * a-filico.adb: Likewise.
4487 * a-filico.ads: Likewise.
4488 * a-finali.adb: Likewise.
4489 * a-finali.ads: Likewise.
4490 * a-interr.ads: Likewise.
4491 * a-intnam-aix.ads: Likewise.
4492 * a-intnam-darwin.ads: Likewise.
4493 * a-intnam-dummy.ads: Likewise.
4494 * a-intnam-freebsd.ads: Likewise.
4495 * a-intnam-hpux.ads: Likewise.
4496 * a-intnam-irix.ads: Likewise.
4497 * a-intnam-linux.ads: Likewise.
4498 * a-intnam-lynxos.ads: Likewise.
4499 * a-intnam-mingw.ads: Likewise.
4500 * a-intnam-rtems.ads: Likewise.
4501 * a-intnam-solaris.ads: Likewise.
4502 * a-intnam-tru64.ads: Likewise.
4503 * a-intnam-vms.ads: Likewise.
4504 * a-intnam-vxworks.ads: Likewise.
4505 * a-intsig.adb: Likewise.
4506 * a-intsig.ads: Likewise.
4507 * a-ngcefu.adb: Likewise.
4508 * a-ngcoar.adb: Likewise.
4509 * a-ngcoty.adb: Likewise.
4510 * a-ngcoty.ads: Likewise.
4511 * a-ngelfu.adb: Likewise.
4512 * a-ngrear.adb: Likewise.
4513 * a-ngrear.ads: Likewise.
4514 * a-nudira.adb: Likewise.
4515 * a-nudira.ads: Likewise.
4516 * a-nuflra.adb: Likewise.
4517 * a-nuflra.ads: Likewise.
4518 * a-numaux-darwin.adb: Likewise.
4519 * a-numaux-darwin.ads: Likewise.
4520 * a-numaux-libc-x86.ads: Likewise.
4521 * a-numaux-vxworks.ads: Likewise.
4522 * a-numaux-x86.adb: Likewise.
4523 * a-numaux-x86.ads: Likewise.
4524 * a-numaux.ads: Likewise.
4525 * a-rbtgso.adb: Likewise.
4526 * a-rbtgso.ads: Likewise.
4527 * a-reatim.ads: Likewise.
4528 * a-retide.adb: Likewise.
4529 * a-retide.ads: Likewise.
4530 * a-rttiev.adb: Likewise.
4531 * a-rttiev.ads: Likewise.
4532 * a-secain.adb: Likewise.
4533 * a-secain.ads: Likewise.
4534 * a-sequio.adb: Likewise.
4535 * a-sequio.ads: Likewise.
4536 * a-shcain.adb: Likewise.
4537 * a-shcain.ads: Likewise.
4538 * a-siocst.adb: Likewise.
4539 * a-siocst.ads: Likewise.
4540 * a-slcain.adb: Likewise.
4541 * a-slcain.ads: Likewise.
4542 * a-ssicst.adb: Likewise.
4543 * a-ssicst.ads: Likewise.
4544 * a-stboha.adb: Likewise.
4545 * a-stmaco.ads: Likewise.
4546 * a-storio.adb: Likewise.
4547 * a-strbou.adb: Likewise.
4548 * a-strbou.ads: Likewise.
4549 * a-stream.ads: Likewise.
4550 * a-strfix.adb: Likewise.
4551 * a-strhas.adb: Likewise.
4552 * a-strmap.adb: Likewise.
4553 * a-strmap.ads: Likewise.
4554 * a-strsea.adb: Likewise.
4555 * a-strsea.ads: Likewise.
4556 * a-strsup.adb: Likewise.
4557 * a-strsup.ads: Likewise.
4558 * a-strunb.adb: Likewise.
4559 * a-strunb.ads: Likewise.
4560 * a-ststio.adb: Likewise.
4561 * a-ststio.ads: Likewise.
4562 * a-stunau.adb: Likewise.
4563 * a-stunau.ads: Likewise.
4564 * a-stunha.adb: Likewise.
4565 * a-stwibo.adb: Likewise.
4566 * a-stwibo.ads: Likewise.
4567 * a-stwifi.adb: Likewise.
4568 * a-stwiha.adb: Likewise.
4569 * a-stwima.adb: Likewise.
4570 * a-stwima.ads: Likewise.
4571 * a-stwise.adb: Likewise.
4572 * a-stwise.ads: Likewise.
4573 * a-stwisu.adb: Likewise.
4574 * a-stwisu.ads: Likewise.
4575 * a-stwiun.adb: Likewise.
4576 * a-stwiun.ads: Likewise.
4577 * a-stzbou.adb: Likewise.
4578 * a-stzbou.ads: Likewise.
4579 * a-stzfix.adb: Likewise.
4580 * a-stzhas.adb: Likewise.
4581 * a-stzmap.adb: Likewise.
4582 * a-stzmap.ads: Likewise.
4583 * a-stzsea.adb: Likewise.
4584 * a-stzsea.ads: Likewise.
4585 * a-stzsup.adb: Likewise.
4586 * a-stzsup.ads: Likewise.
4587 * a-stzunb.adb: Likewise.
4588 * a-stzunb.ads: Likewise.
4589 * a-suteio.adb: Likewise.
4590 * a-suteio.ads: Likewise.
4591 * a-swbwha.adb: Likewise.
4592 * a-swmwco.ads: Likewise.
4593 * a-swunau.adb: Likewise.
4594 * a-swunau.ads: Likewise.
4595 * a-swuwha.adb: Likewise.
4596 * a-swuwti.adb: Likewise.
4597 * a-swuwti.ads: Likewise.
4598 * a-sytaco.adb: Likewise.
4599 * a-sytaco.ads: Likewise.
4600 * a-szbzha.adb: Likewise.
4601 * a-szmzco.ads: Likewise.
4602 * a-szunau.adb: Likewise.
4603 * a-szunau.ads: Likewise.
4604 * a-szuzha.adb: Likewise.
4605 * a-szuzti.adb: Likewise.
4606 * a-szuzti.ads: Likewise.
4607 * a-tags.adb: Likewise.
4608 * a-tags.ads: Likewise.
4609 * a-tasatt.ads: Likewise.
4610 * a-taside.adb: Likewise.
4611 * a-taside.ads: Likewise.
4612 * a-taster.adb: Likewise.
4613 * a-teioed.adb: Likewise.
4614 * a-teioed.ads: Likewise.
4615 * a-textio.adb: Likewise.
4616 * a-textio.ads: Likewise.
4617 * a-tiboio.adb: Likewise.
4618 * a-ticoau.adb: Likewise.
4619 * a-ticoau.ads: Likewise.
4620 * a-ticoio.adb: Likewise.
4621 * a-ticoio.ads: Likewise.
4622 * a-tideau.adb: Likewise.
4623 * a-tideau.ads: Likewise.
4624 * a-tideio.adb: Likewise.
4625 * a-tideio.ads: Likewise.
4626 * a-tienau.adb: Likewise.
4627 * a-tienau.ads: Likewise.
4628 * a-tienio.adb: Likewise.
4629 * a-tienio.ads: Likewise.
4630 * a-tifiio.adb: Likewise.
4631 * a-tifiio.ads: Likewise.
4632 * a-tiflau.adb: Likewise.
4633 * a-tiflau.ads: Likewise.
4634 * a-tiflio.adb: Likewise.
4635 * a-tiflio.ads: Likewise.
4636 * a-tigeau.adb: Likewise.
4637 * a-tigeau.ads: Likewise.
4638 * a-tiinau.adb: Likewise.
4639 * a-tiinau.ads: Likewise.
4640 * a-tiinio.adb: Likewise.
4641 * a-tiinio.ads: Likewise.
4642 * a-timoau.adb: Likewise.
4643 * a-timoau.ads: Likewise.
4644 * a-timoio.adb: Likewise.
4645 * a-timoio.ads: Likewise.
4646 * a-tiocst.adb: Likewise.
4647 * a-tiocst.ads: Likewise.
4648 * a-titest.adb: Likewise.
4649 * a-wichun.adb: Likewise.
4650 * a-wichun.ads: Likewise.
4651 * a-witeio.adb: Likewise.
4652 * a-witeio.ads: Likewise.
4653 * a-wtcoau.adb: Likewise.
4654 * a-wtcoau.ads: Likewise.
4655 * a-wtcoio.adb: Likewise.
4656 * a-wtcstr.adb: Likewise.
4657 * a-wtcstr.ads: Likewise.
4658 * a-wtdeau.adb: Likewise.
4659 * a-wtdeau.ads: Likewise.
4660 * a-wtdeio.adb: Likewise.
4661 * a-wtdeio.ads: Likewise.
4662 * a-wtedit.adb: Likewise.
4663 * a-wtedit.ads: Likewise.
4664 * a-wtenau.adb: Likewise.
4665 * a-wtenau.ads: Likewise.
4666 * a-wtenio.adb: Likewise.
4667 * a-wtenio.ads: Likewise.
4668 * a-wtfiio.adb: Likewise.
4669 * a-wtfiio.ads: Likewise.
4670 * a-wtflau.adb: Likewise.
4671 * a-wtflau.ads: Likewise.
4672 * a-wtflio.adb: Likewise.
4673 * a-wtflio.ads: Likewise.
4674 * a-wtgeau.adb: Likewise.
4675 * a-wtgeau.ads: Likewise.
4676 * a-wtinau.adb: Likewise.
4677 * a-wtinau.ads: Likewise.
4678 * a-wtinio.adb: Likewise.
4679 * a-wtmoau.adb: Likewise.
4680 * a-wtmoau.ads: Likewise.
4681 * a-wtmoio.adb: Likewise.
4682 * a-wtmoio.ads: Likewise.
4683 * a-wttest.adb: Likewise.
4684 * a-wwboio.adb: Likewise.
4685 * a-zchuni.adb: Likewise.
4686 * a-zchuni.ads: Likewise.
4687 * a-ztcoau.adb: Likewise.
4688 * a-ztcoau.ads: Likewise.
4689 * a-ztcoio.adb: Likewise.
4690 * a-ztcstr.adb: Likewise.
4691 * a-ztcstr.ads: Likewise.
4692 * a-ztdeau.adb: Likewise.
4693 * a-ztdeau.ads: Likewise.
4694 * a-ztdeio.adb: Likewise.
4695 * a-ztdeio.ads: Likewise.
4696 * a-ztedit.adb: Likewise.
4697 * a-ztedit.ads: Likewise.
4698 * a-ztenau.adb: Likewise.
4699 * a-ztenau.ads: Likewise.
4700 * a-ztenio.adb: Likewise.
4701 * a-ztenio.ads: Likewise.
4702 * a-ztexio.adb: Likewise.
4703 * a-ztexio.ads: Likewise.
4704 * a-ztfiio.adb: Likewise.
4705 * a-ztfiio.ads: Likewise.
4706 * a-ztflau.adb: Likewise.
4707 * a-ztflau.ads: Likewise.
4708 * a-ztflio.adb: Likewise.
4709 * a-ztflio.ads: Likewise.
4710 * a-ztgeau.adb: Likewise.
4711 * a-ztgeau.ads: Likewise.
4712 * a-ztinau.adb: Likewise.
4713 * a-ztinau.ads: Likewise.
4714 * a-ztinio.adb: Likewise.
4715 * a-ztmoau.adb: Likewise.
4716 * a-ztmoau.ads: Likewise.
4717 * a-ztmoio.adb: Likewise.
4718 * a-ztmoio.ads: Likewise.
4719 * a-zttest.adb: Likewise.
4720 * a-zzboio.adb: Likewise.
4721 * adadecode.c: Likewise.
4722 * adaint.c: Likewise.
4723 * adaint.h: Likewise.
4724 * alloc.ads: Likewise.
4725 * argv.c: Likewise.
4726 * arit64.c: Likewise.
4727 * atree.adb: Likewise.
4728 * atree.ads: Likewise.
4729 * aux-io.c: Likewise.
4730 * cal.c: Likewise.
4731 * casing.adb: Likewise.
4732 * casing.ads: Likewise.
4733 * cio.c: Likewise.
4734 * csets.adb: Likewise.
4735 * csets.ads: Likewise.
4736 * cstreams.c: Likewise.
4737 * ctrl_c.c: Likewise.
4738 * debug.adb: Likewise.
4739 * debug.ads: Likewise.
4740 * dec.ads: Likewise.
4741 * einfo.adb: Likewise.
4742 * einfo.ads: Likewise.
4743 * elists.adb: Likewise.
4744 * elists.ads: Likewise.
4745 * env.c: Likewise.
4746 * env.h: Likewise.
4747 * errno.c: Likewise.
4748 * exit.c: Likewise.
4749 * fe.h: Likewise.
4750 * final.c: Likewise.
4751 * fname.adb: Likewise.
4752 * fname.ads: Likewise.
4753 * g-allein.ads: Likewise.
4754 * g-alleve.adb: Likewise.
4755 * g-alleve.ads: Likewise.
4756 * g-altcon.adb: Likewise.
4757 * g-altcon.ads: Likewise.
4758 * g-altive.ads: Likewise.
4759 * g-alveop.adb: Likewise.
4760 * g-alveop.ads: Likewise.
4761 * g-alvety.ads: Likewise.
4762 * g-alvevi.ads: Likewise.
4763 * g-arrspl.adb: Likewise.
4764 * g-arrspl.ads: Likewise.
4765 * g-calend.ads: Likewise.
4766 * g-comlin.adb: Likewise.
4767 * g-debpoo.adb: Likewise.
4768 * g-debpoo.ads: Likewise.
4769 * g-eacodu-vms.adb: Likewise.
4770 * g-eacodu.adb: Likewise.
4771 * g-excact.adb: Likewise.
4772 * g-excact.ads: Likewise.
4773 * g-locfil.adb: Likewise.
4774 * g-os_lib.ads: Likewise.
4775 * g-rannum.adb: Likewise.
4776 * g-rannum.ads: Likewise.
4777 * g-regist.adb: Likewise.
4778 * g-regist.ads: Likewise.
4779 * g-signal.adb: Likewise.
4780 * g-signal.ads: Likewise.
4781 * g-soccon.ads: Likewise.
4782 * g-string.adb: Likewise.
4783 * g-string.ads: Likewise.
4784 * g-strspl.ads: Likewise.
4785 * g-timsta.adb: Likewise.
4786 * g-timsta.ads: Likewise.
4787 * g-trasym-vms-alpha.adb: Likewise.
4788 * g-trasym-vms-ia64.adb: Likewise.
4789 * g-utf_32.adb: Likewise.
4790 * g-utf_32.ads: Likewise.
4791 * g-wistsp.ads: Likewise.
4792 * g-zstspl.ads: Likewise.
4793 * gmem.c: Likewise.
4794 * gnatvsn.adb: Likewise.
4795 * gnatvsn.ads: Likewise.
4796 * gsocket.h: Likewise.
4797 * hostparm.ads: Likewise.
4798 * i-c.adb: Likewise.
4799 * i-cexten.ads: Likewise.
4800 * i-cobol.adb: Likewise.
4801 * i-cobol.ads: Likewise.
4802 * i-cpoint.adb: Likewise.
4803 * i-cpoint.ads: Likewise.
4804 * i-cpp.adb: Likewise.
4805 * i-cpp.ads: Likewise.
4806 * i-cstrea-vms.adb: Likewise.
4807 * i-cstrea.adb: Likewise.
4808 * i-cstrea.ads: Likewise.
4809 * i-cstrin.adb: Likewise.
4810 * i-cstrin.ads: Likewise.
4811 * i-forbla-darwin.adb: Likewise.
4812 * i-forbla-unimplemented.ads: Likewise.
4813 * i-forbla.adb: Likewise.
4814 * i-forbla.ads: Likewise.
4815 * i-forlap.ads: Likewise.
4816 * i-fortra.adb: Likewise.
4817 * i-pacdec.adb: Likewise.
4818 * i-pacdec.ads: Likewise.
4819 * i-vxwoio.adb: Likewise.
4820 * i-vxwoio.ads: Likewise.
4821 * indepsw-aix.adb: Likewise.
4822 * indepsw-gnu.adb: Likewise.
4823 * indepsw-mingw.adb: Likewise.
4824 * indepsw.adb: Likewise.
4825 * indepsw.ads: Likewise.
4826 * init.c: Likewise.
4827 * initialize.c: Likewise.
4828 * interfac.ads: Likewise.
4829 * krunch.adb: Likewise.
4830 * krunch.ads: Likewise.
4831 * lib-list.adb: Likewise.
4832 * lib-sort.adb: Likewise.
4833 * lib.adb: Likewise.
4834 * lib.ads: Likewise.
4835 * link.c: Likewise.
4836 * math_lib.adb: Likewise.
4837 * memtrack.adb: Likewise.
4838 * mingw32.h: Likewise.
4839 * mkdir.c: Likewise.
4840 * namet-sp.adb: Likewise.
4841 * namet-sp.ads: Likewise.
4842 * namet.adb: Likewise.
4843 * namet.ads: Likewise.
4844 * nlists.adb: Likewise.
4845 * nlists.ads: Likewise.
4846 * opt.adb: Likewise.
4847 * opt.ads: Likewise.
4848 * output.adb: Likewise.
4849 * output.ads: Likewise.
4850 * raise-gcc.c: Likewise.
4851 * raise.c: Likewise.
4852 * raise.h: Likewise.
4853 * repinfo.adb: Likewise.
4854 * repinfo.ads: Likewise.
4855 * repinfo.h: Likewise.
4856 * rident.ads: Likewise.
4857 * s-addima.adb: Likewise.
4858 * s-addima.ads: Likewise.
4859 * s-addope.adb: Likewise.
4860 * s-addope.ads: Likewise.
4861 * s-arit64.adb: Likewise.
4862 * s-arit64.ads: Likewise.
4863 * s-assert.adb: Likewise.
4864 * s-assert.ads: Likewise.
4865 * s-asthan-vms-alpha.adb: Likewise.
4866 * s-asthan.adb: Likewise.
4867 * s-asthan.ads: Likewise.
4868 * s-atacco.adb: Likewise.
4869 * s-atacco.ads: Likewise.
4870 * s-auxdec-empty.adb: Likewise.
4871 * s-auxdec-empty.ads: Likewise.
4872 * s-auxdec-vms_64.ads: Likewise.
4873 * s-auxdec.adb: Likewise.
4874 * s-auxdec.ads: Likewise.
4875 * s-bitops.adb: Likewise.
4876 * s-bitops.ads: Likewise.
4877 * s-boarop.ads: Likewise.
4878 * s-carsi8.adb: Likewise.
4879 * s-carsi8.ads: Likewise.
4880 * s-carun8.adb: Likewise.
4881 * s-carun8.ads: Likewise.
4882 * s-casi16.adb: Likewise.
4883 * s-casi16.ads: Likewise.
4884 * s-casi32.adb: Likewise.
4885 * s-casi32.ads: Likewise.
4886 * s-casi64.adb: Likewise.
4887 * s-casi64.ads: Likewise.
4888 * s-casuti.ads: Likewise.
4889 * s-caun16.adb: Likewise.
4890 * s-caun16.ads: Likewise.
4891 * s-caun32.adb: Likewise.
4892 * s-caun32.ads: Likewise.
4893 * s-caun64.adb: Likewise.
4894 * s-caun64.ads: Likewise.
4895 * s-chepoo.ads: Likewise.
4896 * s-crc32.adb: Likewise.
4897 * s-crc32.ads: Likewise.
4898 * s-crtl.ads: Likewise.
4899 * s-direio.adb: Likewise.
4900 * s-direio.ads: Likewise.
4901 * s-dsaser.ads: Likewise.
4902 * s-except.adb: Likewise.
4903 * s-except.ads: Likewise.
4904 * s-exctab.adb: Likewise.
4905 * s-exctab.ads: Likewise.
4906 * s-exnint.adb: Likewise.
4907 * s-exnint.ads: Likewise.
4908 * s-exnllf.adb: Likewise.
4909 * s-exnllf.ads: Likewise.
4910 * s-exnlli.adb: Likewise.
4911 * s-exnlli.ads: Likewise.
4912 * s-expint.adb: Likewise.
4913 * s-expint.ads: Likewise.
4914 * s-explli.adb: Likewise.
4915 * s-explli.ads: Likewise.
4916 * s-expllu.adb: Likewise.
4917 * s-expllu.ads: Likewise.
4918 * s-expmod.adb: Likewise.
4919 * s-expmod.ads: Likewise.
4920 * s-expuns.adb: Likewise.
4921 * s-expuns.ads: Likewise.
4922 * s-fatflt.ads: Likewise.
4923 * s-fatgen.adb: Likewise.
4924 * s-fatgen.ads: Likewise.
4925 * s-fatlfl.ads: Likewise.
4926 * s-fatllf.ads: Likewise.
4927 * s-fatsfl.ads: Likewise.
4928 * s-ficobl.ads: Likewise.
4929 * s-fileio.adb: Likewise.
4930 * s-fileio.ads: Likewise.
4931 * s-filofl.ads: Likewise.
4932 * s-finimp.adb: Likewise.
4933 * s-finimp.ads: Likewise.
4934 * s-finroo.adb: Likewise.
4935 * s-finroo.ads: Likewise.
4936 * s-fishfl.ads: Likewise.
4937 * s-fore.adb: Likewise.
4938 * s-fore.ads: Likewise.
4939 * s-fvadfl.ads: Likewise.
4940 * s-fvaffl.ads: Likewise.
4941 * s-fvagfl.ads: Likewise.
4942 * s-gearop.adb: Likewise.
4943 * s-gearop.ads: Likewise.
4944 * s-gecobl.adb: Likewise.
4945 * s-gecobl.ads: Likewise.
4946 * s-gecola.adb: Likewise.
4947 * s-gecola.ads: Likewise.
4948 * s-gerebl.adb: Likewise.
4949 * s-gerebl.ads: Likewise.
4950 * s-gerela.adb: Likewise.
4951 * s-gerela.ads: Likewise.
4952 * s-geveop.adb: Likewise.
4953 * s-geveop.ads: Likewise.
4954 * s-gloloc.adb: Likewise.
4955 * s-gloloc.ads: Likewise.
4956 * s-hibaen.ads: Likewise.
4957 * s-imenne.adb: Likewise.
4958 * s-imenne.ads: Likewise.
4959 * s-imgbiu.adb: Likewise.
4960 * s-imgbiu.ads: Likewise.
4961 * s-imgboo.adb: Likewise.
4962 * s-imgboo.ads: Likewise.
4963 * s-imgcha.adb: Likewise.
4964 * s-imgcha.ads: Likewise.
4965 * s-imgdec.adb: Likewise.
4966 * s-imgdec.ads: Likewise.
4967 * s-imgenu.adb: Likewise.
4968 * s-imgenu.ads: Likewise.
4969 * s-imgint.adb: Likewise.
4970 * s-imgint.ads: Likewise.
4971 * s-imgllb.adb: Likewise.
4972 * s-imgllb.ads: Likewise.
4973 * s-imglld.adb: Likewise.
4974 * s-imglld.ads: Likewise.
4975 * s-imglli.adb: Likewise.
4976 * s-imglli.ads: Likewise.
4977 * s-imgllu.adb: Likewise.
4978 * s-imgllu.ads: Likewise.
4979 * s-imgllw.adb: Likewise.
4980 * s-imgllw.ads: Likewise.
4981 * s-imgrea.adb: Likewise.
4982 * s-imgrea.ads: Likewise.
4983 * s-imguns.adb: Likewise.
4984 * s-imguns.ads: Likewise.
4985 * s-imgwch.adb: Likewise.
4986 * s-imgwch.ads: Likewise.
4987 * s-imgwiu.adb: Likewise.
4988 * s-imgwiu.ads: Likewise.
4989 * s-inmaop-dummy.adb: Likewise.
4990 * s-inmaop-vms.adb: Likewise.
4991 * s-inmaop.ads: Likewise.
4992 * s-interr-hwint.adb: Likewise.
4993 * s-interr-sigaction.adb: Likewise.
4994 * s-interr-vms.adb: Likewise.
4995 * s-interr.adb: Likewise.
4996 * s-interr.ads: Likewise.
4997 * s-intman-dummy.adb: Likewise.
4998 * s-intman-mingw.adb: Likewise.
4999 * s-intman-posix.adb: Likewise.
5000 * s-intman-solaris.adb: Likewise.
5001 * s-intman-vms.adb: Likewise.
5002 * s-intman-vms.ads: Likewise.
5003 * s-intman-vxworks.adb: Likewise.
5004 * s-intman-vxworks.ads: Likewise.
5005 * s-intman.ads: Likewise.
5006 * s-io.adb: Likewise.
5007 * s-io.ads: Likewise.
5008 * s-linux-alpha.ads: Likewise.
5009 * s-linux-hppa.ads: Likewise.
5010 * s-linux.ads: Likewise.
5011 * s-maccod.ads: Likewise.
5012 * s-mantis.adb: Likewise.
5013 * s-mantis.ads: Likewise.
5014 * s-mastop-irix.adb: Likewise.
5015 * s-mastop.adb: Likewise.
5016 * s-mastop.ads: Likewise.
5017 * s-memcop.ads: Likewise.
5018 * s-memory-mingw.adb: Likewise.
5019 * s-memory.adb: Likewise.
5020 * s-memory.ads: Likewise.
5021 * s-os_lib.ads: Likewise.
5022 * s-oscons-tmplt.c: Likewise.
5023 * s-osinte-aix.adb: Likewise.
5024 * s-osinte-darwin.adb: Likewise.
5025 * s-osinte-freebsd.adb: Likewise.
5026 * s-osinte-irix.adb: Likewise.
5027 * s-osinte-lynxos-3.adb: Likewise.
5028 * s-osinte-rtems.ads: Likewise.
5029 * s-osinte-tru64.adb: Likewise.
5030 * s-osinte-vxworks-kernel.adb: Likewise.
5031 * s-osinte-vxworks.adb: Likewise.
5032 * s-osprim-mingw.adb: Likewise.
5033 * s-osprim-posix.adb: Likewise.
5034 * s-osprim-solaris.adb: Likewise.
5035 * s-osprim-unix.adb: Likewise.
5036 * s-osprim-vms.adb: Likewise.
5037 * s-osprim-vms.ads: Likewise.
5038 * s-osprim-vxworks.adb: Likewise.
5039 * s-osprim.ads: Likewise.
5040 * s-pack03.adb: Likewise.
5041 * s-pack03.ads: Likewise.
5042 * s-pack05.adb: Likewise.
5043 * s-pack05.ads: Likewise.
5044 * s-pack06.adb: Likewise.
5045 * s-pack06.ads: Likewise.
5046 * s-pack07.adb: Likewise.
5047 * s-pack07.ads: Likewise.
5048 * s-pack09.adb: Likewise.
5049 * s-pack09.ads: Likewise.
5050 * s-pack10.adb: Likewise.
5051 * s-pack10.ads: Likewise.
5052 * s-pack11.adb: Likewise.
5053 * s-pack11.ads: Likewise.
5054 * s-pack12.adb: Likewise.
5055 * s-pack12.ads: Likewise.
5056 * s-pack13.adb: Likewise.
5057 * s-pack13.ads: Likewise.
5058 * s-pack14.adb: Likewise.
5059 * s-pack14.ads: Likewise.
5060 * s-pack15.adb: Likewise.
5061 * s-pack15.ads: Likewise.
5062 * s-pack17.adb: Likewise.
5063 * s-pack17.ads: Likewise.
5064 * s-pack18.adb: Likewise.
5065 * s-pack18.ads: Likewise.
5066 * s-pack19.adb: Likewise.
5067 * s-pack19.ads: Likewise.
5068 * s-pack20.adb: Likewise.
5069 * s-pack20.ads: Likewise.
5070 * s-pack21.adb: Likewise.
5071 * s-pack21.ads: Likewise.
5072 * s-pack22.adb: Likewise.
5073 * s-pack22.ads: Likewise.
5074 * s-pack23.adb: Likewise.
5075 * s-pack23.ads: Likewise.
5076 * s-pack24.adb: Likewise.
5077 * s-pack24.ads: Likewise.
5078 * s-pack25.adb: Likewise.
5079 * s-pack25.ads: Likewise.
5080 * s-pack26.adb: Likewise.
5081 * s-pack26.ads: Likewise.
5082 * s-pack27.adb: Likewise.
5083 * s-pack27.ads: Likewise.
5084 * s-pack28.adb: Likewise.
5085 * s-pack28.ads: Likewise.
5086 * s-pack29.adb: Likewise.
5087 * s-pack29.ads: Likewise.
5088 * s-pack30.adb: Likewise.
5089 * s-pack30.ads: Likewise.
5090 * s-pack31.adb: Likewise.
5091 * s-pack31.ads: Likewise.
5092 * s-pack33.adb: Likewise.
5093 * s-pack33.ads: Likewise.
5094 * s-pack34.adb: Likewise.
5095 * s-pack34.ads: Likewise.
5096 * s-pack35.adb: Likewise.
5097 * s-pack35.ads: Likewise.
5098 * s-pack36.adb: Likewise.
5099 * s-pack36.ads: Likewise.
5100 * s-pack37.adb: Likewise.
5101 * s-pack37.ads: Likewise.
5102 * s-pack38.adb: Likewise.
5103 * s-pack38.ads: Likewise.
5104 * s-pack39.adb: Likewise.
5105 * s-pack39.ads: Likewise.
5106 * s-pack40.adb: Likewise.
5107 * s-pack40.ads: Likewise.
5108 * s-pack41.adb: Likewise.
5109 * s-pack41.ads: Likewise.
5110 * s-pack42.adb: Likewise.
5111 * s-pack42.ads: Likewise.
5112 * s-pack43.adb: Likewise.
5113 * s-pack43.ads: Likewise.
5114 * s-pack44.adb: Likewise.
5115 * s-pack44.ads: Likewise.
5116 * s-pack45.adb: Likewise.
5117 * s-pack45.ads: Likewise.
5118 * s-pack46.adb: Likewise.
5119 * s-pack46.ads: Likewise.
5120 * s-pack47.adb: Likewise.
5121 * s-pack47.ads: Likewise.
5122 * s-pack48.adb: Likewise.
5123 * s-pack48.ads: Likewise.
5124 * s-pack49.adb: Likewise.
5125 * s-pack49.ads: Likewise.
5126 * s-pack50.adb: Likewise.
5127 * s-pack50.ads: Likewise.
5128 * s-pack51.adb: Likewise.
5129 * s-pack51.ads: Likewise.
5130 * s-pack52.adb: Likewise.
5131 * s-pack52.ads: Likewise.
5132 * s-pack53.adb: Likewise.
5133 * s-pack53.ads: Likewise.
5134 * s-pack54.adb: Likewise.
5135 * s-pack54.ads: Likewise.
5136 * s-pack55.adb: Likewise.
5137 * s-pack55.ads: Likewise.
5138 * s-pack56.adb: Likewise.
5139 * s-pack56.ads: Likewise.
5140 * s-pack57.adb: Likewise.
5141 * s-pack57.ads: Likewise.
5142 * s-pack58.adb: Likewise.
5143 * s-pack58.ads: Likewise.
5144 * s-pack59.adb: Likewise.
5145 * s-pack59.ads: Likewise.
5146 * s-pack60.adb: Likewise.
5147 * s-pack60.ads: Likewise.
5148 * s-pack61.adb: Likewise.
5149 * s-pack61.ads: Likewise.
5150 * s-pack62.adb: Likewise.
5151 * s-pack62.ads: Likewise.
5152 * s-pack63.adb: Likewise.
5153 * s-pack63.ads: Likewise.
5154 * s-parame-ae653.ads: Likewise.
5155 * s-parame-hpux.ads: Likewise.
5156 * s-parame-rtems.adb: Likewise.
5157 * s-parame-vms-alpha.ads: Likewise.
5158 * s-parame-vms-ia64.ads: Likewise.
5159 * s-parame-vms-restrict.ads: Likewise.
5160 * s-parame-vxworks.adb: Likewise.
5161 * s-parame-vxworks.ads: Likewise.
5162 * s-parame.adb: Likewise.
5163 * s-parame.ads: Likewise.
5164 * s-parint.adb: Likewise.
5165 * s-parint.ads: Likewise.
5166 * s-pooglo.adb: Likewise.
5167 * s-pooglo.ads: Likewise.
5168 * s-pooloc.adb: Likewise.
5169 * s-pooloc.ads: Likewise.
5170 * s-poosiz.adb: Likewise.
5171 * s-poosiz.ads: Likewise.
5172 * s-powtab.ads: Likewise.
5173 * s-proinf-irix-athread.adb: Likewise.
5174 * s-proinf-irix-athread.ads: Likewise.
5175 * s-proinf.adb: Likewise.
5176 * s-proinf.ads: Likewise.
5177 * s-purexc.ads: Likewise.
5178 * s-rannum.adb: Likewise.
5179 * s-rannum.ads: Likewise.
5180 * s-restri.adb: Likewise.
5181 * s-restri.ads: Likewise.
5182 * s-rident.ads: Likewise.
5183 * s-rpc.adb: Likewise.
5184 * s-rpc.ads: Likewise.
5185 * s-scaval.adb: Likewise.
5186 * s-scaval.ads: Likewise.
5187 * s-secsta.adb: Likewise.
5188 * s-secsta.ads: Likewise.
5189 * s-sequio.adb: Likewise.
5190 * s-sequio.ads: Likewise.
5191 * s-shasto.adb: Likewise.
5192 * s-shasto.ads: Likewise.
5193 * s-soflin.adb: Likewise.
5194 * s-soflin.ads: Likewise.
5195 * s-solita.adb: Likewise.
5196 * s-solita.ads: Likewise.
5197 * s-sopco3.adb: Likewise.
5198 * s-sopco3.ads: Likewise.
5199 * s-sopco4.adb: Likewise.
5200 * s-sopco4.ads: Likewise.
5201 * s-sopco5.adb: Likewise.
5202 * s-sopco5.ads: Likewise.
5203 * s-stache.adb: Likewise.
5204 * s-stache.ads: Likewise.
5205 * s-stalib.adb: Likewise.
5206 * s-stalib.ads: Likewise.
5207 * s-stausa.adb: Likewise.
5208 * s-stausa.ads: Likewise.
5209 * s-stchop-limit.ads: Likewise.
5210 * s-stchop-rtems.adb: Likewise.
5211 * s-stchop-vxworks.adb: Likewise.
5212 * s-stchop.adb: Likewise.
5213 * s-stchop.ads: Likewise.
5214 * s-stoele.adb: Likewise.
5215 * s-stoele.ads: Likewise.
5216 * s-stopoo.adb: Likewise.
5217 * s-stopoo.ads: Likewise.
5218 * s-stratt.adb: Likewise.
5219 * s-stratt.ads: Likewise.
5220 * s-strcom.adb: Likewise.
5221 * s-strcom.ads: Likewise.
5222 * s-string.adb: Likewise.
5223 * s-string.ads: Likewise.
5224 * s-strops.adb: Likewise.
5225 * s-strops.ads: Likewise.
5226 * s-strxdr.adb: Likewise.
5227 * s-ststop.adb: Likewise.
5228 * s-ststop.ads: Likewise.
5229 * s-taasde.adb: Likewise.
5230 * s-taasde.ads: Likewise.
5231 * s-tadeca.adb: Likewise.
5232 * s-tadeca.ads: Likewise.
5233 * s-tadert.adb: Likewise.
5234 * s-tadert.ads: Likewise.
5235 * s-taenca.adb: Likewise.
5236 * s-taenca.ads: Likewise.
5237 * s-taprob.ads: Likewise.
5238 * s-taprop-dummy.adb: Likewise.
5239 * s-taprop-hpux-dce.adb: Likewise.
5240 * s-taprop-irix.adb: Likewise.
5241 * s-taprop-linux.adb: Likewise.
5242 * s-taprop-lynxos.adb: Likewise.
5243 * s-taprop-mingw.adb: Likewise.
5244 * s-taprop-posix.adb: Likewise.
5245 * s-taprop-solaris.adb: Likewise.
5246 * s-taprop-tru64.adb: Likewise.
5247 * s-taprop-vms.adb: Likewise.
5248 * s-taprop-vxworks.adb: Likewise.
5249 * s-taprop.ads: Likewise.
5250 * s-tarest.adb: Likewise.
5251 * s-tarest.ads: Likewise.
5252 * s-tasdeb.adb: Likewise.
5253 * s-tasdeb.ads: Likewise.
5254 * s-tasinf-irix.ads: Likewise.
5255 * s-tasinf-linux.adb: Likewise.
5256 * s-tasinf-linux.ads: Likewise.
5257 * s-tasinf-mingw.adb: Likewise.
5258 * s-tasinf-mingw.ads: Likewise.
5259 * s-tasinf-solaris.adb: Likewise.
5260 * s-tasinf-solaris.ads: Likewise.
5261 * s-tasinf-tru64.ads: Likewise.
5262 * s-tasinf.adb: Likewise.
5263 * s-tasinf.ads: Likewise.
5264 * s-tasini.adb: Likewise.
5265 * s-tasini.ads: Likewise.
5266 * s-taskin.adb: Likewise.
5267 * s-taskin.ads: Likewise.
5268 * s-taspri-dummy.ads: Likewise.
5269 * s-taspri-hpux-dce.ads: Likewise.
5270 * s-taspri-mingw.ads: Likewise.
5271 * s-taspri-solaris.ads: Likewise.
5272 * s-taspri-tru64.ads: Likewise.
5273 * s-taspri-vms.ads: Likewise.
5274 * s-taspri-vxworks.ads: Likewise.
5275 * s-tasque.adb: Likewise.
5276 * s-tasque.ads: Likewise.
5277 * s-tasren.adb: Likewise.
5278 * s-tasren.ads: Likewise.
5279 * s-tasres.ads: Likewise.
5280 * s-tassta.adb: Likewise.
5281 * s-tassta.ads: Likewise.
5282 * s-tasuti.adb: Likewise.
5283 * s-tasuti.ads: Likewise.
5284 * s-tfsetr-default.adb: Likewise.
5285 * s-tfsetr-vxworks.adb: Likewise.
5286 * s-tpinop.adb: Likewise.
5287 * s-tpinop.ads: Likewise.
5288 * s-tpoben.adb: Likewise.
5289 * s-tpoben.ads: Likewise.
5290 * s-tpobop.adb: Likewise.
5291 * s-tpobop.ads: Likewise.
5292 * s-tpopde-vms.adb: Likewise.
5293 * s-tpopde-vms.ads: Likewise.
5294 * s-tpopsp-lynxos.adb: Likewise.
5295 * s-tpopsp-posix-foreign.adb: Likewise.
5296 * s-tpopsp-posix.adb: Likewise.
5297 * s-tpopsp-solaris.adb: Likewise.
5298 * s-tpopsp-vxworks.adb: Likewise.
5299 * s-tporft.adb: Likewise.
5300 * s-tposen.adb: Likewise.
5301 * s-tposen.ads: Likewise.
5302 * s-traceb.adb: Likewise.
5303 * s-traceb.ads: Likewise.
5304 * s-traces-default.adb: Likewise.
5305 * s-traces.adb: Likewise.
5306 * s-traces.ads: Likewise.
5307 * s-traent-vms.adb: Likewise.
5308 * s-traent-vms.ads: Likewise.
5309 * s-traent.adb: Likewise.
5310 * s-traent.ads: Likewise.
5311 * s-trafor-default.adb: Likewise.
5312 * s-trafor-default.ads: Likewise.
5313 * s-tratas-default.adb: Likewise.
5314 * s-tratas.adb: Likewise.
5315 * s-tratas.ads: Likewise.
5316 * s-unstyp.ads: Likewise.
5317 * s-utf_32.adb: Likewise.
5318 * s-utf_32.ads: Likewise.
5319 * s-vaflop-vms-alpha.adb: Likewise.
5320 * s-vaflop.adb: Likewise.
5321 * s-vaflop.ads: Likewise.
5322 * s-valboo.adb: Likewise.
5323 * s-valboo.ads: Likewise.
5324 * s-valcha.adb: Likewise.
5325 * s-valcha.ads: Likewise.
5326 * s-valdec.adb: Likewise.
5327 * s-valdec.ads: Likewise.
5328 * s-valenu.adb: Likewise.
5329 * s-valenu.ads: Likewise.
5330 * s-valint.adb: Likewise.
5331 * s-valint.ads: Likewise.
5332 * s-vallld.adb: Likewise.
5333 * s-vallld.ads: Likewise.
5334 * s-vallli.adb: Likewise.
5335 * s-vallli.ads: Likewise.
5336 * s-valllu.adb: Likewise.
5337 * s-valllu.ads: Likewise.
5338 * s-valrea.adb: Likewise.
5339 * s-valrea.ads: Likewise.
5340 * s-valuns.adb: Likewise.
5341 * s-valuns.ads: Likewise.
5342 * s-valuti.adb: Likewise.
5343 * s-valuti.ads: Likewise.
5344 * s-valwch.adb: Likewise.
5345 * s-valwch.ads: Likewise.
5346 * s-veboop.adb: Likewise.
5347 * s-veboop.ads: Likewise.
5348 * s-vector.ads: Likewise.
5349 * s-vercon.adb: Likewise.
5350 * s-vercon.ads: Likewise.
5351 * s-vmexta.adb: Likewise.
5352 * s-vmexta.ads: Likewise.
5353 * s-vxwext-kernel.ads: Likewise.
5354 * s-vxwext-rtp.adb: Likewise.
5355 * s-vxwext-rtp.ads: Likewise.
5356 * s-vxwext.ads: Likewise.
5357 * s-vxwork-arm.ads: Likewise.
5358 * s-vxwork-m68k.ads: Likewise.
5359 * s-vxwork-mips.ads: Likewise.
5360 * s-vxwork-ppc.ads: Likewise.
5361 * s-vxwork-sparcv9.ads: Likewise.
5362 * s-vxwork-x86.ads: Likewise.
5363 * s-wchcnv.adb: Likewise.
5364 * s-wchcnv.ads: Likewise.
5365 * s-wchcon.adb: Likewise.
5366 * s-wchcon.ads: Likewise.
5367 * s-wchjis.adb: Likewise.
5368 * s-wchjis.ads: Likewise.
5369 * s-wchstw.adb: Likewise.
5370 * s-wchstw.ads: Likewise.
5371 * s-wchwts.adb: Likewise.
5372 * s-wchwts.ads: Likewise.
5373 * s-widboo.adb: Likewise.
5374 * s-widboo.ads: Likewise.
5375 * s-widcha.adb: Likewise.
5376 * s-widcha.ads: Likewise.
5377 * s-widenu.adb: Likewise.
5378 * s-widenu.ads: Likewise.
5379 * s-widlli.adb: Likewise.
5380 * s-widlli.ads: Likewise.
5381 * s-widllu.adb: Likewise.
5382 * s-widllu.ads: Likewise.
5383 * s-widwch.adb: Likewise.
5384 * s-widwch.ads: Likewise.
5385 * s-win32.ads: Likewise.
5386 * s-winext.ads: Likewise.
5387 * s-wwdcha.adb: Likewise.
5388 * s-wwdcha.ads: Likewise.
5389 * s-wwdenu.adb: Likewise.
5390 * s-wwdenu.ads: Likewise.
5391 * s-wwdwch.adb: Likewise.
5392 * s-wwdwch.ads: Likewise.
5393 * scans.adb: Likewise.
5394 * scans.ads: Likewise.
5395 * seh_init.c: Likewise.
5396 * sfn_scan.adb: Likewise.
5397 * sinfo.adb: Likewise.
5398 * sinfo.ads: Likewise.
5399 * sinput.adb: Likewise.
5400 * sinput.ads: Likewise.
5401 * snames.adb: Likewise.
5402 * snames.ads: Likewise.
5403 * socket.c: Likewise.
5404 * stand.adb: Likewise.
5405 * stand.ads: Likewise.
5406 * stringt.adb: Likewise.
5407 * stringt.ads: Likewise.
5408 * sysdep.c: Likewise.
5409 * system-aix.ads: Likewise.
5410 * system-darwin-ppc.ads: Likewise.
5411 * system-darwin-x86.ads: Likewise.
5412 * system-darwin-x86_64.ads: Likewise.
5413 * system-freebsd-x86.ads: Likewise.
5414 * system-hpux-ia64.ads: Likewise.
5415 * system-hpux.ads: Likewise.
5416 * system-irix-n32.ads: Likewise.
5417 * system-irix-n64.ads: Likewise.
5418 * system-irix-o32.ads: Likewise.
5419 * system-linux-alpha.ads: Likewise.
5420 * system-linux-hppa.ads: Likewise.
5421 * system-linux-ia64.ads: Likewise.
5422 * system-linux-mips.ads: Likewise.
5423 * system-linux-mipsel.ads: Likewise.
5424 * system-linux-ppc.ads: Likewise.
5425 * system-linux-ppc64.ads: Likewise.
5426 * system-linux-s390.ads: Likewise.
5427 * system-linux-s390x.ads: Likewise.
5428 * system-linux-sh4.ads: Likewise.
5429 * system-linux-sparc.ads: Likewise.
5430 * system-linux-sparcv9.ads: Likewise.
5431 * system-linux-x86.ads: Likewise.
5432 * system-linux-x86_64.ads: Likewise.
5433 * system-lynxos-ppc.ads: Likewise.
5434 * system-lynxos-x86.ads: Likewise.
5435 * system-mingw-x86_64.ads: Likewise.
5436 * system-mingw.ads: Likewise.
5437 * system-rtems.ads: Likewise.
5438 * system-solaris-sparc.ads: Likewise.
5439 * system-solaris-sparcv9.ads: Likewise.
5440 * system-solaris-x86.ads: Likewise.
5441 * system-solaris-x86_64.ads: Likewise.
5442 * system-tru64.ads: Likewise.
5443 * system-vms-ia64.ads: Likewise.
5444 * system-vms-zcx.ads: Likewise.
5445 * system-vms.ads: Likewise.
5446 * system-vms_64.ads: Likewise.
5447 * system-vxworks-arm.ads: Likewise.
5448 * system-vxworks-m68k.ads: Likewise.
5449 * system-vxworks-mips.ads: Likewise.
5450 * system-vxworks-ppc.ads: Likewise.
5451 * system-vxworks-sparcv9.ads: Likewise.
5452 * system-vxworks-x86.ads: Likewise.
5453 * system.ads: Likewise.
5454 * table.adb: Likewise.
5455 * table.ads: Likewise.
5456 * targext.c: Likewise.
5457 * targparm.ads: Likewise.
5458 * tree_in.adb: Likewise.
5459 * tree_in.ads: Likewise.
5460 * tree_io.adb: Likewise.
5461 * tree_io.ads: Likewise.
5462 * types.adb: Likewise.
5463 * types.ads: Likewise.
5464 * uintp.adb: Likewise.
5465 * uintp.ads: Likewise.
5466 * uname.adb: Likewise.
5467 * uname.ads: Likewise.
5468 * urealp.adb: Likewise.
5469 * urealp.ads: Likewise.
5470 * vx_stack_info.c: Likewise.
5471 * widechar.adb: Likewise.
5472 * widechar.ads: Likewise.
5473 * exp_attr.adb: Change copyright header to refer to version
5474 3 of the GNU General Public License and to point readers at the
5475 COPYING3 file and the FSF's license web page.
5476 * sem.adb: Likewise.
5477 * sem_attr.ads: Likewise.
5478 * freeze.adb: Likewise.
5479 * freeze.ads: Likewise.
5480 * errout.ads: Likewise.
5481 * erroutc.adb: Likewise.
5482 * exp_ch11.ads: Likewise.
5483
54842009-04-09 Jakub Jelinek <jakub@redhat.com>
5485
5486 * config-lang.in: Change copyright header to refer to version
5487 3 of the GNU General Public License and to point readers at the
5488 COPYING3 file and the FSF's license web page.
5489 * gcc-interface/trans.c: Likewise.
5490 * gnathtml.pl: Likewise.
5491 * gcc-interface/ada.h: Likewise. Remove runtime exception.
5492 * gcc-interface/gigi.h: Likewise.
5493 * gcc-interface/misc.c: Likewise.
5494 * gcc-interface/targtyps.c: Likewise.
5495
dd8cfe3a
AC
54962009-04-09 Nicolas Setton <setton@adacore.com>
5497
5498 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
5499
5500 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
5501 struct_timeval.
5502
55032009-04-09 Bob Duff <duff@adacore.com>
5504
5505 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
5506 internally-generated nodes related to select statements to avoid
5507 confusing the debugger.
5508
55092009-04-09 Pascal Obry <obry@adacore.com>
5510
5511 * make.adb: Ensure that all linker arguments are duplicated.
5512
59f3dd0a
AC
55132009-04-09 Robert Dewar <dewar@adacore.com>
5514
5515 * sem_ch5.adb: Minor reformatting
5516
55172009-04-09 Vincent Celier <celier@adacore.com>
5518
5519 * vms_data.ads:
5520 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
5521 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
5522 New qualifier /LXDEBUG=nnn for -gnatDnnn
5523 For H820-010
5524
5525 * gnat_ugn.texi:
5526 Update documentation for VMS qualifiers equivalent to -gnatGnn and
5527 -gnatDnn
5528
55292009-04-09 Nicolas Setton <setton@adacore.com>
5530
5531 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
5532 to match layout of siginfo_t in sys/signal.h.
5533
5534 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
5535
55362009-04-09 Thomas Quinot <quinot@adacore.com>
5537
5538 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
5539
55402009-04-09 Nicolas Setton <setton@adacore.com>
5541
5542 * s-oscons-tmplt.c: Allow long lines in the generated spec.
5543 Add generation of Darwin-specific constants needed when binding to the
5544 pthread library.
5545
55462009-04-09 Robert Dewar <dewar@adacore.com>
5547
53b2323e
RH
5548 * checks.adb:
5549 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
5550 when no invalid values exist, Avoid duplicate read of atomic variable.
59f3dd0a 5551
53b2323e
RH
5552 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
5553 (Standard_Unsigned): Set Is_Known_Valid
59f3dd0a 5554
53b2323e 5555 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
59f3dd0a 5556 subtype declaration if no constraint.
53b2323e
RH
5557 (Set_Modular_Size): Set Is_Known_Valid if appropriate
5558 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
59f3dd0a 5559
f7d7bb51
AC
55602009-04-09 Robert Dewar <dewar@adacore.com>
5561
5562 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
5563 switch.ads: for numeric switches, an optional equal sign is always
5564 allowed.
5565
55662009-04-09 Vincent Celier <celier@adacore.com>
5567
5568 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
5569 the case of file names is not significant.
5570
c75c4293
AC
55712009-04-09 Vincent Celier <celier@adacore.com>
5572
5573 * errout.adb: Remove dependency on package Style
5574
5575 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
5576 moved to Stylesw.
5577
5578 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
5579 Styleg.
5580
5581 * errutil.adb, par.adb: Import Stylesw
5582
55832009-04-09 Arnaud Charlet <charlet@adacore.com>
5584
5585 * opt.ads: Fix typos.
5586
55872009-04-09 Robert Dewar <dewar@adacore.com>
5588
5589 * einfo.adb: Minor reformatting
5590
e7aea0fa
RD
55912009-04-09 Robert Dewar <dewar@adacore.com>
5592
5593 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
5594 units.
5595
5596 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
5597
1c383b4c
AC
55982009-04-09 Robert Dewar <dewar@adacore.com>
5599
5600 * g-comver.adb: Minor reformatting.
5601
56022009-04-09 Thomas Quinot <quinot@adacore.com>
5603
5604 * lib-load.ads (Load_Unit): Update documentation.
5605
56062009-04-09 Ed Schonberg <schonberg@adacore.com>
5607
5608 * lib-load.adb (Load_Unit): When loading the parent of a child unit
5609 named in a with_clause, retain the with_clause to preserve a
5610 limited_with indication.
5611
d7ba4df4
RD
56122009-04-09 Robert Dewar <dewar@adacore.com>
5613
5614 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
5615 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
5616 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
5617 possible to replace an OR of two separate tests.
5618
923e6ff3
RD
56192009-04-09 Robert Dewar <dewar@adacore.com>
5620
5621 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
5622 Maximum_Messages.
5623
5624 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
5625 warning status as well.
5626
5627 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
5628
5629 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
5630 Maximum_Messages.
5631
5632 * bindusg.adb, usage.adb: Update line for -gnatm switch
5633
5634 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
5635 -mnn binder switch.
5636
56372009-04-09 Robert Dewar <dewar@adacore.com>
5638
5639 * sem_ch10.adb: Minor reformatting.
5640
beb50807
AC
56412009-04-09 Bob Duff <duff@adacore.com>
5642
5643 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
5644 Set Sloc of generated nodes for calls to Undefer_Aborts and
5645 Save_Occurrence to No_Location, so the debugger ignores them and
5646 therefore does not jump back and forth when single stepping.
5647
56482009-04-09 Robert Dewar <dewar@adacore.com>
5649
5650 * switch-b.adb: Minor reformatting.
5651
a4100e55
RD
56522009-04-09 Robert Dewar <dewar@adacore.com>
5653
5654 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
5655 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
5656 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
5657 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
5658 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
5659 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
5660 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
5661 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
5662 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
5663 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
5664 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
5665
f17889b3
RD
56662009-04-09 Robert Dewar <dewar@adacore.com>
5667
5668 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
5669
5670 * atree.h: Add Elist26
5671
5672 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
5673 backends.
5674
b16d9747
JM
56752009-04-09 Javier Miranda <miranda@adacore.com>
5676
5677 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
5678 retrieve from the Dispatch_Table_Wrappers list the external name.
5679 Addition of documentation.
5680 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
5681 used to export secondary dispatch tables (in the previous version of
5682 the frontend only primary dispatch tables were exported). Addition of
5683 documentation.
5684 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
5685 dispatch table of a given tagged type.
5686 (Make_Tags): Modified to import secondary dispatch tables.
5687
5688 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
5689 (Constant_Redeclaration): Code cleanup.
5690
5691 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
5692 Dispatch_Table_Wrappers. Update documentation.
5693
5694 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
5695 Renamed to Dispatch_Table_Wrappers.
5696
5697 * sem_util.adb (Collect_Interface_Components): Improve handling of
5698 private types.
5699
5700 * atree.ads (Elist26, Set_Elist26): New subprograms
5701
5702 * atree.adb (Elist26, Set_Elist26): New subprograms
5703
59262ebb
AC
57042009-04-09 Javier Miranda <miranda@adacore.com>
5705
5706 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
5707 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
5708 tagged types.
5709
57102009-04-09 Robert Dewar <dewar@adacore.com>
5711
5712 * s-direio.adb: Minor reformatting
5713
5714 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
5715
fa969310
AC
57162009-04-09 Robert Dewar <dewar@adacore.com>
5717
5718 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
5719
57202009-04-09 Pascal Obry <obry@adacore.com>
5721
5722 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
5723 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
5724 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
5725 a-filico.ads: Add some missing overriding keywords.
5726
3c25856a
AC
57272009-04-09 Pascal Obry <obry@adacore.com>
5728
5729 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
5730 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
5731 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
5732 reformatting.
5733
57342009-04-09 Ed Schonberg <schonberg@adacore.com>
5735
5736 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
5737 missing overriding indicator if the new declaration is not seen as
5738 primitive.
5739
76c597a1
AC
57402009-04-09 Thomas Quinot <quinot@adacore.com>
5741
5742 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
5743 overflows in computation of bounds.
5744
57452009-04-09 Pascal Obry <obry@adacore.com>
5746
5747 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
5748 typos in comment.
5749
95b89f1b
AC
57502009-04-09 Robert Dewar <dewar@adacore.com>
5751
5752 * sem_attr.adb (Check_Stream_Attribute): Check violation of
5753 restriction No_Streams
5754
5755 * gnat_rm.texi: Clarify No_Streams restriction
5756
5757 * g-socket.adb: Minor reformatting.
5758
57592009-04-09 Thomas Quinot <quinot@adacore.com>
5760
5761 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
5762
57632009-04-09 Geert Bosch <bosch@adacore.com>
5764
5765 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
5766 (Set_Result): Likewise.
5767 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
5768 conversion, as required by RM 4.6(31).
5769
3d5952be
AC
57702009-04-08 Robert Dewar <dewar@adacore.com>
5771
5772 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
5773 suppressed.
5774
5775 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
5776 resolution steps.
5777
57782009-04-08 Robert Dewar <dewar@adacore.com>
5779
5780 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
5781 No_Local_Allocators restriction preventing local instantiation.
5782
57832009-04-08 Thomas Quinot <quinot@adacore.com>
5784
5785 * sem_eval.adb: Minor comment fix
5786
57872009-04-08 Thomas Quinot <quinot@adacore.com>
5788
5789 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
5790 New limited controlled type used to automate the initialization and
5791 finalization of the sockets implementation.
5792 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
5793
57942009-04-08 Vincent Celier <celier@adacore.com>
5795
5796 * prj-attr.adb: New read-only project-level attribute Project_Dir
5797
5798 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
5799 read-only attribute of the same name.
5800 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
5801 (Recursive_Process): Ditto
5802
5803 * snames.adb: Add new standard name Project_Dir
5804
5805 * snames.ads: Add new standard name Project_Dir
5806
b568955d
AC
58072009-04-08 Thomas Quinot <quinot@adacore.com>
5808
5809 * checks.adb: Minor reformatting
5810
58112009-04-08 Vincent Celier <celier@adacore.com>
5812
5813 * vms_data.ads: Add documentation for new style keyword
5814 OVERRIDING_INDICATORS
5815
58162009-04-08 Robert Dewar <dewar@adacore.com>
5817
5818 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
5819 spec is in the current unit.
5820
ed57136d
AC
58212009-04-08 Ed Schonberg <schonberg@adacore.com>
5822
5823 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
5824 presence of entity.
5825
5826 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
5827
58282009-04-08 Vincent Celier <celier@adacore.com>
5829
5830 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
5831
58322009-04-08 Thomas Quinot <quinot@adacore.com>
5833
5834 * checks.ads: Minor reformatting
5835
58362009-04-08 Robert Dewar <dewar@adacore.com>
5837
5838 * gnat_rm.texi: Update documentation of pragma Obsolescent
5839
5840 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
5841 be omitted, and allow Entity parameter to be omitted.
5842
ef7c5692
AC
58432009-04-08 Thomas Quinot <quinot@adacore.com>
5844
5845 * exp_util.adb: Minor comment fix
5846
58472009-04-08 Robert Dewar <dewar@adacore.com>
5848
5849 * g-socket.ads: Fix bad syntax in pragma Obsolescent
5850
5851 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
5852 argument with no identifier following one that has an identifier. Was
5853 missed in some cases.
5854
5855 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
5856 identifier.
5857 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
5858
5859 * snames.adb: Add Name_Policy
5860
5861 * snames.ads: Add Name_Policy
5862
0c7f5241
RD
58632009-04-08 Robert Dewar <dewar@adacore.com>
5864
5865 * gnat_rm.texi: Minor reformatting
5866
5867 * par-ch2.adb: Minor reformatting
5868
ae8c7d87
RD
58692009-04-08 Robert Dewar <dewar@adacore.com>
5870
5871 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
5872
ff69f95a
RD
58732009-04-08 Robert Dewar <dewar@adacore.com>
5874
5875 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
5876 properly in the presence of Remote_Types or Remote_Call_Interface.
5877
5878 * sem_util.adb: Add comment.
5879
2db15b1d
AC
58802009-04-08 Robert Dewar <dewar@adacore.com>
5881
5882 * ug_words: Add /ASSUME_VALID for -gnatB
5883
5884 * vms_data.ads: Add /ASSUME_VALID for -gnatB
5885
5886 * sem_cat.adb: Add clarifying commment
5887
5888 * a-direio.ads (Bytes): Make sure value is non-zero
5889
58902009-04-08 Ed Schonberg <schonberg@adacore.com>
5891
5892 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
5893 that does not come from source, check for a rewritten function call in
5894 prefixed notation before other forms of rewriting.
5895
58962009-04-08 Robert Dewar <dewar@adacore.com>
5897
5898 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
5899 these are now obsolescent units used only for bootrapping with an
5900 older compiler.
5901
94fd3dc6
AC
59022009-04-08 Robert Dewar <dewar@adacore.com>
5903
5904 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
5905
5906 * sem_ch3.adb: Minor comment updates
5907
59082009-04-08 Ed Schonberg <schonberg@adacore.com>
5909
5910 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
5911 that come from source.
5912
40a14772
TG
59132009-04-08 Tristan Gingold <gingold@adacore.com>
5914
cac9d8d6
EB
5915 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
5916 * gcc-interface/decl.c (prepend_attributes): New case
5917 Pragma_Thread_Local_Storage.
5918 * gcc-interface/utils.c (process_attributes): New case
5919 ATTR_THREAD_LOCAL_STORAGE.
5920
46ff89f3
AC
59212009-04-08 Ed Schonberg <schonberg@adacore.com>
5922
5923 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
5924 by the back-end if it contains a call to a subprogram without a
5925 previous spec that is declared in the same unit.
5926
5927 * errout.ads: Update comments on uses of dirs
5928
59292009-04-08 Robert Dewar <dewar@adacore.com>
5930
5931 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
5932
812f574f
AC
59332009-04-08 Tristan Gingold <gingold@adacore.com>
5934
5935 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
5936 variables.
5937 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
5938
59392009-04-08 Vincent Celier <celier@adacore.com>
5940
5941 * prj-nmsc.adb:
5942 (Add_Source): Add the mapping of the unit name to source file name in
5943 the Unit_Sources_HT hash table, if the unit name is not null.
5944
5945 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
5946
5947 * prj.ads (Unit_Sources_Htable): New hash table instantiation
5948 (Project_Tree_Data): New component Unit_Sources_HT
5949
4c8a5bb8
AC
59502009-04-08 Thomas Quinot <quinot@adacore.com>
5951
5952 * sem_ch8.adb: Minor reformatting.
5953 Minor code reorganization.
5954
59552009-04-08 Robert Dewar <dewar@adacore.com>
5956
5957 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
5958 snames.ads, freeze.adb, par-prag.adb: Add implementation of
5959 pragma Thread_Local_Storage, setting new flag
5960 Has_Pragma_Thread_Local_Storage in corresponding entities.
5961
ecc4ddde
AC
59622009-04-08 Emmanuel Briot <briot@adacore.com>
5963
5964 * prj.ads: Update comment on switches file
5965
5966 * prj-nmsc.adb: Code clean up. Use renaming clauses.
5967
59682009-04-08 Robert Dewar <dewar@adacore.com>
5969
5970 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
5971
59722009-04-08 Thomas Quinot <quinot@adacore.com>
5973
5974 * ali-util.adb: Minor comment fix
5975
59762009-04-08 Ed Schonberg <schonberg@adacore.com>
5977
5978 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
5979 appears in a context clause, and the enclosing package is mentioned in
5980 a limited_with_clause.
5981 (Use_One_Type): Reject clause if type is still incomplete.
5982
a29262fd
AC
59832009-04-08 Emmanuel Briot <briot@adacore.com>
5984
5985 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
5986 avoid copies of Source_Data variables when possible, since these
5987 involve calls to memcpy() which are done too many times.
5988
59892009-04-08 Robert Dewar <dewar@adacore.com>
5990
5991 * exp_ch4.adb (Expand_Concatenate): Clean up code
5992
a2dc5812
AC
59932009-04-07 Thomas Quinot <quinot@adacore.com>
5994
5995 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
5996 type for the case of concatenating a constrained array indexed by an
5997 enumeration type.
5998
59992009-04-07 Ed Schonberg <schonberg@adacore.com>
6000
6001 * sem_ch6.adb (Check_Conformance): when checking conformance of an
6002 operation that overrides an abstract operation inherited from an
6003 interface, return False if only one of the controlling formals is an
6004 access parameter.
6005
60062009-04-07 Ed Schonberg <schonberg@adacore.com>
6007
6008 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
6009 mandated by AI05-105.
6010
60112009-04-07 Vincent Celier <celier@adacore.com>
6012
6013 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
6014
60152009-04-07 Thomas Quinot <quinot@adacore.com>
6016
6017 * usage.adb: Minor fix in usage message.
6018
6019 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
6020 match declaration; the correct subtype is Node_Id, not Entity_Id,
6021 because the expected node kind is an identifier, not a defining
6022 identifier.
6023
6024 * switch-c.adb: Minor reformatting.
6025
6026 * uintp.adb: Minor reformatting.
6027
60282009-04-07 Robert Dewar <dewar@adacore.com>
6029
6030 * exp_ch13.adb: Minor reformatting
6031
0ac73189
AC
60322009-04-07 Robert Dewar <dewar@adacore.com>
6033
6034 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
6035 against missing parent.
6036
60372009-04-07 Thomas Quinot <quinot@adacore.com>
6038
6039 * xoscons.adb: Minor reformatting
6040
60412009-04-07 Robert Dewar <dewar@adacore.com>
6042
6043 * rtsfind.ads: Remove obsolete string concatenation entries
6044
60452009-04-07 Robert Dewar <dewar@adacore.com>
6046
6047 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
6048
60492009-04-07 Ed Schonberg <schonberg@adacore.com>
6050
6051 * sem_ch10.adb (Check_Body_Required): Handle properly imported
6052 subprograms.
6053
60542009-04-07 Gary Dismukes <dismukes@adacore.com>
6055
6056 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
6057 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
6058 is of a scalar or string type then suppress the setting of the
6059 expression to Empty.
6060
6061 * freeze.adb (Warn_Overlay): Also emit the warnings about default
6062 initialization for the cases of scalar and string objects when
6063 Init_Or_Norm_Scalars is True.
6064
1732c156
AC
60652009-04-07 Bob Duff <duff@adacore.com>
6066
6067 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
6068
60692009-04-07 Bob Duff <duff@adacore.com>
6070
6071 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
6072 Form parameter of Text_Translation=No allows binary mode for Text_IO
6073 files.
6074
6075 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
6076
60772009-04-07 Javier Miranda <miranda@adacore.com>
6078
6079 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
6080 processing the bounds for bit packed arrays or VM target machines.
6081
f16d05d9
AC
60822009-04-07 Thomas Quinot <quinot@adacore.com>
6083
6084 * g-sothco.ads (Int_Access): Remove extraneous access type (use
6085 anonymous access instead).
6086 (Get_Socket_From_Set): Fix incorrectly reverted formals
6087 Last and Socket to match the underlying C routine.
6088
ad1536a1 6089 * g-socket.adb, g-socket.ads
f16d05d9
AC
6090 (Get): Use named parameter associations instead of positional ones in
6091 call go Get_Socket_From_Set, since this routine has two formals of the
6092 same type.
ad1536a1 6093 (Image): New procedure.
f16d05d9
AC
6094
6095 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6096 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
6097 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
6098 for type of Arg formal.
6099
6100 * sem_warn.adb: Minor reformatting
6101
61022009-04-07 Ed Schonberg <schonberg@adacore.com>
6103
6104 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
6105 over record components.
6106
61072009-04-07 Nicolas Roche <roche@adacore.com>
6108
6109 * gsocket.h:
6110 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
6111 has disappeared between VxWorks 6.4 and VxWorks 6.5
6112 In RTP mode use time.h instead of times.h
6113
61142009-04-07 Robert Dewar <dewar@adacore.com>
6115
6116 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
6117
61182009-04-07 Kevin Pouget <pouget@adacore.com>
6119
6120 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
6121 expanded code for constrained types.
6122
61232009-04-07 Ed Schonberg <schonberg@adacore.com>
6124
6125 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
6126 AI05-105: in an object renaming declaration, anonymousness is a name
6127 resolution rule.
6128
6129 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
6130
61312009-04-07 Arnaud Charlet <charlet@adacore.com>
6132
6133 * g-comlin.adb (Expansion): Fix old regression: also return directory
6134 names when matching.
6135
2fc05e3d
AC
61362009-04-07 Robert Dewar <dewar@adacore.com>
6137
6138 * exp_ch4.adb:
6139 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
6140 (Expand_Concatenate): New name for Expand_Concatenate_String which has
6141 been rewritten to handle all types.
6142 (Expand_Concatenate_Other): Remove
6143
61442009-04-07 Ed Schonberg <schonberg@adacore.com>
6145
6146 * lib-xref.adb (Generate_Reference): A default subprogram in an
6147 instance appears within the tree for the instance, but generates an
6148 implicit reference in the ALI.
6149
fdac1f80
AC
61502009-04-07 Javier Miranda <miranda@adacore.com>
6151
6152 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
6153 derived type that has discriminants, propagate the list of interfaces
6154 to the corresponding new base type. In addition, propagate also
6155 attribute Limited_Present (found working in this patch).
6156
61572009-04-07 Robert Dewar <dewar@adacore.com>
6158
6159 * exp_ch4.adb: Rewrite concatenation expansion.
6160
8dbd1460
AC
61612009-04-07 Ed Schonberg <schonberg@adacore.com>
6162
6163 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
6164 relevant to packages.
6165
61662009-04-07 Robert Dewar <dewar@adacore.com>
6167
6168 * sem_attr.adb: Minor reformatting
6169
6170 * sem_ch6.adb: Minor reformatting
6171
2ddc2000
AC
61722009-04-07 Tristan Gingold <gingold@adacore.com>
6173
6174 * socket.c: Add more protections against S_resolvLib_ macros.
6175
61762009-04-07 Thomas Quinot <quinot@adacore.com>
6177
6178 * sem_attr.adb: Minor reformatting
6179
61802009-04-07 Ed Schonberg <schonberg@adacore.com>
6181
6182 * sem_ch6.adb (New_Overloaded_Entity): New predicate
6183 Is_Overriding_Alias to handle properly types that inherit two homonym
6184 operations that have distinct dispatch table entries.
6185
06a16f58
AC
61862009-04-07 Emmanuel Briot <briot@adacore.com>
6187
6188 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
6189 looking for the end of a parenthesis group
6190
61912009-04-07 Tristan Gingold <gingold@adacore.com>
6192
6193 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
6194
6195 * socket.c Don't use resolvLib_ macros if not defined.
6196
df46b832
AC
61972009-04-07 Robert Dewar <dewar@adacore.com>
6198
6199 * g-socket.adb: Minor reformatting.
6200
6201 * g-socthi-mingw.adb: Minor reformatting
6202
6203 * g-sothco.ads: Minor reformatting
6204
6205 * exp_ch4.adb:
6206 (Expand_Concatenate_String): Complete rewrite to generate efficient code
6207 inline instead of relying on external library routines.
6208
6209 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
6210 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
6211 obsolescent
6212
62132009-04-07 Ed Schonberg <schonberg@adacore.com>
6214
6215 * sem_attr.adb:
6216 (Eval_Attribute): for attributes of array objects that are not strings,
6217 attributes are not static if nominal subtype of object is unconstrained.
6218
62192009-04-07 Ed Schonberg <schonberg@adacore.com>
6220
6221 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
6222 operations for a type T in an instance do not override each other,
6223 when T is derived from a formal private type, the corresponding
6224 operations inherited by a type derived from T outside
6225 of the instance do not override each other either.
6226
3dd9959c
AC
62272009-04-07 Robert Dewar <dewar@adacore.com>
6228
6229 (Osint.Fail): Change calling sequence to have one string arg
6230 (Make.Make_Failed): Same change
6231 All callers are adjusted to use concatenation
6232
62332009-04-07 Robert Dewar <dewar@adacore.com>
6234
6235 * exp_ch4.adb: Fix documentation typo
6236
62372009-04-07 Robert Dewar <dewar@adacore.com>
6238
6239 * tbuild.ads: Minor reformatting
6240
62412009-04-07 Javier Miranda <miranda@adacore.com>
6242
6243 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
6244 when compiling under ZFP runtime.
6245
62462009-04-07 Robert Dewar <dewar@adacore.com>
6247
6248 * g-comlin.adb: Minor reformatting
6249
62502009-04-07 Thomas Quinot <quinot@adacore.com>
6251
6252 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6253 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6254 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
6255 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
6256
dcd8728b
RD
62572009-04-07 Robert Dewar <dewar@adacore.com>
6258
6259 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
6260
6261 * opt.ads (Sprint_Line_Limit): New parameter
6262
6263 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
6264
6265 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
6266
6267 * usage.adb: Output information for -gnatGnn -gnatDnn
6268
62692009-04-07 Robert Dewar <dewar@adacore.com>
6270
6271 * make.adb: Minor reformatting
6272
62732009-04-07 Robert Dewar <dewar@adacore.com>
6274
6275 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
6276
62772009-04-07 Robert Dewar <dewar@adacore.com>
6278
6279 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
6280
c27f2f15
RD
62812009-04-07 Robert Dewar <dewar@adacore.com>
6282
6283 * checks.adb:
6284 Remove Assume_Valid parameter from In_Subrange_Of calls
6285
6286 * sem_eval.adb:
6287 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
6288 (Is_In_Range): Remove incorrect use of Assume_Valid
6289 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
6290
6291 * sem_eval.ads:
6292 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
6293 (Is_In_Range): Documentation cleanup
6294 (Is_Out_Of_Range): Documentation cleanup
6295
6296 * gnat_rm.texi:
6297 Add documentation for Assume_No_Invalid_Values pragma
6298
6299 * sem_ch12.adb: Minor reformatting
6300
6301 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
6302
6303 * sem_prag.adb: Improve error message.
6304
6305 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
6306 LF/CR no longer recognized as line terminator
6307
6308 * switch.ads: Minor documentation improvement
6309
6310 * vms_data.ads: Minor reformatting
6311
c800f862
RD
63122009-04-07 Robert Dewar <dewar@adacore.com>
6313
6314 * checks.adb (Determine_Range): Add Assume_Valid parameter
6315
6316 * checks.ads (Determine_Range): Add Assume_Valid parameter
6317
6318 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
6319 Is_Null_Loop to suppress warnings in a loop body.
6320
6321 * exp_ch4.adb:
6322 (Rewrite_Comparison): Major rewrite to accomodate invalid values
6323
6324 * exp_ch5.adb:
6325 (Expand_N_Loop_Statement): Delete loop known not to execute
6326
6327 * opt.ads:
6328 (Assume_No_Invalid_Values): Now set to False, and as documented, this
6329 fully enables the proper handling of invalid values.
6330
6331 * sem_attr.adb:
6332 New calling sequence for Is_In_Range
6333
6334 * sem_ch5.adb:
6335 (Analyze_Iteration_Scheme): Accomodate possible invalid values
6336 in determining if a loop range is null.
6337
6338 * sem_eval.adb:
6339 (Is_In_Range): Add Assume_Valid parameter
6340 (Is_Out_Of_Range): Add Assume_Valid_Parameter
6341 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
6342 also to do more accurate and complete range analysis, catching more
6343 cases.
6344
6345 * sem_eval.ads:
6346 (Is_In_Range): Add Assume_Valid parameter
6347 (Is_Out_Of_Range): Add Assume_Valid_Parameter
6348
6349 * sem_util.adb:
6350 New calling sequence for Is_In_Range
6351
6352 * sinfo.adb:
6353 (Suppress_Loop_Warnings): New flag
6354
6355 * sinfo.ads:
6356 (Is_Null_Loop): Update documentation
6357 (Suppress_Loop_Warnings): New flag
6358
6359 * gnat_ugn.texi: Document -gnatB switch
6360
9d00840d
AC
63612009-04-07 Arnaud Charlet <charlet@adacore.com>
6362
6363 * gnatvsn.ads: Bump version number.
6364
5f143024
AC
63652009-04-07 Thomas Quinot <quinot@adacore.com>
6366
6367 * exp_ch3.adb: Minor rewording (comments)
6368
63692009-04-07 Robert Dewar <dewar@adacore.com>
6370
6371 * exp_disp.adb: Minor reformatting
6372
d5859bf4
EB
63732009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6374
6375 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
6376 underlying type.
6377 * gcc-interface/trans.c (lvalue_required_p): Likewise.
6378
c86f07f6
EB
63792009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6380
6381 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
6382 Do not convert the result. Remove obsolete comment.
6383
2d5be6c1
EB
63842009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6385
6386 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
6387 DECL_CONTEXT.
6388 (Subprogram_Body_to_gnu): Fix pasto.
6389
10069d53
EB
63902009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6391
6392 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
6393 (void_type_decl_node): Remove.
6394 (init_gigi_decls): Likewise.
6395 (gnat_install_builtins): Declare.
6396 (record_builtin_type): Likewise.
6397 (create_type_stub_decl): Likewise.
6398 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
6399 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
6400 artificial.
6401 <E_Array_Subtype>: Use the index types, not only their name, in the
6402 record giving the names of the bounds, if any.
6403 For a packed array type, make it artificial only if the base type
6404 was artificial as well. Remove redundant statement.
6405 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
6406 dummy types.
6407 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
6408 (rest_of_type_decl_compilation_no_defer): Likewise.
6409 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
6410 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
6411 and use create_type_stub_decl to build it.
6412 (gnat_pushdecl): Rewrite condition.
6413 (gnat_install_builtins): Remove bogus declaration.
6414 (record_builtin_type): New function.
6415 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
6416 of types.
6417 (create_type_stub_decl): New function.
6418 (create_type_decl): Assert that the type is not dummy. If the type
6419 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
6420 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
6421 (build_vms_descriptor): Likewise.
6422 (init_gigi_decls): Delete and move bulk of code to...
6423 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
6424 (emit_range_check): Add gnat_node parameter.
6425 (emit_index_check): Likewise.
6426 (emit_check): Likewise.
6427 (build_unary_op_trapv): Likewise.
6428 (build_binary_op_trapv): Likewise.
6429 (convert_with_check): Likewise.
6430 (Attribute_to_gnu): Adjust calls for above changes.
6431 (call_to_gnu): Likewise.
6432 (gnat_to_gnu): Likewise.
6433 (assoc_to_constructor): Likewise.
6434 (pos_to_constructor): Likewise.
6435 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
6436 (process_type): Do not create TYPE_DECL for dummy types.
6437
229077b0
EB
64382009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6439
1e17ef87
EB
6440 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
6441 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
6442 * gcc-interface/utils.c: Fix comments.
6443
64442009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6445
6446 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
6447 move around.
229077b0
EB
6448 (gnat_to_gnu_type): Move around.
6449 (get_unpadded_type): Likewise.
1e17ef87
EB
6450 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
6451 Tidy comments.
229077b0 6452
aa1aa786
EB
64532009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6454
6455 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
6456 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
6457 (call_to_gnu): Invoke it instead of manually checking.
6458
63787194
EB
64592009-04-04 Eric Botcazou <ebotcazou@adacore.com>
6460
6461 * gcc-interface/utils.c (finish_record_type): Force structural equality
6462 checks if the record type is discriminated.
6463
d236ace7
EB
64642009-03-31 Eric Botcazou <ebotcazou@adacore.com>
6465
6466 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
6467 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
6468 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
6469 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
6470 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
6471 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
6472 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
6473
bd9f68e0
PB
64742009-03-30 Paolo Bonzini <bonzini@gnu.org>
6475
d7be99f1
EB
6476 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
6477 of TREE_CONSTANT_OVERFLOW.
bd9f68e0 6478
8ce94e44
JM
64792009-03-30 Joseph Myers <joseph@codesourcery.com>
6480
6481 PR rtl-optimization/323
6482 * gcc-interface/misc.c (gnat_post_options): Set
6483 flag_excess_precision_cmdline. Give an error for
6484 -fexcess-precision=standard for processors where the option is
6485 significant.
6486
d9223014
L
64872009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6488
6489 PR c/39323
6490 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
6491 on bit_align.
6492
76761bbd
OH
64932009-03-11 Olivier Hainque <hainque@adacore.com>
6494
6495 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
6496 checks processing, remove unintended TREE_TYPE walk on index type.
6497
39ae51e0
EB
64982009-03-01 Eric Botcazou <ebotcazou@adacore.com>
6499
6500 PR ada/39264
6501 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
6502 call make_packable_type on fat pointer types.
6503 <E_Array_Subtype>: Likewise.
6504 <E_Record_Subtype>: Call make_packable_type on all record types
6505 except for fat pointer types.
6506 (make_packable_type): Likewise.
6507 (gnat_to_gnu_field): Likewise.
6508
7d01864f
EB
65092009-02-28 Eric Botcazou <ebotcazou@adacore.com>
6510
6511 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
67901d32 6512 EH_MECHANISM change made on 2007-12-06.
7d01864f 6513
a760c977
AS
65142009-02-26 Andreas Schwab <schwab@suse.de>
6515
4c354194 6516 PR ada/39172
a760c977 6517 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
a760c977
AS
6518 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
6519 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
6520 (AWK): Substitute.
6521 (target_cpu_default): Substitute.
6522
054efbba
LG
65232009-02-25 Laurent GUERBY <laurent@guerby.net>
6524
975a4fd6 6525 PR ada/39221
a760c977
AS
6526 * a-teioed.adb (Expand): Fix Result overflow.
6527
c608b4d2 65282009-02-25 Laurent GUERBY <laurent@guerby.net>
2692d7f5 6529
a760c977
AS
6530 * gcc-interface/Makefile.in: Fix multilib handling for
6531 sparc64-linux.
6532
ea675ec3
RO
65332009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6534
6535 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
6536
e98c0739
L
65372009-02-18 H.J. Lu <hongjiu.lu@intel.com>
6538
6539 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
6540
70f5fc7c
EB
65412009-02-16 Eric Botcazou <ebotcazou@adacore.com>
6542
6543 * gcc-interface/deftarg.c: Remove.
6544
794511d2 65452009-02-10 Olivier Hainque <hainque@adacore.com>
e98c0739 6546 Eric Botcazou <ebotcazou@adacore.com>
794511d2
EB
6547
6548 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
6549 (copy_alias_set): Rename into...
6550 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
6551 underlying array of unconstrained arrays for the new type as well.
6552 If the old and new alias sets don't conflict, make one a subset of
6553 the other as per the OP parameter.
6554 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
6555 <E_Record_Type>: Do not copy the alias set for derived types.
6556 For all types, make the alias set of derived types a superset of
6557 that of their parent type.
6558 (make_aligning_type): Adjust calls to copy_alias_set.
6559 (make_packable_type): Likewise.
6560 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
6561 Check for alias set conflict instead of strict equality to issue the
6562 warning.
6563
c3734896
EB
65642009-02-09 Eric Botcazou <ebotcazou@adacore.com>
6565
6566 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
6567 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
6568 (copy_alias_set): Assert that arrays have the same aliasing settings.
6569 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
6570
9a58d4d2
EB
65712009-02-08 Eric Botcazou <ebotcazou@adacore.com>
6572
6573 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
6574 Set TYPE_NONALIASED_COMPONENT on the array type.
6575
d0ec4c99
LG
65762009-01-31 Laurent GUERBY <laurent@guerby.net>
6577
6578 * gcc-interface/Makefile.in: Fix mipsel linux handling.
a760c977 6579
4dcb8fd1
JJ
65802009-01-16 Jakub Jelinek <jakub@redhat.com>
6581
6582 * gcc-interface/Makefile.in: Fix multilib handling for
6583 powerpc64-linux.
6584
3b9c1abd
EB
65852009-01-12 Eric Botcazou <ebotcazou@adacore.com>
6586
6587 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
6588 only useless conversions around renamed objects.
6589
13318d2f
EB
65902009-01-11 Eric Botcazou <ebotcazou@adacore.com>
6591
6592 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
6593 the _Tag field before any discriminants in the field list.
6594 (components_to_record): Remove obsolete comment.
6595
ad41bd84
JM
6596
6597\f
8ff1dd83 6598Copyright (C) 2009 Free Software Foundation, Inc.
ad41bd84
JM
6599
6600Copying and distribution of this file, with or without modification,
6601are permitted in any medium without royalty provided the copyright
6602notice and this notice are preserved.