Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-16 Thread Liang Wang
On Tue, Aug 16, 2011 at 1:51 PM, Laurynas Biveinis wrote: >> On Mon, Aug 15, 2011 at 2:16 PM, 王亮 wrote: >>> The size it allocates is >>> >>>  (sizeof (struct rtvec_def) + ((NELT) - 1)) * sizeof (rtx) > >>> Originally, the allocated size is >>> >>>  sizeof (struct rtvec_def) + ((NELT) - 1) * sizeo

Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-16 Thread Andreas Schwab
Laurynas Biveinis writes: > 2011/8/15 Andreas Schwab : >> I think it was meant to be this: >> >> #define ggc_alloc_rtvec_sized(NELT)                                     \ >>  ggc_alloc_zone_rtvec_def (sizeof (struct rtvec_def)                   \ >>                            + ((NELT) - 1) * siz

Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-15 Thread Laurynas Biveinis
2011/8/15 Andreas Schwab : > I think it was meant to be this: > > #define ggc_alloc_rtvec_sized(NELT)                                     \ >  ggc_alloc_zone_rtvec_def (sizeof (struct rtvec_def)                   \ >                            + ((NELT) - 1) * sizeof (rtx),              \ >        

Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-15 Thread Laurynas Biveinis
> On Mon, Aug 15, 2011 at 2:16 PM, 王亮 wrote: >> The size it allocates is >> >>  (sizeof (struct rtvec_def) + ((NELT) - 1)) * sizeof (rtx) >> Originally, the allocated size is >> >>  sizeof (struct rtvec_def) + ((NELT) - 1) * sizeof (rtx) Yes, this is correct, good catch. >>  (sizeof (struct rtv

Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-15 Thread Andreas Schwab
王亮 writes: > Hi, > > Current implementation of ggc_alloc_rtvec_sized is > > #define ggc_alloc_rtvec_sized(NELT) \ > (ggc_alloc_zone_vec_rtvec_def (sizeof (rtx),\ >sizeof (struct rtvec_def) + ((NELT

Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-15 Thread Richard Guenther
On Mon, Aug 15, 2011 at 2:16 PM, 王亮 wrote: > Hi, > > Current implementation of ggc_alloc_rtvec_sized is > > #define ggc_alloc_rtvec_sized(NELT)                                     \ >    (ggc_alloc_zone_vec_rtvec_def (sizeof (rtx),                        \ >                                   sizeo

ggc_alloc_rtvec_sized allocates spaces more than necessary?

2011-08-15 Thread 王亮
Hi, Current implementation of ggc_alloc_rtvec_sized is #define ggc_alloc_rtvec_sized(NELT) \ (ggc_alloc_zone_vec_rtvec_def (sizeof (rtx),\ sizeof (struct rtvec_def) + ((NELT) - 1), \