Patchwork use build_function_type_list in the avr backend

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

Comments

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

-Nathan

	* config/avr/avr.c (avr_init_builtins): Call
	build_function_type_list instead of build_function_type.
Denis Chertykov - April 21, 2011, 6:34 a.m.
2011/4/20 Nathan Froyd <froydnj@codesourcery.com>:
> As $SUBJECT suggests.  Tested with cross to avr-elf.  OK to commit?
>
> -Nathan
>
>        * config/avr/avr.c (avr_init_builtins): Call
>        build_function_type_list instead of build_function_type.
>

Please, commit.

Denis.

Patch

diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 500a5b2..6dbf8b4 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -6535,7 +6535,7 @@  static void
 avr_init_builtins (void)
 {
   tree void_ftype_void
-    = build_function_type (void_type_node, void_list_node);
+    = build_function_type_list (void_type_node, NULL_TREE);
   tree uchar_ftype_uchar
     = build_function_type_list (unsigned_char_type_node, 
                                 unsigned_char_type_node,