From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99450 invoked by alias); 27 Jul 2017 08:30:49 -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 98599 invoked by uid 89); 27 Jul 2017 08:30:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: paperclip.tbsaunde.org Received: from tbsaunde.org (HELO paperclip.tbsaunde.org) (66.228.47.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Jul 2017 08:30:39 +0000 Received: from keg.fios-router.home. (pool-98-116-146-128.nycmny.fios.verizon.net [98.116.146.128]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id 0E7EEC0A4 for ; Thu, 27 Jul 2017 08:30:38 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Subject: [PATCH 07/19] replace gimple_alloc_stat with c++ Date: Thu, 27 Jul 2017 08:30:00 -0000 Message-Id: <20170727083026.23716-8-tbsaunde+gcc@tbsaunde.org> In-Reply-To: <20170727083026.23716-1-tbsaunde+gcc@tbsaunde.org> References: <20170727083026.23716-1-tbsaunde+gcc@tbsaunde.org> X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg01760.txt.bz2 From: Trevor Saunders gcc/ChangeLog: 2017-07-27 Trevor Saunders * gimple.c (gimple_build_with_ops_stat): Adjust. (gimple_alloc_stat): Remove _stat from name. * gimple.h (gimple_alloc): Remove macro. --- gcc/gimple.c | 4 ++-- gcc/gimple.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/gimple.c b/gcc/gimple.c index 479f90c54c9..13a68284879 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -117,7 +117,7 @@ gimple_size (enum gimple_code code) operands. */ gimple * -gimple_alloc_stat (enum gimple_code code, unsigned num_ops MEM_STAT_DECL) +gimple_alloc (enum gimple_code code, unsigned num_ops MEM_STAT_DECL) { size_t size; gimple *stmt; @@ -169,7 +169,7 @@ static gimple * gimple_build_with_ops_stat (enum gimple_code code, unsigned subcode, unsigned num_ops MEM_STAT_DECL) { - gimple *s = gimple_alloc_stat (code, num_ops PASS_MEM_STAT); + gimple *s = gimple_alloc (code, num_ops PASS_MEM_STAT); gimple_set_subcode (s, subcode); return s; diff --git a/gcc/gimple.h b/gcc/gimple.h index 2d81eedab4a..d9945648215 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1417,8 +1417,7 @@ extern enum gimple_statement_structure_enum const gss_for_code_[]; of comminucating the profile info to the builtin expanders. */ extern gimple *currently_expanding_gimple_stmt; -#define gimple_alloc(c, n) gimple_alloc_stat (c, n MEM_STAT_INFO) -gimple *gimple_alloc_stat (enum gimple_code, unsigned MEM_STAT_DECL); +gimple *gimple_alloc (enum gimple_code, unsigned CXX_MEM_STAT_INFO); greturn *gimple_build_return (tree); void gimple_call_reset_alias_info (gcall *); gcall *gimple_build_call_vec (tree, vec ); -- 2.11.0