Commit 65e1263a by Jim Wilson Committed by Jim Wilson

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
parent 5eda3d66
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 ...
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment