re PR lto/65378 (Tweak to wording of -Wodr message)
authorJan Hubicka <hubicka@ucw.cz>
Mon, 8 Jun 2015 20:37:53 +0000 (22:37 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 8 Jun 2015 20:37:53 +0000 (20:37 +0000)
commit6542950e80b2ac7edbdba43f5147b15df282012e
tree508f4d43c761a49c59562b9a85f928d521013284
parent97ded4cd2072029ac4d6d86e5b6eb5225961a27d
re PR lto/65378 (Tweak to wording of -Wodr message)

PR lto/65378
* ipa-utils.h (warn_types_mismatch): Update prototype.
* ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
parameters.
(type_mismatch_p): New function.
(warn_types_mismatch): Reorg to work better on non-C++ types.
(odr_types_equivalent_p): Add loc1/loc2 parameters.
(add_type_duplicate): Update.
* lto-symtab.c (warn_type_compatibility_p): Fix call of
odr_or_derived_type_p.
(lto_symtab_merge_decls_2): Update call of warn_types_mismatch.

From-SVN: r224248
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-utils.h
gcc/lto/ChangeLog
gcc/lto/lto-symtab.c