diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-12-24 12:12:42 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-12-24 11:12:42 +0000 |
commit | d840d7a2bbbfd97d054baa7462ada09215d93974 (patch) | |
tree | cab919fda937ce1b1f3730f8c18624be83205c8f /gcc/ipa-devirt.c | |
parent | c23f39f8481305a53216bf0f4b8b33e637157387 (diff) |
lto-symtab.c (lto_symtab_merge_decls_2): Do not report ODR violations for method whose basetype was already reported.
* lto-symtab.c (lto_symtab_merge_decls_2): Do not report ODR violations
for method whose basetype was already reported.
* ipa-devirt.c (odr_type_violation_reported_p): New.
* ipa-utils.h (odr_type_violation_reported_p): Declare.
From-SVN: r267397
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r-- | gcc/ipa-devirt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index ac907aa5fd2..0f42d124fe3 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -2152,6 +2152,12 @@ get_odr_type (tree type, bool insert) return val; } +bool +odr_type_violation_reported_p (tree type) +{ + return get_odr_type (type, false)->odr_violated; +} + /* Add TYPE od ODR type hash. */ void |