Patchwork use build_function_type_list in the bfin backend

login
register
mail settings
Submitter Nathan Froyd
Date April 20, 2011, 7:24 p.m.
Message ID <20110420192450.GB6507@nightcrawler>
Download mbox | patch
Permalink /patch/92282/
State New
Headers show

Comments

Nathan Froyd - April 20, 2011, 7:24 p.m.
As $SUBJECT suggests.  Tested with cross to bfin-elf.  OK to commit?

-Nathan

	* config/bfin/bfin.c (bfin_init_builtins): Call
	build_function_type_list instead of build_function_type.
Jie Zhang - April 22, 2011, 2:54 a.m.
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);

Patch

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);