Fix mips EABI/dwarf2 segfault while compiling newlib.

* dwarf2out.c (gen_struct_or_union_type_die): Set complete if
	TYPE_STUB_DECL is NULL.

From-SVN: r31599
This commit is contained in:
Jim Wilson 2000-01-25 00:58:58 +00:00 committed by Jim Wilson
parent 5eda3d66aa
commit 65e1263a0d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
* dwarf2out.c (gen_struct_or_union_type_die): Set complete if
TYPE_STUB_DECL is NULL.
2000-01-24 Richard Henderson <rth@cygnus.com>
* builtins.c (expand_tree_builtin): Move ...

View file

@ -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;