diff mbox

use build_function_type_list in the avr backend

Message ID 20110420195606.GN6507@nightcrawler
State New
Headers show

Commit Message

Nathan Froyd April 20, 2011, 7:56 p.m. UTC
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.

Comments

Denis Chertykov April 21, 2011, 6:34 a.m. UTC | #1
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.
diff mbox

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,