xtensa.c (xtensa_init_builtins): Call build_function_type_list instead of build_funct...
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 3 May 2011 15:43:00 +0000 (15:43 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Tue, 3 May 2011 15:43:00 +0000 (15:43 +0000)
* config/xtensa/xtensa.c (xtensa_init_builtins): Call
build_function_type_list instead of build_function_type.

From-SVN: r173315

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index a564ac616e2aab49ea3c1be5663ff0da880a52ce..af3dbb0cc9dbdf835eea4868a544378dda0cd732 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * config/xtensa/xtensa.c (xtensa_init_builtins): Call
+       build_function_type_list instead of build_function_type.
+
 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
 
        * config/iq2000/i2000.c (iq2000_init_builtins): Call
index c312f50eca260ff449010a72de967192d9cc420b..fe5798ec9ae6f91ce571468dedc8bf5e56b6ea96 100644 (file)
@@ -3097,7 +3097,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);