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 installed for m68k.c warning


Tested by compiling m68k.o with target=m68k-unknown-linux-gnu.
Doesn't fix all warnings, but gets us closer.  Installed as "obvious".


2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* m68k.c (m68k_output_function_epilogue): Fix format specifier
	warnings.

diff -rup orig/egcc-CVS20030516/gcc/config/m68k/m68k.c egcc-CVS20030516/gcc/config/m68k/m68k.c
--- orig/egcc-CVS20030516/gcc/config/m68k/m68k.c	2003-03-04 23:54:13.000000000 -0500
+++ egcc-CVS20030516/gcc/config/m68k/m68k.c	2003-05-16 12:38:51.302353936 -0400
@@ -1042,12 +1042,14 @@ m68k_output_function_epilogue (stream, s
 	  else
 	    {
 #ifdef MOTOROLA
-	      fprintf (stream, "\tfpmovd -%d(%s), %s\n",
+	      fprintf (stream, "\tfpmovd -"HOST_WIDE_INT_PRINT_DEC
+		       "(%s), %s\n",
 		       fpoffset + fsize,
 		       reg_names[FRAME_POINTER_REGNUM],
 		       reg_names[regno]);
 #else
-	      fprintf (stream, "\tfpmoved %s@(-%d), %s\n",
+	      fprintf (stream, "\tfpmoved %s@(-"HOST_WIDE_INT_PRINT_DEC
+		       "), %s\n",
 		       reg_names[FRAME_POINTER_REGNUM],
 		       fpoffset + fsize, reg_names[regno]);
 #endif


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