[lto] Use build_function_type_list instead of build_function_type in ix86_init_mmx_sse_builtins.

Kazu Hirata kazu@codesourcery.com
Tue Aug 8 13:42:00 GMT 2006


Hi,

Attached is a patch to use build_function_type_list instead of
build_function_type in ix86_init_mmx_sse_builtins.

The arguments to build_function_type_list are independent of the
underlying data structure to represent the parameter list, which makes
the transition from TREE_LIST to TREE_VEC easier.

Tested on x86_64-pc-linux-gnu.  Committed to the LTO branch.

Kazu Hirata

2006-08-08  Kazu Hirata  <kazu@codesourcery.com>

	* config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
	build_function_type_list instead of build_function_type.

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 115999)
+++ config/i386/i386.c	(working copy)
@@ -14819,7 +14819,7 @@ ix86_init_mmx_sse_builtins (void)
 				V2SI_type_node, long_long_unsigned_type_node,
 				NULL_TREE);
   tree void_ftype_void
-    = build_function_type (void_type_node, void_list_node);
+    = build_function_type_list (void_type_node, NULL_TREE);
   tree void_ftype_unsigned
     = build_function_type_list (void_type_node, unsigned_type_node, NULL_TREE);
   tree void_ftype_unsigned_unsigned
@@ -14830,7 +14830,7 @@ ix86_init_mmx_sse_builtins (void)
 				unsigned_type_node, unsigned_type_node,
 				NULL_TREE);
   tree unsigned_ftype_void
-    = build_function_type (unsigned_type_node, void_list_node);
+    = build_function_type_list (unsigned_type_node, NULL_TREE);
   tree v2si_ftype_v4sf
     = build_function_type_list (V2SI_type_node, V4SF_type_node, NULL_TREE);
   /* Loads/stores.  */



More information about the Gcc-patches mailing list