build_function_type_list crashes if there are no arguments

Roger Sayle roger@eyesopen.com
Fri Feb 11 15:57:00 GMT 2005


On 10 Feb 2005, Ian Lance Taylor wrote:
> 2005-02-10  Ian Lance Taylor  <ian@airs.com>
>
> 	* tree.c (build_function_type_list): Work correctly if there are
> 	no arguments.
>

This is Ok for mainline.


> Why don't I just call build_function_type?  Because I am walking
> through a table calling build_function_type_list on each entry.

But I'm still a bit confused how you get from a table to calling
a function with a variable number of arguments without knowing
how many arguments you have :)


Roger
--



More information about the Gcc-patches mailing list