re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 25 Feb 2016 12:10:04 +0000 (13:10 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 25 Feb 2016 12:10:04 +0000 (12:10 +0000)
PR ipa/69630
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on builtin_unreachable.

From-SVN: r233711

gcc/ChangeLog
gcc/ipa-devirt.c

index 4e360d57f4681ddf8bf4164329b892a14667a5fd..9daf0c01ce72bee44ae65fa6568a92713291266f 100644 (file)
@@ -1,3 +1,9 @@
+2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/69630
+       * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
+       on builtin_unreachable.
+
 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/69896
index b2036d550f0494d769abacf699bbd346e6d48bca..deb2a274b7b0390d32362cff1a23d70823bb21f6 100644 (file)
@@ -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 ())
                    {