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]

[MIPS 25/30] Fix build_int_cst types


I noticed that two integer assignments were passing NULL rather than the
lhs type to build_int_cst.

Richard


gcc/
	* config/mips/mips.c (mips_va_start): Fix types in calls
	to build_int_cst.

Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c	2007-10-18 11:07:16.000000000 +0100
+++ gcc/config/mips/mips.c	2007-10-18 11:07:16.000000000 +0100
@@ -4886,13 +4886,13 @@ mips_va_start (tree valist, rtx nextarg)
       /* Emit code to initialize GOFF, the offset from GTOP of the
 	 next GPR argument.  */
       t = build2 (GIMPLE_MODIFY_STMT, TREE_TYPE (goff), goff,
-		  build_int_cst (NULL_TREE, gpr_save_area_size));
+		  build_int_cst (TREE_TYPE (goff), gpr_save_area_size));
       expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);
 
       /* Likewise emit code to initialize FOFF, the offset from FTOP
 	 of the next FPR argument.  */
       t = build2 (GIMPLE_MODIFY_STMT, TREE_TYPE (foff), foff,
-		  build_int_cst (NULL_TREE, fpr_save_area_size));
+		  build_int_cst (TREE_TYPE (foff), fpr_save_area_size));
       expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);
     }
   else


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