* [PATCH] use build_function_type_list in the sparc backend
@ 2011-04-20 19:52 Nathan Froyd
0 siblings, 0 replies; only message in thread
From: Nathan Froyd @ 2011-04-20 19:52 UTC (permalink / raw)
To: gcc-patches; +Cc: ebotcazou
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-20 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 19:52 [PATCH] use build_function_type_list in the sparc backend Nathan Froyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).