From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100496 invoked by alias); 27 Jul 2017 08:30:59 -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 99612 invoked by uid 89); 27 Jul 2017 08:30:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_FAIL autolearn=ham version=3.3.2 spammy= 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 ESMTP; Thu, 27 Jul 2017 08:30:49 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daeBw-0007OJ-5a for gcc-patches@gcc.gnu.org; Thu, 27 Jul 2017 04:30:45 -0400 Received: from tbsaunde.org ([66.228.47.254]:50072 helo=paperclip.tbsaunde.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daeBv-0007Kv-VQ for gcc-patches@gcc.gnu.org; Thu, 27 Jul 2017 04:30:44 -0400 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 9A647C0E3 for ; Thu, 27 Jul 2017 08:30:43 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Subject: [PATCH 14/19] replace rtx_alloc_stat with c++ Date: Thu, 27 Jul 2017 08:30:00 -0000 Message-Id: <20170727083026.23716-15-tbsaunde+gcc@tbsaunde.org> In-Reply-To: <20170727083026.23716-1-tbsaunde+gcc@tbsaunde.org> References: <20170727083026.23716-1-tbsaunde+gcc@tbsaunde.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.228.47.254 X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg01762.txt.bz2 From: Trevor Saunders gcc/ChangeLog: 2017-07-27 Trevor Saunders * emit-rtl.c (gen_raw_REG): Adjust. * gengenrtl.c (gendef): Likewise. * rtl.c (rtx_alloc_stat): Remove _stat from name. * rtl.h (rtx_alloc): Remove macro. --- gcc/emit-rtl.c | 2 +- gcc/gengenrtl.c | 2 +- gcc/rtl.c | 2 +- gcc/rtl.h | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 2bc5d566933..6951f61703b 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -433,7 +433,7 @@ set_mode_and_regno (rtx x, machine_mode mode, unsigned int regno) rtx gen_raw_REG (machine_mode mode, unsigned int regno) { - rtx x = rtx_alloc_stat (REG MEM_STAT_INFO); + rtx x = rtx_alloc (REG MEM_STAT_INFO); set_mode_and_regno (x, mode, regno); REG_ATTRS (x) = NULL; ORIGINAL_REGNO (x) = regno; diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c index 19381be38d2..e23327b5cfc 100644 --- a/gcc/gengenrtl.c +++ b/gcc/gengenrtl.c @@ -250,7 +250,7 @@ gendef (const char *format) the memory and initializes it. */ puts ("{"); puts (" rtx rt;"); - puts (" rt = rtx_alloc_stat (code PASS_MEM_STAT);\n"); + puts (" rt = rtx_alloc (code PASS_MEM_STAT);\n"); puts (" PUT_MODE_RAW (rt, mode);"); diff --git a/gcc/rtl.c b/gcc/rtl.c index 1f6a77aa08e..b91172f63fa 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -223,7 +223,7 @@ rtx_alloc_stat_v (RTX_CODE code MEM_STAT_DECL, int extra) all the rest is initialized to zero. */ rtx -rtx_alloc_stat (RTX_CODE code MEM_STAT_DECL) +rtx_alloc (RTX_CODE code MEM_STAT_DECL) { return rtx_alloc_stat_v (code PASS_MEM_STAT, 0); } diff --git a/gcc/rtl.h b/gcc/rtl.h index e63dcf042cb..1f4b6413ca1 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2705,8 +2705,7 @@ extern HOST_WIDE_INT trunc_int_for_mode (HOST_WIDE_INT, machine_mode); extern rtx plus_constant (machine_mode, rtx, HOST_WIDE_INT, bool = false); /* In rtl.c */ -extern rtx rtx_alloc_stat (RTX_CODE MEM_STAT_DECL); -#define rtx_alloc(c) rtx_alloc_stat (c MEM_STAT_INFO) +extern rtx rtx_alloc (RTX_CODE CXX_MEM_STAT_INFO); extern rtx rtx_alloc_stat_v (RTX_CODE MEM_STAT_DECL, int); #define rtx_alloc_v(c, SZ) rtx_alloc_stat_v (c MEM_STAT_INFO, SZ) #define const_wide_int_alloc(NWORDS) \ -- 2.11.0