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 v850.c warning


Tested by compiling v850.o targetted to v850-unknown-elf
v850-unknown-rtems v850e-unknown-elf.

Installed as obvious.


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

	* v850.c (print_operand): Fix format specifier warnings.

diff -rup orig/egcc-CVS20030516/gcc/config/v850/v850.c egcc-CVS20030516/gcc/config/v850/v850.c
--- orig/egcc-CVS20030516/gcc/config/v850/v850.c	2003-05-14 20:02:17.000000000 -0400
+++ egcc-CVS20030516/gcc/config/v850/v850.c	2003-05-16 15:20:19.753884115 -0400
@@ -502,7 +502,7 @@ print_operand (file, x, code)
 	abort ();
       break;
     case 'L':
-      fprintf (file, "%d\n", INTVAL (x) & 0xffff);
+      fprintf (file, "%d\n", (int)(INTVAL (x) & 0xffff));
       break;
     case 'M':
       fprintf (file, "%d", exact_log2 (INTVAL (x)));


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