OSDN Git Service

Fix mips EABI/dwarf2 segfault while compiling newlib.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2000 00:58:58 +0000 (00:58 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2000 00:58:58 +0000 (00:58 +0000)
* 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/ChangeLog
gcc/dwarf2out.c

index 8faec20..c7b1b6a 100644 (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 ...
index 3fcc05f..9c36e7e 100644 (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;