diff options
author | Jan Hubicka <jh@suse.cz> | 2018-10-26 09:20:01 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-10-26 07:20:01 +0000 |
commit | 420672bc92e560bcebf12bdd1f3423362c93bf2e (patch) | |
tree | e87d7b82e66cbef3db48d8aa3b1869ae4fe53d64 /gcc/tree.h | |
parent | 99976e2700062d03a06412a92b345741f735deff (diff) | |
download | gcc-420672bc92e560bcebf12bdd1f3423362c93bf2e.zip gcc-420672bc92e560bcebf12bdd1f3423362c93bf2e.tar.gz gcc-420672bc92e560bcebf12bdd1f3423362c93bf2e.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -4958,8 +4958,7 @@ extern tree block_ultimate_origin (const_tree); extern tree get_binfo_at_offset (tree, poly_int64, tree); extern bool virtual_method_call_p (const_tree); extern tree obj_type_ref_class (const_tree ref); -extern bool types_same_for_odr (const_tree type1, const_tree type2, - bool strict=false); +extern bool types_same_for_odr (const_tree type1, const_tree type2); extern bool contains_bitfld_component_ref_p (const_tree); extern bool block_may_fallthru (const_tree); extern void using_eh_for_cleanups (void); |