From: Jan Hubicka Date: Sat, 13 Sep 2014 16:12:20 +0000 (+0200) Subject: tree.c (need_assembler_name_p): Store C++ type mangling only for aggregates. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f83fba1eb04daebd632647c2a2220f4f2af45027;p=gcc.git tree.c (need_assembler_name_p): Store C++ type mangling only for aggregates. * tree.c (need_assembler_name_p): Store C++ type mangling only for aggregates. From-SVN: r215238 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba99610df88..0a329285e7e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-13 Jan Hubicka + + * tree.c (need_assembler_name_p): Store C++ type mangling only + for aggregates. + 2014-09-13 Marek Polacek * tree.c (protected_set_expr_location): Don't check whether T is diff --git a/gcc/tree.c b/gcc/tree.c index f999a3bbdbe..87a222fde30 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5002,6 +5002,7 @@ need_assembler_name_p (tree decl) && DECL_NAME (decl) && decl == TYPE_NAME (TREE_TYPE (decl)) && !is_lang_specific (TREE_TYPE (decl)) + && AGGREGATE_TYPE_P (TREE_TYPE (decl)) && !type_in_anonymous_namespace_p (TREE_TYPE (decl))) return !DECL_ASSEMBLER_NAME_SET_P (decl); /* Only FUNCTION_DECLs and VAR_DECLs are considered. */