]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR lto/69630 (LTO ICE in types_same_for_odr at ipa-devirt.c:402)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 10 Mar 2016 16:05:59 +0000 (17:05 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 10 Mar 2016 16:05:59 +0000 (16:05 +0000)
PR ipa/69630
* ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
on cxa_pure_virtual.

From-SVN: r234114

gcc/ChangeLog
gcc/ipa-devirt.c

index df399095f085b0c68f7b94d9a5f83852ab743feb..f65902b9c0ffe9bf98cfc592e714145118bb26a2 100644 (file)
@@ -1,3 +1,9 @@
+2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/69630
+       * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
+       on cxa_pure_virtual.
+
 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
 
        PR lto/69589
index 2da5c013cf5f8e5ce53ce8f701f282455ce7edf0..e4fb56210f6aef15288e15c761f4ff6b5cb3677d 100644 (file)
@@ -3177,11 +3177,11 @@ possible_polymorphic_call_targets (tree otr_type,
 
          if (!outer_type->all_derivations_known)
            {
-             if (!speculative && final_warning_records)
+             if (!speculative && final_warning_records
+                 && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE)
                {
                  if (complete
                      && nodes.length () == 1
-                     && TREE_CODE (TREE_TYPE (nodes[0]->decl)) == METHOD_TYPE
                      && warn_suggest_final_types
                      && !outer_type->derived_types.length ())
                    {