summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog24
-rw-r--r--gcc/config/alpha/alpha.c2
-rw-r--r--gcc/config/alpha/elf.h2
-rw-r--r--gcc/config/alpha/vms.h2
-rw-r--r--gcc/config/arm/aof.h4
-rw-r--r--gcc/config/arm/pe.h2
-rw-r--r--gcc/config/avr/avr.h6
-rw-r--r--gcc/config/c4x/c4x.h2
-rw-r--r--gcc/config/dsp16xx/dsp16xx.h2
-rw-r--r--gcc/config/h8300/h8300.h4
-rw-r--r--gcc/config/i370/i370.h2
-rw-r--r--gcc/config/i386/cygming.h2
-rw-r--r--gcc/config/i386/darwin.h2
-rw-r--r--gcc/config/i960/i960.h2
-rw-r--r--gcc/config/m68k/hp320.h2
-rw-r--r--gcc/config/mcore/mcore.h2
-rw-r--r--gcc/config/pdp11/pdp11.h2
-rw-r--r--gcc/config/ptx4.h2
-rw-r--r--gcc/config/sparc/freebsd.h2
-rw-r--r--gcc/config/svr3.h2
20 files changed, 47 insertions, 23 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7c7b426f818..7de4ca482bd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index 76f399e3c6e..eef95ba05e9 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -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;
diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h
index abdb92af501..2ee0f071b4a 100644
--- a/gcc/config/alpha/elf.h
+++ b/gcc/config/alpha/elf.h
@@ -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
diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h
index ab758335c76..698e24941ae 100644
--- a/gcc/config/alpha/vms.h
+++ b/gcc/config/alpha/vms.h
@@ -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)
diff --git a/gcc/config/arm/aof.h b/gcc/config/arm/aof.h
index 2f93fe83449..ef0a6faa186 100644
--- a/gcc/config/arm/aof.h
+++ b/gcc/config/arm/aof.h
@@ -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 */
diff --git a/gcc/config/arm/pe.h b/gcc/config/arm/pe.h
index 1e822afa9e8..471676ee035 100644
--- a/gcc/config/arm/pe.h
+++ b/gcc/config/arm/pe.h
@@ -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)
diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h
index 7a8decbe03b..0d82c139d02 100644
--- a/gcc/config/avr/avr.h
+++ b/gcc/config/avr/avr.h
@@ -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
diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h
index 7c5435cedf8..70c2afcdbc8 100644
--- a/gcc/config/c4x/c4x.h
+++ b/gcc/config/c4x/c4x.h
@@ -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. */
diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h
index 454ea7dbea3..5f2a63a3c89 100644
--- a/gcc/config/dsp16xx/dsp16xx.h
+++ b/gcc/config/dsp16xx/dsp16xx.h
@@ -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 */
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index f4eafdecbba..3225b2cce27 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -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.
diff --git a/gcc/config/i370/i370.h b/gcc/config/i370/i370.h
index 48ade28b5bb..6dedc04ad33 100644
--- a/gcc/config/i370/i370.h
+++ b/gcc/config/i370/i370.h
@@ -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
diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h
index 030e19a0fd3..d6f2a85319b 100644
--- a/gcc/config/i386/cygming.h
+++ b/gcc/config/i386/cygming.h
@@ -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)
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index 3ce8efb0692..2e68be81c6f 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -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. */
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h
index 595dc4465df..230cb5d3e25 100644
--- a/gcc/config/i960/i960.h
+++ b/gcc/config/i960/i960.h
@@ -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])
diff --git a/gcc/config/m68k/hp320.h b/gcc/config/m68k/hp320.h
index 0ce72a98f90..a63f3643831 100644
--- a/gcc/config/m68k/hp320.h
+++ b/gcc/config/m68k/hp320.h
@@ -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); \
}}
diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h
index edc209838a2..796e9f34360 100644
--- a/gcc/config/mcore/mcore.h
+++ b/gcc/config/mcore/mcore.h
@@ -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)
diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h
index 07f3704aac3..ebad3351141 100644
--- a/gcc/config/pdp11/pdp11.h
+++ b/gcc/config/pdp11/pdp11.h
@@ -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)
diff --git a/gcc/config/ptx4.h b/gcc/config/ptx4.h
index 0c83d984a5e..f3ccb02a116 100644
--- a/gcc/config/ptx4.h
+++ b/gcc/config/ptx4.h
@@ -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)
diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h
index 88a63db8023..4d3e0a63994 100644
--- a/gcc/config/sparc/freebsd.h
+++ b/gcc/config/sparc/freebsd.h
@@ -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 ]*********************************/
diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h
index 7fa2b4b9079..a398069f804 100644
--- a/gcc/config/svr3.h
+++ b/gcc/config/svr3.h
@@ -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. */
OpenPOWER on IntegriCloud