In killing TYPE_METHODS I discovered this useless check. We already cull these ctors from the methods just after creating the struct.

bootstrap with the continue turned into gcc_unreachable worked just fine.

applied to trunk.

nathan
--
Nathan Sidwell
2017-07-11  Nathan Sidwell  <nat...@acm.org>

        * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.

Index: dwarf2out.c
===================================================================
--- dwarf2out.c (revision 250090)
+++ dwarf2out.c (working copy)
@@ -24207,10 +24207,6 @@ gen_member_die (tree type, dw_die_ref co
        /* 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)

Reply via email to