* [debug-early] remove unused argument from check_die
@ 2015-01-05 19:08 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2015-01-05 19:08 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 21 bytes --]
Committed to branch.
[-- Attachment #2: curr --]
[-- Type: text/plain, Size: 1090 bytes --]
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.
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));
}
\f
@@ -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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-05 19:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 19:08 [debug-early] remove unused argument from check_die Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).