Patchwork use build_function_type_list in the mips backend

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

Comments

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

-Nathan

	* config/mips/mips.c (mips16_build_function_stub): Call
	build_function_type_list instead of build_function_type.
	(mips16_build_call_stub): Likewise.
Richard Sandiford - April 20, 2011, 7:48 p.m.
Nathan Froyd <froydnj@codesourcery.com> writes:
> 	* config/mips/mips.c (mips16_build_function_stub): Call
> 	build_function_type_list instead of build_function_type.
> 	(mips16_build_call_stub): Likewise.

OK, thanks, but:

> -			     build_function_type (void_type_node, NULL_TREE));
> +			     build_function_type_list (void_type_node, NULL_TREE));

please split the long line.

Richard

Patch

diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index e075c4f..4d4d639 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -6075,7 +6075,7 @@  mips16_build_function_stub (void)
   /* Build a decl for the stub.  */
   stubdecl = build_decl (BUILTINS_LOCATION,
 			 FUNCTION_DECL, get_identifier (stubname),
-			 build_function_type (void_type_node, NULL_TREE));
+			 build_function_type_list (void_type_node, NULL_TREE));
   DECL_SECTION_NAME (stubdecl) = build_string (strlen (secname), secname);
   DECL_RESULT (stubdecl) = build_decl (BUILTINS_LOCATION,
 				       RESULT_DECL, NULL_TREE, void_type_node);
@@ -6321,7 +6321,7 @@  mips16_build_call_stub (rtx retval, rtx *fn_ptr, rtx args_size, int fp_code)
       stubid = get_identifier (stubname);
       stubdecl = build_decl (BUILTINS_LOCATION,
 			     FUNCTION_DECL, stubid,
-			     build_function_type (void_type_node, NULL_TREE));
+			     build_function_type_list (void_type_node, NULL_TREE));
       DECL_SECTION_NAME (stubdecl) = build_string (strlen (secname), secname);
       DECL_RESULT (stubdecl) = build_decl (BUILTINS_LOCATION,
 					   RESULT_DECL, NULL_TREE,