Patchwork use build_function_type_list in the xtensa backend

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

Comments

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

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