1 2009-07-07 Robert Dewar <dewar@adacore.com>
3 * scng.adb: Minor reformattting
5 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
6 association allows conditional expression without parens.
8 * par-ch4.adb (P_Name): Attribute arguments can be conditional
9 expressions without enclosing parentheses, and also as parameters,
10 indexing expressions etc.
11 (P_Conditional_Expression): New procedure
12 (P_Expression_If_OK): New procedure
14 * par.adb (P_Conditional_Expression): New procedure
15 (P_Expression_If_OK): New procedure
17 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
18 form of conditional expression.
20 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
21 missing True argument if ELSE argument missing.
23 * sinfo.adb (Is_Elsif): New flag
25 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
26 part of the language, and the documentation is modified accordingly.
29 2009-07-06 Olivier Hainque <hainque@adacore.com>
31 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
32 setjmp_longjmp): Attach the exception propagation reraise fallback
33 to the sequence end label location when we have it.
35 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
38 * init.c (APPLE): Include <mach/mach_init.h>.
39 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
41 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
43 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
44 (SET_DECL_LANG_SPECIFIC): Likewise.
45 (TYPE_RM_VALUE): New macro.
46 (SET_TYPE_RM_VALUE): Likewise.
47 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
48 (TYPE_RM_MIN_VALUE): Likewise.
49 (TYPE_RM_MAX_VALUE): Likewise.
50 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
51 (SET_TYPE_RM_MIN_VALUE): Likewise.
52 (SET_TYPE_RM_MAX_VALUE): Likewise.
53 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
55 2009-07-04 Laurent GUERBY <laurent@guerby.net>
58 * tracebak.c (__gnat_backtrace): Fix old-style definition.
60 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
62 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
64 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
67 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
70 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
72 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
74 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
76 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
77 the type of the left operand if it pads a self-referential type when
78 the right operand is a constructor.
80 * gcc-interface/lang-specs.h: Fix copyright date.
82 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
84 * gcc-interface/decl.c: Include tree-inline.h.
85 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
86 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
87 * gcc-interface/utils2.c: Include tree-inline.
88 (known_alignment) <CALL_EXPR>: Likewise.
90 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
92 * raise-gcc.c: Include dwarf2.h conditionally.
94 2009-06-29 Tom Tromey <tromey@redhat.com>
96 * raise-gcc.c: Include elf/dwarf2.h.
98 2009-06-27 Laurent GUERBY <laurent@guerby.net>
100 * tb-gcc.c (trace_callback): Add casts to silence warning.
102 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
104 * tb-gcc.c: Fix copyright notice.
106 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
108 * init.c (__gnat_set_globals): Add prototype.
109 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
110 (__gnat_sals_init_using_constructors): Likewise.
111 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
112 (get_block_jmpbuf_decl): Likewise.
113 (gnat_poplevel): Likewise.
114 (merge_sizes): Rename local variable.
115 (copy_type): Likewise.
116 (build_vms_descriptor32): Likewise.
117 (build_vms_descriptor): Likewise.
118 (convert_vms_descriptor64): Likewise.
119 (convert_vms_descriptor32): Likewise.
120 (convert_to_fat_pointer): Likewise.
121 (maybe_unconstrained_array): Likewise.
122 (def_fn_type): Use promoted type with va_arg.
123 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
124 (substitute_in_type): Rename local variable.
125 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
127 2009-06-26 Laurent GUERBY <laurent@guerby.net>
129 * tb-gcc.c (trace_callback): Use char* instead of void*.
130 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
131 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
132 (Attribute_to_gnu): Adjust for above change.
133 (Subprogram_Body_to_gnu): Likewise.
134 * gcc-interface/utils.c (merge_sizes): Rename local variable.
135 (copy_type): Likewise.
136 (build_vms_descriptor32): Likewise.
137 (build_vms_descriptor): Likewise.
138 (convert_vms_descriptor64): Likewise.
139 (convert_vms_descriptor32): Likewise.
140 (convert_to_fat_pointer): Likewise.
141 (maybe_unconstrained_array): Likewise.
142 * gcc-interface/decl.c (substitute_in_type): Likewise.
144 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
146 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
147 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
148 of the upper bound of the index types.
150 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
152 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
153 out common predicate. Use the maximum to compute the upper bound of
154 the index type only when it is not wider than sizetype. Perform the
155 comparison in the index type for the generic expression. Use real
156 precision to decide whether to generate special types for debugging
159 2009-06-26 Matthew Gingell <gingell@adacore.com>
161 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
163 2009-06-26 Vincent Celier <celier@adacore.com>
165 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
168 2009-06-26 Robert Dewar <dewar@adacore.com>
170 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
172 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
174 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
175 correct arguments to create_field_decl. Remove redundant iteration.
176 Rewrite computation of the maximum size.
177 <E_Array_Subtype>: Reorder and simplify handling of special cases.
178 Rewrite computation of the maximum size. Use consistent naming.
179 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
180 comparison order for consistency. Use generic integer node to
181 build the operator and fold the result.
183 2009-06-25 Vincent Celier <celier@adacore.com>
185 * vms_data.ads: Minor comment change
187 2009-06-25 Gary Dismukes <dismukes@adacore.com>
189 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
190 assignment statement to targeting a caller-provided object when the
191 result type is an interface type.
193 * exp_ch6.adb (Expand_Call): Remove redundant test of
194 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
195 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
197 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
198 to OK_For_Limited_Init.
200 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
201 condition so that True is returned for all limited interfaces, not
202 just synchronized ones. Ignore components of an interface type when
203 checking for limited components (such a component can be a parent
206 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
207 (OK_For_Limited_Init): Add type parameter.
209 * sem_ch3.adb (Check_Initialization): Add type in call to
211 (OK_For_Limited_Init): Add new type param in call to
212 OK_For_Limited_Init_In_05.
213 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
214 nonlimited type when the context type is a limited interface. Add type
217 * sem_ch4.adb (Analyze_Allocator): Add type in call to
220 * sem_ch6.adb (Check_Limited_Return): Add type in call to
223 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
225 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
227 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
228 class-wide interface, get the base type before applying Etype, in order
229 to account for class-wide subtypes.
231 2009-06-25 Emmanuel Briot <briot@adacore.com>
233 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
234 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
235 between gnatmake and gprbuild.
236 (Naming_Data): Removed, no longer used
237 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
238 needed locally in one subprogram, no need to store forever in the
240 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
242 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
243 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
244 Spec_Suffix_Id_Of): removed, no longer used.
246 2009-06-25 Javier Miranda <miranda@adacore.com>
248 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
249 types on qualified expression in calls to imported C++ constructors.
251 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
252 imported C++ constructors.
254 2009-06-25 Sergey Rybin <rybin@adacore.com>
256 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
258 2009-06-25 Vincent Celier <celier@adacore.com>
260 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
261 provided, on Windows change all '/' to '\'.
263 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
264 used. Minor comment changes
266 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
267 Remove_Forbidden_File_Name.
269 2009-06-25 Quentin Ochem <ochem@adacore.com>
271 * prj.ads (Unit_Index): Now general access type.
273 2009-06-25 Pascal Obry <obry@adacore.com>
275 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
277 2009-06-25 Emmanuel Briot <briot@adacore.com>
279 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
280 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
281 computed efficiently from the other fields.
282 (Object_To_Global_Archive): New subprogram
283 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
284 (Override_Kind): Fix handling of separates in Ada.
285 (Create_Mapping_File): Remove duplicate code
286 (Naming_Data.Implementation_Exception, Specification_Exception):
287 field removed, since never used.
288 (Naming_Data.Specs, .Bodies): field removed, since this is only
289 used while processing the project and is not needed once the tree
290 is in memory. This brings Naming_Data and Lang_Naming_Data
291 closer (same content now, but different use still).
293 2009-06-25 Pascal Obry <obry@adacore.com>
295 * sem_ch4.adb: Minor reformatting.
297 * a-strsea.adb: Fix confusion between 'Length and 'Last.
299 2009-06-25 Ed Schonberg <schonberg@adacore.com>
301 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
302 Unchecked_Access): If the context is an interface type, and the prefix
303 is of the corresponding class-wide type, do not insert a conversion
304 because the pointer displacement has already taken place, and we must
305 retain the class-wide type in a dispatching context.
307 2009-06-25 Emmanuel Briot <briot@adacore.com>
309 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
310 the previous source file.
311 (Create_Mapping): Iterate on sources rather than on units.
313 2009-06-25 Emmanuel Briot <briot@adacore.com>
315 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
316 prj-env.adb, prj-env.ads (Slash): removed, no longer used
317 (Source_Data): no longer use Path.Name to point to a locally removed
318 file. Instead we use the field Locally_Removed which is clearer
320 2009-06-25 Arnaud Charlet <charlet@adacore.com>
322 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
324 * sem_maps.adb, sem_maps.ads: Removed, not used.
326 2009-06-25 Ed Falis <falis@adacore.com>
328 * s-vxwext-rtp.ads: Add missing declaration
330 2009-06-25 Matthew Gingell <gingell@adacore.com>
332 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
333 speed up unmapped case.
335 2009-06-25 Vincent Celier <celier@adacore.com>
337 * prj-nmsc.adb (Check): Change error message for illegal abstract
340 2009-06-25 Robert Dewar <dewar@adacore.com>
342 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
344 2009-06-25 Emmanuel Briot <briot@adacore.com>
346 * fmap.ads: Add documentation on mapping files
348 2009-06-25 Robert Dewar <dewar@adacore.com>
350 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
353 2009-06-24 Robert Dewar <dewar@adacore.com>
355 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
357 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
361 2009-06-24 Ed Schonberg <schonberg@adacore.com>
363 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
364 present when checking whether a call may be interpreted as an indexing
365 of the result of a call.
367 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
368 body for a null procedure on the freeze actions for the procedure, so
369 that it will be analyzed at the proper place without premature freezing
372 * sem_ch3.adb (Check_Completion): Code cleanup.
373 Do not diagnose a null procedure without a body, if previous errors
374 have disabled expansion.
376 2009-06-24 Doug Rupp <rupp@adacore.com>
378 * init.c [VMS] Resignal C$_SIGKILL
380 2009-06-24 Ed Falis <falis@adacore.com>
382 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
383 Define ERROR in body for VxWorks 6 kernel
385 2009-06-24 Pascal Obry <obry@adacore.com>
387 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
388 in [Send/Receive]_Socket.
390 2009-06-24 Emmanuel Briot <briot@adacore.com>
392 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
393 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
394 to several subprograms.
395 (Source_Data.Other_Part): Removed, since can be computed from the
397 (Other_Part): New subprogram.
399 2009-06-24 Emmanuel Briot <briot@adacore.com>
401 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
402 the full base name of the file when the suffix doesn't start with a '.'.
404 2009-06-24 Vincent Celier <celier@adacore.com>
406 * prj-nmsc.adb (Check): A project declared abstract is legal if no
407 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
410 2009-06-24 Robert Dewar <dewar@adacore.com>
412 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
413 prj-env.adb: Minor reformatting
415 2009-06-24 Ed Falis <falis@adacore.com>
417 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
418 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
419 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
420 support for VxWorks SMP.
422 * gcc-interface/Make-lang.in: Update dependencies
424 2009-06-24 Emmanuel Briot <briot@adacore.com>
426 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
427 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
429 (Source_Data.Lang_Kind): Removed, since it duplicates information
430 already available through Language.Config.
431 (Source_Data.Compile): Removed, since information is already available
432 through the language.
433 (Is_Compilable): New subprogram.
434 (Source_Data.Dependency): Removed, since already available through
436 (Source_Data.Object_Exist, Object_Linked): Removed since available
437 through the language already.
438 (Unit_Data.File_Names): Is now also set in multi_language mode, to
439 bring the two modes closer in the resulting data structures.
440 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
441 just the name that would point into a hash table.
442 (Get_Language_From_Name): New subprogram.
444 2009-06-24 Javier Miranda <miranda@adacore.com>
446 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
447 visible through limited-with context clauses. In addition, avoid an
448 extra tag check that is not required when the class-wide
449 designated types of the operand and target types are
451 (Tagged_Membership): Handle entities from the limited view.
453 2009-06-24 Emmanuel Briot <briot@adacore.com>
455 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
456 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
457 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
458 different vocabularies for similar concepts (Impl/Body_Part and
460 (Unit_Data): now points directly to a Source_Id, rather than duplicating
461 some of the information in File_Name_Data. This also saves a bit of
462 memory. However, since we are now using a pointer we need to test
463 for null explicitly in several places of the code
465 2009-06-24 Javier Miranda <miranda@adacore.com>
467 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
468 from processing the type conversion when the node is
469 replaced by an N_Raise_Program_Error node.
471 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
473 * sem_ch6.adb (Designates_From_With_Type): New routine.
474 (Process_Formals): Since anonymous access types are no longer flagged
475 as from with types, traverse the designated type to determine whether
476 it is coming from a limited view.
478 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
479 (Full_Designated_Type): Use Available_View to extract the non-limited /
482 2009-06-24 Robert Dewar <dewar@adacore.com>
484 * exp_ch6.adb: Minor reformatting
486 * layout.adb: Minor reformatting
488 * make.adb: Minor reformatting
490 2009-06-24 Thomas Quinot <quinot@adacore.com>
492 * sem_ch10.adb: Minor code reorganization.
494 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
496 * ttypes.ads: Minor editing.
498 2009-06-24 Robert Dewar <dewar@adacore.com>
500 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
501 in deciding to do call-by-copy code.
503 2009-06-24 Vincent Celier <celier@adacore.com>
505 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
506 check if an externally built library file is more current than the
509 2009-06-23 Olivier Hainque <hainque@adacore.com>
511 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
512 c-common.c and populate in gnat_internal_attribute_table.
514 2009-06-23 Ed Schonberg <schonberg@adacore.com>
516 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
517 Available_View only when designated type of an anonymous access type
520 2009-06-23 Robert Dewar <dewar@adacore.com>
522 * sem_ch10.adb: Minor reformatting
524 * ali.ads: Mino reformatting.
526 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
527 turning off inlining if ASIS mode active).
529 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
530 This belongs in gnat1drv.adb after switches are scanned.
532 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
534 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
535 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
536 when dealing with class-wide types. Detect a legal shadow entity and
537 retrieve its non-limited view.
539 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
540 subprogram to top package level from Intall_Limited_Withed_Unit.
541 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
542 Add check which prevents the installation of a limited view if the
543 non-limited view is already visible through a with clause.
544 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
545 legal shadow entity which may occur in subprogram formals of anonymous
548 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
550 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
551 From_With_Type from the designated type to the generated anonymous
552 access type. Remove associated comment.
554 * sem_res.adb Add with and use clauses for Sem_Ch10.
555 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
556 non-limited view. Since the shadow entity may replace a regular
557 incomplete type, return the available full view.
559 2009-06-23 Ed Schonberg <schonberg@adacore.com>
561 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
562 incomplete type declarations. Previous code was potentially quadratic
563 in the number of visible declarations in any package appearing in a
566 2009-06-23 Robert Dewar <dewar@adacore.com>
568 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
569 xref_lib.adb: Minor reformatting
571 2009-06-23 Robert Dewar <dewar@adacore.com>
573 * a-stzhas.adb: Provide dummy body to avoid build problems with old
574 versions which did have a body for this unit.
576 2009-06-23 Vincent Celier <celier@adacore.com>
578 * prj-attr.adb: Attribute names Initial_Required_Switches and
579 Final_Required_Switches changed to Leading_Required_Switches and
580 Trailing_Required_Switches.
582 * prj-nmsc.adb (Process_Compiler): Attribute names
583 Initial_Required_Switches and Final_Required_Switches changed to
584 Leading_Required_Switches and Trailing_Required_Switches.
586 * prj.ads (Language_Config): Component Initial_Required_Switches and
587 Final_Required_Switches changed to Leading_Required_Switches and
588 Trailing_Required_Switches.
590 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
591 Final_Required_Switches; add standard names Leading_Required_Switches
592 and Trailing_Required_Switches.
594 2009-06-23 Thomas Quinot <quinot@adacore.com>
596 * prj-conf.adb: Minor reformatting
598 * xref_lib.adb: Minor cleanup
600 2009-06-23 Emmanuel Briot <briot@adacore.com>
602 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
603 prj-conf.ads (Check_Configuration): New parameter
604 Compiler_Driver_Mandatory.
606 2009-06-23 Ed Schonberg <schonberg@adacore.com>
608 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
609 context of the current unit has an inline pragma, the instance is not
610 rewritten as the declaration of the package wrapper. Handle both
611 possibilities when retrieving the visible subprogram that renames the
612 instantiation itself.
614 2009-06-23 Javier Miranda <miranda@adacore.com>
616 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
617 designated types referencing entities from the limited view.
619 2009-06-23 Robert Dewar <dewar@adacore.com>
621 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
623 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
626 * prj-conf.ads: Minor reformatting
628 * prj-conf.adb: Minor reformatting
630 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
632 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
633 to correspond to the log format that gnatmem now expects.
635 2009-06-23 Vincent Celier <celier@adacore.com>
637 * prj-attr.adb: New attributes Initial_Required_Switches,
638 Final_Required_Switches and Object_File_Switches
640 * prj-nmsc.adb (Process_Compiler): Process new attributes
641 Name_Final_Required_Switches, Name_Initial_Required_Switches and
642 Name_Object_File_Switches.
644 * prj.ads (Language_Config): New component
645 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
646 Compiler_Final_Required_Switches and Object_File_Switches.
648 * snames.ads-tmpl: New standard names Initial_Required_Switches,
649 Final_Required_Switches and Object_File_Switches
651 2009-06-23 Pascal Obry <obry@adacore.com>
653 * s-strhas.adb, s-strhas.ads: Minor reformatting.
655 2009-06-23 Ed Schonberg <schonberg@adacore.com>
657 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
658 not indicate that the enclosing unit needs a body.
660 2009-06-23 Emmanuel Briot <briot@adacore.com>
662 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
664 2009-06-23 Ed Schonberg <schonberg@adacore.com>
666 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
667 primitive equality include it with its source name even if the
668 operation is currently invisible, to make sure that the corresponding
669 slot in the dispatch table is reserved for the internal equality
670 subsequently generated during expansion.
672 2009-06-23 Matthew Gingell <gingell@adacore.com>
674 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
676 2009-06-22 Jose Ruiz <ruiz@adacore.com>
678 * sysdep.c (__gnat_localtime_tzoff for RTX):
679 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
680 GetTimeZoneInformation instead.
682 2009-06-22 Robert Dewar <dewar@adacore.com>
684 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
686 2009-06-22 Ed Schonberg <schonberg@adacore.com>
688 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
689 instantiations declared in a previous generic package body.
691 2009-06-22 Robert Dewar <dewar@adacore.com>
693 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
694 restriction No_Direct_Boolean_Operators.
696 2009-06-22 Thomas Quinot <quinot@adacore.com>
698 * bindusg.adb: Minor fixes to gnatbind usage message
700 * sem_eval.adb: Minor reformatting
702 2009-06-22 Javier Miranda <miranda@adacore.com>
704 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
705 freezing point the check on the use of abstract types in object
706 declarations. Done to allow the declaration of C++ imported variables
707 or constants whose type corresponds with an imported C++ classes for
708 which the constructor is not imported.
710 2009-06-22 Thomas Quinot <quinot@adacore.com>
712 * sem_ch6.adb: Minor reformatting
714 2009-06-22 Ed Schonberg <schonberg@adacore.com>
716 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
717 component is constrained with an expression rather than with a
718 discriminant of the enclosing type, use that expression when building
719 the call to default-initialize the component, when the call is part of
720 an aggregate with box initialization.
722 2009-06-22 Ed Schonberg <schonberg@adacore.com>
724 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
725 unconditional rather than a style check, because a formal name out of
728 2009-06-22 Vincent Celier <celier@adacore.com>
730 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
731 creating a directory automatically.
733 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
735 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
736 untagged derived type, add a hidden component for every constrained
737 discriminant of the parent type to keep record layout consistent.
739 2009-06-22 Thomas Quinot <quinot@adacore.com>
741 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
744 2009-06-22 Matthew Gingell <gingell@adacore.com>
746 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
747 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
748 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
749 a-swuwha.adb: New unit System.String_Hash.
750 Refactor redundant cut and pasted hash functions with instances of a
751 new generic hash function.
752 Implement a new string hashing algorithm which appears in testing to
753 be move effective than to previous approach.
755 2009-06-22 Ed Falis <falis@adacore.com>
757 * sysdep.c: remove include for nfsLib.h and an NFS specific error
758 message for VxWorks 653 vThreads: not supported by the OS.
760 * gsocket.h: disable sockets for VxWorks 653 vThreads.
762 2009-06-22 Robert Dewar <dewar@adacore.com>
764 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
766 2009-06-22 Robert Dewar <dewar@adacore.com>
768 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
771 * freeze.adb: Minor comment updates
773 * s-valrea.adb (Bad_Based_Value): New procedure
774 (Scan_Real): Raise exceptions with messages
776 2009-06-22 Matthew Gingell <gingell@adacore.com>
778 * adaint.h: Complete previous change.
780 2009-06-22 Thomas Quinot <quinot@adacore.com>
782 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
784 2009-06-22 Ed Schonberg <schonberg@adacore.com>
786 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
787 enabled, emit warning when a non-controlling argument of the overriding
788 operation appears out of place vis-a-vis of the formal of the
789 overridden operation.
791 2009-06-22 Vincent Celier <celier@adacore.com>
793 * gnatcmd.adb (Check_Files): Close temporary files after all file names
794 have been written into it.
796 2009-06-22 Matthew Gingell <gingell@adacore.com>
798 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
801 2009-06-22 Thomas Quinot <quinot@adacore.com>
803 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
804 view of the root type is visible at the point of the call.
806 2009-06-22 Pat Rogers <rogers@adacore.com>
808 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
810 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
812 * freeze.adb: Add comments.
814 2009-06-21 Thomas Quinot <quinot@adacore.com>
816 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
817 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
818 Factor out code to new subprogram...
819 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
820 for a default initialized variable.
821 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
822 entity that has an associated freeze node.
823 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
824 If there is an init call for the object, defer it to the object freeze
826 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
827 name clash with new subprogram introduced in Exp_Util.
829 2009-06-21 Robert Dewar <dewar@adacore.com>
831 * einfo.ads: Minor reformatting
833 2009-06-21 Ed Falis <falis@adacore.com>
835 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
837 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
839 * einfo.ads: Update comments.
841 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
843 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
844 where the controlling formal is of private class-wide type whose
845 completion is a synchronized type can be converted into direct calls.
847 2009-06-21 Vincent Celier <celier@adacore.com>
849 * gnatcmd.adb (Check_Files): When all sources of the project are to be
850 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
851 of sources using -files=, so that the distinction can be made by the
852 tool of a call with no source (to display the usage) from a call with
853 a project file that contains no source.
855 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
857 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
858 case of VM convention arrays.
860 2009-06-20 Robert Dewar <dewar@adacore.com>
862 * a-nudira.adb: Minor reformatting
864 2009-06-20 Ed Schonberg <schonberg@adacore.com>
866 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
867 expressions (possibly from a parent type) indicate that the scope of
868 the new itypes is the initialization procedure being built.
870 2009-06-20 Robert Dewar <dewar@adacore.com>
872 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
873 Needs_64, and now computed without anomolies for some dynamic types.
875 2009-06-20 Thomas Quinot <quinot@adacore.com>
877 * sem_prag.adb: Minor reformatting
879 * exp_disp.ads: Minor reformatting
881 2009-06-20 Ed Schonberg <schonberg@adacore.com>
883 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
884 function call is a legal expression to initialize a limited object.
886 * exp_ch3.adb: Rename various freeze operations that perform expansion
887 actions, to prevent confusion with subprograms in the freeze package.
889 2009-06-20 Ed Schonberg <schonberg@adacore.com>
891 * sem.adb (Walk_Library_Units): Check instantiations first.
893 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
894 private primitive if it is a function with a controlling result that is
895 a type extension with progenitors.
897 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
898 a primitive operation of a synchronized tagged type that has a
901 2009-06-20 Thomas Quinot <quinot@adacore.com>
903 * einfo.ads: Fix typo.
905 2009-06-20 Ed Falis <falis@adacore.com>
907 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
909 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
911 * gcc-interface/trans.c (emit_check): Do not wrap up the result
913 (protect_multiple_eval): Always protect complex expressions.
915 2009-06-19 Emmanuel Briot <briot@adacore.com>
917 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
918 make sure we always return a name ending with a path separator.
920 2009-06-19 Javier Miranda <miranda@adacore.com>
922 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
923 Save and restore the visibility of the parent when installed.
925 2009-06-19 Jose Ruiz <ruiz@adacore.com>
927 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
928 by Common which contains all these fields.
930 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
931 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
932 Remove code duplication in this package by means of calling the
933 equivalent code in s-taprob.
935 2009-06-19 Robert Dewar <dewar@adacore.com>
937 * a-einuoc.ads: Minor reformatting
939 2009-06-19 Ed Falis <falis@adacore.com>
941 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
942 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
944 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
946 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
948 2009-06-19 Robert Dewar <dewar@adacore.com>
950 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
953 * checks.adb (Determine_Range): Move the test for generic types later.
955 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
957 (Eval_Relational_Op): Fold more cases including string compares
959 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
962 2009-06-19 Robert Dewar <dewar@adacore.com>
964 * sem_type.ads, sem_ch12.adb: Minor reformatting
966 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
968 2009-06-19 Ed Schonberg <schonberg@adacore.com>
970 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
971 primitive operation of a rivate extension whose controlling argument
974 * sem.adb (Walk_Library_Units): exclude generic package declarations
977 2009-06-19 Thomas Quinot <quinot@adacore.com>
979 * i-vxwoio.ads: Add comments
981 2009-06-19 Thomas Quinot <quinot@adacore.com>
983 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
984 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
985 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
986 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
987 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
988 Thin_Common.Socket_Ioctl.
989 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
991 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
992 argument after the file descriptor and request code.
994 2009-06-19 Robert Dewar <dewar@adacore.com>
996 * checks.adb: Minor reformatting
998 2009-06-19 Jose Ruiz <ruiz@adacore.com>
1000 * env.c (__gnat_environ): RTX does not support this functionality.
1002 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1004 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
1005 traverse, to account for front-end inlining and instantiations in a
1006 spec or in the main unit.
1008 2009-06-19 Robert Dewar <dewar@adacore.com>
1010 * checks.adb (Determine_Range): Do not attempt to get range of generic
1013 2009-06-19 Sergey Rybin <rybin@adacore.com>
1015 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
1016 gnatmetric option for generating the schema file for gnatmetric XML
1017 output. Add corresponding VMS qualifier.
1019 2009-06-19 Robert Dewar <dewar@adacore.com>
1021 * g-cgi.adb: Minor reformatting
1023 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
1025 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
1026 signal code for SIGFPE and raise Program_Error for SIGILL.
1028 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
1030 2009-06-19 Ed Schonberg <schonberg@adacore.com>
1032 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
1033 generic package if there is a visibility candidate that is declared in
1036 2009-06-18 Olivier Hainque <hainque@adacore.com>
1038 * system-aix64.ads: New file.
1039 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
1040 64bit system.ads for ppc64 multilib variants.
1042 2009-06-16 Robert Dewar <dewar@adacore.com>
1043 Olivier Hainque <hainque@adacore.com>
1045 Relax constraints on Machine_Attribute argument types:
1046 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
1048 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
1049 * gcc-interface/decl.c (prepend_attributes): Accept static
1050 expressions of any type as attribute arguments, not only string
1052 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
1053 the relaxation of the restriction on the Info argument type.
1055 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
1057 * gcc-interface/utils.c (record_builtin_type): Pass location
1058 argument to build_decl.
1059 (create_type_stub_decl): Same.
1060 (create_type_decl): Same.
1061 (create_var_decl_1): Same.
1062 (create_field_decl): Same.
1063 (create_param_decl): Same.
1064 (create_label_decl): Same.
1065 (create_subprog_decl): Same.
1066 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
1067 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
1068 argument to create_artificial_label.
1069 (Loop_Statement_to_gnu): Same.
1070 (Subprogram_Body_to_gnu): Same.
1071 (gnat_gimplify_stmt): Same.
1073 2009-06-11 Richard Henderson <rth@redhat.com>
1075 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
1078 2009-06-11 Ed Schonberg <schonberg@adacore.com>
1080 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
1081 accessibiliy check on access_to_subprogram in the context of an
1082 anonymous access that is not an access parameter.
1084 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
1086 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
1088 2009-06-11 Quentin Ochem <ochem@adacore.com>
1090 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
1091 comments for message handled by GPS.
1093 2009-06-11 Matthew Gingell <gingell@adacore.com>
1095 * adaint.c: Use fopen64 instead of fopen on platforms where we know
1098 2009-06-11 Pascal Obry <obry@adacore.com>
1100 * g-cgi.ads: Fix comment typo.
1102 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
1104 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
1106 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
1107 a reference to the original type for the type of the field of the
1109 (maybe_pad_type): Likewise.
1111 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
1112 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
1113 Pass correctly typed arguments to create_field_decl.
1114 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
1115 case of contrained discriminants as well. Use the padded base type
1116 in the other case as well. Rename temporary variable. Tweak test.
1117 Factor common access pattern. Set GNU_SIZE only once.
1119 2009-06-09 Olivier Hainque <hainque@adacore.com>
1121 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
1122 helper for build_call_alloc_dealloc with arguments to be interpreted
1123 identically. Process the case where a GNAT_PROC to call is provided.
1124 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
1125 and return an allocator for DATA_SIZE bytes aimed at containing a
1126 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
1127 DATA_TYPE alignments greater than what the latter offers.
1128 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
1129 release a DATA_TYPE object designated by DATA_PTR using the
1130 __gnat_free entry point.
1131 (build_call_alloc_dealloc): Expect object data type instead of naked
1132 alignment constraint. Use the new helpers.
1133 (build_allocator): Remove special processing for the super-aligned
1134 case, now handled by build_call_alloc_dealloc. Pass data
1135 type instead of the former alignment argument, as expected by the new
1137 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
1139 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
1140 Remove special processing for the super-aligned case, now handled
1141 by build_call_alloc_dealloc. Pass data type instead of the former
1142 alignment argument, as expected by the new interface.
1144 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
1146 * lib-writ.adb (flag_compare_debug): Import.
1147 (Write_ALI): Skip during -fcompare-debug-second.
1149 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1151 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
1152 adjusting the discriminant nodes in an extension, use the full view
1153 of the parent subtype if it is of a private kind.
1155 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1157 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
1158 _Parent field, if any, to the record before adding the other fields.
1159 <E_Record_Subtype>: Put the _Controller field before the other fields
1160 except for the _Tag or _Parent fields.
1161 (components_to_record): Likewise. Retrieve the _Parent field from the
1164 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
1166 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
1167 remove unused parameter and simplify.
1168 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
1169 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
1170 as context for all discriminants. Fix formatting nits.
1171 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
1172 before Discriminant_Constraint. Adjust for above renaming. Do not
1173 set GNU_TYPE more than once.
1174 (elaborate_entity): Test Has_Discriminants on the entity and use
1175 Implementation_Base_Type.
1176 (components_to_record): Rename component_list to gnat_component_list.
1177 Retrieve the _Parent field from the list. Fix nits in comments.
1178 Clarify logic in loop. Pass correct arguments to create_field_decl.
1180 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
1182 * gcc-interface/Make-lang.in: Fix formatting.
1184 2009-06-01 Olivier Hainque <hainque@adacore.com>
1185 Eric Botcazou <ebotcazou@adacore.com>
1187 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
1188 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
1189 on the result if at least one of the input fields couldn't be output
1190 as a static constant any more.
1192 2009-06-01 Olivier Hainque <hainque@adacore.com>
1193 Eric Botcazou <ebotcazou@adacore.com>
1195 * gcc-interface/utils2.c (gnat_build_constructor): Factor
1196 out code. Use initializer_constant_valid_for_bitfield_p and
1197 CONSTRUCTOR_BITFIELD_P for bit-fields.
1199 2009-05-26 Ian Lance Taylor <iant@google.com>
1201 * gcc-interface/Makefile.in (COMPILER): Define.
1202 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
1203 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
1204 (seh_init.o, tracebak.o): Likewise.
1205 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
1206 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
1207 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
1208 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
1209 (ada/utils2.o): Likewise.
1211 2009-05-24 Olivier Hainque <hainque@adacore.com>
1213 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
1214 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
1215 Add -auxbase variants to the list of recognized internal switches.
1216 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
1218 * lib.ads: Make comment on internal GCC switches more general.
1219 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
1222 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1224 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
1226 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1228 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
1231 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1233 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
1234 original type because of the alignment when there is an address clause.
1236 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
1238 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
1239 discriminants affect the shape of the subtype, retrieve the GCC type
1240 directly from the original field if the GNAT types for the field and
1241 the original field are the same.
1243 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
1245 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
1247 (TYPE_RM_VALUES): Likewise.
1248 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
1249 (SET_TYPE_RM_SIZE): New macro.
1250 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
1251 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
1252 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
1253 * gcc-interface/gigi.h (create_range_type): Declare.
1254 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
1255 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
1256 <E_Signed_Integer_Subtype>: Build a regular integer type first and
1257 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
1258 <E_Floating_Point_Subtype>: Build a regular floating-point type first
1259 and then set the RM bounds.
1260 <E_Array_Type>: Use create_range_type instead of build_range_type.
1261 <E_Array_Subtype>: Build a regular integer type first and then set
1262 the RM bounds for the extra subtype.
1263 <E_String_Literal_Subtype>: Use create_range_type instead of
1265 <all>: Set the RM bounds for enumeration types and the GCC bounds for
1266 floating-point types.
1267 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
1268 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
1269 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
1270 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
1271 types and with RM bounds for subtypes.
1272 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
1273 (gnat_print_type) <REAL_TYPE>: New case.
1274 <ENUMERAL_TYPE>: Fall through to above case.
1275 (gnat_get_subrange_bounds): New function.
1276 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
1277 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
1278 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
1279 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
1280 (create_range_type): New function.
1281 (create_param_decl): Build a regular integer type first and then set
1282 the RM bounds for the extra subtype.
1283 (unchecked_convert): Remove kludge for 'Valid.
1284 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
1285 the index to sizetype instead of TYPE_DOMAIN.
1287 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
1289 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
1290 parameter and move check for static expression to...
1291 (elaborate_expression): ...here. Adjust call to above function.
1292 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
1293 in calls to elaborate_expression.
1294 (elaborate_entity): Likewise.
1295 (substitution_list): Likewise.
1296 (maybe_variable): Fix formatting.
1297 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
1299 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
1301 2009-05-07 Arnaud Charlet <charlet@adacore.com>
1303 * gcc-interface/Make-lang.in: Update dependencies.
1305 2009-05-06 Laurent GUERBY <laurent@guerby.net>
1307 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
1308 Define sa_handler_pos.
1309 * s-osinte-linux.ads: Use it.
1310 * s-linux-mipsel.ads: New.
1311 * system-linux-mips64el.ads: New.
1312 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
1315 2009-05-06 Arnaud Charlet <charlet@adacore.com>
1317 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
1318 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
1319 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
1320 (Tagged_Type_Expansion): New flag.
1321 Replace use of VM_Target related to tagged types expansion by
1322 Tagged_Type_Expansion, since tagged type expansion is not necessarily
1323 linked to VM targets.
1325 2009-05-06 Robert Dewar <dewar@adacore.com>
1327 * sem_attr.adb: Add processing for Standard'Compiler_Version
1329 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
1331 (Expr_First_Char): Add ??? comment that paren skipping needs work
1332 (Expr_Last_Char): Add ??? comment that paren skipping needs work
1334 * exp_attr.adb: Add processing for Compiler_Version
1336 * sem_attr.adb: New attribute Compiler_Version
1338 * snames.ads-tmpl: Add entries for Compiler_Version attribute
1340 * gnat_rm.texi: Document Compiler_Version attribute
1342 2009-05-06 Robert Dewar <dewar@adacore.com>
1344 * errout.adb: Minor reformatting
1346 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
1347 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
1348 styleg.adb: Add stylized comments to error messages that are included
1349 in the codefix circuitry of IDE's such as GPS.
1351 2009-05-06 Sergey Rybin <rybin@adacore.com>
1353 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
1354 new form of the rule parameter that allows to specify the suffix for
1355 access-to-access type names.
1357 2009-05-06 Robert Dewar <dewar@adacore.com>
1359 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
1360 out parameter assigned when exception handlers are present.
1362 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
1363 assignments on exit.
1365 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
1366 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
1367 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
1368 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
1369 messages that are included in the codefix circuitry of IDE's such as
1372 * sinput.ads, sinput.adb (Expr_First_Char): New function
1373 (Expr_Last_Char): New function
1375 2009-05-06 Sergey Rybin <rybin@adacore.com>
1377 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
1378 Add formal definition for extra exit point metric
1380 2009-05-06 Pascal Obry <obry@adacore.com>
1382 * adaint.c: Support for setting attributes on unicode filename on
1385 2009-05-06 Robert Dewar <dewar@adacore.com>
1387 * sem_warn.adb: Minor reformatting
1389 2009-05-06 Javier Miranda <miranda@adacore.com>
1391 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
1392 not have discriminants or components with default expressions.
1393 (Analyze_Pragma): For pragma CPP_Class check that imported types
1394 have no discriminants and components have no default expression.
1396 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
1397 class-wide types in the expression of a record component association.
1399 2009-05-06 Sergey Rybin <rybin@adacore.com>
1401 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
1403 * gnat_ugn.texi: Add description for the new extra exit points metric
1404 (gnatmetric section).
1406 2009-05-06 Robert Dewar <dewar@adacore.com>
1408 * s-fileio.adb: Minor comment update
1410 * sem_ch8.adb: Minor reformatting
1412 * exp_ch3.adb: Update comments.
1414 2009-05-06 Tristan Gingold <gingold@adacore.com>
1416 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
1418 2009-05-06 Arnaud Charlet <charlet@adacore.com>
1420 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
1421 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
1423 * gcc-interface/Make-lang.in: Update dependencies
1425 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1427 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
1428 change. The context clause of a generic instance declaration must be
1429 preserved until the end of the compilation, because it may have to be
1430 installed/removed repeatedly.
1431 The latest change to sem.adb ensures that the context of both spec and
1432 body of an instance is traversed before the instance itself, making
1433 this patch redundant.
1435 2009-05-06 Gary Dismukes <dismukes@adacore.com>
1437 * sem_aggr.adb: Fix typo.
1439 2009-05-06 Thomas Quinot <quinot@adacore.com>
1441 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
1442 declaration, do not adjust if the declaration is to be rewritten into
1445 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1447 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
1450 2009-05-06 Bob Duff <duff@adacore.com>
1452 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
1453 otherwise the compiler would be allowed to optimize away the cleanup
1456 2009-05-06 Gary Dismukes <dismukes@adacore.com>
1458 * gnat_ugn.texi: Fix typo.
1460 2009-05-06 Thomas Quinot <quinot@adacore.com>
1462 * g-debuti.adb: Minor reformatting
1464 * exp_attr.adb: Minor reformatting
1466 2009-05-06 Robert Dewar <dewar@adacore.com>
1468 * sem_aggr.adb: Minor reformatting.
1470 * g-socthi-vms.adb: Minor reformatting
1472 2009-05-06 Bob Duff <duff@adacore.com>
1474 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
1475 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
1477 2009-05-06 Bob Duff <duff@adacore.com>
1479 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
1482 2009-05-06 Javier Miranda <miranda@adacore.com>
1484 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
1485 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
1486 extension aggregates.
1487 (Resolve_Record_Aggregate): Add support for C++ constructors in
1488 extension aggregates.
1490 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
1491 constructors in extension aggregates.
1493 2009-05-06 Robert Dewar <dewar@adacore.com>
1495 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
1498 2009-05-06 Thomas Quinot <quinot@adacore.com>
1500 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
1501 packed type, since on OpenVMS, struct msghdr is packed.
1503 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1505 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
1506 call returning an unconstrained composite value, create the proper
1507 subtype for it, as is done for object dclarations with unconstrained
1508 nominal subtypes. Perform this transformation regarless of whether
1509 call comes from source.
1511 2009-05-06 Robert Dewar <dewar@adacore.com>
1513 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
1517 Add documentation for pragma Implicit_Packing applied to record
1520 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1522 * sem.adb (Walk_Library_Items): Place all with_clauses of an
1523 instantiation on the spec, because late instance bodies may generate
1524 with_clauses for the instance body but are inserted in the instance
1527 2009-05-06 Emmanuel Briot <briot@adacore.com>
1529 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
1530 support for returning the directory even if it doesn't exist. This is
1531 used for the object directory, since we are always setting it to a
1532 non-null value, and we should set it to an absolute name rather than a
1533 relative name for the sake of external tools that might depend on it.
1534 (Check_Library_Attributes): When Project.Library_Dir is known, check
1535 that the directory exists.
1537 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1539 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
1540 reference is an implicit dereference, do not freeze the designated type
1541 if within a default expression or when preanalyzing a pre/postcondtion.
1543 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1545 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
1546 call returning an unconstrained composite value, create the proper
1547 subtype for it, as is done for object dclarations with unconstrained
1550 2009-05-06 Robert Dewar <dewar@adacore.com>
1552 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
1555 * freeze.adb: Minor reformatting
1557 2009-05-06 Thomas Quinot <quinot@adacore.com>
1559 * sem_ch3.adb (Access_Type_Declaration): An access type whose
1560 designated type is a limited view from a limited with clause (flagged
1561 From_With_Type) is not itself such a limited view.
1563 2009-05-06 Emmanuel Briot <briot@adacore.com>
1565 * prj-nmsc.adb: Remove unused variable.
1567 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
1568 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
1569 makeutl.ads, since not all users of prj.ads need this.
1571 2009-05-06 Javier Miranda <miranda@adacore.com>
1573 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
1574 constructor in case of aggregates whose type is a CPP_Class type.
1576 2009-05-06 Robert Dewar <dewar@adacore.com>
1578 * sem_ch13.adb: Minor comment additions
1580 * osint.adb: Minor reformatting
1582 2009-05-06 Pascal Obry <obry@adacore.com>
1584 * initialize.c: On Windows, keep full pathname to expanded command
1587 2009-05-06 Ed Schonberg <schonberg@adacore.com>
1589 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
1590 an aggregate with box default is of a discriminated private type, do
1591 not build a subaggregate for it.
1592 A proper call to the initialization procedure is generated for it.
1594 2009-05-06 Thomas Quinot <quinot@adacore.com>
1596 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
1597 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
1598 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
1599 use standard array code for Standard.String.
1600 (Exp_Dist): Bump PolyORB s-parint API version to 3.
1601 (Rtsfind): New entities TA_Std_String, Unbounded_String.
1603 2009-05-06 Robert Dewar <dewar@adacore.com>
1605 * g-comlin.ads: Minor reformatting
1607 * xoscons.adb: Minor reformatting
1609 2009-05-06 Gary Dismukes <dismukes@adacore.com>
1611 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
1612 Underlying_Type before retrieving the type definition for gathering
1613 components, to account for the case where the type is private.
1615 2009-05-06 Tristan Gingold <gingold@adacore.com>
1617 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
1619 2009-05-06 Thomas Quinot <quinot@adacore.com>
1621 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
1622 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
1623 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
1624 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
1625 Windows versions): Fix incorrect base
1626 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
1627 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
1628 System.Address for the To parameter instead of a Sockaddr_In_Access, to
1629 achieve independance from AF_INET family, and also to allow this
1630 parameter to be retrieved from a Msghdr for the Windows case where
1631 these routines are used to implement C_Sendmsg and C_Recvmsg.
1633 2009-05-06 Bob Duff <duff@adacore.com>
1635 * g-expect.adb, g-expect.ads: Minor reformatting
1637 * sdefault.ads: Minor comment fix
1639 * g-expect-vms.adb: Minor reformatting
1641 * table.ads, table.adb (Append_All): New convenience procedure for
1642 appending a whole array.
1644 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
1645 box message. Call Osint.Dump_Source_File_Names to print out the file
1646 list, instead of rummaging around in various data structures.
1648 * debug.adb: New switch -gnatd.n, to print source file names as they
1651 * alloc.ads: Add parameters for Osint.File_Name_Chars.
1653 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
1654 out source file names during a "bug box".
1655 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
1656 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
1657 If it's not part of the runtimes, store it for later printing by
1658 Dump_Source_File_Names.
1660 2009-05-06 Javier Miranda <miranda@adacore.com>
1662 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
1663 documentation and add reference to the GNAT user guide for further
1666 2009-05-06 Javier Miranda <miranda@adacore.com>
1668 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
1669 also wrong examples that use extension aggregates.
1671 2009-05-06 Albert Lee <lee@adacore.com>
1673 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
1674 of Msg_Iovlen_T for VMS.
1676 2009-05-04 Laurent GUERBY <laurent@guerby.net>
1679 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
1681 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1683 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
1684 box-defaulted operator in an instantiation, when the type of the
1685 operands is not directly visible.
1687 2009-04-29 Gary Dismukes <dismukes@adacore.com>
1689 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
1690 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
1691 analysis of the ancestor part. Remove prohibition against limited
1692 interpretations of the ancestor expression in the case of Ada 2005.
1693 Revise error message in overloaded case, adding a message to cover
1696 2009-04-29 Thomas Quinot <quinot@adacore.com>
1698 * xoscons.adb: Minor reformatting
1700 2009-04-29 Bob Duff <duff@adacore.com>
1702 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
1703 attribute_definition_clauses for the following attributes when the
1704 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
1705 Storage_Size, Write. Otherwise, we get spurious errors (for example,
1706 missing Read attribute on remote types).
1708 * gnat_ugn.texi: Document the change, and add a stern warning.
1710 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1712 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
1713 disabled not just for the current scope, but for the innermost dynamic
1716 2009-04-29 Arnaud Charlet <charlet@adacore.com>
1718 * gcc-interface/Make-lang.in: Update dependencies
1720 2009-04-29 Vincent Celier <celier@adacore.com>
1722 * prj-part.adb: Minor comment update
1724 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1726 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
1727 box-initialized records with discriminated subcomponents that are
1728 constrained by discriminants of enclosing components. New subsidiary
1729 procedures Add_Discriminant_Values, Propagate_Discriminants.
1731 2009-04-29 Arnaud Charlet <charlet@adacore.com>
1733 * g-socket.adb: Code clean up.
1735 2009-04-29 Gary Dismukes <dismukes@adacore.com>
1737 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
1738 function entity, to cover the case of a parameterless function call
1739 that has not been resolved.
1741 2009-04-29 Robert Dewar <dewar@adacore.com>
1743 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
1744 reformatting and comment updates.
1746 2009-04-29 Arnaud Charlet <charlet@adacore.com>
1748 * gnat_ugn.texi: Update some documentation about interfacing with C++
1749 Mention -fkeep-inline-functions.
1751 * gnat_ugn.texi: Minor edits
1753 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1755 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
1756 for a defaulted component of an enclosing aggregate, inherit the type
1757 from the component declaration of the enclosing type.
1759 2009-04-29 Albert Lee <lee@adacore.com>
1761 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
1762 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
1763 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
1764 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
1765 Relocate the Msghdr record type from GNAT.Sockets.Thin to
1766 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
1767 type for the Msg_Iovlen field.
1769 2009-04-29 Vincent Celier <celier@adacore.com>
1771 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
1772 Source_File_Index_Table entries for the source, to avoid crash when
1775 * gnatcmd.adb (Test_If_Relative_Path): Use
1776 Makeutl.Test_If_Relative_Path.
1778 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
1779 Including_RTS is True.
1781 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
1782 Including_RTS defaulted to False.
1784 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
1787 2009-04-29 Javier Miranda <miranda@adacore.com>
1789 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
1791 2009-04-29 Javier Miranda <miranda@adacore.com>
1793 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
1794 associated with dyamically tagged expressions if the expression
1795 initializing a tagged type corresponds with a non default CPP
1797 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
1798 of limited type objects.
1800 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
1801 when a CPP constructor is called in an assignment. Disable also the
1802 error message associated with dyamically tagged expressions if the
1803 exporession initializing a tagged type corresponds with a non default
1806 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
1807 non-default C++ constructors.
1809 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
1811 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
1812 non-default constructors.
1813 (Init_Proc): Add support for non-default constructors.
1815 * exp_disp.adb (Set_Default_Constructor): Removed.
1816 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
1817 but extending its functionality to handle non-default constructors.
1819 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
1820 constructors. Minor code cleanup removing unrequired label and goto
1823 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
1825 (Build_Init_Statements): Add support for non-default constructors.
1826 (Expand_N_Object_Declaration): Add support for non-default constructors.
1827 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
1828 to Set_CPP_Constructors.
1830 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
1831 non-default constructors.
1832 Required to handle its use in build-in-place statements.
1834 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
1835 pragma for non-default C++ constructors and the new compiler support
1836 that allows the use of these constructors in record components, limited
1837 aggregates, and extended return statements.
1839 2009-04-29 Vincent Celier <celier@adacore.com>
1841 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
1842 project extending an abstract project.
1844 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
1846 * targparm.ads: Fix oversight.
1848 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1850 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
1851 derivation when necessary, to find the user-subprogram that is actally
1854 2009-04-29 Robert Dewar <dewar@adacore.com>
1856 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
1859 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1861 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
1862 primitive operation, rather than source line of synchronized type, when
1863 building the wrapper for a primitive operation that overrides an
1864 operation inherited from a progenitor, to improve the error message on
1865 duplicate declarations.
1867 * sem_ch3.adb (Process_Full_View): Use new signature of
1870 2009-04-29 Robert Dewar <dewar@adacore.com>
1872 * prj-nmsc.ads: Minor reformatting
1874 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
1876 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
1877 expression on the existing parent If statement.
1879 2009-04-29 Robert Dewar <dewar@adacore.com>
1881 * prj-proc.adb, prj.ads: Minor reformatting
1883 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
1885 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
1886 existing parent If statement on the newly created one.
1888 2009-04-29 Emmanuel Briot <briot@adacore.com>
1890 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1891 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
1892 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
1893 (Set_In_Configuration, In_Configuration): Removed.
1894 Replaced by an extra parameter Is_Config_File in several parameter to
1895 avoid global variables to store the state of the parser.
1897 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1899 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
1900 with_clauses generated for the same unit through rtsfind, and that
1901 appear in the context of different units.
1903 * rtsfind.adb: New attribute First_Implicit_With, component of the
1904 Unit_Record that stores information about a unit loaded through rtsfind.
1906 2009-04-29 Gary Dismukes <dismukes@adacore.com>
1908 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
1909 (other conditions permitting), so that abstract stream subprograms will
1910 be declared for them.
1912 2009-04-29 Bob Duff <duff@adacore.com>
1914 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
1916 * g-expect.ads: Minor comment fixes.
1918 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1920 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
1921 dispatching operation is a body without previous spec, update the list
1922 of primitive operations to ensure that cross-reference information is
1925 2009-04-29 Albert Lee <lee@adacore.com>
1927 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
1928 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
1929 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
1930 (GNAT.Sockets.Thin.C_Readv,
1931 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
1932 (GNAT.Sockets.Thin.C_Recvmsg,
1933 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
1935 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
1936 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
1938 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1940 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
1941 operation is a body without previous spec, update the list of
1942 primitive operations to ensure that cross-reference information is
1945 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
1946 new compilation unit node for the instance declaration, keep the
1947 context items of the original unit on it, so that the context of the
1948 instance body only holds the context inherited from the generic body.
1950 2009-04-29 Bob Duff <duff@adacore.com>
1952 * sem_res.adb: Minor comment fix.
1954 2009-04-29 Thomas Quinot <quinot@adacore.com>
1956 * sem_elim.adb: Minor reformatting
1958 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1960 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
1961 predefined unit, allow arbitrary number of components in static
1962 aggregate, to ensure that the same level of constant folding applies
1963 for Ada 95 and Ada 05 versions of the file.
1965 2009-04-29 Ed Schonberg <schonberg@adacore.com>
1967 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
1968 information: no need for full scope check.
1969 (Eliminate_Error): Do not emit error in a generic context.
1971 2009-04-29 Ed Falis <falis@adacore.com>
1973 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
1974 VxWorks 653 POS does not support rmdir.
1976 2009-04-29 Matteo Bordin <bordin@adacore.com>
1978 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
1979 results are printed.
1981 2009-04-29 Arnaud Charlet <charlet@adacore.com>
1983 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
1986 2009-04-29 Thomas Quinot <quinot@adacore.com>
1988 * make.adb: Minor reformatting.
1989 Minor code reorganization throughout.
1991 2009-04-29 Matteo Bordin <bordin@adacore.com>
1993 * s-stausa.ads: Changed visibility of type Task_Result: moved to
1994 public part to give application visibility over it.
1995 This is for future improvement and to build a public API on top of it.
1996 Changed record components name of type Task_Result to reflect the new
1999 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
2000 reporting Stack usage.
2002 * gnat_ugn.texi: Update doc of stack usage report.
2004 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
2006 * Makefile.rtl: Add new run-time files.
2008 2009-04-29 Pascal Obry <obry@adacore.com>
2010 * initialize.c: Do not expand quoted arguments.
2012 2009-04-29 Emmanuel Briot <briot@adacore.com>
2014 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
2016 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
2017 Prj.Ultimate_Extending_Project_Of
2019 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2021 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
2022 Amendment type, add the with_clause for Finalization.List_Controller
2023 only if the current context is a package body.
2025 2009-04-29 Thomas Quinot <quinot@adacore.com>
2027 * sem_ch12.adb: Minor reformatting
2029 * sem_aggr.adb: Minor reformatting
2031 * sem_ch6.adb, sem_cat.ads: Minor reformatting
2033 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
2035 2009-04-29 Quentin Ochem <ochem@adacore.com>
2037 * prj.ads (Source_Id): Now general pointer type.
2039 2009-04-29 Thomas Quinot <quinot@adacore.com>
2041 * exp_ch7.adb, rtsfind.adb: Minor reformatting
2043 * sem_res.adb: Minor reformatting
2045 2009-04-29 Thomas Quinot <quinot@adacore.com>
2047 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
2048 operands is static only if it is a predefined concatenation operator.
2050 * sem_util.adb: Minor reformatting
2052 * sem_ch12.adb (Save_References): When propagating semantic information
2053 from generic copy back to generic template, for the case of an
2054 identifier that has been rewritten to an explicit dereference whose
2055 prefix is either an object name or a parameterless funcion call
2056 denoting a global object or function, properly capture the denoted
2057 global entity: perform the corresponding rewriting in the template,
2058 and point the rewritten identifier to the correct global entity (not
2059 to the associated identifier in the generic copy).
2061 2009-04-29 Robert Dewar <dewar@adacore.com>
2063 * rtsfind.adb, prj-env.adb: Minor reformatting
2064 Minor code reorganization
2066 2009-04-29 Emmanuel Briot <briot@adacore.com>
2068 * make.adb: Fix comment
2070 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
2071 is given as argument, as might happen in gnatmake.
2073 2009-04-29 Ed Schonberg <schonberg@adacore.com>
2075 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
2076 an abstract operation of a progenitor is not properly overridden by an
2077 operation of a derived synchronized type.
2079 2009-04-29 Robert Dewar <dewar@adacore.com>
2081 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
2082 prj-proc.adb: Minor reformatting
2083 Minor code reorganization
2085 2009-04-29 Bob Duff <duff@adacore.com>
2087 * exp_ch7.adb (Build_Final_List): For an access type that designates a
2088 Taft Amendment type, if the access type needs finalization, make sure
2089 the implicit with clause for List_Controller occurs on the package spec.
2091 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
2092 with's created for the pseudo-children of Text_IO and friends. In
2093 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
2094 Ada.Text_IO.Integer_IO both with-ing each other.
2096 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
2097 oddball cases when pragma Extend_System is used.
2099 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
2100 the case where a package spec instantiates a generic whose body with's
2101 this package, so Walk_Library_Items won't complain about cyclic with's.
2103 2009-04-29 Emmanuel Briot <briot@adacore.com>
2105 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
2106 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
2107 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
2108 (Project_Id): now a real pointer to Project_Data, instead of an index
2109 into the Projects_Table. This simplifies the API significantly, avoiding
2110 extra lookups in this table and the need to pass the Project_Tree_Ref
2111 parameter in several cases
2113 2009-04-29 Nicolas Setton <setton@adacore.com>
2115 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
2118 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
2120 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
2123 2009-04-24 Robert Dewar <dewar@adacore.com>
2125 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
2126 clean.adb: Minor reformatting.
2127 Minor code reorganization and message improvement.
2129 2009-04-24 Emmanuel Briot <briot@adacore.com>
2131 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
2132 (Alternate_Languages): now implemented as a malloc-ed list rather
2133 than through a table.
2135 2009-04-24 Thomas Quinot <quinot@adacore.com>
2137 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
2138 accurately handle cases such as "lit" & "lit" and
2139 "lit" & static_string_constant
2141 2009-04-24 Emmanuel Briot <briot@adacore.com>
2143 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2144 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
2145 removed. Lists of projects are now implemented via standard malloc
2146 rather than through the table.
2148 2009-04-24 Thomas Quinot <quinot@adacore.com>
2150 * sem_ch12.adb: Minor reformatting
2152 * g-trasym.adb: Minor reformatting
2154 * exp_ch6.adb: Minor reformatting
2156 2009-04-24 Robert Dewar <dewar@adacore.com>
2158 * layout.adb (Layout_Type): For packed array type, copy unset
2159 size/alignment fields from the referenced Packed_Array_Type.
2161 2009-04-24 Bob Duff <duff@adacore.com>
2163 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
2164 longer needed after sem_ch12 changes.
2166 * sem.adb (Walk_Library_Items): Include with's in some debugging
2169 2009-04-24 Emmanuel Briot <briot@adacore.com>
2171 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
2172 only ever using the Project field.
2174 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2176 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
2177 Body_Required on the generated compilation node. The new node is linked
2178 to its body, but both share the same file, so we do not set this flag
2179 on the new unit so as not to create a spurious dependency on a
2180 non-existent body in the ali file for the instance.
2182 2009-04-24 Robert Dewar <dewar@adacore.com>
2184 * make.adb: Minor reformatting
2186 2009-04-24 Emmanuel Briot <briot@adacore.com>
2188 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
2189 Add_Source): merge some code between those. In particular change where
2190 file normalization is done to avoid a few extra calls to
2191 Canonicalize_File_Name. This also removes the need for passing
2192 Current_Dir in a number of subprograms.
2194 2009-04-24 Bob Duff <duff@adacore.com>
2196 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
2197 False, assign the correct unit to the Cunit field of the new table
2198 entry. We want the spec unit, not the body unit.
2200 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
2201 interface for these.
2202 (Maybe_Add_With): Check whether we're trying to a with on the current
2203 unit, and avoid creating such directly self-referential with clauses.
2204 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
2205 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
2206 and matches existing comments in the spec.
2208 * sem.adb (Walk_Library_Items): Add various special cases to make the
2211 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
2212 instead of Parent (N), for uniformity.
2214 2009-04-24 Robert Dewar <dewar@adacore.com>
2216 * errout.ads: Minor reformatting
2218 2009-04-24 Emmanuel Briot <briot@adacore.com>
2220 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
2221 behavior when the project includes sources from multiple languages
2223 2009-04-24 Vincent Celier <celier@adacore.com>
2225 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
2226 is a language other than Ada declared.
2228 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
2229 Imported_First set to True.
2231 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2233 * sem_res.adb: additional optimization to inhibit creation of
2234 redundant transient scopes.
2236 2009-04-24 Bob Duff <duff@adacore.com>
2238 * rtsfind.ads: Minor comment fix
2240 2009-04-24 Emmanuel Briot <briot@adacore.com>
2242 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
2243 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
2244 basically doing the same work (for explicit or implicit sources).
2245 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
2246 role. Rewritten to share some code (testing that all explicit sources
2247 have been found) between ada_only and multi_language modes.
2249 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
2251 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
2252 for CLI imported types.
2253 (Analyze_Pragma): Allow CIL or Java imported functions returning
2254 access-to-subprogram types.
2256 2009-04-24 Emmanuel Briot <briot@adacore.com>
2258 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
2259 (Project_Data.Dir_Path): field removed, since it can be computed
2260 directly from .Directory, and is needed only once when processing the
2261 project is buildgpr.adb or make.adb
2263 2009-04-24 Robert Dewar <dewar@adacore.com>
2265 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
2266 rtsfind.adb: Minor reformatting.
2267 Minor code reorganization
2269 2009-04-24 Arnaud Charlet <charlet@adacore.com>
2271 * mlib-prj.adb: Use friendlier english identifier.
2273 * gnatcmd.adb, make.adb: Use better english identifiers.
2275 2009-04-24 Robert Dewar <dewar@adacore.com>
2277 * clean.adb: Minor reformatting
2279 2009-04-24 Robert Dewar <dewar@adacore.com>
2281 * einfo.adb (OK_To_Rename): New flag
2283 * einfo.ads (OK_To_Rename): New flag
2285 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
2288 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
2290 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
2293 2009-04-24 Emmanuel Briot <briot@adacore.com>
2295 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
2296 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
2297 field removed. This is not a property of the
2298 project, just a boolean used to traverse the project tree, and storing
2299 it in the structure prevents doing multiple traversal in parallel.
2300 (Project_Data.Checked): also removed, since it was playing the same role
2301 as Seen when we had two nested loops, and this is no longer necessary
2302 (For_All_Imported_Projects): removed, since in fact there was already
2303 the equivalent in For_Every_Project_Imported. The latter was rewritten
2304 to use a local hash table instead of Project_Data.Seen
2305 Various loops were rewritten to use For_Every_Project_Imported, thus
2306 removing the need for Project_Data.Seen. This avoids a lot of code
2309 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2311 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
2312 statements, even though the actual of the call is a concatenation,
2313 because the argument is static, and we want to preserve warning
2314 messages about sequences of code statements that are not marked
2317 * sem_warn.adb: remove obsolete comment about warning being obsolete
2319 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
2320 requeued and the delay has expired while within the accept statement
2321 that executes the requeue, do not perform the requeue and indicate that
2322 the timed call has been aborted.
2324 2009-04-24 Emmanuel Briot <briot@adacore.com>
2326 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
2327 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
2328 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
2329 since they can be computed from the above.
2331 2009-04-24 Vincent Celier <celier@adacore.com>
2333 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
2335 * prj-env.adb: Move all global variables to the private part of the
2337 Access these new components instead of the global variables no longer
2339 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
2340 components that were previously global variables.
2342 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
2343 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
2346 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
2347 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
2349 * prj.adb (Initialize): Do not call Prj.Env.Initialize
2350 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
2351 components in the private part of the project tree data.
2353 * prj.ads (Private_Project_Tree_Data): new components moved from
2354 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
2355 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
2356 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
2358 2009-04-24 Vincent Celier <celier@adacore.com>
2360 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
2362 * prj-nmsc.adb (Check_Library): No error for imports by shared library
2363 projects, when --unchecked-shared-lib-imports is used.
2365 2009-04-24 Robert Dewar <dewar@adacore.com>
2367 * sem_ch7.adb: Minor reformatting
2369 2009-04-24 Tristan Gingold <gingold@adacore.com>
2371 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
2374 2009-04-24 Emmanuel Briot <briot@adacore.com>
2376 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
2377 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
2378 (For_All_Imported_Projects): new procedure
2379 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
2380 above rather than duplicating code.
2382 2009-04-24 Emmanuel Briot <briot@adacore.com>
2384 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
2385 (Source_Id, Source_Data): use a real list to store sources rather than
2386 using an external table to store the elements. This makes code more
2387 efficient and more readable.
2389 2009-04-24 Emmanuel Briot <briot@adacore.com>
2391 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
2392 (Source_Iterator): new type.
2393 This removes the need for having the sources on three different
2394 lists at the project tree, project and language level. They are now
2397 2009-04-24 Emmanuel Briot <briot@adacore.com>
2399 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
2401 2009-04-24 Ed Schonberg <schonberg@adacore.com>
2403 * sem_warn.adb: Add comment on obsolete warning
2405 2009-04-24 Arnaud Charlet <charlet@adacore.com>
2407 * s-tassta.adb (Create_Task): Fix violation of locking rule.
2409 2009-04-24 Emmanuel Briot <briot@adacore.com>
2411 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
2412 to Language_Ptr to better reflect its new implementation.
2413 (Project_Data.First_Languages_Processing): renamed to Languages now
2414 that the field with that name is no longer used
2415 (Project_Data.Languages): removed, no longer used, and duplicates
2416 information already available through First_Language_Processing.
2417 (Prj.Language_Index): now an actual pointer, instead of an index into
2418 a table. This makes the list somewhat more obvious, but more importantly
2419 removes the need to pass a pointer to the project_tree_data in a few
2420 places, and makes accessing the attributes of a languages more
2423 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2424 Thomas Quinot <quinot@adacore.com>
2426 * fe.h (Set_Identifier_Casing): Add const to second parameter.
2427 * gcc-interface/misc.c (internal_error_function): Make copy of return
2428 from pp_formatted_text before assigning BUFFER to it.
2429 (gnat_init): Likewise for main_input_filename and gnat_argv.
2430 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
2432 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
2434 * ttypes.ads (Target_Double_Float_Alignment): New variable.
2435 (Target_Double_Scalar_Alignment): Likewise.
2436 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
2437 (Get_Double_Float_Alignment): New imported function.
2438 (Get_Double_Scalar_Alignment): Likewise.
2439 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
2440 the alignment of "double" floating-point types and "double" or larger
2441 scalar types, as parameterized by Target_Double_Float_Alignment and
2442 Target_Double_Scalar_Alignment respectively.
2443 * gcc-interface/gigi.h (double_float_alignment): Declare.
2444 (double_scalar_alignment): Likewise.
2445 (is_double_float_or_array): Likewise.
2446 (is_double_scalar_or_array): Likewise.
2447 (get_target_double_float_alignment): Likewise.
2448 (get_target_double_scalar_alignment): Likewise.
2449 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
2450 (get_target_strict_alignment): ...this.
2451 (get_target_double_float_alignment): New function.
2452 (get_target_double_scalar_alignment): Likewise.
2453 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2454 Test the presence of an alignment clause for under-aligned integer
2455 types. Take into account specific caps for the alignment of "double"
2456 floating-point types and "double" or larger scalar types, as
2457 parameterized by Target_Double_Float_Alignment and
2458 Target_Double_Scalar_Alignment respectively.
2459 (validate_alignment): Likewise.
2460 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
2461 (gigi): Initialize double_float_alignment and double_scalar_alignment.
2462 * gcc-interface/utils.c (double_float_alignment): New global variable.
2463 (double_scalar_alignment): Likewise.
2464 (is_double_float_or_array): New predicate.
2465 (is_double_scalar_or_array): Likewise.
2467 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
2469 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
2470 the conditional expression only if it is common to both arms.
2472 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
2474 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
2475 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
2476 arguments to build_allocator.
2477 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
2478 Remove code handling special allocator and assert its uselessness.
2480 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
2482 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
2483 alignment is specified, do not promote that of the component type
2485 <E_Array_Subtype>: Likewise.
2487 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
2489 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
2490 * sinfo.ads (Object Declaration): Likewise.
2491 (Assignment Statement): Likewise.
2492 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
2493 Do not force Is_True_Constant to false on the temporary.
2494 (Freeze_Entity): Do not force Is_True_Constant to false on names on
2495 the RHS of object declarations.
2496 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
2497 New case. Return 1 if the object is atomic.
2498 <N_Assignment_Statement>: Likewise.
2500 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
2502 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
2503 For packed array types, make the original array type a parallel type
2504 for the modular type and its JM wrapper if the type is bit-packed.
2505 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
2506 record type for packed array types. Remove kludge.
2508 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
2510 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
2511 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2512 Use front-end predicates to compute signedness and precision.
2513 <E_String_Literal_Subtype>: Fold range type.
2514 Make sure to set longest_float_type_node to a scalar type.
2515 (elaborate_entity): Use consistent Constraint_Error spelling.
2516 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
2517 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
2518 output for the modulus, if any.
2519 <ENUMERAL_TYPE>: Likewise for the RM size.
2520 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
2522 * gcc-interface/utils.c (finish_record_type): Really test the alignment
2523 of BLKmode bit-fields to compute their addressability.
2524 (create_index_type): Adjust comments.
2525 (create_param_decl): Create the biased subtype manually.
2526 * gcc-interface/utils2.c (build_component_ref): Use consistent
2527 Constraint_Error spelling.
2529 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
2531 * gcc-interface/cuintp.c: Clean up include directives.
2532 * gcc-interface/targtyps.c: Likewise.
2533 * gcc-interface/decl.c: Likewise.
2534 * gcc-interface/misc.c: Likewise.
2535 * gcc-interface/trans.c: Likewise.
2536 * gcc-interface/utils.c: Likewise.
2537 * gcc-interface/utils2.c: Likewise.
2538 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
2540 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
2542 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
2543 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
2544 (SET_DECL_LANG_SPECIFIC): Likewise.
2546 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2547 Update comment about use of build_range_type.
2548 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
2549 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
2550 check for other cases of overloading.
2551 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
2552 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
2553 Use size_int in lieu of build_int_cst.
2554 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
2557 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
2559 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
2560 type is an enumeral or a boolean type, change it to an integer type
2561 with the same mode and signedness.
2563 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
2565 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
2566 for an external constant whose initializer is not absolute.
2568 2009-04-22 Taras Glek <tglek@mozilla.com>
2570 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
2571 * gcc-interface/trans.c: Likewise.
2572 * gcc-interface/utils.c: Likewise.
2574 2009-04-22 Ed Schonberg <schonberg@adacore.com>
2576 * sem_res.adb: Create block around procedure call when actual is a
2579 2009-04-22 Thomas Quinot <quinot@adacore.com>
2581 * s-soflin.ads: Fix typos
2583 2009-04-22 Vincent Celier <celier@adacore.com>
2585 * prj-env.adb: Minor comment change
2587 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
2588 Get_Name_String with No_File.
2590 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
2591 cannot be created even when not in verbose mode.
2593 2009-04-22 Emmanuel Briot <briot@adacore.com>
2595 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
2596 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
2597 Multi_Language modes, to avoid code duplication.
2598 (Project_Data.Include_Language): Removed.
2600 2009-04-22 Vincent Celier <celier@adacore.com>
2602 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
2603 the temporary file cannot be created, indicating the directory when the
2604 creation was attempted.
2606 2009-04-22 Emmanuel Briot <briot@adacore.com>
2608 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
2609 the language names, not their indices.
2611 2009-04-22 Emmanuel Briot <briot@adacore.com>
2613 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
2614 (Source_Data.Language_Name): Field removed.
2616 2009-04-22 Emmanuel Briot <briot@adacore.com>
2618 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
2621 2009-04-22 Emmanuel Briot <briot@adacore.com>
2623 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
2624 separate_suffix to the same value as the body_suffix.
2626 2009-04-22 Robert Dewar <dewar@adacore.com>
2628 * prj.adb: Minor code reorganization
2631 * prj-proc.adb: Minor code reorganization, clean up.
2633 * prj-nmsc.adb: Minor reformatting
2634 Minor code reorganization
2636 * gnat_ugn.texi: Add to doc on strict aliasing
2638 2009-04-22 Pascal Obry <obry@adacore.com>
2640 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
2643 * s-tasini.adb: Minor reformatting.
2645 * s-tassta.adb: Minor reformatting.
2647 2009-04-22 Emmanuel Briot <briot@adacore.com>
2649 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
2650 smaller subprograms.
2651 Renamed to Check_File_Naming_Schemes to avoid confusion with the
2652 other Check_Naming_Schemes functions that plays a totally different
2654 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
2655 extracted from the above. These were partially rewritten to avoid
2656 unnecessary code and temporary variables.
2657 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
2658 and Get_Unit (which for now still exist since they contain mode-specific
2661 2009-04-22 Emmanuel Briot <briot@adacore.com>
2663 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
2664 Remove duplicated code.
2665 (Canonical_Case_File_Name): new subprogram
2666 (Check_And_Normalize_Unit_Names): new subprogram
2667 (Write_Attr): new subprogram
2668 Better sharing of code
2669 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
2670 split Check_Naming and help find duplicated code
2671 (Check_Common): new subprogram, sharing code between ada_only and
2672 multi_language mode.
2673 (Naming_Data.Dot_Repl_Loc): field removed
2675 2009-04-22 Emmanuel Briot <briot@adacore.com>
2677 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
2678 Minor refactoring to reduce the size of
2679 Process_Sources_In_Multi_Language_Mode.
2680 Avoid extra copied of Source_Data, which we found in the past could be
2682 (Mark_Excluded_Sources): new subprogram.
2683 (Remove_Locally_Removed_Files_From_Units): merged into the above
2684 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
2685 and allow better sharing of code between multi_lang and ada_only modes
2686 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
2688 2009-04-22 Emmanuel Briot <briot@adacore.com>
2690 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
2691 Removed, since unused.
2693 2009-04-22 Vincent Celier <celier@adacore.com>
2695 * prj-attr.adb: New single project level attribute
2696 Separate_Run_Path_Options.
2698 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
2699 attribute Seperate_Run_Path_Options.
2701 * prj.ads: (Project_Configuration): New Boolean component
2702 Separate_Run_Path_Options, defaulted to False.
2704 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
2706 2009-04-22 Robert Dewar <dewar@adacore.com>
2708 * sem_type.adb: Minor reformatting
2710 * mlib.adb: Minor reformatting
2712 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
2715 2009-04-22 Nicolas Setton <setton@adacore.com>
2717 * link.c: Add flag __gnat_separate_run_path_options.
2719 * mlib.adb (Separate_Run_Path_Options): New subprogram.
2721 * mlib.ads (Separate_Run_Path_Options): Declare.
2723 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
2724 switch per directory, rather than one "rpath" switch listing all
2727 * gnatlink.adb (Process_Binder_File): Likewise.
2729 * make.adb (Gnatmake): Likewise.
2731 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
2733 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
2734 Add a call to Move_Final_List when the target of the assignment is a
2735 return object that needs finalization and the expression is a
2736 controlled build-in-place function.
2738 2009-04-22 Vincent Celier <celier@adacore.com>
2740 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
2741 Including_Libraries set to True.
2743 2009-04-22 Ed Schonberg <schonberg@adacore.com>
2745 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
2746 create a unit table entry for the subprogram declaration created for a
2747 child suprogram body that has no separate specification.
2749 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
2750 subprogram body, call Make_Child_Decl_Unit.
2752 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
2753 table can only be the created specification of a child subprogram body
2754 that is the main unit, which has not been entered in the table yet.
2756 * errout.adb (Output_Messages): Ignore created specification of a
2757 child subprogram body to prevent repeated listing of error messages.
2759 * gnat1drv.adb (gnat1drv): The generated specification for a child
2760 subprogram body does not generate code.
2762 2009-04-22 Arnaud Charlet <charlet@adacore.com>
2764 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
2765 since this unit is now part of bootstrap units, so must use Ada 95
2768 2009-04-22 Thomas Quinot <quinot@adacore.com>
2770 * a-tasatt.adb: Minor reformatting
2772 2009-04-22 Bob Duff <duff@adacore.com>
2774 * s-stalib.ads: Remove "with System;" since we're inside System, so
2777 2009-04-22 Vincent Celier <celier@adacore.com>
2779 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
2780 the source record, as there may be a dependency file even if no object
2783 2009-04-22 Robert Dewar <dewar@adacore.com>
2785 * lib-load.adb: Minor reformatting
2787 * lib-load.ads: Minor reformatting
2789 * sinfo.ads: Minor reformatting
2791 2009-04-22 Bob Duff <duff@adacore.com>
2793 * exp_pakd.adb: Minor comment fixes.
2795 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
2796 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
2797 include units containing instantiations, as well as units that are
2798 generic instantiations.
2800 * sem.adb: Include dependents and corresponding specs/bodies in the
2803 * gcc-interface/Make-lang.in:
2804 sem now depends on s-bitops, because of the packed array of Booleans.
2806 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
2808 * gcc-interface/ada-tree.def: Fix formatting nits.
2809 (REGION_STMT): Delete.
2810 (HANDLER_STMT): Likewise.
2811 * gcc-interface/ada-tree.h: Fix formatting nits.
2813 (REGION_STMT_BODY): Likewise.
2814 (REGION_STMT_HANDLE): Likewise.
2815 (REGION_STMT_BLOCK): Likewise.
2816 (HANDLER_STMT_ARG): Likewise.
2817 (HANDLER_STMT_LIST): Likewise.
2818 (HANDLER_STMT_BLOCK): Likewise.
2819 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
2820 (fp_size_to_prec): Likewise.
2821 (largest_move_alignment): Delete.
2822 (gnat_compute_largest_alignment): Likewise.
2824 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2825 Remove redundant code.
2826 <E_Array_Type>: Remove redundant assert.
2827 <E_Array_Subtype>: Exit early from index computation in pathological
2829 Rewrite conditional assignment.
2830 (make_type_from_size): Likewise.
2831 * gcc-interface/misc.c (largest_move_alignment): Delete.
2832 (gnat_finish_incomplete_decl): Likewise.
2833 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
2834 (asm_out_file): Likewise
2835 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
2836 (gnat_dwarf_name): Move around.
2837 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
2838 (gigi): Remove call to gnat_compute_largest_alignment.
2839 * utils.c (create_field_decl): Rewrite conditional assignment.
2842 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
2844 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
2845 on entry. Defer common processing for types. Reorder and clean up.
2846 Compute the equivalent GNAT node and the default size for types only.
2847 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
2848 <E_Access_Type>: For an unconstrained designated type, do not pretend
2849 that a dummy type is always made.
2850 <all> Fix nits in comments.
2851 (validate_size): Fix formatting nits and comments.
2852 (set_rm_size): Likewise.
2853 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
2854 passed to TARGET_PROMOTE_PROTOTYPES hook.
2856 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
2858 * fe.h (Get_External_Name): Declare.
2859 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
2860 (concat_name): ...this.
2861 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
2862 gnu_entity_name and adjust for above renaming.
2863 <E_Access_Type>: Use create_concat_name to get the name of the various
2864 types associated with unconstrained array types.
2865 (make_aligning_type): Adjust for above renaming.
2866 (maybe_pad_type): Likewise.
2867 (components_to_record): Likewise. Use get_identifier_with_length for
2868 the encoding of the variant.
2869 (get_entity_name): Use get_identifier_with_length.
2870 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
2871 Do not fiddle with Name_Buffer.
2872 (concat_id_with_name): Rename to...
2873 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
2875 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
2878 2009-04-21 Joseph Myers <joseph@codesourcery.com>
2880 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
2883 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2885 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
2887 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2889 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
2890 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
2891 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
2892 Remove useless support code for packed array types and assert its
2894 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
2895 adjust for TYPE_RM_SIZE change.
2896 <all> Fix nits in comments. Use Original_Array_Type accessor instead
2897 of Associated_Node_For_Itype accessor for packed array types.
2898 (make_packable_type): Likewise.
2899 (maybe_pad_type): Likewise.
2900 (set_rm_size): Likewise. Rework conditional statement. Adjust for
2901 TYPE_RM_SIZE change.
2902 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
2903 (rm_size): Fix nits in comments. Rework conditional statements.
2904 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
2906 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
2907 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
2908 appropriate function to initialize the size_type_node. Adjust for
2909 TYPE_RM_SIZE change.
2911 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2913 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
2914 for imported subprograms.
2916 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2918 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
2919 constant objects covered by 13.3(19) volatile.
2921 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
2923 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
2924 of dummy fat pointer types to the debug back-end.
2926 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2928 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
2929 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
2930 before wrapping it up in the record type. Do not overwrite the
2931 Ada size of the record type with the Esize.
2933 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2935 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
2936 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
2937 if the conversion is on the LHS of an assignment and a no-op.
2938 <all> Do not convert the result to the result type if the Parent
2939 node is such a conversion.
2941 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2943 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
2944 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
2945 of types with unknown discriminants.
2946 (substitute_in_type): Rewrite and restrict to formal substitutions.
2947 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
2948 (update_pointer_to): Update comment.
2950 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2952 * sem_ch8.adb (Use_One_Package): In an instance, if two
2953 potentially_use_visible and non-overloadable homonyms are available
2954 from the actuals of distinct formal packages, retain the current one,
2955 which was visible in the generic, to prevent spurious visibility
2957 (End_Use_Package): Restore use_visibility when needed.
2959 2009-04-20 Sergey Rybin <rybin@adacore.com>
2961 * gnat_ugn.texi, vms_data.ads: Update doc.
2963 2009-04-20 Arnaud Charlet <charlet@adacore.com>
2965 * gcc-interface/Make-lang.in: Update dependencies
2967 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
2970 2009-04-20 Robert Dewar <dewar@adacore.com>
2972 * checks.ads: Fix documentation of range check handling
2974 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2976 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
2977 a redundant use_type clause.
2979 2009-04-20 Robert Dewar <dewar@adacore.com>
2981 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
2982 this attribute can be evaluated at compile time.
2983 (Eval_Attribute, case Range_Length): Same improvement
2985 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
2987 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2989 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
2990 for better handling of null procedures.
2991 (Check_Overriding_Indicator): Do not emit a warning on a missing
2992 overriding indicator on an operator when the type of which the operator
2993 is a primitive is private.
2995 2009-04-20 Bob Duff <duff@adacore.com>
2997 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
3000 2009-04-20 Robert Dewar <dewar@adacore.com>
3002 * sem_attr.adb: Minor reformatting
3004 * gnatcmd.adb: Minor reformatting
3006 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3008 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
3009 overloaded and one interpretation matches the context, label the
3010 operand with the type of first formal.
3012 2009-04-20 Bob Duff <duff@adacore.com>
3014 * debug.ads: Minor comment fix.
3016 * debug.adb: Minor comment fixes.
3018 2009-04-20 Javier Miranda <miranda@adacore.com>
3020 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
3022 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
3024 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
3025 is expanded into a call to Raise_Exception, avoid passing the
3026 exception-name'identity in runtimes in which this argument
3029 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
3031 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
3032 generated bindings for cil.
3034 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3036 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
3037 discriminants, collect components from the Underlying_Record_View,
3038 which will be used in the expansion of the aggregate into assignments.
3040 * sem_ch3.adb: Do not label derived type with unknown discriminants as
3041 having a private declaration.
3043 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3045 * exp_util.adb (Expand_Subtype_From_Expr): use the
3046 underlying_record_view when available, to create the proper constrained
3047 subtype for an object of a derived type with unknown discriminants.
3049 2009-04-20 Javier Miranda <miranda@adacore.com>
3051 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
3052 formals that have pragma unreferenced.
3054 2009-04-20 Pascal Obry <obry@adacore.com>
3056 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
3057 Remove all calls to To_Lower_If_Case_Insensitive to preserve
3058 the pathname original casing.
3060 2009-04-20 Robert Dewar <dewar@adacore.com>
3062 * g-trasym.adb: Minor reformatting
3064 * s-os_lib.adb: Minor reformatting
3066 * sem.adb: Minor reformatting
3067 Minor code reorganization
3069 * sem_ch3.adb: Minor reformatting
3071 * sem_ch4.adb: Minor reformatting
3073 * sem_ch8.adb: Minor reformatting
3075 * sem_type.adb: Minor reformatting
3077 2009-04-20 Javier Miranda <miranda@adacore.com>
3079 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
3080 generated by derivations of tagged types use the aliased subprogram a
3081 reference to locate their controlling type.
3083 2009-04-20 Tristan Gingold <gingold@adacore.com>
3085 * g-trasym.adb: Set size of result buffer before calling
3088 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3090 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
3091 to a function returning an array can be interpreted as a call with
3092 defaulted parameters whose result is indexed, take into account the
3093 types of all the indices of the array result type.
3095 2009-04-20 Pascal Obry <obry@adacore.com>
3097 * a-direct.adb, s-os_lib.adb: Minor reformatting.
3099 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3101 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
3102 null exclusion qualifiers for object renaming declarations.
3104 2009-04-20 Nicolas Roche <roche@adacore.com>
3106 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
3107 unsigned long long. So compare local_time and utc_time before computing
3110 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3112 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
3113 of the Underlying_Record_View before that of the derived type.
3115 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
3116 with unknown discriminants with regard to the parent subtype.
3118 2009-04-20 Bob Duff <duff@adacore.com>
3120 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
3121 that are not included. This is necessary if the main unit is a generic
3124 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
3125 because it doesn't work if -gnatn is used.
3127 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3129 * rtsfind.adb (RTE, RTE_Record_Component): In
3130 Configurable_Run_Time_Mode, do not enable front-end inlining.
3132 2009-04-20 Thomas Quinot <quinot@adacore.com>
3134 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
3135 System.Address_To_Access_Conversions.
3137 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3139 * sem.adb: Guard against ill-formed subunits.
3141 2009-04-20 Bob Duff <duff@adacore.com>
3143 * output.adb (Flush_Buffer): Do not indent blank lines.
3144 (Ignore_Output): New procedure for output suppression.
3146 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3148 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
3149 when it is positive. This avoids a potential constraint error raised
3150 by the conversion to Natural.
3152 2009-04-20 Gary Dismukes <dismukes@adacore.com>
3154 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
3155 involves a target that has a specified address, don't set Forward_OK
3156 and Backward_OK to False if the rhs is an aggregate, since overlap
3159 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3161 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
3162 in an object renaming declaration when the expected type is an
3163 anonymous access type.
3165 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
3166 ambiguity when one interpretation is an anonymous access type and the
3167 other is a named access type, and the context itself is anonymous
3169 2009-04-20 Thomas Quinot <quinot@adacore.com>
3171 * einfo.ads: Minor comment rewording
3173 * sem_aggr.adb: Minor comment rewording
3175 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
3177 2009-04-20 Pascal Obry <obry@adacore.com>
3179 * adaint.c (__gnat_is_readable_file): Check for file existence
3180 when not using ACL (always the case on remote drives).
3182 2009-04-20 Robert Dewar <dewar@adacore.com>
3184 * sinfo.ads: Minor comment fixes
3186 * exp_disp.adb: Minor reformatting
3188 * gnat1drv.adb: Minor reformatting
3190 * output.adb: Minor reformatting
3192 * s-vxwext-kernel.ads: Minor reformatting
3194 * sem.ads: Minor reformatting
3196 * sem.adb: Minor reformatting
3198 * sem_elim.adb: Minor reformatting
3200 * uname.ads: Minor reformatting
3202 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3204 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
3205 a small dope of 4 words to the adjustment to the stack pointer.
3207 2009-04-20 Thomas Quinot <quinot@adacore.com>
3209 * xoscons.adb: generate C header s-oscons.h in
3210 addition to s-oscons.ads.
3212 * socket.c: On VMS, use s-oscons.h.
3214 * sem_ch3.adb: Minor reformatting
3216 * exp_ch9.adb: Minor reformatting
3218 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3220 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
3221 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
3222 (call_to_gnu): Likewise.
3224 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3226 * gcc-interface/trans.c (gigi): Declare the name of the compilation
3227 unit as the first global name at the very beginning.
3229 2009-04-20 Thomas Quinot <quinot@adacore.com>
3231 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
3232 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
3233 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
3234 since HP-UX supports neither inet_aton nor inet_pton (altough the
3235 latter is part of the Single UNIX Specification!).
3236 So reorganize code, and share C implementation based on inet_addr(3)
3237 with VMS (instead of having a VMS specific Ada implementation in
3240 2009-04-20 Gary Dismukes <dismukes@adacore.com>
3242 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
3243 to return the object file name saved by Set_Object_Output_File_Name.
3245 2009-04-20 Emmanuel Briot <briot@adacore.com>
3247 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
3248 for the standard command line, when argc has been modified since the
3249 start of the application.
3251 2009-04-20 Thomas Quinot <quinot@adacore.com>
3253 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
3254 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
3256 2009-04-20 Bob Duff <duff@adacore.com>
3258 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
3261 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3263 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
3264 subprogram as Eliminated when source operation is.
3265 (Expand_N_Protected_Type_Declaration): Generate protected and
3266 unprotected specs for the internal operations, even if the source
3267 operation is eliminated.
3269 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3271 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
3272 Predefined_Primitive_Bodies): Do not create the declarations and bodies
3273 of the primitive subprograms associated with dispatching select
3274 statements when the runtime is in configurable mode.
3276 2009-04-20 Ed Falis <falis@adacore.com>
3278 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
3280 2009-04-20 Thomas Quinot <quinot@adacore.com>
3282 * s-oscons-tmplt.c: Add support for generating a dummy version of
3283 s-oscons.ads providing all possible constants.
3285 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
3287 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
3288 ANSI version (not the UNICODE version) of WSAStringToAddress.
3290 2009-04-20 Pascal Obry <obry@adacore.com>
3292 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
3293 allocated for the security descriptor and make sure all
3294 handles are closed before leaving this procedure.
3296 2009-04-20 Javier Miranda <miranda@adacore.com>
3298 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
3299 (Set_Is_Underlying_Record_View): New subprogram
3301 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
3302 private types with unknown discriminants use the underlying record view
3305 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
3306 underlying record view in the full view of private types whose parent
3307 has unknown discriminants.
3308 (Build_Derived_Record_Type): Avoid generating the class-wide entity
3309 associated with an underlying record view.
3310 (Derived_Type_Declaration): Avoid deriving parent primitives in
3311 underlying record views.
3313 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
3314 records with unknown discriminants.
3316 * sem_type.adb (Covers): Handle underlying record views.
3317 (Is_Ancestor): Add support for underlying record views.
3319 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
3320 dispatching call if the type of the target object is tagged and has
3321 unknown discriminants.
3323 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
3324 unknown discriminants.
3326 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
3327 tables for internally built underlying record views.
3329 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
3330 empty list of component associations.
3332 2009-04-20 Thomas Quinot <quinot@adacore.com>
3334 * sem_ch10.adb: Minor reformatting
3336 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
3337 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
3338 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
3339 standard inet_pton API (and emulate it on platforms that do not
3341 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
3342 DECC$INET_ADDR, imported in Ada.
3343 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
3344 implementation provided by GNAT runtime.
3345 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
3348 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3350 * gnat_ugn.texi: Add documentation for -fno-ivopts.
3352 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3354 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
3355 with_clause if it is the main unit.
3357 2009-04-20 Thomas Quinot <quinot@adacore.com>
3359 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
3360 (no behaviour change): Use Append instead of Increment_Last followed
3363 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3365 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
3366 declarations of all primitives associated with dispatching asynchronous,
3367 conditional and timed selects when dispaching calls are forbidden and
3368 select statements are not allowed (such as in Ravenscar).
3369 (Predefined_Primitive_Bodies): Ditto for bodies.
3371 * exp_disp.ad (Make_DT): Do not create and populate the
3372 Select_Specific_Data of the dispatch table when dispatching calls are
3373 forbidden and select statements are not allowed (such as in Ravenscar).
3375 2009-04-20 Robert Dewar <dewar@adacore.com>
3377 * a-tifiio.adb: Minor reformatting
3379 2009-04-20 Thomas Quinot <quinot@adacore.com>
3381 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
3382 other C library functions, report *failure* with a zero status, and
3383 success with a non-zero status.
3385 2009-04-20 Bob Duff <duff@adacore.com>
3387 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
3388 (Semantics): After analyzing each unit, Append it to the
3389 Comp_Unit_List, if appropriate.
3391 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
3393 (Gnat1drv): Correct comment regarding Back_End_Mode.
3395 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3397 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
3399 2009-04-20 Thomas Quinot <quinot@adacore.com>
3401 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3402 output.adb, output.ads, s-taprop-hpux-dce.adb,
3403 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
3406 2009-04-20 Thomas Quinot <quinot@adacore.com>
3408 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
3409 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
3410 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
3411 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
3412 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
3413 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
3415 * debug.adb: Fix typo
3417 * gnat_rm.texi: Minor doc fix.
3419 * sem_ch7.adb, freeze.adb: Minor reformatting
3421 2009-04-20 Thomas Quinot <quinot@adacore.com>
3423 * g-socket.ads: Add new constants:
3425 Unspecified_Group_Inet_Addr
3426 All_Hosts_Group_Inet_Addr
3427 All_Routers_Group_Inet_Addr
3429 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
3430 ERANGE (Result too large).
3431 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
3432 propagation of errno to caller.
3434 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3436 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
3437 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
3440 2009-04-20 Gary Dismukes <dismukes@adacore.com>
3442 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
3443 checking for references to eliminated subprograms that should be
3445 (Eliminate_Error_Message): Update comment to say "references" rather
3446 than "calls" (since attribute cases are handled here as well).
3448 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
3449 checking for references to eliminated subprograms that should be
3450 flagged. Add with and use of Sem and Sem_Util.
3452 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
3453 Add with and use of Sem_Elim.
3455 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
3456 applied to eliminated subprograms.
3457 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
3458 eliminated subprograms.
3459 Add with and use of Sem_Elim.
3461 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
3462 to eliminated subprograms, now handled during Resolve_Call.
3463 Remove with and use of Sem_Elim.
3465 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
3466 testing Is_Eliminated, for proper handling of primitive derived from
3467 eliminated subprograms.
3469 2009-04-20 Vincent Celier <celier@adacore.com>
3471 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
3472 has been declared (Library_GCC or Linker'Driver), for the driver name.
3474 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
3475 Linker'Driver is, use Linker'Driver as the shared library linker.
3476 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
3477 Library_GCC is declared.
3478 (Check_Library_Attributes): Set up the shared linker driver: either
3479 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
3482 2009-04-20 Thomas Quinot <quinot@adacore.com>
3484 * g-socket.ads (Send_Socket): Fix misleading comment.
3486 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3488 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
3491 2009-04-20 Geert Bosch <bosch@adacore.com>
3493 * a-tifiio.adb (Put): Avoid generating too many digits for certain
3494 fixed types with smalls that are neither integer or the reciprocal
3497 2009-04-20 Bob Duff <duff@adacore.com>
3499 * uname.ads: Minor comment fix.
3501 * types.ads: Minor comment fix.
3503 2009-04-20 Pascal Obry <obry@adacore.com>
3505 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
3506 avoid warning. At the same time fix a memory leak.
3508 * osint.adb (Get_Libraries_From_Registry): Properly free memory
3509 returned by the above routine.
3511 2009-04-20 Robert Dewar <dewar@adacore.com>
3513 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
3514 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
3515 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
3516 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
3518 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
3520 2009-04-20 Pascal Obry <obry@adacore.com>
3522 * initialize.c (__gnat_initialize): Add braces to kill warning.
3524 * adaint.c: Minor reformatting, remove trailing spaces.
3526 2009-04-17 Arnaud Charlet <charlet@adacore.com>
3528 * gcc-interface/Make-lang.in: Update dependencies.
3530 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3532 * adaint.h (__gnat_lwp_self): Declare on Linux.
3534 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
3536 2009-04-20 Robert Dewar <dewar@adacore.com>
3538 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
3539 front-end part of -fpreserve-control-flow switch.
3541 2009-04-20 Bob Duff <duff@adacore.com>
3543 * rtsfind.adb: Minor comment fix
3545 2009-04-20 Robert Dewar <dewar@adacore.com>
3547 * exp_aggr.adb: Minor reformatting
3548 Minor code reorganization (use Nkind_In)
3550 * g-socket.adb: Minor reformatting
3552 * g-socket.ads: Minor comment fix
3554 * s-auxdec.ads: Minor comment and organization update.
3556 * s-auxdec-vms_64.ads: Minor comment and organization update.
3558 * sem_ch10.adb: Minor addition of ??? comment
3560 * sem_disp.adb: Minor reformatting
3562 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3564 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
3565 list a caller of an inlined subprogram, if the caller itself is not
3568 2009-04-20 Pascal Obry <obry@adacore.com>
3570 * adaint.c: Disable use of ACL on network drives.
3572 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3574 * gnat_ugn.texi: Add examples.
3576 2009-04-20 Thomas Quinot <quinot@adacore.com>
3578 * g-socket.ads (Abort_Selector): Clarify documentation.
3580 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3582 * opt.ads (Inspector_Mode): Update documentation of this flag.
3584 2009-04-20 Thomas Quinot <quinot@adacore.com>
3586 * g-socket.ads: Minor reformatting
3588 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
3589 consider S_resolvLib error codes since we only use the hostLib wrappers.
3591 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3593 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
3594 of the Underlying_Record_View after that of the derived type.
3596 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3598 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
3601 2009-04-20 Javier Miranda <miranda@adacore.com>
3603 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
3605 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
3608 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
3611 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
3612 in internally built overriding subprograms.
3614 2009-04-20 Doug Rupp <rupp@adacore.com>
3616 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
3618 * s-auxdec.ads: Likewise
3620 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3622 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
3623 type by an interface.
3625 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
3626 minimze difference in expanded tree when compiled as spec of the main
3627 unit, or as a spec in the context of another unit.
3629 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
3631 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
3632 (localtime_tzoff): This routine no longer accepts an actual of type
3634 (UTC_Time_Offset): Remove local variable Secs_TM.
3636 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
3637 actual of type struct tm*. Add local variable of type struct tm for all
3638 targets that provide localtime_r and need to invoke it.
3640 2009-04-20 Thomas Quinot <quinot@adacore.com>
3642 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
3643 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
3644 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
3646 2009-04-20 Robert Dewar <dewar@adacore.com>
3648 * sem_ch3.adb: Minor reformatting
3650 * lib-load.adb: Minor reformatting
3652 * sem_ch4.adb: Minor reformatting
3654 2009-04-20 Robert Dewar <dewar@adacore.com>
3656 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
3657 (equal values => False).
3659 2009-04-20 Ed Schonberg <schonberg@adacore.com>
3661 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
3662 to null procedures can be inlined unconditionally.
3664 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
3666 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
3667 non-addressable parameter passed by reference, do not convert the
3668 actual if its type is already the nominal type, unless it is of
3669 self-referential size.
3671 2009-04-20 Arnaud Charlet <charlet@adacore.com>
3673 * gnat_ugn.texi: Fix typos.
3675 2009-04-20 Robert Dewar <dewar@adacore.com>
3677 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
3678 Validate_Unchecked_Warnings to suppress warnings about size or
3679 alignment or extra bits if either type involved has pragma Warnings
3680 (Off) set for the type entity.
3682 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
3684 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
3685 a builtin type and give it a name.
3687 2009-04-17 Diego Novillo <dnovillo@google.com>
3689 * gcc-interface/misc.c (gnat_expand_expr): Remove.
3690 (LANG_HOOKS_EXPAND_EXPR): Remove.
3692 2009-04-17 Robert Dewar <dewar@adacore.com>
3694 * sem_ch3.adb: Minor reformatting
3696 2009-04-17 Pascal Obry <obry@adacore.com>
3698 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
3700 2009-04-17 Ed Schonberg <schonberg@adacore.com>
3702 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
3703 illegal constraints on type derived from formal discrete types.
3705 2009-04-17 Thomas Quinot <quinot@adacore.com>
3709 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3710 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3711 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
3712 g-socket.ads (GNAT.Sockets.Thin.C_Send,
3713 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
3714 Replace calls to send(2) with equivalent sendto(2) calls.
3715 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
3716 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
3717 report an error in that case. Factor code common to the two versions
3718 (datagram and stream) in common routine Stream_Write.
3720 2009-04-17 Robert Dewar <dewar@adacore.com>
3722 * exp_disp.adb: Minor reformatting
3723 Minor code reorganization (use Nkind_In)
3725 * prepcomp.adb: Minor reformatting
3727 * sem_ch3.adb: Minor reformatting
3729 * sem_res.adb: Minor comment addition
3731 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
3734 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
3735 setting Is_Referenced
3737 * types.ads: Minor reformatting
3739 2009-04-17 Arnaud Charlet <charlet@adacore.com>
3741 * gnat_ugn.texi: Initial documentation on binding generator.
3743 2009-04-17 Ed Schonberg <schonberg@adacore.com>
3745 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
3746 type extensions whose parent is a type with unknown discriminants.
3748 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
3749 aggregate has unknown discriminants, use the Underlying_Record_View to
3750 obtain the discriminants of the ancestor part.
3752 * exp_disp.adb (Build_Dispatch_Tables): Types that are
3753 Underlying_Record_Views share the dispatching information of the
3754 original record extension.
3756 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
3757 discriminants, propagate dispach table information to the
3758 Underlying_Record_View.
3760 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
3761 discriminants and declaration is not a completion, generate
3762 Underlying_Record_View to provide proper discriminant information to
3763 the front-end and to gigi.
3765 2009-04-17 Robert Dewar <dewar@adacore.com>
3767 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
3768 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
3769 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
3770 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
3771 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
3772 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
3773 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
3774 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
3775 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
3776 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
3777 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
3778 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
3779 s-conca3.ads: Remove unneeded pragma Warnings
3781 2009-04-17 Robert Dewar <dewar@adacore.com>
3783 * g-moreex.adb: Add comments.
3785 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
3787 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
3790 * prepcomp.adb: Add ??? comment
3792 * a-tasatt.adb: Minor reformatting
3794 * g-trasym-vms-alpha.adb: Add ??? comment
3796 * g-trasym-vms-ia64.adb: Add ??? comment
3798 * xoscons.adb: Minor reformatting
3800 * s-tassta.adb: Minor reformatting
3802 * s-scaval.adb: Add ??? comment
3804 * stand.ads: Minor code clean up (remove junk with of Namet)
3806 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
3807 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
3808 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
3809 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
3810 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
3811 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
3812 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
3813 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
3814 Warnings off pragmas.
3816 2009-04-17 Pascal Obry <obry@adacore.com>
3818 * initialize.c: Fix test for reallocating the arguments array.
3820 2009-04-17 Geert Bosch <bosch@adacore.com>
3822 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
3823 conversion truncate only for decimal fixed point types.
3825 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
3827 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
3830 2009-04-17 Robert Dewar <dewar@adacore.com>
3832 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
3833 Backwards_OK if either operand has an address clause.
3835 2009-04-17 Pascal Obry <obry@adacore.com>
3837 * initialize.c: Code clean up, use realloc.
3839 2009-04-17 Pascal Obry <obry@adacore.com>
3841 * initialize.c: Do not get Unicode command line if Unicode support not
3843 Add support for wildcard expansion for Unicode parameters on Win32.
3845 * mingw32.h: Add missing macros when Unicode support not activated.
3847 2009-04-17 Javier Miranda <miranda@adacore.com>
3849 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
3850 avoid generating code that references the Current_Master
3851 when compiling without tasks.
3853 2009-04-17 Vincent Celier <celier@adacore.com>
3855 * prj-attr.adb: New project level attribute Target
3857 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
3860 * prj.ads (Project_Configuration): New component Target
3862 2009-04-17 Thomas Quinot <quinot@adacore.com>
3864 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
3865 case for the case of an aggregate component, the attach call for the
3866 result is actually needed.
3868 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
3869 an array aggregate must be disabled if the component type requires
3872 * exp_ch3.adb: Minor reformatting
3874 2009-04-17 Bob Duff <duff@adacore.com>
3876 * output.ads (Indent,Outdent): New procedures for indenting the output.
3877 (Write_Char): Correct comment -- LF _is_ allowed.
3879 * output.adb (Indent,Outdent): New procedures for indenting the output.
3880 Keep track of the indentation level, and make sure it doesn't get too
3882 (Flush_Buffer): Insert spaces at the beginning of each line, if
3883 indentation level is nonzero.
3884 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
3886 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
3887 "Next_Col := 1;". Flush_Buffer does that.
3889 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
3890 controlled by the -gnatdc switch. It now occurs on entry/exit to the
3891 relevant analysis routines, and calls Indent/Outdent to make the
3892 indentation reflect the nesting level. Add "helper" routines, since
3893 otherwise lots of "return;" statements would skip the debugging output.
3895 2009-04-17 Arnaud Charlet <charlet@adacore.com>
3897 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
3898 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
3899 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
3901 2009-04-17 Thomas Quinot <quinot@adacore.com>
3903 * exp_aggr.adb: Minor code reorganization, no behaviour change.
3905 2009-04-17 Ed Schonberg <schonberg@adacore.com>
3907 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
3908 clause in a unit that is a package body or a subunit, when the previous
3909 clause appears in a spec or a parent.
3911 2009-04-17 Thomas Quinot <quinot@adacore.com>
3913 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
3915 * exp_ch7.adb: Minor reformatting
3917 2009-04-17 Bob Duff <duff@adacore.com>
3919 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
3920 allocator, check that the expression of the qualified expression obeys
3921 the constraints of the subtype of the qualified expression.
3923 2009-04-17 Thomas Quinot <quinot@adacore.com>
3925 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
3927 2009-04-17 Ed Schonberg <schonberg@adacore.com>
3929 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
3930 aggregate, using context imposed by subtype mark in allocator.
3932 2009-04-17 Pascal Obry <obry@adacore.com>
3934 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
3936 2009-04-17 Nicolas Roche <roche@adacore.com>
3938 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
3941 2009-04-17 Gary Dismukes <dismukes@adacore.com>
3943 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
3944 cover both calls and attribute references ("call" => "reference").
3946 2009-04-17 Ed Schonberg <schonberg@adacore.com>
3948 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
3949 type for which Storage_Size is set to 0 is legal in a pure unit.
3951 2009-04-17 Thomas Quinot <quinot@adacore.com>
3953 * exp_ch7.adb: Minor reformatting
3955 2009-04-17 Robert Dewar <dewar@adacore.com>
3957 * restrict.adb (Check_Restriction_No_Dependence): Don't check
3958 restriction if outside main extended source unit.
3960 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
3961 for parents of child units as well as the child unit itself.
3963 2009-04-17 Bob Duff <duff@adacore.com>
3965 * checks.ads: Minor comment fix
3967 * exp_aggr.ads: Minor comment fix
3969 2009-04-17 Nicolas Roche <roche@adacore.com>
3971 * adaint.c: Improve cross compiler detection and handling.
3973 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
3975 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
3977 2009-04-17 Pascal Obry <obry@adacore.com>
3979 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
3982 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
3983 value when no encoding form paramter is set on Text_IO services.
3985 * adaint.c: CurrentCodePage new variable on Windows.
3986 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
3989 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
3992 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
3993 environment variable value. Default is UTF-8.
3995 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
3996 fopen and freopen encoding parameter is now set to Unspecified.
3997 The default value is in this case UTF-8 (as it was before) but
3998 use the new macros that convert to/from the code page set
3999 at runtime (CurrentCodePage).
4001 * s-fileio.adb: When no encoding specified use Unspecified value.
4003 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4005 * atree.adb, atree.ads: Remove dead code.
4007 2009-04-17 Arnaud Charlet <charlet@adacore.com>
4009 * gcc-interface/Make-lang.in: Update dependencies.
4011 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4013 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
4014 illegal uses of incomplete types in formal parts and return types.
4016 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
4017 access to subprograms.
4019 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
4020 Taft-amendment types as the return type of an access_to_function type.
4022 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4023 type for access_to_subprograms. The check is performed on package exit.
4025 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4027 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
4029 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
4031 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
4033 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
4034 semantic units, because the handling of itypes in the copied tree
4035 requires semantic information that does not belong in atree.
4037 2009-04-17 Robert Dewar <dewar@adacore.com>
4039 * par-ch6.adb: Minor reformatting
4041 * prj.adb: Minor reformatting
4043 2009-04-17 Gary Dismukes <dismukes@adacore.com>
4045 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
4046 on protected subprogram bodies, so exclude the case where Pf_Flags is
4047 Pf_Decl_Pbod from the error check.
4049 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
4050 indicators on subprograms in protected bodies, and proceed with parsing
4053 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
4054 subprograms from the check for primitiveness on subprograms with
4055 overriding indicators.
4056 (Check_Overriding_Indicator): Include protected subprograms in the
4057 style check for missing overriding indicators.
4059 2009-04-17 Tristan Gingold <gingold@adacore.com>
4061 * init.c: Fix stack checking for x86 Darwin.
4063 2009-04-17 Vincent Celier <celier@adacore.com>
4065 * prj-attr.adb: New project level attribute Object_File_Suffix
4068 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
4070 (Process_Compiler): Process attribute Object_File_Suffix
4072 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
4073 platform suffix, when specified.
4075 * prj.ads (Language_Config): New component Object_File_Suffix,
4076 defaulted to No_Name.
4077 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
4079 * snames.ads-tmpl: New standard name Object_File_Suffix
4081 2009-04-17 Robert Dewar <dewar@adacore.com>
4083 * gnat_rm.texi: Add documentation about No_Streams restriction
4085 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
4086 attributes when checking No_Streams restriction.
4088 2009-04-17 Thomas Quinot <quinot@adacore.com>
4090 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
4092 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
4093 missing calls to RE_Request_Destroy to deallocate request objects after
4096 2009-04-17 Nicolas Setton <setton@adacore.com>
4098 * link.c: Fix support for passing a response file under Darwin.
4100 2009-04-17 Emmanuel Briot <briot@adacore.com>
4102 * prj.adb (Free): new subprogram.
4104 2009-04-17 Ed Schonberg <schonberg@adacore.com>
4106 * sem_ch3.adb: additional initialization on incomplete subtypes.
4108 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
4109 part and one of the formals is an incomplete tagged type, attach to
4110 list of private dependends of the type for later validation.
4112 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
4113 primitive operations of a Taft-amendmment type.
4115 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
4116 type. The check is performed on package exit, possibly after the
4117 subprogram is frozen.
4119 2009-04-17 Vincent Celier <celier@adacore.com>
4121 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
4122 before looking for source directories, but make sure that there are nil
4123 if they are not explicitely declared and there is explicitely no
4124 sources in the project.
4126 2009-04-17 Pascal Obry <obry@adacore.com>
4128 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
4130 * init.c: Fix minor typo and style fix.
4132 2009-04-17 Robert Dewar <dewar@adacore.com>
4134 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
4136 * sem_attr.adb (Analyze_Attribute, case Address): Use
4137 PE_Address_Of_Intrinsic.
4139 * types.ads: Add PE_Address_Of_Intrinsic
4141 * types.h: Add PE_Address_Of_Intrinsic
4143 2009-04-17 Nicolas Setton <setton@adacore.com>
4145 * gcc-interface/Makefile.in: Under darwin, build shared libraries
4146 with install_name starting with "@rpath/".
4148 2009-04-17 Nicolas Setton <setton@adacore.com>
4150 * link.c: Add darwin section
4152 2009-04-16 Robert Dewar <dewar@adacore.com>
4154 * g-pehage.adb: Minor reformatting
4156 * sem_ch12.adb: Minor reformatting
4158 * exp_dist.adb: Minor reformatting
4160 * bindgen.adb: Minor style fixes.
4162 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4164 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
4165 indexed components to the case where the prefix is a static string
4168 2009-04-16 Javier Miranda <miranda@adacore.com>
4170 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
4171 objects avoid any further expansion of the expression initializing the
4174 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4176 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
4177 that hides an outer homograph, make that homograph invisible when
4178 analyzing the actuals, to to prevent illegal direct visibility on it.
4180 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
4182 * g-pehage.adb (Initialize): Fix off-by-one error.
4184 2009-04-16 Tristan Gingold <gingold@adacore.com>
4186 * init.c: Detect real stack overflow on Darwin.
4188 * system-darwin-x86.ads: Use stack probing on darwin x86.
4190 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4192 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
4193 take the address of an intrinsic subprogram.
4195 2009-04-16 Arnaud Charlet <charlet@adacore.com>
4197 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
4198 for the targets where GNAT.Traceback.Symbolic is not supported.
4200 2009-04-16 Vincent Celier <celier@adacore.com>
4202 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
4204 * g-trasym.ads: Update comments.
4206 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
4208 * tracebak.c (STOP_FRAME): Verify validity of the current address
4209 before dereferencing.
4211 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4213 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
4214 the original location of the index expressions and the index subtypes,
4215 to prevent spurious out-of-scope references in gigi.
4217 2009-04-16 Tristan Gingold <gingold@adacore.com>
4219 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
4220 Add support for stack checking on darwin.
4222 2009-04-16 Vincent Celier <celier@adacore.com>
4224 * prj-attr.adb: New attribute Runtime_Source_Dir
4226 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
4227 attribute Runtime_Source_Dir.
4228 (Check_Naming_Schemes): Give default values to out parameters to avoid
4231 * prj.ads (Language_Config): New component Runtime_Source_Dir
4233 * snames.ads-tmpl: New standard name Runtime_Source_Dir
4235 2009-04-16 Pascal Obry <obry@adacore.com>
4237 * adaint.h, adaint.c (__gnat_rmdir): New routine.
4238 Simple wrapper routines used to convert to proper encoding on
4241 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
4243 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
4246 2009-04-16 Pascal Obry <obry@adacore.com>
4248 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
4250 2009-04-16 Thomas Quinot <quinot@adacore.com>
4252 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
4253 integrated preprocessor.
4255 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
4256 (Initialize): Split into two subprograms, Initialize (to be called
4257 prior to compiler command line processing) and Setup_Hooks (to be called
4258 later on when the first source file is loaded).
4260 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
4261 Add call to Prep.Initialize.
4263 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
4264 to Prep.Setup_Hooks.
4266 2009-04-16 Pascal Obry <obry@adacore.com>
4268 * adaint.h, adaint.c (__gnat_chdir): New routine.
4269 Simple wrapper routines used to convert to proper encoding on
4272 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
4274 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
4276 2009-04-16 Quentin Ochem <ochem@adacore.com>
4278 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
4281 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
4283 * a-convec.ads (Is_Empty): Mark inline.
4285 2009-04-16 Nicolas Roche <roche@adacore.com>
4287 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
4289 2009-04-16 Thomas Quinot <quinot@adacore.com>
4291 * prepcomp.adb: Minor reformatting
4293 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
4295 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
4296 Access_Subprogram types can also be imported.
4297 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
4300 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4302 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
4303 preserve homonym chain when the declaration is rewritten into a
4304 renaming declaration, in order to preserve visibility structure.
4306 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
4308 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
4309 taken into account for VM targets.
4311 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
4313 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
4315 (Year_Week_In_Year): New routine which contains the original code from
4316 Week_In_Year. Add the missing special case for January 1st falling on
4319 2009-04-16 Thomas Quinot <quinot@adacore.com>
4321 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
4322 actual type, use the base type to build the To_Any function.
4323 (Build_From_Any_Function): Remove junk, useless subtype conversion.
4325 2009-04-16 Thomas Quinot <quinot@adacore.com>
4327 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
4328 restrict.adb: Minor code reorganization (use
4329 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
4331 2009-04-16 Bob Duff <duff@adacore.com>
4333 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
4336 2009-04-16 Thomas Quinot <quinot@adacore.com>
4338 * sem_ch4.adb: Minor reformatting
4340 * adaint.c: Remove junk duplicated code.
4342 * sem_ch3.adb: Minor reformatting
4344 * exp_dist.adb: Minor comment rewording
4346 2009-04-16 Robert Dewar <dewar@adacore.com>
4348 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
4351 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4353 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
4354 usable before calling Add_One_Interp, to resolve spurious ambiguities.
4356 2009-04-16 Robert Dewar <dewar@adacore.com>
4358 * Make-lang.in: Add entries for s-conca?.o
4360 * Makefile.rtl: Add entries for s-conca?
4362 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
4363 of concatenation expansion
4365 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
4366 string cases instead of expanding assignments inline.
4368 * opt.ads (Optimize_Size): New flag
4370 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
4371 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
4372 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
4373 s-conca9.adb, s-conca9.ads: New file.
4375 2009-04-16 Robert Dewar <dewar@adacore.com>
4377 * exp_ch6.adb: Add comments
4379 * rtsfind.ads: Add entries for s-conca? routines
4381 2009-04-16 Arnaud Charlet <charlet@adacore.com>
4383 * gcc-interface/Make-lang.in: Update dependencies.
4385 * gcc-interface/Makefile.in: Update translation for vms.
4387 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4389 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
4390 and made global, to be used when installing parents of a child
4391 instance, to provide mappings for entities declared in formal packages
4392 of ancestor units. Now called from Install_Formal_Packages.
4394 2009-04-16 Doug Rupp <rupp@adacore.com>
4396 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
4397 notation for clarity.
4399 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4400 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
4401 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
4402 (Initialize): Initialize Known_Tasks with Environment task.
4404 * s-taskin.ads (Task_States): Move new states to end for the sake of
4407 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
4409 2009-04-16 Ed Schonberg <schonberg@adacore.com>
4411 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
4412 operation has an inline pragma, propagate the flag to the internal
4413 unprotected subprogram.
4415 2009-04-16 Doug Rupp <rupp@adacore.com>
4417 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
4418 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
4419 s-taprop-hpux-dce.adb, s-taprop-posix.adb
4420 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
4422 * s-taprop-vms.adb (Enter_Task): Likewise.
4423 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
4425 * s-tassta.adb (Activate_Tasks): After task creation set state to
4426 Activating, vice Runnable. Initialize Known_Tasks, moved here from
4427 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
4428 Set state to Runnable after above.
4429 (Task_Wrapper): Set Debug_Event_Run. In exception block set
4430 Debug_Event_Terminated.
4432 * s-taskin.ads (Task_States): Add new states Activiting and
4433 Activator_Delay_Sleep.
4434 (Bit_Array, Debug_Event_Array): New types.
4435 (Global_Task_Debug_Event_Set: New flag.
4436 (Common_ATCB): New field Debug_Events.
4438 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
4440 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
4443 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
4444 Activating and when Acceptor_Delay_Sleep.
4446 * s-tasdeb.ads: Add constants for Debug_Events.
4447 (Debug_Event_Kind_Type): New subtype.
4448 (Signal_Debug_Event): New subprogram.
4450 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
4452 2009-04-16 Thomas Quinot <quinot@adacore.com>
4454 * sem_elim.adb: Minor reformatting
4456 * freeze.adb: Minor reformatting
4458 * exp_ch4.adb: Minor reformatting
4460 2009-04-16 Emmanuel Briot <briot@adacore.com>
4462 * prj-nmsc.adb (Path_Name_Of): fix memory leak
4464 2009-04-16 Robert Dewar <dewar@adacore.com>
4466 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
4468 2009-04-16 Vincent Celier <celier@adacore.com>
4470 * fmap.adb (Initialize): Show the current line when the mapping file
4471 is detected as "incorrectly formatted".
4473 2009-04-16 Robert Dewar <dewar@adacore.com>
4475 * sem_ch12.adb: Minor reformatting
4477 * sem_ch5.adb: Minor comment addition
4479 * sem_util.adb: Minor reformatting
4481 * sinput-p.adb: Minor reformatting
4482 Add missing pragma Warnings (On)
4484 2009-04-16 Ed Falis <falis@adacore.com>
4486 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
4488 2009-04-16 Vincent Celier <celier@adacore.com>
4490 * ali-util.adb: Minor comment spelling error fix
4492 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
4494 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
4495 generate an assignment loop in case of overlap.
4497 2009-04-16 Olivier Hainque <hainque@adacore.com>
4499 * gnat_ugn.texi (gnatmem description): Make it explicit that
4500 gnatmem is designed to work in association with static runtime
4503 2009-04-16 Thomas Quinot <quinot@adacore.com>
4505 * sem_type.adb: Minor reformatting
4507 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
4509 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
4510 concerning return codes of gettimeofday and return value check.
4512 2009-04-16 Ed Falis <falis@adacore.com>
4514 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
4515 body can be renaming of imported routines.
4517 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
4519 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
4522 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
4524 * exp_ch9.adb: Comment improvements.
4525 (Build_Entry_Family_Name): Add parentheses around the index of a entry
4528 2009-04-15 Bob Duff <duff@adacore.com>
4530 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
4531 "while X /= null loop" where X is unchanged inside the loop. We were
4532 not warning in this case, because of the pointers -- we feared that the
4533 loop variable could be updated via a pointer, if there are any pointers
4534 around the place. But that is impossible in this case.
4536 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
4537 the case of dereferences. In X.all, X cannot be an l-value. We now
4538 catch that case (and implicit dereferences, too).
4540 2009-04-15 Vincent Celier <celier@adacore.com>
4542 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
4544 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4546 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
4548 (Analyze_Package_Instantiation): If generic unit in child instance is
4549 the same as generic unit in parent instance, look for an outer homonym
4550 to locate the desired generic.
4552 2009-04-15 Bob Duff <duff@adacore.com>
4554 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
4555 warnings unless the loop comes from source, because checking generated
4556 loops is a waste of time, and makes it harder to debug
4557 Check_Infinite_Loop_Warning.
4559 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
4560 tested in the while loop is a renaming, do not warn. Otherwise, we get
4561 false alarms, because it's usually renaming something that we can't
4562 deal with (an indexed component, a global variable, ...).
4564 * gnat_rm.texi: Fix typo
4566 2009-04-15 Thomas Quinot <quinot@adacore.com>
4568 * sem_ch6.adb: Minor reformatting
4570 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
4572 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
4573 immediate parent of the controlled function call is a component
4576 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4578 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
4579 corresponding class-wide type is also in use.
4581 2009-04-15 Thomas Quinot <quinot@adacore.com>
4583 * frontend.adb: Minor comment fix
4585 2009-04-15 Robert Dewar <dewar@adacore.com>
4587 * gnatchop.adb (BOM_Length): New global variable
4588 (Write_Unit): Add new parameter Write_BOM
4589 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
4592 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
4594 2009-04-15 Geert Bosch <bosch@adacore.com>
4596 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
4597 (Backend_Overflow_Checks): Set to True.
4599 2009-04-15 Gary Dismukes <dismukes@adacore.com>
4601 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
4602 keyword is given in a record extension.
4604 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
4606 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
4607 of a controlled function call in the context of a record aggregate.
4608 This does not apply to array aggregates since the call will be expanded
4611 2009-04-15 Ed Falis <falis@adacore.com>
4613 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
4614 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
4615 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
4616 s-osinte-vxworks* and s-vxwext*.
4618 2009-04-15 Arnaud Charlet <charlet@adacore.com>
4620 * gcc-interface/Make-lang.in: Update dependencies.
4622 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
4625 2009-04-15 Robert Dewar <dewar@adacore.com>
4627 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
4628 of node for location for warning messages.
4630 * gnatchop.adb: Minor reformatting
4632 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4634 * exp_ch6.adb: additional guard for renaming declarations for in
4635 parameters of an array type.
4637 2009-04-15 Robert Dewar <dewar@adacore.com>
4639 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
4640 in case they were rewritten by expander (Force_Evaluation).
4642 * targparm.adb (Get_Target_Parameters): Correct check for
4643 Suppress_Exception_Locations.
4645 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4647 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
4648 inlined is of an array type that is not bit-packed, use a renaming
4649 declaration to capture its value, rather than a constant declaration.
4651 2009-04-15 Robert Dewar <dewar@adacore.com>
4653 * rtsfind.adb: Minor reformatting.
4655 2009-04-15 Emmanuel Briot <briot@adacore.com>
4657 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
4658 Restore, and free the saved context.
4660 2009-04-15 Gary Dismukes <dismukes@adacore.com>
4662 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
4663 for illegal private extension from a synchronized interface parent in
4664 front of check for illegal limited extension so that limited extension
4665 from a synchronized interface will be rejected.
4666 (Check_Ifaces): Check that a private extension that has a synchronized
4667 interface as a progenitor must be explicitly declared synchronized.
4668 Also check that a record extension cannot derive from a synchronized
4671 2009-04-15 Pascal Obry <obry@adacore.com>
4673 * adaint.h (__gnat_unlink): Add spec.
4674 (__gnat_rename): Likewise.
4676 2009-04-15 Vincent Celier <celier@adacore.com>
4678 * prj-nmsc.adb: Minor spelling error corrections in error messages
4680 2009-04-15 Robert Dewar <dewar@adacore.com>
4682 * sinfo.ads: Minor comment update
4684 * opt.ads: Minor comment updates
4686 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
4689 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4691 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
4692 that generates the code needed to update a dispatch table when a
4693 primitive operation is declared with a subprogram body without previous
4694 spec. Insertion of the generated code is responsibility of the caller.
4695 (Make_DT): When building static tables, append the code created by
4696 Register_Primitive to update a secondary table after it has been
4699 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
4701 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
4702 on an overriding operation that implements an interface operation only
4703 if not building static dispatch tables.
4705 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
4707 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
4708 does not cause overflow when converted to Duration. Use the safe value
4709 as the maximum allowable time delay..
4711 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
4713 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
4714 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
4715 translated to "-j 2".
4717 2009-04-15 Bob Duff <duff@adacore.com>
4719 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
4720 with_clauses, to avoid code duplication. Change this processing so we
4721 always add a with_clause on the main unit if needed.
4723 2009-04-15 Pascal Obry <obry@adacore.com>
4725 Add support for Win32 native encoding for delete/rename routines.
4727 * adaint.c (__gnat_unlink): New routine.
4728 (__gnat_rename): New routine.
4729 Simple wrapper routines used to convert to proper encoding on
4732 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
4733 call to the C library.
4735 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
4737 2009-04-15 Robert Dewar <dewar@adacore.com>
4739 * s-tassta.adb: Minor reformatting
4741 2009-04-15 Robert Dewar <dewar@adacore.com>
4743 * frontend.adb (Frontend): Set proper default for
4744 Warn_On_Non_Local_Exception.
4746 * opt.ads (Exception_Handler_Encountered): New flag
4747 (No_Warn_On_Non_Local_Exception): New flag
4749 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
4751 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
4752 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
4754 2009-04-15 Cyrille Comar <comar@adacore.com>
4756 * s-tassta.adb, a-exextr.adb, a-elchha.adb
4757 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
4758 message when exception traces are active since it would generate
4759 redundant information.
4760 (Exception_Traces.Notify_Exception): put message output by a critical
4761 section to avoid unsynchronized output.
4762 (Trace_Unhandled_Exception_In_Task): put message output by a critical
4763 section to avoid unsynchronized output.
4765 2009-04-15 Emmanuel Briot <briot@adacore.com>
4767 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
4768 (Free): New subprogram.
4770 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
4772 * a-calend.adb: Add new constant Nanos_In_Four_Years.
4773 (Formatting_Operations.Time_Of): Change the way four year chunks of
4774 nanoseconds are added to the intermediate result.
4776 2009-04-15 Nicolas Setton <setton@adacore.com>
4778 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
4779 does not need to wait for a carriage return.
4781 2009-04-15 Tristan Gingold <gingold@adacore.com>
4783 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
4786 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4788 * freeze.adb (Freeze_Entity): improve error message for improper use of
4790 Diagnose additional illegal uses of incomplete types in formal parts.
4791 appearing in formal parts.
4793 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
4795 2009-04-15 Robert Dewar <dewar@adacore.com>
4797 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
4799 2009-04-15 Nicolas Roche <roche@adacore.com>
4801 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
4804 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
4806 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
4808 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4810 * sem_ch4.adb: improve error message on exponentiation.
4812 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
4814 * a-calend.adb: Move constant Epoch_Offset from package
4815 Conversion_Operations to top level.
4816 (Delay_Operations.To_Duration): Define a constant which represents
4817 "end of time" and use it as a guard against very distant delay dates.
4818 Protect the code against overflow when performing the origin shift to
4821 2009-04-15 Robert Dewar <dewar@adacore.com>
4823 * sem_prag.adb: Minor reformatting.
4825 * sem_type.adb: Minor reformatting
4827 2009-04-15 Javier Miranda <miranda@adacore.com>
4829 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
4830 support to check eliminated subprograms.
4832 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
4834 * sem_elim.adb (Set_Eliminated): Add support for elimination of
4835 dispatching subprograms.
4837 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
4838 operations. Initialize with "null" the slots of eliminated dispaching
4840 (Write_DT): Add output for eliminated primitives.
4842 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
4844 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4846 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
4847 the second is redundant, regardless of scopes.
4849 2009-04-15 Vincent Celier <celier@adacore.com>
4851 * prj-nmsc.adb (Get_Directories): Check for sources before checking
4852 the object directory as when there are no sources, they may not be any
4855 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
4856 directory, when there are no exec directory.
4858 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4860 * sem_type.adb (Remove_Conversions): In order to resolve spurious
4861 ambiguities, refine removal of universal interpretations from complex
4862 expressions with literal arguments, when some numeric operators have
4863 been declared abstract.
4865 2009-04-15 Ed Falis <falis@adacore.com>
4867 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
4868 and backward compatibility for targets using probing for stack overflow
4870 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4872 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
4873 after any declaration, including renaming declarations.
4875 2009-04-15 Arnaud Charlet <charlet@adacore.com>
4877 * gcc-interface/Make-lang.in: Update dependencies.
4879 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
4880 Update xenomai target pairs.
4882 2009-04-15 Javier Miranda <miranda@adacore.com>
4884 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4886 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
4887 functions returning anonymous access to class-wide limited types. Mark
4888 also the containing scope as a task master.
4890 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
4891 limited-withed packages. Required to restore their visibility after
4892 processing packages associated with implicit with-clauses.
4894 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
4895 associated with return statements because this work is now done by
4896 Check_Anonymous_Return.
4897 (Build_Master): Code cleanup.
4899 2009-04-15 Thomas Quinot <quinot@adacore.com>
4901 * sem_warn.ads: Minor reformatting
4903 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4905 * sem_ch3.adb: better error message for illegal interfaces
4907 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
4908 formal is an incomplete type from a limited_with clause.
4910 2009-04-15 Vincent Celier <celier@adacore.com>
4912 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
4913 Externally_Built indicating if the project is externally built. If it
4914 is, and --subdirs is specified, but the subdir does not exist, look
4915 for the specified directory, without the subdir.
4917 2009-04-15 Gary Dismukes <dismukes@adacore.com>
4919 * a-tasatt.adb: Fix typo, plus minor reformatting
4921 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
4923 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
4925 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4927 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
4928 private extension whose parent is a synchronized interface carries an
4929 explicit synchronized keyword.
4931 2009-04-15 Thomas Quinot <quinot@adacore.com>
4933 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
4934 instantiate generic shared object package with the corresponding
4937 2009-04-15 Arnaud Charlet <charlet@adacore.com>
4939 * system-linux-sparc.ads: Remove obsolete entries.
4941 2009-04-15 Thomas Quinot <quinot@adacore.com>
4943 * s-tasuti.ads: Add ??? comment
4945 2009-04-15 Ed Schonberg <schonberg@adacore.com>
4947 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
4948 type even if the designated type comes from a limited_with clause, to
4949 ensure that the symbol for the finalization list of the access type is
4952 2009-04-10 Robert Dewar <dewar@adacore.com>
4954 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
4955 for warning suppression.
4957 2009-04-10 Ed Schonberg <schonberg@adacore.com>
4959 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
4960 identical, there is no redudancy to check.
4962 2009-04-10 Gary Dismukes <dismukes@adacore.com>
4964 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
4965 calls initializing SS_Allocator (which is initialized in following
4967 (Expand_Simple_Function_Return): Add comment about False value for
4968 Comes_From_Source on secondary-stack allocator.
4970 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
4971 (Build_Entry_Name): Add comment.
4973 2009-04-10 Robert Dewar <dewar@adacore.com>
4975 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
4977 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
4978 bound tested, since this is now done more generally in Sem_Res.
4980 * sem_res.adb (Resolve_Comparison_Op): Add call to
4981 Check_Lower_Bound_Tested.
4982 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
4984 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
4985 (Low_Bound_Tested): New name for Low_Bound_Known flag
4987 * exp_ch5.adb: Minor reformatting
4990 Add comments on copying the Comes_From_Source flag for allocators
4993 Add comments on copying the Comes_From_Source flag for allocators
4995 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
4996 Comes_From_Source flag from old allocator to new one.
4998 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5000 * sem_ch6.ads: Address missing documentation query
5002 2009-04-10 Vincent Celier <celier@adacore.com>
5005 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
5006 and Response_File_Switches.
5008 * prj-nmsc.adb (Process_Linker): Process new attributes
5009 Max_Command_Line_Length, Response_File_Format and
5010 Response_File_Switches.
5012 * prj.ads (Response_File_Format): New enumeration type
5013 (Project_Configuration): New componants Max_Command_Line_Length,
5014 Resp_File_Format and Resp_File_Options.
5016 * snames.ads-tmpl: Add new standard names for linking response files
5017 for gprbuild: GNU, None, Object_List, Option_List,
5018 Max_Command_Line_Length, Response_File_Format and
5019 Response_File_Switches.
5021 2009-04-10 Geert Bosch <bosch@adacore.com>
5023 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
5024 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
5025 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
5026 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
5027 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
5028 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
5029 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
5030 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
5031 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
5032 system-vxworks-arm.ads, system-vxworks-m68k.ads,
5033 system-vxworks-mips.ads, system-vxworks-ppc.ads,
5034 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
5035 (Backend_Overflow_Checks): Set to True.
5037 2009-04-10 Thomas Quinot <quinot@adacore.com>
5039 * exp_attr.adb: Minor reformatting
5041 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5043 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
5044 analyze the expression for a postcondition, even if the compiler mode
5047 2009-04-10 Robert Dewar <dewar@adacore.com>
5049 * sem_aux.adb: Minor reformatting
5051 2009-04-10 Ed Falis <falis@adacore.com>
5053 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
5055 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
5057 2009-04-10 Thomas Quinot <quinot@adacore.com>
5059 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
5060 undocumented formal.
5063 * a-direio.ads: Fix typo in comment
5065 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
5066 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
5067 Use uniform phrasing for comment at start of subprogram body.
5069 * xsnamest.adb: Add note to explain why we use specific names for the
5070 newly generated files instead of generating snames.{ads,adb,h} directly
5072 2009-04-10 Sergey Rybin <rybin@adacore.com>
5075 Add qualifier for new gnatstub option '--no-exception'
5078 Add the description of the new gnatstub option '--no-exception'
5080 2009-04-10 Robert Dewar <dewar@adacore.com>
5082 * rtsfind.adb: Minor reformatting
5084 2009-04-10 Thomas Quinot <quinot@adacore.com>
5086 * sem_disp.adb: Minor reformatting.
5087 Add comment pointing to RM clause for the case of warning against a
5088 (failed) attempt at declaring a primitive operation elsewhere than in a
5091 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5093 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
5094 an actual for a previous formal package of the current instance.
5096 2009-04-10 Bob Duff <duff@adacore.com>
5098 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
5099 them first, rather than on the extended main unit.
5101 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5103 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
5104 specification of full view carries a null exclusion indicator, create
5105 an itype for it, to check for conformance with partial view.
5107 2009-04-10 Bob Duff <duff@adacore.com>
5109 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
5111 * rtsfind.adb: Minor comment changes, and remove useless code.
5113 * sinfo.ads: Add ??? comment.
5115 2009-04-10 Vincent Celier <celier@adacore.com>
5117 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
5119 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5121 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
5122 type is a synchronized type, retrieve tag information from the
5123 corresponding record, which has the dispatch table link.
5125 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
5127 * g-comlin.adb (Group_Analysis): Take care of switches that might be
5128 decomposed afterwards, but are present as-is in the command line
5129 configuration, and thus should be kept as-is.
5131 2009-04-10 Robert Dewar <dewar@adacore.com>
5133 * gnat_rm.texi: Document that postconditions are tested on implicit
5136 * sem_aux.adb: Minor reformatting
5138 2009-04-10 Gary Dismukes <dismukes@adacore.com>
5140 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
5143 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
5144 Null_Exclusion_In_Return_Present when an access-to-function type has a
5145 result type with an explicit not null.
5147 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
5148 given on the result type, then create a null-excluding itype for the
5151 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
5152 the case where a null exclusion is imposed on a named access type.
5153 (Analyze_Subprogram_Specification): Push and pop the scope of the
5154 function around the call to Analyze_Return_Type in the case of no
5155 formals, for consistency with handling when formals are present
5156 (Process_Formals does this). Ensures that any itype created for the
5157 return type will be associated with the proper scope.
5159 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
5160 exclusion is given on a generic function's result type, then create a
5161 null-excluding itype for the generic function.
5162 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
5163 for an actual for a formal in object according to the setting on the
5164 formal. Ensures null exclusion checks are done when the association is
5167 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
5168 N_Access_Function_Definition.
5170 * sinfo.adb: Add Get_ and Set_ operations for
5171 Null_Exclusion_In_Return_Present.
5173 2009-04-10 Bob Duff <duff@adacore.com>
5175 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
5176 call to the _Postconditions procedure in the case of implicit returns
5177 from analysis to expansion. This eliminates some duplicated code. Use
5178 the Postcondition_Proc to find the identity of this procedure during
5181 2009-04-10 Robert Dewar <dewar@adacore.com>
5183 * sem_ch6.adb: Minor code clean up.
5185 * einfo.ads, sem_attr.adb: Minor comment fixes.
5187 2009-04-10 Robert Dewar <dewar@adacore.com>
5189 * sem_ch8.adb: Minor reformatting
5191 2009-04-10 Robert Dewar <dewar@adacore.com>
5193 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
5196 * sem_ch6.adb: Minor code clean up.
5198 2009-04-10 Robert Dewar <dewar@adacore.com>
5200 * mlib-tgt-specific-xi.adb: Minor reformatting
5202 2009-04-10 Bob Duff <duff@adacore.com>
5204 * einfo.ads: Minor comment fixes
5206 2009-04-10 Vincent Celier <celier@adacore.com>
5208 * snames.ads-tmpl: Remove names that are no longer used in the
5210 Mark specifically those that are used only in gprbuild
5212 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
5214 * init.c: Adjust EH support code on Alpha/Tru64.
5216 2009-04-10 Bob Duff <duff@adacore.com>
5218 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
5219 procedure on every path that could return implicitly (not via a return
5220 statement) from a procedure.
5222 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5224 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
5225 valid scope for a task declarations and therefore for a master id.
5227 2009-04-10 Robert Dewar <dewar@adacore.com>
5229 * sem_aux.adb: Minor reformatting
5231 2009-04-10 Vincent Celier <celier@adacore.com>
5233 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
5235 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
5236 (Set_Obsolescent_Check): New procedure to change the value of
5237 Obsolescent_Check_Flag.
5239 * scn.ads (Set_Obsolescent_Check): New procedure to control
5242 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
5243 obsolescent features while preprocessing.
5245 2009-04-10 Thomas Quinot <quinot@adacore.com>
5247 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
5248 generated files on all platforms.
5250 2009-04-10 Robert Dewar <dewar@adacore.com>
5252 * sem_aux.adb: Minor reformatting
5254 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5256 * sem_ch3.adb (Access_Definition): Handle properly the case of a
5257 protected function with formals that returns an anonymous access type.
5259 2009-04-10 Thomas Quinot <quinot@adacore.com>
5261 * sem_disp.adb: Minor reformatting
5263 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
5265 * seh_init.c: Do not use the 32-bit specific implementation of
5266 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
5269 2009-04-10 Jose Ruiz <ruiz@adacore.com>
5271 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
5272 a '/' at the end so we better use the complete target name to determine
5273 whether it is a PowerPC 55xx target.
5275 2009-04-10 Thomas Quinot <quinot@adacore.com>
5277 * sem_eval.adb: Minor reformatting
5279 2009-04-10 Thomas Quinot <quinot@adacore.com>
5281 * snames.h, snames.ads, snames.adb: Remove files, now generated from
5284 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
5287 * xsnamest.adb: New file.
5289 * gcc-interface/Make-lang.in: New target for automated generation of
5290 snames.ads, snames.adb and snames.h
5292 2009-04-10 Tristan Gingold <gingold@adacore.com>
5294 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
5295 avoid compile time warnings.
5296 Do not add gcc/config in include search list while compiling the RTS.
5297 Pragma Thread_Local_Storage is available on any target.
5299 2009-04-10 Bob Duff <duff@adacore.com>
5301 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
5303 2009-04-10 Tristan Gingold <gingold@adacore.com>
5305 * init.c: Install signal handler on Darwin.
5307 2009-04-10 Robert Dewar <dewar@adacore.com>
5309 * sem_prag.adb: Minor reformatting
5311 * exp_util.adb (Make_Non_Empty_Check): New function
5312 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
5313 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
5315 2009-04-10 Arnaud Charlet <charlet@adacore.com>
5317 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
5319 2009-04-10 Jose Ruiz <ruiz@adacore.com>
5321 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
5322 tool prefix for AVR and PowerPC 55xx targets.
5324 2009-04-10 Robert Dewar <dewar@adacore.com>
5326 * sem_warn.adb (Within_Postcondition): New function
5327 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
5329 2009-04-10 Robert Dewar <dewar@adacore.com>
5331 * sem_warn.adb: Minor reformatting
5333 * make.adb: Minor reformatting.
5335 2009-04-10 Gary Dismukes <dismukes@adacore.com>
5337 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
5338 entity and the scope is a subprogram, retrieve the Sloc of the
5339 subprogram's body rather than using the sloc of the spec, for better
5340 line-stepping behavior in gdb.
5341 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
5342 controller, use the Sloc of the first declaration of the containing list
5343 rather than that of the node that triggered creation of the list
5346 2009-04-10 Vincent Celier <celier@adacore.com>
5348 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
5349 to avoid gcc warning.
5351 2009-04-10 Robert Dewar <dewar@adacore.com>
5353 * g-comlin.adb: Add ??? comment
5355 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5357 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
5358 unreferenced entities for a package with no visible declarations.
5360 2009-04-10 Robert Dewar <dewar@adacore.com>
5362 * exp_ch9.adb: Minor reformatting
5364 2009-04-10 Thomas Quinot <quinot@adacore.com>
5366 * sem_prag.adb: Minor reformatting
5368 2009-04-10 Vincent Celier <celier@adacore.com>
5371 (Check_Library_Attributes): For a project qualified as a library project
5372 that is not a library project, indicate in the error message which
5373 attributes are missing (Library_Dir and/or Library_Name).
5375 2009-04-10 Bob Duff <duff@adacore.com>
5377 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
5378 generated nodes, because it might confuse various circuits in the FE.
5380 2009-04-10 Ed Schonberg <schonberg@adacore.com>
5382 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
5383 of pragma. It will be recopied and analyzed when used in call to
5386 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
5387 initialization operations and recognize use of it in procedure calls
5390 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
5391 argument, because it may have side-effects.
5393 * exp_ch2.adb: Remove obsolete comments on default functions
5395 2009-04-10 Jose Ruiz <ruiz@adacore.com>
5397 * adaint.c (RTX section): Do for RTX the same thing as we do for
5398 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
5400 2009-04-10 Robert Dewar <dewar@adacore.com>
5402 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
5404 * sem_res.adb (Resolve_Call): Fix test for
5405 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
5406 a non-dynamic scope).
5408 2009-04-10 Robert Dewar <dewar@adacore.com>
5410 * make.adb: Add comment.
5413 2009-04-10 Nicolas Setton <setton@adacore.com>
5415 * s-osprim-darwin.adb: New file.
5417 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
5419 2009-04-10 Thomas Quinot <quinot@adacore.com>
5421 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
5423 2009-04-09 Nick Clifton <nickc@redhat.com>
5425 * adadecode.h: Change copyright header to refer to version
5426 3 of the GNU General Public License with version 3.1 of the
5427 GCC Runtime Library Exception and to point readers at the
5428 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
5430 * 9drpc.adb: Likewise.
5431 * a-assert.adb: Likewise.
5432 * a-astaco.adb: Likewise.
5433 * a-calari.adb: Likewise.
5434 * a-calcon.adb: Likewise.
5435 * a-calcon.ads: Likewise.
5436 * a-caldel.ads: Likewise.
5437 * a-calend-vms.adb: Likewise.
5438 * a-calend-vms.ads: Likewise.
5439 * a-calend.adb: Likewise.
5440 * a-calend.ads: Likewise.
5441 * a-calfor.adb: Likewise.
5442 * a-catizo.adb: Likewise.
5443 * a-cdlili.adb: Likewise.
5444 * a-cdlili.ads: Likewise.
5445 * a-cgaaso.adb: Likewise.
5446 * a-cgaaso.ads: Likewise.
5447 * a-cgarso.adb: Likewise.
5448 * a-cgcaso.adb: Likewise.
5449 * a-chacon.adb: Likewise.
5450 * a-chacon.ads: Likewise.
5451 * a-chahan.adb: Likewise.
5452 * a-chahan.ads: Likewise.
5453 * a-chlat9.ads: Likewise.
5454 * a-chtgke.adb: Likewise.
5455 * a-chtgke.ads: Likewise.
5456 * a-chtgop.adb: Likewise.
5457 * a-chtgop.ads: Likewise.
5458 * a-chzla1.ads: Likewise.
5459 * a-chzla9.ads: Likewise.
5460 * a-cidlli.adb: Likewise.
5461 * a-cidlli.ads: Likewise.
5462 * a-cihama.adb: Likewise.
5463 * a-cihama.ads: Likewise.
5464 * a-cihase.adb: Likewise.
5465 * a-cihase.ads: Likewise.
5466 * a-ciorma.adb: Likewise.
5467 * a-ciorma.ads: Likewise.
5468 * a-ciormu.adb: Likewise.
5469 * a-ciormu.ads: Likewise.
5470 * a-ciorse.adb: Likewise.
5471 * a-ciorse.ads: Likewise.
5472 * a-clrefi.adb: Likewise.
5473 * a-clrefi.ads: Likewise.
5474 * a-cohama.adb: Likewise.
5475 * a-cohama.ads: Likewise.
5476 * a-cohase.adb: Likewise.
5477 * a-cohase.ads: Likewise.
5478 * a-cohata.ads: Likewise.
5479 * a-coinve.adb: Likewise.
5480 * a-coinve.ads: Likewise.
5481 * a-colien.adb: Likewise.
5482 * a-colien.ads: Likewise.
5483 * a-colire.adb: Likewise.
5484 * a-colire.ads: Likewise.
5485 * a-comlin.adb: Likewise.
5486 * a-comlin.ads: Likewise.
5487 * a-convec.adb: Likewise.
5488 * a-convec.ads: Likewise.
5489 * a-coorma.adb: Likewise.
5490 * a-coorma.ads: Likewise.
5491 * a-coormu.adb: Likewise.
5492 * a-coormu.ads: Likewise.
5493 * a-coorse.adb: Likewise.
5494 * a-coorse.ads: Likewise.
5495 * a-coprnu.adb: Likewise.
5496 * a-coprnu.ads: Likewise.
5497 * a-crbltr.ads: Likewise.
5498 * a-crbtgk.adb: Likewise.
5499 * a-crbtgk.ads: Likewise.
5500 * a-crbtgo.adb: Likewise.
5501 * a-crbtgo.ads: Likewise.
5502 * a-crdlli.adb: Likewise.
5503 * a-crdlli.ads: Likewise.
5504 * a-cwila1.ads: Likewise.
5505 * a-cwila9.ads: Likewise.
5506 * a-decima.adb: Likewise.
5507 * a-decima.ads: Likewise.
5508 * a-diocst.adb: Likewise.
5509 * a-diocst.ads: Likewise.
5510 * a-direct.adb: Likewise.
5511 * a-direct.ads: Likewise.
5512 * a-direio.adb: Likewise.
5513 * a-direio.ads: Likewise.
5514 * a-dirval-mingw.adb: Likewise.
5515 * a-dirval-vms.adb: Likewise.
5516 * a-dirval.adb: Likewise.
5517 * a-dirval.ads: Likewise.
5518 * a-dynpri.adb: Likewise.
5519 * a-einuoc.adb: Likewise.
5520 * a-einuoc.ads: Likewise.
5521 * a-elchha.adb: Likewise.
5522 * a-elchha.ads: Likewise.
5523 * a-envvar.adb: Likewise.
5524 * a-excach.adb: Likewise.
5525 * a-except-2005.adb: Likewise.
5526 * a-except-2005.ads: Likewise.
5527 * a-except.adb: Likewise.
5528 * a-except.ads: Likewise.
5529 * a-excpol-abort.adb: Likewise.
5530 * a-excpol.adb: Likewise.
5531 * a-exctra.adb: Likewise.
5532 * a-exctra.ads: Likewise.
5533 * a-exetim-mingw.adb: Likewise.
5534 * a-exetim-mingw.ads: Likewise.
5535 * a-exexda.adb: Likewise.
5536 * a-exexpr-gcc.adb: Likewise.
5537 * a-exexpr.adb: Likewise.
5538 * a-exextr.adb: Likewise.
5539 * a-exstat.adb: Likewise.
5540 * a-filico.adb: Likewise.
5541 * a-filico.ads: Likewise.
5542 * a-finali.adb: Likewise.
5543 * a-finali.ads: Likewise.
5544 * a-interr.ads: Likewise.
5545 * a-intnam-aix.ads: Likewise.
5546 * a-intnam-darwin.ads: Likewise.
5547 * a-intnam-dummy.ads: Likewise.
5548 * a-intnam-freebsd.ads: Likewise.
5549 * a-intnam-hpux.ads: Likewise.
5550 * a-intnam-irix.ads: Likewise.
5551 * a-intnam-linux.ads: Likewise.
5552 * a-intnam-lynxos.ads: Likewise.
5553 * a-intnam-mingw.ads: Likewise.
5554 * a-intnam-rtems.ads: Likewise.
5555 * a-intnam-solaris.ads: Likewise.
5556 * a-intnam-tru64.ads: Likewise.
5557 * a-intnam-vms.ads: Likewise.
5558 * a-intnam-vxworks.ads: Likewise.
5559 * a-intsig.adb: Likewise.
5560 * a-intsig.ads: Likewise.
5561 * a-ngcefu.adb: Likewise.
5562 * a-ngcoar.adb: Likewise.
5563 * a-ngcoty.adb: Likewise.
5564 * a-ngcoty.ads: Likewise.
5565 * a-ngelfu.adb: Likewise.
5566 * a-ngrear.adb: Likewise.
5567 * a-ngrear.ads: Likewise.
5568 * a-nudira.adb: Likewise.
5569 * a-nudira.ads: Likewise.
5570 * a-nuflra.adb: Likewise.
5571 * a-nuflra.ads: Likewise.
5572 * a-numaux-darwin.adb: Likewise.
5573 * a-numaux-darwin.ads: Likewise.
5574 * a-numaux-libc-x86.ads: Likewise.
5575 * a-numaux-vxworks.ads: Likewise.
5576 * a-numaux-x86.adb: Likewise.
5577 * a-numaux-x86.ads: Likewise.
5578 * a-numaux.ads: Likewise.
5579 * a-rbtgso.adb: Likewise.
5580 * a-rbtgso.ads: Likewise.
5581 * a-reatim.ads: Likewise.
5582 * a-retide.adb: Likewise.
5583 * a-retide.ads: Likewise.
5584 * a-rttiev.adb: Likewise.
5585 * a-rttiev.ads: Likewise.
5586 * a-secain.adb: Likewise.
5587 * a-secain.ads: Likewise.
5588 * a-sequio.adb: Likewise.
5589 * a-sequio.ads: Likewise.
5590 * a-shcain.adb: Likewise.
5591 * a-shcain.ads: Likewise.
5592 * a-siocst.adb: Likewise.
5593 * a-siocst.ads: Likewise.
5594 * a-slcain.adb: Likewise.
5595 * a-slcain.ads: Likewise.
5596 * a-ssicst.adb: Likewise.
5597 * a-ssicst.ads: Likewise.
5598 * a-stboha.adb: Likewise.
5599 * a-stmaco.ads: Likewise.
5600 * a-storio.adb: Likewise.
5601 * a-strbou.adb: Likewise.
5602 * a-strbou.ads: Likewise.
5603 * a-stream.ads: Likewise.
5604 * a-strfix.adb: Likewise.
5605 * a-strhas.adb: Likewise.
5606 * a-strmap.adb: Likewise.
5607 * a-strmap.ads: Likewise.
5608 * a-strsea.adb: Likewise.
5609 * a-strsea.ads: Likewise.
5610 * a-strsup.adb: Likewise.
5611 * a-strsup.ads: Likewise.
5612 * a-strunb.adb: Likewise.
5613 * a-strunb.ads: Likewise.
5614 * a-ststio.adb: Likewise.
5615 * a-ststio.ads: Likewise.
5616 * a-stunau.adb: Likewise.
5617 * a-stunau.ads: Likewise.
5618 * a-stunha.adb: Likewise.
5619 * a-stwibo.adb: Likewise.
5620 * a-stwibo.ads: Likewise.
5621 * a-stwifi.adb: Likewise.
5622 * a-stwiha.adb: Likewise.
5623 * a-stwima.adb: Likewise.
5624 * a-stwima.ads: Likewise.
5625 * a-stwise.adb: Likewise.
5626 * a-stwise.ads: Likewise.
5627 * a-stwisu.adb: Likewise.
5628 * a-stwisu.ads: Likewise.
5629 * a-stwiun.adb: Likewise.
5630 * a-stwiun.ads: Likewise.
5631 * a-stzbou.adb: Likewise.
5632 * a-stzbou.ads: Likewise.
5633 * a-stzfix.adb: Likewise.
5634 * a-stzhas.adb: Likewise.
5635 * a-stzmap.adb: Likewise.
5636 * a-stzmap.ads: Likewise.
5637 * a-stzsea.adb: Likewise.
5638 * a-stzsea.ads: Likewise.
5639 * a-stzsup.adb: Likewise.
5640 * a-stzsup.ads: Likewise.
5641 * a-stzunb.adb: Likewise.
5642 * a-stzunb.ads: Likewise.
5643 * a-suteio.adb: Likewise.
5644 * a-suteio.ads: Likewise.
5645 * a-swbwha.adb: Likewise.
5646 * a-swmwco.ads: Likewise.
5647 * a-swunau.adb: Likewise.
5648 * a-swunau.ads: Likewise.
5649 * a-swuwha.adb: Likewise.
5650 * a-swuwti.adb: Likewise.
5651 * a-swuwti.ads: Likewise.
5652 * a-sytaco.adb: Likewise.
5653 * a-sytaco.ads: Likewise.
5654 * a-szbzha.adb: Likewise.
5655 * a-szmzco.ads: Likewise.
5656 * a-szunau.adb: Likewise.
5657 * a-szunau.ads: Likewise.
5658 * a-szuzha.adb: Likewise.
5659 * a-szuzti.adb: Likewise.
5660 * a-szuzti.ads: Likewise.
5661 * a-tags.adb: Likewise.
5662 * a-tags.ads: Likewise.
5663 * a-tasatt.ads: Likewise.
5664 * a-taside.adb: Likewise.
5665 * a-taside.ads: Likewise.
5666 * a-taster.adb: Likewise.
5667 * a-teioed.adb: Likewise.
5668 * a-teioed.ads: Likewise.
5669 * a-textio.adb: Likewise.
5670 * a-textio.ads: Likewise.
5671 * a-tiboio.adb: Likewise.
5672 * a-ticoau.adb: Likewise.
5673 * a-ticoau.ads: Likewise.
5674 * a-ticoio.adb: Likewise.
5675 * a-ticoio.ads: Likewise.
5676 * a-tideau.adb: Likewise.
5677 * a-tideau.ads: Likewise.
5678 * a-tideio.adb: Likewise.
5679 * a-tideio.ads: Likewise.
5680 * a-tienau.adb: Likewise.
5681 * a-tienau.ads: Likewise.
5682 * a-tienio.adb: Likewise.
5683 * a-tienio.ads: Likewise.
5684 * a-tifiio.adb: Likewise.
5685 * a-tifiio.ads: Likewise.
5686 * a-tiflau.adb: Likewise.
5687 * a-tiflau.ads: Likewise.
5688 * a-tiflio.adb: Likewise.
5689 * a-tiflio.ads: Likewise.
5690 * a-tigeau.adb: Likewise.
5691 * a-tigeau.ads: Likewise.
5692 * a-tiinau.adb: Likewise.
5693 * a-tiinau.ads: Likewise.
5694 * a-tiinio.adb: Likewise.
5695 * a-tiinio.ads: Likewise.
5696 * a-timoau.adb: Likewise.
5697 * a-timoau.ads: Likewise.
5698 * a-timoio.adb: Likewise.
5699 * a-timoio.ads: Likewise.
5700 * a-tiocst.adb: Likewise.
5701 * a-tiocst.ads: Likewise.
5702 * a-titest.adb: Likewise.
5703 * a-wichun.adb: Likewise.
5704 * a-wichun.ads: Likewise.
5705 * a-witeio.adb: Likewise.
5706 * a-witeio.ads: Likewise.
5707 * a-wtcoau.adb: Likewise.
5708 * a-wtcoau.ads: Likewise.
5709 * a-wtcoio.adb: Likewise.
5710 * a-wtcstr.adb: Likewise.
5711 * a-wtcstr.ads: Likewise.
5712 * a-wtdeau.adb: Likewise.
5713 * a-wtdeau.ads: Likewise.
5714 * a-wtdeio.adb: Likewise.
5715 * a-wtdeio.ads: Likewise.
5716 * a-wtedit.adb: Likewise.
5717 * a-wtedit.ads: Likewise.
5718 * a-wtenau.adb: Likewise.
5719 * a-wtenau.ads: Likewise.
5720 * a-wtenio.adb: Likewise.
5721 * a-wtenio.ads: Likewise.
5722 * a-wtfiio.adb: Likewise.
5723 * a-wtfiio.ads: Likewise.
5724 * a-wtflau.adb: Likewise.
5725 * a-wtflau.ads: Likewise.
5726 * a-wtflio.adb: Likewise.
5727 * a-wtflio.ads: Likewise.
5728 * a-wtgeau.adb: Likewise.
5729 * a-wtgeau.ads: Likewise.
5730 * a-wtinau.adb: Likewise.
5731 * a-wtinau.ads: Likewise.
5732 * a-wtinio.adb: Likewise.
5733 * a-wtmoau.adb: Likewise.
5734 * a-wtmoau.ads: Likewise.
5735 * a-wtmoio.adb: Likewise.
5736 * a-wtmoio.ads: Likewise.
5737 * a-wttest.adb: Likewise.
5738 * a-wwboio.adb: Likewise.
5739 * a-zchuni.adb: Likewise.
5740 * a-zchuni.ads: Likewise.
5741 * a-ztcoau.adb: Likewise.
5742 * a-ztcoau.ads: Likewise.
5743 * a-ztcoio.adb: Likewise.
5744 * a-ztcstr.adb: Likewise.
5745 * a-ztcstr.ads: Likewise.
5746 * a-ztdeau.adb: Likewise.
5747 * a-ztdeau.ads: Likewise.
5748 * a-ztdeio.adb: Likewise.
5749 * a-ztdeio.ads: Likewise.
5750 * a-ztedit.adb: Likewise.
5751 * a-ztedit.ads: Likewise.
5752 * a-ztenau.adb: Likewise.
5753 * a-ztenau.ads: Likewise.
5754 * a-ztenio.adb: Likewise.
5755 * a-ztenio.ads: Likewise.
5756 * a-ztexio.adb: Likewise.
5757 * a-ztexio.ads: Likewise.
5758 * a-ztfiio.adb: Likewise.
5759 * a-ztfiio.ads: Likewise.
5760 * a-ztflau.adb: Likewise.
5761 * a-ztflau.ads: Likewise.
5762 * a-ztflio.adb: Likewise.
5763 * a-ztflio.ads: Likewise.
5764 * a-ztgeau.adb: Likewise.
5765 * a-ztgeau.ads: Likewise.
5766 * a-ztinau.adb: Likewise.
5767 * a-ztinau.ads: Likewise.
5768 * a-ztinio.adb: Likewise.
5769 * a-ztmoau.adb: Likewise.
5770 * a-ztmoau.ads: Likewise.
5771 * a-ztmoio.adb: Likewise.
5772 * a-ztmoio.ads: Likewise.
5773 * a-zttest.adb: Likewise.
5774 * a-zzboio.adb: Likewise.
5775 * adadecode.c: Likewise.
5776 * adaint.c: Likewise.
5777 * adaint.h: Likewise.
5778 * alloc.ads: Likewise.
5780 * arit64.c: Likewise.
5781 * atree.adb: Likewise.
5782 * atree.ads: Likewise.
5783 * aux-io.c: Likewise.
5785 * casing.adb: Likewise.
5786 * casing.ads: Likewise.
5788 * csets.adb: Likewise.
5789 * csets.ads: Likewise.
5790 * cstreams.c: Likewise.
5791 * ctrl_c.c: Likewise.
5792 * debug.adb: Likewise.
5793 * debug.ads: Likewise.
5794 * dec.ads: Likewise.
5795 * einfo.adb: Likewise.
5796 * einfo.ads: Likewise.
5797 * elists.adb: Likewise.
5798 * elists.ads: Likewise.
5801 * errno.c: Likewise.
5804 * final.c: Likewise.
5805 * fname.adb: Likewise.
5806 * fname.ads: Likewise.
5807 * g-allein.ads: Likewise.
5808 * g-alleve.adb: Likewise.
5809 * g-alleve.ads: Likewise.
5810 * g-altcon.adb: Likewise.
5811 * g-altcon.ads: Likewise.
5812 * g-altive.ads: Likewise.
5813 * g-alveop.adb: Likewise.
5814 * g-alveop.ads: Likewise.
5815 * g-alvety.ads: Likewise.
5816 * g-alvevi.ads: Likewise.
5817 * g-arrspl.adb: Likewise.
5818 * g-arrspl.ads: Likewise.
5819 * g-calend.ads: Likewise.
5820 * g-comlin.adb: Likewise.
5821 * g-debpoo.adb: Likewise.
5822 * g-debpoo.ads: Likewise.
5823 * g-eacodu-vms.adb: Likewise.
5824 * g-eacodu.adb: Likewise.
5825 * g-excact.adb: Likewise.
5826 * g-excact.ads: Likewise.
5827 * g-locfil.adb: Likewise.
5828 * g-os_lib.ads: Likewise.
5829 * g-rannum.adb: Likewise.
5830 * g-rannum.ads: Likewise.
5831 * g-regist.adb: Likewise.
5832 * g-regist.ads: Likewise.
5833 * g-signal.adb: Likewise.
5834 * g-signal.ads: Likewise.
5835 * g-soccon.ads: Likewise.
5836 * g-string.adb: Likewise.
5837 * g-string.ads: Likewise.
5838 * g-strspl.ads: Likewise.
5839 * g-timsta.adb: Likewise.
5840 * g-timsta.ads: Likewise.
5841 * g-trasym-vms-alpha.adb: Likewise.
5842 * g-trasym-vms-ia64.adb: Likewise.
5843 * g-utf_32.adb: Likewise.
5844 * g-utf_32.ads: Likewise.
5845 * g-wistsp.ads: Likewise.
5846 * g-zstspl.ads: Likewise.
5848 * gnatvsn.adb: Likewise.
5849 * gnatvsn.ads: Likewise.
5850 * gsocket.h: Likewise.
5851 * hostparm.ads: Likewise.
5852 * i-c.adb: Likewise.
5853 * i-cexten.ads: Likewise.
5854 * i-cobol.adb: Likewise.
5855 * i-cobol.ads: Likewise.
5856 * i-cpoint.adb: Likewise.
5857 * i-cpoint.ads: Likewise.
5858 * i-cpp.adb: Likewise.
5859 * i-cpp.ads: Likewise.
5860 * i-cstrea-vms.adb: Likewise.
5861 * i-cstrea.adb: Likewise.
5862 * i-cstrea.ads: Likewise.
5863 * i-cstrin.adb: Likewise.
5864 * i-cstrin.ads: Likewise.
5865 * i-forbla-darwin.adb: Likewise.
5866 * i-forbla-unimplemented.ads: Likewise.
5867 * i-forbla.adb: Likewise.
5868 * i-forbla.ads: Likewise.
5869 * i-forlap.ads: Likewise.
5870 * i-fortra.adb: Likewise.
5871 * i-pacdec.adb: Likewise.
5872 * i-pacdec.ads: Likewise.
5873 * i-vxwoio.adb: Likewise.
5874 * i-vxwoio.ads: Likewise.
5875 * indepsw-aix.adb: Likewise.
5876 * indepsw-gnu.adb: Likewise.
5877 * indepsw-mingw.adb: Likewise.
5878 * indepsw.adb: Likewise.
5879 * indepsw.ads: Likewise.
5881 * initialize.c: Likewise.
5882 * interfac.ads: Likewise.
5883 * krunch.adb: Likewise.
5884 * krunch.ads: Likewise.
5885 * lib-list.adb: Likewise.
5886 * lib-sort.adb: Likewise.
5887 * lib.adb: Likewise.
5888 * lib.ads: Likewise.
5890 * math_lib.adb: Likewise.
5891 * memtrack.adb: Likewise.
5892 * mingw32.h: Likewise.
5893 * mkdir.c: Likewise.
5894 * namet-sp.adb: Likewise.
5895 * namet-sp.ads: Likewise.
5896 * namet.adb: Likewise.
5897 * namet.ads: Likewise.
5898 * nlists.adb: Likewise.
5899 * nlists.ads: Likewise.
5900 * opt.adb: Likewise.
5901 * opt.ads: Likewise.
5902 * output.adb: Likewise.
5903 * output.ads: Likewise.
5904 * raise-gcc.c: Likewise.
5905 * raise.c: Likewise.
5906 * raise.h: Likewise.
5907 * repinfo.adb: Likewise.
5908 * repinfo.ads: Likewise.
5909 * repinfo.h: Likewise.
5910 * rident.ads: Likewise.
5911 * s-addima.adb: Likewise.
5912 * s-addima.ads: Likewise.
5913 * s-addope.adb: Likewise.
5914 * s-addope.ads: Likewise.
5915 * s-arit64.adb: Likewise.
5916 * s-arit64.ads: Likewise.
5917 * s-assert.adb: Likewise.
5918 * s-assert.ads: Likewise.
5919 * s-asthan-vms-alpha.adb: Likewise.
5920 * s-asthan.adb: Likewise.
5921 * s-asthan.ads: Likewise.
5922 * s-atacco.adb: Likewise.
5923 * s-atacco.ads: Likewise.
5924 * s-auxdec-empty.adb: Likewise.
5925 * s-auxdec-empty.ads: Likewise.
5926 * s-auxdec-vms_64.ads: Likewise.
5927 * s-auxdec.adb: Likewise.
5928 * s-auxdec.ads: Likewise.
5929 * s-bitops.adb: Likewise.
5930 * s-bitops.ads: Likewise.
5931 * s-boarop.ads: Likewise.
5932 * s-carsi8.adb: Likewise.
5933 * s-carsi8.ads: Likewise.
5934 * s-carun8.adb: Likewise.
5935 * s-carun8.ads: Likewise.
5936 * s-casi16.adb: Likewise.
5937 * s-casi16.ads: Likewise.
5938 * s-casi32.adb: Likewise.
5939 * s-casi32.ads: Likewise.
5940 * s-casi64.adb: Likewise.
5941 * s-casi64.ads: Likewise.
5942 * s-casuti.ads: Likewise.
5943 * s-caun16.adb: Likewise.
5944 * s-caun16.ads: Likewise.
5945 * s-caun32.adb: Likewise.
5946 * s-caun32.ads: Likewise.
5947 * s-caun64.adb: Likewise.
5948 * s-caun64.ads: Likewise.
5949 * s-chepoo.ads: Likewise.
5950 * s-crc32.adb: Likewise.
5951 * s-crc32.ads: Likewise.
5952 * s-crtl.ads: Likewise.
5953 * s-direio.adb: Likewise.
5954 * s-direio.ads: Likewise.
5955 * s-dsaser.ads: Likewise.
5956 * s-except.adb: Likewise.
5957 * s-except.ads: Likewise.
5958 * s-exctab.adb: Likewise.
5959 * s-exctab.ads: Likewise.
5960 * s-exnint.adb: Likewise.
5961 * s-exnint.ads: Likewise.
5962 * s-exnllf.adb: Likewise.
5963 * s-exnllf.ads: Likewise.
5964 * s-exnlli.adb: Likewise.
5965 * s-exnlli.ads: Likewise.
5966 * s-expint.adb: Likewise.
5967 * s-expint.ads: Likewise.
5968 * s-explli.adb: Likewise.
5969 * s-explli.ads: Likewise.
5970 * s-expllu.adb: Likewise.
5971 * s-expllu.ads: Likewise.
5972 * s-expmod.adb: Likewise.
5973 * s-expmod.ads: Likewise.
5974 * s-expuns.adb: Likewise.
5975 * s-expuns.ads: Likewise.
5976 * s-fatflt.ads: Likewise.
5977 * s-fatgen.adb: Likewise.
5978 * s-fatgen.ads: Likewise.
5979 * s-fatlfl.ads: Likewise.
5980 * s-fatllf.ads: Likewise.
5981 * s-fatsfl.ads: Likewise.
5982 * s-ficobl.ads: Likewise.
5983 * s-fileio.adb: Likewise.
5984 * s-fileio.ads: Likewise.
5985 * s-filofl.ads: Likewise.
5986 * s-finimp.adb: Likewise.
5987 * s-finimp.ads: Likewise.
5988 * s-finroo.adb: Likewise.
5989 * s-finroo.ads: Likewise.
5990 * s-fishfl.ads: Likewise.
5991 * s-fore.adb: Likewise.
5992 * s-fore.ads: Likewise.
5993 * s-fvadfl.ads: Likewise.
5994 * s-fvaffl.ads: Likewise.
5995 * s-fvagfl.ads: Likewise.
5996 * s-gearop.adb: Likewise.
5997 * s-gearop.ads: Likewise.
5998 * s-gecobl.adb: Likewise.
5999 * s-gecobl.ads: Likewise.
6000 * s-gecola.adb: Likewise.
6001 * s-gecola.ads: Likewise.
6002 * s-gerebl.adb: Likewise.
6003 * s-gerebl.ads: Likewise.
6004 * s-gerela.adb: Likewise.
6005 * s-gerela.ads: Likewise.
6006 * s-geveop.adb: Likewise.
6007 * s-geveop.ads: Likewise.
6008 * s-gloloc.adb: Likewise.
6009 * s-gloloc.ads: Likewise.
6010 * s-hibaen.ads: Likewise.
6011 * s-imenne.adb: Likewise.
6012 * s-imenne.ads: Likewise.
6013 * s-imgbiu.adb: Likewise.
6014 * s-imgbiu.ads: Likewise.
6015 * s-imgboo.adb: Likewise.
6016 * s-imgboo.ads: Likewise.
6017 * s-imgcha.adb: Likewise.
6018 * s-imgcha.ads: Likewise.
6019 * s-imgdec.adb: Likewise.
6020 * s-imgdec.ads: Likewise.
6021 * s-imgenu.adb: Likewise.
6022 * s-imgenu.ads: Likewise.
6023 * s-imgint.adb: Likewise.
6024 * s-imgint.ads: Likewise.
6025 * s-imgllb.adb: Likewise.
6026 * s-imgllb.ads: Likewise.
6027 * s-imglld.adb: Likewise.
6028 * s-imglld.ads: Likewise.
6029 * s-imglli.adb: Likewise.
6030 * s-imglli.ads: Likewise.
6031 * s-imgllu.adb: Likewise.
6032 * s-imgllu.ads: Likewise.
6033 * s-imgllw.adb: Likewise.
6034 * s-imgllw.ads: Likewise.
6035 * s-imgrea.adb: Likewise.
6036 * s-imgrea.ads: Likewise.
6037 * s-imguns.adb: Likewise.
6038 * s-imguns.ads: Likewise.
6039 * s-imgwch.adb: Likewise.
6040 * s-imgwch.ads: Likewise.
6041 * s-imgwiu.adb: Likewise.
6042 * s-imgwiu.ads: Likewise.
6043 * s-inmaop-dummy.adb: Likewise.
6044 * s-inmaop-vms.adb: Likewise.
6045 * s-inmaop.ads: Likewise.
6046 * s-interr-hwint.adb: Likewise.
6047 * s-interr-sigaction.adb: Likewise.
6048 * s-interr-vms.adb: Likewise.
6049 * s-interr.adb: Likewise.
6050 * s-interr.ads: Likewise.
6051 * s-intman-dummy.adb: Likewise.
6052 * s-intman-mingw.adb: Likewise.
6053 * s-intman-posix.adb: Likewise.
6054 * s-intman-solaris.adb: Likewise.
6055 * s-intman-vms.adb: Likewise.
6056 * s-intman-vms.ads: Likewise.
6057 * s-intman-vxworks.adb: Likewise.
6058 * s-intman-vxworks.ads: Likewise.
6059 * s-intman.ads: Likewise.
6060 * s-io.adb: Likewise.
6061 * s-io.ads: Likewise.
6062 * s-linux-alpha.ads: Likewise.
6063 * s-linux-hppa.ads: Likewise.
6064 * s-linux.ads: Likewise.
6065 * s-maccod.ads: Likewise.
6066 * s-mantis.adb: Likewise.
6067 * s-mantis.ads: Likewise.
6068 * s-mastop-irix.adb: Likewise.
6069 * s-mastop.adb: Likewise.
6070 * s-mastop.ads: Likewise.
6071 * s-memcop.ads: Likewise.
6072 * s-memory-mingw.adb: Likewise.
6073 * s-memory.adb: Likewise.
6074 * s-memory.ads: Likewise.
6075 * s-os_lib.ads: Likewise.
6076 * s-oscons-tmplt.c: Likewise.
6077 * s-osinte-aix.adb: Likewise.
6078 * s-osinte-darwin.adb: Likewise.
6079 * s-osinte-freebsd.adb: Likewise.
6080 * s-osinte-irix.adb: Likewise.
6081 * s-osinte-lynxos-3.adb: Likewise.
6082 * s-osinte-rtems.ads: Likewise.
6083 * s-osinte-tru64.adb: Likewise.
6084 * s-osinte-vxworks-kernel.adb: Likewise.
6085 * s-osinte-vxworks.adb: Likewise.
6086 * s-osprim-mingw.adb: Likewise.
6087 * s-osprim-posix.adb: Likewise.
6088 * s-osprim-solaris.adb: Likewise.
6089 * s-osprim-unix.adb: Likewise.
6090 * s-osprim-vms.adb: Likewise.
6091 * s-osprim-vms.ads: Likewise.
6092 * s-osprim-vxworks.adb: Likewise.
6093 * s-osprim.ads: Likewise.
6094 * s-pack03.adb: Likewise.
6095 * s-pack03.ads: Likewise.
6096 * s-pack05.adb: Likewise.
6097 * s-pack05.ads: Likewise.
6098 * s-pack06.adb: Likewise.
6099 * s-pack06.ads: Likewise.
6100 * s-pack07.adb: Likewise.
6101 * s-pack07.ads: Likewise.
6102 * s-pack09.adb: Likewise.
6103 * s-pack09.ads: Likewise.
6104 * s-pack10.adb: Likewise.
6105 * s-pack10.ads: Likewise.
6106 * s-pack11.adb: Likewise.
6107 * s-pack11.ads: Likewise.
6108 * s-pack12.adb: Likewise.
6109 * s-pack12.ads: Likewise.
6110 * s-pack13.adb: Likewise.
6111 * s-pack13.ads: Likewise.
6112 * s-pack14.adb: Likewise.
6113 * s-pack14.ads: Likewise.
6114 * s-pack15.adb: Likewise.
6115 * s-pack15.ads: Likewise.
6116 * s-pack17.adb: Likewise.
6117 * s-pack17.ads: Likewise.
6118 * s-pack18.adb: Likewise.
6119 * s-pack18.ads: Likewise.
6120 * s-pack19.adb: Likewise.
6121 * s-pack19.ads: Likewise.
6122 * s-pack20.adb: Likewise.
6123 * s-pack20.ads: Likewise.
6124 * s-pack21.adb: Likewise.
6125 * s-pack21.ads: Likewise.
6126 * s-pack22.adb: Likewise.
6127 * s-pack22.ads: Likewise.
6128 * s-pack23.adb: Likewise.
6129 * s-pack23.ads: Likewise.
6130 * s-pack24.adb: Likewise.
6131 * s-pack24.ads: Likewise.
6132 * s-pack25.adb: Likewise.
6133 * s-pack25.ads: Likewise.
6134 * s-pack26.adb: Likewise.
6135 * s-pack26.ads: Likewise.
6136 * s-pack27.adb: Likewise.
6137 * s-pack27.ads: Likewise.
6138 * s-pack28.adb: Likewise.
6139 * s-pack28.ads: Likewise.
6140 * s-pack29.adb: Likewise.
6141 * s-pack29.ads: Likewise.
6142 * s-pack30.adb: Likewise.
6143 * s-pack30.ads: Likewise.
6144 * s-pack31.adb: Likewise.
6145 * s-pack31.ads: Likewise.
6146 * s-pack33.adb: Likewise.
6147 * s-pack33.ads: Likewise.
6148 * s-pack34.adb: Likewise.
6149 * s-pack34.ads: Likewise.
6150 * s-pack35.adb: Likewise.
6151 * s-pack35.ads: Likewise.
6152 * s-pack36.adb: Likewise.
6153 * s-pack36.ads: Likewise.
6154 * s-pack37.adb: Likewise.
6155 * s-pack37.ads: Likewise.
6156 * s-pack38.adb: Likewise.
6157 * s-pack38.ads: Likewise.
6158 * s-pack39.adb: Likewise.
6159 * s-pack39.ads: Likewise.
6160 * s-pack40.adb: Likewise.
6161 * s-pack40.ads: Likewise.
6162 * s-pack41.adb: Likewise.
6163 * s-pack41.ads: Likewise.
6164 * s-pack42.adb: Likewise.
6165 * s-pack42.ads: Likewise.
6166 * s-pack43.adb: Likewise.
6167 * s-pack43.ads: Likewise.
6168 * s-pack44.adb: Likewise.
6169 * s-pack44.ads: Likewise.
6170 * s-pack45.adb: Likewise.
6171 * s-pack45.ads: Likewise.
6172 * s-pack46.adb: Likewise.
6173 * s-pack46.ads: Likewise.
6174 * s-pack47.adb: Likewise.
6175 * s-pack47.ads: Likewise.
6176 * s-pack48.adb: Likewise.
6177 * s-pack48.ads: Likewise.
6178 * s-pack49.adb: Likewise.
6179 * s-pack49.ads: Likewise.
6180 * s-pack50.adb: Likewise.
6181 * s-pack50.ads: Likewise.
6182 * s-pack51.adb: Likewise.
6183 * s-pack51.ads: Likewise.
6184 * s-pack52.adb: Likewise.
6185 * s-pack52.ads: Likewise.
6186 * s-pack53.adb: Likewise.
6187 * s-pack53.ads: Likewise.
6188 * s-pack54.adb: Likewise.
6189 * s-pack54.ads: Likewise.
6190 * s-pack55.adb: Likewise.
6191 * s-pack55.ads: Likewise.
6192 * s-pack56.adb: Likewise.
6193 * s-pack56.ads: Likewise.
6194 * s-pack57.adb: Likewise.
6195 * s-pack57.ads: Likewise.
6196 * s-pack58.adb: Likewise.
6197 * s-pack58.ads: Likewise.
6198 * s-pack59.adb: Likewise.
6199 * s-pack59.ads: Likewise.
6200 * s-pack60.adb: Likewise.
6201 * s-pack60.ads: Likewise.
6202 * s-pack61.adb: Likewise.
6203 * s-pack61.ads: Likewise.
6204 * s-pack62.adb: Likewise.
6205 * s-pack62.ads: Likewise.
6206 * s-pack63.adb: Likewise.
6207 * s-pack63.ads: Likewise.
6208 * s-parame-ae653.ads: Likewise.
6209 * s-parame-hpux.ads: Likewise.
6210 * s-parame-rtems.adb: Likewise.
6211 * s-parame-vms-alpha.ads: Likewise.
6212 * s-parame-vms-ia64.ads: Likewise.
6213 * s-parame-vms-restrict.ads: Likewise.
6214 * s-parame-vxworks.adb: Likewise.
6215 * s-parame-vxworks.ads: Likewise.
6216 * s-parame.adb: Likewise.
6217 * s-parame.ads: Likewise.
6218 * s-parint.adb: Likewise.
6219 * s-parint.ads: Likewise.
6220 * s-pooglo.adb: Likewise.
6221 * s-pooglo.ads: Likewise.
6222 * s-pooloc.adb: Likewise.
6223 * s-pooloc.ads: Likewise.
6224 * s-poosiz.adb: Likewise.
6225 * s-poosiz.ads: Likewise.
6226 * s-powtab.ads: Likewise.
6227 * s-proinf-irix-athread.adb: Likewise.
6228 * s-proinf-irix-athread.ads: Likewise.
6229 * s-proinf.adb: Likewise.
6230 * s-proinf.ads: Likewise.
6231 * s-purexc.ads: Likewise.
6232 * s-rannum.adb: Likewise.
6233 * s-rannum.ads: Likewise.
6234 * s-restri.adb: Likewise.
6235 * s-restri.ads: Likewise.
6236 * s-rident.ads: Likewise.
6237 * s-rpc.adb: Likewise.
6238 * s-rpc.ads: Likewise.
6239 * s-scaval.adb: Likewise.
6240 * s-scaval.ads: Likewise.
6241 * s-secsta.adb: Likewise.
6242 * s-secsta.ads: Likewise.
6243 * s-sequio.adb: Likewise.
6244 * s-sequio.ads: Likewise.
6245 * s-shasto.adb: Likewise.
6246 * s-shasto.ads: Likewise.
6247 * s-soflin.adb: Likewise.
6248 * s-soflin.ads: Likewise.
6249 * s-solita.adb: Likewise.
6250 * s-solita.ads: Likewise.
6251 * s-sopco3.adb: Likewise.
6252 * s-sopco3.ads: Likewise.
6253 * s-sopco4.adb: Likewise.
6254 * s-sopco4.ads: Likewise.
6255 * s-sopco5.adb: Likewise.
6256 * s-sopco5.ads: Likewise.
6257 * s-stache.adb: Likewise.
6258 * s-stache.ads: Likewise.
6259 * s-stalib.adb: Likewise.
6260 * s-stalib.ads: Likewise.
6261 * s-stausa.adb: Likewise.
6262 * s-stausa.ads: Likewise.
6263 * s-stchop-limit.ads: Likewise.
6264 * s-stchop-rtems.adb: Likewise.
6265 * s-stchop-vxworks.adb: Likewise.
6266 * s-stchop.adb: Likewise.
6267 * s-stchop.ads: Likewise.
6268 * s-stoele.adb: Likewise.
6269 * s-stoele.ads: Likewise.
6270 * s-stopoo.adb: Likewise.
6271 * s-stopoo.ads: Likewise.
6272 * s-stratt.adb: Likewise.
6273 * s-stratt.ads: Likewise.
6274 * s-strcom.adb: Likewise.
6275 * s-strcom.ads: Likewise.
6276 * s-string.adb: Likewise.
6277 * s-string.ads: Likewise.
6278 * s-strops.adb: Likewise.
6279 * s-strops.ads: Likewise.
6280 * s-strxdr.adb: Likewise.
6281 * s-ststop.adb: Likewise.
6282 * s-ststop.ads: Likewise.
6283 * s-taasde.adb: Likewise.
6284 * s-taasde.ads: Likewise.
6285 * s-tadeca.adb: Likewise.
6286 * s-tadeca.ads: Likewise.
6287 * s-tadert.adb: Likewise.
6288 * s-tadert.ads: Likewise.
6289 * s-taenca.adb: Likewise.
6290 * s-taenca.ads: Likewise.
6291 * s-taprob.ads: Likewise.
6292 * s-taprop-dummy.adb: Likewise.
6293 * s-taprop-hpux-dce.adb: Likewise.
6294 * s-taprop-irix.adb: Likewise.
6295 * s-taprop-linux.adb: Likewise.
6296 * s-taprop-lynxos.adb: Likewise.
6297 * s-taprop-mingw.adb: Likewise.
6298 * s-taprop-posix.adb: Likewise.
6299 * s-taprop-solaris.adb: Likewise.
6300 * s-taprop-tru64.adb: Likewise.
6301 * s-taprop-vms.adb: Likewise.
6302 * s-taprop-vxworks.adb: Likewise.
6303 * s-taprop.ads: Likewise.
6304 * s-tarest.adb: Likewise.
6305 * s-tarest.ads: Likewise.
6306 * s-tasdeb.adb: Likewise.
6307 * s-tasdeb.ads: Likewise.
6308 * s-tasinf-irix.ads: Likewise.
6309 * s-tasinf-linux.adb: Likewise.
6310 * s-tasinf-linux.ads: Likewise.
6311 * s-tasinf-mingw.adb: Likewise.
6312 * s-tasinf-mingw.ads: Likewise.
6313 * s-tasinf-solaris.adb: Likewise.
6314 * s-tasinf-solaris.ads: Likewise.
6315 * s-tasinf-tru64.ads: Likewise.
6316 * s-tasinf.adb: Likewise.
6317 * s-tasinf.ads: Likewise.
6318 * s-tasini.adb: Likewise.
6319 * s-tasini.ads: Likewise.
6320 * s-taskin.adb: Likewise.
6321 * s-taskin.ads: Likewise.
6322 * s-taspri-dummy.ads: Likewise.
6323 * s-taspri-hpux-dce.ads: Likewise.
6324 * s-taspri-mingw.ads: Likewise.
6325 * s-taspri-solaris.ads: Likewise.
6326 * s-taspri-tru64.ads: Likewise.
6327 * s-taspri-vms.ads: Likewise.
6328 * s-taspri-vxworks.ads: Likewise.
6329 * s-tasque.adb: Likewise.
6330 * s-tasque.ads: Likewise.
6331 * s-tasren.adb: Likewise.
6332 * s-tasren.ads: Likewise.
6333 * s-tasres.ads: Likewise.
6334 * s-tassta.adb: Likewise.
6335 * s-tassta.ads: Likewise.
6336 * s-tasuti.adb: Likewise.
6337 * s-tasuti.ads: Likewise.
6338 * s-tfsetr-default.adb: Likewise.
6339 * s-tfsetr-vxworks.adb: Likewise.
6340 * s-tpinop.adb: Likewise.
6341 * s-tpinop.ads: Likewise.
6342 * s-tpoben.adb: Likewise.
6343 * s-tpoben.ads: Likewise.
6344 * s-tpobop.adb: Likewise.
6345 * s-tpobop.ads: Likewise.
6346 * s-tpopde-vms.adb: Likewise.
6347 * s-tpopde-vms.ads: Likewise.
6348 * s-tpopsp-lynxos.adb: Likewise.
6349 * s-tpopsp-posix-foreign.adb: Likewise.
6350 * s-tpopsp-posix.adb: Likewise.
6351 * s-tpopsp-solaris.adb: Likewise.
6352 * s-tpopsp-vxworks.adb: Likewise.
6353 * s-tporft.adb: Likewise.
6354 * s-tposen.adb: Likewise.
6355 * s-tposen.ads: Likewise.
6356 * s-traceb.adb: Likewise.
6357 * s-traceb.ads: Likewise.
6358 * s-traces-default.adb: Likewise.
6359 * s-traces.adb: Likewise.
6360 * s-traces.ads: Likewise.
6361 * s-traent-vms.adb: Likewise.
6362 * s-traent-vms.ads: Likewise.
6363 * s-traent.adb: Likewise.
6364 * s-traent.ads: Likewise.
6365 * s-trafor-default.adb: Likewise.
6366 * s-trafor-default.ads: Likewise.
6367 * s-tratas-default.adb: Likewise.
6368 * s-tratas.adb: Likewise.
6369 * s-tratas.ads: Likewise.
6370 * s-unstyp.ads: Likewise.
6371 * s-utf_32.adb: Likewise.
6372 * s-utf_32.ads: Likewise.
6373 * s-vaflop-vms-alpha.adb: Likewise.
6374 * s-vaflop.adb: Likewise.
6375 * s-vaflop.ads: Likewise.
6376 * s-valboo.adb: Likewise.
6377 * s-valboo.ads: Likewise.
6378 * s-valcha.adb: Likewise.
6379 * s-valcha.ads: Likewise.
6380 * s-valdec.adb: Likewise.
6381 * s-valdec.ads: Likewise.
6382 * s-valenu.adb: Likewise.
6383 * s-valenu.ads: Likewise.
6384 * s-valint.adb: Likewise.
6385 * s-valint.ads: Likewise.
6386 * s-vallld.adb: Likewise.
6387 * s-vallld.ads: Likewise.
6388 * s-vallli.adb: Likewise.
6389 * s-vallli.ads: Likewise.
6390 * s-valllu.adb: Likewise.
6391 * s-valllu.ads: Likewise.
6392 * s-valrea.adb: Likewise.
6393 * s-valrea.ads: Likewise.
6394 * s-valuns.adb: Likewise.
6395 * s-valuns.ads: Likewise.
6396 * s-valuti.adb: Likewise.
6397 * s-valuti.ads: Likewise.
6398 * s-valwch.adb: Likewise.
6399 * s-valwch.ads: Likewise.
6400 * s-veboop.adb: Likewise.
6401 * s-veboop.ads: Likewise.
6402 * s-vector.ads: Likewise.
6403 * s-vercon.adb: Likewise.
6404 * s-vercon.ads: Likewise.
6405 * s-vmexta.adb: Likewise.
6406 * s-vmexta.ads: Likewise.
6407 * s-vxwext-kernel.ads: Likewise.
6408 * s-vxwext-rtp.adb: Likewise.
6409 * s-vxwext-rtp.ads: Likewise.
6410 * s-vxwext.ads: Likewise.
6411 * s-vxwork-arm.ads: Likewise.
6412 * s-vxwork-m68k.ads: Likewise.
6413 * s-vxwork-mips.ads: Likewise.
6414 * s-vxwork-ppc.ads: Likewise.
6415 * s-vxwork-sparcv9.ads: Likewise.
6416 * s-vxwork-x86.ads: Likewise.
6417 * s-wchcnv.adb: Likewise.
6418 * s-wchcnv.ads: Likewise.
6419 * s-wchcon.adb: Likewise.
6420 * s-wchcon.ads: Likewise.
6421 * s-wchjis.adb: Likewise.
6422 * s-wchjis.ads: Likewise.
6423 * s-wchstw.adb: Likewise.
6424 * s-wchstw.ads: Likewise.
6425 * s-wchwts.adb: Likewise.
6426 * s-wchwts.ads: Likewise.
6427 * s-widboo.adb: Likewise.
6428 * s-widboo.ads: Likewise.
6429 * s-widcha.adb: Likewise.
6430 * s-widcha.ads: Likewise.
6431 * s-widenu.adb: Likewise.
6432 * s-widenu.ads: Likewise.
6433 * s-widlli.adb: Likewise.
6434 * s-widlli.ads: Likewise.
6435 * s-widllu.adb: Likewise.
6436 * s-widllu.ads: Likewise.
6437 * s-widwch.adb: Likewise.
6438 * s-widwch.ads: Likewise.
6439 * s-win32.ads: Likewise.
6440 * s-winext.ads: Likewise.
6441 * s-wwdcha.adb: Likewise.
6442 * s-wwdcha.ads: Likewise.
6443 * s-wwdenu.adb: Likewise.
6444 * s-wwdenu.ads: Likewise.
6445 * s-wwdwch.adb: Likewise.
6446 * s-wwdwch.ads: Likewise.
6447 * scans.adb: Likewise.
6448 * scans.ads: Likewise.
6449 * seh_init.c: Likewise.
6450 * sfn_scan.adb: Likewise.
6451 * sinfo.adb: Likewise.
6452 * sinfo.ads: Likewise.
6453 * sinput.adb: Likewise.
6454 * sinput.ads: Likewise.
6455 * snames.adb: Likewise.
6456 * snames.ads: Likewise.
6457 * socket.c: Likewise.
6458 * stand.adb: Likewise.
6459 * stand.ads: Likewise.
6460 * stringt.adb: Likewise.
6461 * stringt.ads: Likewise.
6462 * sysdep.c: Likewise.
6463 * system-aix.ads: Likewise.
6464 * system-darwin-ppc.ads: Likewise.
6465 * system-darwin-x86.ads: Likewise.
6466 * system-darwin-x86_64.ads: Likewise.
6467 * system-freebsd-x86.ads: Likewise.
6468 * system-hpux-ia64.ads: Likewise.
6469 * system-hpux.ads: Likewise.
6470 * system-irix-n32.ads: Likewise.
6471 * system-irix-n64.ads: Likewise.
6472 * system-irix-o32.ads: Likewise.
6473 * system-linux-alpha.ads: Likewise.
6474 * system-linux-hppa.ads: Likewise.
6475 * system-linux-ia64.ads: Likewise.
6476 * system-linux-mips.ads: Likewise.
6477 * system-linux-mipsel.ads: Likewise.
6478 * system-linux-ppc.ads: Likewise.
6479 * system-linux-ppc64.ads: Likewise.
6480 * system-linux-s390.ads: Likewise.
6481 * system-linux-s390x.ads: Likewise.
6482 * system-linux-sh4.ads: Likewise.
6483 * system-linux-sparc.ads: Likewise.
6484 * system-linux-sparcv9.ads: Likewise.
6485 * system-linux-x86.ads: Likewise.
6486 * system-linux-x86_64.ads: Likewise.
6487 * system-lynxos-ppc.ads: Likewise.
6488 * system-lynxos-x86.ads: Likewise.
6489 * system-mingw-x86_64.ads: Likewise.
6490 * system-mingw.ads: Likewise.
6491 * system-rtems.ads: Likewise.
6492 * system-solaris-sparc.ads: Likewise.
6493 * system-solaris-sparcv9.ads: Likewise.
6494 * system-solaris-x86.ads: Likewise.
6495 * system-solaris-x86_64.ads: Likewise.
6496 * system-tru64.ads: Likewise.
6497 * system-vms-ia64.ads: Likewise.
6498 * system-vms-zcx.ads: Likewise.
6499 * system-vms.ads: Likewise.
6500 * system-vms_64.ads: Likewise.
6501 * system-vxworks-arm.ads: Likewise.
6502 * system-vxworks-m68k.ads: Likewise.
6503 * system-vxworks-mips.ads: Likewise.
6504 * system-vxworks-ppc.ads: Likewise.
6505 * system-vxworks-sparcv9.ads: Likewise.
6506 * system-vxworks-x86.ads: Likewise.
6507 * system.ads: Likewise.
6508 * table.adb: Likewise.
6509 * table.ads: Likewise.
6510 * targext.c: Likewise.
6511 * targparm.ads: Likewise.
6512 * tree_in.adb: Likewise.
6513 * tree_in.ads: Likewise.
6514 * tree_io.adb: Likewise.
6515 * tree_io.ads: Likewise.
6516 * types.adb: Likewise.
6517 * types.ads: Likewise.
6518 * uintp.adb: Likewise.
6519 * uintp.ads: Likewise.
6520 * uname.adb: Likewise.
6521 * uname.ads: Likewise.
6522 * urealp.adb: Likewise.
6523 * urealp.ads: Likewise.
6524 * vx_stack_info.c: Likewise.
6525 * widechar.adb: Likewise.
6526 * widechar.ads: Likewise.
6527 * exp_attr.adb: Change copyright header to refer to version
6528 3 of the GNU General Public License and to point readers at the
6529 COPYING3 file and the FSF's license web page.
6530 * sem.adb: Likewise.
6531 * sem_attr.ads: Likewise.
6532 * freeze.adb: Likewise.
6533 * freeze.ads: Likewise.
6534 * errout.ads: Likewise.
6535 * erroutc.adb: Likewise.
6536 * exp_ch11.ads: Likewise.
6538 2009-04-09 Jakub Jelinek <jakub@redhat.com>
6540 * config-lang.in: Change copyright header to refer to version
6541 3 of the GNU General Public License and to point readers at the
6542 COPYING3 file and the FSF's license web page.
6543 * gcc-interface/trans.c: Likewise.
6544 * gnathtml.pl: Likewise.
6545 * gcc-interface/ada.h: Likewise. Remove runtime exception.
6546 * gcc-interface/gigi.h: Likewise.
6547 * gcc-interface/misc.c: Likewise.
6548 * gcc-interface/targtyps.c: Likewise.
6550 2009-04-09 Nicolas Setton <setton@adacore.com>
6552 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
6554 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
6557 2009-04-09 Bob Duff <duff@adacore.com>
6559 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
6560 internally-generated nodes related to select statements to avoid
6561 confusing the debugger.
6563 2009-04-09 Pascal Obry <obry@adacore.com>
6565 * make.adb: Ensure that all linker arguments are duplicated.
6567 2009-04-09 Robert Dewar <dewar@adacore.com>
6569 * sem_ch5.adb: Minor reformatting
6571 2009-04-09 Vincent Celier <celier@adacore.com>
6574 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
6575 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
6576 New qualifier /LXDEBUG=nnn for -gnatDnnn
6580 Update documentation for VMS qualifiers equivalent to -gnatGnn and
6583 2009-04-09 Nicolas Setton <setton@adacore.com>
6585 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
6586 to match layout of siginfo_t in sys/signal.h.
6588 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
6590 2009-04-09 Thomas Quinot <quinot@adacore.com>
6592 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
6594 2009-04-09 Nicolas Setton <setton@adacore.com>
6596 * s-oscons-tmplt.c: Allow long lines in the generated spec.
6597 Add generation of Darwin-specific constants needed when binding to the
6600 2009-04-09 Robert Dewar <dewar@adacore.com>
6603 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
6604 when no invalid values exist, Avoid duplicate read of atomic variable.
6606 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
6607 (Standard_Unsigned): Set Is_Known_Valid
6609 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
6610 subtype declaration if no constraint.
6611 (Set_Modular_Size): Set Is_Known_Valid if appropriate
6612 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
6614 2009-04-09 Robert Dewar <dewar@adacore.com>
6616 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
6617 switch.ads: for numeric switches, an optional equal sign is always
6620 2009-04-09 Vincent Celier <celier@adacore.com>
6622 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
6623 the case of file names is not significant.
6625 2009-04-09 Vincent Celier <celier@adacore.com>
6627 * errout.adb: Remove dependency on package Style
6629 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
6632 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
6635 * errutil.adb, par.adb: Import Stylesw
6637 2009-04-09 Arnaud Charlet <charlet@adacore.com>
6639 * opt.ads: Fix typos.
6641 2009-04-09 Robert Dewar <dewar@adacore.com>
6643 * einfo.adb: Minor reformatting
6645 2009-04-09 Robert Dewar <dewar@adacore.com>
6647 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
6650 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
6652 2009-04-09 Robert Dewar <dewar@adacore.com>
6654 * g-comver.adb: Minor reformatting.
6656 2009-04-09 Thomas Quinot <quinot@adacore.com>
6658 * lib-load.ads (Load_Unit): Update documentation.
6660 2009-04-09 Ed Schonberg <schonberg@adacore.com>
6662 * lib-load.adb (Load_Unit): When loading the parent of a child unit
6663 named in a with_clause, retain the with_clause to preserve a
6664 limited_with indication.
6666 2009-04-09 Robert Dewar <dewar@adacore.com>
6668 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
6669 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
6670 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
6671 possible to replace an OR of two separate tests.
6673 2009-04-09 Robert Dewar <dewar@adacore.com>
6675 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
6678 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
6679 warning status as well.
6681 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
6683 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
6686 * bindusg.adb, usage.adb: Update line for -gnatm switch
6688 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
6691 2009-04-09 Robert Dewar <dewar@adacore.com>
6693 * sem_ch10.adb: Minor reformatting.
6695 2009-04-09 Bob Duff <duff@adacore.com>
6697 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
6698 Set Sloc of generated nodes for calls to Undefer_Aborts and
6699 Save_Occurrence to No_Location, so the debugger ignores them and
6700 therefore does not jump back and forth when single stepping.
6702 2009-04-09 Robert Dewar <dewar@adacore.com>
6704 * switch-b.adb: Minor reformatting.
6706 2009-04-09 Robert Dewar <dewar@adacore.com>
6708 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
6709 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
6710 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
6711 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
6712 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
6713 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
6714 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
6715 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
6716 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
6717 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
6718 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
6720 2009-04-09 Robert Dewar <dewar@adacore.com>
6722 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
6724 * atree.h: Add Elist26
6726 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
6729 2009-04-09 Javier Miranda <miranda@adacore.com>
6731 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
6732 retrieve from the Dispatch_Table_Wrappers list the external name.
6733 Addition of documentation.
6734 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
6735 used to export secondary dispatch tables (in the previous version of
6736 the frontend only primary dispatch tables were exported). Addition of
6738 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
6739 dispatch table of a given tagged type.
6740 (Make_Tags): Modified to import secondary dispatch tables.
6742 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
6743 (Constant_Redeclaration): Code cleanup.
6745 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
6746 Dispatch_Table_Wrappers. Update documentation.
6748 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
6749 Renamed to Dispatch_Table_Wrappers.
6751 * sem_util.adb (Collect_Interface_Components): Improve handling of
6754 * atree.ads (Elist26, Set_Elist26): New subprograms
6756 * atree.adb (Elist26, Set_Elist26): New subprograms
6758 2009-04-09 Javier Miranda <miranda@adacore.com>
6760 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
6761 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
6764 2009-04-09 Robert Dewar <dewar@adacore.com>
6766 * s-direio.adb: Minor reformatting
6768 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
6770 2009-04-09 Robert Dewar <dewar@adacore.com>
6772 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
6774 2009-04-09 Pascal Obry <obry@adacore.com>
6776 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
6777 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
6778 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
6779 a-filico.ads: Add some missing overriding keywords.
6781 2009-04-09 Pascal Obry <obry@adacore.com>
6783 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
6784 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
6785 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
6788 2009-04-09 Ed Schonberg <schonberg@adacore.com>
6790 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
6791 missing overriding indicator if the new declaration is not seen as
6794 2009-04-09 Thomas Quinot <quinot@adacore.com>
6796 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
6797 overflows in computation of bounds.
6799 2009-04-09 Pascal Obry <obry@adacore.com>
6801 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
6804 2009-04-09 Robert Dewar <dewar@adacore.com>
6806 * sem_attr.adb (Check_Stream_Attribute): Check violation of
6807 restriction No_Streams
6809 * gnat_rm.texi: Clarify No_Streams restriction
6811 * g-socket.adb: Minor reformatting.
6813 2009-04-09 Thomas Quinot <quinot@adacore.com>
6815 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
6817 2009-04-09 Geert Bosch <bosch@adacore.com>
6819 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
6820 (Set_Result): Likewise.
6821 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
6822 conversion, as required by RM 4.6(31).
6824 2009-04-08 Robert Dewar <dewar@adacore.com>
6826 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
6829 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
6832 2009-04-08 Robert Dewar <dewar@adacore.com>
6834 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
6835 No_Local_Allocators restriction preventing local instantiation.
6837 2009-04-08 Thomas Quinot <quinot@adacore.com>
6839 * sem_eval.adb: Minor comment fix
6841 2009-04-08 Thomas Quinot <quinot@adacore.com>
6843 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
6844 New limited controlled type used to automate the initialization and
6845 finalization of the sockets implementation.
6846 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
6848 2009-04-08 Vincent Celier <celier@adacore.com>
6850 * prj-attr.adb: New read-only project-level attribute Project_Dir
6852 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
6853 read-only attribute of the same name.
6854 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
6855 (Recursive_Process): Ditto
6857 * snames.adb: Add new standard name Project_Dir
6859 * snames.ads: Add new standard name Project_Dir
6861 2009-04-08 Thomas Quinot <quinot@adacore.com>
6863 * checks.adb: Minor reformatting
6865 2009-04-08 Vincent Celier <celier@adacore.com>
6867 * vms_data.ads: Add documentation for new style keyword
6868 OVERRIDING_INDICATORS
6870 2009-04-08 Robert Dewar <dewar@adacore.com>
6872 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
6873 spec is in the current unit.
6875 2009-04-08 Ed Schonberg <schonberg@adacore.com>
6877 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
6880 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
6882 2009-04-08 Vincent Celier <celier@adacore.com>
6884 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
6886 2009-04-08 Thomas Quinot <quinot@adacore.com>
6888 * checks.ads: Minor reformatting
6890 2009-04-08 Robert Dewar <dewar@adacore.com>
6892 * gnat_rm.texi: Update documentation of pragma Obsolescent
6894 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
6895 be omitted, and allow Entity parameter to be omitted.
6897 2009-04-08 Thomas Quinot <quinot@adacore.com>
6899 * exp_util.adb: Minor comment fix
6901 2009-04-08 Robert Dewar <dewar@adacore.com>
6903 * g-socket.ads: Fix bad syntax in pragma Obsolescent
6905 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
6906 argument with no identifier following one that has an identifier. Was
6907 missed in some cases.
6909 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
6911 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
6913 * snames.adb: Add Name_Policy
6915 * snames.ads: Add Name_Policy
6917 2009-04-08 Robert Dewar <dewar@adacore.com>
6919 * gnat_rm.texi: Minor reformatting
6921 * par-ch2.adb: Minor reformatting
6923 2009-04-08 Robert Dewar <dewar@adacore.com>
6925 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
6927 2009-04-08 Robert Dewar <dewar@adacore.com>
6929 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
6930 properly in the presence of Remote_Types or Remote_Call_Interface.
6932 * sem_util.adb: Add comment.
6934 2009-04-08 Robert Dewar <dewar@adacore.com>
6936 * ug_words: Add /ASSUME_VALID for -gnatB
6938 * vms_data.ads: Add /ASSUME_VALID for -gnatB
6940 * sem_cat.adb: Add clarifying commment
6942 * a-direio.ads (Bytes): Make sure value is non-zero
6944 2009-04-08 Ed Schonberg <schonberg@adacore.com>
6946 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
6947 that does not come from source, check for a rewritten function call in
6948 prefixed notation before other forms of rewriting.
6950 2009-04-08 Robert Dewar <dewar@adacore.com>
6952 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
6953 these are now obsolescent units used only for bootrapping with an
6956 2009-04-08 Robert Dewar <dewar@adacore.com>
6958 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
6960 * sem_ch3.adb: Minor comment updates
6962 2009-04-08 Ed Schonberg <schonberg@adacore.com>
6964 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
6965 that come from source.
6967 2009-04-08 Tristan Gingold <gingold@adacore.com>
6969 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
6970 * gcc-interface/decl.c (prepend_attributes): New case
6971 Pragma_Thread_Local_Storage.
6972 * gcc-interface/utils.c (process_attributes): New case
6973 ATTR_THREAD_LOCAL_STORAGE.
6975 2009-04-08 Ed Schonberg <schonberg@adacore.com>
6977 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
6978 by the back-end if it contains a call to a subprogram without a
6979 previous spec that is declared in the same unit.
6981 * errout.ads: Update comments on uses of dirs
6983 2009-04-08 Robert Dewar <dewar@adacore.com>
6985 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
6987 2009-04-08 Tristan Gingold <gingold@adacore.com>
6989 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
6991 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
6993 2009-04-08 Vincent Celier <celier@adacore.com>
6996 (Add_Source): Add the mapping of the unit name to source file name in
6997 the Unit_Sources_HT hash table, if the unit name is not null.
6999 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
7001 * prj.ads (Unit_Sources_Htable): New hash table instantiation
7002 (Project_Tree_Data): New component Unit_Sources_HT
7004 2009-04-08 Thomas Quinot <quinot@adacore.com>
7006 * sem_ch8.adb: Minor reformatting.
7007 Minor code reorganization.
7009 2009-04-08 Robert Dewar <dewar@adacore.com>
7011 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
7012 snames.ads, freeze.adb, par-prag.adb: Add implementation of
7013 pragma Thread_Local_Storage, setting new flag
7014 Has_Pragma_Thread_Local_Storage in corresponding entities.
7016 2009-04-08 Emmanuel Briot <briot@adacore.com>
7018 * prj.ads: Update comment on switches file
7020 * prj-nmsc.adb: Code clean up. Use renaming clauses.
7022 2009-04-08 Robert Dewar <dewar@adacore.com>
7024 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
7026 2009-04-08 Thomas Quinot <quinot@adacore.com>
7028 * ali-util.adb: Minor comment fix
7030 2009-04-08 Ed Schonberg <schonberg@adacore.com>
7032 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
7033 appears in a context clause, and the enclosing package is mentioned in
7034 a limited_with_clause.
7035 (Use_One_Type): Reject clause if type is still incomplete.
7037 2009-04-08 Emmanuel Briot <briot@adacore.com>
7039 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
7040 avoid copies of Source_Data variables when possible, since these
7041 involve calls to memcpy() which are done too many times.
7043 2009-04-08 Robert Dewar <dewar@adacore.com>
7045 * exp_ch4.adb (Expand_Concatenate): Clean up code
7047 2009-04-07 Thomas Quinot <quinot@adacore.com>
7049 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
7050 type for the case of concatenating a constrained array indexed by an
7053 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7055 * sem_ch6.adb (Check_Conformance): when checking conformance of an
7056 operation that overrides an abstract operation inherited from an
7057 interface, return False if only one of the controlling formals is an
7060 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7062 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
7063 mandated by AI05-105.
7065 2009-04-07 Vincent Celier <celier@adacore.com>
7067 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
7069 2009-04-07 Thomas Quinot <quinot@adacore.com>
7071 * usage.adb: Minor fix in usage message.
7073 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
7074 match declaration; the correct subtype is Node_Id, not Entity_Id,
7075 because the expected node kind is an identifier, not a defining
7078 * switch-c.adb: Minor reformatting.
7080 * uintp.adb: Minor reformatting.
7082 2009-04-07 Robert Dewar <dewar@adacore.com>
7084 * exp_ch13.adb: Minor reformatting
7086 2009-04-07 Robert Dewar <dewar@adacore.com>
7088 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
7089 against missing parent.
7091 2009-04-07 Thomas Quinot <quinot@adacore.com>
7093 * xoscons.adb: Minor reformatting
7095 2009-04-07 Robert Dewar <dewar@adacore.com>
7097 * rtsfind.ads: Remove obsolete string concatenation entries
7099 2009-04-07 Robert Dewar <dewar@adacore.com>
7101 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
7103 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7105 * sem_ch10.adb (Check_Body_Required): Handle properly imported
7108 2009-04-07 Gary Dismukes <dismukes@adacore.com>
7110 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
7111 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
7112 is of a scalar or string type then suppress the setting of the
7113 expression to Empty.
7115 * freeze.adb (Warn_Overlay): Also emit the warnings about default
7116 initialization for the cases of scalar and string objects when
7117 Init_Or_Norm_Scalars is True.
7119 2009-04-07 Bob Duff <duff@adacore.com>
7121 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
7123 2009-04-07 Bob Duff <duff@adacore.com>
7125 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
7126 Form parameter of Text_Translation=No allows binary mode for Text_IO
7129 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
7131 2009-04-07 Javier Miranda <miranda@adacore.com>
7133 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
7134 processing the bounds for bit packed arrays or VM target machines.
7136 2009-04-07 Thomas Quinot <quinot@adacore.com>
7138 * g-sothco.ads (Int_Access): Remove extraneous access type (use
7139 anonymous access instead).
7140 (Get_Socket_From_Set): Fix incorrectly reverted formals
7141 Last and Socket to match the underlying C routine.
7143 * g-socket.adb, g-socket.ads
7144 (Get): Use named parameter associations instead of positional ones in
7145 call go Get_Socket_From_Set, since this routine has two formals of the
7147 (Image): New procedure.
7149 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7150 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
7151 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
7152 for type of Arg formal.
7154 * sem_warn.adb: Minor reformatting
7156 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7158 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
7159 over record components.
7161 2009-04-07 Nicolas Roche <roche@adacore.com>
7164 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
7165 has disappeared between VxWorks 6.4 and VxWorks 6.5
7166 In RTP mode use time.h instead of times.h
7168 2009-04-07 Robert Dewar <dewar@adacore.com>
7170 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
7172 2009-04-07 Kevin Pouget <pouget@adacore.com>
7174 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
7175 expanded code for constrained types.
7177 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7179 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
7180 AI05-105: in an object renaming declaration, anonymousness is a name
7183 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
7185 2009-04-07 Arnaud Charlet <charlet@adacore.com>
7187 * g-comlin.adb (Expansion): Fix old regression: also return directory
7188 names when matching.
7190 2009-04-07 Robert Dewar <dewar@adacore.com>
7193 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
7194 (Expand_Concatenate): New name for Expand_Concatenate_String which has
7195 been rewritten to handle all types.
7196 (Expand_Concatenate_Other): Remove
7198 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7200 * lib-xref.adb (Generate_Reference): A default subprogram in an
7201 instance appears within the tree for the instance, but generates an
7202 implicit reference in the ALI.
7204 2009-04-07 Javier Miranda <miranda@adacore.com>
7206 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
7207 derived type that has discriminants, propagate the list of interfaces
7208 to the corresponding new base type. In addition, propagate also
7209 attribute Limited_Present (found working in this patch).
7211 2009-04-07 Robert Dewar <dewar@adacore.com>
7213 * exp_ch4.adb: Rewrite concatenation expansion.
7215 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7217 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
7218 relevant to packages.
7220 2009-04-07 Robert Dewar <dewar@adacore.com>
7222 * sem_attr.adb: Minor reformatting
7224 * sem_ch6.adb: Minor reformatting
7226 2009-04-07 Tristan Gingold <gingold@adacore.com>
7228 * socket.c: Add more protections against S_resolvLib_ macros.
7230 2009-04-07 Thomas Quinot <quinot@adacore.com>
7232 * sem_attr.adb: Minor reformatting
7234 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7236 * sem_ch6.adb (New_Overloaded_Entity): New predicate
7237 Is_Overriding_Alias to handle properly types that inherit two homonym
7238 operations that have distinct dispatch table entries.
7240 2009-04-07 Emmanuel Briot <briot@adacore.com>
7242 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
7243 looking for the end of a parenthesis group
7245 2009-04-07 Tristan Gingold <gingold@adacore.com>
7247 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
7249 * socket.c Don't use resolvLib_ macros if not defined.
7251 2009-04-07 Robert Dewar <dewar@adacore.com>
7253 * g-socket.adb: Minor reformatting.
7255 * g-socthi-mingw.adb: Minor reformatting
7257 * g-sothco.ads: Minor reformatting
7260 (Expand_Concatenate_String): Complete rewrite to generate efficient code
7261 inline instead of relying on external library routines.
7263 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
7264 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
7267 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7270 (Eval_Attribute): for attributes of array objects that are not strings,
7271 attributes are not static if nominal subtype of object is unconstrained.
7273 2009-04-07 Ed Schonberg <schonberg@adacore.com>
7275 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
7276 operations for a type T in an instance do not override each other,
7277 when T is derived from a formal private type, the corresponding
7278 operations inherited by a type derived from T outside
7279 of the instance do not override each other either.
7281 2009-04-07 Robert Dewar <dewar@adacore.com>
7283 (Osint.Fail): Change calling sequence to have one string arg
7284 (Make.Make_Failed): Same change
7285 All callers are adjusted to use concatenation
7287 2009-04-07 Robert Dewar <dewar@adacore.com>
7289 * exp_ch4.adb: Fix documentation typo
7291 2009-04-07 Robert Dewar <dewar@adacore.com>
7293 * tbuild.ads: Minor reformatting
7295 2009-04-07 Javier Miranda <miranda@adacore.com>
7297 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
7298 when compiling under ZFP runtime.
7300 2009-04-07 Robert Dewar <dewar@adacore.com>
7302 * g-comlin.adb: Minor reformatting
7304 2009-04-07 Thomas Quinot <quinot@adacore.com>
7306 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
7307 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
7308 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
7309 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
7311 2009-04-07 Robert Dewar <dewar@adacore.com>
7313 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
7315 * opt.ads (Sprint_Line_Limit): New parameter
7317 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
7319 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
7321 * usage.adb: Output information for -gnatGnn -gnatDnn
7323 2009-04-07 Robert Dewar <dewar@adacore.com>
7325 * make.adb: Minor reformatting
7327 2009-04-07 Robert Dewar <dewar@adacore.com>
7329 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
7331 2009-04-07 Robert Dewar <dewar@adacore.com>
7333 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
7335 2009-04-07 Robert Dewar <dewar@adacore.com>
7338 Remove Assume_Valid parameter from In_Subrange_Of calls
7341 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
7342 (Is_In_Range): Remove incorrect use of Assume_Valid
7343 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
7346 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
7347 (Is_In_Range): Documentation cleanup
7348 (Is_Out_Of_Range): Documentation cleanup
7351 Add documentation for Assume_No_Invalid_Values pragma
7353 * sem_ch12.adb: Minor reformatting
7355 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
7357 * sem_prag.adb: Improve error message.
7359 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
7360 LF/CR no longer recognized as line terminator
7362 * switch.ads: Minor documentation improvement
7364 * vms_data.ads: Minor reformatting
7366 2009-04-07 Robert Dewar <dewar@adacore.com>
7368 * checks.adb (Determine_Range): Add Assume_Valid parameter
7370 * checks.ads (Determine_Range): Add Assume_Valid parameter
7372 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
7373 Is_Null_Loop to suppress warnings in a loop body.
7376 (Rewrite_Comparison): Major rewrite to accomodate invalid values
7379 (Expand_N_Loop_Statement): Delete loop known not to execute
7382 (Assume_No_Invalid_Values): Now set to False, and as documented, this
7383 fully enables the proper handling of invalid values.
7386 New calling sequence for Is_In_Range
7389 (Analyze_Iteration_Scheme): Accomodate possible invalid values
7390 in determining if a loop range is null.
7393 (Is_In_Range): Add Assume_Valid parameter
7394 (Is_Out_Of_Range): Add Assume_Valid_Parameter
7395 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
7396 also to do more accurate and complete range analysis, catching more
7400 (Is_In_Range): Add Assume_Valid parameter
7401 (Is_Out_Of_Range): Add Assume_Valid_Parameter
7404 New calling sequence for Is_In_Range
7407 (Suppress_Loop_Warnings): New flag
7410 (Is_Null_Loop): Update documentation
7411 (Suppress_Loop_Warnings): New flag
7413 * gnat_ugn.texi: Document -gnatB switch
7415 2009-04-07 Arnaud Charlet <charlet@adacore.com>
7417 * gnatvsn.ads: Bump version number.
7419 2009-04-07 Thomas Quinot <quinot@adacore.com>
7421 * exp_ch3.adb: Minor rewording (comments)
7423 2009-04-07 Robert Dewar <dewar@adacore.com>
7425 * exp_disp.adb: Minor reformatting
7427 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7429 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
7431 * gcc-interface/trans.c (lvalue_required_p): Likewise.
7433 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7435 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
7436 Do not convert the result. Remove obsolete comment.
7438 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7440 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
7442 (Subprogram_Body_to_gnu): Fix pasto.
7444 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7446 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
7447 (void_type_decl_node): Remove.
7448 (init_gigi_decls): Likewise.
7449 (gnat_install_builtins): Declare.
7450 (record_builtin_type): Likewise.
7451 (create_type_stub_decl): Likewise.
7452 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
7453 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
7455 <E_Array_Subtype>: Use the index types, not only their name, in the
7456 record giving the names of the bounds, if any.
7457 For a packed array type, make it artificial only if the base type
7458 was artificial as well. Remove redundant statement.
7459 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
7461 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
7462 (rest_of_type_decl_compilation_no_defer): Likewise.
7463 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
7464 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
7465 and use create_type_stub_decl to build it.
7466 (gnat_pushdecl): Rewrite condition.
7467 (gnat_install_builtins): Remove bogus declaration.
7468 (record_builtin_type): New function.
7469 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
7471 (create_type_stub_decl): New function.
7472 (create_type_decl): Assert that the type is not dummy. If the type
7473 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
7474 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
7475 (build_vms_descriptor): Likewise.
7476 (init_gigi_decls): Delete and move bulk of code to...
7477 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
7478 (emit_range_check): Add gnat_node parameter.
7479 (emit_index_check): Likewise.
7480 (emit_check): Likewise.
7481 (build_unary_op_trapv): Likewise.
7482 (build_binary_op_trapv): Likewise.
7483 (convert_with_check): Likewise.
7484 (Attribute_to_gnu): Adjust calls for above changes.
7485 (call_to_gnu): Likewise.
7486 (gnat_to_gnu): Likewise.
7487 (assoc_to_constructor): Likewise.
7488 (pos_to_constructor): Likewise.
7489 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
7490 (process_type): Do not create TYPE_DECL for dummy types.
7492 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7494 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
7495 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
7496 * gcc-interface/utils.c: Fix comments.
7498 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7500 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
7502 (gnat_to_gnu_type): Move around.
7503 (get_unpadded_type): Likewise.
7504 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
7507 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
7509 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
7510 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
7511 (call_to_gnu): Invoke it instead of manually checking.
7513 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
7515 * gcc-interface/utils.c (finish_record_type): Force structural equality
7516 checks if the record type is discriminated.
7518 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
7520 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
7521 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
7522 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
7523 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
7524 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
7525 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
7526 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
7528 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7530 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
7531 of TREE_CONSTANT_OVERFLOW.
7533 2009-03-30 Joseph Myers <joseph@codesourcery.com>
7535 PR rtl-optimization/323
7536 * gcc-interface/misc.c (gnat_post_options): Set
7537 flag_excess_precision_cmdline. Give an error for
7538 -fexcess-precision=standard for processors where the option is
7541 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
7544 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
7547 2009-03-11 Olivier Hainque <hainque@adacore.com>
7549 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
7550 checks processing, remove unintended TREE_TYPE walk on index type.
7552 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
7555 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
7556 call make_packable_type on fat pointer types.
7557 <E_Array_Subtype>: Likewise.
7558 <E_Record_Subtype>: Call make_packable_type on all record types
7559 except for fat pointer types.
7560 (make_packable_type): Likewise.
7561 (gnat_to_gnu_field): Likewise.
7563 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
7565 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
7566 EH_MECHANISM change made on 2007-12-06.
7568 2009-02-26 Andreas Schwab <schwab@suse.de>
7571 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
7572 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
7573 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
7575 (target_cpu_default): Substitute.
7577 2009-02-25 Laurent GUERBY <laurent@guerby.net>
7580 * a-teioed.adb (Expand): Fix Result overflow.
7582 2009-02-25 Laurent GUERBY <laurent@guerby.net>
7584 * gcc-interface/Makefile.in: Fix multilib handling for
7587 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7589 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
7591 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
7593 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
7595 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
7597 * gcc-interface/deftarg.c: Remove.
7599 2009-02-10 Olivier Hainque <hainque@adacore.com>
7600 Eric Botcazou <ebotcazou@adacore.com>
7602 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
7603 (copy_alias_set): Rename into...
7604 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
7605 underlying array of unconstrained arrays for the new type as well.
7606 If the old and new alias sets don't conflict, make one a subset of
7607 the other as per the OP parameter.
7608 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
7609 <E_Record_Type>: Do not copy the alias set for derived types.
7610 For all types, make the alias set of derived types a superset of
7611 that of their parent type.
7612 (make_aligning_type): Adjust calls to copy_alias_set.
7613 (make_packable_type): Likewise.
7614 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
7615 Check for alias set conflict instead of strict equality to issue the
7618 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
7620 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
7621 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
7622 (copy_alias_set): Assert that arrays have the same aliasing settings.
7623 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
7625 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
7627 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
7628 Set TYPE_NONALIASED_COMPONENT on the array type.
7630 2009-01-31 Laurent GUERBY <laurent@guerby.net>
7632 * gcc-interface/Makefile.in: Fix mipsel linux handling.
7634 2009-01-16 Jakub Jelinek <jakub@redhat.com>
7636 * gcc-interface/Makefile.in: Fix multilib handling for
7639 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
7641 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
7642 only useless conversions around renamed objects.
7644 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
7646 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
7647 the _Tag field before any discriminants in the field list.
7648 (components_to_record): Remove obsolete comment.
7652 Copyright (C) 2009 Free Software Foundation, Inc.
7654 Copying and distribution of this file, with or without modification,
7655 are permitted in any medium without royalty provided the copyright
7656 notice and this notice are preserved.