OSDN Git Service

* c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2003 20:49:42 +0000 (20:49 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2003 20:49:42 +0000 (20:49 +0000)
specifier warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66880 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/c4x/c4x.c

index 67ac0fd..ea25e51 100644 (file)
@@ -1,5 +1,8 @@
 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
+       specifier warnings.
+
        * alpha.c (print_operand_address, alpha_start_function,
        unicosmk_output_ssib): Use string concatentation on
        HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
index e58850f..19b9047 100644 (file)
@@ -1884,7 +1884,7 @@ c4x_print_operand (file, op, letter)
     case 'N':                  /* Ones complement of small constant.  */
       if (code != CONST_INT)
        fatal_insn ("c4x_print_operand: %%N inconsistency", op);
-      fprintf (file, "%d", ~INTVAL (op));
+      fprintf (file, HOST_WIDE_INT_PRINT_DEC, ~INTVAL (op));
       return;
 
     case 'K':                  /* Generate ldp(k) if direct address.  */
@@ -1964,7 +1964,7 @@ c4x_print_operand (file, op, letter)
       break;
       
     case CONST_INT:
-      fprintf (file, "%d", INTVAL (op));
+      fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (op));
       break;
       
     case NE:
@@ -2053,11 +2053,11 @@ c4x_print_operand_address (file, addr)
          fprintf (file, "*%s++(%s)", reg_names[REGNO (op0)],
                   reg_names[REGNO (op1)]);
        else if (GET_CODE (XEXP (addr, 1)) == PLUS && INTVAL (op1) > 0)
-         fprintf (file, "*%s++(%d)", reg_names[REGNO (op0)],
-                  INTVAL (op1));
+         fprintf (file, "*%s++(" HOST_WIDE_INT_PRINT_DEC ")",
+                  reg_names[REGNO (op0)], INTVAL (op1));
        else if (GET_CODE (XEXP (addr, 1)) == PLUS && INTVAL (op1) < 0)
-         fprintf (file, "*%s--(%d)", reg_names[REGNO (op0)],
-                  -INTVAL (op1));
+         fprintf (file, "*%s--(" HOST_WIDE_INT_PRINT_DEC ")",
+                  reg_names[REGNO (op0)], -INTVAL (op1));
        else if (GET_CODE (XEXP (addr, 1)) == MINUS && REG_P (op1))
          fprintf (file, "*%s--(%s)", reg_names[REGNO (op0)],
                   reg_names[REGNO (op1)]);
@@ -2075,11 +2075,11 @@ c4x_print_operand_address (file, addr)
          fprintf (file, "*++%s(%s)", reg_names[REGNO (op0)],
                   reg_names[REGNO (op1)]);
        else if (GET_CODE (XEXP (addr, 1)) == PLUS && INTVAL (op1) > 0)
-         fprintf (file, "*++%s(%d)", reg_names[REGNO (op0)],
-                  INTVAL (op1));
+         fprintf (file, "*++%s(" HOST_WIDE_INT_PRINT_DEC ")",
+                  reg_names[REGNO (op0)], INTVAL (op1));
        else if (GET_CODE (XEXP (addr, 1)) == PLUS && INTVAL (op1) < 0)
-         fprintf (file, "*--%s(%d)", reg_names[REGNO (op0)],
-                  -INTVAL (op1));
+         fprintf (file, "*--%s(" HOST_WIDE_INT_PRINT_DEC ")",
+                  reg_names[REGNO (op0)], -INTVAL (op1));
        else if (GET_CODE (XEXP (addr, 1)) == MINUS && REG_P (op1))
          fprintf (file, "*--%s(%s)", reg_names[REGNO (op0)],
                   reg_names[REGNO (op1)]);
@@ -2120,13 +2120,13 @@ c4x_print_operand_address (file, addr)
              }
            else if (INTVAL (op1) < 0)
              {
-               fprintf (file, "*-%s(%d)",
+               fprintf (file, "*-%s(" HOST_WIDE_INT_PRINT_DEC ")",
                         reg_names[REGNO (op0)],
                         -INTVAL (op1));        /* Base - displacement.  */
              }
            else
              {
-               fprintf (file, "*+%s(%d)",
+               fprintf (file, "*+%s(" HOST_WIDE_INT_PRINT_DEC ")",
                         reg_names[REGNO (op0)],
                         INTVAL (op1)); /* Base + displacement.  */
              }