https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63892
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Feb 20 16:44:37 2015 New Revision: 220875 URL: https://gcc.gnu.org/viewcvs?rev=220875&root=gcc&view=rev Log: PR target/63892 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl), don't try to create_thunk if stdarg_p. If !sem_item::target_supports_symbol_aliases_p (), similarly, and try to redirect_callers if possible. (sem_item_optimizer::execute): Call unregister_hooks here... (ipa_icf_driver): ... instead of here. Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-icf.c