Revert r25841.
authorMartin Liska <mliska@suse.cz>
Wed, 18 Apr 2018 20:05:10 +0000 (22:05 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 18 Apr 2018 20:05:10 +0000 (20:05 +0000)
2018-04-18  Martin Liska  <mliska@suse.cz>

Revert
2018-03-13  Eric Botcazou  <ebotcazou@adacore.com>

PR lto/84805
* ipa-devirt.c (odr_subtypes_equivalent_p): Do not get the ODR type of
incomplete types.

From-SVN: r259477

gcc/ChangeLog
gcc/ipa-devirt.c

index 43bba1bc970a7f817611e13ee77c89ec690256bc..ccb007012841c0f24589f1ffaa19efa48b1f3aa4 100644 (file)
@@ -1,3 +1,12 @@
+2018-04-18  Martin Liska  <mliska@suse.cz>
+
+       Revert
+       2018-03-13  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR lto/84805
+       * ipa-devirt.c (odr_subtypes_equivalent_p): Do not get the ODR type of
+       incomplete types.
+
 2018-04-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/85388
index bdda7d6b4a97ef314bfb6ce6a19a602c121a8169..bec0c01ea09c7ef727f57e526f815da049110bb2 100644 (file)
@@ -690,8 +690,6 @@ odr_subtypes_equivalent_p (tree t1, tree t2,
         therefore which call will report the ODR violation, if any.  */
         if (!odr_type_p (t1)
             || !odr_type_p (t2)
-            || !COMPLETE_TYPE_P (t1)
-            || !COMPLETE_TYPE_P (t2)
             || (!get_odr_type (t1, true)->odr_violated
                 && !get_odr_type (t2, true)->odr_violated))
         return true;