summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-06 02:24:38 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-06 02:24:38 +0000
commit2b89ba2d35c26e10b1bdbbbf68aae402bfb9a04c (patch)
tree2579afedfc3001f0194141f8e203af7662b07db9 /gcc/dwarf2out.c
parented723026f6db736b003b7d45a9ab77d8e96bdc04 (diff)
downloadgcc-2b89ba2d35c26e10b1bdbbbf68aae402bfb9a04c.tar.gz
Fix gdb.cp/anon-struct.cc with -std=c++11.
gcc/ * dwarf2out.c (gen_member_die): Don't emit anything for an anonymous class constructor. gcc/cp/ * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a maybe-in-charge constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index ddca2a83df4..cb2656c4285 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -19951,6 +19951,10 @@ gen_member_die (tree type, dw_die_ref context_die)
/* Don't include clones in the member list. */
if (DECL_ABSTRACT_ORIGIN (member))
continue;
+ /* Nor constructors for anonymous classes. */
+ if (DECL_ARTIFICIAL (member)
+ && dwarf2_name (member, 0) == NULL)
+ continue;
child = lookup_decl_die (member);
if (child)