From: Trevor Saunders Date: Sat, 29 Jul 2017 01:38:31 +0000 (+0000) Subject: replace gimple_alloc_stat with c++ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e2d7f46043ddf1353694a9f7c126a8aff4d0187;p=gcc.git replace gimple_alloc_stat with c++ gcc/ChangeLog: 2017-07-28 Trevor Saunders * gimple.c (gimple_build_with_ops_stat): Adjust. (gimple_alloc_stat): Remove _stat from name. * gimple.h (gimple_alloc): Remove macro. From-SVN: r250700 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69204a82e8d..6423ec5878b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-07-28 Trevor Saunders + + * 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 * tree.c (make_tree_vec_stat): Remove _stat from name. diff --git a/gcc/gimple.c b/gcc/gimple.c index 479f90c54c9..13a68284879 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 2d81eedab4a..d9945648215 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 );