Tue Nov 19 07:53:55 1991 Fred Fish (fnf at cygnus.com)
+ * dwarfread.c (enum_type, struct_type): Ignore names invented by
+ helpful compilers for anonymous structs, unions, and enums.
+
* c-exp.y, m2-exp.y: Add defines for yymaxdepth, yy_yys, and
yy_yyv, so multiple parsers produced by SVR4 versions of yacc
can coexist in the same executable without collision.
TYPE_CODE (type) = TYPE_CODE_UNDEF;
break;
}
- if (dip -> at_name == NULL)
+ /* Some compilers try to be helpful by inventing "fake" names for anonymous
+ enums, structures, and unions, like "~0fake". Thanks, but no thanks. */
+ if (dip -> at_name == NULL || *dip -> at_name == '~')
{
tpart2 = "{...}";
}
}
TYPE_CODE (type) = TYPE_CODE_ENUM;
tpart1 = "enum ";
- if (dip -> at_name == NULL)
+ /* Some compilers try to be helpful by inventing "fake" names for anonymous
+ enums, structures, and unions, like "~0fake". Thanks, but no thanks. */
+ if (dip -> at_name == NULL || *dip -> at_name == '~')
{
tpart2 = "{...}";
} else {