[PATCH] use build_function_type_list in the bfin backend

Jie Zhang jzhang918@gmail.com
Fri Apr 22 04:20:00 GMT 2011


On 04/20/2011 03:24 PM, Nathan Froyd wrote:
> As $SUBJECT suggests.  Tested with cross to bfin-elf.  OK to commit?
>
OK. Thanks!

Jie

> -Nathan
>
> 	* config/bfin/bfin.c (bfin_init_builtins): Call
> 	build_function_type_list instead of build_function_type.
>
> diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c
> index 5d08437..03a833d 100644
> --- a/gcc/config/bfin/bfin.c
> +++ b/gcc/config/bfin/bfin.c
> @@ -5967,7 +5967,7 @@ bfin_init_builtins (void)
>   {
>     tree V2HI_type_node = build_vector_type_for_mode (intHI_type_node, V2HImode);
>     tree void_ftype_void
> -    = build_function_type (void_type_node, void_list_node);
> +    = build_function_type_list (void_type_node, NULL_TREE);
>     tree short_ftype_short
>       = build_function_type_list (short_integer_type_node, short_integer_type_node,
>   				NULL_TREE);



More information about the Gcc-patches mailing list