]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa-devirt.c (warn_odr): Make static.
authorJan Hubicka <jh@suse.cz>
Fri, 26 Oct 2018 07:20:01 +0000 (09:20 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 26 Oct 2018 07:20:01 +0000 (07:20 +0000)
commit420672bc92e560bcebf12bdd1f3423362c93bf2e
treee87d7b82e66cbef3db48d8aa3b1869ae4fe53d64
parent99976e2700062d03a06412a92b345741f735deff
ipa-devirt.c (warn_odr): Make static.

* ipa-devirt.c (warn_odr): Make static.
(types_same_for_odr): Drop strict variant.
(types_odr_comparable): Likewise.
(odr_or_derived_type_p): Look for main variants.
(odr_name_hasher::equal): Cleanup comment.
(odr_subtypes_equivalent): Add warn and warned arguments; check main
variants.
(type_variants_equivalent_p): break out from ...
(odr_types_equivalent): ... here; go for main variants where needed.
(warn_odr): ... here; turn static.
(warn_types_mismatch): Compare mangled names of main variants.
* ipa-utils.h (types_odr_comparable): Drop strict parameter.
(type_with_linkage_p): Sanity check that we look at main variant.
* lto.c (lto_read_decls): Only consider main variant to be ODR type.
* tree.h (types_same_for_odr): Drop strict argument.

From-SVN: r265519
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/ipa-utils.h
gcc/lto/lto.c
gcc/tree.h