summaryrefslogtreecommitdiff
path: root/gcc/ada
Commit message (Collapse)AuthorAgeFilesLines
* ada-tree.h (union lang_tree_node): Check for TS_COMMON before calling ↵Nathan Froyd2011-04-133-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TREE_CHAIN. gcc/ada/ * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. * gcc-interface/misc.c (gnat_init_ts): New function. (LANG_HOOKS_INIT_TS): Define. gcc/ * c-decl.c (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. * print-tree.c (print_node): Likewise. * tree-inline.c (copy_tree_r): Likewise. * c-lang.c (LANG_HOOKS_INIT_TS): Define. * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED instead of TS_COMMON. * lto-streamer-out.c (lto_output_tree_pointers): Likewise. * tree.c (initialize_tree_contains_struct): Handle TS_TYPED. (copy_node_stat): Zero TREE_CHAIN only if necessary. (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these... (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL): ...and these... (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these... * tree.h: ...here. (TREE_CHAIN): Check for a TS_COMMON structure. (TREE_TYPE): Check for a TS_TYPED structure. gcc/c-family/ * c-common.h (c_common_init_ts): Declare. * c-common.c (c_common_init_ts): Define. gcc/cp/ * cp-lang.c (cp_init_ts): Call cp_common_init_ts. Move tree_contains_struct initialization to... * cp-objcp-common.c (cp_common_init_ts): ...here. Use MARK_* macros. * cp-objcp-common.h (cp_common_init_ts): Declare. * cp-tree.h (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. gcc/fortran/ * f95-lang.c (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. gcc/go/ * go-lang.c (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. gcc/java/ * java-tree.h (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. gcc/lto/ * lto-tree.h (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. * lto.c (lto_fixup_common): Likewise. gcc/objc/ * objc-lang.c (objc_init_ts): Move code for this function... * objc-act.c (objc_common_init_ts): ...here. Define. * objc-act.h (objc_common_init_ts): Declare. gcc/objcp/ * objcp-lang.c (objcxx_init_ts): Call objc_common_init_ts and cp_common_init_ts. From-SVN: r172359
* cgraph.h (cgraph_node): Remove function declaration.Martin Jambor2011-04-122-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-04-12 Martin Jambor <mjambor@suse.cz> * cgraph.h (cgraph_node): Remove function declaration. (cgraph_create_node): Declare. (cgraph_get_create_node): Likewise. * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1. Updated all callers. (cgraph_node): Renamed to cgraph_create_node, assert that a node for the decl does not already exist. Call cgraph_get_create_node instead of cgraph_node. (cgraph_get_create_node): New function. (cgraph_same_body_alias): Update comment. (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node, assert it does not return NULL. (cgraph_update_edges_for_call_stmt): Likewise. (cgraph_clone_edge): Likewise. (cgraph_create_virtual_clone): Likewise. (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node instead of cgraph_node. (cgraph_add_new_function): Call cgraph_create_node or cgraph_get_create_node instead of cgraph_node. * cgraphbuild.c (record_reference): Call cgraph_get_create_node instead of cgraph_node. (record_eh_tables): Likewise. (mark_address): Likewise. (mark_load): Likewise. (build_cgraph_edges): Call cgraph_get_create_node instead of cgraph_node. (rebuild_cgraph_edges): Likewise. * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node instead of cgraph_node. (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of cgraph_node. * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call cgraph_create_node instead of cgraph_node. * c-decl.c (finish_function): Call cgraph_get_create_node instead of cgraph_node. * lto-cgraph.c (input_node): Likewise. * lto-streamer-in.c (input_function): Likewise. * varasm.c (mark_decl_referenced): Likewise. (assemble_alias): Likewise. gcc/c-family/ * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead of cgraph_node. gcc/cp/ * cp/class.c (cp_fold_obj_type_ref): Call cgraph_get_create_node instead of cgraph_node. * cp/decl2.c (cxx_callgraph_analyze_expr): Likewise. (cp_write_global_declarations): Likewise. * cp/optimize.c (maybe_clone_body): Likewise. * cp/semantics.c (maybe_add_lambda_conv_op): Likewise. * cp/mangle.c (mangle_decl): Likewise. * cp/method.c (make_alias_for_thunk): Likewise. (use_thunk): Likewise. gcc/ada/ * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node instead of cgraph_node. gcc/fortran/ * trans-decl.c (gfc_generate_function_code): Call cgraph_get_create_node instead of cgraph_node. gcc/objc/ * objc-act.c (mark_referenced_methods): Call cgraph_get_create_node instead of cgraph_node. From-SVN: r172307
* decl.c (gnat_to_gnu_entity): Set minimum alignment on fields of the RETURN ↵Eric Botcazou2011-04-082-0/+9
| | | | | | | | | | type built for the Copy-In... * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum alignment on fields of the RETURN type built for the Copy-In Copy-Out mechanism. From-SVN: r172210
* trans.c (Identifier_to_gnu): Do not return initializers of aggregate types ↵Eric Botcazou2011-04-082-2/+11
| | | | | | | | | that contain a placeholder. * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers of aggregate types that contain a placeholder. From-SVN: r172209
* utils.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPESNathan Froyd2011-04-082-13/+8
| | | | | | | | | | | | | | | | | gcc/ada/ * gcc-interface/utils.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES (handle_type_generic_attribute): Likewise. gcc/c-family/ * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. (handle_type_generic_attribute): Likewise. gcc/lto/ * lto-lang.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. (handle_type_generic_attribute): Likewise. From-SVN: r172200
* re PR ada/47163 (Failure building target-libada for MingW64)Eric Botcazou2011-04-042-0/+6
| | | | | | | PR ada/47163 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. From-SVN: r171943
* re PR ada/47163 (Failure building target-libada for MingW64)Kai Tietz2011-04-042-0/+11
| | | | | | | | | | 2011-04-04 Kai Tietz <ktietz@redhat.com> PR ada/47163 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets to flag value. From-SVN: r171926
* utils2.c (build_allocator): In the unconstrained array type case...Eric Botcazou2011-04-022-12/+8
| | | | | | | * gcc-interface/utils2.c (build_allocator): In the unconstrained array type case, do not strip a padding type around the array type. From-SVN: r171888
* utils.c (update_pointer_to): Finalize named pointer types.Eric Botcazou2011-04-022-2/+14
| | | | | | | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer types. From-SVN: r171887
* lang.opt (feliminate-unused-debug-types): Delete.Eric Botcazou2011-04-023-25/+9
| | | | | | | | | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. * gcc-interface/misc.c (gnat_handle_option): Remove special handling code for -feliminate-unused-debug-types (gnat_post_options): Likewise. From-SVN: r171886
* utils.c (gnat_pushdecl): If this is a non-artificial declaration of a ↵Eric Botcazou2011-04-022-2/+12
| | | | | | | | | | pointer type... * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a distinct copy. From-SVN: r171885
* decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on ↵Eric Botcazou2011-04-022-3/+6
| | | | | | | | | enumeration types. * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration types. From-SVN: r171884
* decl.c (gnat_to_gnu_entity): Do not make fat pointer types artificial ↵Eric Botcazou2011-04-022-9/+27
| | | | | | | | | | | unconditionally. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make fat pointer types artificial unconditionally. <E_Array_Subtype>: Attach the base array type as a parallel type if it isn't artificial. From-SVN: r171883
* gigi.h (get_dummy_type): Declare.Eric Botcazou2011-04-024-174/+188
| | | | | | | | | | | | | | | | | | | * gcc-interface/gigi.h (get_dummy_type): Declare. (build_dummy_unc_pointer_types): Likewise. (finish_fat_pointer_type): Likewise. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy fat pointer type has been built, complete it in place. <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat and thin pointers. Remove useless variable. (finish_fat_pointer_type): Make global and move to... * gcc-interface/utils.c (finish_fat_pointer_type): ...here. (get_dummy_type): New function. (build_dummy_unc_pointer_types): Likewise. (gnat_pushdecl): Propage the name to the anonymous variants only. (update_pointer_to): Only adjust the pointer types in the unconstrained array case. From-SVN: r171882
* ada-tree.h (DECL_TAFT_TYPE_P): New flag.Eric Botcazou2011-04-025-10/+63
| | | | | | | | | | | | | | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it if this is a Taft amendment type and the full declaration is available. * gcc-interface/trans.c (process_type): Likewise. If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. (process_freeze_entity): Likewise. * gcc-interface/utils.c (dummy_global): New static variable. (gnat_write_global_declarations): If there are types declared as used at the global level, insert them in the global hash table. From-SVN: r171881
* gigi.h (record_builtin_type): Add ARTIFICIAL_P param.Eric Botcazou2011-04-024-13/+38
| | | | | | | | | | | | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct copy. (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL flag of the type accordingly. * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. From-SVN: r171880
* decl.c (gnat_to_gnu_entity): Defer finalizing types when updating the ↵Eric Botcazou2011-04-022-47/+55
| | | | | | | | | | | pointers to the designated type. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer finalizing types when updating the pointers to the designated type. <all>: Finalize the deferred types even if we didn't defer processing of incomplete types in this invocation. From-SVN: r171879
* dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.Olivier Hainque2011-04-012-1/+21
| | | | | | | | | | | | | | | | | | | | * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type. (add_gnat_descriptive_type_attribute): New function. (gen_array_type_die): Call it. (gen_enumeration_type_die): Likewise. (gen_struct_or_union_type_die): Likewise. (modified_type_die): Likewise. * langhooks.h (lang_hooks_for_types): New descriptive_type hook. * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE. ada/ * gcc-interface/misc.c (gnat_descriptive_type): New function. (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> Co-Authored-By: Nicolas Setton <setton@adacore.com> From-SVN: r171862
* Makefile.in (SO_LIB): Handle multilib build for native windows targets.Kai Tietz2011-03-283-1/+13
| | | | | | | | | | | | | 2011-03-28 Kai Tietz <ktietz@redhat.com> * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native windows targets. (EH_MECHANISM): Make sure we use gcc's exception mechanism for all native windows target. * system-mingw.ads (System): Change ZCX_By_Default default to True. From-SVN: r171599
* raise-gcc.c (PERSONALITY_FUNCTION): Add prototype to prevent warning.Kai Tietz2011-03-282-0/+10
| | | | | | | | | 2011-03-28 Kai Tietz <ktietz@redhat.com> * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype to prevent warning. From-SVN: r171594
* re PR ada/44431 ([boot with C++] Conflicting exit declaration in ada/b_gnatb.c)Tristan Gingold2011-03-283-23/+54
| | | | | | | | | | | | | | | | | | | | 2011-03-28 Tristan Gingold <gingold@adacore.com> PR ada/44431 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replaces ada/b_gnat1.c. Use ada output of gnatbind. (ada/b_gnatb.adb): Ditto. (ada/b_gnat1.o, ada/b_gnatb.o): New rules. (ada.mostlyclean, ada.stage1) (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) (ada.stagefeedback): Adjust. * gcc-interface/Makefile.in (b_gnatl.adb): Replaces b_gnatl.c Use ada output of gnatbind. (b_gnatm.adb): Ditto. (b_gnatl.o, b_gnatm.o): New rules. From-SVN: r171593
* decl.c (gnat_to_gnu_entity): Create TYPE_DECL for the padded type built to ↵Eric Botcazou2011-03-262-3/+19
| | | | | | | | | support a specified size or alignment. * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL for the padded type built to support a specified size or alignment. From-SVN: r171554
* gigi.h (finalize_from_with_types): Adjust comment.Eric Botcazou2011-03-264-50/+59
| | | | | | | | | | | | | | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer unconditionally to the end of the unit when the designated type is limited_with'ed. <all>: Rename local variable. Attempt to un-defer types only and do it for limited_with'ed types as well. (finalize_from_with_types): Adjust comment. Rename variable and tidy. * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT consistently and remove redundant call to finalize_from_with_types. From-SVN: r171552
* inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to ↵Eric Botcazou2011-03-264-69/+27
| | | | | | | | | | | | | | subprograms without a previous spec declared in... * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to subprograms without a previous spec declared in the same unit. * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined subprograms at the end of the unit instead of at the beginning. * gcc-interface/utils.c (create_subprog_decl): Check that the entity isn't public for the special handling of non-inline functions nested inside inline external functions. From-SVN: r171551
* dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end.Jeff Law2011-03-252-0/+5
| | | | | | | | | | | * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end. * c-family/c-common.c (def_fn_type): Likewise. * ada/gcc-interface/utils.c (def_fn_type): Likewise. * emit-rtl.c (gen_rtvec): Likewise. * lto/lto-lang.c (def_fn_type): Likewise. From-SVN: r171466
* einfo.ads (Size_Depends_On_Discriminant): Adjust description.Eric Botcazou2011-03-245-9/+88
| | | | | | | | | | | | | | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure to compute Set_Size_Depends_On_Discriminant. (Layout_Type): Call it on array types in back-end layout mode. * sem_util.adb (Requires_Transient_Scope): Return true for array types only if the size depends on the value of discriminants. * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS type if the RHS is a call to a function that returns an unconstrained type with default discriminant. From-SVN: r171402
* trans.c (gnat_to_gnu): Remove obsolete case of non-conversion to the nominal ↵Eric Botcazou2011-03-242-15/+12
| | | | | | | | | result type at the end. * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of non-conversion to the nominal result type at the end. From-SVN: r171398
* trans.c (create_temporary): New function taken from...Eric Botcazou2011-03-232-71/+119
| | | | | | | | | | | * gcc-interface/trans.c (create_temporary): New function taken from... (create_init_temporary): ...here. Call it. (call_to_gnu): Create the temporary for the return value early, if any. Create it for a function with copy-in/copy-out parameters if there is no target; in other cases of copy-in/copy-out, use another temporary. Push the new binding level lazily. Add and rename local variables. From-SVN: r171345
* decl.c (validate_size): Improve comments and tweak error message.Eric Botcazou2011-03-232-29/+34
| | | | | | | | * gcc-interface/decl.c (validate_size): Improve comments and tweak error message. (set_rm_size): Likewise. From-SVN: r171343
* decl.c (gnat_to_gnu_entity): Create TYPE_DECL for the padded type built in ↵Eric Botcazou2011-03-232-13/+30
| | | | | | | | | | order to support a specified... * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL for the padded type built in order to support a specified alignment. Fix incorrect formatting. From-SVN: r171342
* re PR bootstrap/48216 (IRIX 6 Ada bootstrap broken: gnu_decl uninitialized ↵Eric Botcazou2011-03-212-10/+16
| | | | | | | | | in gcc-interface/decl.c:elaborate_expression_1) PR bootstrap/48216 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. From-SVN: r171254
* decl.c (components_to_record): Add REORDER parameter...Eric Botcazou2011-03-212-53/+123
| | | | | | | | | | | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter to the end of the list. Adjust recursive call. Rename local variable. If REORDER is true, reorder components of the record type. (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to components_to_record and adjust the parameter list. From-SVN: r171228
* decl.c (elaborate_expression_1): When optimization is disabled, use the ↵Eric Botcazou2011-03-212-8/+20
| | | | | | | | | variable for bounds of loop iteration scheme. * gcc-interface/decl.c (elaborate_expression_1): When optimization is disabled, use the variable for bounds of loop iteration scheme. From-SVN: r171220
* ChangeLog gcc/Kai Tietz2011-03-212-18/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * doc/plugins.texi: Adjust documentation for plugin register_callback. * tree.h (attribute_spec): Add new member affects_type_identity. - Zitierten Text anzeigen - * attribs.c (empty_attribute_table): Adjust attribute_spec initializers. * config/alpha/alpha.c: Likewise. * config/arc/arc.c: Likewise. * config/arm/arm.c: Likewise. * config/avr/avr.c: Likewise. * config/bfin/bfin.c: Likewise. * config/crx/crx.c: Likewise. * config/darwin.h: Likewise. * config/h8300/h8300.c: Likewise. * config/i386/cygming.h: Likewise. * config/i386/i386.c: Likewise. * config/ia64/ia64.c: Likewise. * config/m32c/m32c.c: Likewise. * config/m32r/m32r.c: Likewise. * config/m68hc11/m68hc11.c: Likewise. * config/m68k/m68k.c: Likewise. * config/mcore/mcore.c: Likewise. * config/mep/mep.c: Likewise. * config/microblaze/microblaze.c: Likewise. * config/mips/mips.c: Likewise. * config/rs6000/rs6000.c: Likewise. * config/rx/rx.c: Likewise. * config/sh/sh.c: Likewise. * config/sol2.h: Likewise. * config/sparc/sparc.c: Likewise. * config/spu/spu.c: Likewise. * config/stormy16/stormy16.c: Likewise. * config/v850/v850.c: Likewise. ChangeLog gcc/cp 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * tree.c (cxx_attribute_table): Adjust table. ChangeLog gcc/testsuite 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * g++.dg/plugin/attribute_plugin.c: Adjust test. ChangeLog gcc/java 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * lang.c (java_attribute_table): Adjust table. ChangeLog gcc/lto 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * lto-lang.c (lto_attribute_table): Adjust table. ChangeLog gcc/ada 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * gcc-interface/utils.c (gnat_internal_attribute_table): Add new element. ChangeLog gcc/c-family 2011-03-17 Kai Tietz PR target/12171 * c-common.c (c_common_attribute_table): Add new element. (c_common_format_attribute_table): Likewise. From-SVN: r171209
* decl.c (elaborate_expression_1): Try harder to find out whether the ↵Eric Botcazou2011-03-172-30/+53
| | | | | | | | | | expression is read-only. * gcc-interface/decl.c (elaborate_expression_1): Try harder to find out whether the expression is read-only. Short-circuit placeholder case and rename a couple of local variables. From-SVN: r171106
* gigi.h (smaller_form_type_p): Declare.Eric Botcazou2011-03-174-25/+46
| | | | | | | | | * gcc-interface/gigi.h (smaller_form_type_p): Declare. * gcc-interface/trans.c (smaller_form_type_p): Make global and move... * gcc-interface/utils.c (smaller_form_type_p): ...to here. (convert): Deal with conversions from a smaller form type specially. From-SVN: r171091
* misc.c (gnat_init_options): Do not concatenate -I and its argument, except ↵Eric Botcazou2011-02-142-7/+11
| | | | | | | | | for the special -I- switch. * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and its argument, except for the special -I- switch. From-SVN: r170150
* gnat_ugn.texi (Compiling Different Versions of Ada): Update link to "Ada ↵Gerald Pfeifer2011-02-122-1/+6
| | | | | | | | | Issues". * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to "Ada Issues". From-SVN: r170085
* * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.Eric Botcazou2011-02-082-3/+13
| | | | From-SVN: r169950
* gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of GNAT_FORMAL.Eric Botcazou2011-02-035-145/+134
| | | | | | | | | | | | | | | | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of GNAT_FORMAL. * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE instead of GNAT_FORMAL. Protect the expression against multiple uses. Do not generate the check directly, instead instantiate the template check present in the descriptor. (make_descriptor_field): Move around. (build_vms_descriptor32): Build a template check in the POINTER field. (build_vms_descriptor): Remove useless suffixes. * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. From-SVN: r169788
* re PR other/47467 (hwint.h:239:3: error: implicit declaration of function 'abs')Eric Botcazou2011-01-262-1/+11
| | | | | | | PR bootstrap/47467 * targext.c: Include target files if IN_RTS is defined. From-SVN: r169308
* re PR other/47467 (hwint.h:239:3: error: implicit declaration of function 'abs')Richard Guenther2011-01-263-1/+9
| | | | | | | | | | | 2011-01-26 Richard Guenther <rguenther@suse.de> PR bootstrap/47467 * targext.c: Include config.h. * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) dependency. From-SVN: r169285
* decl.c: Disable Stdcall convention handling for 64-bit.Pascal Obry2011-01-042-5/+15
| | | | | | | | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> From-SVN: r168460
* trans.c (Case_Statement_to_gnu): Put the SLOC of the end-of-case on the end ↵Eric Botcazou2011-01-042-2/+13
| | | | | | | | | label and its associated gotos, if any. * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the end-of-case on the end label and its associated gotos, if any. From-SVN: r168458
* trans.c (Subprogram_Body_to_gnu): Evaluate the expressions of the parameter ↵Eric Botcazou2011-01-042-25/+31
| | | | | | | | | | cache within the statement group of... * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the expressions of the parameter cache within the statement group of the CICO mechanism. From-SVN: r168456
* trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.Olivier Hainque2011-01-042-11/+86
| | | | | | | | | | | | | | | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. (set_end_locus_from_node): New function. (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we make and the function end_locus. (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus for the elaboration subprogram. (set_gnu_expr_location_from_node) <default case>: Use it to attempt to set the end_locus of the expression as well. Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com> From-SVN: r168455
* re PR ada/47131 (internal error for ACATS C34011B on SJLJ targets)Eric Botcazou2011-01-042-22/+8
| | | | | | | | PR ada/47131 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make variables that are referenced in exception handlers volatile. From-SVN: r168454
* Rotate ChangeLogs.H.J. Lu2011-01-022-10083/+10089
| | | | From-SVN: r168399
* decl.c (substitute_in_type): Do not deal with LANG_TYPE, METHOD_TYPE or ↵Eric Botcazou2010-12-313-6/+8
| | | | | | | | | | | OFFSET_TYPE. * gcc-interface/decl.c (substitute_in_type): Do not deal with LANG_TYPE, METHOD_TYPE or OFFSET_TYPE. * gcc-interface/utils.c (handle_vector_size_attribute): Do not deal with METHOD_TYPE or OFFSET_TYPE. From-SVN: r168381
* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.Nathan Froyd2010-12-222-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ * c-aux-info.c (gen_formal_list_for_type): Use prototype_p. * c-decl.c (diagnose_arglist_conflict): Likewise. (diagnose_mismatched_decls, merge_decls): Likewise. (c_builtin_function, c_builtin_function_ext_scope): Likewise. (start_decl, start_function): Likewise. * c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise. * config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise. * config/mep/mep.c (mep_validate_interrupt): Likewise. * config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise. * config/rs6000/rs6000.c (init_cumulative_args): Likewise. * config/sh/sh.c (sh_init_cumulative_args): Likewise. * config/sparc/sparc.c (init_cumulative_args): Likewise. * dwarf2out.c (add_prototyped_attribute): Likewise. (gen_subprogram_die): Likewise. * ipa-type-escape.c (check_function_parameter_and_return_types): Likewise. (check_call): Likewise. * tree-ssa.c (useless_type_conversion_p): Likewise. gcc/ada/ * gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p. (handle_sentinel_attribute): Likewise. gcc/c-family/ * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): Use prototype_p. gcc/cp/ * decl.c (decls_match, duplicate_decls): Use prototype_p. * pt.c (push_template_decl_real): Likewise. gcc/lto/ * lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute): Use prototype_p. gcc/objc/ * objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p. From-SVN: r168181