OSDN Git Service

* fr30.c (fr30_print_operand): Fix format specifier warnings.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2003 21:03:04 +0000 (21:03 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2003 21:03:04 +0000 (21:03 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66883 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/fr30/fr30.c

index 79afd55..293fe6d 100644 (file)
@@ -1,5 +1,7 @@
 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * fr30.c (fr30_print_operand): Fix format specifier warnings.
+
        * dsp16xx.c (print_operand_address): Fix format specifier warning.
        * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
 
index 0c143b3..1de1bfe 100644 (file)
@@ -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;