use build_function_type_list in the i386 backend

Submitted by Nathan Froyd on April 20, 2011, 7:28 p.m.


Message ID 20110420192806.GD6507@nightcrawler
State New
Headers show

Commit Message

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?


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

Patch hide | download patch | download mbox

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));
 				       NULL_TREE, void_type_node);
       TREE_PUBLIC (decl) = 1;