summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-25 00:58:58 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-25 00:58:58 +0000
commit87ccbd329a4c6e1824b6266b4e9d9cc265e0c32d (patch)
treed039537abf274a7b92aa7dd0909d98c45aab4f12 /gcc/dwarf2out.c
parent605fb01effeefdb677b2e17911371aace97606c0 (diff)
downloadgcc-87ccbd329a4c6e1824b6266b4e9d9cc265e0c32d.tar.gz
Fix mips EABI/dwarf2 segfault while compiling newlib.
* dwarf2out.c (gen_struct_or_union_type_die): Set complete if TYPE_STUB_DECL is NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 3fcc05f18d6..9c36e7e43fe 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -8922,7 +8922,8 @@ gen_struct_or_union_type_die (type, context_die)
register dw_die_ref scope_die = 0;
register int nested = 0;
int complete = (TYPE_SIZE (type)
- && ! TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (type)));
+ && (! TYPE_STUB_DECL (type)
+ || ! TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (type))));
if (type_die && ! complete)
return;