aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-03-31 19:03:16 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2015-03-31 17:03:16 +0000
commit36ceb0e3ccbac8324601234546210239d334bb0a (patch)
treee83e1c3818fcf99d82f667f00483358bf46c0078 /gcc/tree.c
parent12cc8c723ed0dccdbb6b2b590706b1344d468c55 (diff)
downloadgcc-36ceb0e3ccbac8324601234546210239d334bb0a.zip
gcc-36ceb0e3ccbac8324601234546210239d334bb0a.tar.gz
gcc-36ceb0e3ccbac8324601234546210239d334bb0a.tar.bz2
tree.c (need_assembler_name_p): Artificial types have no ODR names.
* tree.c (need_assembler_name_p): Artificial types have no ODR names. * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when no caching is done. * lto.c (lto_read_decls): Move code registering odr types out of TYPE_CANONICAL conditional and also register polymorphic types. From-SVN: r221797
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 0b8e896..151e3e2 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5139,6 +5139,7 @@ need_assembler_name_p (tree decl)
&& decl == TYPE_NAME (TREE_TYPE (decl))
&& !is_lang_specific (TREE_TYPE (decl))
&& AGGREGATE_TYPE_P (TREE_TYPE (decl))
+ && !TYPE_ARTIFICIAL (TREE_TYPE (decl))
&& !variably_modified_type_p (TREE_TYPE (decl), NULL_TREE)
&& !type_in_anonymous_namespace_p (TREE_TYPE (decl)))
return !DECL_ASSEMBLER_NAME_SET_P (decl);