From 87ccbd329a4c6e1824b6266b4e9d9cc265e0c32d Mon Sep 17 00:00:00 2001 From: wilson Date: Tue, 25 Jan 2000 00:58:58 +0000 Subject: 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 --- gcc/dwarf2out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/dwarf2out.c') 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; -- cgit v1.2.1