Commit 98ed4b49 by Jim Wilson

(dbxout_symbol, TYPE_DECL case): Don't output tag which

references incomplete type.

From-SVN: r3050
parent 4ba0ff2d
...@@ -1512,7 +1512,10 @@ dbxout_symbol (decl, local) ...@@ -1512,7 +1512,10 @@ dbxout_symbol (decl, local)
did_output = 1; did_output = 1;
} }
if (tag_needed && TYPE_NAME (type) != 0 /* 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. */
if (tag_needed && 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