]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa-devirt.c
tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC on builtin types.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 12 Jul 2014 15:34:45 +0000 (17:34 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 12 Jul 2014 15:34:45 +0000 (15:34 +0000)
commitc59f7203283d1faa48a42075eef2a07ca0454a21
tree1adb11d45425fbb14d0386855458008952151853
parent3720cb58e82397f33d85e92ef37aa2665b650f55
tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC on builtin types.

* tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
on builtin types.
* ipa-devirt.c: Include stor-layout.h and intl.h
(odr_subtypes_equivalent_p): New function.
(warn_odr): New function.
(warn_type_mismatch): New function.
(odr_types_equivalent_p): New function.
(add_type_duplicate): Use it.
* common.opt (Wodr): New flag.
* doc/invoke.texi (Wodr): Document new warning.

From-SVN: r212481
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/ipa-devirt.c
gcc/tree.c