From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15306 invoked by alias); 5 Sep 2014 01:47:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 15175 invoked by uid 89); 5 Sep 2014 01:47:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS 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; Fri, 05 Sep 2014 01:47:03 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s851l1r1029090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 4 Sep 2014 21:47:01 -0400 Received: from c64.redhat.com (vpn-228-103.phx2.redhat.com [10.3.228.103]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s851kw8f012763; Thu, 4 Sep 2014 21:47:00 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 03/10] for_each_eh_label callbacks take an rtx_code_label Date: Fri, 05 Sep 2014 01:47:00 -0000 Message-Id: <1409881927-61672-4-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1409881927-61672-1-git-send-email-dmalcolm@redhat.com> References: <1409881927-61672-1-git-send-email-dmalcolm@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00426.txt.bz2 gcc/ * except.c (for_each_eh_label): Within param "callback", strengthen param from rtx to rtx_code_label *. Strengthen local "lab" from rtx to rtx_code_label *. Remove redundant check on LABEL_P (lab), since this is known from the type rtx_code_label *. * except.h (for_each_eh_label): Within param "callback", strengthen param from rtx to rtx_code_label *. * reload1.c (set_initial_eh_label_offset): Strengthen param "label" from rtx to rtx_code_label *. --- gcc/except.c | 6 +++--- gcc/except.h | 2 +- gcc/reload1.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/except.c b/gcc/except.c index fecc060..55941a0 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1629,7 +1629,7 @@ remove_unreachable_eh_regions (sbitmap r_reachable) Only used by reload hackery; should not be used by new code. */ void -for_each_eh_label (void (*callback) (rtx)) +for_each_eh_label (void (*callback) (rtx_code_label *)) { eh_landing_pad lp; int i; @@ -1638,8 +1638,8 @@ for_each_eh_label (void (*callback) (rtx)) { if (lp) { - rtx lab = lp->landing_pad; - if (lab && LABEL_P (lab)) + rtx_code_label *lab = lp->landing_pad; + if (lab) (*callback) (lab); } } diff --git a/gcc/except.h b/gcc/except.h index 3259151..f47f996 100644 --- a/gcc/except.h +++ b/gcc/except.h @@ -223,7 +223,7 @@ struct GTY(()) eh_status /* Invokes CALLBACK for every exception handler label. Only used by old loop hackery; should not be used by new code. */ -extern void for_each_eh_label (void (*) (rtx)); +extern void for_each_eh_label (void (*) (rtx_code_label *)); extern void init_eh_for_function (void); diff --git a/gcc/reload1.c b/gcc/reload1.c index c18ee67..fff6d1f 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -3894,7 +3894,7 @@ set_initial_elim_offsets (void) /* Subroutine of set_initial_label_offsets called via for_each_eh_label. */ static void -set_initial_eh_label_offset (rtx label) +set_initial_eh_label_offset (rtx_code_label *label) { set_label_offsets (label, NULL, 1); } -- 1.8.5.3