use build_function_type_list in the xtensa backend

Submitted by Nathan Froyd on April 20, 2011, 7:46 p.m.

Details

Message ID 20110420194602.GK6507@nightcrawler
State New
Headers show

Commit Message

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

-Nathan

	* config/xtensa/xtensa.c (xtensa_init_builtins): Call
	build_function_type_list instead of build_function_type.

Patch hide | download patch | download mbox

diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index fe70270..574e08e 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -3083,7 +3083,7 @@  xtensa_init_builtins (void)
 
   if (TARGET_THREADPTR)
     {
-      ftype = build_function_type (ptr_type_node, void_list_node);
+      ftype = build_function_type_list (ptr_type_node, NULL_TREE);
       decl = add_builtin_function ("__builtin_thread_pointer", ftype,
 				   XTENSA_BUILTIN_THREAD_POINTER, BUILT_IN_MD,
 				   NULL, NULL_TREE);