diff mbox

use build_function_type_list in the alpha backend

Message ID 20110420192357.GA6507@nightcrawler
State New
Headers show

Commit Message

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

-Nathan

	* config/alpha/alpha.c (alpha_init_builtins): Call
	build_function_type_list instead of build_function_type.
diff mbox

Patch

diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index 5e85e2b..237e9b3 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -6409,7 +6409,7 @@  alpha_init_builtins (void)
   implicit_built_in_decls[(int) BUILT_IN_FWRITE_UNLOCKED] = NULL_TREE;
 #endif
 
-  ftype = build_function_type (dimode_integer_type_node, void_list_node);
+  ftype = build_function_type_list (dimode_integer_type_node, NULL_TREE);
   alpha_add_builtins (zero_arg_builtins, ARRAY_SIZE (zero_arg_builtins),
 		      ftype);
 
@@ -6424,7 +6424,7 @@  alpha_init_builtins (void)
   alpha_add_builtins (two_arg_builtins, ARRAY_SIZE (two_arg_builtins),
 		      ftype);
 
-  ftype = build_function_type (ptr_type_node, void_list_node);
+  ftype = build_function_type_list (ptr_type_node, NULL_TREE);
   alpha_builtin_function ("__builtin_thread_pointer", ftype,
 			  ALPHA_BUILTIN_THREAD_POINTER, ECF_NOTHROW);