From ab192193fcf61cf8a73356ba61ab8dcc66e73d7e Mon Sep 17 00:00:00 2001 From: marxin Date: Wed, 18 Apr 2018 20:05:10 +0000 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259477 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.11.4.GIT