diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-16 09:49:28 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-16 09:49:28 +0000 |
commit | 5e36e11936341bc6a3c081a5da2377e463fd675d (patch) | |
tree | 5b6e4a2d06930ba52d94ba980d60d097104e2cff /gcc/ggc.h | |
parent | 5360e3456ca49764f3db3127cb9b1010ec665479 (diff) | |
download | gcc-5e36e11936341bc6a3c081a5da2377e463fd675d.tar.gz |
2011-08-16 Liang Wang <lwang1@marvell.com>
* ggc.h (ggc_alloc_rtvec_sized): Change arguments of
ggc_alloc_zone_vec_rtvec_def.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index 7f2144c0f12..07f0dda0ae5 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -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) |