Commit bf6ed040 by Richard Kenner

(dbxout_symbol): Properly handle decl whose DECL_NAME points to a

TYPE_DECL with a zero TYPE_NAME.

From-SVN: r9171
parent 9f9fba36
...@@ -1676,7 +1676,10 @@ dbxout_symbol (decl, local) ...@@ -1676,7 +1676,10 @@ dbxout_symbol (decl, local)
/* Don't output a tag if this is an incomplete type (TYPE_SIZE is /* Don't output a tag if this is an incomplete type (TYPE_SIZE is
zero). This prevents the sun4 Sun OS 4.x dbx from crashing. */ zero). This prevents the sun4 Sun OS 4.x dbx from crashing. */
if (tag_needed && TYPE_NAME (type) != 0 && TYPE_SIZE (type) != 0 if (tag_needed && TYPE_NAME (type) != 0
&& (TREE_CODE (TYPE_NAME (type)) == IDENTIFIER_NODE
|| (DECL_NAME (TYPE_NAME (type)) != 0))
&& TYPE_SIZE (type) != 0
&& !TREE_ASM_WRITTEN (TYPE_NAME (type))) && !TREE_ASM_WRITTEN (TYPE_NAME (type)))
{ {
/* For a TYPE_DECL with no name, but the type has a name, /* For a TYPE_DECL with no name, but the type has a name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment