From 5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 18 Apr 2018 22:05:10 +0200 Subject: [PATCH] Revert r25841. 2018-04-18 Martin Liska Revert 2018-03-13 Eric Botcazou PR lto/84805 * ipa-devirt.c (odr_subtypes_equivalent_p): Do not get the ODR type of incomplete types. From-SVN: r259477 --- gcc/ChangeLog | 9 +++++++++ gcc/ipa-devirt.c | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43bba1bc970..ccb00701284 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2018-04-18 Martin Liska + + Revert + 2018-03-13 Eric Botcazou + + 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 PR target/85388 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index bdda7d6b4a9..bec0c01ea09 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -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; -- 2.30.2