On Tue, Aug 16, 2011 at 1:51 PM, Laurynas Biveinis <laurynas.bivei...@gmail.com> wrote: >> On Mon, Aug 15, 2011 at 2:16 PM, 王亮 <netcas...@gmail.com> 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 rtvec_def) + sizeof (rtx) - 1) / sizeof (rtx) + >>> ((NELT) - 1) // (3) > > Due to the way those macros expand, right now replacing the first arg > with "1" and the second one with straightforward "sizeof (struct > rtvec_def) + ((NELT) - 1) * sizeof (rtx)" will work and will be easier > to read than division. Liang, would you submit such patch?
Yes, I have sent patch to gcc-patches. > > Thanks again, > -- > Laurynas >