[debug-early] remove unused argument from check_die
diff mbox

Message ID 54AAE10D.5090208@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez Jan. 5, 2015, 7:07 p.m. UTC
Committed to branch.
commit d176e84cc283bb0505e487341128b6f48599199d
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Mon Jan 5 11:06:44 2015 -0800

    	* dwarf2out.c (check_die): Remove level argument.
    	(dwarf2out_decl): Remove level argument to check_die.

Patch
diff mbox

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8e0886c..9d60d88 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5619,7 +5619,7 @@  check_die_inline (dw_die_ref die)
    earlier in the compilation process.  */
 
 static void
-check_die (dw_die_ref die, unsigned level)
+check_die (dw_die_ref die)
 {
   static unsigned long mark = 1;
   dw_die_ref c, p;
@@ -5653,11 +5653,6 @@  check_die (dw_die_ref die, unsigned level)
 	c->die_abbrev = mark;
       } while (1);
     }
-
-  if (!level)
-    return;
-
-  FOR_EACH_CHILD (die, c, check_die (c, level - 1));
 }
 
 
@@ -21656,7 +21651,7 @@  dwarf2out_decl (tree decl)
 
   dw_die_ref die = lookup_decl_die (decl);
   if (die)
-    check_die (die, 0);
+    check_die (die);
 #ifdef ENABLE_CHECKING
   /* If we early created a DIE, make sure it didn't get re-created by
      mistake.  */