From: Jan Hubicka Date: Thu, 25 Feb 2016 12:10:04 +0000 (+0100) Subject: re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402) X-Git-Tag: basepoints/gcc-7~760 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf1fcb76fb5e8064316ef40d3c563c8d8e3fdc36;p=thirdparty%2Fgcc.git re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402) PR ipa/69630 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE on builtin_unreachable. From-SVN: r233711 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e360d57f468..9daf0c01ce72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-02-25 Jan Hubicka + + PR ipa/69630 + * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE + on builtin_unreachable. + 2016-02-25 Jakub Jelinek PR rtl-optimization/69896 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index b2036d550f04..deb2a274b7b0 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -3181,6 +3181,7 @@ possible_polymorphic_call_targets (tree otr_type, { if (complete && nodes.length () == 1 + && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE && warn_suggest_final_types && !outer_type->derived_types.length ()) {