1. 25 May, 2011 2 commits
  2. 24 May, 2011 1 commit
    • Makefile.in (GCC_OBJS): Remove opts-common.o and options.o. · 1ed1641d
      	* Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
      	(OBJS): Remove options.o, opts-common.o and prefix.o.
      	(OBJS-libcommon-target): New.
      	(ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
      	(BACKEND): Include libcommon-target.a.
      	(MOSTLYCLEANFILES): Include libcommon-target.a.
      	(libcommon-target.a): New.
      	(xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
      	prefix.o.
      
      ada:
      	* gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
      	$(EXTRA_GNAT1_OBJS).
      	(GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
      	(EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
      	(gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon-target.a instead of prefix.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove prefix.o.
      	(g++$(exeext)): Use libcommon-target.a.
      	(CXX_C_OBJS): Remove prefix.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove prefix.o.
      	(gfortran$(exeext)): Use libcommon-target.a.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove prefix.o.
      	(gccgo$(exeext)): Use libcommon-target.a.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Use libcommon-target.a instead
      	of prefix.o.
      
      From-SVN: r174109
      Joseph Myers committed
  3. 21 May, 2011 1 commit
  4. 20 May, 2011 1 commit
    • Makefile.in (LIBDEPS): Add libcommon.a. · 2691e6d7
      	* Makefile.in (LIBDEPS): Add libcommon.a.
      	(LIBS): Likewise.
      	(GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
      	(OBJS-common): Remove diagnostic.o, input.o, intl.o,
      	pretty-print.o and version.o.
      	(OBJS-libcommon): New.
      	(ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
      	(BACKEND): Add libcommon.a.
      	(MOSTLYCLEANFILES): Likewise.
      	(libcommon.a): New.
      	(xgcc$(exeext)): Don't explicitly use version.o and intl.o.
      	(cpp$(exeext)): Likewise.
      	(COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
      	pretty-print.o and input.o.
      	(lto-wrapper$(exeext)): Don't explicitly use intl.o.
      	(lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
      	(errors.o): Remove.
      	(mips-tfile): Don't explicitly use version.o.
      	(mips-tdump): Likewise.
      	(gcov.o): Depend on $(DIAGNOSTIC_H).
      	(gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
      	(GCOV_OBJS): Remove intl.o, version.o and errors.o.
      	(GCOV_DUMP_OBJS): Remove version.o and errors.o.
      	* gcov-dump.c: Include intl.h and diagnostic.h.
      	(main): Initialize diagnostics.
      	* gcov.c: Include diagnostic.h.
      	(fnotice): Remove.
      	(main): Initialize diagnostics.
      	* lto-wrapper.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      ada:
      	* gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove
      	version.o.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon.a instead of version.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove intl.o and version.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove version.o and intl.o.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and
      	version.o.
      	(JCFDUMP_OBJS): Remove errors.o, version.o and intl.o.
      	(JVGENMAIN_OBJS): Remove errors.o and intl.o.
      	(java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H).
      	* jcf-dump.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      	* jvgenmain.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      From-SVN: r173958
      Joseph Myers committed
  5. 18 May, 2011 1 commit
  6. 12 May, 2011 1 commit
  7. 11 May, 2011 2 commits
    • don't use build_function_type in the Ada FE · e5b00edf
      don't use build_function_type in the Ada FE
      	* gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
      	call build_function_type_array or build_varargs_function_type_array
      	instead.
      	(create_subprog_type): Don't call build_function_type; call
      	build_function_type_vec instead.
      
      From-SVN: r173664
      Nathan Froyd committed
    • split tree_type · 51545682
      split tree_type
      gcc/ada/
      	* gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
      	(TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
      	(TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
      
      gcc/cp/
      	* cp-tree.h (TYPENAME_TYPE_FULLNAME, TYPEOF_TYPE_EXPR): Use
      	TYPE_VALUES_RAW.
      	(UNDERLYING_TYPE_TYPE, DECLTYPE_TYPE_EXPR): Likewise.
      	(DECLTYPE_TYPE_ID_EXPR_OR_MEMBER_ACCESS_P): Likewise.
      	(TEMPLATE_TYPE_PARM_INDEX): Likewise.
      
      gcc/
      	* ggc-page.c (extra_order_size_table): Use struct
      	tree_type_non_common.
      	* lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
      	(unpack_ts_type_common_value_fields): ...this.  Update comment.
      	(unpack_value_fields): Adjust for renaming.
      	(lto_input_ts_type_tree_pointers): Split into...
      	(lto_input_ts_type_common_tree_pointer): ...this and...
      	(lto_input_ts_type_non_common_tree_pointers): ...this.
      	(lto_input_tree_pointers): Adjust for above split.
      	* lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
      	(pack_ts_type_common_value_fields): ...this.  Update comment.
      	(lto_output_ts_type_tree_pointers): Split into...
      	(lto_output_ts_type_common_tree_pointers): ...this and...
      	(lto_output_ts_type_non_common_tree_pointers): ...this.
      	(lto_output_tree_pointers): Adjust for above split.
      	* lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
      	TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
      	* stor-layout.c (vector_type_mode): Adjust location of mode field.
      	* tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
      	Define.
      	(struct tree_type): Split into...
      	(struct tree_type_common: ...this and...
      	(struct tree_type_with_lang_specific): ...this and...
      	(struct tree_type_non_common): ...this.  Adjust accessor macros
      	accordingly.
      	(TYPE_VALUES_RAW): Define.
      	(union tree_node): Update for above changes.
      	* tree.c (tree_node_structure_for_code) [tcc_type]: Return
      	TS_TYPE_NON_COMMON.
      	(initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
      	Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
      	(tree_code_size) [tcc_type]: Use struct tree_type_non_common.
      	* treestructu.def (TS_TYPE): Remove.
      	(TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
      	Define.
      
      gcc/java/
      	* java-tree.h (TYPE_ARGUMENT_SIGNATURE): Use TYPE_MINVAL.
      
      gcc/lto/
      	* lto.c (lto_ft_type): Use TYPE_MINVAL and TYPE_MAXVAL.  Adjust
      	location of binfo field.
      	(lto_fixup_prevailing_decls): Likewise.
      
      gcc/objc/
      	* objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Use proper accessors.
      	(CLASS_NST_METHODS, CLASS_CLS_METHODS): Likewise.
      	(PROTOCOL_NAME, PROTOCOL_NST_METHODS, PROTOCOL_CLS_METHODS): Likewise.
      
      From-SVN: r173658
      Nathan Froyd committed
  8. 07 May, 2011 2 commits
    • langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to… · c99c0026
      langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to bool and adjust comment.
      
      2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
      	type to bool and adjust comment.
      	* fold-const.c (fold_range_test): Adjust call to global_bindings_p.
      	(fold_mathfn_compare): Remove calls to global_bindings_p.
      	(fold_inf_compare): Likewise.
      	* stor-layout.c (variable_size): Adjust call to global_bindings_p.
      	* c-tree.h (global_bindings_p): Adjust prototype.
      	* c-decl.c (global_bindings_p): Return bool and simplify.
      ada/
      	* gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
      	* gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
      cp/
      	* name-lookup.h (global_bindings_p): Adjust prototype.
      	* name-lookup.c (global_bindings_p): Return bool.
      fortran/
      	* f95-lang.c (global_bindings_p): Return bool and simplify.
      go/
      	* go-lang.c (global_bindings_p): Return bool and simplify.
      java/
      	* java-tree.h (global_bindings_p): Adjust prototype.
      	* decl.c (global_bindings_p): Return bool.
      lto/
      	* lto-lang.c (global_bindings_p): Return bool.
      
      From-SVN: r173535
      Eric Botcazou committed
  9. 06 May, 2011 2 commits
    • generalize build_case_label to the rest of the compiler · 3d528853
      generalize build_case_label to the rest of the compiler
      gcc/ada/
      	* gcc-interface/trans.c (Case_Statement_to_gnu): Call
      	build_case_label.
      
      gcc/
      	* except.c (sjlj_emit_dispatch_table): Call build_case_label.
      	* gimplify.c (gimplify_switch_expr): Likewise.
      	* omp-low.c (expand_omp_sections): Likewise.
      	* tree-eh.c (lower_try_finally_switch): Likewise.
      	(lower_eh_dispatch): Likewise.
      	* tree.h (build_case_label): Declare.
      	* tree.c (build_case_label): Define.
      
      gcc/c-family/
      	* c-common.c (c_add_case_label): Omit the loc argument to
      	build_case_label.
      	* c-common.h (build_case_label): Remove.
      	* c-semantics.c (build_case_label): Remove.
      
      gcc/cp/
      	* decl.c (finish_case_label): Omit the loc argument to
      	build_case_label.
      
      gcc/fortran/
      	* trans-decl.c (gfc_trans_entry_master_switch): Call build_case_label.
      	* trans-io.c (add_case): Likewise.
      	* trans-stmt.c (gfc_trans_integer_select): Likewise.
      	(gfc_trans_character_select): Likewise.
      
      gcc/go/
      	* go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
      
      gcc/java/
      	* expr.c (expand_java_switch): Call build_case_label.
      	(expand_java_add_case): Likewise.
      
      From-SVN: r173467
      Nathan Froyd committed
    • don't use TYPE_ARG_TYPES in the Ada frontend · d7d058c5
      don't use TYPE_ARG_TYPES in the Ada frontend
      	* gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
      	instead of accessing TYPE_ARG_TYPES directly.
      	* gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
      
      From-SVN: r173466
      Nathan Froyd committed
  10. 05 May, 2011 2 commits
    • re PR ada/48844 (ICE on assignment of aggregate with discriminated record type) · 805e60a0
      	PR ada/48844
      	* gcc-interface/gigi.h (get_variant_part): Declare.
      	* gcc-interface/decl.c (get_variant_part): Make global.
      	* gcc-interface/utils2.c (find_common_type): Do not return T1 if the
      	types have the same constant size, are record types and T1 has a
      	variant part while T2 doesn't.
      
      From-SVN: r173442
      Eric Botcazou committed
    • tree.h (get_pending_sizes): Remove prototype. · 907a08d9
      	* tree.h (get_pending_sizes): Remove prototype.
      	(put_pending_size): Likewise.
      	(put_pending_sizes): Likewise.
      	* stor-layout.c (pending_sizes): Delete.
      	(get_pending_sizes): Likewise.
      	(put_pending_size): Likewise.
      	(put_pending_sizes): Likewise.
      	(variable_size): Do not call put_pending_size and tidy up.
      	* function.h (struct function): Remove dont_save_pending_sizes_p.
      	* lto-streamer-in.c (input_function): Do not stream it.
      	* lto-streamer-out.c (output_function): Likewise.
      	* tree-inline.c (initialize_cfun): Do not copy it.
      	* c-decl.c (store_parm_decls): Do not set it.
      	* omp-low.c (create_task_copyfn): Likewise.
      	* tree-optimize.c (tree_rest_of_compilation): Likewise.
      cp/
      	* decl.c (start_preparsed_function): Likewise.
      fortran/
      	* trans-decl.c (trans_function_start): Likewise.
      ada/
      	* gcc-interface/utils.c (begin_subprog_body): Do not call
      	get_pending_sizes.
      	(end_subprog_body): Likewise.
      
      From-SVN: r173424
      Eric Botcazou committed
  11. 04 May, 2011 1 commit
    • tree.h (int_const_binop): Remove notrunc argument. · d35936ab
      2011-05-04  Richard Guenther  <rguenther@suse.de>
      
      	* tree.h (int_const_binop): Remove notrunc argument.
      	* fold-const.c (int_const_binop): Remove notrunc argument.  Always
      	create integer constants that are properly truncated.
      	(extract_muldiv_1): Expand one notrunc int_const_binop caller.
      	(const_binop): Remove zero notrunc argument to int_const_binop.
      	(size_binop_loc): Likewise.
      	(fold_div_compare): Likewise.
      	(maybe_canonicalize_comparison_1): Likewise.
      	(fold_comparison): Likewise.
      	(fold_binary_loc): Likewise.
      	(multiple_of_p): Likewise.
      	* expr.c (store_constructor): Likewise.
      	* gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
      	(maybe_fold_stmt_addition): Likewise.
      	* ipa-prop.c (ipa_modify_call_arguments): Likewise.
      	* stor-layout.c (layout_type): Likewise.
      	* tree-data-ref.c (tree_fold_divides_p): Likewise.
      	* tree-sra.c (build_ref_for_offset): Likewise.
      	(build_user_friendly_ref_for_offset): Likewise.
      	* tree-ssa-address.c (maybe_fold_tmr): Likewise.
      	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
      	* tree-ssa-loop-niter.c (inverse): Likewise.
      	* tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
      	* tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
      	* tree-switch-conversion.c (check_range): Likewise.
      	(build_constructors): Likewise.
      	* tree-vect-generic.c (expand_vector_piecewise): Likewise.
      	* tree-vrp.c (set_and_canonicalize_value_range): Likewise.
      	(extract_range_from_assert): Likewise.
      	(vrp_int_const_binop): Likewise.
      	(extract_range_from_binary_expr): Likewise.
      	(extract_range_from_unary_expr): Likewise.
      	(check_array_ref): Likewise.
      	(find_case_label_range): Likewise.
      	(simplify_div_or_mod_using_ranges): Likewise.
      	* tree-cfg.c (group_case_labels_stmt): Use double-ints for
      	comparing case labels for merging.
      
      
      	ada/
      	* gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
      	int_const_binop.
      	(pos_to_constructor): Likewise.
      
      	fortran/
      	* trans-types.c (gfc_get_array_type_bounds): Remove zero notrunc
      	argument to int_const_binop.
      
      From-SVN: r173356
      Richard Guenther committed
  12. 03 May, 2011 1 commit
  13. 30 Apr, 2011 1 commit
  14. 29 Apr, 2011 1 commit
  15. 23 Apr, 2011 2 commits
  16. 22 Apr, 2011 2 commits
    • decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE onto the new type. · eb601ae1
      	* gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
      	onto the new type.
      
      From-SVN: r172863
      Eric Botcazou committed
    • gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG parameter. · 7d7fcb08
      	* gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
      	parameter.
      	* gcc-interface/utils.c (create_subprog_decl): Likewise.  Set
      	DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
      	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
      	ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
      	<all>: Do not set flags on the reused DECL node coming from an alias.
      	Set DECL_IGNORED_P on the DECL node built for subprograms if they
      	don't need debug info here...
      	* gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
      	(gigi): Adjust calls to create_subprog_decl.
      	(build_raise_check): Likewise.
      	(establish_gnat_vms_condition_handler): Likewise.
      	(Compilation_Unit_to_gnu): Likewise.
      	(gnat_to_gnu): Likewise.
      
      From-SVN: r172862
      Eric Botcazou committed
  17. 21 Apr, 2011 1 commit
    • Makefile.in (NO_SIBLING_ADAFLAGS): Always define. · e1876cac
      	* gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
      	(NO_REORDER_ADAFLAGS): New variable.
      	(EXTRA_GNATTOOLS): Always define.
      	(../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
      	Clean up and adjust list of files compiled with special options.
      	* gcc-interface/Make-lang.in: Likewise.
      	(ada/decl.o): Cosmetical change.
      	(ada/misc.o): Remove dependency on $(PLUGIN_H).
      
      From-SVN: r172834
      Eric Botcazou committed
  18. 20 Apr, 2011 1 commit
    • remove useless if-before-free tests · 04695783
      Change "if (E) free (E);" to "free (E);" everywhere except in the
      libgo/, intl/, zlib/ and classpath/ directories.
      Also transform equivalent variants like
      "if (E != NULL) free (E);" and allow an extra cast on the
      argument to free.  Otherwise, the tested and freed "E"
      expressions must be identical, modulo white space.
      
      From-SVN: r172785
      Jim Meyering committed
  19. 17 Apr, 2011 2 commits
  20. 14 Apr, 2011 1 commit
    • utils.c (gnat_poplevel): Use block_chainon. · 61e46a7d
      gcc/ada/
      	* gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
      
      gcc/
      	* function.h (block_chainon): Declare.
      	* function.c (block_chainon): Define.
      
      gcc/cp/
      	* decl.c (poplevel): Use block_chainon.
      
      gcc/fortran//
      	* f95-lang.c (poplevel): Use BLOCK_CHAIN and block_chainon.
      
      gcc/java/
      	* decl.c (poplevel): Use BLOCK_CHAIN and block_chainon.
      
      From-SVN: r172418
      Nathan Froyd committed
  21. 13 Apr, 2011 2 commits
    • Fix minor formatting issues · b4867846
      From-SVN: r172364
      Eric Botcazou committed
    • ada-tree.h (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN. · 81f653d6
      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
      Nathan Froyd committed
  22. 12 Apr, 2011 1 commit
    • cgraph.h (cgraph_node): Remove function declaration. · a358e188
      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
      Martin Jambor committed
  23. 08 Apr, 2011 3 commits
  24. 04 Apr, 2011 2 commits
  25. 02 Apr, 2011 4 commits