diff mbox

use build_function_type_list in the mep backend

Message ID 20110420193258.GG6507@nightcrawler
State New
Headers show

Commit Message

Nathan Froyd April 20, 2011, 7:32 p.m. UTC
As $SUBJECT suggests.  Tested with cross to mep-elf.  OK to commit?

-Nathan

	* config/mep/mep.c (mep_init_builtins): Call build_function_type_list
	instead of build_function_type.

Comments

DJ Delorie April 20, 2011, 7:35 p.m. UTC | #1
> 	* config/mep/mep.c (mep_init_builtins): Call build_function_type_list
> 	instead of build_function_type.

Ok.
diff mbox

Patch

diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c
index 02c825a..b8ef440 100644
--- a/gcc/config/mep/mep.c
+++ b/gcc/config/mep/mep.c
@@ -6133,7 +6133,7 @@  mep_init_builtins (void)
 	if (cgen_insns[i].cret_p)
 	  ret_type = mep_cgen_regnum_to_type (cgen_insns[i].regnums[0].type);
 
-	bi_type = build_function_type (ret_type, 0);
+	bi_type = build_function_type_list (ret_type, NULL_TREE);
 	add_builtin_function (cgen_intrinsics[cgen_insns[i].intrinsic],
 			      bi_type,
 			      cgen_insns[i].intrinsic, BUILT_IN_MD, NULL, NULL);