diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-01-01 16:50:19 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-01-01 16:50:19 -0800 |
commit | 98ed4b49d96b59fbfef2edab4eaf1441a5e14612 (patch) | |
tree | 38d584c3c9ee7a778a15283d8f13a0c699513587 | |
parent | 4ba0ff2dd1030bb12fb26c76302a11969e8b79e0 (diff) | |
download | gcc-98ed4b49d96b59fbfef2edab4eaf1441a5e14612.zip gcc-98ed4b49d96b59fbfef2edab4eaf1441a5e14612.tar.gz gcc-98ed4b49d96b59fbfef2edab4eaf1441a5e14612.tar.bz2 |
(dbxout_symbol, TYPE_DECL case): Don't output tag which
references incomplete type.
From-SVN: r3050
-rw-r--r-- | gcc/dbxout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index fe7887d..e12f5cc 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, |