This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] use build_function_type_list in the xtensa backend


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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]