Patchwork use build_function_type_list in the mep backend

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

Comments

Nathan Froyd - April 20, 2011, 7:32 p.m.
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.
DJ Delorie - April 20, 2011, 7:35 p.m.
> 	* config/mep/mep.c (mep_init_builtins): Call build_function_type_list
> 	instead of build_function_type.

Ok.

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);