This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for v850.c warning
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 May 2003 18:40:25 -0400 (EDT)
- Subject: 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)));