Re: misleading description in vec.h?

2011-09-26 Thread Liang Wang
On Tue, Sep 27, 2011 at 12:27 AM, Ian Lance Taylor wrote: > Liang Wang writes: > >> Here is comment from line 36, gcc/vec.h >> >> Both the structure object and pointer variants >> pass pointers to objects around -- in the former case the pointers >> are stor

misleading description in vec.h?

2011-09-26 Thread Liang Wang
Hi, Here is comment from line 36, gcc/vec.h Both the structure object and pointer variants pass pointers to objects around -- in the former case the pointers are stored into the vector and in the latter case the pointers are dereferenced and the objects copied into the vector. But by reading imp

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