ipa-utils.h (warn_types_mismatch, [...]): Declare.
authorJan Hubicka <hubicka@gcc.gnu.org>
Sat, 16 May 2015 23:19:23 +0000 (23:19 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 16 May 2015 23:19:23 +0000 (23:19 +0000)
* ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
odr_types_equivalent_p): Declare.
(odr_type_p): Use gcc_checking_assert.
(type_in_anonymous_namespace_p) Declare.
(type_with_linkage_p): Declare.
* common.opt (Wlto-type-mismatch): New warning.
* ipa-devirt.c (compound_type_base): New function.
(odr_or_derived_type_p): New function.
(odr_types_equivalent_p): New function.
(add_type_duplicate): Simplify.
(type_with_linkage_p): Add hack to prevent false positives on C types
(type_in_anonymous_namespace_p): Likewise.
* tree.c (need_assembler_name_p): Use type_with_linkage.
* tree.h (type_in_anonymous_namespace_p): Remove.
* doc/invoke.texi (-Wlto-type-mismatch): Document

From-SVN: r223259

gcc/ChangeLog

index 58f37f124f2cf3236950e0e7542ed4d8a694f42d..ee7f737e16df8b62f9c6f4ec63a82cf2b3208731 100644 (file)
@@ -1,3 +1,21 @@
+2015-05-16  Jan HUbicka  <hubicka@ucw.cz>
+
+       * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
+       odr_types_equivalent_p): Declare.
+       (odr_type_p): Use gcc_checking_assert.
+       (type_in_anonymous_namespace_p) Declare.
+       (type_with_linkage_p): Declare.
+       * common.opt (Wlto-type-mismatch): New warning.
+       * ipa-devirt.c (compound_type_base): New function.
+       (odr_or_derived_type_p): New function.
+       (odr_types_equivalent_p): New function.
+       (add_type_duplicate): Simplify.
+       (type_with_linkage_p): Add hack to prevent false positives on C types
+       (type_in_anonymous_namespace_p): Likewise.
+       * tree.c (need_assembler_name_p): Use type_with_linkage.
+       * tree.h (type_in_anonymous_namespace_p): Remove.
+       * doc/invoke.texi (-Wlto-type-mismatch): Document
+
 2015-05-16  Jan HUbicka  <hubicka@ucw.cz>
 
        * tree.c (verify_type_variant): Verify tree_base and type_common flags.