Patchwork use build_function_type_list in the sparc backend

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

Comments

Nathan Froyd - April 20, 2011, 7:44 p.m.
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.

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;