From patchwork Mon Jan 5 19:07:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 425403 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C03221400A0 for ; Tue, 6 Jan 2015 06:08:10 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=j2aEgeHq9oUxpVLseNeMJTTmHq1yJ4t9wT1RpBwOx9V8to 8or06nLsDgv9Nlh/ttGIoGsEYV9t4KE358BpslFmLu9pUOg4h2SARRnY5zCJgeYi ILalJEJzpom+wgjZyqyDduIqlIO8h8l9OWZvtsSJmSBp+292vVEQITQ9w9w1k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=bZNqwjaybd2YO/m6iPZk1EbP/qs=; b=JrAhTUPQr7/IUJ0EK8sQ +KH8eapuFnMITEz/tnwejeGldGw4/XFGCenEP/8telC8VcmTLh/qyr+JsbFlgnpQ qRfSoLckKkfhgtw1Fm6u3LyAhmgvqbmSTDyQY3zWBwsniue6IAyXbDrfMKqAe8XW OIriTVO+1xbZ1iVI+N95X+o= Received: (qmail 23549 invoked by alias); 5 Jan 2015 19:08:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 23540 invoked by uid 89); 5 Jan 2015 19:08:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 05 Jan 2015 19:08:01 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t05J7x0P032065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 5 Jan 2015 14:07:59 -0500 Received: from reynosa.quesejoda.com (vpn-50-142.rdu2.redhat.com [10.10.50.142]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t05J7wVP024696 for ; Mon, 5 Jan 2015 14:07:59 -0500 Message-ID: <54AAE10D.5090208@redhat.com> Date: Mon, 05 Jan 2015 11:07:57 -0800 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: gcc-patches Subject: [debug-early] remove unused argument from check_die Committed to branch. commit d176e84cc283bb0505e487341128b6f48599199d Author: Aldy Hernandez 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)); } @@ -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. */