From 4bd2de4b4544d5fcc1d2dca8a54923cbbcf47e7d Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 29 Jul 2017 01:38:12 +0000 Subject: [PATCH] use c++ for make_int_cst_stat gcc/ChangeLog: 2017-07-28 Trevor Saunders * tree.c (make_int_cst_stat): Remove _stat from name. * tree.h (make_int_cst_stat): Adjust prototype. (make_int_cst): Remove macro. From-SVN: r250697 --- gcc/ChangeLog | 6 ++++++ gcc/tree.c | 2 +- gcc/tree.h | 4 +--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1af425279aa..cc4e8bc9dfd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-07-28 Trevor Saunders + + * tree.c (make_int_cst_stat): Remove _stat from name. + * tree.h (make_int_cst_stat): Adjust prototype. + (make_int_cst): Remove macro. + 2017-07-28 Trevor Saunders * tree.c (make_tre_binfo_stat): Remove _stat from name. diff --git a/gcc/tree.c b/gcc/tree.c index 5532b5fc1a7..4b92392d6d5 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2235,7 +2235,7 @@ build_case_label (tree low_value, tree high_value, tree label_decl) The latter determines the length of the HOST_WIDE_INT vector. */ tree -make_int_cst_stat (int len, int ext_len MEM_STAT_DECL) +make_int_cst (int len, int ext_len MEM_STAT_DECL) { tree t; int length = ((ext_len - 1) * sizeof (HOST_WIDE_INT) diff --git a/gcc/tree.h b/gcc/tree.h index 34c1ea31080..9b580bc3965 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -3912,9 +3912,7 @@ extern tree make_tree_binfo (unsigned CXX_MEM_STAT_INFO); /* Make an INTEGER_CST. */ -extern tree make_int_cst_stat (int, int MEM_STAT_DECL); -#define make_int_cst(LEN, EXT_LEN) \ - make_int_cst_stat (LEN, EXT_LEN MEM_STAT_INFO) +extern tree make_int_cst (int, int CXX_MEM_STAT_INFO); /* Make a TREE_VEC. */ -- 2.30.2