unicosmk.h (ASM_OUTPUT_DOUBLE, [...]): Fix format specifier warning.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 11 Nov 2001 05:56:47 +0000 (05:56 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 11 Nov 2001 05:56:47 +0000 (05:56 +0000)
* alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
format specifier warning.
* convex.h (ASM_OUTPUT_BYTE): Likewise.
* elfos.h (ALIGN_ASM_OP): Undef before defining.
* i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
warning.
* i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386-interix.h (gen_stdcall_suffix): Prototype.
* i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
* i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_LONG_DOUBLE): Likewise.
* i386/interix.c (gen_stdcall_suffix): Const-ify.
* i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
specifier warnings.
* i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_LONG_DOUBLE): Likewise.
* i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
* m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
Likewise.
* m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
Likewise.
* m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
* m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
Likewise.
* m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
Likewise.
* m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
Likewise.
* m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
* m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
* m68k/news.h (PRINT_OPERAND): Likewise.
* m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
* m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
* m68k/plexus.h (ASM_SPEC): Insert space between macro name and
definition.
* m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
* m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
* m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
PRINT_OPERAND): Likewise.
* m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
Likewise.
* mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
* mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
* mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
* mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
* mips.c (mips_output_external_libcall): Mark parameter with
ATTRIBUTE_UNUSED.
(mips_asm_file_start): Move variable into the scope where it's
used.
* mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
* mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
* mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
* ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* ns32k.c (print_operand): Likewise.
* pa.c (print_operand, output_div_insn): Likewise.
* pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
* pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
* sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
specifier warnings.
* sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
(ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
* sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
specifier warnings.
* svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.

* sdbout.c (sdbout_end_epilogue): Mark parameter with
ATTRIBUTE_UNUSED.
* varasm.c (assemble_global): Likewise.

From-SVN: r46922

58 files changed:
gcc/ChangeLog
gcc/config/alpha/unicosmk.h
gcc/config/convex/convex.h
gcc/config/elfos.h
gcc/config/i386/att.h
gcc/config/i386/bsd.h
gcc/config/i386/gas.h
gcc/config/i386/i386-interix.h
gcc/config/i386/i386.h
gcc/config/i386/i386elf.h
gcc/config/i386/interix.c
gcc/config/i386/next.h
gcc/config/i386/osfrose.h
gcc/config/i386/ptx4-i.h
gcc/config/i386/sco5.h
gcc/config/i386/sequent.h
gcc/config/i386/sun386.h
gcc/config/i386/svr3dbx.h
gcc/config/m68k/3b1.h
gcc/config/m68k/altos3068.h
gcc/config/m68k/amix.h
gcc/config/m68k/atari.h
gcc/config/m68k/crds.h
gcc/config/m68k/dpx2.h
gcc/config/m68k/hp320.h
gcc/config/m68k/m68k.h
gcc/config/m68k/m68kelf.h
gcc/config/m68k/m68kv4.h
gcc/config/m68k/mot3300.h
gcc/config/m68k/news.h
gcc/config/m68k/next.h
gcc/config/m68k/next21.h
gcc/config/m68k/plexus.h
gcc/config/m68k/sgs.h
gcc/config/m68k/sun2o4.h
gcc/config/m68k/sun3.h
gcc/config/m68k/tower-as.h
gcc/config/m88k/m88k.h
gcc/config/mips/elf.h
gcc/config/mips/elf64.h
gcc/config/mips/iris5gas.h
gcc/config/mips/linux.h
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/netbsd.h
gcc/config/mips/sni-gas.h
gcc/config/ns32k/encore.h
gcc/config/ns32k/ns32k.c
gcc/config/pa/pa.c
gcc/config/pa/pa.h
gcc/config/pa/pa64-hpux.h
gcc/config/sparc/linux.h
gcc/config/sparc/linux64.h
gcc/config/sparc/pbd.h
gcc/config/sparc/vxsim.h
gcc/config/svr3.h
gcc/sdbout.c
gcc/varasm.c

index 5430046f9937b6326bcbb85fcc4eb7cfe4450273..e2782cb351a7692531917c7d29d028e0b4597b0f 100644 (file)
@@ -1,3 +1,90 @@
+2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
+       format specifier warning.
+       * convex.h (ASM_OUTPUT_BYTE): Likewise.
+       * elfos.h (ALIGN_ASM_OP): Undef before defining.
+       * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
+       warning.
+       * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386-interix.h (gen_stdcall_suffix): Prototype.
+       * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
+       * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
+       ASM_OUTPUT_LONG_DOUBLE): Likewise.
+       * i386/interix.c (gen_stdcall_suffix): Const-ify.
+       * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
+       ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
+       specifier warnings.
+       * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
+       ASM_OUTPUT_LONG_DOUBLE): Likewise.
+       * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
+       ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
+       * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
+       Likewise.
+       * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
+       Likewise.
+       * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
+       * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
+       ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
+       Likewise.
+       * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
+       Likewise.
+       * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
+       Likewise.
+       * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
+       * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
+       * m68k/news.h (PRINT_OPERAND): Likewise.
+       * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
+       ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
+       * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
+       * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
+       definition.
+       * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
+       ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
+       ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
+       * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
+       * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
+       ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
+       PRINT_OPERAND): Likewise.
+       * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
+       Likewise.
+       * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
+       * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
+       * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
+       * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
+       * mips.c (mips_output_external_libcall): Mark parameter with
+       ATTRIBUTE_UNUSED.
+       (mips_asm_file_start): Move variable into the scope where it's
+       used.
+       * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
+       * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
+       * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
+       * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * ns32k.c (print_operand): Likewise.
+       * pa.c (print_operand, output_div_insn): Likewise.
+       * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
+       ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
+       * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
+       * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
+       specifier warnings.
+       * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
+       * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
+       specifier warnings.
+       * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+
+       * sdbout.c (sdbout_end_epilogue): Mark parameter with
+       ATTRIBUTE_UNUSED.
+       * varasm.c (assemble_global): Likewise.
+
 2001-11-11  H.J. Lu <hjl@gnu.org>
 
        * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
index 62ce020c21242aac80fc0cdc966c3b5498a4f30e..87f9603b3407dd2a2fe76474bdf95238f3aa6ac8 100644 (file)
@@ -431,7 +431,7 @@ ssib_section ()                     \
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)                  \
   do { long t[2];                                      \
        REAL_VALUE_TO_TARGET_DOUBLE ((VALUE), t);       \
-       fprintf (FILE, "\t.quad ^X%x\n", t[0]);         \
+       fprintf (FILE, "\t.quad ^X%lx\n", t[0]);                \
   } while(0)
 #endif
  
@@ -452,13 +452,13 @@ ssib_section ()                   \
 #define ASM_OUTPUT_FLOAT(FILE,VALUE)                   \
   do { long t;                                         \
        REAL_VALUE_TO_TARGET_SINGLE ((VALUE), t);       \
-       fprintf (FILE, "\t.long ^X%x\n", t & 0xffffffff);\
+       fprintf (FILE, "\t.long ^X%lx\n", t & 0xffffffff);\
   } while (0)
 #else
 #define ASM_OUTPUT_FLOAT(FILE,VALUE)                   \
   do { long t;                                         \
        REAL_VALUE_TO_TARGET_SINGLE ((VALUE), t);       \
-       fprintf (FILE, "\t.long ^X%x\n", (t >> 32) & 0xffffffff);\
+       fprintf (FILE, "\t.long ^X%lx\n", (t >> 32) & 0xffffffff);\
   } while(0)
 #endif
 
index a69d9d2328a1044d07a249893fb8b66943d6e536..50d5bafd54d049e7a1ea13016b4b2cde6a5eda11 100644 (file)
@@ -1311,7 +1311,7 @@ enum reg_class {
 /* This is how to output an assembler line for a numeric constant byte.  */
 
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\tds.b %#x\n", (VALUE))
+  fprintf (FILE, "\tds.b %#x\n", (int)(VALUE))
 
 /* This is how to output a string */
 
index 66b0db7e8e334d50211078b1097405f11c8c1eb0..5c64afbc1a626afb568ce458fb1e3efef7c3040e 100644 (file)
@@ -165,6 +165,7 @@ Boston, MA 02111-1307, USA.  */
    make sure that the location counter for the .rodata section gets pro-
    perly re-aligned prior to the actual beginning of the jump table.  */
 
+#undef ALIGN_ASM_OP
 #define ALIGN_ASM_OP "\t.align\t"
 
 #ifndef ASM_OUTPUT_BEFORE_CASE_LABEL
index a48226e58ee890d4803d6db0e1f4638ee42e5c31..39bb1799f9739324b15a8608fe823f7d783ddd2e 100644 (file)
@@ -91,7 +91,7 @@ do                                                            \
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-  sprintf ((BUF), "%s%s%d", LOCAL_LABEL_PREFIX, (PREFIX), (NUMBER))
+  sprintf ((BUF), "%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUMBER))
 
 /* This is how to output an internal numbered label where
    PREFIX is the class of label and NUM is the number within the class.  */
index cba2dde1d3569a4cb611c0144f66f09926f23cf7..6473cae88f79cd0e2ceb996eb5a53a2feb607c25 100644 (file)
@@ -96,10 +96,10 @@ Boston, MA 02111-1307, USA.  */
 
 #ifdef NO_UNDERSCORES
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-    sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER))
+    sprintf ((BUF), "*.%s%ld", (PREFIX), (long)(NUMBER))
 #else
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-    sprintf ((BUF), "*%s%d", (PREFIX), (NUMBER))
+    sprintf ((BUF), "*%s%ld", (PREFIX), (long)(NUMBER))
 #endif
 
 /* This is how to output an internal numbered label where
index 19b28596579fa2ba8e1288994745ec013090c19e..4c392966244722a798cd91e5cf7e9fd9b31d061c 100644 (file)
@@ -150,7 +150,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-    sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER))
+    sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))
 
 /* This is how to output an internal numbered label where
    PREFIX is the class of label and NUM is the number within the class.  */
index 29f5a2241dcd00854a62cf6de43282b4a3a6c3f1..f94d9c873532e7a9426dc6e3df8e888937e901d6 100644 (file)
@@ -350,7 +350,8 @@ while (0)
 
    stddef renaming does NOT apply to Alpha.  */
 
-char *gen_stdcall_suffix ();
+union tree_node;
+const char *gen_stdcall_suffix PARAMS ((union tree_node *));
 
 #undef ENCODE_SECTION_INFO
 #define ENCODE_SECTION_INFO(DECL)                                      \
index 7edfc283c4868e4b139592360b7795e22588f74e..be2af29793049c4d2a4c97ebc3a4b485e4e651f4 100644 (file)
@@ -2974,7 +2974,7 @@ do { long l;                                              \
 /* This is how to output an assembler line for a numeric constant byte.  */
 
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  asm_fprintf ((FILE), "%s0x%x\n", ASM_BYTE_OP, (VALUE))
+  asm_fprintf ((FILE), "%s0x%x\n", ASM_BYTE_OP, (int) (VALUE))
 
 /* This is how to output an insn to push a register on the stack.
    It need not be very fast code.  */
index 86d288883bdbb4f3bb81a2dbd076fcfabf8f027e..352c3e17b7095c3ac588aba3e3a9fa5b2a7bb839 100644 (file)
@@ -57,7 +57,7 @@ Boston, MA 02111-1307, USA.  */
 do { long value;                                                       \
      REAL_VALUE_TO_TARGET_SINGLE ((VALUE), value);                     \
      if (sizeof (int) == sizeof (long))                                        \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value);                 \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value);           \
      else                                                              \
          fprintf((FILE), "%s0x%lx\n", ASM_LONG, value);                        \
    } while (0)
@@ -73,8 +73,8 @@ do { long value[2];                                                   \
      REAL_VALUE_TO_TARGET_DOUBLE ((VALUE), value);                     \
      if (sizeof (int) == sizeof (long))                                        \
        {                                                               \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[0]);              \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[1]);              \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[0]);                \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[1]);                \
        }                                                               \
      else                                                              \
        {                                                               \
@@ -90,9 +90,9 @@ do { long value[3];                                                   \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE ((VALUE), value);                        \
      if (sizeof (int) == sizeof (long))                                        \
        {                                                               \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[0]);              \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[1]);              \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[2]);              \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[0]);                \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[1]);                \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[2]);                \
        }                                                               \
      else                                                              \
        {                                                               \
index ed71cd45b58b23cfa61513ea6c91d86fa9cf172d..8ea2c6e171f2571e5d1f364bdc03b1288ecd980c 100644 (file)
@@ -31,14 +31,14 @@ Boston, MA 02111-1307, USA.  */
    suffix consisting of an atsign (@) followed by the number of bytes of 
    arguments */
 
-char *
+const char *
 gen_stdcall_suffix (decl)
   tree decl;
 {
   int total = 0;
   /* ??? This probably should use XSTR (XEXP (DECL_RTL (decl), 0), 0) instead
      of DECL_ASSEMBLER_NAME.  */
-  char *asmname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
+  const char *const asmname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
   char *newsym;
 
   if (TYPE_ARG_TYPES (TREE_TYPE (decl)))
index d97d2dc7417b5581c9bbc7d00ebafd7ea0c1ed60..02ca452e75fa2c6ea3cd0bdc7ee44dcfbf9d0068 100644 (file)
@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA.  */
     REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, hex);                     \
     if (sizeof (int) == sizeof (long))                                 \
       fprintf (FILE, "\t.long 0x%x\n\t.long 0x%x\n\t.long 0x%x\n",     \
-               hex[0], hex[1], hex[2]);                                \
+               (int) hex[0], (int) hex[1], (int) hex[2]);              \
     else                                                               \
       fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n\t.long 0x%lx\n",  \
                hex[0], hex[1], hex[2]);                                \
@@ -64,7 +64,8 @@ Boston, MA 02111-1307, USA.  */
     long hex[2];                                                       \
     REAL_VALUE_TO_TARGET_DOUBLE (VALUE, hex);                          \
     if (sizeof (int) == sizeof (long))                                 \
-      fprintf (FILE, "\t.long 0x%x\n\t.long 0x%x\n", hex[0], hex[1]);  \
+      fprintf (FILE, "\t.long 0x%x\n\t.long 0x%x\n",                   \
+        (int) hex[0], (int) hex[1]);                                   \
     else                                                               \
       fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n", hex[0], hex[1]);        \
   } while (0)
@@ -79,7 +80,7 @@ Boston, MA 02111-1307, USA.  */
     long hex;                                                          \
     REAL_VALUE_TO_TARGET_SINGLE (VALUE, hex);                          \
     if (sizeof (int) == sizeof (long))                                 \
-      fprintf (FILE, "\t.long 0x%x\n", hex);                           \
+      fprintf (FILE, "\t.long 0x%x\n", (int) hex);                     \
     else                                                               \
       fprintf (FILE, "\t.long 0x%lx\n", hex);                          \
   } while (0)
@@ -143,7 +144,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-    sprintf ((BUF), "*%s%d", (PREFIX), (NUMBER))
+    sprintf ((BUF), "*%s%ld", (PREFIX), (long)(NUMBER))
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
index e4996302cfebd4b7c6a5a403fcf8c5528e5d9749..36d6345685b31c807a53bb2d4c28aea13bedcd13 100644 (file)
@@ -294,8 +294,8 @@ while (0)
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)                 \
-    sprintf ((BUF), "*%s%s%d", (TARGET_UNDERSCORES) ? "" : ".",                \
-            (PREFIX), (NUMBER))
+    sprintf ((BUF), "*%s%s%ld", (TARGET_UNDERSCORES) ? "" : ".",       \
+            (PREFIX), (long)(NUMBER))
 
 /* This is how to output an internal numbered label where
    PREFIX is the class of label and NUM is the number within the class.  */
index a888d818af5ab71bcf75a4fa67e5d54b7b91e01a..edb14e38b8ff05ac13f338ad0d9f2f326f71ae6b 100644 (file)
@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA.  */
 do { long value;                                                       \
      REAL_VALUE_TO_TARGET_SINGLE ((VALUE), value);                     \
      if (sizeof (int) == sizeof (long))                                        \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value);                 \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value);           \
      else                                                              \
          fprintf((FILE), "%s0x%lx\n", ASM_LONG, value);                        \
    } while (0)
@@ -66,8 +66,8 @@ do { long value[2];                                                   \
      REAL_VALUE_TO_TARGET_DOUBLE ((VALUE), value);                     \
      if (sizeof (int) == sizeof (long))                                        \
        {                                                               \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[0]);              \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[1]);              \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[0]);                \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[1]);                \
        }                                                               \
      else                                                              \
        {                                                               \
@@ -83,9 +83,9 @@ do { long value[3];                                                   \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE ((VALUE), value);                        \
      if (sizeof (int) == sizeof (long))                                        \
        {                                                               \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[0]);              \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[1]);              \
-         fprintf((FILE), "%s0x%x\n", ASM_LONG, value[2]);              \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[0]);                \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[1]);                \
+         fprintf((FILE), "%s0x%x\n", ASM_LONG, (int) value[2]);                \
        }                                                               \
      else                                                              \
        {                                                               \
index 5dd90e39c4bda1cd9913245d1aabae2c630f1b5d..000207c8df5e609ad5820fe91f21a5e1b789a24f 100644 (file)
@@ -232,9 +232,9 @@ do {                                                                         \
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)                        \
 do {                                                                   \
   if (TARGET_ELF)                                                      \
-    sprintf (LABEL, "*.%s%d", (PREFIX), (NUM));                                \
+    sprintf (LABEL, "*.%s%ld", (PREFIX), (long)(NUM));                 \
   else                                                                 \
-    sprintf (LABEL, ".%s%d", (PREFIX), (NUM));                         \
+    sprintf (LABEL, ".%s%ld", (PREFIX), (long)(NUM));                  \
 } while (0)
 
 #undef ASM_OUTPUT_ALIGNED_COMMON
index 379062675627bef07923ca0dcbe1572dba57036d..cffc50ae1e222e8f57318340124b1a8647a002a3 100644 (file)
@@ -135,7 +135,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)\
-  sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER))
+  sprintf ((BUF), "*.%s%ld", (PREFIX), (long)(NUMBER))
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)\
index 20d48c9340c5dcedba9c08bdcac8771f8587e1b2..182f83b96da69fa9470933aaf9c0b96ae61455ee 100644 (file)
@@ -129,7 +129,7 @@ do                                                          \
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-  sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER))
+  sprintf ((BUF), "*.%s%ld", (PREFIX), (long)(NUMBER))
 
 /* The prefix to add to user-visible assembler symbols.  */
 
index 36c01cc3c21a0c8a433136afbff154985aca4dce..b0e4237aa4ab57c1bb2381285dbb0bdbdf3f902d 100644 (file)
@@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
-    sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER))
+    sprintf ((BUF), "*.%s%ld", (PREFIX), (long)(NUMBER))
 
 /* With the current gas, .align N aligns to an N-byte boundary.
    This is done to be compatible with the system assembler.
index 31194c82309d34d0d2dbe076cd3a2fb18e52996c..343114128b53623b1559d1e175368985724121df 100644 (file)
@@ -132,14 +132,14 @@ output_file_directive ((FILE), main_input_filename)
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)  \
 do { long l[2];                                                \
      REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);           \
-     fprintf (FILE, "\tlong 0x%x,0x%x\n", l[0], l[1]); \
+     fprintf (FILE, "\tlong 0x%lx,0x%lx\n", l[0], l[1]); \
    } while (0)
 
 #undef ASM_OUTPUT_LONG_DOUBLE
 #define ASM_OUTPUT_LONG_DOUBLE(FILE,VALUE)                             \
 do { long l[3];                                                                \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l);                      \
-     fprintf (FILE, "\tlong 0x%x,0x%x,0x%x\n", l[0], l[1], l[2]);      \
+     fprintf (FILE, "\tlong 0x%lx,0x%lx,0x%lx\n", l[0], l[1], l[2]);   \
    } while (0)
 
 /* This is how to output an assembler line defining a `float' constant.  */
@@ -147,7 +147,7 @@ do { long l[3];                                                             \
 #define ASM_OUTPUT_FLOAT(FILE,VALUE)  \
 do { long l;                                   \
      REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);   \
-     fprintf ((FILE), "\tlong 0x%x\n", l);     \
+     fprintf ((FILE), "\tlong 0x%lx\n", l);    \
    } while (0)
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
@@ -348,7 +348,7 @@ do { long l;                                        \
     }}
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)        \
-  sprintf ((LABEL), "%s%%%d", (PREFIX), (NUM))
+  sprintf ((LABEL), "%s%%%ld", (PREFIX), (long)(NUM))
 
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
     fprintf (FILE, "%s%%%d:\n", PREFIX, NUM)
index 031509dbe356eef4ed5c187d678af1a0201ccfd4..c13e6086a032ae87d63777540aebae8e002ddf63 100644 (file)
@@ -110,7 +110,7 @@ Boston, MA 02111-1307, USA.  */
           long l;                                              \
           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);              \
           if (sizeof (int) == sizeof (long))                   \
-            asm_fprintf ((FILE), "%I0x%x", l);                 \
+            asm_fprintf ((FILE), "%I0x%x", (int) l);           \
           else                                                 \
             asm_fprintf ((FILE), "%I0x%lx", l);                        \
         }                                                      \
index d59ad0ffb981dee7289679a2212595ee873230f3..1fbdcc3d7f35e4910a56ed79bed7192b92949e13 100644 (file)
@@ -100,7 +100,7 @@ do {                                                                        \
 #undef ASM_OUTPUT_ASCII
 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                         \
 do {                                                           \
-  register int sp = 0, lp = 0, ch;                             \
+  register int sp = 0, ch;                                     \
   fprintf ((FILE), "%s", BYTE_ASM_OP);                         \
   do {                                                         \
     ch = (PTR)[sp];                                            \
@@ -137,9 +137,9 @@ do {                                                                \
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
   if (flag_pic && !strcmp(PREFIX,"LC"))                        \
-    sprintf (LABEL, "*%s%%%d", PREFIX, NUM);           \
+    sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM));          \
   else                                                 \
-    sprintf (LABEL, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM)
+    sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM))
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
index e17530a913fcfdd518c4af8596d5b6213bebc1ed..8e1ddff9a7eac067d30d55977c787e312966c969 100644 (file)
@@ -60,7 +60,7 @@ int switch_table_difference_label_flag;
 #undef ASM_OUTPUT_ASCII
 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                         \
 {                                                              \
-  register int sp = 0, lp = 0, ch;                             \
+  register int sp = 0, ch;                                     \
   fprintf ((FILE), "%s", BYTE_ASM_OP);                         \
   do {                                                         \
     ch = (PTR)[sp];                                            \
@@ -94,9 +94,9 @@ int switch_table_difference_label_flag;
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
   if (flag_pic && !strcmp(PREFIX,"LC"))                        \
-    sprintf (LABEL, "*%s%%%d", PREFIX, NUM);           \
+    sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM));  \
   else                                                 \
-    sprintf (LABEL, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM)
+    sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM))
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
index 896285a531f4d32005964d9c5f8c4b71b7e0a603..9a34ceef22e62609ec775dac22c859106e468680 100644 (file)
@@ -157,11 +157,11 @@ Boston, MA 02111-1307, USA.  */
 
 /* This is how to output an assembler line defining a `double' constant.  */
 
-#undef ASM_OUTPUT_DOUBLE
+#undef ASM_OUTPUT_DOUBLE   
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)  \
 do { long l[2];                                                \
      REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);           \
-     fprintf (FILE, "\t.long 0x%x, 0x%x\n", l[0], l[1]);       \
+     fprintf (FILE, "\t.long 0x%lx, 0x%lx\n", l[0], l[1]);     \
    } while (0)
 
 /*unos has no .skip :-( */
@@ -300,7 +300,7 @@ do {  int i;                                                                \
        ASM_OUTPUT_FLOAT_OPERAND (CODE, FILE, r);                       \
       else                                                             \
         { REAL_VALUE_TO_TARGET_SINGLE (r, l);                          \
-          fprintf (FILE, "$0x%x", l); } }                              \
+          fprintf (FILE, "$0x%lx", l); } }                             \
   else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) == DFmode)     \
     { REAL_VALUE_TYPE r;                                               \
       REAL_VALUE_FROM_CONST_DOUBLE (r, X);                             \
index 84f431df8f7face3064a1fd0ddb242bf727c27b3..27aa342cb50427aafe0a58ea14dd31774c8912cf 100644 (file)
@@ -279,7 +279,7 @@ Boston, MA 02111-1307, USA.  */
 do { long l[3];                                                                \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l);                      \
      if (sizeof (int) == sizeof (long))                                        \
-       fprintf (FILE, "\tdc.l $%x,$%x,$%x\n", l[0], l[1], l[2]);       \
+       fprintf (FILE, "\tdc.l $%x,$%x,$%x\n", (int)l[0], (int)l[1], (int)l[2]); \
      else                                                              \
        fprintf (FILE, "\tdc.l $%lx,$%lx,$%lx\n", l[0], l[1], l[2]);    \
    } while (0)
@@ -295,7 +295,7 @@ do { long l[3];                                                             \
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)  \
 do { long l[2];                                                                \
      REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);                           \
-     fprintf (FILE, "\tdc.l $%x,$%x\n", l[0], l[1]);                   \
+     fprintf (FILE, "\tdc.l $%lx,$%lx\n", l[0], l[1]);                 \
    } while (0)
 
 
@@ -305,7 +305,7 @@ do { long l[2];                                                             \
 do { long l;                                           \
      REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);           \
      if (sizeof (int) == sizeof (long))                        \
-       fprintf (FILE, "\tdc.l $%x\n", l);              \
+       fprintf (FILE, "\tdc.l $%x\n", (int) l);                \
      else                                              \
        fprintf (FILE, "\tdc.l $%lx\n", l);             \
    } while (0)
@@ -333,7 +333,7 @@ do { long l;                                                \
 /* This is how to output an assembler line for a numeric constant byte.  */
 #undef ASM_OUTPUT_BYTE
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\tdc.b $%x\n", (VALUE))
+  fprintf (FILE, "\tdc.b $%x\n", (int)(VALUE))
 
 /* This is how to output an element of a case-vector that is absolute.
    (The 68000 does not use such vectors,
@@ -367,7 +367,7 @@ do { long l;                                                \
           long l;                                              \
           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);              \
           if (sizeof (int) == sizeof (long))                   \
-            asm_fprintf ((FILE), "%I$%x", l);                  \
+            asm_fprintf ((FILE), "%I$%x", (int) l);            \
           else                                                 \
             asm_fprintf ((FILE), "%I$%lx", l);                 \
         }                                                      \
index 6bb86d3c559a1da06cdc6a7ece2166c5c85dc60e..03617b430742b9f85b47d41a04f04eff10fe59eb 100644 (file)
@@ -283,7 +283,7 @@ do{  if (PREFIX[0] == 'L' && PREFIX[1] == 'I')              \
 #define ASM_OUTPUT_LONG_DOUBLE(FILE,VALUE)                             \
 do { long l[3];                                                                \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l);                      \
-     fprintf (FILE, "\tlong 0x%x,0x%x,0x%x\n", l[0], l[1], l[2]);      \
+     fprintf (FILE, "\tlong 0x%lx,0x%lx,0x%lx\n", l[0], l[1], l[2]);   \
    } while (0)
   
 /* This is how to output an assembler line defining an `int' constant.  */
@@ -308,7 +308,7 @@ do { long l[3];                                                             \
 /* This is how to output an assembler line for a numeric constant byte.  */
 
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\tbyte 0x%x\n", (VALUE))
+  fprintf (FILE, "\tbyte 0x%x\n", (int)(VALUE))
 
 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE)  \
   fprintf (FILE, "\tlong L%d\n", VALUE)
index fad64082b57dbd43ba6f26642825c49ac3172ccd..b0e0e25a9cd2da3be8a2c2fea6380f899e22288b 100644 (file)
@@ -1952,7 +1952,7 @@ __transfer_from_trampoline ()                                     \
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM)
+  sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM))
 
 /* This is how to output a `long double' extended real constant.  */
   
@@ -2000,7 +2000,7 @@ do { long l;                                              \
 /* This is how to output an assembler line for a numeric constant byte.  */
 
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\t.byte 0x%x\n", (VALUE))
+  fprintf (FILE, "\t.byte 0x%x\n", (int)(VALUE))
 
 /* This is how to output an insn to push a register on the stack.
    It need not be very fast code.  */
index c75203e6b143be8ab18962dfce560d7c983f6b9c..060b13bfc5004de1d4da5fa36a9b1cec5d2733c7 100644 (file)
@@ -180,7 +180,7 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_OUTPUT_ASCII
 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                         \
 do {                                                           \
-  register int sp = 0, lp = 0, ch;                             \
+  register int sp = 0, ch;                                     \
   fprintf ((FILE), "%s", BYTE_ASM_OP);                         \
   do {                                                         \
     ch = (PTR)[sp];                                            \
index e10b6e5e506fd1f35d3e4e049d755a99174e484d..4d26e4227311e8289d622d3e1742dc41be3c7c4f 100644 (file)
@@ -215,7 +215,7 @@ do {                                                                        \
 #undef ASM_OUTPUT_ASCII
 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                         \
 do {                                                           \
-  register int sp = 0, lp = 0, ch;                             \
+  register int sp = 0, ch;                                     \
   fprintf ((FILE), "%s", BYTE_ASM_OP);                         \
   do {                                                         \
     ch = (PTR)[sp];                                            \
index be2e05705062138f08ef586b7c601be64f4b86fb..4b96a50ce4c88e489d41bbd8d503e024c130ccc8 100644 (file)
@@ -365,7 +365,7 @@ do { long l;                                        \
 
 #undef ASM_OUTPUT_BYTE
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\t%s 0x%x\n", ASM_BYTE, (VALUE))
+  fprintf (FILE, "\t%s 0x%x\n", ASM_BYTE, (int)(VALUE))
 
 /* This is how to output an assembler line
    that says to advance the location counter
index edb05c00479aa50dd77aa6fb3d07db2ccc937211..8e556439b0fc6362243f25b0d4229565a89b7c50 100644 (file)
@@ -285,7 +285,7 @@ do { char dstr[30];                                 \
       else                                                             \
         { long l;                                                      \
           REAL_VALUE_TO_TARGET_SINGLE (r, l);                          \
-          fprintf (FILE, "#0x%x", l);                                  \
+          fprintf (FILE, "#0x%lx", l);                                 \
         }}                                                             \
   else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) == XFmode)     \
     { REAL_VALUE_TYPE r;                                               \
index 501b1117e8a7513b18546b1f1ef807c79cb7e58d..1e2d10d527e54ecb1f14157a74c35d56eca8d71e 100644 (file)
@@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA.  */
   do {                                                                 \
     long hex[2];                                                       \
     REAL_VALUE_TO_TARGET_DOUBLE (VALUE, hex);                          \
-    fprintf (FILE, "\t.long 0x%x\n\t.long 0x%x\n", hex[0], hex[1]);    \
+    fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n", hex[0], hex[1]);  \
   } while (0)
 #else
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)                                  \
@@ -74,7 +74,7 @@ Boston, MA 02111-1307, USA.  */
   do {                                                                 \
     long hex;                                                          \
     REAL_VALUE_TO_TARGET_SINGLE (VALUE, hex);                          \
-    fprintf (FILE, "\t.long 0x%x\n", hex);                             \
+    fprintf (FILE, "\t.long 0x%lx\n", hex);                            \
   } while (0)
 #else
 #define ASM_OUTPUT_FLOAT(FILE,VALUE)                                   \
@@ -99,7 +99,7 @@ Boston, MA 02111-1307, USA.  */
   do {                                                                 \
     long hex;                                                          \
     REAL_VALUE_TO_TARGET_SINGLE (VALUE, hex);                          \
-    fprintf (FILE, "#0%c%x", (CODE) == 'f' ? 'b' : 'x', hex);          \
+    fprintf (FILE, "#0%c%lx", (CODE) == 'f' ? 'b' : 'x', hex);         \
   } while (0)
 #else
 #define ASM_OUTPUT_FLOAT_OPERAND(CODE,FILE,VALUE)              \
@@ -109,7 +109,7 @@ Boston, MA 02111-1307, USA.  */
           long l;                                              \
           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);              \
           if (sizeof (int) == sizeof (long))                   \
-            asm_fprintf ((FILE), "%I0x%x", l);                 \
+            asm_fprintf ((FILE), "%I0x%x", (int) l);           \
           else                                                 \
             asm_fprintf ((FILE), "%I0x%lx", l);                        \
         }                                                      \
@@ -134,7 +134,7 @@ Boston, MA 02111-1307, USA.  */
   do {                                                                 \
     long hex[2];                                                       \
     REAL_VALUE_TO_TARGET_DOUBLE (VALUE, hex);                          \
-    fprintf (FILE, "#0b%x%08x", hex[0], hex[1]);                       \
+    fprintf (FILE, "#0b%lx%08lx", hex[0], hex[1]);                     \
   } while (0)
 #else
 #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE)                          \
index 960bcf351e942bed64e2653dac731fa0bcd89c1d..5040aa6a92f122a2333884bdcb4a61c7023390c9 100644 (file)
@@ -69,7 +69,7 @@ Boston, MA 02111-1307, USA.  */
           long l;                                              \
           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);              \
           if (sizeof (int) == sizeof (long))                   \
-            asm_fprintf ((FILE), "%I0x%x", l);                 \
+            asm_fprintf ((FILE), "%I0x%x", (int) l);           \
           else                                                 \
             asm_fprintf ((FILE), "%I0x%lx", l);                        \
         }                                                      \
index 765702c56a0ee3539340d047b88deee7164bdd94..0ad980b15e10eb2422b59e97a9bd7b79b6159f9c 100644 (file)
@@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA.  */
 #define CPP_PREDEFINES "-Dm68 -Dunix -Dplexus -Asystem=unix  -Acpu=m68k -Amachine=m68k"
 
 #if TARGET_DEFAULT & MASK_68020
-#define ASM_SPEC\
+#define ASM_SPEC \
 "%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}"
 #undef STRICT_ALIGNMENT
 #define STRICT_ALIGNMENT 0
index 2901246df8209dc0a57940eae86c422dec1555ed..0c5eb596d1f692c32c3b24027edad98b3c4f89b4 100644 (file)
@@ -115,7 +115,7 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_LONG_DOUBLE(FILE,VALUE)                     \
 do { long l[3];                                                        \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l);              \
-     fprintf ((FILE), "%s0x%x,0x%x,0x%x\n", LONG_ASM_OP,       \
+     fprintf ((FILE), "%s0x%lx,0x%lx,0x%lx\n", LONG_ASM_OP,    \
             l[0], l[1], l[2]);                                 \
    } while (0)
 
@@ -125,7 +125,7 @@ do { long l[3];                                                     \
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)                  \
 do { long l[2];                                                \
      REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);           \
-     fprintf ((FILE), "%s0x%x,0x%x\n", LONG_ASM_OP,    \
+     fprintf ((FILE), "%s0x%lx,0x%lx\n", LONG_ASM_OP,  \
              l[0], l[1]);                              \
    } while (0)
 
@@ -135,7 +135,7 @@ do { long l[2];                                             \
 #define ASM_OUTPUT_FLOAT(FILE,VALUE)                   \
 do { long l;                                           \
      REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);           \
-     fprintf ((FILE), "%s0x%x\n", LONG_ASM_OP, l);     \
+     fprintf ((FILE), "%s0x%lx\n", LONG_ASM_OP, l);    \
    } while (0)
 
 /* This is how to output an assembler line that says to advance the
@@ -157,7 +157,7 @@ do { long l;                                                \
 
 #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)                         \
 do {                                                           \
-  register int sp = 0, lp = 0, ch;                             \
+  register int sp = 0, ch;                                     \
   fprintf ((FILE), "%s", BYTE_ASM_OP);                         \
   do {                                                         \
     ch = (PTR)[sp];                                            \
@@ -213,14 +213,14 @@ do {                                                              \
 #define ASM_OUTPUT_FLOAT_OPERAND(CODE,FILE,VALUE)      \
   do { long l;                                         \
        REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);         \
-       asm_fprintf ((FILE), "%I0x%x", l);              \
+       asm_fprintf ((FILE), "%I0x%lx", l);             \
      } while (0)
   
 #undef ASM_OUTPUT_DOUBLE_OPERAND
 #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE)          \
   do { long l[2];                                      \
        REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);         \
-       asm_fprintf ((FILE), "%I0x%x%08x", l[0], l[1]); \
+       asm_fprintf ((FILE), "%I0x%lx%08lx", l[0], l[1]);\
      } while (0)
 
 /* How to output a block of SIZE zero bytes.  Note that the `space' pseudo,
index da722cfa6ec9227b9495d1b07a9e849f8561c7bd..4dd393baccf5384ae125240e348863548949f357 100644 (file)
@@ -146,7 +146,7 @@ Boston, MA 02111-1307, USA.  */
           long l;                                              \
           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);              \
           if (sizeof (int) == sizeof (long))                   \
-            asm_fprintf ((FILE), "%I0x%x", l);                 \
+            asm_fprintf ((FILE), "%I0x%x", (int) l);           \
           else                                                 \
             asm_fprintf ((FILE), "%I0x%lx", l);                        \
         }                                                      \
index cecbd635c1e4b4b4edd6c2d861af1f3f407d7561..e8265630dff013907038dfc21afd82bf2969d10d 100644 (file)
@@ -242,7 +242,7 @@ Boston, MA 02111-1307, USA.  */
           long l;                                              \
           REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);              \
           if (sizeof (int) == sizeof (long))                   \
-            asm_fprintf ((FILE), "%I0x%x", l);                 \
+            asm_fprintf ((FILE), "%I0x%x", (int) l);           \
           else                                                 \
             asm_fprintf ((FILE), "%I0x%lx", l);                        \
         }                                                      \
index 46797384893e207903ef920e0648cfd9d6730246..6dd60dc5ee5b36836723c2c273dec3e965708e13 100644 (file)
@@ -244,7 +244,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)        \
-  sprintf ((LABEL), "%s%%%d", (PREFIX), (NUM))
+  sprintf ((LABEL), "%s%%%ld", (PREFIX), (long)(NUM))
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
@@ -259,21 +259,21 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_DOUBLE(FILE,VALUE)  \
 do { long l[2];                                                \
      REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);           \
-     fprintf (FILE, "\tlong 0x%x,0x%x\n", l[0], l[1]); \
+     fprintf (FILE, "\tlong 0x%lx,0x%lx\n", l[0], l[1]); \
    } while (0)
 
 #undef ASM_OUTPUT_LONG_DOUBLE
 #define ASM_OUTPUT_LONG_DOUBLE(FILE,VALUE)                             \
 do { long l[3];                                                                \
      REAL_VALUE_TO_TARGET_LONG_DOUBLE (VALUE, l);                      \
-     fprintf (FILE, "\tlong 0x%x,0x%x,0x%x\n", l[0], l[1], l[2]);      \
+     fprintf (FILE, "\tlong 0x%lx,0x%lx,0x%lx\n", l[0], l[1], l[2]);   \
    } while (0)
 
 #undef ASM_OUTPUT_FLOAT
 #define ASM_OUTPUT_FLOAT(FILE,VALUE)  \
 do { long l;                                   \
      REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);   \
-     fprintf ((FILE), "\tlong 0x%x\n", l);     \
+     fprintf ((FILE), "\tlong 0x%lx\n", l);    \
    } while (0)
 
 /* This is how to output an assembler line defining an `int' constant.  */
@@ -302,7 +302,7 @@ do { long l;                                        \
 
 #undef ASM_OUTPUT_BYTE
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\tbyte 0x%x\n", (VALUE))
+  fprintf (FILE, "\tbyte 0x%x\n", (int)(VALUE))
 
 #undef ASM_OUTPUT_ADDR_VEC_ELT
 #define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE)  \
@@ -364,7 +364,7 @@ do { long l;                                        \
     { REAL_VALUE_TYPE r; long l;                                       \
       REAL_VALUE_FROM_CONST_DOUBLE (r, X);                             \
       REAL_VALUE_TO_TARGET_SINGLE (r, l);                              \
-      fprintf (FILE, "&0x%x", l); }                                    \
+      fprintf (FILE, "&0x%lx", l); }                                   \
   else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) == DFmode)     \
     { REAL_VALUE_TYPE r; int i[2];                                     \
       REAL_VALUE_FROM_CONST_DOUBLE (r, X);                             \
index def27434ab13836e9705140fcc6ce5412f4de542..cee7096bc9def564684a580da6d2d5a100b6e950 100644 (file)
@@ -2005,7 +2005,7 @@ do {                                                                       \
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)                  \
-  sprintf (LABEL, TARGET_SVR4 ? "*.%s%d" : "*@%s%d", PREFIX, NUM)
+  sprintf (LABEL, TARGET_SVR4 ? "*.%s%ld" : "*@%s%ld", PREFIX, (long)(NUM))
 
 /* Internal macro to get a single precision floating point value into
    an int, so we can print its value in hex.  */
@@ -2079,7 +2079,7 @@ do {                                                                       \
 
 /* This is how to output an assembler line for a numeric constant byte.  */
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "%s0x%x\n", CHAR_ASM_OP, (VALUE))
+  fprintf (FILE, "%s0x%x\n", CHAR_ASM_OP, (int)(VALUE))
 
 /* The single-byte pseudo-op is the default.  Override svr[34].h.  */
 #undef ASM_BYTE_OP
index f07b5a72d2053f85889c632cb1e09ad9cb25fa5e..5add2f12d604558882b1ec3b24b4bae4e9104449 100644 (file)
@@ -38,7 +38,9 @@ Boston, MA 02111-1307, USA.  */
 #define PUT_SDB_SIZE(a)                                        \
 do {                                                   \
   extern FILE *asm_out_text_file;                      \
-  fprintf (asm_out_text_file, "\t.esize\t%d;", (a));   \
+  fprintf (asm_out_text_file, "\t.esize\t");           \
+  fprintf (asm_out_text_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) (a)); \
+  fprintf (asm_out_text_file, ";");                    \
 } while (0)
 
 #undef PUT_SDB_TYPE
@@ -151,7 +153,10 @@ do {                                                                       \
        size_directive_output = 1;                                      \
        fprintf (FILE, "%s", SIZE_ASM_OP);                              \
        assemble_name (FILE, NAME);                                     \
-       fprintf (FILE, ",%d\n",  int_size_in_bytes (TREE_TYPE (DECL))); \
+       fprintf (FILE, ",");                                            \
+       fprintf (FILE, HOST_WIDE_INT_PRINT_DEC,                         \
+         int_size_in_bytes (TREE_TYPE (DECL)));                        \
+       fprintf (FILE, "\n");                                           \
       }                                                                        \
     mips_declare_object (FILE, NAME, "", ":\n", 0);                    \
   } while (0)
index 2f520282bb673644e4c36bdf2b4d0b6ac3c62de1..130dbe747bc639f77733af11232f41b8116bc2b4 100644 (file)
@@ -66,7 +66,9 @@ Boston, MA 02111-1307, USA.  */
 #define PUT_SDB_SIZE(a)                                        \
 do {                                                   \
   extern FILE *asm_out_text_file;                      \
-  fprintf (asm_out_text_file, "\t.esize\t%d;", (a));   \
+  fprintf (asm_out_text_file, "\t.esize\t");           \
+  fprintf (asm_out_text_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) (a)); \
+  fprintf (asm_out_text_file, ";");                    \
 } while (0)
 
 #undef PUT_SDB_TYPE
@@ -133,7 +135,10 @@ do {                                               \
        size_directive_output = 1;                                      \
        fprintf (FILE, "%s", SIZE_ASM_OP);                              \
        assemble_name (FILE, NAME);                                     \
-       fprintf (FILE, ",%d\n",  int_size_in_bytes (TREE_TYPE (DECL))); \
+       fprintf (FILE, ",");                                            \
+       fprintf (FILE, HOST_WIDE_INT_PRINT_DEC,                         \
+         int_size_in_bytes (TREE_TYPE (DECL)));                        \
+       fprintf (FILE, "\n");                                           \
       }                                                                        \
     mips_declare_object (FILE, NAME, "", ":\n", 0);                    \
   } while (0)
index 84922c1c163c1358989dac577da4113853f057cc..c6454c223b5b1a50ef7a015e29d5160346799a47 100644 (file)
@@ -23,7 +23,9 @@
 #define PUT_SDB_SIZE(a)                                       \
 do {                                                  \
   extern FILE *asm_out_text_file;                     \
-  fprintf (asm_out_text_file, "\t.esize\t%d;", (a));  \
+  fprintf (asm_out_text_file, "\t.esize\t");          \
+  fprintf (asm_out_text_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) (a)); \
+  fprintf (asm_out_text_file, ";");                   \
 } while (0)
 
 #undef PUT_SDB_TYPE
index 6caaf760ecdded3a70e9825bc4ce8e4749a60476..b51ee2b3da2a7a72779047776c30541e85d793de 100644 (file)
@@ -84,8 +84,10 @@ do {                                                         \
        size_directive_output = 1;                              \
        fprintf (FILE, "%s", SIZE_ASM_OP);                      \
        assemble_name (FILE, NAME);                             \
-       fprintf (FILE, ",%d\n",                                 \
+       fprintf (FILE, ",");                                    \
+       fprintf (FILE, HOST_WIDE_INT_PRINT_DEC,                 \
                 int_size_in_bytes (TREE_TYPE (DECL)));         \
+       fprintf (FILE, "\n");                                   \
       }                                                                \
     mips_declare_object (FILE, NAME, "", ":\n", 0);            \
   } while (0)
index cab2aa1521e2551fdf646d6d559e771243e4406e..dedad2eac2c87d27f6fd242451f86e927497cebc 100644 (file)
@@ -5852,7 +5852,7 @@ mips_output_external (file, decl, name)
 #ifdef ASM_OUTPUT_UNDEF_FUNCTION
 int
 mips_output_external_libcall (file, name)
-     FILE *file;
+     FILE *file ATTRIBUTE_UNUSED;
      const char *name;
 {
   register struct extern_list *p;
@@ -6090,8 +6090,6 @@ void
 mips_asm_file_start (stream)
      FILE *stream;
 {
-  const char * abi_string = NULL;
-
   ASM_OUTPUT_SOURCE_FILENAME (stream, main_input_filename);
 
   /* Versions of the MIPS assembler before 2.20 generate errors if a branch
@@ -6111,6 +6109,7 @@ mips_asm_file_start (stream)
         bits.  GDB needs this information in order to be able to correctly
         debug these binaries. See the function mips_gdbarch_init() in
         gdb/mips-tdep.c.  */
+      const char * abi_string = NULL;
 
       switch (mips_abi)
        {
index 565e6b6be81fca76854f32fd977923f990b0e7e3..2a6dd441157d9af4482fcc0c32945be26309dbdc 100644 (file)
@@ -1275,7 +1275,9 @@ do {                                                      \
 #define PUT_SDB_INT_VAL(a)                             \
 do {                                                   \
   extern FILE *asm_out_text_file;                      \
-  fprintf (asm_out_text_file, "\t.val\t%d;", (a));     \
+  fprintf (asm_out_text_file, "\t.val\t");             \
+  fprintf (asm_out_text_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT)(a)); \
+  fprintf (asm_out_text_file, ";");                    \
 } while (0)
 
 #define PUT_SDB_VAL(a)                                 \
@@ -1317,7 +1319,9 @@ do {                                                      \
 #define PUT_SDB_SIZE(a)                                        \
 do {                                                   \
   extern FILE *asm_out_text_file;                      \
-  fprintf (asm_out_text_file, "\t.size\t%d;", (a));    \
+  fprintf (asm_out_text_file, "\t.size\t");            \
+  fprintf (asm_out_text_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT)(a)); \
+  fprintf (asm_out_text_file, ";");                    \
 } while (0)
 
 #define PUT_SDB_DIM(a)                                 \
index 5d34ba2eb1df4a48837fca130abe72d6da43cd75..09229f149b310e9559689e0096d2d0c5dd149e28 100644 (file)
@@ -152,7 +152,10 @@ Boston, MA 02111-1307, USA.  */
        size_directive_output = 1;                                      \
        fprintf (FILE, "%s", SIZE_ASM_OP);                              \
        assemble_name (FILE, NAME);                                     \
-       fprintf (FILE, ",%d\n",  int_size_in_bytes (TREE_TYPE (DECL))); \
+       fprintf (FILE, ",");                                            \
+       fprintf (FILE, HOST_WIDE_INT_PRINT_DEC,                         \
+         int_size_in_bytes (TREE_TYPE (DECL)));                        \
+       fprintf (FILE, "\n");                                           \
       }                                                                        \
     ASM_OUTPUT_LABEL(FILE, NAME);                                      \
   } while (0)
index 5b3699820f378e9610e716a49ca38b2fbefe414a..e79c074405f7d95b4e8f0c03dd9a98cd3a7f8b08 100644 (file)
    avoid conflicting with ELF directives.  These are only recognized
    by gas, anyhow, not the native assembler.  */
 #undef PUT_SDB_SIZE
-#define PUT_SDB_SIZE(a)                                       \
+#define PUT_SDB_SIZE(a)                               \
 do {                                                  \
   extern FILE *asm_out_text_file;                     \
-  fprintf (asm_out_text_file, "\t.esize\t%d;", (a));  \
+  fprintf (asm_out_text_file, "\t.esize\t");          \
+  fprintf (asm_out_text_file, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) (a)); \
+  fprintf (asm_out_text_file, ";");                   \
 } while (0)
 
 #undef PUT_SDB_TYPE
index e1337df1d3f492e56bc4ebf4f0f8e600c66b9618..be86c6cbdfc0f95626ad2c1afef2d81151a6b763 100644 (file)
@@ -87,7 +87,7 @@ output_file_directive ((FILE), main_input_filename)
  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)                  \
-       sprintf (LABEL, "*.%s%d", PREFIX, NUM)
+       sprintf (LABEL, "*.%s%ld", PREFIX, (long)(NUM))
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)                     \
        fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL)               \
index 7d923c83c60ef961cfbec0842f66eb062ad96148..264245e3c2a3ddb416287388cd62cbf0a369d9eb 100644 (file)
@@ -1145,7 +1145,7 @@ print_operand (file, x, code)
          {
            union { float f; long l; } uu;
            uu.f = u.d;
-           fprintf (file, "0Fx%08x", uu.l);
+           fprintf (file, "0Fx%08lx", uu.l);
          }
 #else
          fprintf (file, "0f%.20e", u.d); 
index 4a7e7dce3490d0aa24469d22c6a6fd797779fae6..4f592c88a3c76a9f4832ebcb6a38c625e0054865 100644 (file)
@@ -4218,21 +4218,21 @@ print_operand (file, x, code)
     case 'k':
       if (GET_CODE (x) == CONST_INT)
        {
-         fprintf (file, "%d", ~INTVAL (x));
+         fprintf (file, HOST_WIDE_INT_PRINT_DEC, ~INTVAL (x));
          return;
        }
       abort ();
     case 'Q':
       if (GET_CODE (x) == CONST_INT)
        {
-         fprintf (file, "%d", 64 - (INTVAL (x) & 63));
+         fprintf (file, HOST_WIDE_INT_PRINT_DEC, 64 - (INTVAL (x) & 63));
          return;
        }
       abort ();
     case 'L':
       if (GET_CODE (x) == CONST_INT)
        {
-         fprintf (file, "%d", 32 - (INTVAL (x) & 31));
+         fprintf (file, HOST_WIDE_INT_PRINT_DEC, 32 - (INTVAL (x) & 31));
          return;
        }
       abort ();
@@ -4246,14 +4246,14 @@ print_operand (file, x, code)
     case 'p':
       if (GET_CODE (x) == CONST_INT)
        {
-         fprintf (file, "%d", 63 - (INTVAL (x) & 63));
+         fprintf (file, HOST_WIDE_INT_PRINT_DEC, 63 - (INTVAL (x) & 63));
          return;
        }
       abort ();
     case 'P':
       if (GET_CODE (x) == CONST_INT)
        {
-         fprintf (file, "%d", 31 - (INTVAL (x) & 31));
+         fprintf (file, HOST_WIDE_INT_PRINT_DEC, 31 - (INTVAL (x) & 31));
          return;
        }
       abort ();
@@ -4595,13 +4595,15 @@ output_div_insn (operands, unsignedp, insn)
        }
       if (unsignedp)
        {
-         sprintf (buf, "$$divU_%d", INTVAL (operands[0]));
+         sprintf (buf, "$$divU_");
+         sprintf (buf + 7, HOST_WIDE_INT_PRINT_DEC, INTVAL (operands[0]));
          return output_millicode_call (insn,
                                        gen_rtx_SYMBOL_REF (SImode, buf));
        }
       else
        {
-         sprintf (buf, "$$divI_%d", INTVAL (operands[0]));
+         sprintf (buf, "$$divI_");
+         sprintf (buf + 7, HOST_WIDE_INT_PRINT_DEC, INTVAL (operands[0]));
          return output_millicode_call (insn,
                                        gen_rtx_SYMBOL_REF (SImode, buf));
        }
index 7abded2b7494e4a4906c31c13a40e26ba76b3a4a..22542f956a0861bcfa8968203bc5456bd59d818e 100644 (file)
@@ -865,10 +865,19 @@ extern enum cmp_type hppa_branch_type;
   STRIP_NAME_ENCODING (target_name, target_name); \
   pa_output_function_prologue (FILE, 0); \
   if (VAL_14_BITS_P (DELTA)) \
-    fprintf (FILE, "\tb %s\n\tldo %d(%%r26),%%r26\n", target_name, DELTA); \
+    { \
+      fprintf (FILE, "\tb %s\n\tldo ", target_name); \
+      fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, DELTA); \
+      fprintf (FILE, "(%%r26),%%r26\n"); \
+    } \
   else \
-    fprintf (FILE, "\taddil L%%%d,%%r26\n\tb %s\n\tldo R%%%d(%%r1),%%r26\n", \
-            DELTA, target_name, DELTA); \
+    { \
+      fprintf (FILE, "\taddil L%%"); \
+      fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, DELTA); \
+      fprintf (FILE, ",%%r26\n\tb %s\n\tldo R%%", target_name); \
+      fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, DELTA); \
+      fprintf (FILE, "(%%r1),%%r26\n"); \
+    } \
   fprintf (FILE, "\n\t.EXIT\n\t.PROCEND\n"); \
 }
 
@@ -1724,7 +1733,7 @@ while (0)
    This is suitable for output with `assemble_name'.  */
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%c$%s%04d", (PREFIX)[0], (PREFIX) + 1, NUM)
+  sprintf (LABEL, "*%c$%s%04ld", (PREFIX)[0], (PREFIX) + 1, (long)(NUM))
 
 /* This is how to output an assembler line defining a `double' constant.  */
 
@@ -1770,7 +1779,7 @@ while (0)
 /* This is how to output an assembler line for a numeric constant byte.  */
 
 #define ASM_OUTPUT_BYTE(FILE,VALUE)  \
-  fprintf (FILE, "\t.byte 0x%x\n", (VALUE))
+  fprintf (FILE, "\t.byte 0x%x\n", (int)(VALUE))
 
 /* C string constants giving the pseudo-op to use for a sequence of
    2, 4, and 8 byte unaligned constants.  dwarf2out.c needs these.  */
@@ -1912,7 +1921,8 @@ while (0)
       fputs (")", FILE);                                               \
       break;                                                           \
     case CONST_INT:                                                    \
-      fprintf (FILE, "%d(%%r0)", INTVAL (addr));                       \
+      fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, INTVAL (addr));          \
+      fprintf (FILE, "(%%r0)");                                                \
       break;                                                           \
     default:                                                           \
       output_addr_const (FILE, addr);                                  \
index 2df1615dd545129ff98d03fdd23257f202867dc4..2da2023e039615b8fd0111829f53e720a06238df 100644 (file)
@@ -152,9 +152,9 @@ const_section ()                                                    \
 #define UNIQUE_SECTION(DECL,RELOC)                             \
 do {                                                           \
   int len;                                                     \
-  char *name, *string, *prefix;                                        \
-                                                               \
-  name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL));      \
+  char *string;                                                        \
+  const char *prefix,                                          \
+    *const name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL));\
                                                                \
   if (! DECL_ONE_ONLY (DECL))                                  \
     {                                                          \
index 1dd341a082e495a45b0755af0c72d33f9233582d..78fcda5f6fc5baae3de66d32a12f347658f97281 100644 (file)
@@ -227,7 +227,7 @@ do {                                                                        \
 
 #undef  ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*.L%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*.L%s%ld", PREFIX, (long)(NUM))
 
 \f
 /* Define for support of TFmode long double and REAL_ARITHMETIC.
index d227081dc2417f97e3eb849393407564e7adaa07..a15f8710b1234da6f5bf835e7d3b96e715fcf5b2 100644 (file)
@@ -353,7 +353,7 @@ do {                                                                        \
 
 #undef  ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*.L%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*.L%s%ld", PREFIX, (long)(NUM))
 
 /* Define the names of various pseudo-ops used by the Sparc/svr4 assembler.
    ??? If ints are 64 bits then UNALIGNED_INT_ASM_OP (defined elsewhere) is
index db6075ea395a53115e54267dac0808782b0dea18..bf61741318d513417bcc2d61281767b76b605069 100644 (file)
@@ -120,7 +120,7 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_GENERATE_INTERNAL_LABEL
 
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)                   \
-        sprintf (LABEL, "*.%s%d", PREFIX, NUM)
+        sprintf (LABEL, "*.%s%ld", PREFIX, (long)(NUM))
 
 
 /* This is how to output an internal numbered label where
@@ -146,7 +146,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* This is needed for SunOS 4.0, and should not hurt for 3.2
    versions either.  */
-#undef ASM_OUTPUT_SOURCE_LINE(file, line) 
+#undef ASM_OUTPUT_SOURCE_LINE
 #define ASM_OUTPUT_SOURCE_LINE(file, line)             \
   { static int sym_lineno = 1;                         \
     fprintf (file, ".stabn 68,0,%d,.LM%d\n.LM%d:\n",   \
index d6768a91cdae7a6820aeb34501d113efc930b455..9573dbe1312c900bfd2c5e728b92202f5bb3d75b 100644 (file)
@@ -90,7 +90,7 @@ do {                                                                  \
 
 #undef  ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*.L%s%d", PREFIX, NUM)
+  sprintf (LABEL, "*.L%s%ld", PREFIX, (long)(NUM))
 
 \f
 
index 57f3ee333edcabcf0064cb0e699552ba6dfa63b5..b1b9eceabfb120534f414d64f2505491df5070ba 100644 (file)
@@ -187,7 +187,7 @@ Boston, MA 02111-1307, USA.
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
-  sprintf (LABEL, "*%s%s%d", LOCAL_LABEL_PREFIX, PREFIX, NUM)
+  sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM))
 
 /* We want local labels to start with period if made with asm_fprintf.  */
 #undef LOCAL_LABEL_PREFIX
index 4d93a9934b36afc99e2e2d99a9974b90605ec907..8a6ea31ab79f8b317f61be39f367f14976c83792 100644 (file)
@@ -1679,7 +1679,7 @@ sdbout_end_function (line)
 static void
 sdbout_end_epilogue ()
 {
-  const char *const name
+  const char *const name ATTRIBUTE_UNUSED
     = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (current_function_decl));
 
 #ifdef PUT_SDB_EPILOGUE_END
index 064a6caa3f10128afe0a5369155c8853a61b23d7..cb1cd16ff432e56fbba8d1b4d4de6ee003aac5ba 100644 (file)
@@ -1805,7 +1805,7 @@ assemble_external_libcall (fun)
 
 void
 assemble_global (name)
-     const char *name;
+     const char *name ATTRIBUTE_UNUSED;
 {
   ASM_GLOBALIZE_LABEL (asm_out_file, name);
 }