new build_function_type_list()

Richard Henderson rth@redhat.com
Fri Jun 28 18:03:00 GMT 2002


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~



More information about the Gcc-patches mailing list