From patchwork Wed Apr 20 19:44:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: use build_function_type_list in the sparc backend Date: Wed, 20 Apr 2011 09:44:38 -0000 From: Nathan Froyd X-Patchwork-Id: 92296 Message-Id: <20110420194438.GJ6507@nightcrawler> To: gcc-patches@gcc.gnu.org Cc: ebotcazou@libertysurf.fr 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 --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;