re PR ipa/65908 (ICE: in expand_thunk, at cgraphunit.c:1700)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 22 Jun 2015 07:12:22 +0000 (09:12 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 22 Jun 2015 07:12:22 +0000 (07:12 +0000)
commit1628e36bcf93a88d29885dd4e47e44ba80f909c6
tree181883c54c895a0afe9404a8d38108c40f3e86c7
parent7083621fad0baad1dfcbb6ab42bea360879c2081
re PR ipa/65908 (ICE: in expand_thunk, at cgraphunit.c:1700)

PR ipa/65908
* ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
construction of arg_types.
(sem_function::sem_function): Likewise.
(sem_function::~sem_function): Remove destruction of arg_types.
(sem_function::compatible_parm_types_p): New function.
(sem_function::equals_wpa): Reorg matching of return values
and parameter types.
(sem_function::equals_private): Reorg mathcing of argument types.
(sem_function::parse_tree_args): Remove.
* ipa-icf.h (init_wpa): Do not call it.
(parse_tree_args): Remove.
(compatible_parm_types_p): Declare.
(result_type): Remove.
(arg_types): Remove.
* testsuite/g++.dg/ipa/pr65908.C: New testcase.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r224720
gcc/ChangeLog
gcc/ipa-icf.c
gcc/ipa-icf.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr65908.C [new file with mode: 0644]