r221406 - in /trunk/gcc: ChangeLog ipa-icf-gimp...

hubicka@gcc.gnu.org hubicka@gcc.gnu.org
Fri Mar 13 06:30:00 GMT 2015


Author: hubicka
Date: Fri Mar 13 06:30:04 2015
New Revision: 221406

URL: https://gcc.gnu.org/viewcvs?rev=221406&root=gcc&view=rev
Log:

	* ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
	and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
	are building; for methods check ODR type of class they belong to if
	they may lead to a polymorphic call.
	(sem_function::compare_polymorphic_p): Be bit smarter about testing
	when function may lead to a polymorphic call.
	(sem_function::compare_type_list): Remove.
	(sem_variable::equals): Update use of compatible_types_p.
	(sem_variable::parse_tree_refs): Remove.
	(sem_item_optimizer::filter_removed_items): Do not filter out CXX
	cdtor.
	* ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
	matching here.
	(func_checker::compatible_polymorphic_types_p): Break out from ...
	(unc_checker::compatible_types_p): ... here.
	* ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
	Declare.
	(unc_checker::compatible_types_p): Update.
	* ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
	Remove.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-icf-gimple.c
    trunk/gcc/ipa-icf-gimple.h
    trunk/gcc/ipa-icf.c
    trunk/gcc/ipa-icf.h



More information about the Gcc-cvs mailing list