Commit 84c2ad23 by Trevor Saunders Committed by Trevor Saunders

replace rtx_alloc_stat with c++

gcc/ChangeLog:

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

	* 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.

From-SVN: r250707
parent 623ee285
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* 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.
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree.c (build_tree_list_vec_stat): Remove _stat from name. * tree.c (build_tree_list_vec_stat): Remove _stat from name.
(build_tree_list_stat): Likewise. (build_tree_list_stat): Likewise.
* tree.h (build_tree_list): Remove macro. * tree.h (build_tree_list): Remove macro.
......
...@@ -433,7 +433,7 @@ set_mode_and_regno (rtx x, machine_mode mode, unsigned int regno) ...@@ -433,7 +433,7 @@ set_mode_and_regno (rtx x, machine_mode mode, unsigned int regno)
rtx rtx
gen_raw_REG (machine_mode mode, unsigned int regno) 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); set_mode_and_regno (x, mode, regno);
REG_ATTRS (x) = NULL; REG_ATTRS (x) = NULL;
ORIGINAL_REGNO (x) = regno; ORIGINAL_REGNO (x) = regno;
......
...@@ -250,7 +250,7 @@ gendef (const char *format) ...@@ -250,7 +250,7 @@ gendef (const char *format)
the memory and initializes it. */ the memory and initializes it. */
puts ("{"); puts ("{");
puts (" rtx rt;"); 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);"); puts (" PUT_MODE_RAW (rt, mode);");
......
...@@ -223,7 +223,7 @@ rtx_alloc_stat_v (RTX_CODE code MEM_STAT_DECL, int extra) ...@@ -223,7 +223,7 @@ rtx_alloc_stat_v (RTX_CODE code MEM_STAT_DECL, int extra)
all the rest is initialized to zero. */ all the rest is initialized to zero. */
rtx 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); return rtx_alloc_stat_v (code PASS_MEM_STAT, 0);
} }
......
...@@ -2705,8 +2705,7 @@ extern HOST_WIDE_INT trunc_int_for_mode (HOST_WIDE_INT, machine_mode); ...@@ -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); extern rtx plus_constant (machine_mode, rtx, HOST_WIDE_INT, bool = false);
/* In rtl.c */ /* In rtl.c */
extern rtx rtx_alloc_stat (RTX_CODE MEM_STAT_DECL); extern rtx rtx_alloc (RTX_CODE CXX_MEM_STAT_INFO);
#define rtx_alloc(c) rtx_alloc_stat (c MEM_STAT_INFO)
extern rtx rtx_alloc_stat_v (RTX_CODE MEM_STAT_DECL, int); 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 rtx_alloc_v(c, SZ) rtx_alloc_stat_v (c MEM_STAT_INFO, SZ)
#define const_wide_int_alloc(NWORDS) \ #define const_wide_int_alloc(NWORDS) \
......
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