mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 23:20:31 +08:00
alpha.c (print_operand_address): Fix format specifier warnings.
* 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
This commit is contained in:
parent
e3091a5f95
commit
74eda121a8
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
||||
fprintf ((STREAM), "\t.comm\t"); \
|
||||
assemble_name ((STREAM), (NAME)); \
|
||||
asm_fprintf ((STREAM), ", %d\t%@ %d\n", \
|
||||
(ROUNDED), (SIZE)); \
|
||||
(int)(ROUNDED), (int)(SIZE)); \
|
||||
} \
|
||||
} \
|
||||
while (0)
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -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))
|
||||
|
||||
|
||||
/* OUTPUT OF ASSEMBLER INSTRUCTIONS */
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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. */
|
||||
|
@ -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])
|
||||
|
@ -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); \
|
||||
}}
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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 ]*********************************/
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user