Fix format string mismatch

Andreas Schwab schwab@suse.de
Sun Aug 6 14:26:00 GMT 2006


offset is an int, not a HOST_WIDE_INT.  Tested on ppc-linux.

Andreas.

2006-08-06  Andreas Schwab  <schwab@suse.de>

	* config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
	string.  Whitespace and comment fixup.

Index: gcc/config/m68k/m68k.c
===================================================================
--- gcc/config/m68k/m68k.c	(revision 115967)
+++ gcc/config/m68k/m68k.c	(working copy)
@@ -1006,26 +1006,26 @@ m68k_output_function_epilogue (FILE *str
 	    {
 	      int offset;
 
-	      /* stack already has registers in it.  Find the offset from
-		 the bottom of stack to where the FP registers go */
+	      /* Stack already has registers in it.  Find the offset from
+		 the bottom of stack to where the FP registers go.  */
 	      if (current_frame.reg_no <= 2)
 		offset = 0;
 	      else
 		offset = current_frame.reg_no * 4;
 	      if (offset)
-		 asm_fprintf (stream,
-			     "\tfmovem %Rsp@(%wd), %I0x%x\n",
+		asm_fprintf (stream,
+			     "\tfmovem %Rsp@(%d), %I0x%x\n",
 			     offset, current_frame.fpu_rev_mask);
 	      else
-		 asm_fprintf (stream,
+		asm_fprintf (stream,
 			     "\tfmovem %Rsp@, %I0x%x\n",
 			     current_frame.fpu_rev_mask);
 	    }
-	   else
-		  asm_fprintf (stream, MOTOROLA ?
-			       "\tfmovm (%Rsp)+,%I0x%x\n" :
-			       "\tfmovem %Rsp@+,%I0x%x\n",
-			       current_frame.fpu_rev_mask);
+	  else
+	    asm_fprintf (stream, MOTOROLA ?
+			 "\tfmovm (%Rsp)+,%I0x%x\n" :
+			 "\tfmovem %Rsp@+,%I0x%x\n",
+			 current_frame.fpu_rev_mask);
 	}
       else
 	{

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list