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
This commit is contained in:
Jan Hubicka 2014-09-13 18:12:20 +02:00 committed by Jan Hubicka
parent 3e89572920
commit f83fba1eb0
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-09-13 Jan Hubicka <hubicka@ucw.cz>
* tree.c (need_assembler_name_p): Store C++ type mangling only
for aggregates.
2014-09-13 Marek Polacek <polacek@redhat.com>
* tree.c (protected_set_expr_location): Don't check whether T is

View File

@ -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. */