alpha.c (print_operand_address): Fix format specifier warnings.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 4 Jun 2003 17:33:51 +0000 (17:33 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 4 Jun 2003 17:33:51 +0000 (17:33 +0000)
* alpha.c (print_operand_address): Fix format specifier warnings.
* alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
* alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
* arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
* arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
* avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_SKIP): Likewise.
* c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
Likewise.
* i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
* i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
* i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
* mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
* pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
* sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* svr3.h (ASM_OUTPUT_COMMON): Likewise.

From-SVN: r67453

20 files changed:
gcc/ChangeLog
gcc/config/alpha/alpha.c
gcc/config/alpha/elf.h
gcc/config/alpha/vms.h
gcc/config/arm/aof.h
gcc/config/arm/pe.h
gcc/config/avr/avr.h
gcc/config/c4x/c4x.h
gcc/config/dsp16xx/dsp16xx.h
gcc/config/h8300/h8300.h
gcc/config/i370/i370.h
gcc/config/i386/cygming.h
gcc/config/i386/darwin.h
gcc/config/i960/i960.h
gcc/config/m68k/hp320.h
gcc/config/mcore/mcore.h
gcc/config/pdp11/pdp11.h
gcc/config/ptx4.h
gcc/config/sparc/freebsd.h
gcc/config/svr3.h

index 7c7b426f8183373265f4c77847db194ae52f20b8..7de4ca482bd1805097cab0b84c3101c3b6abaf20 100644 (file)
@@ -1,3 +1,27 @@
+2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * alpha.c (print_operand_address): Fix format specifier warnings.
+       * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
+       * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
+       * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
+       * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
+       * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
+       ASM_OUTPUT_SKIP): Likewise. 
+       * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
+       Likewise.
+       * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
+       * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
+       * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
+       * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
+       * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
+       * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * svr3.h (ASM_OUTPUT_COMMON): Likewise.
+
 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
 
        * c-decl.c (c_init_decl_processing): Clear input_file_name
index 76f399e3c6e15119f1d5eb7ef5893763b50ec392..eef95ba05e94d06329441ba37785801092aa3e47 100644 (file)
@@ -6146,7 +6146,7 @@ print_operand_address (file, addr)
           && GET_CODE (XEXP (addr, 0)) == PLUS
           && GET_CODE (XEXP (XEXP (addr, 0), 0)) == SYMBOL_REF)
     {
-      fprintf (file, "%s+%d",
+      fprintf (file, "%s+" HOST_WIDE_INT_PRINT_DEC,
               XSTR (XEXP (XEXP (addr, 0), 0), 0),
               INTVAL (XEXP (XEXP (addr, 0), 1)));
       return;
index abdb92af5014ada81072641ff8cda6d2480d8895..2ee0f071b4aa5d748b484686f145fcf8d48947e8 100644 (file)
@@ -132,7 +132,7 @@ do {                                                                \
 do {                                                                   \
   fprintf ((FILE), "%s", COMMON_ASM_OP);                               \
   assemble_name ((FILE), (NAME));                                      \
-  fprintf ((FILE), ",%u,%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT);       \
+  fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT); \
 } while (0)
 
 /* This says how to output assembler code to declare an
index ab758335c76e33b703d91a2aae509ee755e5ef1a..698e24941aec82038cd3075e1c95fb07f6ef9498 100644 (file)
@@ -315,7 +315,7 @@ extern void literals_section        PARAMS ((void));
 do {                                                                   \
   fprintf ((FILE), "%s", COMMON_ASM_OP);                               \
   assemble_name ((FILE), (NAME));                                      \
-  fprintf ((FILE), ",%u,%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT);       \
+  fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT); \
 } while (0)
 
 \f
index 2f93fe834495b79aee5c0e7dc8d5de14f0a365fd..ef0a6faa186dfa8ab922282285cfbadac4dfd0b4 100644 (file)
@@ -207,14 +207,14 @@ do                                        \
    fprintf ((STREAM), "\tAREA "),                              \
    assemble_name ((STREAM), (NAME)),                           \
    fprintf ((STREAM), ", DATA, COMMON\n\t%% %d\t%s size=%d\n", \
-           (ROUNDED), ASM_COMMENT_START, (int)SIZE))
+           (int)(ROUNDED), ASM_COMMENT_START, (int)(SIZE)))
 
 #define ASM_OUTPUT_LOCAL(STREAM,NAME,SIZE,ROUNDED)     \
    (zero_init_section (),                              \
     assemble_name ((STREAM), (NAME)),                  \
     fprintf ((STREAM), "\n"),                          \
     fprintf ((STREAM), "\t%% %d\t%s size=%d\n",                \
-            (ROUNDED), ASM_COMMENT_START, (int)SIZE))
+            (int)(ROUNDED), ASM_COMMENT_START, (int)(SIZE)))
 
 /* Output and Generation of Labels */
 
index 1e822afa9e863964581892048692d91b2bb745e5..471676ee03543e130317ba32942de2cbaf648c14 100644 (file)
          fprintf ((STREAM), "\t.comm\t");              \
          assemble_name ((STREAM), (NAME));             \
          asm_fprintf ((STREAM), ", %d\t%@ %d\n",       \
-                  (ROUNDED), (SIZE));                  \
+                  (int)(ROUNDED), (int)(SIZE));        \
        }                                               \
     }                                                  \
   while (0)
index 7a8decbe03bef6513b8a917e51d23cc4ebae6f00..0d82c139d02dd826d07cbbc758384ec49b33a5d2 100644 (file)
@@ -1771,7 +1771,7 @@ progmem_section ()                                                              \
 do {                                                                      \
      fputs ("\t.comm ", (STREAM));                                        \
      assemble_name ((STREAM), (NAME));                                    \
-     fprintf ((STREAM), ",%d,1\n", (SIZE));                               \
+     fprintf ((STREAM), ",%lu,1\n", (unsigned long)(SIZE));               \
 } while (0)
 /* A C statement (sans semicolon) to output to the stdio stream
    STREAM the assembler definition of a common-label named NAME whose
@@ -2000,7 +2000,7 @@ do {                                                                       \
    be emitted as one-only.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM)       \
-sprintf (STRING, "*.%s%d", PREFIX, NUM)
+sprintf (STRING, "*.%s%lu", PREFIX, (unsigned long)(NUM))
 /* A C statement to store into the string STRING a label whose name
    is made from the string PREFIX and the number NUM.
 
@@ -2193,7 +2193,7 @@ sprintf (STRING, "*.%s%d", PREFIX, NUM)
    of the jump-table.  */
 
 #define ASM_OUTPUT_SKIP(STREAM, N)             \
-fprintf (STREAM, "\t.skip %d,0\n", (int)N)
+fprintf (STREAM, "\t.skip %lu,0\n", (unsigned long)(N))
 /* A C statement to output to the stdio stream STREAM an assembler
    instruction to advance the location counter by NBYTES bytes.
    Those bytes should be zero when loaded.  NBYTES will be a C
index 7c5435cedf815da3832aa284cac8aed46423640e..70c2afcdbc80287485ec25ea78da69a683813645 100644 (file)
@@ -1615,7 +1615,7 @@ c4x_file_end (FILE)
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(BUFFER, PREFIX, NUM) \
-    sprintf (BUFFER, "*%s%d", PREFIX, NUM)
+    sprintf (BUFFER, "*%s%lu", PREFIX, (unsigned long)(NUM))
 
 /* A C statement to output to the stdio stream STREAM assembler code which
    defines (equates) the symbol NAME to have the value VALUE.  */
index 454ea7dbea3dae7b977c11dc9b004fa8a1532ff4..5f2a63a3c89939a16ddfef60daabcae633e664f7 100644 (file)
@@ -1615,7 +1615,7 @@ extern struct dsp16xx_frame_info current_frame_info;
    PREFIX is the class of label and NUM is the number within the class.
    This is suitable for output with `assemble_name'.  */
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*%s%lu", PREFIX, (unsigned long)(NUM))
 
 \f
 /* OUTPUT OF ASSEMBLER INSTRUCTIONS */
index f4eafdecbba1366150eccf9fd3f6923f13f263a9..3225b2cce277d2c907c9dd090d50fdcbe5245672 100644 (file)
@@ -1140,7 +1140,7 @@ struct cum_arg
    N.B.: The h8300.md branch_true and branch_false patterns also know
    how to generate internal labels.  */
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)        \
-  sprintf (LABEL, "*.%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*.%s%lu", PREFIX, (unsigned long)(NUM))
 
 /* This is how to output an insn to push a register on the stack.
    It need not be very fast code.  */
@@ -1187,7 +1187,7 @@ struct cum_arg
 #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)   \
 ( fputs ("\t.comm ", (FILE)),                          \
   assemble_name ((FILE), (NAME)),                      \
-  fprintf ((FILE), ",%d\n", (SIZE)))
+  fprintf ((FILE), ",%lu\n", (unsigned long)(SIZE)))
 
 /* This says how to output the assembler to define a global
    uninitialized but not common symbol.
index 48ade28b5bbbc94f18efc945831d58d487fb964f..6dedc04ad3322c6d4c0ef84070c3e9217307f3c7 100644 (file)
@@ -1074,7 +1074,7 @@ enum reg_class
 }
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)                        \
-  sprintf (LABEL, "*%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*%s%lu", PREFIX, (unsigned long)(NUM))
 
 /* Generate case label.  For HLASM we can change to the data CSECT
    and put the vectors out of the code body. The assembler just
index 030e19a0fd3d870a365def8ea4e0ab3a5c949c45..d6f2a85319b78123124e1948265e641c497b56ec 100644 (file)
@@ -206,7 +206,7 @@ do {                                                        \
       fprintf ((STREAM), "\t.comm\t");                         \
       assemble_name ((STREAM), (NAME));                        \
       fprintf ((STREAM), ", %d\t%s %d\n",              \
-              (ROUNDED), ASM_COMMENT_START, (SIZE));   \
+              (int)(ROUNDED), ASM_COMMENT_START, (int)(SIZE)); \
     }                                                  \
 } while (0)
 
index 3ce8efb06920c3e83cc029f998c1f6b07a3a4322..2e68be81c6f6282116dc6d47f191ff00c1d2fa9d 100644 (file)
@@ -101,7 +101,7 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \
 ( fputs (".comm ", (FILE)),                    \
   assemble_name ((FILE), (NAME)),              \
-  fprintf ((FILE), ",%u\n", (ROUNDED)))
+  fprintf ((FILE), ",%lu\n", (unsigned long)(ROUNDED)))
 
 /* This says how to output an assembler line
    to define a local common symbol.  */
index 595dc4465df64ae8e9c4a900cf681b81c28ce62b..230cb5d3e2527fe2be4a3e7e281a14afb9a8dce4 100644 (file)
@@ -1233,7 +1233,7 @@ extern struct rtx_def *i960_compare_op0, *i960_compare_op1;
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*%s%lu", PREFIX, (unsigned long)(NUM))
 
 #define ASM_OUTPUT_REG_PUSH(FILE,REGNO)  \
   fprintf (FILE, "\tst\t%s,(sp)\n\taddo\t4,sp,sp\n", reg_names[REGNO])
index 0ce72a98f907d15db24b6c78372100d1a1298aba..a63f36438314e917fd096aef7f5e187d0bfc3712 100644 (file)
@@ -488,7 +488,7 @@ do {                                        \
       if (GET_CODE (addr) == CONST_INT                                 \
          && INTVAL (addr) < 0x8000                                     \
          && INTVAL (addr) >= -0x8000)                                  \
-       fprintf (FILE, "%d.w", INTVAL (addr));                          \
+       fprintf (FILE, "%d.w", (int) INTVAL (addr));                    \
       else                                                             \
         output_addr_const (FILE, addr);                                        \
     }}
index edc209838a2ab53d1718b5d920b6d52148d3b62c..796e9f34360b8d07440a9ce6351d6147c82ec9ff 100644 (file)
@@ -1178,7 +1178,7 @@ extern long mcore_current_compilation_timestamp;
         {                                                      \
           fputs ("\t.comm\t", FILE);                           \
           assemble_name (FILE, NAME);                          \
-          fprintf (FILE, ",%d\n", SIZE);                       \
+          fprintf (FILE, ",%lu\n", (unsigned long)(SIZE));     \
         }                                                      \
     }                                                          \
   while (0)
index 07f3704aac3d4ec9126c76b105528cd8bc6c9d76..ebad33511414db2bc27ada03b044049758d2cc91 100644 (file)
@@ -1047,7 +1047,7 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n")        \
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%s_%d", PREFIX, NUM)
+  sprintf (LABEL, "*%s_%lu", PREFIX, (unsigned long)(NUM))
 
 #define ASM_OUTPUT_ASCII(FILE, P, SIZE)  \
   output_ascii (FILE, P, SIZE)
index 0c83d984a5e666b97d55dbe65a8b05a702bd1fc6..f3ccb02a116e15a3703df47716bdbc3b585f888b 100644 (file)
@@ -231,5 +231,5 @@ while (0)
 do {                                                                   \
   fprintf ((FILE), "%s", COMMON_ASM_OP);                               \
   assemble_name ((FILE), (NAME));                                      \
-  fprintf ((FILE), ",%u\n", (SIZE));                                   \
+  fprintf ((FILE), ",%lu\n", (unsigned long)(SIZE)); \
 } while (0)
index 88a63db8023a71f857750b2cfc3cd30a28a73ec2..4d3e0a639944af1c90d30001672945369643ec85 100644 (file)
@@ -142,7 +142,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef  ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)                  \
-  sprintf (LABEL, "*.L%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*.L%s%lu", PREFIX, (unsigned long)(NUM))
 
 
 /************************[  Debugger stuff  ]*********************************/
index 7fa2b4b9079056b336aec2d1cb5ca1b8a3a76e89..a398069f8045ff2aa0479b687ee5357cc1da1179 100644 (file)
@@ -64,7 +64,7 @@ Boston, MA 02111-1307, USA.
 #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \
 ( fputs (".comm ", (FILE)),                    \
   assemble_name ((FILE), (NAME)),              \
-  fprintf ((FILE), ",%u\n", (SIZE)))
+  fprintf ((FILE), ",%lu\n", (unsigned long)(SIZE)))
 
 /* This says how to output an assembler line
    to define a local common symbol.  */