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
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
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), \
>
> 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
王亮 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
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
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), \