From: Liang Wang Date: Tue, 16 Aug 2011 09:49:28 +0000 (+0000) Subject: ggc.h (ggc_alloc_rtvec_sized): Change arguments of ggc_alloc_zone_vec_rtvec_def. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c50584186d58165c8cd3978712b5bfc18f18fcc5;p=gcc.git ggc.h (ggc_alloc_rtvec_sized): Change arguments of ggc_alloc_zone_vec_rtvec_def. 2011-08-16 Liang Wang * ggc.h (ggc_alloc_rtvec_sized): Change arguments of ggc_alloc_zone_vec_rtvec_def. From-SVN: r177782 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 825c75f83d3..a2f8a23af28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-16 Liang Wang + + * ggc.h (ggc_alloc_rtvec_sized): Change arguments of + ggc_alloc_zone_vec_rtvec_def. + 2011-08-16 Richard Guenther * tree-vrp.c (extract_range_from_multiplicative_op_1): New 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)