From 22a7303de24b120c7124d0b2a4ad778bd452319e Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 29 Jul 2017 01:39:25 +0000 Subject: [PATCH] replace shallow_copy_rtx_stat with c++ gcc/ChangeLog: 2017-07-28 Trevor Saunders * rtl.c (shallow_copy_rtx_stat): Remove _stat from name. * rtl.h (shallow_copy_rtx): Remove macro. From-SVN: r250708 --- gcc/ChangeLog | 5 +++++ gcc/rtl.c | 2 +- gcc/rtl.h | 3 +-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e369dd5..7e3ea64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-07-28 Trevor Saunders + * rtl.c (shallow_copy_rtx_stat): Remove _stat from name. + * rtl.h (shallow_copy_rtx): Remove macro. + +2017-07-28 Trevor Saunders + * emit-rtl.c (gen_raw_REG): Adjust. * gengenrtl.c (gendef): Likewise. * rtl.c (rtx_alloc_stat): Remove _stat from name. diff --git a/gcc/rtl.c b/gcc/rtl.c index b91172f..b0f977e 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -359,7 +359,7 @@ copy_rtx (rtx orig) /* Create a new copy of an rtx. Only copy just one level. */ rtx -shallow_copy_rtx_stat (const_rtx orig MEM_STAT_DECL) +shallow_copy_rtx (const_rtx orig MEM_STAT_DECL) { const unsigned int size = rtx_size (orig); rtx const copy = ggc_alloc_rtx_def_stat (size PASS_MEM_STAT); diff --git a/gcc/rtl.h b/gcc/rtl.h index 1f4b641..8a68bb1 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2725,8 +2725,7 @@ extern rtx copy_rtx_if_shared (rtx); /* In rtl.c */ extern unsigned int rtx_size (const_rtx); -extern rtx shallow_copy_rtx_stat (const_rtx MEM_STAT_DECL); -#define shallow_copy_rtx(a) shallow_copy_rtx_stat (a MEM_STAT_INFO) +extern rtx shallow_copy_rtx (const_rtx CXX_MEM_STAT_INFO); extern int rtx_equal_p (const_rtx, const_rtx); extern bool rtvec_all_equal_p (const_rtvec); -- 2.7.4