Skip to content
Snippets Groups Projects
  • Diego Novillo's avatar
    4537ec0c
    [multiple changes] · 4537ec0c
    Diego Novillo authored
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* c-lang.c (lang_hooks): Remove const qualifier.
    
    java/ChangeLog
    
    	* lang.c (lang_hooks): Remove const qualifier.
    
    objc/ChangeLog
    
    	* objc-lang.c (lang_hooks): Remove const qualifier.
    
    objcp/ChangeLog
    
    	* objcp-lang.c (lang_hooks): Remove const qualifier.
    
    ada/ChangeLog
    
    	* gcc-interface/misc.c (lang_hooks): Remove const qualifier.
    
    fortran/ChangeLog
    
    	* f95-lang.c (lang_hooks): Remove const qualifier.
    
    cp/ChangeLog
    
    	* cp-lang.c (lang_hooks): Remove const qualifier.
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* cgraph.c (cgraph_node_for_decl): New.
    	* cgraph.h (cgraph_node_for_decl): Declare.
    	* tree.c (host_integerp): Return 0 if T is NULL.
    
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* tree.h (struct alias_pair): Move from varasm.c.
    	(alias_pairs): Likewise.
    	(TYPE_MAXVAL): Define.
    	(TYPE_MINVAL): Define.
    	(iterative_hash_host_wide_int): Declare.
    	(remove_unreachable_alias_pairs): Declare.
    	* tree-pass.h (pass_ipa_free_lang_data): Declare.
    	* diagnostic.c (default_diagnostic_starter): Make extern.
    	(default_diagnostic_finalizer): Make extern.
    	* diagnostic.h (default_diagnostic_starter): Declare.
    	(default_diagnostic_finalizer): Declare.
    	(default_tree_printer): Declare.
    	* toplev.c (default_tree_printer): Make extern.
    
    
    2009-09-01  Richard Guenther  <rguenther@suse.de>
    	    Diego Novillo  <dnovillo@google.com>
    
    	* cgraph.c (cgraph_add_new_function): Remove gimplification.
    	* cgraphunit.c (cgraph_expand_function): Do not emit
    	associated thunks from here.
    	(cgraph_emit_thunks): New.
    	(cgraph_optimize): Call it.
    	Return if any IPA pass finds an error.
    	* varasm.c (finish_aliases_1): Ignore errorneous aliases used
    	by thunks.
    
    
    2009-09-01  Simon Baldwin  <simonb@google.com>
    	    Rafael Espindola  <espindola@google.com>
    	    Richard Guenther  <rguenther@suse.de>
    	    Doug Kwan  <dougkwan@google.com>
    	    Diego Novillo  <dnovillo@google.com>
    
    	* tree.c: Include tree-pass.h, langhooks-def.h,
    	diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
    	(free_lang_data_in_type): New.
    	(need_assembler_name_p): New.
    	(free_lang_data_in_block): New.
    	(free_lang_data_in_decl): New.
    	(struct free_lang_data_d): New.
    	(add_tree_to_fld_list): New.
    	(find_decls_types_r): New.
    	(get_eh_types_for_runtime): New.
    	(find_decls_types_in_eh_region): New.
    	(find_decls_types_in_node): New.
    	(find_decls_types_in_var): New.
    	(free_lang_data_in_cgraph): New.
    	(free_lang_data): New.
    	(gate_free_lang_data): New.
    	(pass_ipa_free_lang_data): New.
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* timevar.def (TV_IPA_FREE_LANG_DATA): Define.
    	* langhooks.h (struct lang_hooks): Add field free_lang_data.
    	(lang_hooks): Remove const qualifier.
    	* ipa.c (cgraph_remove_unreachable_nodes): Call
    	remove_unreachable_alias_pairs.
    	* except.c (add_type_for_runtime): Check if TYPE has
    	already been converted.
    	(lookup_type_for_runtime): Likewise.
    	(check_handled): Handle converted types.
    	* varasm.c (remove_unreachable_alias_pairs): New.
    	* gimple.c: Include demangle.h.
    	(gimple_decl_printable_name): New.
    	(gimple_fold_obj_type_ref): New.
    	* gimple.h (gimple_decl_printable_name): Declare.
    	(gimple_fold_obj_type_ref): Declare.
    	* passes.c (init_optimization_passes): Add pass
    	pass_ipa_free_lang_data.
    	* langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
    	(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
    
    testsuite/ChangeLog
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* gcc.dg/gomp/combined-1.c: Adjust expected pattern.
    	* g++.dg/tree-prof/inline_mismatch_args.C: Likewise.
    	* g++.dg/warn/unit-1.C: Likewise.
    	* g++.dg/ipa/iinline-1.C: Likewise.
    	* g++.dg/template/cond2.C: Adjust expected line location for the
    	error.
    	* g++.dg/template/pr35240.C: Likewise.
    
    
    cp/ChangeLog
    
    2009-09-01  Doug Kwan  <dougkwan@google.com>
    
    	* tree.c (cp_fix_function_decl_p): New.
    	(cp_free_lang_data): New.
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* Make-lang.in (decl2.o): Add dependency on $(POINTER_SET_H).
    	* decl2.c: Include pointer-set.h.
    	(collect_candidates_for_java_method_aliases): New.
    	(cp_write_global_declarations): Call it.
    	Add local variable CANDIDATES.  If set, call
    	build_java_method_aliases.
    	(build_java_method_aliases): Add argument CANDIDATES.
    	Use it to determine if FNDECL should get a hidden alias.
    	* cp-objcp-common.h (LANG_HOOKS_FREE_LANG_DATA): Define.
    	* cp-tree.h (cp_free_lang_data): Declare.
    
    2009-09-03  Richard Guenther  <rguenther@suse.de>
    
    	* method.c (use_thunk): Use cgraph_finalize_function to hand
    	off thunks to the cgraph.
    	* semantics.c (emit_associated_thunks): Do not emit thunks
    	for really extern functions.
    
    From-SVN: r151360
    4537ec0c
    History
    [multiple changes]
    Diego Novillo authored
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* c-lang.c (lang_hooks): Remove const qualifier.
    
    java/ChangeLog
    
    	* lang.c (lang_hooks): Remove const qualifier.
    
    objc/ChangeLog
    
    	* objc-lang.c (lang_hooks): Remove const qualifier.
    
    objcp/ChangeLog
    
    	* objcp-lang.c (lang_hooks): Remove const qualifier.
    
    ada/ChangeLog
    
    	* gcc-interface/misc.c (lang_hooks): Remove const qualifier.
    
    fortran/ChangeLog
    
    	* f95-lang.c (lang_hooks): Remove const qualifier.
    
    cp/ChangeLog
    
    	* cp-lang.c (lang_hooks): Remove const qualifier.
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* cgraph.c (cgraph_node_for_decl): New.
    	* cgraph.h (cgraph_node_for_decl): Declare.
    	* tree.c (host_integerp): Return 0 if T is NULL.
    
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* tree.h (struct alias_pair): Move from varasm.c.
    	(alias_pairs): Likewise.
    	(TYPE_MAXVAL): Define.
    	(TYPE_MINVAL): Define.
    	(iterative_hash_host_wide_int): Declare.
    	(remove_unreachable_alias_pairs): Declare.
    	* tree-pass.h (pass_ipa_free_lang_data): Declare.
    	* diagnostic.c (default_diagnostic_starter): Make extern.
    	(default_diagnostic_finalizer): Make extern.
    	* diagnostic.h (default_diagnostic_starter): Declare.
    	(default_diagnostic_finalizer): Declare.
    	(default_tree_printer): Declare.
    	* toplev.c (default_tree_printer): Make extern.
    
    
    2009-09-01  Richard Guenther  <rguenther@suse.de>
    	    Diego Novillo  <dnovillo@google.com>
    
    	* cgraph.c (cgraph_add_new_function): Remove gimplification.
    	* cgraphunit.c (cgraph_expand_function): Do not emit
    	associated thunks from here.
    	(cgraph_emit_thunks): New.
    	(cgraph_optimize): Call it.
    	Return if any IPA pass finds an error.
    	* varasm.c (finish_aliases_1): Ignore errorneous aliases used
    	by thunks.
    
    
    2009-09-01  Simon Baldwin  <simonb@google.com>
    	    Rafael Espindola  <espindola@google.com>
    	    Richard Guenther  <rguenther@suse.de>
    	    Doug Kwan  <dougkwan@google.com>
    	    Diego Novillo  <dnovillo@google.com>
    
    	* tree.c: Include tree-pass.h, langhooks-def.h,
    	diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
    	(free_lang_data_in_type): New.
    	(need_assembler_name_p): New.
    	(free_lang_data_in_block): New.
    	(free_lang_data_in_decl): New.
    	(struct free_lang_data_d): New.
    	(add_tree_to_fld_list): New.
    	(find_decls_types_r): New.
    	(get_eh_types_for_runtime): New.
    	(find_decls_types_in_eh_region): New.
    	(find_decls_types_in_node): New.
    	(find_decls_types_in_var): New.
    	(free_lang_data_in_cgraph): New.
    	(free_lang_data): New.
    	(gate_free_lang_data): New.
    	(pass_ipa_free_lang_data): New.
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* timevar.def (TV_IPA_FREE_LANG_DATA): Define.
    	* langhooks.h (struct lang_hooks): Add field free_lang_data.
    	(lang_hooks): Remove const qualifier.
    	* ipa.c (cgraph_remove_unreachable_nodes): Call
    	remove_unreachable_alias_pairs.
    	* except.c (add_type_for_runtime): Check if TYPE has
    	already been converted.
    	(lookup_type_for_runtime): Likewise.
    	(check_handled): Handle converted types.
    	* varasm.c (remove_unreachable_alias_pairs): New.
    	* gimple.c: Include demangle.h.
    	(gimple_decl_printable_name): New.
    	(gimple_fold_obj_type_ref): New.
    	* gimple.h (gimple_decl_printable_name): Declare.
    	(gimple_fold_obj_type_ref): Declare.
    	* passes.c (init_optimization_passes): Add pass
    	pass_ipa_free_lang_data.
    	* langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
    	(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
    
    testsuite/ChangeLog
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* gcc.dg/gomp/combined-1.c: Adjust expected pattern.
    	* g++.dg/tree-prof/inline_mismatch_args.C: Likewise.
    	* g++.dg/warn/unit-1.C: Likewise.
    	* g++.dg/ipa/iinline-1.C: Likewise.
    	* g++.dg/template/cond2.C: Adjust expected line location for the
    	error.
    	* g++.dg/template/pr35240.C: Likewise.
    
    
    cp/ChangeLog
    
    2009-09-01  Doug Kwan  <dougkwan@google.com>
    
    	* tree.c (cp_fix_function_decl_p): New.
    	(cp_free_lang_data): New.
    
    2009-09-01  Diego Novillo  <dnovillo@google.com>
    
    	* Make-lang.in (decl2.o): Add dependency on $(POINTER_SET_H).
    	* decl2.c: Include pointer-set.h.
    	(collect_candidates_for_java_method_aliases): New.
    	(cp_write_global_declarations): Call it.
    	Add local variable CANDIDATES.  If set, call
    	build_java_method_aliases.
    	(build_java_method_aliases): Add argument CANDIDATES.
    	Use it to determine if FNDECL should get a hidden alias.
    	* cp-objcp-common.h (LANG_HOOKS_FREE_LANG_DATA): Define.
    	* cp-tree.h (cp_free_lang_data): Declare.
    
    2009-09-03  Richard Guenther  <rguenther@suse.de>
    
    	* method.c (use_thunk): Use cgraph_finalize_function to hand
    	off thunks to the cgraph.
    	* semantics.c (emit_associated_thunks): Do not emit thunks
    	for really extern functions.
    
    From-SVN: r151360