diff mbox

use build_function_type_list in the sparc backend

Message ID 20110420194438.GJ6507@nightcrawler
State New
Headers show

Commit Message

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

-Nathan

	* config/sparc/sparc.c (sparc_file_end): Call
	build_function_type_list instead of build_function_type.
diff mbox

Patch

diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 03b5e66..e7dd75b 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -9501,8 +9501,8 @@  sparc_file_end (void)
 	{
 	  tree decl = build_decl (BUILTINS_LOCATION, FUNCTION_DECL,
 				  get_identifier (name),
-				  build_function_type (void_type_node,
-						       void_list_node));
+				  build_function_type_list (void_type_node,
+                                                            NULL_TREE));
 	  DECL_RESULT (decl) = build_decl (BUILTINS_LOCATION, RESULT_DECL,
 					   NULL_TREE, void_type_node);
 	  TREE_STATIC (decl) = 1;