* 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
+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
&& 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;
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
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
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 */
fprintf ((STREAM), "\t.comm\t"); \
assemble_name ((STREAM), (NAME)); \
asm_fprintf ((STREAM), ", %d\t%@ %d\n", \
- (ROUNDED), (SIZE)); \
+ (int)(ROUNDED), (int)(SIZE)); \
} \
} \
while (0)
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
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.
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
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. */
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 */
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. */
#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.
}
#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
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)
#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. */
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])
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); \
}}
{ \
fputs ("\t.comm\t", FILE); \
assemble_name (FILE, NAME); \
- fprintf (FILE, ",%d\n", SIZE); \
+ fprintf (FILE, ",%lu\n", (unsigned long)(SIZE)); \
} \
} \
while (0)
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)
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)
#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 ]*********************************/
#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. */