dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin) rather than...
authorJason Merrill <jason@casey.cygnus.com>
Thu, 10 Feb 2000 22:10:36 +0000 (22:10 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 10 Feb 2000 22:10:36 +0000 (17:10 -0500)
        * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
        rather than die->die_tag.

From-SVN: r31905

gcc/ChangeLog
gcc/dwarf2out.c

index 705f84c..18da8ab 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-10  Jason Merrill  <jason@casey.cygnus.com>
+
+       * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
+       rather than die->die_tag.
+
 Thu Feb 10 16:26:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * combine.c (make_extraction, force_to_mode): Avoid warning on
index c363869..b12dc0a 100644 (file)
@@ -7395,7 +7395,7 @@ add_abstract_origin_attribute (die, origin)
 {
   dw_die_ref origin_die = NULL;
 
-  if (die->die_tag != DW_TAG_subprogram)
+  if (TREE_CODE (origin) != FUNCTION_DECL)
     {
       /* We may have gotten separated from the block for the inlined
         function, if we're in an exception handler or some such; make