Commit 22a7303d by Trevor Saunders Committed by Trevor Saunders

replace shallow_copy_rtx_stat with c++

gcc/ChangeLog:

2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
	* rtl.h (shallow_copy_rtx): Remove macro.

From-SVN: r250708
parent 84c2ad23
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
* rtl.h (shallow_copy_rtx): Remove macro.
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* emit-rtl.c (gen_raw_REG): Adjust. * emit-rtl.c (gen_raw_REG): Adjust.
* gengenrtl.c (gendef): Likewise. * gengenrtl.c (gendef): Likewise.
* rtl.c (rtx_alloc_stat): Remove _stat from name. * rtl.c (rtx_alloc_stat): Remove _stat from name.
......
...@@ -359,7 +359,7 @@ copy_rtx (rtx orig) ...@@ -359,7 +359,7 @@ copy_rtx (rtx orig)
/* Create a new copy of an rtx. Only copy just one level. */ /* Create a new copy of an rtx. Only copy just one level. */
rtx 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); const unsigned int size = rtx_size (orig);
rtx const copy = ggc_alloc_rtx_def_stat (size PASS_MEM_STAT); rtx const copy = ggc_alloc_rtx_def_stat (size PASS_MEM_STAT);
......
...@@ -2725,8 +2725,7 @@ extern rtx copy_rtx_if_shared (rtx); ...@@ -2725,8 +2725,7 @@ extern rtx copy_rtx_if_shared (rtx);
/* In rtl.c */ /* In rtl.c */
extern unsigned int rtx_size (const_rtx); extern unsigned int rtx_size (const_rtx);
extern rtx shallow_copy_rtx_stat (const_rtx MEM_STAT_DECL); extern rtx shallow_copy_rtx (const_rtx CXX_MEM_STAT_INFO);
#define shallow_copy_rtx(a) shallow_copy_rtx_stat (a MEM_STAT_INFO)
extern int rtx_equal_p (const_rtx, const_rtx); extern int rtx_equal_p (const_rtx, const_rtx);
extern bool rtvec_all_equal_p (const_rtvec); extern bool rtvec_all_equal_p (const_rtvec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment