re PR target/63892 (gcc.dg/sibcall-3.c fails on darwin with -m32)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Feb 2015 16:44:37 +0000 (17:44 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Feb 2015 16:44:37 +0000 (17:44 +0100)
commit8b0487010cf07edbb687ff160f396c7ff6b4634a
tree1aac1fdd174fd5584d63847f808a929765efc3ec
parentfc3b4ab3432e471e6ea666702b3375f59e039b11
re PR target/63892 (gcc.dg/sibcall-3.c fails on darwin with -m32)

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.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r220875
gcc/ChangeLog
gcc/ipa-icf.c