aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-12-28 01:13:19 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-12-28 01:13:19 +0000
commitc71070ab83526725e7679dc850f86ba8cb5ca45f (patch)
tree62cd9fec1be4b0091939fd7abd2335b1cbf99b21
parent420ab68e181bbd40bbf1315dd5d8fd15aa7e5119 (diff)
downloadgcc-c71070ab83526725e7679dc850f86ba8cb5ca45f.zip
gcc-c71070ab83526725e7679dc850f86ba8cb5ca45f.tar.gz
gcc-c71070ab83526725e7679dc850f86ba8cb5ca45f.tar.bz2
global.c, [...]: Move DEF_VEC_P(basic_block) and DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
* global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ... * basic-block.h: ... here. From-SVN: r109097
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/basic-block.h4
-rw-r--r--gcc/global.c3
-rw-r--r--gcc/tree-ssa-pre.c2
4 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2103a66..9a3f53f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-27 Kazu Hirata <kazu@codesourcery.com>
+
+ * global.c, tree-ssa-pre.c: Move DEF_VEC_P(basic_block) and
+ DEF_VEC_ALLOC_P(basic_block,{gc,heap}) to ...
+ * basic-block.h: ... here.
+
2005-12-27 Roger Sayle <roger@eyesopen.com>
* fold-const.c (int_const_binop): Return NULL_TREE when an expression
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index 69dba56..101f486 100644
--- a/gcc/basic-block.h
+++ b/gcc/basic-block.h
@@ -282,6 +282,10 @@ struct rtl_bb_info GTY(())
typedef struct basic_block_def *basic_block;
+DEF_VEC_P(basic_block);
+DEF_VEC_ALLOC_P(basic_block,gc);
+DEF_VEC_ALLOC_P(basic_block,heap);
+
#define BB_FREQ_MAX 10000
/* Masks for basic_block.flags.
diff --git a/gcc/global.c b/gcc/global.c
index e92a4cb..e88e101 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -2301,9 +2301,6 @@ rpost_cmp (const void *bb1, const void *bb2)
/* Temporary bitmap used for live_pavin, live_pavout calculation. */
static bitmap temp_bitmap;
-DEF_VEC_P(basic_block);
-DEF_VEC_ALLOC_P(basic_block,heap);
-
/* The function calculates partial register availability according to
the following equations:
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 1f46929..e8ef122 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -1334,8 +1334,6 @@ clean (value_set_t set)
}
}
-DEF_VEC_P (basic_block);
-DEF_VEC_ALLOC_P (basic_block, heap);
static sbitmap has_abnormal_preds;
/* Compute the ANTIC set for BLOCK.