Patchwork use build_function_type_list in the i386 backend

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

Comments

Nathan Froyd - April 20, 2011, 7:28 p.m.
As $SUBJECT suggests.  There's still one use of build_function_type;
replacing that type will have to wait for an improved
FUNCTION_TYPE-building interface.

Tested on x86_64-unknown-linux-gnu.  OK to commit?

-Nathan

	* config/i386/i386.c (ix86_code_end): Call build_function_type_list
	instead of build_function_type.

Patch

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b6d41f0..40151f4 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -8833,7 +8833,7 @@  ix86_code_end (void)
 
       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_PUBLIC (decl) = 1;