This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Programming error in emit-rtl.c
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Jesse M Draper <jdraper at super dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2001 13:10:37 -0800
- Subject: Re: Programming error in emit-rtl.c
- References: <200112281957.OAA16122@ub228.super.org>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
Jesse M Draper <jdraper@super.org> writes:
> The call to xcalloc at emit-rtl.c:3988 in 3.0.2 has an extra factor of
> sizeof (rtx). Instead of
> xcalloc(f->emit->regno_pointer_align_length * sizeof (rtx),
> sizeof (rtx));
> it should be
> xcalloc(f->emit->regno_pointer_align_length, sizeof (rtx))
>
> As far as I can see, this won't cause a bug since it allocates more
> space than is necessary. I saw no problem with subsequent calls to
> xrealloc, but I wasn't sure that that would be the only possible
> source of interactions.
Thank you for your report; this seems to have been fixed for 3.1.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>