diff options
author | Liang Wang <lwang1@marvell.com> | 2011-08-16 09:49:28 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-08-16 09:49:28 +0000 |
commit | c50584186d58165c8cd3978712b5bfc18f18fcc5 (patch) | |
tree | 5b6e4a2d06930ba52d94ba980d60d097104e2cff /gcc | |
parent | a1bc7628e49249aafa3f97a63a6662a3f6227f37 (diff) | |
download | gcc-c50584186d58165c8cd3978712b5bfc18f18fcc5.zip gcc-c50584186d58165c8cd3978712b5bfc18f18fcc5.tar.gz gcc-c50584186d58165c8cd3978712b5bfc18f18fcc5.tar.bz2 |
ggc.h (ggc_alloc_rtvec_sized): Change arguments of ggc_alloc_zone_vec_rtvec_def.
2011-08-16 Liang Wang <lwang1@marvell.com>
* ggc.h (ggc_alloc_rtvec_sized): Change arguments of
ggc_alloc_zone_vec_rtvec_def.
From-SVN: r177782
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ggc.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 825c75f..a2f8a23 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-16 Liang Wang <lwang1@marvell.com> + + * ggc.h (ggc_alloc_rtvec_sized): Change arguments of + ggc_alloc_zone_vec_rtvec_def. + 2011-08-16 Richard Guenther <rguenther@suse.de> * tree-vrp.c (extract_range_from_multiplicative_op_1): New @@ -266,8 +266,9 @@ extern struct alloc_zone tree_zone; extern struct alloc_zone tree_id_zone; #define ggc_alloc_rtvec_sized(NELT) \ - (ggc_alloc_zone_vec_rtvec_def (sizeof (rtx), \ - sizeof (struct rtvec_def) + ((NELT) - 1), \ + (ggc_alloc_zone_vec_rtvec_def (1, \ + sizeof (struct rtvec_def) \ + + ((NELT) - 1) * sizeof (rtx), \ &rtl_zone)) #if defined (GGC_ZONE) && !defined (GENERATOR_FILE) |