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 fr30.c warnings


Fixes some more format specifier warnings in fr30.c.  Tested by
building fr30.o targetted to fr30-unknown-elf.

Installed as obvious.


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

	* fr30.c (fr30_print_operand): Fix format specifier warnings.

diff -rup orig/egcc-CVS20030516/gcc/config/fr30/fr30.c egcc-CVS20030516/gcc/config/fr30/fr30.c
--- orig/egcc-CVS20030516/gcc/config/fr30/fr30.c	2002-12-16 13:21:07.000000000 -0500
+++ egcc-CVS20030516/gcc/config/fr30/fr30.c	2003-05-16 15:20:15.804243718 -0400
@@ -537,7 +537,7 @@ fr30_print_operand (file, x, code)
 
 	  val &= 0xff;
 
-	  fprintf (file, "%d", val);
+	  fprintf (file, HOST_WIDE_INT_PRINT_DEC, val);
 	}
       return;
       
@@ -547,7 +547,7 @@ fr30_print_operand (file, x, code)
 	  || INTVAL (x) > 32)
 	output_operand_lossage ("fr30_print_operand: invalid %%x code");
       else
-	fprintf (file, "%d", INTVAL (x) - 16);
+	fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x) - 16);
       return;
 
     case 'F':
@@ -609,7 +609,7 @@ fr30_print_operand (file, x, code)
 		  debug_rtx (x);
 		  output_operand_lossage ("fr30_print_operand: unhandled MEM");
 		}
-	      fprintf (file, "@(r14, #%d)", val);
+	      fprintf (file, "@(r14, #" HOST_WIDE_INT_PRINT_DEC ")", val);
 	    }
 	  else
 	    {
@@ -620,7 +620,7 @@ fr30_print_operand (file, x, code)
 		  debug_rtx (x);
 		  output_operand_lossage ("fr30_print_operand: unhandled MEM");
 		}
-	      fprintf (file, "@(r15, #%d)", val);
+	      fprintf (file, "@(r15, #" HOST_WIDE_INT_PRINT_DEC ")", val);
 	    }
 	  break;
 	  


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