projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba0ff2
)
(dbxout_symbol, TYPE_DECL case): Don't output tag which
author
Jim Wilson
<wilson@gcc.gnu.org>
Sat, 2 Jan 1993 00:50:19 +0000
(16:50 -0800)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Sat, 2 Jan 1993 00:50:19 +0000
(16:50 -0800)
references incomplete type.
From-SVN: r3050
gcc/dbxout.c
patch
|
blob
|
history
diff --git
a/gcc/dbxout.c
b/gcc/dbxout.c
index fe7887d3bf7767b1448a811119970269480d79bc..e12f5cc0b2a475a4a0228a23b6698f12ff73108f 100644
(file)
--- 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,