dwarf2out.c (scope_die_for): Set scope_die to comp_unit_die rather than asserting it.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 25 Feb 1999 21:26:06 +0000 (21:26 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 25 Feb 1999 21:26:06 +0000 (16:26 -0500)
* dwarf2out.c (scope_die_for): Set scope_die to comp_unit_die
rather than asserting it.

From-SVN: r25448

gcc/ChangeLog
gcc/dwarf2out.c

index 9a6ef2c77c9ceb0f1fef0a9d0aeb7b4235bb4f41..75379f96bd006c8ab15a986e86d209e4220c048d 100644 (file)
@@ -1,3 +1,8 @@
+Thu Feb 25 21:23:06 1999  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * dwarf2out.c (scope_die_for): Set scope_die to comp_unit_die
+       rather than asserting it.
+
 Thu Feb 25 23:33:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * cppexp.c (left_shift, right_shift, parse_charconst, COMPARE,
@@ -333,7 +338,6 @@ Fri Feb 19 18:18:56 1999  Don Bowman  <don@pixstream.com>
        * configure.in (mips*-*-vxworks*): Enable gthreads vxworks support.
        * configure: Rebuilt.
 
->>>>>>> 1.3049
 Sun Feb 21 20:34:44 PST 1999 Jeff Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index 48331b9e789e47edee1d5124eb5d27b452388c44..2045ff4ce582b50cb4f6c2fd2a9f94715d9124c2 100644 (file)
@@ -7682,12 +7682,14 @@ scope_die_for (t, context_die)
 
       if (i < 0)
        {
-         if (scope_die != comp_unit_die
-             || TREE_CODE_CLASS (TREE_CODE (containing_scope)) != 't')
+         if (TREE_CODE_CLASS (TREE_CODE (containing_scope)) != 't')
            abort ();
          if (debug_info_level > DINFO_LEVEL_TERSE
              && !TREE_ASM_WRITTEN (containing_scope))
            abort ();
+
+         /* If none of the current dies are suitable, we get file scope.  */
+         scope_die = comp_unit_die;
        }
     }