aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2017-07-29 01:38:31 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2017-07-29 01:38:31 +0000
commit9e2d7f46043ddf1353694a9f7c126a8aff4d0187 (patch)
tree9cd5bb17b7125c9b13c5e1388cb0b52539bfaf47
parent9f896a4520d6cf6f19b7aeeb1057bf2770ce4d64 (diff)
downloadgcc-9e2d7f46043ddf1353694a9f7c126a8aff4d0187.zip
gcc-9e2d7f46043ddf1353694a9f7c126a8aff4d0187.tar.gz
gcc-9e2d7f46043ddf1353694a9f7c126a8aff4d0187.tar.bz2
replace gimple_alloc_stat with c++
gcc/ChangeLog: 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * gimple.c (gimple_build_with_ops_stat): Adjust. (gimple_alloc_stat): Remove _stat from name. * gimple.h (gimple_alloc): Remove macro. From-SVN: r250700
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gimple.c4
-rw-r--r--gcc/gimple.h3
3 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 69204a8..6423ec5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+ * gimple.c (gimple_build_with_ops_stat): Adjust.
+ (gimple_alloc_stat): Remove _stat from name.
+ * gimple.h (gimple_alloc): Remove macro.
+
+2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
* tree.c (make_tree_vec_stat): Remove _stat from name.
(grow_tree_vec_stat): Likewise.
* tree.h (make_tree_vec_stat): Adjust prototype.
diff --git a/gcc/gimple.c b/gcc/gimple.c
index 479f90c..13a6828 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 2d81eed..d994564 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<tree> );