From: Jim Wilson Date: Sat, 2 Jan 1993 00:50:19 +0000 (-0800) Subject: (dbxout_symbol, TYPE_DECL case): Don't output tag which X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98ed4b49d96b59fbfef2edab4eaf1441a5e14612;p=gcc.git (dbxout_symbol, TYPE_DECL case): Don't output tag which references incomplete type. From-SVN: r3050 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index fe7887d3bf7..e12f5cc0b2a 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1512,7 +1512,10 @@ dbxout_symbol (decl, local) 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))) { /* For a TYPE_DECL with no name, but the type has a name,