[Bug ipa/65908] [5/6 Regression] ICE: in expand_thunk, at cgraphunit.c:1700

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 27 23:09:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65908

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that IPA ICF compares the return type and argument types by
looking at TREE_TYPE of DECL_RESULT (or PARM_DECLs from DECL_ARGUMENTS), but
that is modified by cp_genericize.
So, either in addition to comparing the types it should also compare
DECL_BY_REFERENCE values of RESULT_DECL and PARM_DECLs, or it should also (or
only?) look at TREE_TYPE of the FUNCTION_TYPE/METHOD_TYPE and/or TYPE_ARG_TYPES
of that).



More information about the Gcc-bugs mailing list