This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] use build_function_type_list in the mep backend


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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]