aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-04-18 22:05:10 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-04-18 20:05:10 +0000
commit5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba (patch)
tree29f0656cd05994bfb603266f4d10242ddf7c4852 /gcc
parent8953574fa9a0398611d76a9ff2b8a3bc981f9c68 (diff)
downloadgcc-5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba.zip
gcc-5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba.tar.gz
gcc-5722ce75437dd48d2cbaf8ad8cc12f6c4e7dfaba.tar.bz2
Revert r25841.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/ipa-devirt.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 43bba1b..ccb0070 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index bdda7d6..bec0c01 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;