mips.c (mips16_build_function_stub): Call build_function_type_list instead of build_f...
authorNathan Froyd <froydnj@codesourcery.com>
Wed, 20 Apr 2011 20:24:31 +0000 (20:24 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Wed, 20 Apr 2011 20:24:31 +0000 (20:24 +0000)
* config/mips/mips.c (mips16_build_function_stub): Call
build_function_type_list instead of build_function_type.
(mips16_build_call_stub): Likewise.

From-SVN: r172796

gcc/ChangeLog
gcc/config/mips/mips.c

index c9a4689e1b274869303485165b92af56f6995ad5..9a2cd4f81068d04a8de7ae15af6140f64144ae92 100644 (file)
@@ -1,3 +1,9 @@
+2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * config/mips/mips.c (mips16_build_function_stub): Call
+       build_function_type_list instead of build_function_type.
+       (mips16_build_call_stub): Likewise.
+
 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
 
        * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
index 55d3e9fcdf2cf90b87ce8e0b51741c64bfd236f1..2dd90e28ec238b858443edd2bf2da3707655e90f 100644 (file)
@@ -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,8 @@ 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,