From: wilson Date: Tue, 25 Jan 2000 00:58:58 +0000 (+0000) Subject: Fix mips EABI/dwarf2 segfault while compiling newlib. X-Git-Tag: upstream/4.9.2~103562 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87ccbd329a4c6e1824b6266b4e9d9cc265e0c32d;p=platform%2Fupstream%2Flinaro-gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8faec20..c7b1b6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 24 16:56:10 2000 Jim Wilson + + * dwarf2out.c (gen_struct_or_union_type_die): Set complete if + TYPE_STUB_DECL is NULL. + 2000-01-24 Richard Henderson * builtins.c (expand_tree_builtin): Move ... diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3fcc05f..9c36e7e 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;