1 2010-06-14 Vincent Celier <celier@adacore.com>
3 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
4 the ALI files on the command line.
6 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
7 the same value as the parameter of the same name.
8 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
10 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
11 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
12 emit version symbols only for the units of the library.
13 (Gen_Versions_C): Ditto.
15 2010-06-14 Gary Dismukes <dismukes@adacore.com>
17 * sem_ch4.adb: Fix typo.
19 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
21 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
22 vector IO doesn't work at default value properly.
24 2010-06-14 Doug Rupp <rupp@adacore.com>
26 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
28 2010-06-14 Vincent Celier <celier@adacore.com>
30 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
31 sources of the project if a switch -files= is used.
33 2010-06-14 Thomas Quinot <quinot@adacore.com>
35 * exp_attr.adb: Minor reformatting
36 2010-06-14 Gary Dismukes <dismukes@adacore.com>
38 * gnat_ugn.texi: Minor typo fixes and wording changes
40 2010-06-14 Ed Schonberg <schonberg@adacore.com>
42 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
43 prefixed form, do not re-analyze first actual, which may need an
45 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
46 prefixed notation, the analysis will rewrite the node, and possible
47 errors appear in the rewritten name of the node.
48 * sem_res.adb: If a call is ambiguous because its first parameter is
49 an overloaded call, report list of candidates, to clarify ambiguity of
52 2010-06-14 Doug Rupp <rupp@adacore.com>
54 * s-auxdec-vms-alpha.adb: New package body implementing legacy
55 VAX instructions with Asm insertions.
56 * s-auxdec-vms_64.ads: Inline VAX queue functions
57 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
58 that show up only on VMS.
59 * gcc-interface/Makefile.in: Provide translation for
60 s-auxdec-vms-alpha.adb.
62 2010-06-14 Olivier Hainque <hainque@adacore.com>
64 * initialize.c (VxWorks section): Update comments.
66 2010-06-14 Robert Dewar <dewar@adacore.com>
68 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting
70 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
72 * init.c: Code clean up.
74 2010-06-14 Ed Schonberg <schonberg@adacore.com>
76 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
77 not insert address clause in table for later validation if type of
78 entity is generic, to prevent possible spurious errors.
80 * sem_ch8.adb: Code clean up.
82 2010-06-14 Ben Brosgol <brosgol@adacore.com>
84 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
85 texi2pdf and texi2html.
86 Document how to change scheduling properties on HP-UX.
88 2010-06-14 Thomas Quinot <quinot@adacore.com>
90 * g-socket.ads: Remove misleading comments.
92 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
94 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
95 CLI_Target as this prevents proper detection of exported names
96 duplicates when the exported language is different to CIL.
97 (Process_Interface_Name): Add check for CIL convention exports,
98 replacing the old one from Check_Duplicated_Export_Name.
100 2010-06-14 Matthew Heaney <heaney@adacore.com>
102 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
103 and new last satisfy constraints.
104 (Delete_Last): prevent overflow for subtraction of index values
105 (To_Vector): prevent overflow for addition of index values
107 2010-06-14 Ed Schonberg <schonberg@adacore.com>
109 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
110 rewritten call, preserve the resulting type to prevent spurious errors,
111 when the call is implicitly dereferenced in the context of an in-out
114 * checks.adb (Apply_Discriminant_Check): If the target of the
115 assignment is a renaming of a heap object, create constrained type for
118 2010-06-14 Pascal Obry <obry@adacore.com>
120 * prj-proc.adb: Fix copy of object directory for extending projects.
122 2010-06-14 Jose Ruiz <ruiz@adacore.com>
124 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
125 (__gnat_install_handler, PowerPC linux): Activate the alternative
128 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
130 * gnat_rm.texi: Move to GFDL version 1.3.
131 * gnat-style.texi: Ditto.
132 * gnat_ugn.texi: Ditto.
137 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
140 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
142 * gcc-interface/utils.c (update_pointer_to): Initialize last.
144 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
146 * gcc-interface/ada-tree.h: Fix formatting nits.
148 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
150 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
152 (init_dummy_type): Likewise.
153 (gnat_pushlevel): Likewise.
155 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
156 (Subprogram_Body_to_gnu): Likewise.
157 (Compilation_Unit_to_gnu): Likewise.
158 (start_stmt_group): Likewise.
159 (extract_encoding): Likewise.
160 (decode_name): Likewise.
162 * gcc-interface/misc.c (gnat_printable_name): Likewise.
164 * gcc-interface/decl.c (annotate_value): Likewise.
166 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
168 (struct lang_decl): Likewise.
169 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
170 (SET_DECL_LANG_SPECIFIC): Likewise.
172 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
174 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
175 * gcc-interface/lang-specs.h: Likewise.
177 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
180 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
182 2010-06-01 Arnaud Charlet <charlet@adacore.com>
184 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
186 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
189 TYPE_DECL of the equivalent type instead of building a new one.
191 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
193 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
194 Fix nits in comments.
195 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
196 * gcc-interface/trans.c (gigi): Likewise.
197 (Attribute_to_gnu): Likewise.
198 (Case_Statement_to_gnu): Likewise.
199 (gnat_to_gnu): Adjust warning message.
200 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
201 (build_vms_descriptor32): Likewise.
203 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
205 * gcc-interface/decl.c: Pretend to be a backend file by undefining
206 IN_GCC_FRONTEND (still need rtl.h here).
208 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
210 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
211 (gigi): Adjust call to set_stack_check_libfunc.
213 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
215 * gcc-interface/utils.c: Do not include rtl.h.
217 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
219 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
220 and gimple.h. Explain why rtl.h has to be included.
221 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
222 * gcc-interface/targtyps.c: Do not include tm_p.h
223 * gcc-interface/utils2.c: Do not include flags.h.
224 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
225 and explain why it has to be included.
226 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
228 Include function.h and explain why. Explain why except.h is included.
229 (enumerate_modes): Remove unused function.
230 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
231 * gcc-interface/Make-lang.in: Update dependencies.
233 2010-05-25 Joseph Myers <joseph@codesourcery.com>
235 * gcc-interface/misc.c (internal_error_function): Add context
236 parameter. Use it to access show_column flag and instead of using
237 global_dc. Call warn_if_plugins.
238 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
240 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
242 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
243 * gcc-interface/trans.c (unshare_save_expr): Delete.
244 (gigi): Do not unshare trees under SAVE_EXPRs here.
246 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
248 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
250 * gcc-interface/utils.c (build_function_stub): Likewise.
252 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
254 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
255 for Wuninitialized without -O.
257 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
259 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
260 ADT_exception_data_name_id.
261 (exception_data_name_id): New define.
262 * gcc-interface/trans.c (gigi): Initialize it.
263 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
264 exception type for standard exception definitions. Do not make them
266 <E_Record_Type>: Equate fields of types associated with an exception
267 definition to those of the standard exception type.
269 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
271 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
273 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
275 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
276 code, improve comments and fix formatting nits.
278 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
280 * gcc-interface/utils.c (update_pointer_to): Return early if the old
281 pointer already points to the new type. Chain the old pointer and its
282 variants at the end of new pointer's chain after updating them.
284 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
286 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
287 built for interfaces.
288 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
289 imported_p instead of Is_Imported when considering constants.
290 Do not promote alignment of exported objects.
291 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
293 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
295 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
296 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
297 constants really constant.
298 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
300 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
302 * gcc-interface/decl.c (make_aligning_type): Declare the type.
304 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
306 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
307 expressions of variant part of record types declared at library level.
309 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
311 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
312 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
313 (rest_of_record_type_compilation): Adjust call to create_field_decl.
314 (make_descriptor_field): Likewise and pass correctly typed constants.
315 (build_unc_object_type): Likewise.
316 (unchecked_convert): Likewise.
317 * gcc-interface/decl.c (elaborate_expression_2): New static function.
318 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
319 Adjust call to create_field_decl.
320 (make_aligning_type): Likewise.
321 (make_packable_type): Likewise.
322 (maybe_pad_type): Likewise.
323 (gnat_to_gnu_field): Likewise.
324 (components_to_record): Likewise.
325 (create_field_decl_from): Likewise.
326 (create_variant_part_from): Remove superfluous test.
327 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
329 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
331 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
332 (build_unc_object_type_from_ptr): Likewise.
333 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
334 and pass it to create_type_decl. Declare the type. Simplify.
335 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
336 it to build_unc_object_type.
337 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
338 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
339 (gnat_to_gnu): Likewise.
340 * gcc-interface/utils2.c (build_allocator): Likewise.
342 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
345 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
347 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
351 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
354 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
356 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
358 * gnathtml.pl: Use 755 as mask for new directories.
360 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
362 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
363 constant constructors before taking their address.
365 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
367 * exp_dbug.ads: Fix outdated description. Mention link between XVS
369 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
370 XVZ variable as unit size of XVS type.
371 (maybe_pad_type): Likewise.
373 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
375 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
376 use memmove if the array type is bit-packed.
378 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
380 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
381 build_common_tree_nodes.
383 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
385 * gsocket.h: Make sure that winsock2.h is included before windows.h.
387 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
389 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
392 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
394 * uintp.h (UI_Lt): Declare.
395 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
396 computation in sizetype.
397 <E_Array_Subtype>: Use unified handling for all index types. Do not
398 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
400 (annotate_value): Change test for negative values.
401 (validate_size): Apply test for negative values on GNAT nodes.
402 (set_rm_size): Likewise.
403 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
404 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
406 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
407 (builtin_type_for_size): Adjust definition of signed_size_type_node.
408 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
409 lengths against zero.
411 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
413 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
414 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
415 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
416 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
417 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
418 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
420 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
421 flag_signed_char. Tag sizetype with "size_type" moniker.
422 * gcc-interface/trans.c (gigi): Add standard_character parameter.
423 Remove useless built-in types. Equate unsigned_char_type_node to
424 Standard.Character. Use it instead of char_type_node throughout.
425 (Attribute_to_gnu): Likewise.
426 (gnat_to_gnu): Likewise.
427 * gcc-interface/utils2.c (build_call_raise): Likewise.
429 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
431 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
432 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
433 (sbitsize_one_node): New macro.
434 (sbitsize_unit_node): Likewise.
435 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
436 latent bug in the computation of subrange_p. Fold wider_p predicate.
437 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
438 the final comparison.
439 (make_aligning_type): Build real negation and use sizetype throughout
440 the offset computation.
441 (maybe_pad_type): Do not issue the warning when the new size expression
443 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
444 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
446 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
448 (gnat_to_gnu) <N_Free_Statement>: Likewise.
449 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
450 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
451 constants in sizetype. Remove dead code and tweak comments. Generate
452 equality instead of inequality comparisons for zero length tests.
454 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
456 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
457 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
458 <object>: Do not create the fake PARM_DECL if no debug info is needed.
459 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
460 purposes if no debug info is needed.
461 Fix formatting. Reorder and add comments.
462 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
463 variable and remove obsolete comment.
464 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
465 (convert_vms_descriptor32): Likewise.
466 (convert): Remove dead code.
467 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
468 the reference to the P_ARRAY pointer.
469 <POINTER_TYPE>: Likewise.
470 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
471 (gnat_init_decl_processing): Delete, move contents to...
472 * gcc-interface/misc.c (gnat_init): ...here.
474 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
476 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
477 calls. Return true for conversion from a record subtype to its type.
479 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
481 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
482 lieu of integer_type_node for boolean operations.
483 (choices_to_gnu): Likewise.
484 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
485 (Loop_Statement_to_gnu): Likewise.
486 (establish_gnat_vms_condition_handler): Likewise.
487 (Exception_Handler_to_gnu_sjlj): Likewise.
488 (gnat_to_gnu): Likewise.
489 (build_unary_op_trapv): Likewise.
490 (build_binary_op_trapv): Likewise.
491 (emit_range_check): Likewise.
492 (emit_index_check): Likewise.
493 (convert_with_check): Likewise.
494 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
495 (convert_vms_descriptor32): Likewise.
496 (convert_vms_descriptor): Likewise.
497 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
498 (compare_arrays): Use boolean instead of integer constants.
499 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
500 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
502 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
503 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
504 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
505 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
506 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
507 for boolean operations.
508 (fill_vms_descriptor): Likewise. Fix formatting nits.
510 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
512 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
513 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
515 (LOOP_STMT_COND): ...this.
516 (LOOP_STMT_BOTTOM_COND_P): New flag.
517 (LOOP_STMT_TOP_UPDATE_P): Likewise.
518 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
519 (can_equal_min_val_p): New static inline function.
520 (can_equal_max_val_p): Likewise.
521 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
522 new LOOP_STMT semantics. Use two different strategies depending on
523 whether optimization is enabled to translate the loop.
524 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
526 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
528 * uintp.adb (UI_From_Dint): Remove useless code.
529 (UI_From_Int): Likewise.
530 * uintp.h: Reorder declarations.
531 (UI_From_gnu): Declare.
533 (Vector_Template): Likewise.
534 (Vector_To_Uint): Likewise.
537 * gcc-interface/gigi.h: Tweak comments.
538 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
539 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
541 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
542 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
543 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
544 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
547 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
549 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
551 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
552 (smaller_form_type_p): ...this. Change parameter and variable names.
553 (call_to_gnu): Use the nominal type of the parameter to create the
554 temporary if it's a smaller form of the actual type.
555 (addressable_p): Return false if the actual type is integral and its
556 size is greater than that of the expected type.
558 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
560 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
561 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
562 (process_attributes): Delete.
563 (post_error_ne_num): Change parameter name.
564 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
565 with -g3. Remove a couple of obsolete lines. Minor tweaks.
566 If type annotating mode, operate on trees to compute the adjustment to
567 the sizes of tagged types. Fix long line.
568 (cannot_be_superflat_p): Tweak head comment.
569 (annotate_value): Fold local constant.
570 (set_rm_size): Fix long line.
571 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
572 (Attribute_to_gnu): Fix long line.
573 <Attr_Size>: Remove useless assertion.
574 Reorder statements. Use size_binop routine.
575 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
576 Create local variables for the label and the test. Tweak comments.
577 (Subprogram_Body_to_gnu): Reset cfun to NULL.
578 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
579 (process_inlined_subprograms): Integrate into...
580 (Compilation_Unit_to_gnu): ...this.
581 (gnat_to_gnu): Fix long line.
582 (post_error_ne_num): Change parameter name.
583 * gcc-interface/utils.c (process_attributes): Static-ify.
584 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
585 (create_type_decl): Add comment.
586 (create_var_decl_1): Process the attributes after adding the VAR_DECL
587 to the current binding level.
588 (create_subprog_decl): Likewise for the FUNCTION_DECL.
589 (end_subprog_body): Do not reset cfun to NULL.
590 (build_vms_descriptor32): Fix long line.
591 (build_vms_descriptor): Likewise.
592 (handle_nonnull_attribute): Likewise.
593 (convert_vms_descriptor64): Likewise.
594 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
595 (gnat_protect_expr): Fix thinko.
597 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
599 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
600 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
601 before translating the top-level node.
602 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
603 <N_Object_Declaration>: Likewise.
604 <N_Assignment_Statement>: Likewise.
605 <N_Unchecked_Type_Conversion>: Likewise.
606 (call_to_gnu): Remove kludge.
607 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
608 associated with user returns to be preserved.
609 (gnat_to_gnu): Add special code to deal with boolean rvalues.
610 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
612 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
613 <INDIRECT_REF>: Call build_fold_indirect_ref.
615 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
617 * g-socket.adb: A target can have multiple missing errno's. This
618 will result in multiple errno's being defined as -1. Because of this
619 we can not use a case but must use a series of if's to avoid
620 a duplicate case error in GNAT.Sockets.Resolve_Error.
622 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
624 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
625 a statement. Otherwise, if at top-level, push the processing of the
626 elaboration routine. In the misaligned case, issue the error messages
627 again on entry and create the temporary explicitly. Do not issue them
629 For a function call, emit the range check if necessary.
630 In the copy-in copy-out case, create the temporary for the return
632 Do not unnecessarily convert by-ref parameters to the formal's type.
633 Remove obsolete guards in conditions.
634 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
635 target to call_to_gnu in all cases.
636 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
637 (addressable_p) <CONSTRUCTOR>: Return false if not static.
638 <COMPOUND_EXPR>: New case.
639 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
640 expression if it has unconstrained array type.
641 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
642 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
645 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
647 * gcc-interface/trans.c (gigi): Do not start statement group.
648 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
649 Start statement group and push binding level here...
650 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
651 Do not push fake contexts at top level. Remove redundant code.
652 (call_to_gnu): Rename a local variable and constify another.
653 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
654 (set_current_block_context): Set it as the group's block.
655 (gnat_init_decl_processing): Delete unrelated init code.
656 (end_subprog_body): Use NULL_TREE.
658 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
660 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
661 side-effects of actual parameters before the call.
663 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
665 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
667 (set_rm_size): Reorder and remove obsolete test.
669 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
671 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
672 (gigi): Adjust ATTRIBUTE_UNUSED markers.
673 * gcc-interface/gadaint.h: New file.
674 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
675 (__gnat_to_canonical_file_spec): Remove declaration.
676 (number_names): Delete.
677 (number_files): Likewise.
679 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
682 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
684 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
686 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
687 Ekind. Return early for class-wide types. Do not compute initializer
688 unless necessary. Reuse the tree for an associated class-wide type
689 only if processing its root type.
691 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
693 * gsocket.h: Run-time can no longer be built without network
694 OS headers available. Changing RTEMS GNAT build procedure to
695 reflect this and letting run-time build use network .h files.
697 2010-04-13 Duncan Sands <baldrick@free.fr>
699 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
700 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
702 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
704 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
705 (parent_name_id): New macro.
706 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
707 * gcc-interface/trans.c (gigi): Initialize it.
708 (lvalue_required_p) <N_Type_Conversion>: New case.
709 <N_Qualified_Expression>: Likewise.
710 <N_Allocator>: Likewise.
711 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
713 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
715 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
716 (DECL_CONST_ADDRESS_P): New macro.
717 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
718 (SAME_FIELD_P): Likewise.
719 * gcc-interface/decl.c (constructor_address_p): New static function.
720 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
721 the return value of above function.
722 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
724 <E_Record_Subtype>: Likewise.
725 Set TREE_ADDRESSABLE on the type if it passed by reference.
726 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
727 (create_field_decl_from): Likewise.
728 (substitute_in_type): Likewise.
729 (purpose_member_field): Use SAME_FIELD_P.
730 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
731 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
732 parameter and adjust recursive calls.
733 <N_Explicit_Dereference>: New case.
734 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
735 Adjust calls to lvalue_required_p. Do not return the initializer of a
736 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
737 (call_to_gnu): Delay issuing error message for a misaligned actual and
738 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
739 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
740 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
741 type is passed by reference.
742 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
743 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
744 (build_simple_component_ref): Use SAME_FIELD_P.
746 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
748 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
749 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
750 front-end's predicate Is_By_Reference_Type. Use consistent order and
751 remove ??? comment. Use original conversion in all cases, if any.
752 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
753 (convert): Use local copy in more cases.
754 <INDIRECT_REF>: Remove deactivated code.
755 (unchecked_convert): Use a couple of local copies.
757 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
759 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
761 (lvalue_required_p) <N_Attribute_Reference>: Call it.
762 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
763 folding the result only if lvalue_required_for_attribute_p is true.
764 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
765 typed constant to build_component_ref.
766 (unchecked_convert): Likewise.
767 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
768 (build_allocator): Likewise.
770 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
772 * gcc-interface/utils2.c (build_cond_expr): Take the address and
773 dereference if the result type is passed by reference.
775 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
777 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
778 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
779 goto to the next statement.
781 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
783 * gcc-interface/gigi.h (maybe_variable): Delete.
784 (protect_multiple_eval): Likewise.
785 (maybe_stabilize_reference): Likewise.
786 (gnat_save_expr): Declare.
787 (gnat_protect_expr): Likewise.
788 (gnat_stabilize_reference): Likewise.
789 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
790 gnat_stabilize_reference.
791 (maybe_variable): Delete.
792 (elaborate_expression_1): Use gnat_save_expr.
793 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
794 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
795 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
796 <N_Slice>: Use gnat_protect_exp.
797 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
798 <N_In>: Use gnat_protect_expr.
799 Pass NULL to gnat_stabilize_reference.
800 (build_unary_op_trapv): Use gnat_protect_expr.
801 (build_binary_op_trapv): Likewise.
802 (emit_range_check): Likewise.
803 (emit_index_check): Likewise.
804 (convert_with_check): Likewise.
805 (protect_multiple_eval): Move to utils2.c file.
806 (maybe_stabilize_reference): Merge into...
807 (gnat_stabilize_reference): ...this. Move to utils2.c file.
808 (gnat_stabilize_reference_1): Likewise.
809 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
810 instead of protect_multiple_eval.
811 * gcc-interface/utils2.c (compare_arrays): Likewise.
812 (nonbinary_modular_operation): Likewise.
813 (maybe_wrap_malloc): Likewise.
814 (build_allocator): Likewise.
815 (gnat_save_expr): New function.
816 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
817 in common cases. Propagate TREE_READONLY onto dereferences.
818 (gnat_stabilize_reference_1): Move from trans.c file.
819 (gnat_stabilize_reference): Likewise.
821 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
823 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
824 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
825 node. Use the type of the operand to set TREE_READONLY.
826 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
827 _REF node. Do not overwrite TREE_READONLY.
828 (call_to_gnu): Rename local variable and fix various nits. In the
829 copy-in/copy-out case, build the SAVE_EXPR manually.
830 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
831 and fold the computations.
832 (protect_multiple_eval): Always save entire fat pointers.
833 (maybe_stabilize_reference): Minor tweaks.
834 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
835 tcc_type and tcc_statement.
836 * gcc-interface/utils.c (convert_to_fat_pointer): Call
837 protect_multiple_eval in lieu of save_expr.
838 (convert): Minor tweaks.
839 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
840 (builtin_type_for_size): Call gnat_type_for_size directly.
841 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
842 (contains_null_expr): Likewise
843 (gnat_build_constructor): Do not call it.
844 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
845 instead of gnat_stabilize_reference to protect the operands.
846 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
848 (maybe_wrap_malloc): Likewise.
849 (build_allocator): Likewise.
850 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
851 (gnat_mark_addressable): Rename parameter.
853 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
855 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
856 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
857 (TYPE_RETURNS_BY_REF_P): Rename into.
858 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
859 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
860 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
861 (build_return_expr): Likewise.
862 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
863 Rename local variables. If the return Mechanism is By_Reference, pass
864 return_by_invisible_ref_p to create_subprog_type instead of toggling
865 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
866 the mechanism. Use regular return for contrained types with non-static
867 size and return by invisible reference for unconstrained return types
868 with default discriminants. Update comment.
869 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
870 returns by invisible reference, turn the RESULT_DECL into a pointer.
871 Do not handle DECL_BY_REF_P in the CICO case here.
872 (call_to_gnu): Remove code handling return by target pointer. For a
873 function call, if the return type has non-constant size, generate the
874 assignment with an INIT_EXPR.
875 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
876 If the function returns by invisible reference, build the copy return
878 (add_decl_expr): Initialize the variable with an INIT_EXPR.
879 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
880 Adjust for renaming of macros. Copy the node only when necessary.
881 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
882 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
883 (convert_from_reference): Delete.
884 (is_byref_result): Likewise.
885 (gnat_genericize_r): Likewise.
886 (gnat_genericize): Likewise.
887 (end_subprog_body): Do not call gnat_genericize.
888 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
889 (build_return_expr): Adjust parameter names, logic and comment.
891 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
893 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
894 if the size is small enough. Propagate the alignment if there is an
895 alignment clause on the original array type.
896 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
897 Deal with under-aligned packed array types. Copy the size onto the
898 justified modular type and don't lay it out again. Likewise for the
899 padding type built for other under-aligned subtypes.
900 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
903 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
905 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
906 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
908 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
910 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
911 do not set the result type if there is a specified target and do not
912 convert the result in any cases.
913 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
914 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
916 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
918 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
920 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
923 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
924 pointer base types are variant of each other. Apply special treatment
925 for null to fat pointer types in all cases.
927 2010-01-28 Pascal Obry <obry@adacore.com>
929 * s-win32.ads: Add some missing constants.
931 2010-01-28 Vincent Celier <celier@adacore.com>
933 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
936 2010-01-28 Robert Dewar <dewar@adacore.com>
938 * gnat_rm.texi: Minor correction
940 2010-01-27 Pascal Obry <obry@adacore.com>
942 * g-awk.adb: ensure that an AWK session is reusable.
944 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
946 * g-regist.adb (For_Every_Key): Fix previous change.
949 2010-01-27 Thomas Quinot <quinot@adacore.com>
951 * lib-writ.ads: Current version of spec for new N (note) ALI lines
953 2010-01-27 Yannick Moy <moy@adacore.com>
955 * a-cdlili.adb (Insert): Correct exception message when cursor
956 designates wrong list.
958 2010-01-27 Vincent Celier <celier@adacore.com>
960 * gnatcmd.adb: When there is only one main specified, the package
961 support Switches (<main>) and attribute Switches is specified for the
962 main, use these switches, instead of Default_Switches ("Ada").
964 2010-01-27 Robert Dewar <dewar@adacore.com>
966 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
968 * exp_disp.adb: Minor reformatting
970 2010-01-27 Tristan Gingold <gingold@adacore.com>
972 * seh_init.c: Use __ImageBase instead of _ImageBase.
974 2010-01-27 Javier Miranda <miranda@adacore.com>
976 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
977 profile of interface thunks. The type of the controlling formal is now
978 the covered interface type (instead of the target tagged type).
980 2010-01-27 Sergey Rybin <rybin@adacore.com>
982 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
984 2010-01-27 Robert Dewar <dewar@adacore.com>
986 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
987 changed from Expr to N.
989 2010-01-26 Thomas Quinot <quinot@adacore.com>
991 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
992 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
995 2010-01-26 Vincent Celier <celier@adacore.com>
997 * prj-attr.adb: Add new attribute Library_Install_Name_Option
998 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
999 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
1000 attributes Run_Path_Option and Library_Install_Name_Option.
1001 * prj.ads (Project_Configuration): Replace component
1002 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
1003 component Library_Install_Name_Option.
1004 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
1005 Replace Run_Path_Origin_Supported with Run_Path_Origin
1007 2010-01-26 Ed Schonberg <schonberg@adacore.com>
1009 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
1010 is not hidden by a homograph declared in another actual package.
1012 2010-01-26 Robert Dewar <dewar@adacore.com>
1014 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
1015 decisions for pragmas Assert, Check, Precondition, Postcondition if
1017 * scos.ads: Update comments.
1018 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
1019 Also remove obsolete code for CT (exit point) SCOs.
1021 2010-01-26 Thomas Quinot <quinot@adacore.com>
1023 * switch-c.adb: Fix handling of -gnatz*
1025 2010-01-26 Robert Dewar <dewar@adacore.com>
1027 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
1028 qualifiers for FOR/WHILE loops
1029 * scos.ads: Use separate type letters F/W for for/while loops
1031 2010-01-26 Robert Dewar <dewar@adacore.com>
1033 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
1034 entries per line, one for each statement in the sequence).
1035 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
1036 size from 100 to 10_000 for SC_Array to avoid any real possibility of
1037 overflow. Output decisions in for loops.
1038 Exclude labels from CS lines.
1039 * scos.ads: Clarify that label is not included in the entry point
1041 2010-01-26 Robert Dewar <dewar@adacore.com>
1043 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
1044 format of statement sequence SCO entries (one location/statement).
1045 * put_scos.adb (Put_SCOs): Implement new format of CS lines
1046 * scos.ads: Update comments.
1047 * sem_eval.adb: Minor reformatting.
1049 2010-01-26 Robert Dewar <dewar@adacore.com>
1051 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
1052 (Extend_Statement_Sequence): New procedures
1053 (Traverse_Declarations_Or_Statements): New handling for exits.
1055 2010-01-26 Robert Dewar <dewar@adacore.com>
1057 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
1060 2010-01-26 Robert Dewar <dewar@adacore.com>
1062 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
1063 * scos.ads: Clarify handling of logical operators
1065 2010-01-26 Arnaud Charlet <charlet@adacore.com>
1067 * s-tpoben.adb: Update comments.
1069 2010-01-26 Robert Dewar <dewar@adacore.com>
1071 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
1074 2010-01-26 Robert Dewar <dewar@adacore.com>
1076 * scos.ads: Clean up documentation, remove obsolete XOR references
1077 2010-01-26 Vincent Celier <celier@adacore.com>
1079 * gnat_ugn.texi: Complete documentation on the restrictions for
1080 combined options in -gnatxxx switches.
1083 2010-01-26 Arnaud Charlet <charlet@adacore.com>
1085 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
1086 a controlled operation, abort is already deferred at this point, so we
1087 need to use Defer_Abort_Nestable.
1089 2010-01-26 Vincent Celier <celier@adacore.com>
1091 * prj-conf.adb (Get_Config_Switches): Check for a default language for
1092 a project extending a project with no languages.
1094 2010-01-26 Vincent Celier <celier@adacore.com>
1096 * switch-c.adb (Scan_Front_End_Switches): Take into account options
1097 that follow -gnatef.
1098 Allow -gnateG to be followed by other options.
1100 2010-01-26 Robert Dewar <dewar@adacore.com>
1102 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
1103 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
1106 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
1108 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
1109 that allows to iterate over all subkeys of a key.
1111 2010-01-26 Ed Falis <falis@adacore.com>
1113 * sysdep.c: enable NFS for VxWorks MILS
1114 * env.c: enable __gnat_environ for VxWorks MILS
1115 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
1117 2010-01-25 Bob Duff <duff@adacore.com>
1119 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
1120 is an internally-generated positional aggregate, and the bounds are
1121 already correctly set. We don't want to overwrite those bounds with
1122 bounds determined by context.
1124 2010-01-25 Robert Dewar <dewar@adacore.com>
1126 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
1127 exp_ch9.adb, g-sechas.ads: Minor reformatting.
1129 2010-01-25 Thomas Quinot <quinot@adacore.com>
1131 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
1132 integer type) before subtracting 1, otherwise the computation may wrap
1133 (because size_t is modular) and cause the conversion to fail.
1135 2010-01-25 Ed Falis <falis@adacore.com>
1137 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
1139 2010-01-25 Vincent Celier <celier@adacore.com>
1141 * prj-attr.adb: New attribute Run_Path_Origin_Required
1142 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
1143 attribute Run_Path_Origin_Required.
1144 * prj.ads (Project_Configuration): New component
1145 Run_Path_Origin_Supported.
1146 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
1148 2010-01-25 Ed Schonberg <schonberg@adacore.com>
1150 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
1151 have errors, do not continue resolution of the aggregate.
1152 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
1153 the array type indicates an error.
1155 2010-01-25 Bob Duff <duff@adacore.com>
1157 * sinfo.ads: Minor comment fixes.
1159 2010-01-25 Bob Duff <duff@adacore.com>
1161 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
1163 2010-01-25 Arnaud Charlet <charlet@adacore.com>
1165 * gnatvsn.ads (Current_Year): Update.
1167 2010-01-25 Florian Villoing <villoing@adacore.com>
1169 * gnat_ugn.texi: Fix typo.
1171 2010-01-25 Thomas Quinot <quinot@adacore.com>
1173 * scos.ads: Update specification.
1175 2010-01-25 Ed Schonberg <schonberg@adacore.com>
1177 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
1178 enclosing subprogram has no previous spec, attach postcondition
1179 procedure to the defining entity for the body.
1181 2010-01-25 Ed Schonberg <schonberg@adacore.com>
1183 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
1184 initialization procedure of the ancestor part of an extension aggregate
1185 if it is an interface type.
1187 2010-01-25 Vincent Celier <celier@adacore.com>
1189 * gnatlink.adb (Process_Binder_File): The directory for the shared
1190 version of libgcc in the run path options is found in the subdirectory
1191 indicated by __gnat_default_libgcc_subdir.
1192 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
1195 2010-01-25 Ed Schonberg <schonberg@adacore.com>
1197 * sem_prag.adb: More flexible pragma Annotate.
1199 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
1201 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
1202 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
1204 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
1206 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
1208 2010-01-18 Jan Hubicka <jh@suse.cz>
1211 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
1212 unit local variables.
1214 2010-01-17 Laurent GUERBY <laurent@guerby.net>
1216 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
1218 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
1220 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
1221 * system-linux-armeb.ads, system-linux-armel.ads: New files.
1223 2010-01-09 Simon Wright <simon@pushface.org>
1226 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
1231 Copyright (C) 2010 Free Software Foundation, Inc.
1233 Copying and distribution of this file, with or without modification,
1234 are permitted in any medium without royalty provided the copyright
1235 notice and this notice are preserved.