From 98ed4b49d96b59fbfef2edab4eaf1441a5e14612 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 1 Jan 1993 16:50:19 -0800 Subject: [PATCH] (dbxout_symbol, TYPE_DECL case): Don't output tag which references incomplete type. From-SVN: r3050 --- gcc/dbxout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.30.2