Fix dwarf2out abort found while compiling PlumHall on IA-64.
authorJim Wilson <wilson@cygnus.com>
Fri, 28 Jul 2000 03:43:13 +0000 (03:43 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 28 Jul 2000 03:43:13 +0000 (20:43 -0700)
* dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
DECL_INITIAL (decl) == NULL_TREE.

From-SVN: r35310

gcc/ChangeLog
gcc/dwarf2out.c

index f8e2ea55c9ad799acddde45d36752b6d98672d63..01dd21f1270a51d02bb6b3d3fbd28a7d7b9b2b76 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-27  Jim Wilson  <wilson@cygnus.com>
+
+       * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
+       DECL_INITIAL (decl) == NULL_TREE.
+
 2000-07-27  Alexandre Oliva  <aoliva@redhat.com>
 
        * Makefile.in (INSN_ATTR_H): New macro.  Replace all dependencies
index 6b04b7775059a7d7a5567e2ddb9ca7ce6283fc68..8918783c41c7881054803aa4256017eaec1084e2 100644 (file)
@@ -9675,7 +9675,11 @@ gen_decl_die (decl, context_die)
       /* If we're emitting an out-of-line copy of an inline function,
         emit info for the abstract instance and set up to refer to it.  */
       if (DECL_INLINE (decl) && ! DECL_ABSTRACT (decl)
-         && ! class_scope_p (context_die))
+         && ! class_scope_p (context_die)
+         /* gen_abstract_function won't emit a die if this is just a
+            declaration.  We must avoid setting DECL_ABSTRACT_ORIGIN in
+            that case, because that works only if we have a die.  */
+         && DECL_INITIAL (decl) != NULL_TREE)
        {
          gen_abstract_function (decl);
          set_decl_origin_self (decl);