From f83fba1eb04daebd632647c2a2220f4f2af45027 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 13 Sep 2014 18:12:20 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 1 + 2 files changed, 6 insertions(+) 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. */ -- 2.30.2