aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-06-08 22:37:53 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2015-06-08 20:37:53 +0000
commit6542950e80b2ac7edbdba43f5147b15df282012e (patch)
tree508f4d43c761a49c59562b9a85f928d521013284 /gcc/ipa-utils.h
parent97ded4cd2072029ac4d6d86e5b6eb5225961a27d (diff)
downloadgcc-6542950e80b2ac7edbdba43f5147b15df282012e.zip
gcc-6542950e80b2ac7edbdba43f5147b15df282012e.tar.gz
gcc-6542950e80b2ac7edbdba43f5147b15df282012e.tar.bz2
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
Diffstat (limited to 'gcc/ipa-utils.h')
-rw-r--r--gcc/ipa-utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h
index a171c56..27b54ac 100644
--- a/gcc/ipa-utils.h
+++ b/gcc/ipa-utils.h
@@ -86,7 +86,8 @@ bool types_must_be_same_for_odr (tree, tree);
bool types_odr_comparable (tree, tree, bool strict = false);
cgraph_node *try_speculative_devirtualization (tree, HOST_WIDE_INT,
ipa_polymorphic_call_context);
-void warn_types_mismatch (tree t1, tree t2);
+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);