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-utils.h | |
parent | c23f39f8481305a53216bf0f4b8b33e637157387 (diff) | |
download | gcc-d840d7a2bbbfd97d054baa7462ada09215d93974.zip gcc-d840d7a2bbbfd97d054baa7462ada09215d93974.tar.gz gcc-d840d7a2bbbfd97d054baa7462ada09215d93974.tar.bz2 |
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-utils.h')
-rw-r--r-- | gcc/ipa-utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h index 371b2fb..b586935 100644 --- a/gcc/ipa-utils.h +++ b/gcc/ipa-utils.h @@ -90,6 +90,7 @@ void warn_types_mismatch (tree t1, tree t2, location_t loc1 = UNKNOWN_LOCATION, location_t loc2 = UNKNOWN_LOCATION); bool odr_or_derived_type_p (const_tree t); bool odr_types_equivalent_p (tree type1, tree type2); +bool odr_type_violation_reported_p (tree type); /* Return vector containing possible targets of polymorphic call E. If COMPLETEP is non-NULL, store true if the list is complete. |