This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ggc_alloc_rtvec_sized allocates spaces more than necessary?


2011/8/15 Andreas Schwab <schwab@linux-m68k.org>:
> 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), Â Â Â Â Â Â Â\
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â&rtl_zone)

Note that ggc_alloc_zone_rtvec_def takes three args, not two.

-- 
Laurynas

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]