This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: new build_function_type_list()
- From: Richard Henderson <rth at redhat dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Jun 2002 18:01:43 -0700
- Subject: Re: new build_function_type_list()
- References: <20020628203904.GA9501@redhat.com>
On Fri, Jun 28, 2002 at 01:39:04PM -0700, Aldy Hernandez wrote:
> + if (tree_list == 0)
> + {
> + /* This should be enough, but you never know. So let's realloc
> + as we go. */
> + tl_size = 20;
> + tree_list = (tree *) xmalloc (sizeof (tree) * tl_size);
You should be able to build the list in reverse as you examine
the arguments. Use nreverse at the end to put them back in
the right order.
Otherwise ok.
r~