1 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/decl.c (check_ok_for_atomic): Do nothing if the type
4 doesn't come from source.
6 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
8 * gcc-interface/decl.c (gnat_to_gnu_component_type): Force at least
9 unit size for the component size of an array with aliased components.
10 (maybe_pad_type): Do not warn for MAX_EXPR.
12 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
14 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
15 common code processing the component type into...
16 <E_Array_Subtype>: Likewise.
17 (gnat_to_gnu_component_type): ...this new static function.
18 (maybe_pad_type): Minor cleanup.
20 2009-09-29 Eric Botcazou <ebotcazou@adacore.com>
22 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
23 the handling of constrained discriminated record subtypes.
24 (components_to_record): Declare the type of the variants and of the
26 (build_subst_list): Move around.
27 (compute_field_positions): Rename into...
28 (build_position_list): ...this. Return a TREE_VEC.
29 (annotate_rep): Adjust for above renaming.
30 (build_variant_list): New static function.
31 (create_field_decl_from): Likewise.
32 (get_rep_part): Likewise.
33 (get_variant_part): Likewise.
34 (create_variant_part_from): Likewise.
35 (copy_and_substitute_in_size): Likewise.
37 2009-09-28 Olivier Hainque <hainque@adacore.com>
40 * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
41 Account for observable alignments out of default allocators.
43 2009-09-28 Richard Henderson <rth@redhat.com>
45 * gcc-interface/utils.c (gnat_install_builtins): Update call to
46 build_common_builtin_nodes.
48 2009-09-26 Eric Botcazou <ebotcazou@adacore.com>
50 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
51 negative size for the array dimensions like in the constrained case.
52 <E_Array_Subtype>: Do not create an artificially non-constant high
53 bound if the low bound is non-constant. Minor tweaks.
55 * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
56 and turn ALIASED into a boolean parameter. Adjust calls to self.
57 <N_Attribute_Reference>: Return 1 for more attributes.
58 <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
59 <N_Assignment_Statement>: Return 1 for the LHS.
60 (Identifier_to_gnu): Adjust calls to lvalue_required_p.
61 (call_to_gnu): Be prepared for wrapped boolean rvalues.
63 2009-09-25 Olivier Hainquqe <hainque@adacore.com>
64 Eric Botcazou <ebotcazou@adacore.com>
66 * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
67 specific node. Representative array type for VECTOR_TYPE entities.
68 * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
69 Turn an ARRAY_TYPE entity into a VECTOR_TYPE.
70 (gnat_types_compatible_p): Handle VECTOR_TYPEs.
71 (convert): Likewise. Arrange to produce VECTOR_CST out of constant
72 array aggregates for VECTOR_TYPE entities.
73 (unchecked_convert): Likewise.
74 (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
75 converted to the associated TYPE_REPRESENTATIVE_ARRAY.
76 (handle_pure_attribute, handle_sentinel_attribute,
77 handle_noreturn_attribute, handle_malloc_attribute,
78 handle_vector_size_attribute): Replace uses of qE format by qs.
79 Remove GCC_DIAG_STYLE definition.
80 * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
81 vector input to representative array type on entry.
82 <N_Op_Eq, etc>: Likewise.
83 * gcc-interface/gigi.h (maybe_vector_array): Declare.
84 (VECTOR_TYPE_P): New predicate.
85 * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
87 2009-09-24 Eric Botcazou <ebotcazou@adacore.com>
89 * gcc-interface/ada.h: Fix outdated comment.
90 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
92 * gcc-interface/gigi.h (mark_visited): Change type of parameter.
93 (MARK_VISITED): New macro.
94 (gnat_truthvalue_conversion): Delete.
95 * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
97 (annotate_rep): Fix formatting and tidy.
98 (compute_field_positions): Get rid of useless variable.
99 * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
100 node only once. Use IN operator for the Nkind in more cases.
101 Remove calls to gnat_truthvalue_conversion.
102 (mark_visited): Change type of parameter and adjust.
103 (mark_visited_r): Dereference TP only once.
104 (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
105 * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
106 (build_binary_op): Remove calls to gnat_truthvalue_conversion.
107 (build_unary_op): Likewise.
109 2009-09-24 Dave Korn <dave.korn.cygwin@gmail.com>
111 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
112 a-except% in target pairs list; don't (implicitly) compare whitespace.
114 2009-09-24 Jakub Jelinek <jakub@redhat.com>
116 * gcc-interface/utils.c (gnat_pushdecl): Don't set
117 DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
120 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
122 * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
123 Bind to getpagesize() in RTEMS 4.10 and newer.
125 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
127 * env.c [__alpha__ && __osf__] (_BSD): Define.
128 * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
131 2009-09-18 Pascal Obry <obry@adacore.com>
133 * mingw32.h: Activate Unicode support for x86-64 Windows platform.
135 2009-09-18 Vadim Godunko <godunko@adacore.com>
137 * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
139 2009-09-18 Javier Miranda <miranda@adacore.com>
141 * exp_aggr.adb (Backend_Processing_Possible): Disable backend
142 processing for array aggregates in the VM backend if the array has
145 2009-09-18 Ed Schonberg <schonberg@adacore.com>
147 * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
148 the prefix indicates a previous semantic error, and this is the first
149 error in the program.
151 2009-09-18 Bob Duff <duff@adacore.com>
153 * gnat_ugn.texi: Minor editing.
155 2009-09-18 Vincent Celier <celier@adacore.com>
157 * prj.ads, prj.adb (Project_Data): New component
158 Imported_Directories_Switches.
160 2009-09-18 Pascal Obry <obry@adacore.com>
162 * mingw32.h: Include standard _mingw.h file.
163 Define _WIN32_WINNT only if not already defined.
165 2009-09-18 Thomas Quinot <quinot@adacore.com>
167 * g-socket.adb (Is_Open): New function indicating whether a
168 Selector_Type object is open.
170 2009-09-18 Vincent Celier <celier@adacore.com>
172 * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
173 is deleted before creating it.
175 2009-09-18 Robert Dewar <dewar@adacore.com>
177 * bindgen.adb: Minor reformatting
179 2009-09-18 Arnaud Charlet <charlet@adacore.com>
181 * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
182 s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
183 signal handler is installed.
184 * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
185 tasks if Abort_Task_Interrupt cannot be used.
187 2009-09-18 Vincent Celier <celier@adacore.com>
189 * prj-tree.ads: Minor comment update
191 2009-09-17 Bob Duff <duff@adacore.com>
193 * g-socket.ads: Document the fact that Close_Selector has no effect on
195 * g-socket.adb: Raise an exception when a Selector that should be open
197 (Check_Selector): Declare RSig as a constant rather than a renames,
200 2009-09-17 Robert Dewar <dewar@adacore.com>
202 * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
203 prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
204 prj-tree.ads: Minor reformatting
206 2009-09-17 Emmanuel Briot <briot@adacore.com>
208 * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
210 (Do_Autoconf): If the object directory does not exists, create auto.cgpr
211 in a temporary directory instead
213 2009-09-17 Bob Duff <duff@adacore.com>
215 * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
217 (Get_Priority): Correct message for "terminated" case -- it said "null".
219 2009-09-17 Robert Dewar <dewar@adacore.com>
221 * exp_ch6.adb: Minor reformatting
223 2009-09-17 Emmanuel Briot <briot@adacore.com>
225 * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
226 switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
227 (Project_Node_Tree_Data.Project_Path): New field.
229 * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
231 2009-09-17 Emmanuel Briot <briot@adacore.com>
233 * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
234 Remove duplicate code.
235 (Prj.Ext): Fix memory leak
236 (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
237 variable. This was previously allowed in the code in
238 Is_External_Assignment, and some tests rely on it
240 2009-09-17 Bob Duff <duff@adacore.com>
242 * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
244 2009-09-17 Emmanuel Briot <briot@adacore.com>
246 * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
247 makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
248 prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
249 prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
250 Scenario variables are now specific to each project tree loaded in
254 2009-09-17 Javier Miranda <miranda@adacore.com>
256 * exp_disp.adb (Make_DT): Remove wrong line of code that was
257 undocumented and probably added by mistake.
259 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
261 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
262 conversions between original and packable version of types from
265 2009-09-16 Eric Botcazou <ebotcazou@adacore.com>
267 * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
268 If a padding type was made for the field, declare it.
269 (components_to_record): Add DEBUG_INFO_P parameter. Adjust call
270 to gnat_to_gnu_field and call to self.
271 (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
272 <E_Array_Subtype>: Likewise.
273 Adjust calls to gnat_to_gnu_field and components_to_record.
275 2009-09-16 Robert Dewar <dewar@adacore.com>
277 * prj-nmsc.adb: Minor reformatting
279 2009-09-16 Ed Schonberg <schonberg@adacore.com>
281 * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
282 expression is a by-reference type (tagged or inherently limited)
283 introduce an access type to capture references to the values of each
284 branch of the conditional.
286 2009-09-16 Emmanuel Briot <briot@adacore.com>
288 * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
289 (Project_Name_And_Node.Display_Name): new field
290 The display name of a project (as written in the .gpr file) is now
291 computed when the project file itself is parsed, not when it is
294 2009-09-16 Thomas Quinot <quinot@adacore.com>
296 * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
297 intrinsics untouched (to be expanded later on by gigi) if an external
298 name has been specified.
299 (Freeze_Entity): Do not generate a default external name for
300 imported subprograms with convention Intrinsic (so that the above code
301 can identify the case where an external name has been explicitly
304 * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
305 replaced by something else due to an existing #define clause.
307 2009-09-16 Ed Schonberg <schonberg@adacore.com>
309 * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
310 Parameter_Association node, created for the extra actual generated for
311 an access parameter of a function that dispatches on result, to prevent
312 double generation of such actuals when the call is rewritten is a
314 * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
315 * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
316 that carry this flag when rewriting the original call as a dispatching
317 call, after propagating the controlling tag.
319 2009-09-16 Vincent Celier <celier@adacore.com>
321 * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
323 (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
325 (Find_Source_Dirs): New parameter Rank to be recorded with the source
327 (Search_Directories): Call Check_File with the rank of the directory
328 * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
329 (Free): Free also Number_Lists
330 (Reset): Init also Number_Lists
331 * prj.ads (Number_List_Table): New dynamic table for lists of numbers
332 (Source_Data): New component Source_Dir_Rank. Remove component
333 Known_Order_Of_Source_Dirs, no longer needed.
334 (Project_Data): New component Source_Dir_Ranks
335 (Project_Tree_Data): New components Number_Lists
337 2009-09-16 Vincent Celier <celier@adacore.com>
339 * gprep.adb (Yes_No): New global constant
340 Unix_Line_Terminators: New global Boolean variable
341 (Process_One_File): Create the out file with a "Text_Translation=" form
342 that depends on the use of option -T.
343 (Scan_Command_Line): Add option -T
344 (Usage): Add line for option -T
346 2009-09-16 Ed Schonberg <schonberg@adacore.com>
348 * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
349 predicate that describes a proper subset of
350 Is_Predefined_Dispatching_Operation and excludes stream operations,
351 which can be overridden by the user.
352 * sem_ch6.adb (Create_Extra_Formals): use
353 Is_Predefined_Internal_Operation, so that stream operations get extra
355 * exp_ch6.adb (Prevent double generation of extra actuals in calls to
356 'Input, which may be expanded twice, first as a function call and then
357 as a dispatching call.
359 2009-09-16 Thomas Quinot <quinot@adacore.com>
361 * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
362 * g-expect.adb (Set_Up_Child_Communications): Use
363 System.OS_Constants.Target_OS to determine whether running on Windows.
365 2009-09-14 Richard Henderson <rth@redhat.com>
367 * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
369 2009-09-14 Eric Botcazou <ebotcazou@adacore.com>
371 * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
372 the unconstrained case.
373 * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
374 the encoding. Do not give a name to the pointer type to the XUT type.
375 * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
376 for fat pointer types, if any. Make sure DECL_ARTIFICIAL is cleared
377 on nodes with DECL_ORIGINAL_TYPE set.
378 (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
379 for fat pointer types. Make sure DECL_ARTIFICIAL is cleared.
381 2009-09-14 Richard Henderson <rth@redhat.com>
383 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
384 default_init_unwind_resume_libfunc.
385 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
386 __builtin_eh_pointer.
387 * gcc-interface/utils.c (gnat_install_builtins): Update call
388 to build_common_builtin_nodes.
390 2009-09-13 Richard Guenther <rguenther@suse.de>
391 Rafael Avila de Espindola <espindola@google.com>
393 * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
394 eh_personality_libfunc and lang_eh_runtime_type.
395 (LANG_HOOKS_EH_PERSONALITY): Define.
396 (gnat_eh_personality_decl): New static variable.
397 (gnat_eh_personality): New static function.
398 Include gt-ada-misc.h.
399 * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
400 * gcc-interface/config-lang.in (gtfiles): Add misc.c.
402 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405 * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
407 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
409 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
411 Avoid useless work when processing the Treat_As_Volatile flag.
413 2009-09-08 Eric Botcazou <ebotcazou@adacore.com>
415 * gcc-interface/targtyps.c: Reorder include directives.
417 2009-09-07 Laurent GUERBY <laurent@guerby.net>
419 * gcc-interface/targtyps.c: Add missing include for tm_p.h.
420 * gcc-interface/Make-lang.in: Update dependencies.
422 2009-09-07 Laurent GUERBY <laurent@guerby.net>
424 * make.adb: Add missing documentation for multilib handling.
426 2009-09-03 Diego Novillo <dnovillo@google.com>
428 * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
430 2009-09-02 Richard Henderson <rth@redhat.com>
432 * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
434 2009-09-02 Olivier Hainque <hainque@adacore.com>
436 * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
439 2009-09-02 Olivier Hainque <hainque@adacore.com>
441 * gcc-interface/decl.c (cannot_be_superflat_p): Handle
442 Signed_Integer_Type_Definition Scalar_Ranges.
444 2009-09-02 Eric Botcazou <ebotcazou@adacore.com>
446 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
447 SAVE_EXPR built for misaligned arguments. Remove redundant stuff.
448 (addressable_p): Return true for more rvalues.
450 2009-09-01 Jakub Jelinek <jakub@redhat.com>
452 * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
453 POINTER_SIZE to HOST_WIDE_INT.
455 2009-09-01 Richard Guenther <rguenther@suse.de>
457 * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
459 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
461 * gcc-interface/trans.c (call_to_gnu): Tidy.
462 (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
463 non-constant size but the array itself has constant size.
464 * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
466 (convert_vms_descriptor32): Likewise.
468 2009-08-22 Aurelien Jarno <aurelien@aurel32.net>
470 * gcc-interface/Makefile.in: Add Ada support for
472 * system-freebsd-x86_64.ads: New file based on
473 system-freebsd-x86.ads.
475 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
477 * gcc-interface/utils.c (convert): In the padded case, do the final
478 conversion as an unchecked conversion if the underlying types are
479 array types with variable size.
481 2009-08-20 Eric Botcazou <ebotcazou@adacore.com>
483 * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
485 * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
487 * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
489 (gnat_gimplify_expr) <DECL_EXPR>: New case.
491 2009-08-17 Aurelien Jarno <aurelien@aurel32.net>
493 * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
494 (stack_t): New record type.
495 (sigaltstack): New imported function.
496 (Alternate_Stack): New imported variable.
497 (Alternate_Stack_Size): New constant.
499 2009-08-17 Vasiliy Fofanov <fofanov@adacore.com>
501 * a-calend-vms.adb: Fix typo.
503 2009-08-17 Tristan Gingold <gingold@adacore.com>
505 * s-taprop-posix.adb: Round up the stack size to avoid failure on
508 2009-08-17 Gary Dismukes <dismukes@adacore.com>
510 * sem_cat.adb (Validate_Static_Object_Name): Update comment.
512 2009-08-17 Vincent Celier <celier@adacore.com>
514 * make.adb (Arguments_Collected): Unneeded, removed
515 (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
516 ensure caller does not pass in No_Project.
517 (Compile): Add new parameter Project. Let procedure
518 Collect_Arguments_And_Compile provide the proper value.
520 * switch-c.adb: Add documentation for -gnatea and -gnatez
522 2009-08-17 Ben Brosgol <brosgol@adacore.com>
524 * gnat_ugn.texi: Changed name of package in SAL example, to avoid
525 clash with Ada 2005 reserved word (interface).
527 2009-08-17 Robert Dewar <dewar@adacore.com>
529 * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
530 a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
531 a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
532 (use conditional expressions).
534 2009-08-17 Robert Dewar <dewar@adacore.com>
536 * make.adb: Add ??? comment
537 * tbuild.adb: Minor reformatting
539 2009-08-17 Thomas Quinot <quinot@adacore.com>
541 * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
542 Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
543 Use Tbuild.Make_Temporary to create entity for the temporary.
545 2009-08-17 Arnaud Charlet <charlet@adacore.com>
547 * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
548 and ignore -mieee switch to avoid spawning an extra gcc in this case.
550 2009-08-17 Thomas Quinot <quinot@adacore.com>
552 * tbuild.adb: Minor reformatting
554 2009-08-17 Ed Schonberg <schonberg@adacore.com>
556 * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
557 exist, as is the case for synchronized types, use the type of the
558 discriminal in the parameter specification, to prevent a spurious
559 subtype mismatch in gigi.
561 2009-08-17 Robert Dewar <dewar@adacore.com>
563 * prj-env.adb: Minor reformatting
564 * make.adb: Minor reformatting
567 2009-08-17 Javier Miranda <miranda@adacore.com>
569 * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
571 2009-08-17 Emmanuel Briot <briot@adacore.com>
573 * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
574 (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
575 object directories must be present. In the case of gprclean at least,
576 these are optional (if they do not exist there is nothing to clean)
578 2009-08-17 Robert Dewar <dewar@adacore.com>
580 * prj-env.adb: Minor reformatting
581 * sem_ch3.adb: Minor reformatting
583 2009-08-17 Hristian Kirtchev <kirtchev@adacore.com>
585 * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
586 the time zone since VxWorks chose positive values to represent west
587 time zones and negative for east zones.
589 2009-08-17 Ed Schonberg <schonberg@adacore.com>
591 * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
592 an anonymous access type whose designated type is generic.
594 2009-08-17 Arnaud Charlet <charlet@adacore.com>
596 * comperr.adb (Compiler_Abort): Do not generate a bug box when in
597 codepeer mode, friendlier.
599 2009-08-10 Laurent GUERBY <laurent@guerby.net>
601 * make.adb: Handle multilib
603 2009-08-10 Vincent Celier <celier@adacore.com>
605 * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
606 the temporary file name in the error message when the temporary file
609 2009-08-10 Yannick Moy <moy@adacore.com>
611 * gnat_ugn.texi: Fix typo
613 2009-08-10 Robert Dewar <dewar@adacore.com>
615 * exp_ch7.adb: Add ??? comment for last change
617 2009-08-10 Vincent Celier <celier@adacore.com>
619 * prj-env.adb (Add_To_Buffer): New procedure
620 (Create_Config_Pragmas_File): Write to temporary file in one shot
621 (Create_Mapping_File): Ditto
622 (Set_Ada_Paths): Ditto
624 2009-08-10 Vincent Celier <celier@adacore.com>
627 * xref_lib.adb (Print_Xref): Make sure that there is at least one space
628 between a declaration name and its type.
630 2009-08-07 Javier Miranda <miranda@adacore.com>
632 * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
635 2009-08-07 Robert Dewar <dewar@adacore.com>
637 * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
639 2009-08-07 Vincent Celier <celier@adacore.com>
641 * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
642 specified on the command line and there are switches in the Compiler
643 package of the project file, use these compilation switches to invoke
646 2009-08-07 Ben Brosgol <brosgol@adacore.com>
648 * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
650 2009-08-07 Ed Schonberg <schonberg@adacore.com>
652 * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
653 even if not in main unit, to simplify debugging.
655 2009-08-07 Arnaud Charlet <charlet@adacore.com>
657 * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
658 * gcc-interface/Make-lang.in: Update dependencies.
660 2009-08-07 Robert Dewar <dewar@adacore.com>
662 * types.ads: Minor reformatting
663 * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
664 * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
665 Output_Non_Modified_In_Out_Warnings.
666 * sem_ch13.adb: Remove ??? comment.
668 2009-08-07 Vincent Celier <celier@adacore.com>
670 * mlib-prj.adb (Build_Library): Include binder generate object file
671 for SAL when library name is only one character.
673 2009-08-07 Thomas Quinot <quinot@adacore.com>
675 * targparm.adb: Minor reformatting
676 * sem.adb: Minor reformatting
677 * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
679 2009-08-07 Emmanuel Briot <briot@adacore.com>
681 * prj-conf.adb: Remove duplicate directory separator in the output when
682 an object directory does not exist.
684 2009-08-07 Robert Dewar <dewar@adacore.com>
686 * exp_util.adb: Minor reformatting
688 2009-08-07 Vincent Celier <celier@adacore.com>
690 * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
693 2009-08-07 Ed Schonberg <schonberg@adacore.com>
695 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
696 detect non-static private components that will violate restriction
697 No_Implicit_Heap_Allocation.
699 2009-08-07 Ben Brosgol <brosgol@adacore.com>
701 * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
703 2009-08-02 Eric Botcazou <ebotcazou@adacore.com>
705 * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
706 * gcc-interface/utils.c (end_subprog_body): Likewise.
707 * gcc-interface/trans.c (gigi): Likewise.
708 (gnat_to_gnu): Likewise.
710 2009-07-30 Ben Brosgol <brosgol@adacore.com>
712 * gnat_ugn.texi: Correct minor texi glitch.
714 2009-07-30 Ed Schonberg <schonberg@adacore.com>
716 * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
717 expression has an underlying representation that is an unchecked union,
718 there is no subtype to build.
720 2009-07-30 Robert Dewar <dewar@adacore.com>
722 * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
723 s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
724 sem_ch7.adb, adaint.c: Minor reformatting
726 2009-07-29 Javier Miranda <miranda@adacore.com>
728 * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
729 moved from the expander to the semantic analyzer to allow the
730 generation of these internal entities when compiling with no code
731 generation. Required by ASIS.
732 * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
733 * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
734 * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
735 (Expand_Freeze_Record_Type): Remove call to
736 Add_Internal_Interface_Entities because this routine is now called at
737 early stage --when the freezing node is analyzed.
739 2009-07-29 Robert Dewar <dewar@adacore.com>
741 * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
742 exp_disp.adb, g-socket.adb: Minor reformatting
744 2009-07-29 Ed Schonberg <schonberg@adacore.com>
746 * sem_ch7.adb (New_Private_Type): Create class-wide type after other
747 attributes have been established, so that they are all inherited by the
749 * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
750 properly named subtypes of class-wide types.
752 2009-07-29 Ed Schonberg <schonberg@adacore.com>
754 * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
755 indicators on user-defined operators.
757 2009-07-29 Vadim Godunko <godunko@adacore.com>
759 * g-socket.adb (Receive_Vector): Add comment.
761 2009-07-29 Javier Miranda <miranda@adacore.com>
763 * frontend.adb (Frontend): Code cleanup.
764 * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
765 Rewriten as a procedure because it a new out-mode parameters to
766 keep up-to-date the controlling tag node in the caller.
767 (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
768 new out-mode parameter to keep up-to-date the controlling tag node in
770 * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
771 exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
773 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
774 available in new package Sem_SCIL.
775 (Next_Non_SCIL_Node): Ditto.
776 * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
778 (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
779 plus complete decoration of SCIL dispatching node.
780 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
781 * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
783 (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
784 * exp_ch3.adb (Build_Init_Procedure): Fix comment.
785 * sem_scil.ads, sem_scil.adb: New files.
786 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
789 2009-07-28 Robert Dewar <dewar@adacore.com>
791 * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
792 makeutl.adb: Minor reformatting & code reorganization
793 * sem_ch3.adb: Minor reformatting.
794 Fix spelling error (constraint for constrain) in error msg.
796 2009-07-28 Emmanuel Briot <briot@adacore.com>
798 * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
799 global variable that also exists in makeutl.ads, and that some routines
800 in that package use already.
801 (Check): Moved part of the code to makeutl.adb for better sharing with
804 2009-07-28 Arnaud Charlet <charlet@adacore.com>
806 * gcc-interface/Make-lang.in: Update dependencies.
808 2009-07-28 Emmanuel Briot <briot@adacore.com>
810 * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
811 importing project does not end up in the list, in the case of extending
813 * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
814 makeutl.ads, for better sharing with gprbuild.
816 2009-07-28 Arnaud Charlet <charlet@adacore.com>
818 * gnat_ugn.texi: Fix typo.
820 2009-07-28 Ed Schonberg <schonberg@adacore.com>
822 * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
823 derivation that renames some discriminants and constrain others.
824 * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
825 prefix is a derived untagged type, convert to the root type to conform
826 to the signature of the protected operations.
828 2009-07-28 Robert Dewar <dewar@adacore.com>
830 * sinfo.ads: Update comments.
831 * exp_attr.adb: Minor reformatting
833 2009-07-28 Ed Schonberg <schonberg@adacore.com>
835 * sem_aggr.adb (Get_Value): A named association in a record aggregate
836 should be treated as a modification of the named component, not as a
839 2009-07-28 Quentin Ochem <ochem@adacore.com>
841 * prj-tree.ads, prj-tree.adb (Free): Minor editing.
842 * prj.ads, prj.adb (Image): Ditto.
844 2009-07-28 Arnaud Charlet <charlet@adacore.com>
846 * frontend.adb: Minor reformatting.
847 (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
850 2009-07-28 Bob Duff <duff@adacore.com>
852 * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
853 'Address to get a pointer to the protected body wrapper.
855 2009-07-28 Javier Miranda <miranda@adacore.com>
857 * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
858 nodes if we are not generating code.
859 * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
860 attribute SCIL_Related_Node of SCIL dispatching nodes.
861 (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
862 * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
863 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
864 (SCIL_Entity): Update documentation.
865 (SCIL_Related_Node): Update documentation.
866 (SCIL_Controlling_Tag): New attribute.
867 (SCIL_Target_Prim): Update documentation.
868 (N_Null_Statement): Remove attributes associated with SCIL nodes.
869 (N_SCIL_Dispatch_Table_Object_Init): New node.
870 (N_SCIL_Dispatch_Table_Tag_Init): New node.
871 (N_SCIL_Dispatching_Call): New node.
872 (N_SCIL_Tag_Init): New node.
873 * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
874 (SCIL_Nkind,Set_SCIL_Nkind): Removed.
875 (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
876 (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
877 (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
878 (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
879 N_SCIL_Dispatching_Call nodes.
880 * sem.adb (Analyze): No need to analyze SCIL nodes.
881 * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
882 (Next_Non_SCIL_Node): New subprogram
883 * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
885 * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
887 * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
889 * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
890 null statement nodes.
891 (Build_Init_Procedure): Generate new SCIL node.
892 * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
894 * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
895 they are currently implemented as special N_Null_Statement nodes.
896 * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
897 procedure call then check if some SCIL node references it and needs
899 * exp_disp.ads (SCIL_Node_Kind): Removed.
900 (Adjust_SCIL_Node): New subprogram.
901 (Find_SCIL_Node): New subprogram.
902 (Get_SCIL_Node_Kind): Removed.
903 (New_SCIL_Node): Removed.
904 * exp_disp.adb (Adjust_SCIL_Node): New subprogram
905 (Expand_Dispatching_Call): Generate new SCIL dispatching node including
906 decoration of its new controlling_tag attribute.
907 (Get_SCIL_Node_Kind): Removed.
908 (Find_SCIL_Node): New subprogram.
909 (Make_Secondary_DT): Generate new SCIL nodes.
910 (Make_Tags): Generate new SCIL nodes.
911 (New_SCIL_Node): Removed.
912 * exp_util.adb (Insert_Actions): Handle SCIL nodes.
913 (Remove_Side_Effects): Check if relocated nodes require readjustment
914 of some SCIL dispatching node.
915 * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
917 2009-07-28 Robert Dewar <dewar@adacore.com>
919 * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
921 2009-07-28 Sergey Rybin <rybin@adacore.com>
923 * gnat_ugn.texi: Add section about gnatcheck rule exemption.
925 2009-07-28 Vadim Godunko <godunko@adacore.com>
927 * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
928 not defined by limits.h.
930 * g-socket.adb (Receive_Vector): Use minimum length from user's vector
931 length and maximum supported length of data vector.
933 2009-07-28 Gary Dismukes <dismukes@adacore.com>
935 * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
936 * make.adb: Call Get_Target_Parameters before calling Usage so that
937 VM_Target and AAMP_On_Target will be set.
939 2009-07-28 Olivier Hainque <hainque@adacore.com>
941 * g-ssinty.ads: Remove, pointless and just confusing at this stage.
942 * gnat_rm.texi: Remove documentation.
943 * g-sse.ads: Minor reorg along the way.
944 * gcc-interface/Makefile.in: Remove processing for g-ssinty.
945 * g-ssvety.ads: Minor comment updates.
947 2009-07-28 Sergey Rybin <rybin@adacore.com>
949 * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
950 for the new format of the report file.
952 2009-07-28 Sergey Rybin <rybin@adacore.com>
954 * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
956 2009-07-28 Pascal Obry <obry@adacore.com>
958 * g-expect.adb: Record standard handles only on Windows.
960 2009-07-27 Emmanuel Briot <briot@adacore.com>
962 * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
965 2009-07-27 Sergey Rybin <rybin@adacore.com>
967 * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
968 rule definition the paragraph that explains that generic functions and
969 functions from generic packages are not checked.
971 2009-07-27 Gary Dismukes <dismukes@adacore.com>
973 * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
974 procedure when determining whether to set the Overridden_Operation
975 field of a subprogram overriding an inherited subprogram.
977 2009-07-27 Robert Dewar <dewar@adacore.com>
979 * a-except.adb, a-except-2005.ads: Minor reformatting
981 2009-07-27 Robert Dewar <dewar@adacore.com>
983 * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
985 2009-07-27 Javier Miranda <miranda@adacore.com>
987 * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
988 add some documentation explaining why the SCIL nodes must be generated
991 2009-07-27 Olivier Hainque <hainque@adacore.com>
993 * a-except.adb: Bind to __builtin_longjmp directly.
994 * a-except-2005.ads: Provide direct binding to __builtin_longjmp
996 * a-exexpr.adb: Use it.
997 * a-except-xi.adb: Likewise.
998 * raise.c (_gnat_builtin_longjmp): Remove and update comments.
999 * raise.h (_gnat_builtin_longjmp): Remove declaration.
1001 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1003 * sem_eval.adb (Compile_Time_Compare): More precise handling of
1004 Known_Valid flag, to prevent spurious range deductions when scalar
1005 variables may be uninitialized. New predicate Is_Known_Valid_Operand.
1007 2009-07-27 Robert Dewar <dewar@adacore.com>
1009 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
1012 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1014 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1015 Ravenscar mode. Error has already been posted on specification.
1017 * sem.adb: Further code clean ups.
1019 2009-07-27 Robert Dewar <dewar@adacore.com>
1021 * g-sse.ads: Minor reformatting
1023 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1025 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1026 alternate ali extension.
1027 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1028 account Osint.ALI_Suffix.
1029 * osint.ads (ALI_Suffix): Make visible.
1030 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1031 * gnat_ugn.texi: Document new gnatfind --ext= switch.
1033 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1035 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1038 2009-07-27 Javier Miranda <miranda@adacore.com>
1040 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1041 the dispatching call has is expanded.
1043 2009-07-27 Ed Schonberg <schonberg@adacore.com>
1045 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1046 Is_Known_Valid flag on the temporary created for the value whose
1047 validity is being checked.
1049 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1050 handle properly main units that are package specifications.
1052 2009-07-27 Geert Bosch <bosch@adacore.com>
1054 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1055 * sem_aux.ads: Fix typo in comment
1056 * sem_util.ads (Is_LHS): Adjust comment to match body
1058 2009-07-27 Sergey Rybin <rybin@adacore.com>
1060 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1063 2009-07-27 Olivier Hainque <hainque@adacore.com>
1065 * g-sse.ads, g-ssvety.ads: Update comments.
1067 2009-07-27 Sergey Rybin <rybin@adacore.com>
1069 * gnat_ugn.texi: Update gnatcheck doc.
1071 2009-07-27 Arnaud Charlet <charlet@adacore.com>
1073 * lib-xref.ads: Allocate/document 'o' char for use by references to
1074 spark 'own' variables.
1076 2009-07-27 Gary Dismukes <dismukes@adacore.com>
1078 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1079 objects, since these are implicitly referenced by the return statement.
1080 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1081 Is_Return_Object in this procedure, as return objects will never make
1082 it here since they're now marked as Referenced.
1084 2009-07-27 Robert Dewar <dewar@adacore.com>
1086 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1088 2009-07-27 Robert Dewar <dewar@adacore.com>
1090 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1092 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
1094 2009-07-27 Geert Bosch <bosch@adacore.com>
1096 * checks.adb (Find_Check): Minor streamlining of logic.
1097 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
1098 * debug.adb: Document -gnatdX debug flag
1099 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
1100 list information about reads from scalar entities.
1101 Also slightly simplify condition for Expand_Current_Value.
1102 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
1105 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
1108 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1109 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1111 (__gnat_stat): Adjust reference to STAT in prototype.
1112 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1113 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1114 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1115 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1116 __gnat_is_writable_file, __gnat_is_executable_file,
1117 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1118 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1119 __gnat_copy_attribs): Adjust all references to the above.
1120 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1122 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1124 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1125 done at the same time, guard against listing a body more than once.
1127 2009-07-23 Robert Dewar <dewar@adacore.com>
1129 * exp_ch6.adb: Minor reformatting
1131 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1133 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1134 static expression is known valid.
1135 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1136 operands of a subtype with a single value.
1138 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1140 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1141 are in the context of the main unit body.
1143 2009-07-23 Sergey Rybin <rybin@adacore.com>
1145 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
1146 misprint in rule description.
1148 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1150 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
1151 test that the object declaration is within an extended return statement
1152 with direct test of whether the declared object associated with the
1153 build-in-place call is a return object, since the enclosing function
1154 might not even be a build-in-place function.
1156 2009-07-23 Robert Dewar <dewar@adacore.com>
1158 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
1159 Minor code reorganization
1161 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1163 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
1164 for static analysis, only packed arrays are causing troubles.
1166 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1168 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
1169 ancestor part is a call to a limited function with an unconstrained
1170 result subtype unless the aggregate has a null extension type.
1171 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
1172 the parent type declaration to avoid blowups on subtype cases.
1174 2009-07-23 Robert Dewar <dewar@adacore.com>
1176 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
1179 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
1181 * s-regexp.adb: Minor reformatting
1182 * scos.ads: Minor reformatting.
1184 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1186 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
1187 other similar messages.
1188 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
1189 messages/implicit packing in CodePeer mode.
1190 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
1191 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
1194 2009-07-23 Pascal Obry <obry@adacore.com>
1196 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
1199 2009-07-23 Robert Dewar <dewar@adacore.com>
1201 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
1204 2009-07-23 Yannick Moy <moy@adacore.com>
1206 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
1208 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
1210 (Raise_Exception): Ditto.
1212 2009-07-23 Olivier Hainque <hainque@adacore.com>
1214 * g-sse.ads: Simplify comment.
1216 2009-07-23 Olivier Hainque <hainque@adacore.com>
1218 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
1219 low level internal type definitions for distinct higher level
1220 binding development activities (user type definitions and
1222 * gnat_rm.texi: Document it.
1223 * g-ssvety.ads: Use it.
1224 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
1225 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
1226 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
1227 for the "may_alias" attribute.
1229 2009-07-23 Thomas Quinot <quinot@adacore.com>
1231 * scos.ads: Minor typo fix
1233 * gcc-interface/decl.c (validate_alignment): For the case of an
1234 implicit array base type, look for alignment clause on first subtype.
1236 2009-07-23 Robert Dewar <dewar@adacore.com>
1238 * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
1239 with tagged parent if tagged parent is fully repped.
1241 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1243 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
1244 in the context depends on the spec of the main unit, by delaying
1245 processing of the main unit body until all other units have been
1248 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1250 * a-convec.adb: Add comments about suspicious/subtle code.
1252 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1254 * einfo.ads: Document use of Alias in private overriding
1256 2009-07-23 Thomas Quinot <quinot@adacore.com>
1258 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
1259 an array type, propagate alignment from first subtype to implicit base
1260 type so that other subtypes (such as the itypes for aggregates of the
1261 type) also receive the expected alignment.
1263 * g-comlin.ads: Minor documentation clarification/rewording.
1264 * scos.ads: Minor comments update.
1265 * lib-writ.ads: Minor reformatting
1267 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1269 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
1270 of a class-wide interface type that is a return object of a
1271 build-in-place function, bypass the interface-related expansions into
1272 renamings with displacement conversions, etc.
1273 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
1274 for the case where a renaming occurs in a build-in-place context, to
1275 assert that the bypassing of the build-in-place treatment only occurs
1276 in the case of a renaming that is an expansion of a return expression
1277 that is itself a build-in-place function call.
1279 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1281 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
1282 valid candidate interpretation in a prefixed view if it is hidden, but
1283 overrides an inherited operation declared in the visible part.
1285 2009-07-23 Robert Dewar <dewar@adacore.com>
1287 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1288 division operands to 64-bit at all in any circumstances.
1290 2009-07-23 Robert Dewar <dewar@adacore.com>
1292 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
1293 checking ranges for mod/rem to see if conditional jump will be
1295 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
1296 generating special -1 test for rem, generate it whenever both
1297 operands can be negative (match circuit in Sem_Res).
1298 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
1299 destroys memory of positive range.
1300 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
1301 checking ranges for mod/rem to see if conditional jump will be generated
1303 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1305 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
1306 scalar components has non-static bounds, the equivalent aggregate
1307 cannot be built, even if the expression is static, because range checks
1310 2009-07-23 Robert Dewar <dewar@adacore.com>
1312 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1313 division operands to 64-bit inside a conversion if 64-bit division not
1316 2009-07-23 Sergey Rybin <rybin@adacore.com>
1318 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
1320 2009-07-23 Javier Miranda <miranda@adacore.com>
1322 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
1323 (Entity/Set_Entity): not available in N_Null_Statement nodes
1324 (Is_Scil_Node): renamed as Is_SCIL_Node
1325 (Scil_Nkind): renamed as SCIL_Nkind
1326 (Scil_Related_Node): renamed as SCIL_Related_Node
1327 (Scil_Target_Prim): renamed as SCIL_Target_Prim
1328 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
1329 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
1330 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
1331 Update documentation
1332 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
1333 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1334 (New_Scil_Node): Renamed as New_SCIL_Node
1335 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
1336 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1337 (New_Scil_Node): Renamed as New_SCIL_Node
1338 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
1340 2009-07-23 Robert Dewar <dewar@adacore.com>
1342 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
1343 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
1344 * einfo.adb: Minor reformatting
1346 2009-07-23 Robert Dewar <dewar@adacore.com>
1348 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
1349 cross-referencing the new related code in
1350 Exp_Ch4.Expand_N_Type_Conversion.
1351 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
1353 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
1356 2009-07-23 Javier Miranda <miranda@adacore.com>
1358 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
1359 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
1360 * exp_disp.ads (Scil_Node_Kind): Ditto.
1361 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
1362 * exp_ch3.adb (Build_Init_Procedure): Ditto.
1364 2009-07-23 Javier Miranda <miranda@adacore.com>
1366 * einfo.adb (Component_Type): Add missing assertion.
1367 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
1368 reading attribute Component_Size.
1369 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
1370 before reading attributes Component_Size and Component_Type.
1371 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
1372 before reading attribute Component_Type.
1374 2009-07-23 Olivier Hainque <hainque@adacore.com>
1376 * gnat_rm.texi: Document the GNAT.SSE units.
1378 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1380 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
1381 not null return if it appears on a subunit.
1383 2009-07-23 Robert Dewar <dewar@adacore.com>
1385 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
1386 check right away so it does not get skipped for early returns, e.g.
1388 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
1389 left-side unless we really know the value is valid.
1391 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
1392 reformatting. Minor code reorganization. Add comments.
1394 2009-07-23 Robert Dewar <dewar@adacore.com>
1396 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
1399 2009-07-23 Gary Dismukes <dismukes@adacore.com>
1401 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
1402 with test of coverage, to allow specific type objects in extended
1403 returns of class-wide functions. Remove now-unnecessary special-case
1404 tests that allowed this in certain cases of expanded extended returns.
1406 2009-07-23 Javier Miranda <miranda@adacore.com>
1408 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
1409 N_Null_Statements (for SCIL nodes).
1410 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
1411 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
1412 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
1414 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
1415 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
1416 associated with dispatching call.
1417 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
1418 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
1419 initialization of dispatch tables and initialization of tags.
1420 (New_Scil_Node): New function that creates a new SCIL node.
1421 (Build_Init_Procedure): Add generation of SCIL node associated with the
1422 initialization of tags done in the IP subprogram.
1424 2009-07-23 Ed Schonberg <schonberg@adacore.com>
1426 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
1427 Warnings_Off, do not emit continuation messages.
1429 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
1432 2009-07-23 Emmanuel Briot <briot@adacore.com>
1434 * ali.adb: Minor comment update
1436 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
1438 * s-win32.ads (HANDLE): Define to be the same size as address type.
1441 2009-07-23 Olivier Hainque <hainque@adacore.com>
1443 * g-sse.ads: New file. Root of the SSE facilities trees, with
1444 general description and common declarations.
1445 * g-ssvety.ads: New file. Expose user level SSE vector types.
1446 * impunit.adb (Non_Imp_File_Names_95): Register new units.
1447 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
1448 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
1450 2009-07-23 Ben Brosgol <brosgol@adacore.com>
1452 * gnat_ugn.texi: Wordsmithing.
1454 2009-07-23 Arnaud Charlet <charlet@adacore.com>
1456 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
1458 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
1460 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
1461 they are already of the base type of the index.
1463 2009-07-22 Brett Porter <porter@adacore.com>
1465 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
1467 2009-07-22 Robert Dewar <dewar@adacore.com>
1469 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
1470 * gnat_ugn.texi: Add documentation for -gnateS switch
1471 * ug_words: Add entry for -gnateS /SCO_OUTPUT
1472 * gcc-interface/Make-lang.in: Update dependencies.
1474 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
1475 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
1476 complete information for SCO input/output.
1478 2009-07-22 Sergey Rybin <rybin@adacore.com>
1480 * gnat_ugn.texi: Update doc for some gnatcheck rules.
1482 2009-07-22 Robert Dewar <dewar@adacore.com>
1484 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
1485 contents of SCO tables.
1486 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
1487 scos.adb, scos.ads: New files.
1488 * gcc-interface/Make-lang.in: Update dependencies.
1490 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
1491 fixes and reformatting.
1493 2009-07-22 Robert Dewar <dewar@adacore.com>
1495 * g-socket.ads: Minor reformatting
1497 2009-07-22 Gary Dismukes <dismukes@adacore.com>
1499 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
1500 include the entity kind for following cases of unreferenced entities:
1501 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
1503 2009-07-22 Ed Falis <falis@adacore.com>
1505 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
1508 2009-07-22 Arnaud Charlet <charlet@adacore.com>
1510 * adadecode.c: Make this file compilable outside of GCC.
1512 2009-07-22 Thomas Quinot <quinot@adacore.com>
1514 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
1515 (partially) default-initialized socket sets are handled properly by
1516 clearing their Set component.
1518 2009-07-22 Bob Duff <duff@adacore.com>
1520 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
1522 2009-07-22 Robert Dewar <dewar@adacore.com>
1524 * gnat_ugn.texi: Minor reformatting
1526 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1528 * errout.adb (Error_Msg): A style message within an instantiation
1529 should not be labelled as an error.
1531 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1533 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
1534 in initialization expression if function does not have convention Ada.
1536 2009-07-22 Sergey Rybin <rybin@adacore.com>
1538 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
1539 '--separate-label' to control label layout.
1541 2009-07-22 Robert Dewar <dewar@adacore.com>
1543 * exp_tss.ads, sem_eval.adb: Minor reformatting
1545 2009-07-22 Bob Duff <duff@adacore.com>
1547 * exp_dist.adb, exp_dist.ads: Update comments.
1549 2009-07-22 Brett Porter <porter@adacore.com>
1551 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
1553 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
1555 2009-07-22 Gary Dismukes <dismukes@adacore.com>
1557 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
1558 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
1560 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
1561 used poor terminology.
1563 2009-07-22 Robert Dewar <dewar@adacore.com>
1565 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
1566 * sem_eval.adb, exp_tss.adb: Minor comment update.
1567 * stylesw.adb: Code clean up.
1569 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1571 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
1572 component size is an exact number of bytes, an array type can have a
1573 size clause that forces packing even though the array type itself is
1576 2009-07-22 Thomas Quinot <quinot@adacore.com>
1578 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
1579 if there is a previous entity with the same name in the scope, ignore
1580 it if it is the renaming declaration for a generic package introduced
1583 2009-07-22 Nicolas Roche <roche@adacore.com>
1585 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
1586 handler on x86_64 windows.
1588 2009-07-22 Arnaud Charlet <charlet@adacore.com>
1590 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
1591 false positives in CodePeer, so ignore this pragma in this mode.
1593 2009-07-22 Thomas Quinot <quinot@adacore.com>
1595 * sem_util.adb, sem_ch10.adb: Minor reformatting
1597 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
1598 special handling for the case of no data received and Item'First =
1599 Stream_Element_Offset'First.
1600 (Last_Index): New subprogram factoring the above special handling
1601 over the various locations where it is required.
1603 2009-07-22 Arnaud Charlet <charlet@adacore.com>
1605 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
1606 checks in CodePeer_Mode.
1607 * gcc-interface/Make-lang.in: Update dependencies.
1609 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1611 * sem_aggr.adb: Improve error message.
1613 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
1614 of an address representation clause.
1615 * freeze.adb (Freeze_Static_Object): An local imported object is legal
1616 if it has an address clause.
1618 2009-07-22 Thomas Quinot <quinot@adacore.com>
1620 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
1621 expression to insert an elab check using a conditional expression, be
1622 sure to carry the original list of interpretations to the new location.
1624 2009-07-22 Gary Dismukes <dismukes@adacore.com>
1626 * gnat1drv.adb: Fix spelling error.
1628 2009-07-22 Javier Miranda <miranda@adacore.com>
1630 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
1631 at the library level and fix a hidden bug in its implementation: its
1632 functionality for renaming objects was broken because
1633 N_Object_Renaming_Declarations nodes are not a subclass of
1634 N_Declaration nodes (as documented in sinfo.ads).
1635 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
1636 check nodes that are actuals of generic instantiations.
1638 2009-07-22 Ed Schonberg <schonberg@adacore.com>
1640 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
1641 context of a compilation unit is being analyzed. Used to detect
1642 circularities created by with_clauses that are not detected by the
1644 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
1645 analyzing the context of the current compilation unit, to detect
1646 possible circularities created by with_clauses.
1648 2009-07-22 Thomas Quinot <quinot@adacore.com>
1650 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
1652 2009-07-22 Robert Dewar <dewar@adacore.com>
1654 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
1655 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
1657 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
1658 * gnat_ugn.texi: Add documentation of -gnatyB
1659 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
1661 2009-07-22 Robert Dewar <dewar@adacore.com>
1663 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
1664 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
1665 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
1666 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
1667 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
1668 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
1669 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
1670 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
1671 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
1672 obey short-circuit style rule.
1674 2009-07-20 Bob Duff <duff@adacore.com>
1676 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
1677 instead of "and", because otherwise Parent_Last_Bit is read
1678 uninitialized in the case where it's not a tagged type, or the tagged
1679 parent does not have a complete rep clause.
1681 2009-07-20 Robert Dewar <dewar@adacore.com>
1683 * stylesw.ads: Minor documentation change.
1685 * types.ads: Minor reformatting
1687 2009-07-20 Javier Miranda <miranda@adacore.com>
1689 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
1690 generating the tag checks associated with dispatching calls.
1691 * exp_disp.adb (Apply_Access_Checks): New subprogram.
1692 (New_Value): This routine was previously local to expand dispatching
1693 calls but it is now used also by Apply_Access_Checks.
1694 (Expand_Dispatching_Calls): Cleanup code because the functionality of
1695 tag checks is now provided by Apply_Access_Checks.
1696 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
1697 case of dispatching calls.
1699 2009-07-20 Arnaud Charlet <charlet@adacore.com>
1701 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
1704 2009-07-20 Gary Dismukes <dismukes@adacore.com>
1706 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
1707 for VMS, only rewrite the first component of the associated exception's
1708 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
1709 and third components that were being replaced with 'M' and 'S'.
1711 2009-07-20 Arnaud Charlet <charlet@adacore.com>
1713 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
1714 Also do not generate error when parsing a spec in CodePeer mode.
1716 2009-07-20 Javier Miranda <miranda@adacore.com>
1718 * checks.adb (Apply_Access_Check): Avoid checks on availability of
1719 runtime function Offset_To_Top_Ptr when compiling with no tagged
1721 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
1722 adding code to the init proc when compiling for VM backends.
1724 2009-07-20 Vincent Celier <celier@adacore.com>
1726 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
1727 account switches -gnatw.?
1729 2009-07-20 Thomas Quinot <quinot@adacore.com>
1731 * sem_dist.adb, exp_dist.adb: Minor reformatting
1733 * Make-generated.in: New file.
1735 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
1737 2009-07-20 Javier Miranda <miranda@adacore.com>
1739 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
1741 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
1742 dynamically tagged expression.
1743 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
1745 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
1746 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
1748 2009-07-20 Arnaud Charlet <charlet@adacore.com>
1750 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
1751 CodePeer_Mode is set, to benefit from full front-end expansion
1754 2009-07-20 Ed Schonberg <schonberg@adacore.com>
1756 * sem_res.adb: Add guard.
1758 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
1759 for possible attribute definition of External_Tag, in case clause
1760 appears in the private part of a package.
1762 2009-07-20 Jerome Guitton <guitton@adacore.com>
1764 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
1766 2009-07-20 Vadim Godunko <godunko@adacore.com>
1768 * a-coorma.adb: Minor reformatting.
1770 2009-07-20 Ed Schonberg <schonberg@adacore.com>
1772 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
1773 access return types.
1774 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
1775 provide an itype reference to gigi to force elaboration of the subtype
1776 at the proper point.
1778 2009-07-20 Tristan Gingold <gingold@adacore.com>
1780 * g-expect.adb: Avoid closeing already closed handle.
1782 2009-07-20 Robert Dewar <dewar@adacore.com>
1784 * sprint.adb (Write_Subprogram_Name): New procedure to output
1785 subprogram name with possible preceding $ (replaces
1786 Note_Implicit_Run_Time_Call).
1788 2009-07-20 Robert Dewar <dewar@adacore.com>
1790 * vms_data.ads: Minor reformatting
1792 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
1793 applies to base type.
1794 (Parent_Subtype): Now allowed on record subtype, applies to base type
1795 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
1796 for case of fully repped tagged type.
1797 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
1798 tag save/restore for fully repped tagged type case.
1799 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
1800 * fe.h (Is_Fully_Repped_Tagged_Type): New function
1801 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
1802 overlap of tagged type components with parent type if parent type is
1804 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
1806 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
1808 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
1809 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
1811 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
1812 logical operators (AND/OR/XOR), not comparison operators.
1814 * sprint.ads: Minor reformatting
1816 2009-07-20 Ed Schonberg <schonberg@adacore.com>
1818 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
1819 intrinsics, check that argument is a string literal, rather than
1820 checking for staticness.
1822 2009-07-20 Robert Dewar <dewar@adacore.com>
1824 * sem_ch13.adb: Minor reformatting
1826 * einfo.ads: Minor reformatting
1827 Component_Bit_Offset is no longer considered obsolescent
1829 2009-07-20 Nicolas Roche <roche@adacore.com>
1831 * a-calend.adb: Redefine time_t as signed integer with same size as
1833 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
1835 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
1838 2009-07-20 Javier Miranda <miranda@adacore.com>
1840 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
1841 constructors that have anonymous access type formals.
1843 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
1844 class-wide arguments in case of imported C++ subprograms.
1846 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
1848 2009-07-20 Sergey Rybin <rybin@adacore.com>
1850 * vms_data.ads: Update qualifiers.
1852 2009-07-20 Robert Dewar <dewar@adacore.com>
1854 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
1857 2009-07-17 Richard Guenther <rguenther@suse.de>
1860 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
1861 state. Remove unused parameter.
1862 (gnat_gimplify_function): Do not gimplify here.
1863 Fold into its only caller and remove.
1864 (gnat_builtin_function): Adjust for end_subprog_body signature change.
1865 (gnat_write_global_declarations): Also finalize the CU.
1866 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
1867 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
1868 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
1870 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
1872 2009-07-15 Arnaud Charlet <charlet@adacore.com>
1874 * gcc-interface/Make-lang.in: Update dependencies
1876 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
1878 2009-07-15 Robert Dewar <dewar@adacore.com>
1880 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
1881 N_Label. Remove SCO table entry for entry point (not used).
1883 * par_sco.ads: Remove SCO entry point type (not used)
1885 * switch.adb: Minor code clean up.
1887 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
1889 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
1891 2009-07-15 Thomas Quinot <quinot@adacore.com>
1893 * gnatls.adb: Minor reformatting
1895 * gnatcmd.adb: Minor code reorganization
1897 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1899 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
1900 determine whether a component of a private type has a composite type.
1902 2009-07-15 Robert Dewar <dewar@adacore.com>
1904 * sem_ch10.adb: Minor reformatting throughout
1905 Minor code reorganization (put nested subprograms in alpha order)
1907 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1909 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
1910 when compiling a call to a protected function that returns a controlled
1913 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
1915 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
1916 one. Add task locking and unlocking around the critical region which
1917 mentions localtime_r and global variable timezone for various targets.
1918 Comment reformatting.
1920 2009-07-15 Robert Dewar <dewar@adacore.com>
1922 * gnat_rm.texi: Document s-ststop.ads
1924 * impunit.ad: (Map_Array): New table of alternative names
1925 (Get_Kind_Of_Unit): Return possible suggested alternative name
1927 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
1930 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
1931 alternative unit if an implementation unit is with'ed.
1933 2009-07-15 Robert Dewar <dewar@adacore.com>
1935 * gnat_ugn.texi: Minor updates.
1937 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
1939 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1941 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
1942 conditions of a derived boolean type.
1945 2009-07-15 Robert Dewar <dewar@adacore.com>
1947 * gnat1drv.adb: Initialize SCO tables
1949 * par-load.adb: Call SCO_Record for main unit spec
1951 * par.adb: Make call to SCO_Record for main unit
1953 * par_sco.adb (Unit_Table): Change format to facilitate sort
1954 (Process_Decisions): New procedure with list argument
1955 (Traverse_Generic_Package_Declaration): New procedure
1956 (Initialize): New procedure, replaces Init
1957 (SCO_Output): Sort unit table before output
1958 (SCO_Record): Avoid duplications
1959 (SCO_Record): Handle remaining cases of units
1960 (Traverse_Declarations_Or_Statements): Handle generics
1962 * par_sco.ads (Initialize): New peocedure (replaces Init)
1964 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
1967 2009-07-15 Arnaud Charlet <charlet@adacore.com>
1969 * debug.adb: Add -gnatd.J switch for now to support scil generation in
1970 parallel. Add missing doc for -gnatd.I and -gnatd.O
1972 2009-07-15 Robert Dewar <dewar@adacore.com>
1974 * lib-load.adb: Minor reformatting
1976 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
1978 2009-07-15 Robert Dewar <dewar@adacore.com>
1980 * par.adb: Minor reformatting
1981 Add ??? comment for possible bad comment
1983 * par-ch10.adb: Minor reformatting
1985 2009-07-15 Ed Schonberg <schonberg@adacore.com>
1987 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
1988 is a literal of a derived boolean type, it appears as an unchecked
1989 conversion. Retrieve actual value from expression of conversion.
1991 2009-07-15 Robert Dewar <dewar@adacore.com>
1993 * sem_ch3.adb: Minor reformatting
1995 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
1996 lib-writ.ads, lib-writ.adb: Minor reformatting.
1997 Fix problem with SCO format in ALI files
1999 2009-07-15 Robert Dewar <dewar@adacore.com>
2001 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2002 exp_aggr.adb: Minor code reorganization (better calling sequence for
2005 2009-07-15 Thomas Quinot <quinot@adacore.com>
2007 * opt.ads: Minor comment edits
2009 2009-07-15 Tristan Gingold <gingold@adacore.com>
2011 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2014 2009-07-15 Robert Dewar <dewar@adacore.com>
2016 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2019 * lib-writ.ads: Document addition of SCO lines to ALI file
2021 * par_sco.ads, par_sco.adb: New files.
2023 * opt.ads (Generate_SCO): New switch
2025 * par.adb (Par): Call SCO_Record to record SCO information
2027 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2029 * switch-c.adb: Recognize -gnateS to generate SCO information
2031 * usage.adb: Add line for -gnateS
2033 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2035 2009-07-15 Robert Dewar <dewar@adacore.com>
2037 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2040 2009-07-15 Thomas Quinot <quinot@adacore.com>
2042 * g-socthi-mingw.adb: Minor comment addition
2044 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2046 2009-07-15 Robert Dewar <dewar@adacore.com>
2048 * g-htable.ads, s-htable.ads: Minor reformatting
2050 2009-07-15 Robert Dewar <dewar@adacore.com>
2052 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2053 new switch -gnatw.g.
2054 (Set_GNAT_Mode_Warnings): New procedure.
2056 * lib-xref.adb: Minor reformatting
2058 2009-07-15 Robert Dewar <dewar@adacore.com>
2060 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2061 Minor code reorganization
2063 2009-07-14 Taras Glek <tglek@mozilla.com>
2064 Rafael Espindola <espindola@google.com>
2066 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2067 installing plugin headers.
2069 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2071 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2072 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2073 and link it to the expression whose value it captures.
2075 2009-07-13 Robert Dewar <dewar@adacore.com>
2077 * output.adb: Minor comment addition for last change
2079 * sinfo.ads: Minor reformatting
2081 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
2083 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2084 spawn failed like on all other targets.
2086 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2088 * exp_ch7.adb: Indicate origin of temporary for transient expression.
2090 2009-07-13 Thomas Quinot <quinot@adacore.com>
2092 * s-oscons-tmplt.c: Add comment.
2094 2009-07-13 Robert Dewar <dewar@adacore.com>
2096 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
2097 reformatting. Minor code reorganization (add 9 argument version of
2100 * impunit.adb: Remove s-os_lib from list of system extensions.
2102 * sem_util.ads: Minor reformatting
2104 * output.adb: Add warnings off/on around System.OS_Lib.
2106 2009-07-13 Bob Duff <duff@adacore.com>
2108 * exp_dist.adb: Minor comment updates.
2110 2009-07-13 Gary Dismukes <dismukes@adacore.com>
2112 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2113 several references to CodePeer.
2115 2009-07-13 Bob Duff <duff@adacore.com>
2117 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2118 Build_TypeCode_Function_All): Do not recurse if the type is the base
2121 2009-07-13 Robert Dewar <dewar@adacore.com>
2123 * exp_ch4.adb: Minor comment change
2125 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2127 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2128 type of iteration, to prevent spurious warnings.
2130 2009-07-13 Nicolas Roche <roche@adacore.com>
2132 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2135 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2137 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2138 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2140 (CodePeer_Mode): New -gnatC switch.
2141 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2144 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
2146 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
2147 integer bound forces the check if it is compared to its subtype range.
2149 2009-07-13 Robert Dewar <dewar@adacore.com>
2151 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
2152 prj-strt.ads: Minor reformatting
2154 2009-07-13 Thomas Quinot <quinot@adacore.com>
2156 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
2157 set the type of the From_Any call to the base type.
2159 2009-07-13 Doug Rupp <rupp@adacore.com>
2161 * symbols-processing-vms-ia64.adb (Process): Add variables and
2162 constants to retrieve and check for symbol visibility.
2164 2009-07-13 Javier Miranda <miranda@adacore.com>
2166 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
2167 the identical type we remove the conversion completely because
2170 2009-07-13 Emmanuel Briot <briot@adacore.com>
2172 * prj-err.adb (Error_Msg): One more case where a message should be
2173 considered as a warning.
2175 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
2177 2009-07-13 Thomas Quinot <quinot@adacore.com>
2179 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
2180 calling stubs in the (library level) scope of the RCI locator, where it
2181 is attached, not in the caller's scope.
2183 2009-07-13 Javier Miranda <miranda@adacore.com>
2185 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
2186 interface object declarations we delay the generation of the equivalent
2187 record type declarations until its expansion because there are cases in
2188 which they are not required.
2190 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
2192 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
2193 addition of assertion.
2195 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
2196 interface types require no equivalent constrained type declarations
2197 because the expanded code only references the tag component associated
2199 (Find_Interface_Tag): Improve management of interfaces that are
2200 ancestors of tagged types.
2202 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
2203 class-wide object declarations to add missing support to statically
2204 displace the pointer to the object to reference the tag component
2205 associated with the interface.
2207 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
2208 auxiliary types associated with user-defined dispatching calls if the
2209 type has no user-defined primitives.
2211 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
2213 * mingw32.h: Make it explicit that we need XP or later.
2215 * initialize.c: Remove useless extern symbol declaration.
2217 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
2218 code reuse in expect.c.
2220 * adaint.c: Changes throughout the Windows section to redesign storage
2221 of the child process list and the process identification.
2223 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
2224 for interfacing, fix errors.
2225 (__gnat_expect_portable_execvp): use function in adaint.c
2227 2009-07-13 Emmanuel Briot <briot@adacore.com>
2229 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
2230 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
2231 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
2232 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
2233 (Prj.Nmsc.Report_Error): Removed, no longer needed.
2234 Always use Prj.Err.Report_Message.
2236 2009-07-13 Robert Dewar <dewar@adacore.com>
2238 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
2241 2009-07-13 Robert Dewar <dewar@adacore.com>
2243 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
2244 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
2246 2009-07-13 Emmanuel Briot <briot@adacore.com>
2248 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
2249 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
2250 Ada_Prj_Include_File_Set): Removed, since not needed
2253 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2255 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
2256 Analyze_Membership_Op.
2258 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
2259 Resolve_Membership_Op.
2261 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
2264 2009-07-13 Robert Dewar <dewar@adacore.com>
2266 * clean.adb: Minor reformattting
2268 2009-07-13 Emmanuel Briot <briot@adacore.com>
2270 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
2271 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
2272 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
2273 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
2274 and attributes in a project tree.
2275 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
2276 Remove last remaining mode-specific code (ada_only or
2277 multi_language). This was duplicating code
2278 (Get_Mode, Set_Mode): removed, no longer used.
2279 (Initialize_Project_Path): all tools will now take into account both
2280 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
2281 Remove some global variables and subprograms no longer used
2282 Make temporary files tree-specific, to avoid interferences between
2283 trees loaded in memory at the same time.
2284 (Prj.Delete_Temporary_File): new subprogram
2285 (Object_Paths, Source_Paths): fields no longer stored in the project
2286 tree, since they are only needed locally in Set_Ada_Paths.
2287 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
2289 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
2290 by local variables in the appropriate subprograms
2291 (Has_Foreign_Sources): removed.
2293 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
2295 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2297 * gnat1drv.adb (Adjust_Global_Switches): No longer set
2298 Back_Annotate_Rep_Info in inspector mode.
2299 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
2301 * opt.ads: Update comment.
2303 2009-07-13 Robert Dewar <dewar@adacore.com>
2305 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
2306 prj.ads: Minor reformatting and code reorganization.
2308 * par-ch3.adb (Check_Restricted_Expression): New procedure
2310 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2312 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
2313 attribute into a call of the corresponding suprogram, create extra
2314 formals for the subprogram, because it may be a renaming whose
2315 analysis does not create extra formals.
2317 2009-07-13 Emmanuel Briot <briot@adacore.com>
2319 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2320 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2321 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
2322 prj-tree.ads: Minor reformatting.
2323 (Processing_Flags): new record to encapsulate the set of common
2324 parameters to several subprograms in the project manager.
2325 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
2326 Remove the need for the Current_Dir parameter in subprograms.
2327 (Look_For_Sources): minor refactoring, now that we no longer need to
2328 share subprograms between the two Ada_Only and Multi_Language modes
2329 (Processing_Flags): New field Error_On_Unknown_Language.
2330 Merge tests for library project between gnatmake and gprbuild.
2332 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2334 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
2337 2009-07-13 Emmanuel Briot <briot@adacore.com>
2339 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
2342 2009-07-13 Thomas Quinot <quinot@adacore.com>
2344 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
2345 Write,Input,Output} from private view to full view.
2347 * sem_type.adb, sem_type.ads: Minor reformatting
2349 2009-07-13 Nicolas Setton <setton@adacore.com>
2351 * exp_dbug.ads: Add documentation note on the utility of
2352 DW_AT_GNAT_encoding for IDEs.
2354 2009-07-13 Robert Dewar <dewar@adacore.com>
2356 * g-socthi-vxworks.adb: Minor reformatting
2358 * gnatcmd.adb: Minor reformatting
2360 2009-07-13 Thomas Quinot <quinot@adacore.com>
2362 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
2363 removed, not used anymore.
2364 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
2365 New subprogram, implements copy of an Any value into a limited object.
2366 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
2367 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
2368 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
2369 of parameters of a limited type, use the above new subprogram.
2371 2009-07-13 Emmanuel Briot <briot@adacore.com>
2373 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
2375 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
2377 (Error_Report): Remove global variable, replaced by parameters.
2379 2009-07-13 Thomas Quinot <quinot@adacore.com>
2381 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
2382 standard sendto(2) interface for connected sockets (passing a null
2383 destination address). Use send(2) instead for that case.
2385 2009-07-13 Pascal Obry <obry@adacore.com>
2387 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
2389 2009-07-13 Emmanuel Briot <briot@adacore.com>
2391 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2392 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
2393 variables and tables in prj-nmsc.adb.
2394 (Tree_Processing_Data): Renames Processing_Data, some new fields added
2395 (Project_Processing_Data): New record
2396 Simplify/unify check for missing sources.
2398 2009-07-13 Emmanuel Briot <briot@adacore.com>
2400 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
2401 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2402 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
2403 prj-tree.ads (Immediate_Directory_Of): Removed.
2404 (Prj.Pars): Now parse the project simulating a default config file.
2405 (Add_Default_GNAT_Naming_Scheme): New subprogram
2406 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
2407 Remove gnatmake-specific parsing of source files.
2408 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
2409 the error itself to provide more precise diagnostics.
2410 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
2411 a unit belongs to several projects.
2412 (Copy_Interface_Sources): Search the full path of files to copy in the
2413 list of sources of the application rather than in the list of units.
2414 (Parse_Project_And_Apply_Config): Do not reset the name of the main
2416 (Check_File): Use htables to find out whether a source is duplicated.
2417 (Add_Source): check whether the source or unit were already seen earlier
2419 * gcc-interface/Makefile.in: Update gnatmake dependencies.
2421 2009-07-13 Robert Dewar <dewar@adacore.com>
2423 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
2424 expression if extensions permitted.
2426 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
2428 (P_Relation): Use P_Membership_Test
2430 * par.adb (P_Membership_Test): New procedure (implement membership set
2433 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
2435 * sprint.adb (Sprint_Node): Handle set form for membership tests.
2437 2009-07-13 Thomas Quinot <quinot@adacore.com>
2439 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
2440 Do not attempt to generate stubs for predefined primitives of
2441 synchronized interfaces.
2442 (Add_Stub_Type): Factor some code from the PCS-specific variants of
2445 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2447 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
2448 Controlling_Result flag from the operation they override.
2450 2009-07-13 Arnaud Charlet <charlet@adacore.com>
2452 * gcc-interface/Make-lang.in: Update dependencies
2454 2009-07-13 Robert Dewar <dewar@adacore.com>
2456 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
2457 details on unsupported constructs.
2459 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
2462 * s-trafor-default.adb: Correct some warnings
2464 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
2465 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
2468 * par-ch4.adb (Conditional_Expression): Capture proper location for
2469 conditional expression, should point to IF.
2471 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
2472 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
2473 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
2474 reorganization (use conditional expressions).
2476 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2478 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
2479 build-in-place function that returns an inherently limited type (not
2480 just a task type) create proper object declaration so that extra
2481 build-in-place actuals are properly added to the call.
2483 2009-07-13 Robert Dewar <dewar@adacore.com>
2485 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
2487 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
2489 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
2491 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
2492 Warn_On_Suspicious_Modulus_Value.
2494 * ug_words: Add entries for -gnatw.m/-gnatw.M.
2496 * usage.adb: Add lines for -gnatw.m/.M switches.
2498 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
2500 2009-07-13 Javier Miranda <miranda@adacore.com>
2502 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
2503 reading the Is_Interface attribute of the dispatching type.
2505 2009-07-13 Robert Dewar <dewar@adacore.com>
2507 * a-convec.adb: Minor code reorganization (use conditional expressions)
2509 2009-07-13 Robert Dewar <dewar@adacore.com>
2511 * freeze.adb (Check_Suspicious_Modulus): New procedure.
2513 2009-07-13 Robert Dewar <dewar@adacore.com>
2515 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
2518 * par-ch4.adb: Minor reformatting
2520 2009-07-13 Ed Schonberg <schonberg@adacore.com>
2522 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
2523 => Is_Atomic_Aggregate
2525 2009-07-13 Emmanuel Briot <briot@adacore.com>
2527 * prj-nmsc.adb: Avoid traversing the list of source files if
2528 we have already processed all locally removed files.
2530 2009-07-13 Jose Ruiz <ruiz@adacore.com>
2532 * gnat_ugn.texi: Fix typo.
2534 2009-07-13 Robert Dewar <dewar@adacore.com>
2536 * freeze.adb: Minor reformatting
2537 Minor code reorganization (use Nkind_In)
2539 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
2541 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
2543 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
2544 local variable and do not test it in Compile_Time_Bad_Alignment.
2545 Do not issue size or alignment warnings for the X'Address form.
2546 * sem_util.ads (Find_Overlaid_Object): Delete.
2547 (Find_Overlaid_Entity): New procedure.
2548 * sem_util.adb (Find_Overlaid_Object): Rename to...
2549 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
2550 whether the address is offseted within the overlaid entity.
2551 (Has_Compatible_Alignment): Track the offset globally instead of
2552 passing it to Check_Offset. For an indexed component, compute the
2553 full offset when possible. If the resulting offset is zero, only
2555 (Check_Offset): Delete.
2556 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
2557 (Address_Aliased_Entity): Delete.
2558 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
2559 Find_Overlaid_Entity to find the overlaid entity and the offset.
2560 Adjust throughout for above change.
2561 (Validate_Address_Clauses): Always use attributes of entities, not of
2562 their type. Tweak message for warning. Call Has_Compatible_Alignment
2563 if the address is offseted to warn about incompatible alignments.
2564 * gcc-interface/gigi.h (annotate_object): Declare.
2565 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
2566 entity. Call annotate_object instead of annotating manually objects.
2567 (annotate_object): New function.
2568 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
2571 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
2573 * gcc-interface/ada-tree.h: Minor reorganization.
2574 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
2575 (gnat_print_type): Likewise.
2577 2009-07-11 Thomas Quinot <quinot@adacore.com>
2579 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
2582 * exp_ch6.adb: Minor reformatting
2584 2009-07-11 Ed Schonberg <schonberg@adacore.com>
2586 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
2587 account possible type qualification to determine whether aggregate
2588 needs a target temporary to respect atomic type or object.
2590 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
2591 Expand_Atomic_Aggregate.
2593 2009-07-11 Emmanuel Briot <briot@adacore.com>
2595 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
2597 (Excluded_Sources_Htable): No longer a global table.
2598 Change error message to indicate which files are illegal in the list
2599 of excluded files, as opposed to only the location in the project
2601 (Find_Source): New subprogram.
2603 2009-07-10 Thomas Quinot <quinot@adacore.com>
2605 * exp_ch7.adb: Update comments.
2607 2009-07-10 Arnaud Charlet <charlet@adacore.com>
2609 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
2610 clause if -gnatI is set instead of crashing.
2612 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2614 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
2615 Additional work to remove redundant successive raise statements, in
2616 this case access checks.
2618 2009-07-10 Vincent Celier <celier@adacore.com>
2620 * make.adb (Compile): Always create a deep copy of the mapping file
2621 argument (-gnatem=...) as it may be deallocate/reallocate by
2622 Normalize_Arguments.
2624 2009-07-10 Javier Miranda <miranda@adacore.com>
2626 * einfo.adb (Directly_Designated_Type): Add assertion.
2628 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
2629 access types before using attribute Directly_Designated_Type.
2631 2009-07-10 Emmanuel Briot <briot@adacore.com>
2633 * prj.ads: Minor typo fix
2635 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2637 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
2640 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
2641 subprogram is a function call, resolve properly, to ensure that extra
2642 actuals are added as needed.
2644 2009-07-10 Thomas Quinot <quinot@adacore.com>
2646 * sem_aggr.adb: Minor comments editing
2648 * exp_tss.adb, exp_ch3.adb: Minor reformatting
2650 2009-07-10 Robert Dewar <dewar@adacore.com>
2652 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
2654 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
2657 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
2658 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
2659 case of conditional expressions that may not be elaborated.
2661 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
2662 conditional expression where we may not execute then then or else
2665 2009-07-10 Arnaud Charlet <charlet@adacore.com>
2667 * i-cexten.ads (bool): New type.
2669 2009-07-10 Robert Dewar <dewar@adacore.com>
2671 * sinfo.ads (N_Short_Circuit): New definition
2673 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
2674 treepr.adb: Minor code reorganization (use N_Short_Circuit)
2676 2009-07-10 Javier Miranda <miranda@adacore.com>
2678 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
2679 non-tagged record types.
2682 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
2683 with non-tagged types. Required to import C++ classes that have no
2685 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
2686 returning non-tagged types. For backward compatibility, if the
2687 constructor returns a class wide type we internally change the
2688 returned type to the corresponding non class-wide type.
2691 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
2692 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
2693 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
2694 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
2697 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
2699 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
2701 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
2703 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
2705 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
2708 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
2711 (pragma CPP_Class): Document that it can be used now with non-tagged
2713 (pragma CPP_Constructor): Document that it can be used now with
2714 functions returning specific types. For backward compatibility
2715 we also support functions returning class-wide types.
2718 (Interfacing with C++ constructors): Update the examples to incorporate
2719 the new syntax in which the functions used to import C++ constructors
2720 return specific types.
2721 (Interfacing with C++ at the Class Level): Update the examples to
2722 incorporate the new syntax in which the functions used to import
2723 C++ constructors return specific types.
2725 2009-07-10 Thomas Quinot <quinot@adacore.com>
2727 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
2728 Make_Disp_Conditional_Select_Body,
2729 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
2730 interface nor a concurrent type, the primitive body is empty. Generate
2731 a null statement so that it remains well formed.
2733 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2735 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
2736 replace references to them in defaulted component expressions with
2737 references to the values of the discriminants of the target object.
2739 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2741 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
2742 pragma, to capture global references if the context is generic.
2744 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
2745 appears within the initialization procedure for the corresponding
2746 record, replace it with the proper discriminal.
2748 2009-07-10 Vincent Celier <celier@adacore.com>
2750 * make.adb: Do not include object directories or library ALI
2751 directories of library projects in the object path.
2753 2009-07-10 Javier Miranda <miranda@adacore.com>
2755 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
2756 Typ argument to ensure proper management of access types.
2758 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2760 * exp_ch7.adb (Build_Final_List): If the list is being built for a
2761 Taft-Amendment type, place the finalization list in the package body,
2762 to ensure that the tree for the spec is identical whenever it is
2765 2009-07-10 Javier Miranda <miranda@adacore.com>
2767 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
2768 inheriting attributes from a private Parent_Base.
2770 2009-07-10 Ed Schonberg <schonberg@adacore.com>
2772 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
2773 statements with the same condition.
2775 2009-07-10 Robert Dewar <dewar@adacore.com>
2777 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
2779 2009-07-09 Tom Tromey <tromey@redhat.com>
2781 * raise-gcc.c: Include dwarf2h (unconditionally).
2783 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2785 * sem_ch10.adb (Install_Context): If the unit is a package body,
2786 install the private with_clauses of the corresponding package
2789 2009-07-09 Robert Dewar <dewar@adacore.com>
2791 * checks.adb: Minor reformatting
2793 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
2795 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2798 2009-07-09 Thomas Quinot <quinot@adacore.com>
2800 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2801 Do not warn for a constant overlaying any constant object
2803 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2805 * sem_ch10.adb (Install_Context): If the unit is a package body,
2806 install the private with_clauses of the corresponding package
2809 2009-07-09 Robert Dewar <dewar@adacore.com>
2811 * checks.adb: Minor reformatting
2813 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
2815 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2818 2009-07-09 Thomas Quinot <quinot@adacore.com>
2820 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2821 Do not warn for a constant overlaying any constant object
2823 2009-07-09 Arnaud Charlet <charlet@adacore.com>
2825 * gcc-interface/Make-lang.in: Update dependencies
2827 2009-07-09 Thomas Quinot <quinot@adacore.com>
2829 * g-socket.adb (Check_Selector): Do not create local copies of the
2830 socket sets on the stack.
2832 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
2834 * gnat_ugn.texi: Add missing VMS translations.
2836 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2838 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
2839 condition, to prevent generation of visible code during expansion,
2840 when Check is not enabled.
2842 2009-07-09 Gary Dismukes <dismukes@adacore.com>
2844 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
2845 the check gets registered for any available local handler
2848 * sem_util.adb: Add with and use of Exp_Ch11.
2849 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
2850 that the check gets registered for any available local handler.
2852 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
2855 2009-07-09 Steve Baird <baird@adacore.com>
2857 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
2859 (Expand_N_Exception_Declaration): Fix handling of exceptions
2860 declared in a subprogram.
2862 2009-07-09 Emmanuel Briot <briot@adacore.com>
2864 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
2867 2009-07-09 Thomas Quinot <quinot@adacore.com>
2869 * freeze.adb: Minor reformatting
2871 * exp_ch3.adb: Minor comment fix.
2873 * sinfo.ads: Minor comment fix
2875 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2877 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
2879 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2881 * freeze.adb (Freeze_Expression): If the expression is the name of a
2882 function in a call, and the function has not been frozen yet, create
2883 extra formals for it to ensure that the proper actuals are created
2884 when expanding the call.
2886 2009-07-09 Emmanuel Briot <briot@adacore.com>
2888 * prj-pp.adb (Print): Fix handling of source index when set on a
2891 2009-07-09 Ed Schonberg <schonberg@adacore.com>
2893 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
2894 a temporary to the source expression whose value it captures.
2896 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
2898 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2900 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
2903 2009-07-07 Gary Dismukes <dismukes@adacore.com>
2905 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
2906 parameters when the subtype of the actual is not known to be a subrange
2907 of the formal's subtype.
2908 (Expand_Call): Generate a range check only in the E_In_parameter case
2909 (in out parameter range checks are now handled in Expand_Actuals).
2911 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
2914 2009-07-07 Robert Dewar <dewar@adacore.com>
2916 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
2918 2009-07-07 Javier Miranda <miranda@adacore.com>
2920 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
2921 designated type comes from a limited views.
2923 2009-07-07 Emmanuel Briot <briot@adacore.com>
2925 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
2926 locally removed files that are later made visible again in an importing
2929 2009-07-07 Robert Dewar <dewar@adacore.com>
2931 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
2933 2009-07-07 Sergey Rybin <rybin@adacore.com>
2935 * gnat_ugn.texi: Add an example to the description of gnatcheck
2936 'Style_Checks' rule option.
2938 2009-07-07 Tristan Gingold <gingold@adacore.com>
2940 * seh_init.c: Fix inline assembly statement in seh_init.c
2942 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2944 * sem_warn.adb (Check_References): Do not emit warnings on formals of
2945 an entry body. Only the formals of the entry declaration are traced.
2947 2009-07-07 Robert Dewar <dewar@adacore.com>
2949 * s-osprim-mingw.adb: Minor code reorganization
2951 2009-07-07 Robert Dewar <dewar@adacore.com>
2953 * prj-nmsc.adb: Minor reformatting
2955 2009-07-07 Pascal Obry <obry@adacore.com>
2957 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
2958 cases where Pattern is longer than Source.
2960 2009-07-07 Pascal Obry <obry@adacore.com>
2962 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
2964 2009-07-07 Emmanuel Briot <briot@adacore.com>
2966 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
2969 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2971 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
2972 primitive operations, in case one of them is called in the
2973 initialization procedure for the type.
2975 2009-07-07 Robert Dewar <dewar@adacore.com>
2977 * a-calend.adb: Minor code reorganization (use conditional expressions)
2979 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
2980 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
2981 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
2982 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
2983 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
2984 g-comlin.adb, exp_ch11.adb: Minor reformatting.
2986 2009-07-07 Gary Dismukes <dismukes@adacore.com>
2988 * checks.adb (Generate_Range_Check): Replace type conversions with
2989 unchecked conversions to support the case of performing range checks
2990 on Enum'Val (permits integer values to be converted to enumeration).
2992 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
2993 Attribute_Succ): Set Do_Range_Check to False before calling
2994 Expand_Pred_Succ, to prevent gigi from generating any range checks.
2995 (Expand_N_Attribute_Reference, case Attribute_Val):
2996 Generate a range check when needed (and set Do_Range_Check to False).
2998 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
2999 scalar object initialization if needed.
3001 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
3002 when needed on scalar allocators.
3003 (Expand_N_Qualified_Expression): Generate range check when needed.
3004 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
3005 Checks on slice ranges handled in Resolve_Slice.
3007 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
3008 when needed, for all scalar assignments, not just discrete.
3009 (Expand_Simple_Function_Return): Resolve the conversion created for a
3010 scalar function return so that the conversion will get expanded to
3011 generate a possible constraint check.
3013 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3014 in out scalar actuals when subtypes don't match, to ensure generation
3015 of return checks (and set Do_Range_Check to False).
3016 (Expand_Call): Uncomment code to perform range checks, but make it apply
3017 only to in and in out parameters (checks on parameter returns are
3018 handled in Expand_Actuals). If a scalar actual for a call to a derived
3019 subprogram is marked as needing a range check, peform it here (and set
3020 Do_Range_Check to False).
3022 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3023 range check on scalar component associations when needed.
3025 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3026 infinities but the second type does not, as these aren't compatible
3027 floating-point types.
3029 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3030 slice is itself a slice, pick up the Etype of the prefix. This handles
3031 the case where the prefix was an Image attribute expanded to a slice,
3032 and ensures that we get the subtype with the slice constraint rather
3033 than the unconstrained subbtype of the 'Image.
3035 2009-07-07 Ed Schonberg <schonberg@adacore.com>
3037 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3038 overloaded expressions in a conditional expressions.
3040 * sem_res.adb (Resolve): Handle properly overloaded conditional
3043 2009-07-07 Robert Dewar <dewar@adacore.com>
3045 * scng.adb: Minor reformattting
3047 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3048 association allows conditional expression without parens.
3050 * par-ch4.adb (P_Name): Attribute arguments can be conditional
3051 expressions without enclosing parentheses, and also as parameters,
3052 indexing expressions etc.
3053 (P_Conditional_Expression): New procedure
3054 (P_Expression_If_OK): New procedure
3056 * par.adb (P_Conditional_Expression): New procedure
3057 (P_Expression_If_OK): New procedure
3059 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3060 form of conditional expression.
3062 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3063 missing True argument if ELSE argument missing.
3065 * sinfo.adb (Is_Elsif): New flag
3067 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3068 part of the language, and the documentation is modified accordingly.
3069 (Is_Elsif): New flag
3071 2009-07-06 Olivier Hainque <hainque@adacore.com>
3073 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3074 setjmp_longjmp): Attach the exception propagation reraise fallback
3075 to the sequence end label location when we have it.
3077 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3080 * init.c (APPLE): Include <mach/mach_init.h>.
3081 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3083 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
3085 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3086 (SET_DECL_LANG_SPECIFIC): Likewise.
3087 (TYPE_RM_VALUE): New macro.
3088 (SET_TYPE_RM_VALUE): Likewise.
3089 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3090 (TYPE_RM_MIN_VALUE): Likewise.
3091 (TYPE_RM_MAX_VALUE): Likewise.
3092 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
3093 (SET_TYPE_RM_MIN_VALUE): Likewise.
3094 (SET_TYPE_RM_MAX_VALUE): Likewise.
3095 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
3097 2009-07-04 Laurent GUERBY <laurent@guerby.net>
3100 * tracebak.c (__gnat_backtrace): Fix old-style definition.
3102 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3104 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
3106 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3109 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3112 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
3114 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3116 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3118 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3119 the type of the left operand if it pads a self-referential type when
3120 the right operand is a constructor.
3122 * gcc-interface/lang-specs.h: Fix copyright date.
3124 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3126 * gcc-interface/decl.c: Include tree-inline.h.
3127 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3128 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3129 * gcc-interface/utils2.c: Include tree-inline.
3130 (known_alignment) <CALL_EXPR>: Likewise.
3132 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
3134 * raise-gcc.c: Include dwarf2.h conditionally.
3136 2009-06-29 Tom Tromey <tromey@redhat.com>
3138 * raise-gcc.c: Include elf/dwarf2.h.
3140 2009-06-27 Laurent GUERBY <laurent@guerby.net>
3142 * tb-gcc.c (trace_callback): Add casts to silence warning.
3144 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
3146 * tb-gcc.c: Fix copyright notice.
3148 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
3150 * init.c (__gnat_set_globals): Add prototype.
3151 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
3152 (__gnat_sals_init_using_constructors): Likewise.
3153 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
3154 (get_block_jmpbuf_decl): Likewise.
3155 (gnat_poplevel): Likewise.
3156 (merge_sizes): Rename local variable.
3157 (copy_type): Likewise.
3158 (build_vms_descriptor32): Likewise.
3159 (build_vms_descriptor): Likewise.
3160 (convert_vms_descriptor64): Likewise.
3161 (convert_vms_descriptor32): Likewise.
3162 (convert_to_fat_pointer): Likewise.
3163 (maybe_unconstrained_array): Likewise.
3164 (def_fn_type): Use promoted type with va_arg.
3165 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
3166 (substitute_in_type): Rename local variable.
3167 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
3169 2009-06-26 Laurent GUERBY <laurent@guerby.net>
3171 * tb-gcc.c (trace_callback): Use char* instead of void*.
3172 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
3173 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
3174 (Attribute_to_gnu): Adjust for above change.
3175 (Subprogram_Body_to_gnu): Likewise.
3176 * gcc-interface/utils.c (merge_sizes): Rename local variable.
3177 (copy_type): Likewise.
3178 (build_vms_descriptor32): Likewise.
3179 (build_vms_descriptor): Likewise.
3180 (convert_vms_descriptor64): Likewise.
3181 (convert_vms_descriptor32): Likewise.
3182 (convert_to_fat_pointer): Likewise.
3183 (maybe_unconstrained_array): Likewise.
3184 * gcc-interface/decl.c (substitute_in_type): Likewise.
3186 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3188 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
3189 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
3190 of the upper bound of the index types.
3192 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3194 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
3195 out common predicate. Use the maximum to compute the upper bound of
3196 the index type only when it is not wider than sizetype. Perform the
3197 comparison in the index type for the generic expression. Use real
3198 precision to decide whether to generate special types for debugging
3201 2009-06-26 Matthew Gingell <gingell@adacore.com>
3203 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
3205 2009-06-26 Vincent Celier <celier@adacore.com>
3207 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
3210 2009-06-26 Robert Dewar <dewar@adacore.com>
3212 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
3214 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
3216 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
3217 correct arguments to create_field_decl. Remove redundant iteration.
3218 Rewrite computation of the maximum size.
3219 <E_Array_Subtype>: Reorder and simplify handling of special cases.
3220 Rewrite computation of the maximum size. Use consistent naming.
3221 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
3222 comparison order for consistency. Use generic integer node to
3223 build the operator and fold the result.
3225 2009-06-25 Vincent Celier <celier@adacore.com>
3227 * vms_data.ads: Minor comment change
3229 2009-06-25 Gary Dismukes <dismukes@adacore.com>
3231 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
3232 assignment statement to targeting a caller-provided object when the
3233 result type is an interface type.
3235 * exp_ch6.adb (Expand_Call): Remove redundant test of
3236 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
3237 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
3239 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
3240 to OK_For_Limited_Init.
3242 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
3243 condition so that True is returned for all limited interfaces, not
3244 just synchronized ones. Ignore components of an interface type when
3245 checking for limited components (such a component can be a parent
3248 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
3249 (OK_For_Limited_Init): Add type parameter.
3251 * sem_ch3.adb (Check_Initialization): Add type in call to
3252 OK_For_Limited_Init.
3253 (OK_For_Limited_Init): Add new type param in call to
3254 OK_For_Limited_Init_In_05.
3255 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
3256 nonlimited type when the context type is a limited interface. Add type
3259 * sem_ch4.adb (Analyze_Allocator): Add type in call to
3260 OK_For_Limited_Init.
3262 * sem_ch6.adb (Check_Limited_Return): Add type in call to
3263 OK_For_Limited_Init.
3265 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
3266 OK_For_Limited_Init.
3267 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
3269 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
3270 class-wide interface, get the base type before applying Etype, in order
3271 to account for class-wide subtypes.
3273 2009-06-25 Emmanuel Briot <briot@adacore.com>
3275 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
3276 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
3277 between gnatmake and gprbuild.
3278 (Naming_Data): Removed, no longer used
3279 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
3280 needed locally in one subprogram, no need to store forever in the
3282 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
3284 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
3285 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
3286 Spec_Suffix_Id_Of): removed, no longer used.
3288 2009-06-25 Javier Miranda <miranda@adacore.com>
3290 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
3291 types on qualified expression in calls to imported C++ constructors.
3293 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
3294 imported C++ constructors.
3296 2009-06-25 Sergey Rybin <rybin@adacore.com>
3298 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
3300 2009-06-25 Vincent Celier <celier@adacore.com>
3302 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
3303 provided, on Windows change all '/' to '\'.
3305 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
3306 used. Minor comment changes
3308 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
3309 Remove_Forbidden_File_Name.
3311 2009-06-25 Quentin Ochem <ochem@adacore.com>
3313 * prj.ads (Unit_Index): Now general access type.
3315 2009-06-25 Pascal Obry <obry@adacore.com>
3317 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
3319 2009-06-25 Emmanuel Briot <briot@adacore.com>
3321 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
3322 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
3323 computed efficiently from the other fields.
3324 (Object_To_Global_Archive): New subprogram
3325 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
3326 (Override_Kind): Fix handling of separates in Ada.
3327 (Create_Mapping_File): Remove duplicate code
3328 (Naming_Data.Implementation_Exception, Specification_Exception):
3329 field removed, since never used.
3330 (Naming_Data.Specs, .Bodies): field removed, since this is only
3331 used while processing the project and is not needed once the tree
3332 is in memory. This brings Naming_Data and Lang_Naming_Data
3333 closer (same content now, but different use still).
3335 2009-06-25 Pascal Obry <obry@adacore.com>
3337 * sem_ch4.adb: Minor reformatting.
3339 * a-strsea.adb: Fix confusion between 'Length and 'Last.
3341 2009-06-25 Ed Schonberg <schonberg@adacore.com>
3343 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
3344 Unchecked_Access): If the context is an interface type, and the prefix
3345 is of the corresponding class-wide type, do not insert a conversion
3346 because the pointer displacement has already taken place, and we must
3347 retain the class-wide type in a dispatching context.
3349 2009-06-25 Emmanuel Briot <briot@adacore.com>
3351 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
3352 the previous source file.
3353 (Create_Mapping): Iterate on sources rather than on units.
3355 2009-06-25 Emmanuel Briot <briot@adacore.com>
3357 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
3358 prj-env.adb, prj-env.ads (Slash): removed, no longer used
3359 (Source_Data): no longer use Path.Name to point to a locally removed
3360 file. Instead we use the field Locally_Removed which is clearer
3362 2009-06-25 Arnaud Charlet <charlet@adacore.com>
3364 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
3366 * sem_maps.adb, sem_maps.ads: Removed, not used.
3368 2009-06-25 Ed Falis <falis@adacore.com>
3370 * s-vxwext-rtp.ads: Add missing declaration
3372 2009-06-25 Matthew Gingell <gingell@adacore.com>
3374 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
3375 speed up unmapped case.
3377 2009-06-25 Vincent Celier <celier@adacore.com>
3379 * prj-nmsc.adb (Check): Change error message for illegal abstract
3382 2009-06-25 Robert Dewar <dewar@adacore.com>
3384 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
3386 2009-06-25 Emmanuel Briot <briot@adacore.com>
3388 * fmap.ads: Add documentation on mapping files
3390 2009-06-25 Robert Dewar <dewar@adacore.com>
3392 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
3395 2009-06-24 Robert Dewar <dewar@adacore.com>
3397 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
3399 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
3403 2009-06-24 Ed Schonberg <schonberg@adacore.com>
3405 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
3406 present when checking whether a call may be interpreted as an indexing
3407 of the result of a call.
3409 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
3410 body for a null procedure on the freeze actions for the procedure, so
3411 that it will be analyzed at the proper place without premature freezing
3414 * sem_ch3.adb (Check_Completion): Code cleanup.
3415 Do not diagnose a null procedure without a body, if previous errors
3416 have disabled expansion.
3418 2009-06-24 Doug Rupp <rupp@adacore.com>
3420 * init.c [VMS] Resignal C$_SIGKILL
3422 2009-06-24 Ed Falis <falis@adacore.com>
3424 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
3425 Define ERROR in body for VxWorks 6 kernel
3427 2009-06-24 Pascal Obry <obry@adacore.com>
3429 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
3430 in [Send/Receive]_Socket.
3432 2009-06-24 Emmanuel Briot <briot@adacore.com>
3434 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3435 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
3436 to several subprograms.
3437 (Source_Data.Other_Part): Removed, since can be computed from the
3439 (Other_Part): New subprogram.
3441 2009-06-24 Emmanuel Briot <briot@adacore.com>
3443 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
3444 the full base name of the file when the suffix doesn't start with a '.'.
3446 2009-06-24 Vincent Celier <celier@adacore.com>
3448 * prj-nmsc.adb (Check): A project declared abstract is legal if no
3449 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
3452 2009-06-24 Robert Dewar <dewar@adacore.com>
3454 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
3455 prj-env.adb: Minor reformatting
3457 2009-06-24 Ed Falis <falis@adacore.com>
3459 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
3460 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
3461 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
3462 support for VxWorks SMP.
3464 * gcc-interface/Make-lang.in: Update dependencies
3466 2009-06-24 Emmanuel Briot <briot@adacore.com>
3468 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3469 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
3471 (Source_Data.Lang_Kind): Removed, since it duplicates information
3472 already available through Language.Config.
3473 (Source_Data.Compile): Removed, since information is already available
3474 through the language.
3475 (Is_Compilable): New subprogram.
3476 (Source_Data.Dependency): Removed, since already available through
3478 (Source_Data.Object_Exist, Object_Linked): Removed since available
3479 through the language already.
3480 (Unit_Data.File_Names): Is now also set in multi_language mode, to
3481 bring the two modes closer in the resulting data structures.
3482 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
3483 just the name that would point into a hash table.
3484 (Get_Language_From_Name): New subprogram.
3486 2009-06-24 Javier Miranda <miranda@adacore.com>
3488 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
3489 visible through limited-with context clauses. In addition, avoid an
3490 extra tag check that is not required when the class-wide
3491 designated types of the operand and target types are
3493 (Tagged_Membership): Handle entities from the limited view.
3495 2009-06-24 Emmanuel Briot <briot@adacore.com>
3497 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
3498 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
3499 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
3500 different vocabularies for similar concepts (Impl/Body_Part and
3501 Spec/Specification).
3502 (Unit_Data): now points directly to a Source_Id, rather than duplicating
3503 some of the information in File_Name_Data. This also saves a bit of
3504 memory. However, since we are now using a pointer we need to test
3505 for null explicitly in several places of the code
3507 2009-06-24 Javier Miranda <miranda@adacore.com>
3509 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
3510 from processing the type conversion when the node is
3511 replaced by an N_Raise_Program_Error node.
3513 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
3515 * sem_ch6.adb (Designates_From_With_Type): New routine.
3516 (Process_Formals): Since anonymous access types are no longer flagged
3517 as from with types, traverse the designated type to determine whether
3518 it is coming from a limited view.
3520 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
3521 (Full_Designated_Type): Use Available_View to extract the non-limited /
3522 full view of a type.
3524 2009-06-24 Robert Dewar <dewar@adacore.com>
3526 * exp_ch6.adb: Minor reformatting
3528 * layout.adb: Minor reformatting
3530 * make.adb: Minor reformatting
3532 2009-06-24 Thomas Quinot <quinot@adacore.com>
3534 * sem_ch10.adb: Minor code reorganization.
3536 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
3538 * ttypes.ads: Minor editing.
3540 2009-06-24 Robert Dewar <dewar@adacore.com>
3542 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
3543 in deciding to do call-by-copy code.
3545 2009-06-24 Vincent Celier <celier@adacore.com>
3547 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
3548 check if an externally built library file is more current than the
3551 2009-06-23 Olivier Hainque <hainque@adacore.com>
3553 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
3554 c-common.c and populate in gnat_internal_attribute_table.
3556 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3558 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
3559 Available_View only when designated type of an anonymous access type
3562 2009-06-23 Robert Dewar <dewar@adacore.com>
3564 * sem_ch10.adb: Minor reformatting
3566 * ali.ads: Mino reformatting.
3568 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
3569 turning off inlining if ASIS mode active).
3571 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
3572 This belongs in gnat1drv.adb after switches are scanned.
3574 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
3576 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
3577 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
3578 when dealing with class-wide types. Detect a legal shadow entity and
3579 retrieve its non-limited view.
3581 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
3582 subprogram to top package level from Intall_Limited_Withed_Unit.
3583 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
3584 Add check which prevents the installation of a limited view if the
3585 non-limited view is already visible through a with clause.
3586 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
3587 legal shadow entity which may occur in subprogram formals of anonymous
3590 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
3592 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
3593 From_With_Type from the designated type to the generated anonymous
3594 access type. Remove associated comment.
3596 * sem_res.adb Add with and use clauses for Sem_Ch10.
3597 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
3598 non-limited view. Since the shadow entity may replace a regular
3599 incomplete type, return the available full view.
3601 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3603 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
3604 incomplete type declarations. Previous code was potentially quadratic
3605 in the number of visible declarations in any package appearing in a
3606 limited_with_clause.
3608 2009-06-23 Robert Dewar <dewar@adacore.com>
3610 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
3611 xref_lib.adb: Minor reformatting
3613 2009-06-23 Robert Dewar <dewar@adacore.com>
3615 * a-stzhas.adb: Provide dummy body to avoid build problems with old
3616 versions which did have a body for this unit.
3618 2009-06-23 Vincent Celier <celier@adacore.com>
3620 * prj-attr.adb: Attribute names Initial_Required_Switches and
3621 Final_Required_Switches changed to Leading_Required_Switches and
3622 Trailing_Required_Switches.
3624 * prj-nmsc.adb (Process_Compiler): Attribute names
3625 Initial_Required_Switches and Final_Required_Switches changed to
3626 Leading_Required_Switches and Trailing_Required_Switches.
3628 * prj.ads (Language_Config): Component Initial_Required_Switches and
3629 Final_Required_Switches changed to Leading_Required_Switches and
3630 Trailing_Required_Switches.
3632 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
3633 Final_Required_Switches; add standard names Leading_Required_Switches
3634 and Trailing_Required_Switches.
3636 2009-06-23 Thomas Quinot <quinot@adacore.com>
3638 * prj-conf.adb: Minor reformatting
3640 * xref_lib.adb: Minor cleanup
3642 2009-06-23 Emmanuel Briot <briot@adacore.com>
3644 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
3645 prj-conf.ads (Check_Configuration): New parameter
3646 Compiler_Driver_Mandatory.
3648 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3650 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
3651 context of the current unit has an inline pragma, the instance is not
3652 rewritten as the declaration of the package wrapper. Handle both
3653 possibilities when retrieving the visible subprogram that renames the
3654 instantiation itself.
3656 2009-06-23 Javier Miranda <miranda@adacore.com>
3658 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
3659 designated types referencing entities from the limited view.
3661 2009-06-23 Robert Dewar <dewar@adacore.com>
3663 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
3665 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
3668 * prj-conf.ads: Minor reformatting
3670 * prj-conf.adb: Minor reformatting
3672 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
3674 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
3675 to correspond to the log format that gnatmem now expects.
3677 2009-06-23 Vincent Celier <celier@adacore.com>
3679 * prj-attr.adb: New attributes Initial_Required_Switches,
3680 Final_Required_Switches and Object_File_Switches
3682 * prj-nmsc.adb (Process_Compiler): Process new attributes
3683 Name_Final_Required_Switches, Name_Initial_Required_Switches and
3684 Name_Object_File_Switches.
3686 * prj.ads (Language_Config): New component
3687 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
3688 Compiler_Final_Required_Switches and Object_File_Switches.
3690 * snames.ads-tmpl: New standard names Initial_Required_Switches,
3691 Final_Required_Switches and Object_File_Switches
3693 2009-06-23 Pascal Obry <obry@adacore.com>
3695 * s-strhas.adb, s-strhas.ads: Minor reformatting.
3697 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3699 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
3700 not indicate that the enclosing unit needs a body.
3702 2009-06-23 Emmanuel Briot <briot@adacore.com>
3704 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
3706 2009-06-23 Ed Schonberg <schonberg@adacore.com>
3708 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
3709 primitive equality include it with its source name even if the
3710 operation is currently invisible, to make sure that the corresponding
3711 slot in the dispatch table is reserved for the internal equality
3712 subsequently generated during expansion.
3714 2009-06-23 Matthew Gingell <gingell@adacore.com>
3716 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
3718 2009-06-22 Jose Ruiz <ruiz@adacore.com>
3720 * sysdep.c (__gnat_localtime_tzoff for RTX):
3721 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
3722 GetTimeZoneInformation instead.
3724 2009-06-22 Robert Dewar <dewar@adacore.com>
3726 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
3728 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3730 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
3731 instantiations declared in a previous generic package body.
3733 2009-06-22 Robert Dewar <dewar@adacore.com>
3735 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
3736 restriction No_Direct_Boolean_Operators.
3738 2009-06-22 Thomas Quinot <quinot@adacore.com>
3740 * bindusg.adb: Minor fixes to gnatbind usage message
3742 * sem_eval.adb: Minor reformatting
3744 2009-06-22 Javier Miranda <miranda@adacore.com>
3746 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
3747 freezing point the check on the use of abstract types in object
3748 declarations. Done to allow the declaration of C++ imported variables
3749 or constants whose type corresponds with an imported C++ classes for
3750 which the constructor is not imported.
3752 2009-06-22 Thomas Quinot <quinot@adacore.com>
3754 * sem_ch6.adb: Minor reformatting
3756 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3758 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
3759 component is constrained with an expression rather than with a
3760 discriminant of the enclosing type, use that expression when building
3761 the call to default-initialize the component, when the call is part of
3762 an aggregate with box initialization.
3764 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3766 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
3767 unconditional rather than a style check, because a formal name out of
3768 order is suspicious.
3770 2009-06-22 Vincent Celier <celier@adacore.com>
3772 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
3773 creating a directory automatically.
3775 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
3777 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
3778 untagged derived type, add a hidden component for every constrained
3779 discriminant of the parent type to keep record layout consistent.
3781 2009-06-22 Thomas Quinot <quinot@adacore.com>
3783 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
3786 2009-06-22 Matthew Gingell <gingell@adacore.com>
3788 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
3789 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
3790 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
3791 a-swuwha.adb: New unit System.String_Hash.
3792 Refactor redundant cut and pasted hash functions with instances of a
3793 new generic hash function.
3794 Implement a new string hashing algorithm which appears in testing to
3795 be move effective than to previous approach.
3797 2009-06-22 Ed Falis <falis@adacore.com>
3799 * sysdep.c: remove include for nfsLib.h and an NFS specific error
3800 message for VxWorks 653 vThreads: not supported by the OS.
3802 * gsocket.h: disable sockets for VxWorks 653 vThreads.
3804 2009-06-22 Robert Dewar <dewar@adacore.com>
3806 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
3808 2009-06-22 Robert Dewar <dewar@adacore.com>
3810 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
3813 * freeze.adb: Minor comment updates
3815 * s-valrea.adb (Bad_Based_Value): New procedure
3816 (Scan_Real): Raise exceptions with messages
3818 2009-06-22 Matthew Gingell <gingell@adacore.com>
3820 * adaint.h: Complete previous change.
3822 2009-06-22 Thomas Quinot <quinot@adacore.com>
3824 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
3826 2009-06-22 Ed Schonberg <schonberg@adacore.com>
3828 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
3829 enabled, emit warning when a non-controlling argument of the overriding
3830 operation appears out of place vis-a-vis of the formal of the
3831 overridden operation.
3833 2009-06-22 Vincent Celier <celier@adacore.com>
3835 * gnatcmd.adb (Check_Files): Close temporary files after all file names
3836 have been written into it.
3838 2009-06-22 Matthew Gingell <gingell@adacore.com>
3840 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
3843 2009-06-22 Thomas Quinot <quinot@adacore.com>
3845 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
3846 view of the root type is visible at the point of the call.
3848 2009-06-22 Pat Rogers <rogers@adacore.com>
3850 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
3852 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
3854 * freeze.adb: Add comments.
3856 2009-06-21 Thomas Quinot <quinot@adacore.com>
3858 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
3859 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
3860 Factor out code to new subprogram...
3861 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
3862 for a default initialized variable.
3863 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
3864 entity that has an associated freeze node.
3865 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
3866 If there is an init call for the object, defer it to the object freeze
3868 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
3869 name clash with new subprogram introduced in Exp_Util.
3871 2009-06-21 Robert Dewar <dewar@adacore.com>
3873 * einfo.ads: Minor reformatting
3875 2009-06-21 Ed Falis <falis@adacore.com>
3877 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
3879 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
3881 * einfo.ads: Update comments.
3883 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
3885 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
3886 where the controlling formal is of private class-wide type whose
3887 completion is a synchronized type can be converted into direct calls.
3889 2009-06-21 Vincent Celier <celier@adacore.com>
3891 * gnatcmd.adb (Check_Files): When all sources of the project are to be
3892 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
3893 of sources using -files=, so that the distinction can be made by the
3894 tool of a call with no source (to display the usage) from a call with
3895 a project file that contains no source.
3897 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
3899 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
3900 case of VM convention arrays.
3902 2009-06-20 Robert Dewar <dewar@adacore.com>
3904 * a-nudira.adb: Minor reformatting
3906 2009-06-20 Ed Schonberg <schonberg@adacore.com>
3908 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
3909 expressions (possibly from a parent type) indicate that the scope of
3910 the new itypes is the initialization procedure being built.
3912 2009-06-20 Robert Dewar <dewar@adacore.com>
3914 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
3915 Needs_64, and now computed without anomolies for some dynamic types.
3917 2009-06-20 Thomas Quinot <quinot@adacore.com>
3919 * sem_prag.adb: Minor reformatting
3921 * exp_disp.ads: Minor reformatting
3923 2009-06-20 Ed Schonberg <schonberg@adacore.com>
3925 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
3926 function call is a legal expression to initialize a limited object.
3928 * exp_ch3.adb: Rename various freeze operations that perform expansion
3929 actions, to prevent confusion with subprograms in the freeze package.
3931 2009-06-20 Ed Schonberg <schonberg@adacore.com>
3933 * sem.adb (Walk_Library_Units): Check instantiations first.
3935 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
3936 private primitive if it is a function with a controlling result that is
3937 a type extension with progenitors.
3939 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
3940 a primitive operation of a synchronized tagged type that has a
3943 2009-06-20 Thomas Quinot <quinot@adacore.com>
3945 * einfo.ads: Fix typo.
3947 2009-06-20 Ed Falis <falis@adacore.com>
3949 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
3951 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3953 * gcc-interface/trans.c (emit_check): Do not wrap up the result
3955 (protect_multiple_eval): Always protect complex expressions.
3957 2009-06-19 Emmanuel Briot <briot@adacore.com>
3959 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
3960 make sure we always return a name ending with a path separator.
3962 2009-06-19 Javier Miranda <miranda@adacore.com>
3964 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
3965 Save and restore the visibility of the parent when installed.
3967 2009-06-19 Jose Ruiz <ruiz@adacore.com>
3969 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
3970 by Common which contains all these fields.
3972 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
3973 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
3974 Remove code duplication in this package by means of calling the
3975 equivalent code in s-taprob.
3977 2009-06-19 Robert Dewar <dewar@adacore.com>
3979 * a-einuoc.ads: Minor reformatting
3981 2009-06-19 Ed Falis <falis@adacore.com>
3983 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
3984 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
3986 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3988 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
3990 2009-06-19 Robert Dewar <dewar@adacore.com>
3992 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
3995 * checks.adb (Determine_Range): Move the test for generic types later.
3997 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
3999 (Eval_Relational_Op): Fold more cases including string compares
4001 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
4004 2009-06-19 Robert Dewar <dewar@adacore.com>
4006 * sem_type.ads, sem_ch12.adb: Minor reformatting
4008 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
4010 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4012 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4013 primitive operation of a rivate extension whose controlling argument
4014 is an out parameter.
4016 * sem.adb (Walk_Library_Units): exclude generic package declarations
4019 2009-06-19 Thomas Quinot <quinot@adacore.com>
4021 * i-vxwoio.ads: Add comments
4023 2009-06-19 Thomas Quinot <quinot@adacore.com>
4025 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4026 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4027 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4028 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4029 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4030 Thin_Common.Socket_Ioctl.
4031 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4032 __gnat_socket_ioctl.
4033 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4034 argument after the file descriptor and request code.
4036 2009-06-19 Robert Dewar <dewar@adacore.com>
4038 * checks.adb: Minor reformatting
4040 2009-06-19 Jose Ruiz <ruiz@adacore.com>
4042 * env.c (__gnat_environ): RTX does not support this functionality.
4044 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4046 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4047 traverse, to account for front-end inlining and instantiations in a
4048 spec or in the main unit.
4050 2009-06-19 Robert Dewar <dewar@adacore.com>
4052 * checks.adb (Determine_Range): Do not attempt to get range of generic
4055 2009-06-19 Sergey Rybin <rybin@adacore.com>
4057 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4058 gnatmetric option for generating the schema file for gnatmetric XML
4059 output. Add corresponding VMS qualifier.
4061 2009-06-19 Robert Dewar <dewar@adacore.com>
4063 * g-cgi.adb: Minor reformatting
4065 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4067 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4068 signal code for SIGFPE and raise Program_Error for SIGILL.
4070 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4072 2009-06-19 Ed Schonberg <schonberg@adacore.com>
4074 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4075 generic package if there is a visibility candidate that is declared in
4078 2009-06-18 Olivier Hainque <hainque@adacore.com>
4080 * system-aix64.ads: New file.
4081 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4082 64bit system.ads for ppc64 multilib variants.
4084 2009-06-16 Robert Dewar <dewar@adacore.com>
4085 Olivier Hainque <hainque@adacore.com>
4087 Relax constraints on Machine_Attribute argument types:
4088 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4090 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4091 * gcc-interface/decl.c (prepend_attributes): Accept static
4092 expressions of any type as attribute arguments, not only string
4094 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
4095 the relaxation of the restriction on the Info argument type.
4097 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
4099 * gcc-interface/utils.c (record_builtin_type): Pass location
4100 argument to build_decl.
4101 (create_type_stub_decl): Same.
4102 (create_type_decl): Same.
4103 (create_var_decl_1): Same.
4104 (create_field_decl): Same.
4105 (create_param_decl): Same.
4106 (create_label_decl): Same.
4107 (create_subprog_decl): Same.
4108 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4109 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4110 argument to create_artificial_label.
4111 (Loop_Statement_to_gnu): Same.
4112 (Subprogram_Body_to_gnu): Same.
4113 (gnat_gimplify_stmt): Same.
4115 2009-06-11 Richard Henderson <rth@redhat.com>
4117 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4120 2009-06-11 Ed Schonberg <schonberg@adacore.com>
4122 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4123 accessibiliy check on access_to_subprogram in the context of an
4124 anonymous access that is not an access parameter.
4126 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
4128 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4130 2009-06-11 Quentin Ochem <ochem@adacore.com>
4132 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4133 comments for message handled by GPS.
4135 2009-06-11 Matthew Gingell <gingell@adacore.com>
4137 * adaint.c: Use fopen64 instead of fopen on platforms where we know
4140 2009-06-11 Pascal Obry <obry@adacore.com>
4142 * g-cgi.ads: Fix comment typo.
4144 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
4146 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
4148 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
4149 a reference to the original type for the type of the field of the
4151 (maybe_pad_type): Likewise.
4153 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
4154 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
4155 Pass correctly typed arguments to create_field_decl.
4156 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
4157 case of contrained discriminants as well. Use the padded base type
4158 in the other case as well. Rename temporary variable. Tweak test.
4159 Factor common access pattern. Set GNU_SIZE only once.
4161 2009-06-09 Olivier Hainque <hainque@adacore.com>
4163 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
4164 helper for build_call_alloc_dealloc with arguments to be interpreted
4165 identically. Process the case where a GNAT_PROC to call is provided.
4166 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
4167 and return an allocator for DATA_SIZE bytes aimed at containing a
4168 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
4169 DATA_TYPE alignments greater than what the latter offers.
4170 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
4171 release a DATA_TYPE object designated by DATA_PTR using the
4172 __gnat_free entry point.
4173 (build_call_alloc_dealloc): Expect object data type instead of naked
4174 alignment constraint. Use the new helpers.
4175 (build_allocator): Remove special processing for the super-aligned
4176 case, now handled by build_call_alloc_dealloc. Pass data
4177 type instead of the former alignment argument, as expected by the new
4179 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
4181 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
4182 Remove special processing for the super-aligned case, now handled
4183 by build_call_alloc_dealloc. Pass data type instead of the former
4184 alignment argument, as expected by the new interface.
4186 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
4188 * lib-writ.adb (flag_compare_debug): Import.
4189 (Write_ALI): Skip during -fcompare-debug-second.
4191 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4193 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
4194 adjusting the discriminant nodes in an extension, use the full view
4195 of the parent subtype if it is of a private kind.
4197 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4199 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
4200 _Parent field, if any, to the record before adding the other fields.
4201 <E_Record_Subtype>: Put the _Controller field before the other fields
4202 except for the _Tag or _Parent fields.
4203 (components_to_record): Likewise. Retrieve the _Parent field from the
4206 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
4208 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
4209 remove unused parameter and simplify.
4210 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
4211 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
4212 as context for all discriminants. Fix formatting nits.
4213 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
4214 before Discriminant_Constraint. Adjust for above renaming. Do not
4215 set GNU_TYPE more than once.
4216 (elaborate_entity): Test Has_Discriminants on the entity and use
4217 Implementation_Base_Type.
4218 (components_to_record): Rename component_list to gnat_component_list.
4219 Retrieve the _Parent field from the list. Fix nits in comments.
4220 Clarify logic in loop. Pass correct arguments to create_field_decl.
4222 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
4224 * gcc-interface/Make-lang.in: Fix formatting.
4226 2009-06-01 Olivier Hainque <hainque@adacore.com>
4227 Eric Botcazou <ebotcazou@adacore.com>
4229 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
4230 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
4231 on the result if at least one of the input fields couldn't be output
4232 as a static constant any more.
4234 2009-06-01 Olivier Hainque <hainque@adacore.com>
4235 Eric Botcazou <ebotcazou@adacore.com>
4237 * gcc-interface/utils2.c (gnat_build_constructor): Factor
4238 out code. Use initializer_constant_valid_for_bitfield_p and
4239 CONSTRUCTOR_BITFIELD_P for bit-fields.
4241 2009-05-26 Ian Lance Taylor <iant@google.com>
4243 * gcc-interface/Makefile.in (COMPILER): Define.
4244 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
4245 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
4246 (seh_init.o, tracebak.o): Likewise.
4247 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
4248 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
4249 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
4250 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
4251 (ada/utils2.o): Likewise.
4253 2009-05-24 Olivier Hainque <hainque@adacore.com>
4255 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
4256 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
4257 Add -auxbase variants to the list of recognized internal switches.
4258 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
4260 * lib.ads: Make comment on internal GCC switches more general.
4261 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
4264 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4266 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
4268 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4270 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
4273 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
4275 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
4276 original type because of the alignment when there is an address clause.
4278 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
4280 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
4281 discriminants affect the shape of the subtype, retrieve the GCC type
4282 directly from the original field if the GNAT types for the field and
4283 the original field are the same.
4285 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
4287 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
4289 (TYPE_RM_VALUES): Likewise.
4290 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
4291 (SET_TYPE_RM_SIZE): New macro.
4292 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
4293 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
4294 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
4295 * gcc-interface/gigi.h (create_range_type): Declare.
4296 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
4297 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
4298 <E_Signed_Integer_Subtype>: Build a regular integer type first and
4299 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
4300 <E_Floating_Point_Subtype>: Build a regular floating-point type first
4301 and then set the RM bounds.
4302 <E_Array_Type>: Use create_range_type instead of build_range_type.
4303 <E_Array_Subtype>: Build a regular integer type first and then set
4304 the RM bounds for the extra subtype.
4305 <E_String_Literal_Subtype>: Use create_range_type instead of
4307 <all>: Set the RM bounds for enumeration types and the GCC bounds for
4308 floating-point types.
4309 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
4310 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
4311 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
4312 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
4313 types and with RM bounds for subtypes.
4314 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
4315 (gnat_print_type) <REAL_TYPE>: New case.
4316 <ENUMERAL_TYPE>: Fall through to above case.
4317 (gnat_get_subrange_bounds): New function.
4318 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
4319 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
4320 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
4321 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
4322 (create_range_type): New function.
4323 (create_param_decl): Build a regular integer type first and then set
4324 the RM bounds for the extra subtype.
4325 (unchecked_convert): Remove kludge for 'Valid.
4326 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
4327 the index to sizetype instead of TYPE_DOMAIN.
4329 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
4331 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
4332 parameter and move check for static expression to...
4333 (elaborate_expression): ...here. Adjust call to above function.
4334 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
4335 in calls to elaborate_expression.
4336 (elaborate_entity): Likewise.
4337 (substitution_list): Likewise.
4338 (maybe_variable): Fix formatting.
4339 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
4341 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
4343 2009-05-07 Arnaud Charlet <charlet@adacore.com>
4345 * gcc-interface/Make-lang.in: Update dependencies.
4347 2009-05-06 Laurent GUERBY <laurent@guerby.net>
4349 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
4350 Define sa_handler_pos.
4351 * s-osinte-linux.ads: Use it.
4352 * s-linux-mipsel.ads: New.
4353 * system-linux-mips64el.ads: New.
4354 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
4357 2009-05-06 Arnaud Charlet <charlet@adacore.com>
4359 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
4360 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
4361 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
4362 (Tagged_Type_Expansion): New flag.
4363 Replace use of VM_Target related to tagged types expansion by
4364 Tagged_Type_Expansion, since tagged type expansion is not necessarily
4365 linked to VM targets.
4367 2009-05-06 Robert Dewar <dewar@adacore.com>
4369 * sem_attr.adb: Add processing for Standard'Compiler_Version
4371 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
4373 (Expr_First_Char): Add ??? comment that paren skipping needs work
4374 (Expr_Last_Char): Add ??? comment that paren skipping needs work
4376 * exp_attr.adb: Add processing for Compiler_Version
4378 * sem_attr.adb: New attribute Compiler_Version
4380 * snames.ads-tmpl: Add entries for Compiler_Version attribute
4382 * gnat_rm.texi: Document Compiler_Version attribute
4384 2009-05-06 Robert Dewar <dewar@adacore.com>
4386 * errout.adb: Minor reformatting
4388 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
4389 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
4390 styleg.adb: Add stylized comments to error messages that are included
4391 in the codefix circuitry of IDE's such as GPS.
4393 2009-05-06 Sergey Rybin <rybin@adacore.com>
4395 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
4396 new form of the rule parameter that allows to specify the suffix for
4397 access-to-access type names.
4399 2009-05-06 Robert Dewar <dewar@adacore.com>
4401 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
4402 out parameter assigned when exception handlers are present.
4404 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
4405 assignments on exit.
4407 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
4408 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
4409 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
4410 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
4411 messages that are included in the codefix circuitry of IDE's such as
4414 * sinput.ads, sinput.adb (Expr_First_Char): New function
4415 (Expr_Last_Char): New function
4417 2009-05-06 Sergey Rybin <rybin@adacore.com>
4419 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
4420 Add formal definition for extra exit point metric
4422 2009-05-06 Pascal Obry <obry@adacore.com>
4424 * adaint.c: Support for setting attributes on unicode filename on
4427 2009-05-06 Robert Dewar <dewar@adacore.com>
4429 * sem_warn.adb: Minor reformatting
4431 2009-05-06 Javier Miranda <miranda@adacore.com>
4433 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
4434 not have discriminants or components with default expressions.
4435 (Analyze_Pragma): For pragma CPP_Class check that imported types
4436 have no discriminants and components have no default expression.
4438 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
4439 class-wide types in the expression of a record component association.
4441 2009-05-06 Sergey Rybin <rybin@adacore.com>
4443 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
4445 * gnat_ugn.texi: Add description for the new extra exit points metric
4446 (gnatmetric section).
4448 2009-05-06 Robert Dewar <dewar@adacore.com>
4450 * s-fileio.adb: Minor comment update
4452 * sem_ch8.adb: Minor reformatting
4454 * exp_ch3.adb: Update comments.
4456 2009-05-06 Tristan Gingold <gingold@adacore.com>
4458 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
4460 2009-05-06 Arnaud Charlet <charlet@adacore.com>
4462 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
4463 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
4465 * gcc-interface/Make-lang.in: Update dependencies
4467 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4469 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
4470 change. The context clause of a generic instance declaration must be
4471 preserved until the end of the compilation, because it may have to be
4472 installed/removed repeatedly.
4473 The latest change to sem.adb ensures that the context of both spec and
4474 body of an instance is traversed before the instance itself, making
4475 this patch redundant.
4477 2009-05-06 Gary Dismukes <dismukes@adacore.com>
4479 * sem_aggr.adb: Fix typo.
4481 2009-05-06 Thomas Quinot <quinot@adacore.com>
4483 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
4484 declaration, do not adjust if the declaration is to be rewritten into
4487 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4489 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
4492 2009-05-06 Bob Duff <duff@adacore.com>
4494 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
4495 otherwise the compiler would be allowed to optimize away the cleanup
4498 2009-05-06 Gary Dismukes <dismukes@adacore.com>
4500 * gnat_ugn.texi: Fix typo.
4502 2009-05-06 Thomas Quinot <quinot@adacore.com>
4504 * g-debuti.adb: Minor reformatting
4506 * exp_attr.adb: Minor reformatting
4508 2009-05-06 Robert Dewar <dewar@adacore.com>
4510 * sem_aggr.adb: Minor reformatting.
4512 * g-socthi-vms.adb: Minor reformatting
4514 2009-05-06 Bob Duff <duff@adacore.com>
4516 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
4517 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
4519 2009-05-06 Bob Duff <duff@adacore.com>
4521 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
4524 2009-05-06 Javier Miranda <miranda@adacore.com>
4526 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
4527 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
4528 extension aggregates.
4529 (Resolve_Record_Aggregate): Add support for C++ constructors in
4530 extension aggregates.
4532 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
4533 constructors in extension aggregates.
4535 2009-05-06 Robert Dewar <dewar@adacore.com>
4537 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
4540 2009-05-06 Thomas Quinot <quinot@adacore.com>
4542 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
4543 packed type, since on OpenVMS, struct msghdr is packed.
4545 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4547 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4548 call returning an unconstrained composite value, create the proper
4549 subtype for it, as is done for object dclarations with unconstrained
4550 nominal subtypes. Perform this transformation regarless of whether
4551 call comes from source.
4553 2009-05-06 Robert Dewar <dewar@adacore.com>
4555 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
4559 Add documentation for pragma Implicit_Packing applied to record
4562 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4564 * sem.adb (Walk_Library_Items): Place all with_clauses of an
4565 instantiation on the spec, because late instance bodies may generate
4566 with_clauses for the instance body but are inserted in the instance
4569 2009-05-06 Emmanuel Briot <briot@adacore.com>
4571 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
4572 support for returning the directory even if it doesn't exist. This is
4573 used for the object directory, since we are always setting it to a
4574 non-null value, and we should set it to an absolute name rather than a
4575 relative name for the sake of external tools that might depend on it.
4576 (Check_Library_Attributes): When Project.Library_Dir is known, check
4577 that the directory exists.
4579 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4581 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
4582 reference is an implicit dereference, do not freeze the designated type
4583 if within a default expression or when preanalyzing a pre/postcondtion.
4585 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4587 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4588 call returning an unconstrained composite value, create the proper
4589 subtype for it, as is done for object dclarations with unconstrained
4592 2009-05-06 Robert Dewar <dewar@adacore.com>
4594 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
4597 * freeze.adb: Minor reformatting
4599 2009-05-06 Thomas Quinot <quinot@adacore.com>
4601 * sem_ch3.adb (Access_Type_Declaration): An access type whose
4602 designated type is a limited view from a limited with clause (flagged
4603 From_With_Type) is not itself such a limited view.
4605 2009-05-06 Emmanuel Briot <briot@adacore.com>
4607 * prj-nmsc.adb: Remove unused variable.
4609 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
4610 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
4611 makeutl.ads, since not all users of prj.ads need this.
4613 2009-05-06 Javier Miranda <miranda@adacore.com>
4615 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
4616 constructor in case of aggregates whose type is a CPP_Class type.
4618 2009-05-06 Robert Dewar <dewar@adacore.com>
4620 * sem_ch13.adb: Minor comment additions
4622 * osint.adb: Minor reformatting
4624 2009-05-06 Pascal Obry <obry@adacore.com>
4626 * initialize.c: On Windows, keep full pathname to expanded command
4629 2009-05-06 Ed Schonberg <schonberg@adacore.com>
4631 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
4632 an aggregate with box default is of a discriminated private type, do
4633 not build a subaggregate for it.
4634 A proper call to the initialization procedure is generated for it.
4636 2009-05-06 Thomas Quinot <quinot@adacore.com>
4638 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
4639 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
4640 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
4641 use standard array code for Standard.String.
4642 (Exp_Dist): Bump PolyORB s-parint API version to 3.
4643 (Rtsfind): New entities TA_Std_String, Unbounded_String.
4645 2009-05-06 Robert Dewar <dewar@adacore.com>
4647 * g-comlin.ads: Minor reformatting
4649 * xoscons.adb: Minor reformatting
4651 2009-05-06 Gary Dismukes <dismukes@adacore.com>
4653 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
4654 Underlying_Type before retrieving the type definition for gathering
4655 components, to account for the case where the type is private.
4657 2009-05-06 Tristan Gingold <gingold@adacore.com>
4659 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
4661 2009-05-06 Thomas Quinot <quinot@adacore.com>
4663 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4664 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
4665 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
4666 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
4667 Windows versions): Fix incorrect base
4668 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
4669 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
4670 System.Address for the To parameter instead of a Sockaddr_In_Access, to
4671 achieve independance from AF_INET family, and also to allow this
4672 parameter to be retrieved from a Msghdr for the Windows case where
4673 these routines are used to implement C_Sendmsg and C_Recvmsg.
4675 2009-05-06 Bob Duff <duff@adacore.com>
4677 * g-expect.adb, g-expect.ads: Minor reformatting
4679 * sdefault.ads: Minor comment fix
4681 * g-expect-vms.adb: Minor reformatting
4683 * table.ads, table.adb (Append_All): New convenience procedure for
4684 appending a whole array.
4686 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
4687 box message. Call Osint.Dump_Source_File_Names to print out the file
4688 list, instead of rummaging around in various data structures.
4690 * debug.adb: New switch -gnatd.n, to print source file names as they
4693 * alloc.ads: Add parameters for Osint.File_Name_Chars.
4695 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
4696 out source file names during a "bug box".
4697 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
4698 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
4699 If it's not part of the runtimes, store it for later printing by
4700 Dump_Source_File_Names.
4702 2009-05-06 Javier Miranda <miranda@adacore.com>
4704 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
4705 documentation and add reference to the GNAT user guide for further
4708 2009-05-06 Javier Miranda <miranda@adacore.com>
4710 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
4711 also wrong examples that use extension aggregates.
4713 2009-05-06 Albert Lee <lee@adacore.com>
4715 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
4716 of Msg_Iovlen_T for VMS.
4718 2009-05-04 Laurent GUERBY <laurent@guerby.net>
4721 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
4723 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4725 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
4726 box-defaulted operator in an instantiation, when the type of the
4727 operands is not directly visible.
4729 2009-04-29 Gary Dismukes <dismukes@adacore.com>
4731 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
4732 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
4733 analysis of the ancestor part. Remove prohibition against limited
4734 interpretations of the ancestor expression in the case of Ada 2005.
4735 Revise error message in overloaded case, adding a message to cover
4738 2009-04-29 Thomas Quinot <quinot@adacore.com>
4740 * xoscons.adb: Minor reformatting
4742 2009-04-29 Bob Duff <duff@adacore.com>
4744 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
4745 attribute_definition_clauses for the following attributes when the
4746 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
4747 Storage_Size, Write. Otherwise, we get spurious errors (for example,
4748 missing Read attribute on remote types).
4750 * gnat_ugn.texi: Document the change, and add a stern warning.
4752 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4754 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
4755 disabled not just for the current scope, but for the innermost dynamic
4758 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4760 * gcc-interface/Make-lang.in: Update dependencies
4762 2009-04-29 Vincent Celier <celier@adacore.com>
4764 * prj-part.adb: Minor comment update
4766 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4768 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
4769 box-initialized records with discriminated subcomponents that are
4770 constrained by discriminants of enclosing components. New subsidiary
4771 procedures Add_Discriminant_Values, Propagate_Discriminants.
4773 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4775 * g-socket.adb: Code clean up.
4777 2009-04-29 Gary Dismukes <dismukes@adacore.com>
4779 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
4780 function entity, to cover the case of a parameterless function call
4781 that has not been resolved.
4783 2009-04-29 Robert Dewar <dewar@adacore.com>
4785 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
4786 reformatting and comment updates.
4788 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4790 * gnat_ugn.texi: Update some documentation about interfacing with C++
4791 Mention -fkeep-inline-functions.
4793 * gnat_ugn.texi: Minor edits
4795 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4797 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
4798 for a defaulted component of an enclosing aggregate, inherit the type
4799 from the component declaration of the enclosing type.
4801 2009-04-29 Albert Lee <lee@adacore.com>
4803 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
4804 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
4805 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
4806 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
4807 Relocate the Msghdr record type from GNAT.Sockets.Thin to
4808 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
4809 type for the Msg_Iovlen field.
4811 2009-04-29 Vincent Celier <celier@adacore.com>
4813 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
4814 Source_File_Index_Table entries for the source, to avoid crash when
4817 * gnatcmd.adb (Test_If_Relative_Path): Use
4818 Makeutl.Test_If_Relative_Path.
4820 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
4821 Including_RTS is True.
4823 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
4824 Including_RTS defaulted to False.
4826 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
4829 2009-04-29 Javier Miranda <miranda@adacore.com>
4831 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
4833 2009-04-29 Javier Miranda <miranda@adacore.com>
4835 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
4836 associated with dyamically tagged expressions if the expression
4837 initializing a tagged type corresponds with a non default CPP
4839 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
4840 of limited type objects.
4842 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
4843 when a CPP constructor is called in an assignment. Disable also the
4844 error message associated with dyamically tagged expressions if the
4845 exporession initializing a tagged type corresponds with a non default
4848 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
4849 non-default C++ constructors.
4851 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
4853 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
4854 non-default constructors.
4855 (Init_Proc): Add support for non-default constructors.
4857 * exp_disp.adb (Set_Default_Constructor): Removed.
4858 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
4859 but extending its functionality to handle non-default constructors.
4861 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
4862 constructors. Minor code cleanup removing unrequired label and goto
4865 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
4867 (Build_Init_Statements): Add support for non-default constructors.
4868 (Expand_N_Object_Declaration): Add support for non-default constructors.
4869 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
4870 to Set_CPP_Constructors.
4872 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
4873 non-default constructors.
4874 Required to handle its use in build-in-place statements.
4876 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
4877 pragma for non-default C++ constructors and the new compiler support
4878 that allows the use of these constructors in record components, limited
4879 aggregates, and extended return statements.
4881 2009-04-29 Vincent Celier <celier@adacore.com>
4883 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
4884 project extending an abstract project.
4886 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
4888 * targparm.ads: Fix oversight.
4890 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4892 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
4893 derivation when necessary, to find the user-subprogram that is actally
4896 2009-04-29 Robert Dewar <dewar@adacore.com>
4898 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
4901 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4903 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
4904 primitive operation, rather than source line of synchronized type, when
4905 building the wrapper for a primitive operation that overrides an
4906 operation inherited from a progenitor, to improve the error message on
4907 duplicate declarations.
4909 * sem_ch3.adb (Process_Full_View): Use new signature of
4912 2009-04-29 Robert Dewar <dewar@adacore.com>
4914 * prj-nmsc.ads: Minor reformatting
4916 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
4918 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
4919 expression on the existing parent If statement.
4921 2009-04-29 Robert Dewar <dewar@adacore.com>
4923 * prj-proc.adb, prj.ads: Minor reformatting
4925 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
4927 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
4928 existing parent If statement on the newly created one.
4930 2009-04-29 Emmanuel Briot <briot@adacore.com>
4932 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4933 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
4934 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
4935 (Set_In_Configuration, In_Configuration): Removed.
4936 Replaced by an extra parameter Is_Config_File in several parameter to
4937 avoid global variables to store the state of the parser.
4939 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4941 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
4942 with_clauses generated for the same unit through rtsfind, and that
4943 appear in the context of different units.
4945 * rtsfind.adb: New attribute First_Implicit_With, component of the
4946 Unit_Record that stores information about a unit loaded through rtsfind.
4948 2009-04-29 Gary Dismukes <dismukes@adacore.com>
4950 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
4951 (other conditions permitting), so that abstract stream subprograms will
4952 be declared for them.
4954 2009-04-29 Bob Duff <duff@adacore.com>
4956 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
4958 * g-expect.ads: Minor comment fixes.
4960 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4962 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
4963 dispatching operation is a body without previous spec, update the list
4964 of primitive operations to ensure that cross-reference information is
4967 2009-04-29 Albert Lee <lee@adacore.com>
4969 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4970 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4971 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
4972 (GNAT.Sockets.Thin.C_Readv,
4973 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
4974 (GNAT.Sockets.Thin.C_Recvmsg,
4975 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
4977 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
4978 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
4980 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4982 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
4983 operation is a body without previous spec, update the list of
4984 primitive operations to ensure that cross-reference information is
4987 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
4988 new compilation unit node for the instance declaration, keep the
4989 context items of the original unit on it, so that the context of the
4990 instance body only holds the context inherited from the generic body.
4992 2009-04-29 Bob Duff <duff@adacore.com>
4994 * sem_res.adb: Minor comment fix.
4996 2009-04-29 Thomas Quinot <quinot@adacore.com>
4998 * sem_elim.adb: Minor reformatting
5000 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5002 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
5003 predefined unit, allow arbitrary number of components in static
5004 aggregate, to ensure that the same level of constant folding applies
5005 for Ada 95 and Ada 05 versions of the file.
5007 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5009 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
5010 information: no need for full scope check.
5011 (Eliminate_Error): Do not emit error in a generic context.
5013 2009-04-29 Ed Falis <falis@adacore.com>
5015 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5016 VxWorks 653 POS does not support rmdir.
5018 2009-04-29 Matteo Bordin <bordin@adacore.com>
5020 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5021 results are printed.
5023 2009-04-29 Arnaud Charlet <charlet@adacore.com>
5025 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5028 2009-04-29 Thomas Quinot <quinot@adacore.com>
5030 * make.adb: Minor reformatting.
5031 Minor code reorganization throughout.
5033 2009-04-29 Matteo Bordin <bordin@adacore.com>
5035 * s-stausa.ads: Changed visibility of type Task_Result: moved to
5036 public part to give application visibility over it.
5037 This is for future improvement and to build a public API on top of it.
5038 Changed record components name of type Task_Result to reflect the new
5041 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5042 reporting Stack usage.
5044 * gnat_ugn.texi: Update doc of stack usage report.
5046 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5048 * Makefile.rtl: Add new run-time files.
5050 2009-04-29 Pascal Obry <obry@adacore.com>
5052 * initialize.c: Do not expand quoted arguments.
5054 2009-04-29 Emmanuel Briot <briot@adacore.com>
5056 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5058 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5059 Prj.Ultimate_Extending_Project_Of
5061 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5063 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5064 Amendment type, add the with_clause for Finalization.List_Controller
5065 only if the current context is a package body.
5067 2009-04-29 Thomas Quinot <quinot@adacore.com>
5069 * sem_ch12.adb: Minor reformatting
5071 * sem_aggr.adb: Minor reformatting
5073 * sem_ch6.adb, sem_cat.ads: Minor reformatting
5075 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5077 2009-04-29 Quentin Ochem <ochem@adacore.com>
5079 * prj.ads (Source_Id): Now general pointer type.
5081 2009-04-29 Thomas Quinot <quinot@adacore.com>
5083 * exp_ch7.adb, rtsfind.adb: Minor reformatting
5085 * sem_res.adb: Minor reformatting
5087 2009-04-29 Thomas Quinot <quinot@adacore.com>
5089 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5090 operands is static only if it is a predefined concatenation operator.
5092 * sem_util.adb: Minor reformatting
5094 * sem_ch12.adb (Save_References): When propagating semantic information
5095 from generic copy back to generic template, for the case of an
5096 identifier that has been rewritten to an explicit dereference whose
5097 prefix is either an object name or a parameterless funcion call
5098 denoting a global object or function, properly capture the denoted
5099 global entity: perform the corresponding rewriting in the template,
5100 and point the rewritten identifier to the correct global entity (not
5101 to the associated identifier in the generic copy).
5103 2009-04-29 Robert Dewar <dewar@adacore.com>
5105 * rtsfind.adb, prj-env.adb: Minor reformatting
5106 Minor code reorganization
5108 2009-04-29 Emmanuel Briot <briot@adacore.com>
5110 * make.adb: Fix comment
5112 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5113 is given as argument, as might happen in gnatmake.
5115 2009-04-29 Ed Schonberg <schonberg@adacore.com>
5117 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5118 an abstract operation of a progenitor is not properly overridden by an
5119 operation of a derived synchronized type.
5121 2009-04-29 Robert Dewar <dewar@adacore.com>
5123 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5124 prj-proc.adb: Minor reformatting
5125 Minor code reorganization
5127 2009-04-29 Bob Duff <duff@adacore.com>
5129 * exp_ch7.adb (Build_Final_List): For an access type that designates a
5130 Taft Amendment type, if the access type needs finalization, make sure
5131 the implicit with clause for List_Controller occurs on the package spec.
5133 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5134 with's created for the pseudo-children of Text_IO and friends. In
5135 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5136 Ada.Text_IO.Integer_IO both with-ing each other.
5138 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5139 oddball cases when pragma Extend_System is used.
5141 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5142 the case where a package spec instantiates a generic whose body with's
5143 this package, so Walk_Library_Items won't complain about cyclic with's.
5145 2009-04-29 Emmanuel Briot <briot@adacore.com>
5147 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
5148 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
5149 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
5150 (Project_Id): now a real pointer to Project_Data, instead of an index
5151 into the Projects_Table. This simplifies the API significantly, avoiding
5152 extra lookups in this table and the need to pass the Project_Tree_Ref
5153 parameter in several cases
5155 2009-04-29 Nicolas Setton <setton@adacore.com>
5157 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
5160 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
5162 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
5165 2009-04-24 Robert Dewar <dewar@adacore.com>
5167 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
5168 clean.adb: Minor reformatting.
5169 Minor code reorganization and message improvement.
5171 2009-04-24 Emmanuel Briot <briot@adacore.com>
5173 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
5174 (Alternate_Languages): now implemented as a malloc-ed list rather
5175 than through a table.
5177 2009-04-24 Thomas Quinot <quinot@adacore.com>
5179 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
5180 accurately handle cases such as "lit" & "lit" and
5181 "lit" & static_string_constant
5183 2009-04-24 Emmanuel Briot <briot@adacore.com>
5185 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
5186 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
5187 removed. Lists of projects are now implemented via standard malloc
5188 rather than through the table.
5190 2009-04-24 Thomas Quinot <quinot@adacore.com>
5192 * sem_ch12.adb: Minor reformatting
5194 * g-trasym.adb: Minor reformatting
5196 * exp_ch6.adb: Minor reformatting
5198 2009-04-24 Robert Dewar <dewar@adacore.com>
5200 * layout.adb (Layout_Type): For packed array type, copy unset
5201 size/alignment fields from the referenced Packed_Array_Type.
5203 2009-04-24 Bob Duff <duff@adacore.com>
5205 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
5206 longer needed after sem_ch12 changes.
5208 * sem.adb (Walk_Library_Items): Include with's in some debugging
5211 2009-04-24 Emmanuel Briot <briot@adacore.com>
5213 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
5214 only ever using the Project field.
5216 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5218 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
5219 Body_Required on the generated compilation node. The new node is linked
5220 to its body, but both share the same file, so we do not set this flag
5221 on the new unit so as not to create a spurious dependency on a
5222 non-existent body in the ali file for the instance.
5224 2009-04-24 Robert Dewar <dewar@adacore.com>
5226 * make.adb: Minor reformatting
5228 2009-04-24 Emmanuel Briot <briot@adacore.com>
5230 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
5231 Add_Source): merge some code between those. In particular change where
5232 file normalization is done to avoid a few extra calls to
5233 Canonicalize_File_Name. This also removes the need for passing
5234 Current_Dir in a number of subprograms.
5236 2009-04-24 Bob Duff <duff@adacore.com>
5238 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
5239 False, assign the correct unit to the Cunit field of the new table
5240 entry. We want the spec unit, not the body unit.
5242 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
5243 interface for these.
5244 (Maybe_Add_With): Check whether we're trying to a with on the current
5245 unit, and avoid creating such directly self-referential with clauses.
5246 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
5247 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
5248 and matches existing comments in the spec.
5250 * sem.adb (Walk_Library_Items): Add various special cases to make the
5253 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
5254 instead of Parent (N), for uniformity.
5256 2009-04-24 Robert Dewar <dewar@adacore.com>
5258 * errout.ads: Minor reformatting
5260 2009-04-24 Emmanuel Briot <briot@adacore.com>
5262 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
5263 behavior when the project includes sources from multiple languages
5265 2009-04-24 Vincent Celier <celier@adacore.com>
5267 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
5268 is a language other than Ada declared.
5270 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
5271 Imported_First set to True.
5273 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5275 * sem_res.adb: additional optimization to inhibit creation of
5276 redundant transient scopes.
5278 2009-04-24 Bob Duff <duff@adacore.com>
5280 * rtsfind.ads: Minor comment fix
5282 2009-04-24 Emmanuel Briot <briot@adacore.com>
5284 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
5285 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
5286 basically doing the same work (for explicit or implicit sources).
5287 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
5288 role. Rewritten to share some code (testing that all explicit sources
5289 have been found) between ada_only and multi_language modes.
5291 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
5293 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
5294 for CLI imported types.
5295 (Analyze_Pragma): Allow CIL or Java imported functions returning
5296 access-to-subprogram types.
5298 2009-04-24 Emmanuel Briot <briot@adacore.com>
5300 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
5301 (Project_Data.Dir_Path): field removed, since it can be computed
5302 directly from .Directory, and is needed only once when processing the
5303 project is buildgpr.adb or make.adb
5305 2009-04-24 Robert Dewar <dewar@adacore.com>
5307 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
5308 rtsfind.adb: Minor reformatting.
5309 Minor code reorganization
5311 2009-04-24 Arnaud Charlet <charlet@adacore.com>
5313 * mlib-prj.adb: Use friendlier english identifier.
5315 * gnatcmd.adb, make.adb: Use better english identifiers.
5317 2009-04-24 Robert Dewar <dewar@adacore.com>
5319 * clean.adb: Minor reformatting
5321 2009-04-24 Robert Dewar <dewar@adacore.com>
5323 * einfo.adb (OK_To_Rename): New flag
5325 * einfo.ads (OK_To_Rename): New flag
5327 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
5330 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
5332 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
5335 2009-04-24 Emmanuel Briot <briot@adacore.com>
5337 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
5338 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
5339 field removed. This is not a property of the
5340 project, just a boolean used to traverse the project tree, and storing
5341 it in the structure prevents doing multiple traversal in parallel.
5342 (Project_Data.Checked): also removed, since it was playing the same role
5343 as Seen when we had two nested loops, and this is no longer necessary
5344 (For_All_Imported_Projects): removed, since in fact there was already
5345 the equivalent in For_Every_Project_Imported. The latter was rewritten
5346 to use a local hash table instead of Project_Data.Seen
5347 Various loops were rewritten to use For_Every_Project_Imported, thus
5348 removing the need for Project_Data.Seen. This avoids a lot of code
5351 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5353 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
5354 statements, even though the actual of the call is a concatenation,
5355 because the argument is static, and we want to preserve warning
5356 messages about sequences of code statements that are not marked
5359 * sem_warn.adb: remove obsolete comment about warning being obsolete
5361 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
5362 requeued and the delay has expired while within the accept statement
5363 that executes the requeue, do not perform the requeue and indicate that
5364 the timed call has been aborted.
5366 2009-04-24 Emmanuel Briot <briot@adacore.com>
5368 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5369 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
5370 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
5371 since they can be computed from the above.
5373 2009-04-24 Vincent Celier <celier@adacore.com>
5375 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
5377 * prj-env.adb: Move all global variables to the private part of the
5379 Access these new components instead of the global variables no longer
5381 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
5382 components that were previously global variables.
5384 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
5385 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
5388 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
5389 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
5391 * prj.adb (Initialize): Do not call Prj.Env.Initialize
5392 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
5393 components in the private part of the project tree data.
5395 * prj.ads (Private_Project_Tree_Data): new components moved from
5396 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
5397 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
5398 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
5400 2009-04-24 Vincent Celier <celier@adacore.com>
5402 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
5404 * prj-nmsc.adb (Check_Library): No error for imports by shared library
5405 projects, when --unchecked-shared-lib-imports is used.
5407 2009-04-24 Robert Dewar <dewar@adacore.com>
5409 * sem_ch7.adb: Minor reformatting
5411 2009-04-24 Tristan Gingold <gingold@adacore.com>
5413 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
5416 2009-04-24 Emmanuel Briot <briot@adacore.com>
5418 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
5419 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
5420 (For_All_Imported_Projects): new procedure
5421 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
5422 above rather than duplicating code.
5424 2009-04-24 Emmanuel Briot <briot@adacore.com>
5426 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5427 (Source_Id, Source_Data): use a real list to store sources rather than
5428 using an external table to store the elements. This makes code more
5429 efficient and more readable.
5431 2009-04-24 Emmanuel Briot <briot@adacore.com>
5433 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5434 (Source_Iterator): new type.
5435 This removes the need for having the sources on three different
5436 lists at the project tree, project and language level. They are now
5439 2009-04-24 Emmanuel Briot <briot@adacore.com>
5441 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
5443 2009-04-24 Ed Schonberg <schonberg@adacore.com>
5445 * sem_warn.adb: Add comment on obsolete warning
5447 2009-04-24 Arnaud Charlet <charlet@adacore.com>
5449 * s-tassta.adb (Create_Task): Fix violation of locking rule.
5451 2009-04-24 Emmanuel Briot <briot@adacore.com>
5453 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
5454 to Language_Ptr to better reflect its new implementation.
5455 (Project_Data.First_Languages_Processing): renamed to Languages now
5456 that the field with that name is no longer used
5457 (Project_Data.Languages): removed, no longer used, and duplicates
5458 information already available through First_Language_Processing.
5459 (Prj.Language_Index): now an actual pointer, instead of an index into
5460 a table. This makes the list somewhat more obvious, but more importantly
5461 removes the need to pass a pointer to the project_tree_data in a few
5462 places, and makes accessing the attributes of a languages more
5465 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5466 Thomas Quinot <quinot@adacore.com>
5468 * fe.h (Set_Identifier_Casing): Add const to second parameter.
5469 * gcc-interface/misc.c (internal_error_function): Make copy of return
5470 from pp_formatted_text before assigning BUFFER to it.
5471 (gnat_init): Likewise for main_input_filename and gnat_argv.
5472 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
5474 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5476 * ttypes.ads (Target_Double_Float_Alignment): New variable.
5477 (Target_Double_Scalar_Alignment): Likewise.
5478 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
5479 (Get_Double_Float_Alignment): New imported function.
5480 (Get_Double_Scalar_Alignment): Likewise.
5481 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
5482 the alignment of "double" floating-point types and "double" or larger
5483 scalar types, as parameterized by Target_Double_Float_Alignment and
5484 Target_Double_Scalar_Alignment respectively.
5485 * gcc-interface/gigi.h (double_float_alignment): Declare.
5486 (double_scalar_alignment): Likewise.
5487 (is_double_float_or_array): Likewise.
5488 (is_double_scalar_or_array): Likewise.
5489 (get_target_double_float_alignment): Likewise.
5490 (get_target_double_scalar_alignment): Likewise.
5491 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
5492 (get_target_strict_alignment): ...this.
5493 (get_target_double_float_alignment): New function.
5494 (get_target_double_scalar_alignment): Likewise.
5495 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5496 Test the presence of an alignment clause for under-aligned integer
5497 types. Take into account specific caps for the alignment of "double"
5498 floating-point types and "double" or larger scalar types, as
5499 parameterized by Target_Double_Float_Alignment and
5500 Target_Double_Scalar_Alignment respectively.
5501 (validate_alignment): Likewise.
5502 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
5503 (gigi): Initialize double_float_alignment and double_scalar_alignment.
5504 * gcc-interface/utils.c (double_float_alignment): New global variable.
5505 (double_scalar_alignment): Likewise.
5506 (is_double_float_or_array): New predicate.
5507 (is_double_scalar_or_array): Likewise.
5509 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5511 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
5512 the conditional expression only if it is common to both arms.
5514 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5516 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
5517 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
5518 arguments to build_allocator.
5519 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
5520 Remove code handling special allocator and assert its uselessness.
5522 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
5524 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
5525 alignment is specified, do not promote that of the component type
5527 <E_Array_Subtype>: Likewise.
5529 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5531 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
5532 * sinfo.ads (Object Declaration): Likewise.
5533 (Assignment Statement): Likewise.
5534 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
5535 Do not force Is_True_Constant to false on the temporary.
5536 (Freeze_Entity): Do not force Is_True_Constant to false on names on
5537 the RHS of object declarations.
5538 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
5539 New case. Return 1 if the object is atomic.
5540 <N_Assignment_Statement>: Likewise.
5542 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5544 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5545 For packed array types, make the original array type a parallel type
5546 for the modular type and its JM wrapper if the type is bit-packed.
5547 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
5548 record type for packed array types. Remove kludge.
5550 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5552 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
5553 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5554 Use front-end predicates to compute signedness and precision.
5555 <E_String_Literal_Subtype>: Fold range type.
5556 Make sure to set longest_float_type_node to a scalar type.
5557 (elaborate_entity): Use consistent Constraint_Error spelling.
5558 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
5559 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
5560 output for the modulus, if any.
5561 <ENUMERAL_TYPE>: Likewise for the RM size.
5562 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
5564 * gcc-interface/utils.c (finish_record_type): Really test the alignment
5565 of BLKmode bit-fields to compute their addressability.
5566 (create_index_type): Adjust comments.
5567 (create_param_decl): Create the biased subtype manually.
5568 * gcc-interface/utils2.c (build_component_ref): Use consistent
5569 Constraint_Error spelling.
5571 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5573 * gcc-interface/cuintp.c: Clean up include directives.
5574 * gcc-interface/targtyps.c: Likewise.
5575 * gcc-interface/decl.c: Likewise.
5576 * gcc-interface/misc.c: Likewise.
5577 * gcc-interface/trans.c: Likewise.
5578 * gcc-interface/utils.c: Likewise.
5579 * gcc-interface/utils2.c: Likewise.
5580 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
5582 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
5584 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
5585 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
5586 (SET_DECL_LANG_SPECIFIC): Likewise.
5588 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5589 Update comment about use of build_range_type.
5590 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
5591 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
5592 check for other cases of overloading.
5593 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
5594 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
5595 Use size_int in lieu of build_int_cst.
5596 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
5599 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5601 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
5602 type is an enumeral or a boolean type, change it to an integer type
5603 with the same mode and signedness.
5605 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5607 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
5608 for an external constant whose initializer is not absolute.
5610 2009-04-22 Taras Glek <tglek@mozilla.com>
5612 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
5613 * gcc-interface/trans.c: Likewise.
5614 * gcc-interface/utils.c: Likewise.
5616 2009-04-22 Ed Schonberg <schonberg@adacore.com>
5618 * sem_res.adb: Create block around procedure call when actual is a
5621 2009-04-22 Thomas Quinot <quinot@adacore.com>
5623 * s-soflin.ads: Fix typos
5625 2009-04-22 Vincent Celier <celier@adacore.com>
5627 * prj-env.adb: Minor comment change
5629 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
5630 Get_Name_String with No_File.
5632 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
5633 cannot be created even when not in verbose mode.
5635 2009-04-22 Emmanuel Briot <briot@adacore.com>
5637 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
5638 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
5639 Multi_Language modes, to avoid code duplication.
5640 (Project_Data.Include_Language): Removed.
5642 2009-04-22 Vincent Celier <celier@adacore.com>
5644 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
5645 the temporary file cannot be created, indicating the directory when the
5646 creation was attempted.
5648 2009-04-22 Emmanuel Briot <briot@adacore.com>
5650 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
5651 the language names, not their indices.
5653 2009-04-22 Emmanuel Briot <briot@adacore.com>
5655 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
5656 (Source_Data.Language_Name): Field removed.
5658 2009-04-22 Emmanuel Briot <briot@adacore.com>
5660 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
5663 2009-04-22 Emmanuel Briot <briot@adacore.com>
5665 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
5666 separate_suffix to the same value as the body_suffix.
5668 2009-04-22 Robert Dewar <dewar@adacore.com>
5670 * prj.adb: Minor code reorganization
5673 * prj-proc.adb: Minor code reorganization, clean up.
5675 * prj-nmsc.adb: Minor reformatting
5676 Minor code reorganization
5678 * gnat_ugn.texi: Add to doc on strict aliasing
5680 2009-04-22 Pascal Obry <obry@adacore.com>
5682 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
5685 * s-tasini.adb: Minor reformatting.
5687 * s-tassta.adb: Minor reformatting.
5689 2009-04-22 Emmanuel Briot <briot@adacore.com>
5691 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
5692 smaller subprograms.
5693 Renamed to Check_File_Naming_Schemes to avoid confusion with the
5694 other Check_Naming_Schemes functions that plays a totally different
5696 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
5697 extracted from the above. These were partially rewritten to avoid
5698 unnecessary code and temporary variables.
5699 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
5700 and Get_Unit (which for now still exist since they contain mode-specific
5703 2009-04-22 Emmanuel Briot <briot@adacore.com>
5705 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
5706 Remove duplicated code.
5707 (Canonical_Case_File_Name): new subprogram
5708 (Check_And_Normalize_Unit_Names): new subprogram
5709 (Write_Attr): new subprogram
5710 Better sharing of code
5711 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
5712 split Check_Naming and help find duplicated code
5713 (Check_Common): new subprogram, sharing code between ada_only and
5714 multi_language mode.
5715 (Naming_Data.Dot_Repl_Loc): field removed
5717 2009-04-22 Emmanuel Briot <briot@adacore.com>
5719 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
5720 Minor refactoring to reduce the size of
5721 Process_Sources_In_Multi_Language_Mode.
5722 Avoid extra copied of Source_Data, which we found in the past could be
5724 (Mark_Excluded_Sources): new subprogram.
5725 (Remove_Locally_Removed_Files_From_Units): merged into the above
5726 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
5727 and allow better sharing of code between multi_lang and ada_only modes
5728 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
5730 2009-04-22 Emmanuel Briot <briot@adacore.com>
5732 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
5733 Removed, since unused.
5735 2009-04-22 Vincent Celier <celier@adacore.com>
5737 * prj-attr.adb: New single project level attribute
5738 Separate_Run_Path_Options.
5740 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5741 attribute Seperate_Run_Path_Options.
5743 * prj.ads: (Project_Configuration): New Boolean component
5744 Separate_Run_Path_Options, defaulted to False.
5746 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
5748 2009-04-22 Robert Dewar <dewar@adacore.com>
5750 * sem_type.adb: Minor reformatting
5752 * mlib.adb: Minor reformatting
5754 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
5757 2009-04-22 Nicolas Setton <setton@adacore.com>
5759 * link.c: Add flag __gnat_separate_run_path_options.
5761 * mlib.adb (Separate_Run_Path_Options): New subprogram.
5763 * mlib.ads (Separate_Run_Path_Options): Declare.
5765 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
5766 switch per directory, rather than one "rpath" switch listing all
5769 * gnatlink.adb (Process_Binder_File): Likewise.
5771 * make.adb (Gnatmake): Likewise.
5773 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
5775 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
5776 Add a call to Move_Final_List when the target of the assignment is a
5777 return object that needs finalization and the expression is a
5778 controlled build-in-place function.
5780 2009-04-22 Vincent Celier <celier@adacore.com>
5782 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
5783 Including_Libraries set to True.
5785 2009-04-22 Ed Schonberg <schonberg@adacore.com>
5787 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
5788 create a unit table entry for the subprogram declaration created for a
5789 child suprogram body that has no separate specification.
5791 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
5792 subprogram body, call Make_Child_Decl_Unit.
5794 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
5795 table can only be the created specification of a child subprogram body
5796 that is the main unit, which has not been entered in the table yet.
5798 * errout.adb (Output_Messages): Ignore created specification of a
5799 child subprogram body to prevent repeated listing of error messages.
5801 * gnat1drv.adb (gnat1drv): The generated specification for a child
5802 subprogram body does not generate code.
5804 2009-04-22 Arnaud Charlet <charlet@adacore.com>
5806 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
5807 since this unit is now part of bootstrap units, so must use Ada 95
5810 2009-04-22 Thomas Quinot <quinot@adacore.com>
5812 * a-tasatt.adb: Minor reformatting
5814 2009-04-22 Bob Duff <duff@adacore.com>
5816 * s-stalib.ads: Remove "with System;" since we're inside System, so
5819 2009-04-22 Vincent Celier <celier@adacore.com>
5821 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
5822 the source record, as there may be a dependency file even if no object
5825 2009-04-22 Robert Dewar <dewar@adacore.com>
5827 * lib-load.adb: Minor reformatting
5829 * lib-load.ads: Minor reformatting
5831 * sinfo.ads: Minor reformatting
5833 2009-04-22 Bob Duff <duff@adacore.com>
5835 * exp_pakd.adb: Minor comment fixes.
5837 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
5838 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
5839 include units containing instantiations, as well as units that are
5840 generic instantiations.
5842 * sem.adb: Include dependents and corresponding specs/bodies in the
5845 * gcc-interface/Make-lang.in:
5846 sem now depends on s-bitops, because of the packed array of Booleans.
5848 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5850 * gcc-interface/ada-tree.def: Fix formatting nits.
5851 (REGION_STMT): Delete.
5852 (HANDLER_STMT): Likewise.
5853 * gcc-interface/ada-tree.h: Fix formatting nits.
5855 (REGION_STMT_BODY): Likewise.
5856 (REGION_STMT_HANDLE): Likewise.
5857 (REGION_STMT_BLOCK): Likewise.
5858 (HANDLER_STMT_ARG): Likewise.
5859 (HANDLER_STMT_LIST): Likewise.
5860 (HANDLER_STMT_BLOCK): Likewise.
5861 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
5862 (fp_size_to_prec): Likewise.
5863 (largest_move_alignment): Delete.
5864 (gnat_compute_largest_alignment): Likewise.
5866 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5867 Remove redundant code.
5868 <E_Array_Type>: Remove redundant assert.
5869 <E_Array_Subtype>: Exit early from index computation in pathological
5871 Rewrite conditional assignment.
5872 (make_type_from_size): Likewise.
5873 * gcc-interface/misc.c (largest_move_alignment): Delete.
5874 (gnat_finish_incomplete_decl): Likewise.
5875 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
5876 (asm_out_file): Likewise
5877 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
5878 (gnat_dwarf_name): Move around.
5879 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
5880 (gigi): Remove call to gnat_compute_largest_alignment.
5881 * utils.c (create_field_decl): Rewrite conditional assignment.
5884 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5886 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
5887 on entry. Defer common processing for types. Reorder and clean up.
5888 Compute the equivalent GNAT node and the default size for types only.
5889 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
5890 <E_Access_Type>: For an unconstrained designated type, do not pretend
5891 that a dummy type is always made.
5892 <all> Fix nits in comments.
5893 (validate_size): Fix formatting nits and comments.
5894 (set_rm_size): Likewise.
5895 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
5896 passed to TARGET_PROMOTE_PROTOTYPES hook.
5898 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
5900 * fe.h (Get_External_Name): Declare.
5901 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
5902 (concat_name): ...this.
5903 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
5904 gnu_entity_name and adjust for above renaming.
5905 <E_Access_Type>: Use create_concat_name to get the name of the various
5906 types associated with unconstrained array types.
5907 (make_aligning_type): Adjust for above renaming.
5908 (maybe_pad_type): Likewise.
5909 (components_to_record): Likewise. Use get_identifier_with_length for
5910 the encoding of the variant.
5911 (get_entity_name): Use get_identifier_with_length.
5912 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
5913 Do not fiddle with Name_Buffer.
5914 (concat_id_with_name): Rename to...
5915 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
5917 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
5920 2009-04-21 Joseph Myers <joseph@codesourcery.com>
5922 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
5925 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5927 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
5929 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5931 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
5932 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
5933 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
5934 Remove useless support code for packed array types and assert its
5936 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
5937 adjust for TYPE_RM_SIZE change.
5938 <all> Fix nits in comments. Use Original_Array_Type accessor instead
5939 of Associated_Node_For_Itype accessor for packed array types.
5940 (make_packable_type): Likewise.
5941 (maybe_pad_type): Likewise.
5942 (set_rm_size): Likewise. Rework conditional statement. Adjust for
5943 TYPE_RM_SIZE change.
5944 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
5945 (rm_size): Fix nits in comments. Rework conditional statements.
5946 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
5948 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
5949 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
5950 appropriate function to initialize the size_type_node. Adjust for
5951 TYPE_RM_SIZE change.
5953 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5955 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
5956 for imported subprograms.
5958 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5960 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
5961 constant objects covered by 13.3(19) volatile.
5963 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
5965 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
5966 of dummy fat pointer types to the debug back-end.
5968 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5970 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
5971 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
5972 before wrapping it up in the record type. Do not overwrite the
5973 Ada size of the record type with the Esize.
5975 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5977 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
5978 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
5979 if the conversion is on the LHS of an assignment and a no-op.
5980 <all> Do not convert the result to the result type if the Parent
5981 node is such a conversion.
5983 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5985 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
5986 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
5987 of types with unknown discriminants.
5988 (substitute_in_type): Rewrite and restrict to formal substitutions.
5989 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
5990 (update_pointer_to): Update comment.
5992 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5994 * sem_ch8.adb (Use_One_Package): In an instance, if two
5995 potentially_use_visible and non-overloadable homonyms are available
5996 from the actuals of distinct formal packages, retain the current one,
5997 which was visible in the generic, to prevent spurious visibility
5999 (End_Use_Package): Restore use_visibility when needed.
6001 2009-04-20 Sergey Rybin <rybin@adacore.com>
6003 * gnat_ugn.texi, vms_data.ads: Update doc.
6005 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6007 * gcc-interface/Make-lang.in: Update dependencies
6009 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
6012 2009-04-20 Robert Dewar <dewar@adacore.com>
6014 * checks.ads: Fix documentation of range check handling
6016 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6018 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6019 a redundant use_type clause.
6021 2009-04-20 Robert Dewar <dewar@adacore.com>
6023 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6024 this attribute can be evaluated at compile time.
6025 (Eval_Attribute, case Range_Length): Same improvement
6027 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6029 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6031 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6032 for better handling of null procedures.
6033 (Check_Overriding_Indicator): Do not emit a warning on a missing
6034 overriding indicator on an operator when the type of which the operator
6035 is a primitive is private.
6037 2009-04-20 Bob Duff <duff@adacore.com>
6039 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6042 2009-04-20 Robert Dewar <dewar@adacore.com>
6044 * sem_attr.adb: Minor reformatting
6046 * gnatcmd.adb: Minor reformatting
6048 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6050 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6051 overloaded and one interpretation matches the context, label the
6052 operand with the type of first formal.
6054 2009-04-20 Bob Duff <duff@adacore.com>
6056 * debug.ads: Minor comment fix.
6058 * debug.adb: Minor comment fixes.
6060 2009-04-20 Javier Miranda <miranda@adacore.com>
6062 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6064 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6066 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6067 is expanded into a call to Raise_Exception, avoid passing the
6068 exception-name'identity in runtimes in which this argument
6071 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
6073 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6074 generated bindings for cil.
6076 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6078 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6079 discriminants, collect components from the Underlying_Record_View,
6080 which will be used in the expansion of the aggregate into assignments.
6082 * sem_ch3.adb: Do not label derived type with unknown discriminants as
6083 having a private declaration.
6085 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6087 * exp_util.adb (Expand_Subtype_From_Expr): use the
6088 underlying_record_view when available, to create the proper constrained
6089 subtype for an object of a derived type with unknown discriminants.
6091 2009-04-20 Javier Miranda <miranda@adacore.com>
6093 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
6094 formals that have pragma unreferenced.
6096 2009-04-20 Pascal Obry <obry@adacore.com>
6098 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
6099 Remove all calls to To_Lower_If_Case_Insensitive to preserve
6100 the pathname original casing.
6102 2009-04-20 Robert Dewar <dewar@adacore.com>
6104 * g-trasym.adb: Minor reformatting
6106 * s-os_lib.adb: Minor reformatting
6108 * sem.adb: Minor reformatting
6109 Minor code reorganization
6111 * sem_ch3.adb: Minor reformatting
6113 * sem_ch4.adb: Minor reformatting
6115 * sem_ch8.adb: Minor reformatting
6117 * sem_type.adb: Minor reformatting
6119 2009-04-20 Javier Miranda <miranda@adacore.com>
6121 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6122 generated by derivations of tagged types use the aliased subprogram a
6123 reference to locate their controlling type.
6125 2009-04-20 Tristan Gingold <gingold@adacore.com>
6127 * g-trasym.adb: Set size of result buffer before calling
6130 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6132 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6133 to a function returning an array can be interpreted as a call with
6134 defaulted parameters whose result is indexed, take into account the
6135 types of all the indices of the array result type.
6137 2009-04-20 Pascal Obry <obry@adacore.com>
6139 * a-direct.adb, s-os_lib.adb: Minor reformatting.
6141 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6143 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
6144 null exclusion qualifiers for object renaming declarations.
6146 2009-04-20 Nicolas Roche <roche@adacore.com>
6148 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
6149 unsigned long long. So compare local_time and utc_time before computing
6152 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6154 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6155 of the Underlying_Record_View before that of the derived type.
6157 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
6158 with unknown discriminants with regard to the parent subtype.
6160 2009-04-20 Bob Duff <duff@adacore.com>
6162 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
6163 that are not included. This is necessary if the main unit is a generic
6166 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
6167 because it doesn't work if -gnatn is used.
6169 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6171 * rtsfind.adb (RTE, RTE_Record_Component): In
6172 Configurable_Run_Time_Mode, do not enable front-end inlining.
6174 2009-04-20 Thomas Quinot <quinot@adacore.com>
6176 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
6177 System.Address_To_Access_Conversions.
6179 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6181 * sem.adb: Guard against ill-formed subunits.
6183 2009-04-20 Bob Duff <duff@adacore.com>
6185 * output.adb (Flush_Buffer): Do not indent blank lines.
6186 (Ignore_Output): New procedure for output suppression.
6188 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6190 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
6191 when it is positive. This avoids a potential constraint error raised
6192 by the conversion to Natural.
6194 2009-04-20 Gary Dismukes <dismukes@adacore.com>
6196 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
6197 involves a target that has a specified address, don't set Forward_OK
6198 and Backward_OK to False if the rhs is an aggregate, since overlap
6201 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6203 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
6204 in an object renaming declaration when the expected type is an
6205 anonymous access type.
6207 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
6208 ambiguity when one interpretation is an anonymous access type and the
6209 other is a named access type, and the context itself is anonymous
6211 2009-04-20 Thomas Quinot <quinot@adacore.com>
6213 * einfo.ads: Minor comment rewording
6215 * sem_aggr.adb: Minor comment rewording
6217 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
6219 2009-04-20 Pascal Obry <obry@adacore.com>
6221 * adaint.c (__gnat_is_readable_file): Check for file existence
6222 when not using ACL (always the case on remote drives).
6224 2009-04-20 Robert Dewar <dewar@adacore.com>
6226 * sinfo.ads: Minor comment fixes
6228 * exp_disp.adb: Minor reformatting
6230 * gnat1drv.adb: Minor reformatting
6232 * output.adb: Minor reformatting
6234 * s-vxwext-kernel.ads: Minor reformatting
6236 * sem.ads: Minor reformatting
6238 * sem.adb: Minor reformatting
6240 * sem_elim.adb: Minor reformatting
6242 * uname.ads: Minor reformatting
6244 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6246 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
6247 a small dope of 4 words to the adjustment to the stack pointer.
6249 2009-04-20 Thomas Quinot <quinot@adacore.com>
6251 * xoscons.adb: generate C header s-oscons.h in
6252 addition to s-oscons.ads.
6254 * socket.c: On VMS, use s-oscons.h.
6256 * sem_ch3.adb: Minor reformatting
6258 * exp_ch9.adb: Minor reformatting
6260 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6262 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
6263 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
6264 (call_to_gnu): Likewise.
6266 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6268 * gcc-interface/trans.c (gigi): Declare the name of the compilation
6269 unit as the first global name at the very beginning.
6271 2009-04-20 Thomas Quinot <quinot@adacore.com>
6273 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6274 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
6275 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
6276 since HP-UX supports neither inet_aton nor inet_pton (altough the
6277 latter is part of the Single UNIX Specification!).
6278 So reorganize code, and share C implementation based on inet_addr(3)
6279 with VMS (instead of having a VMS specific Ada implementation in
6282 2009-04-20 Gary Dismukes <dismukes@adacore.com>
6284 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
6285 to return the object file name saved by Set_Object_Output_File_Name.
6287 2009-04-20 Emmanuel Briot <briot@adacore.com>
6289 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
6290 for the standard command line, when argc has been modified since the
6291 start of the application.
6293 2009-04-20 Thomas Quinot <quinot@adacore.com>
6295 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
6296 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
6298 2009-04-20 Bob Duff <duff@adacore.com>
6300 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
6303 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6305 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
6306 subprogram as Eliminated when source operation is.
6307 (Expand_N_Protected_Type_Declaration): Generate protected and
6308 unprotected specs for the internal operations, even if the source
6309 operation is eliminated.
6311 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6313 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
6314 Predefined_Primitive_Bodies): Do not create the declarations and bodies
6315 of the primitive subprograms associated with dispatching select
6316 statements when the runtime is in configurable mode.
6318 2009-04-20 Ed Falis <falis@adacore.com>
6320 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
6322 2009-04-20 Thomas Quinot <quinot@adacore.com>
6324 * s-oscons-tmplt.c: Add support for generating a dummy version of
6325 s-oscons.ads providing all possible constants.
6327 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
6329 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
6330 ANSI version (not the UNICODE version) of WSAStringToAddress.
6332 2009-04-20 Pascal Obry <obry@adacore.com>
6334 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
6335 allocated for the security descriptor and make sure all
6336 handles are closed before leaving this procedure.
6338 2009-04-20 Javier Miranda <miranda@adacore.com>
6340 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
6341 (Set_Is_Underlying_Record_View): New subprogram
6343 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
6344 private types with unknown discriminants use the underlying record view
6347 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
6348 underlying record view in the full view of private types whose parent
6349 has unknown discriminants.
6350 (Build_Derived_Record_Type): Avoid generating the class-wide entity
6351 associated with an underlying record view.
6352 (Derived_Type_Declaration): Avoid deriving parent primitives in
6353 underlying record views.
6355 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
6356 records with unknown discriminants.
6358 * sem_type.adb (Covers): Handle underlying record views.
6359 (Is_Ancestor): Add support for underlying record views.
6361 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
6362 dispatching call if the type of the target object is tagged and has
6363 unknown discriminants.
6365 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
6366 unknown discriminants.
6368 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
6369 tables for internally built underlying record views.
6371 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
6372 empty list of component associations.
6374 2009-04-20 Thomas Quinot <quinot@adacore.com>
6376 * sem_ch10.adb: Minor reformatting
6378 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6379 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
6380 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
6381 standard inet_pton API (and emulate it on platforms that do not
6383 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
6384 DECC$INET_ADDR, imported in Ada.
6385 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
6386 implementation provided by GNAT runtime.
6387 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
6390 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6392 * gnat_ugn.texi: Add documentation for -fno-ivopts.
6394 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6396 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
6397 with_clause if it is the main unit.
6399 2009-04-20 Thomas Quinot <quinot@adacore.com>
6401 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
6402 (no behaviour change): Use Append instead of Increment_Last followed
6405 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6407 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
6408 declarations of all primitives associated with dispatching asynchronous,
6409 conditional and timed selects when dispaching calls are forbidden and
6410 select statements are not allowed (such as in Ravenscar).
6411 (Predefined_Primitive_Bodies): Ditto for bodies.
6413 * exp_disp.ad (Make_DT): Do not create and populate the
6414 Select_Specific_Data of the dispatch table when dispatching calls are
6415 forbidden and select statements are not allowed (such as in Ravenscar).
6417 2009-04-20 Robert Dewar <dewar@adacore.com>
6419 * a-tifiio.adb: Minor reformatting
6421 2009-04-20 Thomas Quinot <quinot@adacore.com>
6423 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
6424 other C library functions, report *failure* with a zero status, and
6425 success with a non-zero status.
6427 2009-04-20 Bob Duff <duff@adacore.com>
6429 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
6430 (Semantics): After analyzing each unit, Append it to the
6431 Comp_Unit_List, if appropriate.
6433 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
6435 (Gnat1drv): Correct comment regarding Back_End_Mode.
6437 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6439 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
6441 2009-04-20 Thomas Quinot <quinot@adacore.com>
6443 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6444 output.adb, output.ads, s-taprop-hpux-dce.adb,
6445 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
6448 2009-04-20 Thomas Quinot <quinot@adacore.com>
6450 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
6451 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
6452 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
6453 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
6454 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
6455 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
6457 * debug.adb: Fix typo
6459 * gnat_rm.texi: Minor doc fix.
6461 * sem_ch7.adb, freeze.adb: Minor reformatting
6463 2009-04-20 Thomas Quinot <quinot@adacore.com>
6465 * g-socket.ads: Add new constants:
6467 Unspecified_Group_Inet_Addr
6468 All_Hosts_Group_Inet_Addr
6469 All_Routers_Group_Inet_Addr
6471 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
6472 ERANGE (Result too large).
6473 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
6474 propagation of errno to caller.
6476 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6478 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
6479 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
6482 2009-04-20 Gary Dismukes <dismukes@adacore.com>
6484 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
6485 checking for references to eliminated subprograms that should be
6487 (Eliminate_Error_Message): Update comment to say "references" rather
6488 than "calls" (since attribute cases are handled here as well).
6490 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
6491 checking for references to eliminated subprograms that should be
6492 flagged. Add with and use of Sem and Sem_Util.
6494 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
6495 Add with and use of Sem_Elim.
6497 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
6498 applied to eliminated subprograms.
6499 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
6500 eliminated subprograms.
6501 Add with and use of Sem_Elim.
6503 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
6504 to eliminated subprograms, now handled during Resolve_Call.
6505 Remove with and use of Sem_Elim.
6507 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
6508 testing Is_Eliminated, for proper handling of primitive derived from
6509 eliminated subprograms.
6511 2009-04-20 Vincent Celier <celier@adacore.com>
6513 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
6514 has been declared (Library_GCC or Linker'Driver), for the driver name.
6516 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
6517 Linker'Driver is, use Linker'Driver as the shared library linker.
6518 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
6519 Library_GCC is declared.
6520 (Check_Library_Attributes): Set up the shared linker driver: either
6521 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
6524 2009-04-20 Thomas Quinot <quinot@adacore.com>
6526 * g-socket.ads (Send_Socket): Fix misleading comment.
6528 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6530 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
6533 2009-04-20 Geert Bosch <bosch@adacore.com>
6535 * a-tifiio.adb (Put): Avoid generating too many digits for certain
6536 fixed types with smalls that are neither integer or the reciprocal
6539 2009-04-20 Bob Duff <duff@adacore.com>
6541 * uname.ads: Minor comment fix.
6543 * types.ads: Minor comment fix.
6545 2009-04-20 Pascal Obry <obry@adacore.com>
6547 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
6548 avoid warning. At the same time fix a memory leak.
6550 * osint.adb (Get_Libraries_From_Registry): Properly free memory
6551 returned by the above routine.
6553 2009-04-20 Robert Dewar <dewar@adacore.com>
6555 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
6556 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
6557 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
6558 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
6560 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
6562 2009-04-20 Pascal Obry <obry@adacore.com>
6564 * initialize.c (__gnat_initialize): Add braces to kill warning.
6566 * adaint.c: Minor reformatting, remove trailing spaces.
6568 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6570 * gcc-interface/Make-lang.in: Update dependencies.
6572 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6574 * adaint.h (__gnat_lwp_self): Declare on Linux.
6576 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6578 2009-04-20 Robert Dewar <dewar@adacore.com>
6580 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
6581 front-end part of -fpreserve-control-flow switch.
6583 2009-04-20 Bob Duff <duff@adacore.com>
6585 * rtsfind.adb: Minor comment fix
6587 2009-04-20 Robert Dewar <dewar@adacore.com>
6589 * exp_aggr.adb: Minor reformatting
6590 Minor code reorganization (use Nkind_In)
6592 * g-socket.adb: Minor reformatting
6594 * g-socket.ads: Minor comment fix
6596 * s-auxdec.ads: Minor comment and organization update.
6598 * s-auxdec-vms_64.ads: Minor comment and organization update.
6600 * sem_ch10.adb: Minor addition of ??? comment
6602 * sem_disp.adb: Minor reformatting
6604 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6606 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
6607 list a caller of an inlined subprogram, if the caller itself is not
6610 2009-04-20 Pascal Obry <obry@adacore.com>
6612 * adaint.c: Disable use of ACL on network drives.
6614 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6616 * gnat_ugn.texi: Add examples.
6618 2009-04-20 Thomas Quinot <quinot@adacore.com>
6620 * g-socket.ads (Abort_Selector): Clarify documentation.
6622 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6624 * opt.ads (Inspector_Mode): Update documentation of this flag.
6626 2009-04-20 Thomas Quinot <quinot@adacore.com>
6628 * g-socket.ads: Minor reformatting
6630 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
6631 consider S_resolvLib error codes since we only use the hostLib wrappers.
6633 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6635 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6636 of the Underlying_Record_View after that of the derived type.
6638 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6640 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
6643 2009-04-20 Javier Miranda <miranda@adacore.com>
6645 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
6647 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
6650 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
6653 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
6654 in internally built overriding subprograms.
6656 2009-04-20 Doug Rupp <rupp@adacore.com>
6658 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
6660 * s-auxdec.ads: Likewise
6662 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6664 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
6665 type by an interface.
6667 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
6668 minimze difference in expanded tree when compiled as spec of the main
6669 unit, or as a spec in the context of another unit.
6671 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
6673 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
6674 (localtime_tzoff): This routine no longer accepts an actual of type
6676 (UTC_Time_Offset): Remove local variable Secs_TM.
6678 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
6679 actual of type struct tm*. Add local variable of type struct tm for all
6680 targets that provide localtime_r and need to invoke it.
6682 2009-04-20 Thomas Quinot <quinot@adacore.com>
6684 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
6685 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
6686 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
6688 2009-04-20 Robert Dewar <dewar@adacore.com>
6690 * sem_ch3.adb: Minor reformatting
6692 * lib-load.adb: Minor reformatting
6694 * sem_ch4.adb: Minor reformatting
6696 2009-04-20 Robert Dewar <dewar@adacore.com>
6698 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
6699 (equal values => False).
6701 2009-04-20 Ed Schonberg <schonberg@adacore.com>
6703 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
6704 to null procedures can be inlined unconditionally.
6706 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
6708 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
6709 non-addressable parameter passed by reference, do not convert the
6710 actual if its type is already the nominal type, unless it is of
6711 self-referential size.
6713 2009-04-20 Arnaud Charlet <charlet@adacore.com>
6715 * gnat_ugn.texi: Fix typos.
6717 2009-04-20 Robert Dewar <dewar@adacore.com>
6719 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
6720 Validate_Unchecked_Warnings to suppress warnings about size or
6721 alignment or extra bits if either type involved has pragma Warnings
6722 (Off) set for the type entity.
6724 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
6726 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
6727 a builtin type and give it a name.
6729 2009-04-17 Diego Novillo <dnovillo@google.com>
6731 * gcc-interface/misc.c (gnat_expand_expr): Remove.
6732 (LANG_HOOKS_EXPAND_EXPR): Remove.
6734 2009-04-17 Robert Dewar <dewar@adacore.com>
6736 * sem_ch3.adb: Minor reformatting
6738 2009-04-17 Pascal Obry <obry@adacore.com>
6740 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
6742 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6744 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
6745 illegal constraints on type derived from formal discrete types.
6747 2009-04-17 Thomas Quinot <quinot@adacore.com>
6751 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6752 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6753 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
6754 g-socket.ads (GNAT.Sockets.Thin.C_Send,
6755 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
6756 Replace calls to send(2) with equivalent sendto(2) calls.
6757 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
6758 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
6759 report an error in that case. Factor code common to the two versions
6760 (datagram and stream) in common routine Stream_Write.
6762 2009-04-17 Robert Dewar <dewar@adacore.com>
6764 * exp_disp.adb: Minor reformatting
6765 Minor code reorganization (use Nkind_In)
6767 * prepcomp.adb: Minor reformatting
6769 * sem_ch3.adb: Minor reformatting
6771 * sem_res.adb: Minor comment addition
6773 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
6776 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
6777 setting Is_Referenced
6779 * types.ads: Minor reformatting
6781 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6783 * gnat_ugn.texi: Initial documentation on binding generator.
6785 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6787 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
6788 type extensions whose parent is a type with unknown discriminants.
6790 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
6791 aggregate has unknown discriminants, use the Underlying_Record_View to
6792 obtain the discriminants of the ancestor part.
6794 * exp_disp.adb (Build_Dispatch_Tables): Types that are
6795 Underlying_Record_Views share the dispatching information of the
6796 original record extension.
6798 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
6799 discriminants, propagate dispach table information to the
6800 Underlying_Record_View.
6802 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
6803 discriminants and declaration is not a completion, generate
6804 Underlying_Record_View to provide proper discriminant information to
6805 the front-end and to gigi.
6807 2009-04-17 Robert Dewar <dewar@adacore.com>
6809 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
6810 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
6811 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
6812 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
6813 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
6814 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
6815 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
6816 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
6817 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
6818 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
6819 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
6820 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
6821 s-conca3.ads: Remove unneeded pragma Warnings
6823 2009-04-17 Robert Dewar <dewar@adacore.com>
6825 * g-moreex.adb: Add comments.
6827 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
6829 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
6832 * prepcomp.adb: Add ??? comment
6834 * a-tasatt.adb: Minor reformatting
6836 * g-trasym-vms-alpha.adb: Add ??? comment
6838 * g-trasym-vms-ia64.adb: Add ??? comment
6840 * xoscons.adb: Minor reformatting
6842 * s-tassta.adb: Minor reformatting
6844 * s-scaval.adb: Add ??? comment
6846 * stand.ads: Minor code clean up (remove junk with of Namet)
6848 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
6849 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
6850 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
6851 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
6852 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
6853 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
6854 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
6855 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
6856 Warnings off pragmas.
6858 2009-04-17 Pascal Obry <obry@adacore.com>
6860 * initialize.c: Fix test for reallocating the arguments array.
6862 2009-04-17 Geert Bosch <bosch@adacore.com>
6864 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
6865 conversion truncate only for decimal fixed point types.
6867 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
6869 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
6872 2009-04-17 Robert Dewar <dewar@adacore.com>
6874 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
6875 Backwards_OK if either operand has an address clause.
6877 2009-04-17 Pascal Obry <obry@adacore.com>
6879 * initialize.c: Code clean up, use realloc.
6881 2009-04-17 Pascal Obry <obry@adacore.com>
6883 * initialize.c: Do not get Unicode command line if Unicode support not
6885 Add support for wildcard expansion for Unicode parameters on Win32.
6887 * mingw32.h: Add missing macros when Unicode support not activated.
6889 2009-04-17 Javier Miranda <miranda@adacore.com>
6891 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
6892 avoid generating code that references the Current_Master
6893 when compiling without tasks.
6895 2009-04-17 Vincent Celier <celier@adacore.com>
6897 * prj-attr.adb: New project level attribute Target
6899 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6902 * prj.ads (Project_Configuration): New component Target
6904 2009-04-17 Thomas Quinot <quinot@adacore.com>
6906 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
6907 case for the case of an aggregate component, the attach call for the
6908 result is actually needed.
6910 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
6911 an array aggregate must be disabled if the component type requires
6914 * exp_ch3.adb: Minor reformatting
6916 2009-04-17 Bob Duff <duff@adacore.com>
6918 * output.ads (Indent,Outdent): New procedures for indenting the output.
6919 (Write_Char): Correct comment -- LF _is_ allowed.
6921 * output.adb (Indent,Outdent): New procedures for indenting the output.
6922 Keep track of the indentation level, and make sure it doesn't get too
6924 (Flush_Buffer): Insert spaces at the beginning of each line, if
6925 indentation level is nonzero.
6926 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
6928 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
6929 "Next_Col := 1;". Flush_Buffer does that.
6931 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
6932 controlled by the -gnatdc switch. It now occurs on entry/exit to the
6933 relevant analysis routines, and calls Indent/Outdent to make the
6934 indentation reflect the nesting level. Add "helper" routines, since
6935 otherwise lots of "return;" statements would skip the debugging output.
6937 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6939 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
6940 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
6941 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
6943 2009-04-17 Thomas Quinot <quinot@adacore.com>
6945 * exp_aggr.adb: Minor code reorganization, no behaviour change.
6947 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6949 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
6950 clause in a unit that is a package body or a subunit, when the previous
6951 clause appears in a spec or a parent.
6953 2009-04-17 Thomas Quinot <quinot@adacore.com>
6955 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
6957 * exp_ch7.adb: Minor reformatting
6959 2009-04-17 Bob Duff <duff@adacore.com>
6961 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
6962 allocator, check that the expression of the qualified expression obeys
6963 the constraints of the subtype of the qualified expression.
6965 2009-04-17 Thomas Quinot <quinot@adacore.com>
6967 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
6969 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6971 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
6972 aggregate, using context imposed by subtype mark in allocator.
6974 2009-04-17 Pascal Obry <obry@adacore.com>
6976 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
6978 2009-04-17 Nicolas Roche <roche@adacore.com>
6980 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
6983 2009-04-17 Gary Dismukes <dismukes@adacore.com>
6985 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
6986 cover both calls and attribute references ("call" => "reference").
6988 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6990 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
6991 type for which Storage_Size is set to 0 is legal in a pure unit.
6993 2009-04-17 Thomas Quinot <quinot@adacore.com>
6995 * exp_ch7.adb: Minor reformatting
6997 2009-04-17 Robert Dewar <dewar@adacore.com>
6999 * restrict.adb (Check_Restriction_No_Dependence): Don't check
7000 restriction if outside main extended source unit.
7002 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
7003 for parents of child units as well as the child unit itself.
7005 2009-04-17 Bob Duff <duff@adacore.com>
7007 * checks.ads: Minor comment fix
7009 * exp_aggr.ads: Minor comment fix
7011 2009-04-17 Nicolas Roche <roche@adacore.com>
7013 * adaint.c: Improve cross compiler detection and handling.
7015 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7017 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7019 2009-04-17 Pascal Obry <obry@adacore.com>
7021 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7024 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7025 value when no encoding form paramter is set on Text_IO services.
7027 * adaint.c: CurrentCodePage new variable on Windows.
7028 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7031 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7034 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7035 environment variable value. Default is UTF-8.
7037 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7038 fopen and freopen encoding parameter is now set to Unspecified.
7039 The default value is in this case UTF-8 (as it was before) but
7040 use the new macros that convert to/from the code page set
7041 at runtime (CurrentCodePage).
7043 * s-fileio.adb: When no encoding specified use Unspecified value.
7045 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7047 * atree.adb, atree.ads: Remove dead code.
7049 2009-04-17 Arnaud Charlet <charlet@adacore.com>
7051 * gcc-interface/Make-lang.in: Update dependencies.
7053 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7055 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7056 illegal uses of incomplete types in formal parts and return types.
7058 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7059 access to subprograms.
7061 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7062 Taft-amendment types as the return type of an access_to_function type.
7064 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7065 type for access_to_subprograms. The check is performed on package exit.
7067 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7069 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7071 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7073 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7075 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7076 semantic units, because the handling of itypes in the copied tree
7077 requires semantic information that does not belong in atree.
7079 2009-04-17 Robert Dewar <dewar@adacore.com>
7081 * par-ch6.adb: Minor reformatting
7083 * prj.adb: Minor reformatting
7085 2009-04-17 Gary Dismukes <dismukes@adacore.com>
7087 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7088 on protected subprogram bodies, so exclude the case where Pf_Flags is
7089 Pf_Decl_Pbod from the error check.
7091 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7092 indicators on subprograms in protected bodies, and proceed with parsing
7095 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
7096 subprograms from the check for primitiveness on subprograms with
7097 overriding indicators.
7098 (Check_Overriding_Indicator): Include protected subprograms in the
7099 style check for missing overriding indicators.
7101 2009-04-17 Tristan Gingold <gingold@adacore.com>
7103 * init.c: Fix stack checking for x86 Darwin.
7105 2009-04-17 Vincent Celier <celier@adacore.com>
7107 * prj-attr.adb: New project level attribute Object_File_Suffix
7110 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7112 (Process_Compiler): Process attribute Object_File_Suffix
7114 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7115 platform suffix, when specified.
7117 * prj.ads (Language_Config): New component Object_File_Suffix,
7118 defaulted to No_Name.
7119 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7121 * snames.ads-tmpl: New standard name Object_File_Suffix
7123 2009-04-17 Robert Dewar <dewar@adacore.com>
7125 * gnat_rm.texi: Add documentation about No_Streams restriction
7127 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7128 attributes when checking No_Streams restriction.
7130 2009-04-17 Thomas Quinot <quinot@adacore.com>
7132 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7134 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7135 missing calls to RE_Request_Destroy to deallocate request objects after
7138 2009-04-17 Nicolas Setton <setton@adacore.com>
7140 * link.c: Fix support for passing a response file under Darwin.
7142 2009-04-17 Emmanuel Briot <briot@adacore.com>
7144 * prj.adb (Free): new subprogram.
7146 2009-04-17 Ed Schonberg <schonberg@adacore.com>
7148 * sem_ch3.adb: additional initialization on incomplete subtypes.
7150 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
7151 part and one of the formals is an incomplete tagged type, attach to
7152 list of private dependends of the type for later validation.
7154 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
7155 primitive operations of a Taft-amendmment type.
7157 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7158 type. The check is performed on package exit, possibly after the
7159 subprogram is frozen.
7161 2009-04-17 Vincent Celier <celier@adacore.com>
7163 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
7164 before looking for source directories, but make sure that there are nil
7165 if they are not explicitely declared and there is explicitely no
7166 sources in the project.
7168 2009-04-17 Pascal Obry <obry@adacore.com>
7170 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
7172 * init.c: Fix minor typo and style fix.
7174 2009-04-17 Robert Dewar <dewar@adacore.com>
7176 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
7178 * sem_attr.adb (Analyze_Attribute, case Address): Use
7179 PE_Address_Of_Intrinsic.
7181 * types.ads: Add PE_Address_Of_Intrinsic
7183 * types.h: Add PE_Address_Of_Intrinsic
7185 2009-04-17 Nicolas Setton <setton@adacore.com>
7187 * gcc-interface/Makefile.in: Under darwin, build shared libraries
7188 with install_name starting with "@rpath/".
7190 2009-04-17 Nicolas Setton <setton@adacore.com>
7192 * link.c: Add darwin section
7194 2009-04-16 Robert Dewar <dewar@adacore.com>
7196 * g-pehage.adb: Minor reformatting
7198 * sem_ch12.adb: Minor reformatting
7200 * exp_dist.adb: Minor reformatting
7202 * bindgen.adb: Minor style fixes.
7204 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7206 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
7207 indexed components to the case where the prefix is a static string
7210 2009-04-16 Javier Miranda <miranda@adacore.com>
7212 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
7213 objects avoid any further expansion of the expression initializing the
7216 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7218 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
7219 that hides an outer homograph, make that homograph invisible when
7220 analyzing the actuals, to to prevent illegal direct visibility on it.
7222 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
7224 * g-pehage.adb (Initialize): Fix off-by-one error.
7226 2009-04-16 Tristan Gingold <gingold@adacore.com>
7228 * init.c: Detect real stack overflow on Darwin.
7230 * system-darwin-x86.ads: Use stack probing on darwin x86.
7232 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7234 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
7235 take the address of an intrinsic subprogram.
7237 2009-04-16 Arnaud Charlet <charlet@adacore.com>
7239 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
7240 for the targets where GNAT.Traceback.Symbolic is not supported.
7242 2009-04-16 Vincent Celier <celier@adacore.com>
7244 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
7246 * g-trasym.ads: Update comments.
7248 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
7250 * tracebak.c (STOP_FRAME): Verify validity of the current address
7251 before dereferencing.
7253 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7255 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
7256 the original location of the index expressions and the index subtypes,
7257 to prevent spurious out-of-scope references in gigi.
7259 2009-04-16 Tristan Gingold <gingold@adacore.com>
7261 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
7262 Add support for stack checking on darwin.
7264 2009-04-16 Vincent Celier <celier@adacore.com>
7266 * prj-attr.adb: New attribute Runtime_Source_Dir
7268 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
7269 attribute Runtime_Source_Dir.
7270 (Check_Naming_Schemes): Give default values to out parameters to avoid
7273 * prj.ads (Language_Config): New component Runtime_Source_Dir
7275 * snames.ads-tmpl: New standard name Runtime_Source_Dir
7277 2009-04-16 Pascal Obry <obry@adacore.com>
7279 * adaint.h, adaint.c (__gnat_rmdir): New routine.
7280 Simple wrapper routines used to convert to proper encoding on
7283 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
7285 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
7288 2009-04-16 Pascal Obry <obry@adacore.com>
7290 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
7292 2009-04-16 Thomas Quinot <quinot@adacore.com>
7294 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
7295 integrated preprocessor.
7297 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
7298 (Initialize): Split into two subprograms, Initialize (to be called
7299 prior to compiler command line processing) and Setup_Hooks (to be called
7300 later on when the first source file is loaded).
7302 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
7303 Add call to Prep.Initialize.
7305 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
7306 to Prep.Setup_Hooks.
7308 2009-04-16 Pascal Obry <obry@adacore.com>
7310 * adaint.h, adaint.c (__gnat_chdir): New routine.
7311 Simple wrapper routines used to convert to proper encoding on
7314 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
7316 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
7318 2009-04-16 Quentin Ochem <ochem@adacore.com>
7320 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
7323 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
7325 * a-convec.ads (Is_Empty): Mark inline.
7327 2009-04-16 Nicolas Roche <roche@adacore.com>
7329 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
7331 2009-04-16 Thomas Quinot <quinot@adacore.com>
7333 * prepcomp.adb: Minor reformatting
7335 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
7337 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
7338 Access_Subprogram types can also be imported.
7339 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
7342 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7344 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
7345 preserve homonym chain when the declaration is rewritten into a
7346 renaming declaration, in order to preserve visibility structure.
7348 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
7350 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
7351 taken into account for VM targets.
7353 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
7355 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
7357 (Year_Week_In_Year): New routine which contains the original code from
7358 Week_In_Year. Add the missing special case for January 1st falling on
7361 2009-04-16 Thomas Quinot <quinot@adacore.com>
7363 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
7364 actual type, use the base type to build the To_Any function.
7365 (Build_From_Any_Function): Remove junk, useless subtype conversion.
7367 2009-04-16 Thomas Quinot <quinot@adacore.com>
7369 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
7370 restrict.adb: Minor code reorganization (use
7371 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
7373 2009-04-16 Bob Duff <duff@adacore.com>
7375 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
7378 2009-04-16 Thomas Quinot <quinot@adacore.com>
7380 * sem_ch4.adb: Minor reformatting
7382 * adaint.c: Remove junk duplicated code.
7384 * sem_ch3.adb: Minor reformatting
7386 * exp_dist.adb: Minor comment rewording
7388 2009-04-16 Robert Dewar <dewar@adacore.com>
7390 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
7393 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7395 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
7396 usable before calling Add_One_Interp, to resolve spurious ambiguities.
7398 2009-04-16 Robert Dewar <dewar@adacore.com>
7400 * Make-lang.in: Add entries for s-conca?.o
7402 * Makefile.rtl: Add entries for s-conca?
7404 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
7405 of concatenation expansion
7407 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
7408 string cases instead of expanding assignments inline.
7410 * opt.ads (Optimize_Size): New flag
7412 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
7413 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
7414 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
7415 s-conca9.adb, s-conca9.ads: New file.
7417 2009-04-16 Robert Dewar <dewar@adacore.com>
7419 * exp_ch6.adb: Add comments
7421 * rtsfind.ads: Add entries for s-conca? routines
7423 2009-04-16 Arnaud Charlet <charlet@adacore.com>
7425 * gcc-interface/Make-lang.in: Update dependencies.
7427 * gcc-interface/Makefile.in: Update translation for vms.
7429 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7431 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
7432 and made global, to be used when installing parents of a child
7433 instance, to provide mappings for entities declared in formal packages
7434 of ancestor units. Now called from Install_Formal_Packages.
7436 2009-04-16 Doug Rupp <rupp@adacore.com>
7438 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
7439 notation for clarity.
7441 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7442 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
7443 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
7444 (Initialize): Initialize Known_Tasks with Environment task.
7446 * s-taskin.ads (Task_States): Move new states to end for the sake of
7449 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
7451 2009-04-16 Ed Schonberg <schonberg@adacore.com>
7453 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
7454 operation has an inline pragma, propagate the flag to the internal
7455 unprotected subprogram.
7457 2009-04-16 Doug Rupp <rupp@adacore.com>
7459 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
7460 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
7461 s-taprop-hpux-dce.adb, s-taprop-posix.adb
7462 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
7464 * s-taprop-vms.adb (Enter_Task): Likewise.
7465 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
7467 * s-tassta.adb (Activate_Tasks): After task creation set state to
7468 Activating, vice Runnable. Initialize Known_Tasks, moved here from
7469 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
7470 Set state to Runnable after above.
7471 (Task_Wrapper): Set Debug_Event_Run. In exception block set
7472 Debug_Event_Terminated.
7474 * s-taskin.ads (Task_States): Add new states Activiting and
7475 Activator_Delay_Sleep.
7476 (Bit_Array, Debug_Event_Array): New types.
7477 (Global_Task_Debug_Event_Set: New flag.
7478 (Common_ATCB): New field Debug_Events.
7480 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
7482 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
7485 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
7486 Activating and when Acceptor_Delay_Sleep.
7488 * s-tasdeb.ads: Add constants for Debug_Events.
7489 (Debug_Event_Kind_Type): New subtype.
7490 (Signal_Debug_Event): New subprogram.
7492 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
7494 2009-04-16 Thomas Quinot <quinot@adacore.com>
7496 * sem_elim.adb: Minor reformatting
7498 * freeze.adb: Minor reformatting
7500 * exp_ch4.adb: Minor reformatting
7502 2009-04-16 Emmanuel Briot <briot@adacore.com>
7504 * prj-nmsc.adb (Path_Name_Of): fix memory leak
7506 2009-04-16 Robert Dewar <dewar@adacore.com>
7508 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
7510 2009-04-16 Vincent Celier <celier@adacore.com>
7512 * fmap.adb (Initialize): Show the current line when the mapping file
7513 is detected as "incorrectly formatted".
7515 2009-04-16 Robert Dewar <dewar@adacore.com>
7517 * sem_ch12.adb: Minor reformatting
7519 * sem_ch5.adb: Minor comment addition
7521 * sem_util.adb: Minor reformatting
7523 * sinput-p.adb: Minor reformatting
7524 Add missing pragma Warnings (On)
7526 2009-04-16 Ed Falis <falis@adacore.com>
7528 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
7530 2009-04-16 Vincent Celier <celier@adacore.com>
7532 * ali-util.adb: Minor comment spelling error fix
7534 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
7536 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
7537 generate an assignment loop in case of overlap.
7539 2009-04-16 Olivier Hainque <hainque@adacore.com>
7541 * gnat_ugn.texi (gnatmem description): Make it explicit that
7542 gnatmem is designed to work in association with static runtime
7545 2009-04-16 Thomas Quinot <quinot@adacore.com>
7547 * sem_type.adb: Minor reformatting
7549 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
7551 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
7552 concerning return codes of gettimeofday and return value check.
7554 2009-04-16 Ed Falis <falis@adacore.com>
7556 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
7557 body can be renaming of imported routines.
7559 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
7561 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
7564 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7566 * exp_ch9.adb: Comment improvements.
7567 (Build_Entry_Family_Name): Add parentheses around the index of a entry
7570 2009-04-15 Bob Duff <duff@adacore.com>
7572 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
7573 "while X /= null loop" where X is unchanged inside the loop. We were
7574 not warning in this case, because of the pointers -- we feared that the
7575 loop variable could be updated via a pointer, if there are any pointers
7576 around the place. But that is impossible in this case.
7578 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
7579 the case of dereferences. In X.all, X cannot be an l-value. We now
7580 catch that case (and implicit dereferences, too).
7582 2009-04-15 Vincent Celier <celier@adacore.com>
7584 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
7586 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7588 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
7590 (Analyze_Package_Instantiation): If generic unit in child instance is
7591 the same as generic unit in parent instance, look for an outer homonym
7592 to locate the desired generic.
7594 2009-04-15 Bob Duff <duff@adacore.com>
7596 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
7597 warnings unless the loop comes from source, because checking generated
7598 loops is a waste of time, and makes it harder to debug
7599 Check_Infinite_Loop_Warning.
7601 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
7602 tested in the while loop is a renaming, do not warn. Otherwise, we get
7603 false alarms, because it's usually renaming something that we can't
7604 deal with (an indexed component, a global variable, ...).
7606 * gnat_rm.texi: Fix typo
7608 2009-04-15 Thomas Quinot <quinot@adacore.com>
7610 * sem_ch6.adb: Minor reformatting
7612 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7614 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
7615 immediate parent of the controlled function call is a component
7618 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7620 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
7621 corresponding class-wide type is also in use.
7623 2009-04-15 Thomas Quinot <quinot@adacore.com>
7625 * frontend.adb: Minor comment fix
7627 2009-04-15 Robert Dewar <dewar@adacore.com>
7629 * gnatchop.adb (BOM_Length): New global variable
7630 (Write_Unit): Add new parameter Write_BOM
7631 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
7634 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
7636 2009-04-15 Geert Bosch <bosch@adacore.com>
7638 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
7639 (Backend_Overflow_Checks): Set to True.
7641 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7643 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
7644 keyword is given in a record extension.
7646 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7648 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
7649 of a controlled function call in the context of a record aggregate.
7650 This does not apply to array aggregates since the call will be expanded
7653 2009-04-15 Ed Falis <falis@adacore.com>
7655 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
7656 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
7657 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
7658 s-osinte-vxworks* and s-vxwext*.
7660 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7662 * gcc-interface/Make-lang.in: Update dependencies.
7664 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
7667 2009-04-15 Robert Dewar <dewar@adacore.com>
7669 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
7670 of node for location for warning messages.
7672 * gnatchop.adb: Minor reformatting
7674 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7676 * exp_ch6.adb: additional guard for renaming declarations for in
7677 parameters of an array type.
7679 2009-04-15 Robert Dewar <dewar@adacore.com>
7681 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
7682 in case they were rewritten by expander (Force_Evaluation).
7684 * targparm.adb (Get_Target_Parameters): Correct check for
7685 Suppress_Exception_Locations.
7687 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7689 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
7690 inlined is of an array type that is not bit-packed, use a renaming
7691 declaration to capture its value, rather than a constant declaration.
7693 2009-04-15 Robert Dewar <dewar@adacore.com>
7695 * rtsfind.adb: Minor reformatting.
7697 2009-04-15 Emmanuel Briot <briot@adacore.com>
7699 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
7700 Restore, and free the saved context.
7702 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7704 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
7705 for illegal private extension from a synchronized interface parent in
7706 front of check for illegal limited extension so that limited extension
7707 from a synchronized interface will be rejected.
7708 (Check_Ifaces): Check that a private extension that has a synchronized
7709 interface as a progenitor must be explicitly declared synchronized.
7710 Also check that a record extension cannot derive from a synchronized
7713 2009-04-15 Pascal Obry <obry@adacore.com>
7715 * adaint.h (__gnat_unlink): Add spec.
7716 (__gnat_rename): Likewise.
7718 2009-04-15 Vincent Celier <celier@adacore.com>
7720 * prj-nmsc.adb: Minor spelling error corrections in error messages
7722 2009-04-15 Robert Dewar <dewar@adacore.com>
7724 * sinfo.ads: Minor comment update
7726 * opt.ads: Minor comment updates
7728 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
7731 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7733 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
7734 that generates the code needed to update a dispatch table when a
7735 primitive operation is declared with a subprogram body without previous
7736 spec. Insertion of the generated code is responsibility of the caller.
7737 (Make_DT): When building static tables, append the code created by
7738 Register_Primitive to update a secondary table after it has been
7741 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
7743 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
7744 on an overriding operation that implements an interface operation only
7745 if not building static dispatch tables.
7747 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7749 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
7750 does not cause overflow when converted to Duration. Use the safe value
7751 as the maximum allowable time delay..
7753 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
7755 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
7756 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
7757 translated to "-j 2".
7759 2009-04-15 Bob Duff <duff@adacore.com>
7761 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
7762 with_clauses, to avoid code duplication. Change this processing so we
7763 always add a with_clause on the main unit if needed.
7765 2009-04-15 Pascal Obry <obry@adacore.com>
7767 Add support for Win32 native encoding for delete/rename routines.
7769 * adaint.c (__gnat_unlink): New routine.
7770 (__gnat_rename): New routine.
7771 Simple wrapper routines used to convert to proper encoding on
7774 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
7775 call to the C library.
7777 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
7779 2009-04-15 Robert Dewar <dewar@adacore.com>
7781 * s-tassta.adb: Minor reformatting
7783 2009-04-15 Robert Dewar <dewar@adacore.com>
7785 * frontend.adb (Frontend): Set proper default for
7786 Warn_On_Non_Local_Exception.
7788 * opt.ads (Exception_Handler_Encountered): New flag
7789 (No_Warn_On_Non_Local_Exception): New flag
7791 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
7793 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7794 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7796 2009-04-15 Cyrille Comar <comar@adacore.com>
7798 * s-tassta.adb, a-exextr.adb, a-elchha.adb
7799 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
7800 message when exception traces are active since it would generate
7801 redundant information.
7802 (Exception_Traces.Notify_Exception): put message output by a critical
7803 section to avoid unsynchronized output.
7804 (Trace_Unhandled_Exception_In_Task): put message output by a critical
7805 section to avoid unsynchronized output.
7807 2009-04-15 Emmanuel Briot <briot@adacore.com>
7809 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
7810 (Free): New subprogram.
7812 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7814 * a-calend.adb: Add new constant Nanos_In_Four_Years.
7815 (Formatting_Operations.Time_Of): Change the way four year chunks of
7816 nanoseconds are added to the intermediate result.
7818 2009-04-15 Nicolas Setton <setton@adacore.com>
7820 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
7821 does not need to wait for a carriage return.
7823 2009-04-15 Tristan Gingold <gingold@adacore.com>
7825 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
7828 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7830 * freeze.adb (Freeze_Entity): improve error message for improper use of
7832 Diagnose additional illegal uses of incomplete types in formal parts.
7833 appearing in formal parts.
7835 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
7837 2009-04-15 Robert Dewar <dewar@adacore.com>
7839 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
7841 2009-04-15 Nicolas Roche <roche@adacore.com>
7843 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
7846 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
7848 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
7850 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7852 * sem_ch4.adb: improve error message on exponentiation.
7854 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
7856 * a-calend.adb: Move constant Epoch_Offset from package
7857 Conversion_Operations to top level.
7858 (Delay_Operations.To_Duration): Define a constant which represents
7859 "end of time" and use it as a guard against very distant delay dates.
7860 Protect the code against overflow when performing the origin shift to
7863 2009-04-15 Robert Dewar <dewar@adacore.com>
7865 * sem_prag.adb: Minor reformatting.
7867 * sem_type.adb: Minor reformatting
7869 2009-04-15 Javier Miranda <miranda@adacore.com>
7871 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
7872 support to check eliminated subprograms.
7874 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
7876 * sem_elim.adb (Set_Eliminated): Add support for elimination of
7877 dispatching subprograms.
7879 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
7880 operations. Initialize with "null" the slots of eliminated dispaching
7882 (Write_DT): Add output for eliminated primitives.
7884 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
7886 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7888 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
7889 the second is redundant, regardless of scopes.
7891 2009-04-15 Vincent Celier <celier@adacore.com>
7893 * prj-nmsc.adb (Get_Directories): Check for sources before checking
7894 the object directory as when there are no sources, they may not be any
7897 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
7898 directory, when there are no exec directory.
7900 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7902 * sem_type.adb (Remove_Conversions): In order to resolve spurious
7903 ambiguities, refine removal of universal interpretations from complex
7904 expressions with literal arguments, when some numeric operators have
7905 been declared abstract.
7907 2009-04-15 Ed Falis <falis@adacore.com>
7909 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
7910 and backward compatibility for targets using probing for stack overflow
7912 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7914 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
7915 after any declaration, including renaming declarations.
7917 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7919 * gcc-interface/Make-lang.in: Update dependencies.
7921 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
7922 Update xenomai target pairs.
7924 2009-04-15 Javier Miranda <miranda@adacore.com>
7926 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7928 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
7929 functions returning anonymous access to class-wide limited types. Mark
7930 also the containing scope as a task master.
7932 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
7933 limited-withed packages. Required to restore their visibility after
7934 processing packages associated with implicit with-clauses.
7936 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
7937 associated with return statements because this work is now done by
7938 Check_Anonymous_Return.
7939 (Build_Master): Code cleanup.
7941 2009-04-15 Thomas Quinot <quinot@adacore.com>
7943 * sem_warn.ads: Minor reformatting
7945 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7947 * sem_ch3.adb: better error message for illegal interfaces
7949 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
7950 formal is an incomplete type from a limited_with clause.
7952 2009-04-15 Vincent Celier <celier@adacore.com>
7954 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
7955 Externally_Built indicating if the project is externally built. If it
7956 is, and --subdirs is specified, but the subdir does not exist, look
7957 for the specified directory, without the subdir.
7959 2009-04-15 Gary Dismukes <dismukes@adacore.com>
7961 * a-tasatt.adb: Fix typo, plus minor reformatting
7963 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
7965 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
7967 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7969 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
7970 private extension whose parent is a synchronized interface carries an
7971 explicit synchronized keyword.
7973 2009-04-15 Thomas Quinot <quinot@adacore.com>
7975 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
7976 instantiate generic shared object package with the corresponding
7979 2009-04-15 Arnaud Charlet <charlet@adacore.com>
7981 * system-linux-sparc.ads: Remove obsolete entries.
7983 2009-04-15 Thomas Quinot <quinot@adacore.com>
7985 * s-tasuti.ads: Add ??? comment
7987 2009-04-15 Ed Schonberg <schonberg@adacore.com>
7989 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
7990 type even if the designated type comes from a limited_with clause, to
7991 ensure that the symbol for the finalization list of the access type is
7994 2009-04-10 Robert Dewar <dewar@adacore.com>
7996 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
7997 for warning suppression.
7999 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8001 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
8002 identical, there is no redudancy to check.
8004 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8006 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
8007 calls initializing SS_Allocator (which is initialized in following
8009 (Expand_Simple_Function_Return): Add comment about False value for
8010 Comes_From_Source on secondary-stack allocator.
8012 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8013 (Build_Entry_Name): Add comment.
8015 2009-04-10 Robert Dewar <dewar@adacore.com>
8017 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8019 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8020 bound tested, since this is now done more generally in Sem_Res.
8022 * sem_res.adb (Resolve_Comparison_Op): Add call to
8023 Check_Lower_Bound_Tested.
8024 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8026 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8027 (Low_Bound_Tested): New name for Low_Bound_Known flag
8029 * exp_ch5.adb: Minor reformatting
8032 Add comments on copying the Comes_From_Source flag for allocators
8035 Add comments on copying the Comes_From_Source flag for allocators
8037 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8038 Comes_From_Source flag from old allocator to new one.
8040 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8042 * sem_ch6.ads: Address missing documentation query
8044 2009-04-10 Vincent Celier <celier@adacore.com>
8047 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8048 and Response_File_Switches.
8050 * prj-nmsc.adb (Process_Linker): Process new attributes
8051 Max_Command_Line_Length, Response_File_Format and
8052 Response_File_Switches.
8054 * prj.ads (Response_File_Format): New enumeration type
8055 (Project_Configuration): New componants Max_Command_Line_Length,
8056 Resp_File_Format and Resp_File_Options.
8058 * snames.ads-tmpl: Add new standard names for linking response files
8059 for gprbuild: GNU, None, Object_List, Option_List,
8060 Max_Command_Line_Length, Response_File_Format and
8061 Response_File_Switches.
8063 2009-04-10 Geert Bosch <bosch@adacore.com>
8065 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8066 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8067 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8068 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8069 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8070 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8071 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8072 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8073 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8074 system-vxworks-arm.ads, system-vxworks-m68k.ads,
8075 system-vxworks-mips.ads, system-vxworks-ppc.ads,
8076 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8077 (Backend_Overflow_Checks): Set to True.
8079 2009-04-10 Thomas Quinot <quinot@adacore.com>
8081 * exp_attr.adb: Minor reformatting
8083 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8085 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8086 analyze the expression for a postcondition, even if the compiler mode
8089 2009-04-10 Robert Dewar <dewar@adacore.com>
8091 * sem_aux.adb: Minor reformatting
8093 2009-04-10 Ed Falis <falis@adacore.com>
8095 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
8097 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
8099 2009-04-10 Thomas Quinot <quinot@adacore.com>
8101 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
8102 undocumented formal.
8105 * a-direio.ads: Fix typo in comment
8107 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8108 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8109 Use uniform phrasing for comment at start of subprogram body.
8111 * xsnamest.adb: Add note to explain why we use specific names for the
8112 newly generated files instead of generating snames.{ads,adb,h} directly
8114 2009-04-10 Sergey Rybin <rybin@adacore.com>
8117 Add qualifier for new gnatstub option '--no-exception'
8120 Add the description of the new gnatstub option '--no-exception'
8122 2009-04-10 Robert Dewar <dewar@adacore.com>
8124 * rtsfind.adb: Minor reformatting
8126 2009-04-10 Thomas Quinot <quinot@adacore.com>
8128 * sem_disp.adb: Minor reformatting.
8129 Add comment pointing to RM clause for the case of warning against a
8130 (failed) attempt at declaring a primitive operation elsewhere than in a
8133 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8135 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8136 an actual for a previous formal package of the current instance.
8138 2009-04-10 Bob Duff <duff@adacore.com>
8140 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8141 them first, rather than on the extended main unit.
8143 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8145 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
8146 specification of full view carries a null exclusion indicator, create
8147 an itype for it, to check for conformance with partial view.
8149 2009-04-10 Bob Duff <duff@adacore.com>
8151 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
8153 * rtsfind.adb: Minor comment changes, and remove useless code.
8155 * sinfo.ads: Add ??? comment.
8157 2009-04-10 Vincent Celier <celier@adacore.com>
8159 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
8161 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8163 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
8164 type is a synchronized type, retrieve tag information from the
8165 corresponding record, which has the dispatch table link.
8167 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
8169 * g-comlin.adb (Group_Analysis): Take care of switches that might be
8170 decomposed afterwards, but are present as-is in the command line
8171 configuration, and thus should be kept as-is.
8173 2009-04-10 Robert Dewar <dewar@adacore.com>
8175 * gnat_rm.texi: Document that postconditions are tested on implicit
8178 * sem_aux.adb: Minor reformatting
8180 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8182 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
8185 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
8186 Null_Exclusion_In_Return_Present when an access-to-function type has a
8187 result type with an explicit not null.
8189 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
8190 given on the result type, then create a null-excluding itype for the
8193 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
8194 the case where a null exclusion is imposed on a named access type.
8195 (Analyze_Subprogram_Specification): Push and pop the scope of the
8196 function around the call to Analyze_Return_Type in the case of no
8197 formals, for consistency with handling when formals are present
8198 (Process_Formals does this). Ensures that any itype created for the
8199 return type will be associated with the proper scope.
8201 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
8202 exclusion is given on a generic function's result type, then create a
8203 null-excluding itype for the generic function.
8204 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
8205 for an actual for a formal in object according to the setting on the
8206 formal. Ensures null exclusion checks are done when the association is
8209 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
8210 N_Access_Function_Definition.
8212 * sinfo.adb: Add Get_ and Set_ operations for
8213 Null_Exclusion_In_Return_Present.
8215 2009-04-10 Bob Duff <duff@adacore.com>
8217 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
8218 call to the _Postconditions procedure in the case of implicit returns
8219 from analysis to expansion. This eliminates some duplicated code. Use
8220 the Postcondition_Proc to find the identity of this procedure during
8223 2009-04-10 Robert Dewar <dewar@adacore.com>
8225 * sem_ch6.adb: Minor code clean up.
8227 * einfo.ads, sem_attr.adb: Minor comment fixes.
8229 2009-04-10 Robert Dewar <dewar@adacore.com>
8231 * sem_ch8.adb: Minor reformatting
8233 2009-04-10 Robert Dewar <dewar@adacore.com>
8235 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
8238 * sem_ch6.adb: Minor code clean up.
8240 2009-04-10 Robert Dewar <dewar@adacore.com>
8242 * mlib-tgt-specific-xi.adb: Minor reformatting
8244 2009-04-10 Bob Duff <duff@adacore.com>
8246 * einfo.ads: Minor comment fixes
8248 2009-04-10 Vincent Celier <celier@adacore.com>
8250 * snames.ads-tmpl: Remove names that are no longer used in the
8252 Mark specifically those that are used only in gprbuild
8254 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
8256 * init.c: Adjust EH support code on Alpha/Tru64.
8258 2009-04-10 Bob Duff <duff@adacore.com>
8260 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
8261 procedure on every path that could return implicitly (not via a return
8262 statement) from a procedure.
8264 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8266 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
8267 valid scope for a task declarations and therefore for a master id.
8269 2009-04-10 Robert Dewar <dewar@adacore.com>
8271 * sem_aux.adb: Minor reformatting
8273 2009-04-10 Vincent Celier <celier@adacore.com>
8275 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
8277 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
8278 (Set_Obsolescent_Check): New procedure to change the value of
8279 Obsolescent_Check_Flag.
8281 * scn.ads (Set_Obsolescent_Check): New procedure to control
8284 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
8285 obsolescent features while preprocessing.
8287 2009-04-10 Thomas Quinot <quinot@adacore.com>
8289 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
8290 generated files on all platforms.
8292 2009-04-10 Robert Dewar <dewar@adacore.com>
8294 * sem_aux.adb: Minor reformatting
8296 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8298 * sem_ch3.adb (Access_Definition): Handle properly the case of a
8299 protected function with formals that returns an anonymous access type.
8301 2009-04-10 Thomas Quinot <quinot@adacore.com>
8303 * sem_disp.adb: Minor reformatting
8305 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
8307 * seh_init.c: Do not use the 32-bit specific implementation of
8308 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
8311 2009-04-10 Jose Ruiz <ruiz@adacore.com>
8313 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
8314 a '/' at the end so we better use the complete target name to determine
8315 whether it is a PowerPC 55xx target.
8317 2009-04-10 Thomas Quinot <quinot@adacore.com>
8319 * sem_eval.adb: Minor reformatting
8321 2009-04-10 Thomas Quinot <quinot@adacore.com>
8323 * snames.h, snames.ads, snames.adb: Remove files, now generated from
8326 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
8329 * xsnamest.adb: New file.
8331 * gcc-interface/Make-lang.in: New target for automated generation of
8332 snames.ads, snames.adb and snames.h
8334 2009-04-10 Tristan Gingold <gingold@adacore.com>
8336 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
8337 avoid compile time warnings.
8338 Do not add gcc/config in include search list while compiling the RTS.
8339 Pragma Thread_Local_Storage is available on any target.
8341 2009-04-10 Bob Duff <duff@adacore.com>
8343 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
8345 2009-04-10 Tristan Gingold <gingold@adacore.com>
8347 * init.c: Install signal handler on Darwin.
8349 2009-04-10 Robert Dewar <dewar@adacore.com>
8351 * sem_prag.adb: Minor reformatting
8353 * exp_util.adb (Make_Non_Empty_Check): New function
8354 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
8355 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
8357 2009-04-10 Arnaud Charlet <charlet@adacore.com>
8359 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
8361 2009-04-10 Jose Ruiz <ruiz@adacore.com>
8363 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
8364 tool prefix for AVR and PowerPC 55xx targets.
8366 2009-04-10 Robert Dewar <dewar@adacore.com>
8368 * sem_warn.adb (Within_Postcondition): New function
8369 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
8371 2009-04-10 Robert Dewar <dewar@adacore.com>
8373 * sem_warn.adb: Minor reformatting
8375 * make.adb: Minor reformatting.
8377 2009-04-10 Gary Dismukes <dismukes@adacore.com>
8379 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
8380 entity and the scope is a subprogram, retrieve the Sloc of the
8381 subprogram's body rather than using the sloc of the spec, for better
8382 line-stepping behavior in gdb.
8383 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
8384 controller, use the Sloc of the first declaration of the containing list
8385 rather than that of the node that triggered creation of the list
8388 2009-04-10 Vincent Celier <celier@adacore.com>
8390 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
8391 to avoid gcc warning.
8393 2009-04-10 Robert Dewar <dewar@adacore.com>
8395 * g-comlin.adb: Add ??? comment
8397 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8399 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
8400 unreferenced entities for a package with no visible declarations.
8402 2009-04-10 Robert Dewar <dewar@adacore.com>
8404 * exp_ch9.adb: Minor reformatting
8406 2009-04-10 Thomas Quinot <quinot@adacore.com>
8408 * sem_prag.adb: Minor reformatting
8410 2009-04-10 Vincent Celier <celier@adacore.com>
8413 (Check_Library_Attributes): For a project qualified as a library project
8414 that is not a library project, indicate in the error message which
8415 attributes are missing (Library_Dir and/or Library_Name).
8417 2009-04-10 Bob Duff <duff@adacore.com>
8419 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
8420 generated nodes, because it might confuse various circuits in the FE.
8422 2009-04-10 Ed Schonberg <schonberg@adacore.com>
8424 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
8425 of pragma. It will be recopied and analyzed when used in call to
8428 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
8429 initialization operations and recognize use of it in procedure calls
8432 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
8433 argument, because it may have side-effects.
8435 * exp_ch2.adb: Remove obsolete comments on default functions
8437 2009-04-10 Jose Ruiz <ruiz@adacore.com>
8439 * adaint.c (RTX section): Do for RTX the same thing as we do for
8440 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
8442 2009-04-10 Robert Dewar <dewar@adacore.com>
8444 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
8446 * sem_res.adb (Resolve_Call): Fix test for
8447 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
8448 a non-dynamic scope).
8450 2009-04-10 Robert Dewar <dewar@adacore.com>
8452 * make.adb: Add comment.
8455 2009-04-10 Nicolas Setton <setton@adacore.com>
8457 * s-osprim-darwin.adb: New file.
8459 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
8461 2009-04-10 Thomas Quinot <quinot@adacore.com>
8463 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
8465 2009-04-09 Nick Clifton <nickc@redhat.com>
8467 * adadecode.h: Change copyright header to refer to version
8468 3 of the GNU General Public License with version 3.1 of the
8469 GCC Runtime Library Exception and to point readers at the
8470 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
8472 * 9drpc.adb: Likewise.
8473 * a-assert.adb: Likewise.
8474 * a-astaco.adb: Likewise.
8475 * a-calari.adb: Likewise.
8476 * a-calcon.adb: Likewise.
8477 * a-calcon.ads: Likewise.
8478 * a-caldel.ads: Likewise.
8479 * a-calend-vms.adb: Likewise.
8480 * a-calend-vms.ads: Likewise.
8481 * a-calend.adb: Likewise.
8482 * a-calend.ads: Likewise.
8483 * a-calfor.adb: Likewise.
8484 * a-catizo.adb: Likewise.
8485 * a-cdlili.adb: Likewise.
8486 * a-cdlili.ads: Likewise.
8487 * a-cgaaso.adb: Likewise.
8488 * a-cgaaso.ads: Likewise.
8489 * a-cgarso.adb: Likewise.
8490 * a-cgcaso.adb: Likewise.
8491 * a-chacon.adb: Likewise.
8492 * a-chacon.ads: Likewise.
8493 * a-chahan.adb: Likewise.
8494 * a-chahan.ads: Likewise.
8495 * a-chlat9.ads: Likewise.
8496 * a-chtgke.adb: Likewise.
8497 * a-chtgke.ads: Likewise.
8498 * a-chtgop.adb: Likewise.
8499 * a-chtgop.ads: Likewise.
8500 * a-chzla1.ads: Likewise.
8501 * a-chzla9.ads: Likewise.
8502 * a-cidlli.adb: Likewise.
8503 * a-cidlli.ads: Likewise.
8504 * a-cihama.adb: Likewise.
8505 * a-cihama.ads: Likewise.
8506 * a-cihase.adb: Likewise.
8507 * a-cihase.ads: Likewise.
8508 * a-ciorma.adb: Likewise.
8509 * a-ciorma.ads: Likewise.
8510 * a-ciormu.adb: Likewise.
8511 * a-ciormu.ads: Likewise.
8512 * a-ciorse.adb: Likewise.
8513 * a-ciorse.ads: Likewise.
8514 * a-clrefi.adb: Likewise.
8515 * a-clrefi.ads: Likewise.
8516 * a-cohama.adb: Likewise.
8517 * a-cohama.ads: Likewise.
8518 * a-cohase.adb: Likewise.
8519 * a-cohase.ads: Likewise.
8520 * a-cohata.ads: Likewise.
8521 * a-coinve.adb: Likewise.
8522 * a-coinve.ads: Likewise.
8523 * a-colien.adb: Likewise.
8524 * a-colien.ads: Likewise.
8525 * a-colire.adb: Likewise.
8526 * a-colire.ads: Likewise.
8527 * a-comlin.adb: Likewise.
8528 * a-comlin.ads: Likewise.
8529 * a-convec.adb: Likewise.
8530 * a-convec.ads: Likewise.
8531 * a-coorma.adb: Likewise.
8532 * a-coorma.ads: Likewise.
8533 * a-coormu.adb: Likewise.
8534 * a-coormu.ads: Likewise.
8535 * a-coorse.adb: Likewise.
8536 * a-coorse.ads: Likewise.
8537 * a-coprnu.adb: Likewise.
8538 * a-coprnu.ads: Likewise.
8539 * a-crbltr.ads: Likewise.
8540 * a-crbtgk.adb: Likewise.
8541 * a-crbtgk.ads: Likewise.
8542 * a-crbtgo.adb: Likewise.
8543 * a-crbtgo.ads: Likewise.
8544 * a-crdlli.adb: Likewise.
8545 * a-crdlli.ads: Likewise.
8546 * a-cwila1.ads: Likewise.
8547 * a-cwila9.ads: Likewise.
8548 * a-decima.adb: Likewise.
8549 * a-decima.ads: Likewise.
8550 * a-diocst.adb: Likewise.
8551 * a-diocst.ads: Likewise.
8552 * a-direct.adb: Likewise.
8553 * a-direct.ads: Likewise.
8554 * a-direio.adb: Likewise.
8555 * a-direio.ads: Likewise.
8556 * a-dirval-mingw.adb: Likewise.
8557 * a-dirval-vms.adb: Likewise.
8558 * a-dirval.adb: Likewise.
8559 * a-dirval.ads: Likewise.
8560 * a-dynpri.adb: Likewise.
8561 * a-einuoc.adb: Likewise.
8562 * a-einuoc.ads: Likewise.
8563 * a-elchha.adb: Likewise.
8564 * a-elchha.ads: Likewise.
8565 * a-envvar.adb: Likewise.
8566 * a-excach.adb: Likewise.
8567 * a-except-2005.adb: Likewise.
8568 * a-except-2005.ads: Likewise.
8569 * a-except.adb: Likewise.
8570 * a-except.ads: Likewise.
8571 * a-excpol-abort.adb: Likewise.
8572 * a-excpol.adb: Likewise.
8573 * a-exctra.adb: Likewise.
8574 * a-exctra.ads: Likewise.
8575 * a-exetim-mingw.adb: Likewise.
8576 * a-exetim-mingw.ads: Likewise.
8577 * a-exexda.adb: Likewise.
8578 * a-exexpr-gcc.adb: Likewise.
8579 * a-exexpr.adb: Likewise.
8580 * a-exextr.adb: Likewise.
8581 * a-exstat.adb: Likewise.
8582 * a-filico.adb: Likewise.
8583 * a-filico.ads: Likewise.
8584 * a-finali.adb: Likewise.
8585 * a-finali.ads: Likewise.
8586 * a-interr.ads: Likewise.
8587 * a-intnam-aix.ads: Likewise.
8588 * a-intnam-darwin.ads: Likewise.
8589 * a-intnam-dummy.ads: Likewise.
8590 * a-intnam-freebsd.ads: Likewise.
8591 * a-intnam-hpux.ads: Likewise.
8592 * a-intnam-irix.ads: Likewise.
8593 * a-intnam-linux.ads: Likewise.
8594 * a-intnam-lynxos.ads: Likewise.
8595 * a-intnam-mingw.ads: Likewise.
8596 * a-intnam-rtems.ads: Likewise.
8597 * a-intnam-solaris.ads: Likewise.
8598 * a-intnam-tru64.ads: Likewise.
8599 * a-intnam-vms.ads: Likewise.
8600 * a-intnam-vxworks.ads: Likewise.
8601 * a-intsig.adb: Likewise.
8602 * a-intsig.ads: Likewise.
8603 * a-ngcefu.adb: Likewise.
8604 * a-ngcoar.adb: Likewise.
8605 * a-ngcoty.adb: Likewise.
8606 * a-ngcoty.ads: Likewise.
8607 * a-ngelfu.adb: Likewise.
8608 * a-ngrear.adb: Likewise.
8609 * a-ngrear.ads: Likewise.
8610 * a-nudira.adb: Likewise.
8611 * a-nudira.ads: Likewise.
8612 * a-nuflra.adb: Likewise.
8613 * a-nuflra.ads: Likewise.
8614 * a-numaux-darwin.adb: Likewise.
8615 * a-numaux-darwin.ads: Likewise.
8616 * a-numaux-libc-x86.ads: Likewise.
8617 * a-numaux-vxworks.ads: Likewise.
8618 * a-numaux-x86.adb: Likewise.
8619 * a-numaux-x86.ads: Likewise.
8620 * a-numaux.ads: Likewise.
8621 * a-rbtgso.adb: Likewise.
8622 * a-rbtgso.ads: Likewise.
8623 * a-reatim.ads: Likewise.
8624 * a-retide.adb: Likewise.
8625 * a-retide.ads: Likewise.
8626 * a-rttiev.adb: Likewise.
8627 * a-rttiev.ads: Likewise.
8628 * a-secain.adb: Likewise.
8629 * a-secain.ads: Likewise.
8630 * a-sequio.adb: Likewise.
8631 * a-sequio.ads: Likewise.
8632 * a-shcain.adb: Likewise.
8633 * a-shcain.ads: Likewise.
8634 * a-siocst.adb: Likewise.
8635 * a-siocst.ads: Likewise.
8636 * a-slcain.adb: Likewise.
8637 * a-slcain.ads: Likewise.
8638 * a-ssicst.adb: Likewise.
8639 * a-ssicst.ads: Likewise.
8640 * a-stboha.adb: Likewise.
8641 * a-stmaco.ads: Likewise.
8642 * a-storio.adb: Likewise.
8643 * a-strbou.adb: Likewise.
8644 * a-strbou.ads: Likewise.
8645 * a-stream.ads: Likewise.
8646 * a-strfix.adb: Likewise.
8647 * a-strhas.adb: Likewise.
8648 * a-strmap.adb: Likewise.
8649 * a-strmap.ads: Likewise.
8650 * a-strsea.adb: Likewise.
8651 * a-strsea.ads: Likewise.
8652 * a-strsup.adb: Likewise.
8653 * a-strsup.ads: Likewise.
8654 * a-strunb.adb: Likewise.
8655 * a-strunb.ads: Likewise.
8656 * a-ststio.adb: Likewise.
8657 * a-ststio.ads: Likewise.
8658 * a-stunau.adb: Likewise.
8659 * a-stunau.ads: Likewise.
8660 * a-stunha.adb: Likewise.
8661 * a-stwibo.adb: Likewise.
8662 * a-stwibo.ads: Likewise.
8663 * a-stwifi.adb: Likewise.
8664 * a-stwiha.adb: Likewise.
8665 * a-stwima.adb: Likewise.
8666 * a-stwima.ads: Likewise.
8667 * a-stwise.adb: Likewise.
8668 * a-stwise.ads: Likewise.
8669 * a-stwisu.adb: Likewise.
8670 * a-stwisu.ads: Likewise.
8671 * a-stwiun.adb: Likewise.
8672 * a-stwiun.ads: Likewise.
8673 * a-stzbou.adb: Likewise.
8674 * a-stzbou.ads: Likewise.
8675 * a-stzfix.adb: Likewise.
8676 * a-stzhas.adb: Likewise.
8677 * a-stzmap.adb: Likewise.
8678 * a-stzmap.ads: Likewise.
8679 * a-stzsea.adb: Likewise.
8680 * a-stzsea.ads: Likewise.
8681 * a-stzsup.adb: Likewise.
8682 * a-stzsup.ads: Likewise.
8683 * a-stzunb.adb: Likewise.
8684 * a-stzunb.ads: Likewise.
8685 * a-suteio.adb: Likewise.
8686 * a-suteio.ads: Likewise.
8687 * a-swbwha.adb: Likewise.
8688 * a-swmwco.ads: Likewise.
8689 * a-swunau.adb: Likewise.
8690 * a-swunau.ads: Likewise.
8691 * a-swuwha.adb: Likewise.
8692 * a-swuwti.adb: Likewise.
8693 * a-swuwti.ads: Likewise.
8694 * a-sytaco.adb: Likewise.
8695 * a-sytaco.ads: Likewise.
8696 * a-szbzha.adb: Likewise.
8697 * a-szmzco.ads: Likewise.
8698 * a-szunau.adb: Likewise.
8699 * a-szunau.ads: Likewise.
8700 * a-szuzha.adb: Likewise.
8701 * a-szuzti.adb: Likewise.
8702 * a-szuzti.ads: Likewise.
8703 * a-tags.adb: Likewise.
8704 * a-tags.ads: Likewise.
8705 * a-tasatt.ads: Likewise.
8706 * a-taside.adb: Likewise.
8707 * a-taside.ads: Likewise.
8708 * a-taster.adb: Likewise.
8709 * a-teioed.adb: Likewise.
8710 * a-teioed.ads: Likewise.
8711 * a-textio.adb: Likewise.
8712 * a-textio.ads: Likewise.
8713 * a-tiboio.adb: Likewise.
8714 * a-ticoau.adb: Likewise.
8715 * a-ticoau.ads: Likewise.
8716 * a-ticoio.adb: Likewise.
8717 * a-ticoio.ads: Likewise.
8718 * a-tideau.adb: Likewise.
8719 * a-tideau.ads: Likewise.
8720 * a-tideio.adb: Likewise.
8721 * a-tideio.ads: Likewise.
8722 * a-tienau.adb: Likewise.
8723 * a-tienau.ads: Likewise.
8724 * a-tienio.adb: Likewise.
8725 * a-tienio.ads: Likewise.
8726 * a-tifiio.adb: Likewise.
8727 * a-tifiio.ads: Likewise.
8728 * a-tiflau.adb: Likewise.
8729 * a-tiflau.ads: Likewise.
8730 * a-tiflio.adb: Likewise.
8731 * a-tiflio.ads: Likewise.
8732 * a-tigeau.adb: Likewise.
8733 * a-tigeau.ads: Likewise.
8734 * a-tiinau.adb: Likewise.
8735 * a-tiinau.ads: Likewise.
8736 * a-tiinio.adb: Likewise.
8737 * a-tiinio.ads: Likewise.
8738 * a-timoau.adb: Likewise.
8739 * a-timoau.ads: Likewise.
8740 * a-timoio.adb: Likewise.
8741 * a-timoio.ads: Likewise.
8742 * a-tiocst.adb: Likewise.
8743 * a-tiocst.ads: Likewise.
8744 * a-titest.adb: Likewise.
8745 * a-wichun.adb: Likewise.
8746 * a-wichun.ads: Likewise.
8747 * a-witeio.adb: Likewise.
8748 * a-witeio.ads: Likewise.
8749 * a-wtcoau.adb: Likewise.
8750 * a-wtcoau.ads: Likewise.
8751 * a-wtcoio.adb: Likewise.
8752 * a-wtcstr.adb: Likewise.
8753 * a-wtcstr.ads: Likewise.
8754 * a-wtdeau.adb: Likewise.
8755 * a-wtdeau.ads: Likewise.
8756 * a-wtdeio.adb: Likewise.
8757 * a-wtdeio.ads: Likewise.
8758 * a-wtedit.adb: Likewise.
8759 * a-wtedit.ads: Likewise.
8760 * a-wtenau.adb: Likewise.
8761 * a-wtenau.ads: Likewise.
8762 * a-wtenio.adb: Likewise.
8763 * a-wtenio.ads: Likewise.
8764 * a-wtfiio.adb: Likewise.
8765 * a-wtfiio.ads: Likewise.
8766 * a-wtflau.adb: Likewise.
8767 * a-wtflau.ads: Likewise.
8768 * a-wtflio.adb: Likewise.
8769 * a-wtflio.ads: Likewise.
8770 * a-wtgeau.adb: Likewise.
8771 * a-wtgeau.ads: Likewise.
8772 * a-wtinau.adb: Likewise.
8773 * a-wtinau.ads: Likewise.
8774 * a-wtinio.adb: Likewise.
8775 * a-wtmoau.adb: Likewise.
8776 * a-wtmoau.ads: Likewise.
8777 * a-wtmoio.adb: Likewise.
8778 * a-wtmoio.ads: Likewise.
8779 * a-wttest.adb: Likewise.
8780 * a-wwboio.adb: Likewise.
8781 * a-zchuni.adb: Likewise.
8782 * a-zchuni.ads: Likewise.
8783 * a-ztcoau.adb: Likewise.
8784 * a-ztcoau.ads: Likewise.
8785 * a-ztcoio.adb: Likewise.
8786 * a-ztcstr.adb: Likewise.
8787 * a-ztcstr.ads: Likewise.
8788 * a-ztdeau.adb: Likewise.
8789 * a-ztdeau.ads: Likewise.
8790 * a-ztdeio.adb: Likewise.
8791 * a-ztdeio.ads: Likewise.
8792 * a-ztedit.adb: Likewise.
8793 * a-ztedit.ads: Likewise.
8794 * a-ztenau.adb: Likewise.
8795 * a-ztenau.ads: Likewise.
8796 * a-ztenio.adb: Likewise.
8797 * a-ztenio.ads: Likewise.
8798 * a-ztexio.adb: Likewise.
8799 * a-ztexio.ads: Likewise.
8800 * a-ztfiio.adb: Likewise.
8801 * a-ztfiio.ads: Likewise.
8802 * a-ztflau.adb: Likewise.
8803 * a-ztflau.ads: Likewise.
8804 * a-ztflio.adb: Likewise.
8805 * a-ztflio.ads: Likewise.
8806 * a-ztgeau.adb: Likewise.
8807 * a-ztgeau.ads: Likewise.
8808 * a-ztinau.adb: Likewise.
8809 * a-ztinau.ads: Likewise.
8810 * a-ztinio.adb: Likewise.
8811 * a-ztmoau.adb: Likewise.
8812 * a-ztmoau.ads: Likewise.
8813 * a-ztmoio.adb: Likewise.
8814 * a-ztmoio.ads: Likewise.
8815 * a-zttest.adb: Likewise.
8816 * a-zzboio.adb: Likewise.
8817 * adadecode.c: Likewise.
8818 * adaint.c: Likewise.
8819 * adaint.h: Likewise.
8820 * alloc.ads: Likewise.
8822 * arit64.c: Likewise.
8823 * atree.adb: Likewise.
8824 * atree.ads: Likewise.
8825 * aux-io.c: Likewise.
8827 * casing.adb: Likewise.
8828 * casing.ads: Likewise.
8830 * csets.adb: Likewise.
8831 * csets.ads: Likewise.
8832 * cstreams.c: Likewise.
8833 * ctrl_c.c: Likewise.
8834 * debug.adb: Likewise.
8835 * debug.ads: Likewise.
8836 * dec.ads: Likewise.
8837 * einfo.adb: Likewise.
8838 * einfo.ads: Likewise.
8839 * elists.adb: Likewise.
8840 * elists.ads: Likewise.
8843 * errno.c: Likewise.
8846 * final.c: Likewise.
8847 * fname.adb: Likewise.
8848 * fname.ads: Likewise.
8849 * g-allein.ads: Likewise.
8850 * g-alleve.adb: Likewise.
8851 * g-alleve.ads: Likewise.
8852 * g-altcon.adb: Likewise.
8853 * g-altcon.ads: Likewise.
8854 * g-altive.ads: Likewise.
8855 * g-alveop.adb: Likewise.
8856 * g-alveop.ads: Likewise.
8857 * g-alvety.ads: Likewise.
8858 * g-alvevi.ads: Likewise.
8859 * g-arrspl.adb: Likewise.
8860 * g-arrspl.ads: Likewise.
8861 * g-calend.ads: Likewise.
8862 * g-comlin.adb: Likewise.
8863 * g-debpoo.adb: Likewise.
8864 * g-debpoo.ads: Likewise.
8865 * g-eacodu-vms.adb: Likewise.
8866 * g-eacodu.adb: Likewise.
8867 * g-excact.adb: Likewise.
8868 * g-excact.ads: Likewise.
8869 * g-locfil.adb: Likewise.
8870 * g-os_lib.ads: Likewise.
8871 * g-rannum.adb: Likewise.
8872 * g-rannum.ads: Likewise.
8873 * g-regist.adb: Likewise.
8874 * g-regist.ads: Likewise.
8875 * g-signal.adb: Likewise.
8876 * g-signal.ads: Likewise.
8877 * g-soccon.ads: Likewise.
8878 * g-string.adb: Likewise.
8879 * g-string.ads: Likewise.
8880 * g-strspl.ads: Likewise.
8881 * g-timsta.adb: Likewise.
8882 * g-timsta.ads: Likewise.
8883 * g-trasym-vms-alpha.adb: Likewise.
8884 * g-trasym-vms-ia64.adb: Likewise.
8885 * g-utf_32.adb: Likewise.
8886 * g-utf_32.ads: Likewise.
8887 * g-wistsp.ads: Likewise.
8888 * g-zstspl.ads: Likewise.
8890 * gnatvsn.adb: Likewise.
8891 * gnatvsn.ads: Likewise.
8892 * gsocket.h: Likewise.
8893 * hostparm.ads: Likewise.
8894 * i-c.adb: Likewise.
8895 * i-cexten.ads: Likewise.
8896 * i-cobol.adb: Likewise.
8897 * i-cobol.ads: Likewise.
8898 * i-cpoint.adb: Likewise.
8899 * i-cpoint.ads: Likewise.
8900 * i-cpp.adb: Likewise.
8901 * i-cpp.ads: Likewise.
8902 * i-cstrea-vms.adb: Likewise.
8903 * i-cstrea.adb: Likewise.
8904 * i-cstrea.ads: Likewise.
8905 * i-cstrin.adb: Likewise.
8906 * i-cstrin.ads: Likewise.
8907 * i-forbla-darwin.adb: Likewise.
8908 * i-forbla-unimplemented.ads: Likewise.
8909 * i-forbla.adb: Likewise.
8910 * i-forbla.ads: Likewise.
8911 * i-forlap.ads: Likewise.
8912 * i-fortra.adb: Likewise.
8913 * i-pacdec.adb: Likewise.
8914 * i-pacdec.ads: Likewise.
8915 * i-vxwoio.adb: Likewise.
8916 * i-vxwoio.ads: Likewise.
8917 * indepsw-aix.adb: Likewise.
8918 * indepsw-gnu.adb: Likewise.
8919 * indepsw-mingw.adb: Likewise.
8920 * indepsw.adb: Likewise.
8921 * indepsw.ads: Likewise.
8923 * initialize.c: Likewise.
8924 * interfac.ads: Likewise.
8925 * krunch.adb: Likewise.
8926 * krunch.ads: Likewise.
8927 * lib-list.adb: Likewise.
8928 * lib-sort.adb: Likewise.
8929 * lib.adb: Likewise.
8930 * lib.ads: Likewise.
8932 * math_lib.adb: Likewise.
8933 * memtrack.adb: Likewise.
8934 * mingw32.h: Likewise.
8935 * mkdir.c: Likewise.
8936 * namet-sp.adb: Likewise.
8937 * namet-sp.ads: Likewise.
8938 * namet.adb: Likewise.
8939 * namet.ads: Likewise.
8940 * nlists.adb: Likewise.
8941 * nlists.ads: Likewise.
8942 * opt.adb: Likewise.
8943 * opt.ads: Likewise.
8944 * output.adb: Likewise.
8945 * output.ads: Likewise.
8946 * raise-gcc.c: Likewise.
8947 * raise.c: Likewise.
8948 * raise.h: Likewise.
8949 * repinfo.adb: Likewise.
8950 * repinfo.ads: Likewise.
8951 * repinfo.h: Likewise.
8952 * rident.ads: Likewise.
8953 * s-addima.adb: Likewise.
8954 * s-addima.ads: Likewise.
8955 * s-addope.adb: Likewise.
8956 * s-addope.ads: Likewise.
8957 * s-arit64.adb: Likewise.
8958 * s-arit64.ads: Likewise.
8959 * s-assert.adb: Likewise.
8960 * s-assert.ads: Likewise.
8961 * s-asthan-vms-alpha.adb: Likewise.
8962 * s-asthan.adb: Likewise.
8963 * s-asthan.ads: Likewise.
8964 * s-atacco.adb: Likewise.
8965 * s-atacco.ads: Likewise.
8966 * s-auxdec-empty.adb: Likewise.
8967 * s-auxdec-empty.ads: Likewise.
8968 * s-auxdec-vms_64.ads: Likewise.
8969 * s-auxdec.adb: Likewise.
8970 * s-auxdec.ads: Likewise.
8971 * s-bitops.adb: Likewise.
8972 * s-bitops.ads: Likewise.
8973 * s-boarop.ads: Likewise.
8974 * s-carsi8.adb: Likewise.
8975 * s-carsi8.ads: Likewise.
8976 * s-carun8.adb: Likewise.
8977 * s-carun8.ads: Likewise.
8978 * s-casi16.adb: Likewise.
8979 * s-casi16.ads: Likewise.
8980 * s-casi32.adb: Likewise.
8981 * s-casi32.ads: Likewise.
8982 * s-casi64.adb: Likewise.
8983 * s-casi64.ads: Likewise.
8984 * s-casuti.ads: Likewise.
8985 * s-caun16.adb: Likewise.
8986 * s-caun16.ads: Likewise.
8987 * s-caun32.adb: Likewise.
8988 * s-caun32.ads: Likewise.
8989 * s-caun64.adb: Likewise.
8990 * s-caun64.ads: Likewise.
8991 * s-chepoo.ads: Likewise.
8992 * s-crc32.adb: Likewise.
8993 * s-crc32.ads: Likewise.
8994 * s-crtl.ads: Likewise.
8995 * s-direio.adb: Likewise.
8996 * s-direio.ads: Likewise.
8997 * s-dsaser.ads: Likewise.
8998 * s-except.adb: Likewise.
8999 * s-except.ads: Likewise.
9000 * s-exctab.adb: Likewise.
9001 * s-exctab.ads: Likewise.
9002 * s-exnint.adb: Likewise.
9003 * s-exnint.ads: Likewise.
9004 * s-exnllf.adb: Likewise.
9005 * s-exnllf.ads: Likewise.
9006 * s-exnlli.adb: Likewise.
9007 * s-exnlli.ads: Likewise.
9008 * s-expint.adb: Likewise.
9009 * s-expint.ads: Likewise.
9010 * s-explli.adb: Likewise.
9011 * s-explli.ads: Likewise.
9012 * s-expllu.adb: Likewise.
9013 * s-expllu.ads: Likewise.
9014 * s-expmod.adb: Likewise.
9015 * s-expmod.ads: Likewise.
9016 * s-expuns.adb: Likewise.
9017 * s-expuns.ads: Likewise.
9018 * s-fatflt.ads: Likewise.
9019 * s-fatgen.adb: Likewise.
9020 * s-fatgen.ads: Likewise.
9021 * s-fatlfl.ads: Likewise.
9022 * s-fatllf.ads: Likewise.
9023 * s-fatsfl.ads: Likewise.
9024 * s-ficobl.ads: Likewise.
9025 * s-fileio.adb: Likewise.
9026 * s-fileio.ads: Likewise.
9027 * s-filofl.ads: Likewise.
9028 * s-finimp.adb: Likewise.
9029 * s-finimp.ads: Likewise.
9030 * s-finroo.adb: Likewise.
9031 * s-finroo.ads: Likewise.
9032 * s-fishfl.ads: Likewise.
9033 * s-fore.adb: Likewise.
9034 * s-fore.ads: Likewise.
9035 * s-fvadfl.ads: Likewise.
9036 * s-fvaffl.ads: Likewise.
9037 * s-fvagfl.ads: Likewise.
9038 * s-gearop.adb: Likewise.
9039 * s-gearop.ads: Likewise.
9040 * s-gecobl.adb: Likewise.
9041 * s-gecobl.ads: Likewise.
9042 * s-gecola.adb: Likewise.
9043 * s-gecola.ads: Likewise.
9044 * s-gerebl.adb: Likewise.
9045 * s-gerebl.ads: Likewise.
9046 * s-gerela.adb: Likewise.
9047 * s-gerela.ads: Likewise.
9048 * s-geveop.adb: Likewise.
9049 * s-geveop.ads: Likewise.
9050 * s-gloloc.adb: Likewise.
9051 * s-gloloc.ads: Likewise.
9052 * s-hibaen.ads: Likewise.
9053 * s-imenne.adb: Likewise.
9054 * s-imenne.ads: Likewise.
9055 * s-imgbiu.adb: Likewise.
9056 * s-imgbiu.ads: Likewise.
9057 * s-imgboo.adb: Likewise.
9058 * s-imgboo.ads: Likewise.
9059 * s-imgcha.adb: Likewise.
9060 * s-imgcha.ads: Likewise.
9061 * s-imgdec.adb: Likewise.
9062 * s-imgdec.ads: Likewise.
9063 * s-imgenu.adb: Likewise.
9064 * s-imgenu.ads: Likewise.
9065 * s-imgint.adb: Likewise.
9066 * s-imgint.ads: Likewise.
9067 * s-imgllb.adb: Likewise.
9068 * s-imgllb.ads: Likewise.
9069 * s-imglld.adb: Likewise.
9070 * s-imglld.ads: Likewise.
9071 * s-imglli.adb: Likewise.
9072 * s-imglli.ads: Likewise.
9073 * s-imgllu.adb: Likewise.
9074 * s-imgllu.ads: Likewise.
9075 * s-imgllw.adb: Likewise.
9076 * s-imgllw.ads: Likewise.
9077 * s-imgrea.adb: Likewise.
9078 * s-imgrea.ads: Likewise.
9079 * s-imguns.adb: Likewise.
9080 * s-imguns.ads: Likewise.
9081 * s-imgwch.adb: Likewise.
9082 * s-imgwch.ads: Likewise.
9083 * s-imgwiu.adb: Likewise.
9084 * s-imgwiu.ads: Likewise.
9085 * s-inmaop-dummy.adb: Likewise.
9086 * s-inmaop-vms.adb: Likewise.
9087 * s-inmaop.ads: Likewise.
9088 * s-interr-hwint.adb: Likewise.
9089 * s-interr-sigaction.adb: Likewise.
9090 * s-interr-vms.adb: Likewise.
9091 * s-interr.adb: Likewise.
9092 * s-interr.ads: Likewise.
9093 * s-intman-dummy.adb: Likewise.
9094 * s-intman-mingw.adb: Likewise.
9095 * s-intman-posix.adb: Likewise.
9096 * s-intman-solaris.adb: Likewise.
9097 * s-intman-vms.adb: Likewise.
9098 * s-intman-vms.ads: Likewise.
9099 * s-intman-vxworks.adb: Likewise.
9100 * s-intman-vxworks.ads: Likewise.
9101 * s-intman.ads: Likewise.
9102 * s-io.adb: Likewise.
9103 * s-io.ads: Likewise.
9104 * s-linux-alpha.ads: Likewise.
9105 * s-linux-hppa.ads: Likewise.
9106 * s-linux.ads: Likewise.
9107 * s-maccod.ads: Likewise.
9108 * s-mantis.adb: Likewise.
9109 * s-mantis.ads: Likewise.
9110 * s-mastop-irix.adb: Likewise.
9111 * s-mastop.adb: Likewise.
9112 * s-mastop.ads: Likewise.
9113 * s-memcop.ads: Likewise.
9114 * s-memory-mingw.adb: Likewise.
9115 * s-memory.adb: Likewise.
9116 * s-memory.ads: Likewise.
9117 * s-os_lib.ads: Likewise.
9118 * s-oscons-tmplt.c: Likewise.
9119 * s-osinte-aix.adb: Likewise.
9120 * s-osinte-darwin.adb: Likewise.
9121 * s-osinte-freebsd.adb: Likewise.
9122 * s-osinte-irix.adb: Likewise.
9123 * s-osinte-lynxos-3.adb: Likewise.
9124 * s-osinte-rtems.ads: Likewise.
9125 * s-osinte-tru64.adb: Likewise.
9126 * s-osinte-vxworks-kernel.adb: Likewise.
9127 * s-osinte-vxworks.adb: Likewise.
9128 * s-osprim-mingw.adb: Likewise.
9129 * s-osprim-posix.adb: Likewise.
9130 * s-osprim-solaris.adb: Likewise.
9131 * s-osprim-unix.adb: Likewise.
9132 * s-osprim-vms.adb: Likewise.
9133 * s-osprim-vms.ads: Likewise.
9134 * s-osprim-vxworks.adb: Likewise.
9135 * s-osprim.ads: Likewise.
9136 * s-pack03.adb: Likewise.
9137 * s-pack03.ads: Likewise.
9138 * s-pack05.adb: Likewise.
9139 * s-pack05.ads: Likewise.
9140 * s-pack06.adb: Likewise.
9141 * s-pack06.ads: Likewise.
9142 * s-pack07.adb: Likewise.
9143 * s-pack07.ads: Likewise.
9144 * s-pack09.adb: Likewise.
9145 * s-pack09.ads: Likewise.
9146 * s-pack10.adb: Likewise.
9147 * s-pack10.ads: Likewise.
9148 * s-pack11.adb: Likewise.
9149 * s-pack11.ads: Likewise.
9150 * s-pack12.adb: Likewise.
9151 * s-pack12.ads: Likewise.
9152 * s-pack13.adb: Likewise.
9153 * s-pack13.ads: Likewise.
9154 * s-pack14.adb: Likewise.
9155 * s-pack14.ads: Likewise.
9156 * s-pack15.adb: Likewise.
9157 * s-pack15.ads: Likewise.
9158 * s-pack17.adb: Likewise.
9159 * s-pack17.ads: Likewise.
9160 * s-pack18.adb: Likewise.
9161 * s-pack18.ads: Likewise.
9162 * s-pack19.adb: Likewise.
9163 * s-pack19.ads: Likewise.
9164 * s-pack20.adb: Likewise.
9165 * s-pack20.ads: Likewise.
9166 * s-pack21.adb: Likewise.
9167 * s-pack21.ads: Likewise.
9168 * s-pack22.adb: Likewise.
9169 * s-pack22.ads: Likewise.
9170 * s-pack23.adb: Likewise.
9171 * s-pack23.ads: Likewise.
9172 * s-pack24.adb: Likewise.
9173 * s-pack24.ads: Likewise.
9174 * s-pack25.adb: Likewise.
9175 * s-pack25.ads: Likewise.
9176 * s-pack26.adb: Likewise.
9177 * s-pack26.ads: Likewise.
9178 * s-pack27.adb: Likewise.
9179 * s-pack27.ads: Likewise.
9180 * s-pack28.adb: Likewise.
9181 * s-pack28.ads: Likewise.
9182 * s-pack29.adb: Likewise.
9183 * s-pack29.ads: Likewise.
9184 * s-pack30.adb: Likewise.
9185 * s-pack30.ads: Likewise.
9186 * s-pack31.adb: Likewise.
9187 * s-pack31.ads: Likewise.
9188 * s-pack33.adb: Likewise.
9189 * s-pack33.ads: Likewise.
9190 * s-pack34.adb: Likewise.
9191 * s-pack34.ads: Likewise.
9192 * s-pack35.adb: Likewise.
9193 * s-pack35.ads: Likewise.
9194 * s-pack36.adb: Likewise.
9195 * s-pack36.ads: Likewise.
9196 * s-pack37.adb: Likewise.
9197 * s-pack37.ads: Likewise.
9198 * s-pack38.adb: Likewise.
9199 * s-pack38.ads: Likewise.
9200 * s-pack39.adb: Likewise.
9201 * s-pack39.ads: Likewise.
9202 * s-pack40.adb: Likewise.
9203 * s-pack40.ads: Likewise.
9204 * s-pack41.adb: Likewise.
9205 * s-pack41.ads: Likewise.
9206 * s-pack42.adb: Likewise.
9207 * s-pack42.ads: Likewise.
9208 * s-pack43.adb: Likewise.
9209 * s-pack43.ads: Likewise.
9210 * s-pack44.adb: Likewise.
9211 * s-pack44.ads: Likewise.
9212 * s-pack45.adb: Likewise.
9213 * s-pack45.ads: Likewise.
9214 * s-pack46.adb: Likewise.
9215 * s-pack46.ads: Likewise.
9216 * s-pack47.adb: Likewise.
9217 * s-pack47.ads: Likewise.
9218 * s-pack48.adb: Likewise.
9219 * s-pack48.ads: Likewise.
9220 * s-pack49.adb: Likewise.
9221 * s-pack49.ads: Likewise.
9222 * s-pack50.adb: Likewise.
9223 * s-pack50.ads: Likewise.
9224 * s-pack51.adb: Likewise.
9225 * s-pack51.ads: Likewise.
9226 * s-pack52.adb: Likewise.
9227 * s-pack52.ads: Likewise.
9228 * s-pack53.adb: Likewise.
9229 * s-pack53.ads: Likewise.
9230 * s-pack54.adb: Likewise.
9231 * s-pack54.ads: Likewise.
9232 * s-pack55.adb: Likewise.
9233 * s-pack55.ads: Likewise.
9234 * s-pack56.adb: Likewise.
9235 * s-pack56.ads: Likewise.
9236 * s-pack57.adb: Likewise.
9237 * s-pack57.ads: Likewise.
9238 * s-pack58.adb: Likewise.
9239 * s-pack58.ads: Likewise.
9240 * s-pack59.adb: Likewise.
9241 * s-pack59.ads: Likewise.
9242 * s-pack60.adb: Likewise.
9243 * s-pack60.ads: Likewise.
9244 * s-pack61.adb: Likewise.
9245 * s-pack61.ads: Likewise.
9246 * s-pack62.adb: Likewise.
9247 * s-pack62.ads: Likewise.
9248 * s-pack63.adb: Likewise.
9249 * s-pack63.ads: Likewise.
9250 * s-parame-ae653.ads: Likewise.
9251 * s-parame-hpux.ads: Likewise.
9252 * s-parame-rtems.adb: Likewise.
9253 * s-parame-vms-alpha.ads: Likewise.
9254 * s-parame-vms-ia64.ads: Likewise.
9255 * s-parame-vms-restrict.ads: Likewise.
9256 * s-parame-vxworks.adb: Likewise.
9257 * s-parame-vxworks.ads: Likewise.
9258 * s-parame.adb: Likewise.
9259 * s-parame.ads: Likewise.
9260 * s-parint.adb: Likewise.
9261 * s-parint.ads: Likewise.
9262 * s-pooglo.adb: Likewise.
9263 * s-pooglo.ads: Likewise.
9264 * s-pooloc.adb: Likewise.
9265 * s-pooloc.ads: Likewise.
9266 * s-poosiz.adb: Likewise.
9267 * s-poosiz.ads: Likewise.
9268 * s-powtab.ads: Likewise.
9269 * s-proinf-irix-athread.adb: Likewise.
9270 * s-proinf-irix-athread.ads: Likewise.
9271 * s-proinf.adb: Likewise.
9272 * s-proinf.ads: Likewise.
9273 * s-purexc.ads: Likewise.
9274 * s-rannum.adb: Likewise.
9275 * s-rannum.ads: Likewise.
9276 * s-restri.adb: Likewise.
9277 * s-restri.ads: Likewise.
9278 * s-rident.ads: Likewise.
9279 * s-rpc.adb: Likewise.
9280 * s-rpc.ads: Likewise.
9281 * s-scaval.adb: Likewise.
9282 * s-scaval.ads: Likewise.
9283 * s-secsta.adb: Likewise.
9284 * s-secsta.ads: Likewise.
9285 * s-sequio.adb: Likewise.
9286 * s-sequio.ads: Likewise.
9287 * s-shasto.adb: Likewise.
9288 * s-shasto.ads: Likewise.
9289 * s-soflin.adb: Likewise.
9290 * s-soflin.ads: Likewise.
9291 * s-solita.adb: Likewise.
9292 * s-solita.ads: Likewise.
9293 * s-sopco3.adb: Likewise.
9294 * s-sopco3.ads: Likewise.
9295 * s-sopco4.adb: Likewise.
9296 * s-sopco4.ads: Likewise.
9297 * s-sopco5.adb: Likewise.
9298 * s-sopco5.ads: Likewise.
9299 * s-stache.adb: Likewise.
9300 * s-stache.ads: Likewise.
9301 * s-stalib.adb: Likewise.
9302 * s-stalib.ads: Likewise.
9303 * s-stausa.adb: Likewise.
9304 * s-stausa.ads: Likewise.
9305 * s-stchop-limit.ads: Likewise.
9306 * s-stchop-rtems.adb: Likewise.
9307 * s-stchop-vxworks.adb: Likewise.
9308 * s-stchop.adb: Likewise.
9309 * s-stchop.ads: Likewise.
9310 * s-stoele.adb: Likewise.
9311 * s-stoele.ads: Likewise.
9312 * s-stopoo.adb: Likewise.
9313 * s-stopoo.ads: Likewise.
9314 * s-stratt.adb: Likewise.
9315 * s-stratt.ads: Likewise.
9316 * s-strcom.adb: Likewise.
9317 * s-strcom.ads: Likewise.
9318 * s-string.adb: Likewise.
9319 * s-string.ads: Likewise.
9320 * s-strops.adb: Likewise.
9321 * s-strops.ads: Likewise.
9322 * s-strxdr.adb: Likewise.
9323 * s-ststop.adb: Likewise.
9324 * s-ststop.ads: Likewise.
9325 * s-taasde.adb: Likewise.
9326 * s-taasde.ads: Likewise.
9327 * s-tadeca.adb: Likewise.
9328 * s-tadeca.ads: Likewise.
9329 * s-tadert.adb: Likewise.
9330 * s-tadert.ads: Likewise.
9331 * s-taenca.adb: Likewise.
9332 * s-taenca.ads: Likewise.
9333 * s-taprob.ads: Likewise.
9334 * s-taprop-dummy.adb: Likewise.
9335 * s-taprop-hpux-dce.adb: Likewise.
9336 * s-taprop-irix.adb: Likewise.
9337 * s-taprop-linux.adb: Likewise.
9338 * s-taprop-lynxos.adb: Likewise.
9339 * s-taprop-mingw.adb: Likewise.
9340 * s-taprop-posix.adb: Likewise.
9341 * s-taprop-solaris.adb: Likewise.
9342 * s-taprop-tru64.adb: Likewise.
9343 * s-taprop-vms.adb: Likewise.
9344 * s-taprop-vxworks.adb: Likewise.
9345 * s-taprop.ads: Likewise.
9346 * s-tarest.adb: Likewise.
9347 * s-tarest.ads: Likewise.
9348 * s-tasdeb.adb: Likewise.
9349 * s-tasdeb.ads: Likewise.
9350 * s-tasinf-irix.ads: Likewise.
9351 * s-tasinf-linux.adb: Likewise.
9352 * s-tasinf-linux.ads: Likewise.
9353 * s-tasinf-mingw.adb: Likewise.
9354 * s-tasinf-mingw.ads: Likewise.
9355 * s-tasinf-solaris.adb: Likewise.
9356 * s-tasinf-solaris.ads: Likewise.
9357 * s-tasinf-tru64.ads: Likewise.
9358 * s-tasinf.adb: Likewise.
9359 * s-tasinf.ads: Likewise.
9360 * s-tasini.adb: Likewise.
9361 * s-tasini.ads: Likewise.
9362 * s-taskin.adb: Likewise.
9363 * s-taskin.ads: Likewise.
9364 * s-taspri-dummy.ads: Likewise.
9365 * s-taspri-hpux-dce.ads: Likewise.
9366 * s-taspri-mingw.ads: Likewise.
9367 * s-taspri-solaris.ads: Likewise.
9368 * s-taspri-tru64.ads: Likewise.
9369 * s-taspri-vms.ads: Likewise.
9370 * s-taspri-vxworks.ads: Likewise.
9371 * s-tasque.adb: Likewise.
9372 * s-tasque.ads: Likewise.
9373 * s-tasren.adb: Likewise.
9374 * s-tasren.ads: Likewise.
9375 * s-tasres.ads: Likewise.
9376 * s-tassta.adb: Likewise.
9377 * s-tassta.ads: Likewise.
9378 * s-tasuti.adb: Likewise.
9379 * s-tasuti.ads: Likewise.
9380 * s-tfsetr-default.adb: Likewise.
9381 * s-tfsetr-vxworks.adb: Likewise.
9382 * s-tpinop.adb: Likewise.
9383 * s-tpinop.ads: Likewise.
9384 * s-tpoben.adb: Likewise.
9385 * s-tpoben.ads: Likewise.
9386 * s-tpobop.adb: Likewise.
9387 * s-tpobop.ads: Likewise.
9388 * s-tpopde-vms.adb: Likewise.
9389 * s-tpopde-vms.ads: Likewise.
9390 * s-tpopsp-lynxos.adb: Likewise.
9391 * s-tpopsp-posix-foreign.adb: Likewise.
9392 * s-tpopsp-posix.adb: Likewise.
9393 * s-tpopsp-solaris.adb: Likewise.
9394 * s-tpopsp-vxworks.adb: Likewise.
9395 * s-tporft.adb: Likewise.
9396 * s-tposen.adb: Likewise.
9397 * s-tposen.ads: Likewise.
9398 * s-traceb.adb: Likewise.
9399 * s-traceb.ads: Likewise.
9400 * s-traces-default.adb: Likewise.
9401 * s-traces.adb: Likewise.
9402 * s-traces.ads: Likewise.
9403 * s-traent-vms.adb: Likewise.
9404 * s-traent-vms.ads: Likewise.
9405 * s-traent.adb: Likewise.
9406 * s-traent.ads: Likewise.
9407 * s-trafor-default.adb: Likewise.
9408 * s-trafor-default.ads: Likewise.
9409 * s-tratas-default.adb: Likewise.
9410 * s-tratas.adb: Likewise.
9411 * s-tratas.ads: Likewise.
9412 * s-unstyp.ads: Likewise.
9413 * s-utf_32.adb: Likewise.
9414 * s-utf_32.ads: Likewise.
9415 * s-vaflop-vms-alpha.adb: Likewise.
9416 * s-vaflop.adb: Likewise.
9417 * s-vaflop.ads: Likewise.
9418 * s-valboo.adb: Likewise.
9419 * s-valboo.ads: Likewise.
9420 * s-valcha.adb: Likewise.
9421 * s-valcha.ads: Likewise.
9422 * s-valdec.adb: Likewise.
9423 * s-valdec.ads: Likewise.
9424 * s-valenu.adb: Likewise.
9425 * s-valenu.ads: Likewise.
9426 * s-valint.adb: Likewise.
9427 * s-valint.ads: Likewise.
9428 * s-vallld.adb: Likewise.
9429 * s-vallld.ads: Likewise.
9430 * s-vallli.adb: Likewise.
9431 * s-vallli.ads: Likewise.
9432 * s-valllu.adb: Likewise.
9433 * s-valllu.ads: Likewise.
9434 * s-valrea.adb: Likewise.
9435 * s-valrea.ads: Likewise.
9436 * s-valuns.adb: Likewise.
9437 * s-valuns.ads: Likewise.
9438 * s-valuti.adb: Likewise.
9439 * s-valuti.ads: Likewise.
9440 * s-valwch.adb: Likewise.
9441 * s-valwch.ads: Likewise.
9442 * s-veboop.adb: Likewise.
9443 * s-veboop.ads: Likewise.
9444 * s-vector.ads: Likewise.
9445 * s-vercon.adb: Likewise.
9446 * s-vercon.ads: Likewise.
9447 * s-vmexta.adb: Likewise.
9448 * s-vmexta.ads: Likewise.
9449 * s-vxwext-kernel.ads: Likewise.
9450 * s-vxwext-rtp.adb: Likewise.
9451 * s-vxwext-rtp.ads: Likewise.
9452 * s-vxwext.ads: Likewise.
9453 * s-vxwork-arm.ads: Likewise.
9454 * s-vxwork-m68k.ads: Likewise.
9455 * s-vxwork-mips.ads: Likewise.
9456 * s-vxwork-ppc.ads: Likewise.
9457 * s-vxwork-sparcv9.ads: Likewise.
9458 * s-vxwork-x86.ads: Likewise.
9459 * s-wchcnv.adb: Likewise.
9460 * s-wchcnv.ads: Likewise.
9461 * s-wchcon.adb: Likewise.
9462 * s-wchcon.ads: Likewise.
9463 * s-wchjis.adb: Likewise.
9464 * s-wchjis.ads: Likewise.
9465 * s-wchstw.adb: Likewise.
9466 * s-wchstw.ads: Likewise.
9467 * s-wchwts.adb: Likewise.
9468 * s-wchwts.ads: Likewise.
9469 * s-widboo.adb: Likewise.
9470 * s-widboo.ads: Likewise.
9471 * s-widcha.adb: Likewise.
9472 * s-widcha.ads: Likewise.
9473 * s-widenu.adb: Likewise.
9474 * s-widenu.ads: Likewise.
9475 * s-widlli.adb: Likewise.
9476 * s-widlli.ads: Likewise.
9477 * s-widllu.adb: Likewise.
9478 * s-widllu.ads: Likewise.
9479 * s-widwch.adb: Likewise.
9480 * s-widwch.ads: Likewise.
9481 * s-win32.ads: Likewise.
9482 * s-winext.ads: Likewise.
9483 * s-wwdcha.adb: Likewise.
9484 * s-wwdcha.ads: Likewise.
9485 * s-wwdenu.adb: Likewise.
9486 * s-wwdenu.ads: Likewise.
9487 * s-wwdwch.adb: Likewise.
9488 * s-wwdwch.ads: Likewise.
9489 * scans.adb: Likewise.
9490 * scans.ads: Likewise.
9491 * seh_init.c: Likewise.
9492 * sfn_scan.adb: Likewise.
9493 * sinfo.adb: Likewise.
9494 * sinfo.ads: Likewise.
9495 * sinput.adb: Likewise.
9496 * sinput.ads: Likewise.
9497 * snames.adb: Likewise.
9498 * snames.ads: Likewise.
9499 * socket.c: Likewise.
9500 * stand.adb: Likewise.
9501 * stand.ads: Likewise.
9502 * stringt.adb: Likewise.
9503 * stringt.ads: Likewise.
9504 * sysdep.c: Likewise.
9505 * system-aix.ads: Likewise.
9506 * system-darwin-ppc.ads: Likewise.
9507 * system-darwin-x86.ads: Likewise.
9508 * system-darwin-x86_64.ads: Likewise.
9509 * system-freebsd-x86.ads: Likewise.
9510 * system-hpux-ia64.ads: Likewise.
9511 * system-hpux.ads: Likewise.
9512 * system-irix-n32.ads: Likewise.
9513 * system-irix-n64.ads: Likewise.
9514 * system-irix-o32.ads: Likewise.
9515 * system-linux-alpha.ads: Likewise.
9516 * system-linux-hppa.ads: Likewise.
9517 * system-linux-ia64.ads: Likewise.
9518 * system-linux-mips.ads: Likewise.
9519 * system-linux-mipsel.ads: Likewise.
9520 * system-linux-ppc.ads: Likewise.
9521 * system-linux-ppc64.ads: Likewise.
9522 * system-linux-s390.ads: Likewise.
9523 * system-linux-s390x.ads: Likewise.
9524 * system-linux-sh4.ads: Likewise.
9525 * system-linux-sparc.ads: Likewise.
9526 * system-linux-sparcv9.ads: Likewise.
9527 * system-linux-x86.ads: Likewise.
9528 * system-linux-x86_64.ads: Likewise.
9529 * system-lynxos-ppc.ads: Likewise.
9530 * system-lynxos-x86.ads: Likewise.
9531 * system-mingw-x86_64.ads: Likewise.
9532 * system-mingw.ads: Likewise.
9533 * system-rtems.ads: Likewise.
9534 * system-solaris-sparc.ads: Likewise.
9535 * system-solaris-sparcv9.ads: Likewise.
9536 * system-solaris-x86.ads: Likewise.
9537 * system-solaris-x86_64.ads: Likewise.
9538 * system-tru64.ads: Likewise.
9539 * system-vms-ia64.ads: Likewise.
9540 * system-vms-zcx.ads: Likewise.
9541 * system-vms.ads: Likewise.
9542 * system-vms_64.ads: Likewise.
9543 * system-vxworks-arm.ads: Likewise.
9544 * system-vxworks-m68k.ads: Likewise.
9545 * system-vxworks-mips.ads: Likewise.
9546 * system-vxworks-ppc.ads: Likewise.
9547 * system-vxworks-sparcv9.ads: Likewise.
9548 * system-vxworks-x86.ads: Likewise.
9549 * system.ads: Likewise.
9550 * table.adb: Likewise.
9551 * table.ads: Likewise.
9552 * targext.c: Likewise.
9553 * targparm.ads: Likewise.
9554 * tree_in.adb: Likewise.
9555 * tree_in.ads: Likewise.
9556 * tree_io.adb: Likewise.
9557 * tree_io.ads: Likewise.
9558 * types.adb: Likewise.
9559 * types.ads: Likewise.
9560 * uintp.adb: Likewise.
9561 * uintp.ads: Likewise.
9562 * uname.adb: Likewise.
9563 * uname.ads: Likewise.
9564 * urealp.adb: Likewise.
9565 * urealp.ads: Likewise.
9566 * vx_stack_info.c: Likewise.
9567 * widechar.adb: Likewise.
9568 * widechar.ads: Likewise.
9569 * exp_attr.adb: Change copyright header to refer to version
9570 3 of the GNU General Public License and to point readers at the
9571 COPYING3 file and the FSF's license web page.
9572 * sem.adb: Likewise.
9573 * sem_attr.ads: Likewise.
9574 * freeze.adb: Likewise.
9575 * freeze.ads: Likewise.
9576 * errout.ads: Likewise.
9577 * erroutc.adb: Likewise.
9578 * exp_ch11.ads: Likewise.
9580 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9582 * config-lang.in: Change copyright header to refer to version
9583 3 of the GNU General Public License and to point readers at the
9584 COPYING3 file and the FSF's license web page.
9585 * gcc-interface/trans.c: Likewise.
9586 * gnathtml.pl: Likewise.
9587 * gcc-interface/ada.h: Likewise. Remove runtime exception.
9588 * gcc-interface/gigi.h: Likewise.
9589 * gcc-interface/misc.c: Likewise.
9590 * gcc-interface/targtyps.c: Likewise.
9592 2009-04-09 Nicolas Setton <setton@adacore.com>
9594 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
9596 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
9599 2009-04-09 Bob Duff <duff@adacore.com>
9601 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
9602 internally-generated nodes related to select statements to avoid
9603 confusing the debugger.
9605 2009-04-09 Pascal Obry <obry@adacore.com>
9607 * make.adb: Ensure that all linker arguments are duplicated.
9609 2009-04-09 Robert Dewar <dewar@adacore.com>
9611 * sem_ch5.adb: Minor reformatting
9613 2009-04-09 Vincent Celier <celier@adacore.com>
9616 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
9617 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
9618 New qualifier /LXDEBUG=nnn for -gnatDnnn
9622 Update documentation for VMS qualifiers equivalent to -gnatGnn and
9625 2009-04-09 Nicolas Setton <setton@adacore.com>
9627 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
9628 to match layout of siginfo_t in sys/signal.h.
9630 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
9632 2009-04-09 Thomas Quinot <quinot@adacore.com>
9634 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
9636 2009-04-09 Nicolas Setton <setton@adacore.com>
9638 * s-oscons-tmplt.c: Allow long lines in the generated spec.
9639 Add generation of Darwin-specific constants needed when binding to the
9642 2009-04-09 Robert Dewar <dewar@adacore.com>
9645 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
9646 when no invalid values exist, Avoid duplicate read of atomic variable.
9648 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
9649 (Standard_Unsigned): Set Is_Known_Valid
9651 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
9652 subtype declaration if no constraint.
9653 (Set_Modular_Size): Set Is_Known_Valid if appropriate
9654 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
9656 2009-04-09 Robert Dewar <dewar@adacore.com>
9658 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
9659 switch.ads: for numeric switches, an optional equal sign is always
9662 2009-04-09 Vincent Celier <celier@adacore.com>
9664 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
9665 the case of file names is not significant.
9667 2009-04-09 Vincent Celier <celier@adacore.com>
9669 * errout.adb: Remove dependency on package Style
9671 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
9674 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
9677 * errutil.adb, par.adb: Import Stylesw
9679 2009-04-09 Arnaud Charlet <charlet@adacore.com>
9681 * opt.ads: Fix typos.
9683 2009-04-09 Robert Dewar <dewar@adacore.com>
9685 * einfo.adb: Minor reformatting
9687 2009-04-09 Robert Dewar <dewar@adacore.com>
9689 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
9692 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
9694 2009-04-09 Robert Dewar <dewar@adacore.com>
9696 * g-comver.adb: Minor reformatting.
9698 2009-04-09 Thomas Quinot <quinot@adacore.com>
9700 * lib-load.ads (Load_Unit): Update documentation.
9702 2009-04-09 Ed Schonberg <schonberg@adacore.com>
9704 * lib-load.adb (Load_Unit): When loading the parent of a child unit
9705 named in a with_clause, retain the with_clause to preserve a
9706 limited_with indication.
9708 2009-04-09 Robert Dewar <dewar@adacore.com>
9710 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
9711 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
9712 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
9713 possible to replace an OR of two separate tests.
9715 2009-04-09 Robert Dewar <dewar@adacore.com>
9717 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
9720 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
9721 warning status as well.
9723 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
9725 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
9728 * bindusg.adb, usage.adb: Update line for -gnatm switch
9730 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
9733 2009-04-09 Robert Dewar <dewar@adacore.com>
9735 * sem_ch10.adb: Minor reformatting.
9737 2009-04-09 Bob Duff <duff@adacore.com>
9739 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
9740 Set Sloc of generated nodes for calls to Undefer_Aborts and
9741 Save_Occurrence to No_Location, so the debugger ignores them and
9742 therefore does not jump back and forth when single stepping.
9744 2009-04-09 Robert Dewar <dewar@adacore.com>
9746 * switch-b.adb: Minor reformatting.
9748 2009-04-09 Robert Dewar <dewar@adacore.com>
9750 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
9751 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
9752 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
9753 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
9754 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
9755 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
9756 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
9757 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
9758 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
9759 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
9760 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
9762 2009-04-09 Robert Dewar <dewar@adacore.com>
9764 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
9766 * atree.h: Add Elist26
9768 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
9771 2009-04-09 Javier Miranda <miranda@adacore.com>
9773 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
9774 retrieve from the Dispatch_Table_Wrappers list the external name.
9775 Addition of documentation.
9776 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
9777 used to export secondary dispatch tables (in the previous version of
9778 the frontend only primary dispatch tables were exported). Addition of
9780 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
9781 dispatch table of a given tagged type.
9782 (Make_Tags): Modified to import secondary dispatch tables.
9784 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
9785 (Constant_Redeclaration): Code cleanup.
9787 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
9788 Dispatch_Table_Wrappers. Update documentation.
9790 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
9791 Renamed to Dispatch_Table_Wrappers.
9793 * sem_util.adb (Collect_Interface_Components): Improve handling of
9796 * atree.ads (Elist26, Set_Elist26): New subprograms
9798 * atree.adb (Elist26, Set_Elist26): New subprograms
9800 2009-04-09 Javier Miranda <miranda@adacore.com>
9802 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
9803 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
9806 2009-04-09 Robert Dewar <dewar@adacore.com>
9808 * s-direio.adb: Minor reformatting
9810 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
9812 2009-04-09 Robert Dewar <dewar@adacore.com>
9814 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
9816 2009-04-09 Pascal Obry <obry@adacore.com>
9818 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
9819 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
9820 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
9821 a-filico.ads: Add some missing overriding keywords.
9823 2009-04-09 Pascal Obry <obry@adacore.com>
9825 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
9826 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
9827 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
9830 2009-04-09 Ed Schonberg <schonberg@adacore.com>
9832 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
9833 missing overriding indicator if the new declaration is not seen as
9836 2009-04-09 Thomas Quinot <quinot@adacore.com>
9838 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
9839 overflows in computation of bounds.
9841 2009-04-09 Pascal Obry <obry@adacore.com>
9843 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
9846 2009-04-09 Robert Dewar <dewar@adacore.com>
9848 * sem_attr.adb (Check_Stream_Attribute): Check violation of
9849 restriction No_Streams
9851 * gnat_rm.texi: Clarify No_Streams restriction
9853 * g-socket.adb: Minor reformatting.
9855 2009-04-09 Thomas Quinot <quinot@adacore.com>
9857 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
9859 2009-04-09 Geert Bosch <bosch@adacore.com>
9861 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
9862 (Set_Result): Likewise.
9863 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
9864 conversion, as required by RM 4.6(31).
9866 2009-04-08 Robert Dewar <dewar@adacore.com>
9868 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
9871 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
9874 2009-04-08 Robert Dewar <dewar@adacore.com>
9876 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
9877 No_Local_Allocators restriction preventing local instantiation.
9879 2009-04-08 Thomas Quinot <quinot@adacore.com>
9881 * sem_eval.adb: Minor comment fix
9883 2009-04-08 Thomas Quinot <quinot@adacore.com>
9885 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
9886 New limited controlled type used to automate the initialization and
9887 finalization of the sockets implementation.
9888 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
9890 2009-04-08 Vincent Celier <celier@adacore.com>
9892 * prj-attr.adb: New read-only project-level attribute Project_Dir
9894 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
9895 read-only attribute of the same name.
9896 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
9897 (Recursive_Process): Ditto
9899 * snames.adb: Add new standard name Project_Dir
9901 * snames.ads: Add new standard name Project_Dir
9903 2009-04-08 Thomas Quinot <quinot@adacore.com>
9905 * checks.adb: Minor reformatting
9907 2009-04-08 Vincent Celier <celier@adacore.com>
9909 * vms_data.ads: Add documentation for new style keyword
9910 OVERRIDING_INDICATORS
9912 2009-04-08 Robert Dewar <dewar@adacore.com>
9914 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
9915 spec is in the current unit.
9917 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9919 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
9922 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
9924 2009-04-08 Vincent Celier <celier@adacore.com>
9926 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
9928 2009-04-08 Thomas Quinot <quinot@adacore.com>
9930 * checks.ads: Minor reformatting
9932 2009-04-08 Robert Dewar <dewar@adacore.com>
9934 * gnat_rm.texi: Update documentation of pragma Obsolescent
9936 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
9937 be omitted, and allow Entity parameter to be omitted.
9939 2009-04-08 Thomas Quinot <quinot@adacore.com>
9941 * exp_util.adb: Minor comment fix
9943 2009-04-08 Robert Dewar <dewar@adacore.com>
9945 * g-socket.ads: Fix bad syntax in pragma Obsolescent
9947 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
9948 argument with no identifier following one that has an identifier. Was
9949 missed in some cases.
9951 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
9953 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
9955 * snames.adb: Add Name_Policy
9957 * snames.ads: Add Name_Policy
9959 2009-04-08 Robert Dewar <dewar@adacore.com>
9961 * gnat_rm.texi: Minor reformatting
9963 * par-ch2.adb: Minor reformatting
9965 2009-04-08 Robert Dewar <dewar@adacore.com>
9967 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
9969 2009-04-08 Robert Dewar <dewar@adacore.com>
9971 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
9972 properly in the presence of Remote_Types or Remote_Call_Interface.
9974 * sem_util.adb: Add comment.
9976 2009-04-08 Robert Dewar <dewar@adacore.com>
9978 * ug_words: Add /ASSUME_VALID for -gnatB
9980 * vms_data.ads: Add /ASSUME_VALID for -gnatB
9982 * sem_cat.adb: Add clarifying commment
9984 * a-direio.ads (Bytes): Make sure value is non-zero
9986 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9988 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
9989 that does not come from source, check for a rewritten function call in
9990 prefixed notation before other forms of rewriting.
9992 2009-04-08 Robert Dewar <dewar@adacore.com>
9994 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
9995 these are now obsolescent units used only for bootrapping with an
9998 2009-04-08 Robert Dewar <dewar@adacore.com>
10000 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
10002 * sem_ch3.adb: Minor comment updates
10004 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10006 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
10007 that come from source.
10009 2009-04-08 Tristan Gingold <gingold@adacore.com>
10011 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10012 * gcc-interface/decl.c (prepend_attributes): New case
10013 Pragma_Thread_Local_Storage.
10014 * gcc-interface/utils.c (process_attributes): New case
10015 ATTR_THREAD_LOCAL_STORAGE.
10017 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10019 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10020 by the back-end if it contains a call to a subprogram without a
10021 previous spec that is declared in the same unit.
10023 * errout.ads: Update comments on uses of dirs
10025 2009-04-08 Robert Dewar <dewar@adacore.com>
10027 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10029 2009-04-08 Tristan Gingold <gingold@adacore.com>
10031 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10033 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10035 2009-04-08 Vincent Celier <celier@adacore.com>
10038 (Add_Source): Add the mapping of the unit name to source file name in
10039 the Unit_Sources_HT hash table, if the unit name is not null.
10041 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10043 * prj.ads (Unit_Sources_Htable): New hash table instantiation
10044 (Project_Tree_Data): New component Unit_Sources_HT
10046 2009-04-08 Thomas Quinot <quinot@adacore.com>
10048 * sem_ch8.adb: Minor reformatting.
10049 Minor code reorganization.
10051 2009-04-08 Robert Dewar <dewar@adacore.com>
10053 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10054 snames.ads, freeze.adb, par-prag.adb: Add implementation of
10055 pragma Thread_Local_Storage, setting new flag
10056 Has_Pragma_Thread_Local_Storage in corresponding entities.
10058 2009-04-08 Emmanuel Briot <briot@adacore.com>
10060 * prj.ads: Update comment on switches file
10062 * prj-nmsc.adb: Code clean up. Use renaming clauses.
10064 2009-04-08 Robert Dewar <dewar@adacore.com>
10066 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10068 2009-04-08 Thomas Quinot <quinot@adacore.com>
10070 * ali-util.adb: Minor comment fix
10072 2009-04-08 Ed Schonberg <schonberg@adacore.com>
10074 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10075 appears in a context clause, and the enclosing package is mentioned in
10076 a limited_with_clause.
10077 (Use_One_Type): Reject clause if type is still incomplete.
10079 2009-04-08 Emmanuel Briot <briot@adacore.com>
10081 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10082 avoid copies of Source_Data variables when possible, since these
10083 involve calls to memcpy() which are done too many times.
10085 2009-04-08 Robert Dewar <dewar@adacore.com>
10087 * exp_ch4.adb (Expand_Concatenate): Clean up code
10089 2009-04-07 Thomas Quinot <quinot@adacore.com>
10091 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10092 type for the case of concatenating a constrained array indexed by an
10095 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10097 * sem_ch6.adb (Check_Conformance): when checking conformance of an
10098 operation that overrides an abstract operation inherited from an
10099 interface, return False if only one of the controlling formals is an
10102 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10104 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
10105 mandated by AI05-105.
10107 2009-04-07 Vincent Celier <celier@adacore.com>
10109 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10111 2009-04-07 Thomas Quinot <quinot@adacore.com>
10113 * usage.adb: Minor fix in usage message.
10115 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10116 match declaration; the correct subtype is Node_Id, not Entity_Id,
10117 because the expected node kind is an identifier, not a defining
10120 * switch-c.adb: Minor reformatting.
10122 * uintp.adb: Minor reformatting.
10124 2009-04-07 Robert Dewar <dewar@adacore.com>
10126 * exp_ch13.adb: Minor reformatting
10128 2009-04-07 Robert Dewar <dewar@adacore.com>
10130 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10131 against missing parent.
10133 2009-04-07 Thomas Quinot <quinot@adacore.com>
10135 * xoscons.adb: Minor reformatting
10137 2009-04-07 Robert Dewar <dewar@adacore.com>
10139 * rtsfind.ads: Remove obsolete string concatenation entries
10141 2009-04-07 Robert Dewar <dewar@adacore.com>
10143 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
10145 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10147 * sem_ch10.adb (Check_Body_Required): Handle properly imported
10150 2009-04-07 Gary Dismukes <dismukes@adacore.com>
10152 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10153 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
10154 is of a scalar or string type then suppress the setting of the
10155 expression to Empty.
10157 * freeze.adb (Warn_Overlay): Also emit the warnings about default
10158 initialization for the cases of scalar and string objects when
10159 Init_Or_Norm_Scalars is True.
10161 2009-04-07 Bob Duff <duff@adacore.com>
10163 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
10165 2009-04-07 Bob Duff <duff@adacore.com>
10167 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
10168 Form parameter of Text_Translation=No allows binary mode for Text_IO
10171 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
10173 2009-04-07 Javier Miranda <miranda@adacore.com>
10175 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
10176 processing the bounds for bit packed arrays or VM target machines.
10178 2009-04-07 Thomas Quinot <quinot@adacore.com>
10180 * g-sothco.ads (Int_Access): Remove extraneous access type (use
10181 anonymous access instead).
10182 (Get_Socket_From_Set): Fix incorrectly reverted formals
10183 Last and Socket to match the underlying C routine.
10185 * g-socket.adb, g-socket.ads
10186 (Get): Use named parameter associations instead of positional ones in
10187 call go Get_Socket_From_Set, since this routine has two formals of the
10189 (Image): New procedure.
10191 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10192 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
10193 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
10194 for type of Arg formal.
10196 * sem_warn.adb: Minor reformatting
10198 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10200 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
10201 over record components.
10203 2009-04-07 Nicolas Roche <roche@adacore.com>
10206 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
10207 has disappeared between VxWorks 6.4 and VxWorks 6.5
10208 In RTP mode use time.h instead of times.h
10210 2009-04-07 Robert Dewar <dewar@adacore.com>
10212 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
10214 2009-04-07 Kevin Pouget <pouget@adacore.com>
10216 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
10217 expanded code for constrained types.
10219 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10221 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
10222 AI05-105: in an object renaming declaration, anonymousness is a name
10225 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
10227 2009-04-07 Arnaud Charlet <charlet@adacore.com>
10229 * g-comlin.adb (Expansion): Fix old regression: also return directory
10230 names when matching.
10232 2009-04-07 Robert Dewar <dewar@adacore.com>
10235 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
10236 (Expand_Concatenate): New name for Expand_Concatenate_String which has
10237 been rewritten to handle all types.
10238 (Expand_Concatenate_Other): Remove
10240 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10242 * lib-xref.adb (Generate_Reference): A default subprogram in an
10243 instance appears within the tree for the instance, but generates an
10244 implicit reference in the ALI.
10246 2009-04-07 Javier Miranda <miranda@adacore.com>
10248 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
10249 derived type that has discriminants, propagate the list of interfaces
10250 to the corresponding new base type. In addition, propagate also
10251 attribute Limited_Present (found working in this patch).
10253 2009-04-07 Robert Dewar <dewar@adacore.com>
10255 * exp_ch4.adb: Rewrite concatenation expansion.
10257 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10259 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
10260 relevant to packages.
10262 2009-04-07 Robert Dewar <dewar@adacore.com>
10264 * sem_attr.adb: Minor reformatting
10266 * sem_ch6.adb: Minor reformatting
10268 2009-04-07 Tristan Gingold <gingold@adacore.com>
10270 * socket.c: Add more protections against S_resolvLib_ macros.
10272 2009-04-07 Thomas Quinot <quinot@adacore.com>
10274 * sem_attr.adb: Minor reformatting
10276 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10278 * sem_ch6.adb (New_Overloaded_Entity): New predicate
10279 Is_Overriding_Alias to handle properly types that inherit two homonym
10280 operations that have distinct dispatch table entries.
10282 2009-04-07 Emmanuel Briot <briot@adacore.com>
10284 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
10285 looking for the end of a parenthesis group
10287 2009-04-07 Tristan Gingold <gingold@adacore.com>
10289 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
10291 * socket.c Don't use resolvLib_ macros if not defined.
10293 2009-04-07 Robert Dewar <dewar@adacore.com>
10295 * g-socket.adb: Minor reformatting.
10297 * g-socthi-mingw.adb: Minor reformatting
10299 * g-sothco.ads: Minor reformatting
10302 (Expand_Concatenate_String): Complete rewrite to generate efficient code
10303 inline instead of relying on external library routines.
10305 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
10306 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
10309 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10312 (Eval_Attribute): for attributes of array objects that are not strings,
10313 attributes are not static if nominal subtype of object is unconstrained.
10315 2009-04-07 Ed Schonberg <schonberg@adacore.com>
10317 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
10318 operations for a type T in an instance do not override each other,
10319 when T is derived from a formal private type, the corresponding
10320 operations inherited by a type derived from T outside
10321 of the instance do not override each other either.
10323 2009-04-07 Robert Dewar <dewar@adacore.com>
10325 (Osint.Fail): Change calling sequence to have one string arg
10326 (Make.Make_Failed): Same change
10327 All callers are adjusted to use concatenation
10329 2009-04-07 Robert Dewar <dewar@adacore.com>
10331 * exp_ch4.adb: Fix documentation typo
10333 2009-04-07 Robert Dewar <dewar@adacore.com>
10335 * tbuild.ads: Minor reformatting
10337 2009-04-07 Javier Miranda <miranda@adacore.com>
10339 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
10340 when compiling under ZFP runtime.
10342 2009-04-07 Robert Dewar <dewar@adacore.com>
10344 * g-comlin.adb: Minor reformatting
10346 2009-04-07 Thomas Quinot <quinot@adacore.com>
10348 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10349 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
10350 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
10351 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
10353 2009-04-07 Robert Dewar <dewar@adacore.com>
10355 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
10357 * opt.ads (Sprint_Line_Limit): New parameter
10359 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
10361 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
10363 * usage.adb: Output information for -gnatGnn -gnatDnn
10365 2009-04-07 Robert Dewar <dewar@adacore.com>
10367 * make.adb: Minor reformatting
10369 2009-04-07 Robert Dewar <dewar@adacore.com>
10371 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
10373 2009-04-07 Robert Dewar <dewar@adacore.com>
10375 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
10377 2009-04-07 Robert Dewar <dewar@adacore.com>
10380 Remove Assume_Valid parameter from In_Subrange_Of calls
10383 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10384 (Is_In_Range): Remove incorrect use of Assume_Valid
10385 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
10388 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10389 (Is_In_Range): Documentation cleanup
10390 (Is_Out_Of_Range): Documentation cleanup
10393 Add documentation for Assume_No_Invalid_Values pragma
10395 * sem_ch12.adb: Minor reformatting
10397 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
10399 * sem_prag.adb: Improve error message.
10401 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
10402 LF/CR no longer recognized as line terminator
10404 * switch.ads: Minor documentation improvement
10406 * vms_data.ads: Minor reformatting
10408 2009-04-07 Robert Dewar <dewar@adacore.com>
10410 * checks.adb (Determine_Range): Add Assume_Valid parameter
10412 * checks.ads (Determine_Range): Add Assume_Valid parameter
10414 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
10415 Is_Null_Loop to suppress warnings in a loop body.
10418 (Rewrite_Comparison): Major rewrite to accomodate invalid values
10421 (Expand_N_Loop_Statement): Delete loop known not to execute
10424 (Assume_No_Invalid_Values): Now set to False, and as documented, this
10425 fully enables the proper handling of invalid values.
10428 New calling sequence for Is_In_Range
10431 (Analyze_Iteration_Scheme): Accomodate possible invalid values
10432 in determining if a loop range is null.
10435 (Is_In_Range): Add Assume_Valid parameter
10436 (Is_Out_Of_Range): Add Assume_Valid_Parameter
10437 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
10438 also to do more accurate and complete range analysis, catching more
10442 (Is_In_Range): Add Assume_Valid parameter
10443 (Is_Out_Of_Range): Add Assume_Valid_Parameter
10446 New calling sequence for Is_In_Range
10449 (Suppress_Loop_Warnings): New flag
10452 (Is_Null_Loop): Update documentation
10453 (Suppress_Loop_Warnings): New flag
10455 * gnat_ugn.texi: Document -gnatB switch
10457 2009-04-07 Arnaud Charlet <charlet@adacore.com>
10459 * gnatvsn.ads: Bump version number.
10461 2009-04-07 Thomas Quinot <quinot@adacore.com>
10463 * exp_ch3.adb: Minor rewording (comments)
10465 2009-04-07 Robert Dewar <dewar@adacore.com>
10467 * exp_disp.adb: Minor reformatting
10469 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10471 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
10473 * gcc-interface/trans.c (lvalue_required_p): Likewise.
10475 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10477 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
10478 Do not convert the result. Remove obsolete comment.
10480 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10482 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
10484 (Subprogram_Body_to_gnu): Fix pasto.
10486 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10488 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
10489 (void_type_decl_node): Remove.
10490 (init_gigi_decls): Likewise.
10491 (gnat_install_builtins): Declare.
10492 (record_builtin_type): Likewise.
10493 (create_type_stub_decl): Likewise.
10494 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
10495 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
10497 <E_Array_Subtype>: Use the index types, not only their name, in the
10498 record giving the names of the bounds, if any.
10499 For a packed array type, make it artificial only if the base type
10500 was artificial as well. Remove redundant statement.
10501 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
10503 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
10504 (rest_of_type_decl_compilation_no_defer): Likewise.
10505 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
10506 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
10507 and use create_type_stub_decl to build it.
10508 (gnat_pushdecl): Rewrite condition.
10509 (gnat_install_builtins): Remove bogus declaration.
10510 (record_builtin_type): New function.
10511 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
10513 (create_type_stub_decl): New function.
10514 (create_type_decl): Assert that the type is not dummy. If the type
10515 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
10516 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
10517 (build_vms_descriptor): Likewise.
10518 (init_gigi_decls): Delete and move bulk of code to...
10519 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
10520 (emit_range_check): Add gnat_node parameter.
10521 (emit_index_check): Likewise.
10522 (emit_check): Likewise.
10523 (build_unary_op_trapv): Likewise.
10524 (build_binary_op_trapv): Likewise.
10525 (convert_with_check): Likewise.
10526 (Attribute_to_gnu): Adjust calls for above changes.
10527 (call_to_gnu): Likewise.
10528 (gnat_to_gnu): Likewise.
10529 (assoc_to_constructor): Likewise.
10530 (pos_to_constructor): Likewise.
10531 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
10532 (process_type): Do not create TYPE_DECL for dummy types.
10534 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10536 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
10537 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
10538 * gcc-interface/utils.c: Fix comments.
10540 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10542 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
10544 (gnat_to_gnu_type): Move around.
10545 (get_unpadded_type): Likewise.
10546 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
10549 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
10551 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
10552 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
10553 (call_to_gnu): Invoke it instead of manually checking.
10555 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
10557 * gcc-interface/utils.c (finish_record_type): Force structural equality
10558 checks if the record type is discriminated.
10560 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
10562 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
10563 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
10564 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
10565 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
10566 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
10567 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
10568 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
10570 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
10572 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
10573 of TREE_CONSTANT_OVERFLOW.
10575 2009-03-30 Joseph Myers <joseph@codesourcery.com>
10577 PR rtl-optimization/323
10578 * gcc-interface/misc.c (gnat_post_options): Set
10579 flag_excess_precision_cmdline. Give an error for
10580 -fexcess-precision=standard for processors where the option is
10583 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
10586 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
10589 2009-03-11 Olivier Hainque <hainque@adacore.com>
10591 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10592 checks processing, remove unintended TREE_TYPE walk on index type.
10594 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
10597 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10598 call make_packable_type on fat pointer types.
10599 <E_Array_Subtype>: Likewise.
10600 <E_Record_Subtype>: Call make_packable_type on all record types
10601 except for fat pointer types.
10602 (make_packable_type): Likewise.
10603 (gnat_to_gnu_field): Likewise.
10605 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
10607 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
10608 EH_MECHANISM change made on 2007-12-06.
10610 2009-02-26 Andreas Schwab <schwab@suse.de>
10613 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
10614 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
10615 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
10617 (target_cpu_default): Substitute.
10619 2009-02-25 Laurent GUERBY <laurent@guerby.net>
10622 * a-teioed.adb (Expand): Fix Result overflow.
10624 2009-02-25 Laurent GUERBY <laurent@guerby.net>
10626 * gcc-interface/Makefile.in: Fix multilib handling for
10629 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10631 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
10633 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
10635 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
10637 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
10639 * gcc-interface/deftarg.c: Remove.
10641 2009-02-10 Olivier Hainque <hainque@adacore.com>
10642 Eric Botcazou <ebotcazou@adacore.com>
10644 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
10645 (copy_alias_set): Rename into...
10646 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
10647 underlying array of unconstrained arrays for the new type as well.
10648 If the old and new alias sets don't conflict, make one a subset of
10649 the other as per the OP parameter.
10650 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
10651 <E_Record_Type>: Do not copy the alias set for derived types.
10652 For all types, make the alias set of derived types a superset of
10653 that of their parent type.
10654 (make_aligning_type): Adjust calls to copy_alias_set.
10655 (make_packable_type): Likewise.
10656 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
10657 Check for alias set conflict instead of strict equality to issue the
10660 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
10662 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10663 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
10664 (copy_alias_set): Assert that arrays have the same aliasing settings.
10665 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
10667 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
10669 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10670 Set TYPE_NONALIASED_COMPONENT on the array type.
10672 2009-01-31 Laurent GUERBY <laurent@guerby.net>
10674 * gcc-interface/Makefile.in: Fix mipsel linux handling.
10676 2009-01-16 Jakub Jelinek <jakub@redhat.com>
10678 * gcc-interface/Makefile.in: Fix multilib handling for
10681 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
10683 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
10684 only useless conversions around renamed objects.
10686 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
10688 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
10689 the _Tag field before any discriminants in the field list.
10690 (components_to_record): Remove obsolete comment.
10694 Copyright (C) 2009 Free Software Foundation, Inc.
10696 Copying and distribution of this file, with or without modification,
10697 are permitted in any medium without royalty provided the copyright
10698 notice and this notice are preserved.