From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11826 invoked by alias); 27 Oct 2014 20:52:33 -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 11779 invoked by uid 89); 27 Oct 2014 20:52:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 27 Oct 2014 20:52:32 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xir1j-00084X-1y for gcc-patches@gcc.gnu.org; Mon, 27 Oct 2014 16:36:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xir1i-00083a-P7 for gcc-patches@gcc.gnu.org; Mon, 27 Oct 2014 16:36:30 -0400 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 s9RKZU3s004598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 27 Oct 2014 16:35:30 -0400 Received: from c64.redhat.com (vpn-236-51.phx2.redhat.com [10.3.236.51]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9RKYt5g021050; Mon, 27 Oct 2014 16:35:29 -0400 From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [gimple-classes, committed 58/92] Concretize gimple_catch_types Date: Mon, 27 Oct 2014 20:53:00 -0000 Message-Id: <1414442490-14841-59-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1414442490-14841-1-git-send-email-dmalcolm@redhat.com> References: <1414442490-14841-1-git-send-email-dmalcolm@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg02853.txt.bz2 This corresponds to: [PATCH 60/89] Concretize gimple_catch_types https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01195.html from the original 89-patch kit That earlier patch was approved by Jeff: > OK once prerequisites have gone in. in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00816.html gcc/ * gimple.h (gimple_catch_types): Require a const_gimple_catch rather than a const_gimple. --- gcc/ChangeLog.gimple-classes | 7 +++++++ gcc/gimple.h | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog.gimple-classes b/gcc/ChangeLog.gimple-classes index dd735af..d2bc077 100644 --- a/gcc/ChangeLog.gimple-classes +++ b/gcc/ChangeLog.gimple-classes @@ -1,5 +1,12 @@ 2014-10-24 David Malcolm + Concretize gimple_catch_types + + * gimple.h (gimple_catch_types): Require a const_gimple_catch + rather than a const_gimple. + +2014-10-24 David Malcolm + Make gimple_goto_set_dest require a gimple_goto * gimple.h (gimple_goto_set_dest): Require a gimple_goto. diff --git a/gcc/gimple.h b/gcc/gimple.h index fc80407..18cfcec 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -3522,13 +3522,11 @@ gimple_asm_input_p (const_gimple_asm asm_stmt) } -/* Return the types handled by GIMPLE_CATCH statement GS. */ +/* Return the types handled by GIMPLE_CATCH statement CATCH_STMT. */ static inline tree -gimple_catch_types (const_gimple gs) +gimple_catch_types (const_gimple_catch catch_stmt) { - const gimple_statement_catch *catch_stmt = - as_a (gs); return catch_stmt->types; } -- 1.8.5.3