This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch installed for format specifier warnings
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Thu, 05 Jun 2003 14:37:32 +0100
- Subject: Re: Patch installed for format specifier warnings
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
diff -rup orig/egcc-CVS20030602/gcc/config/arm/pe.h
egcc-CVS20030602/gcc/config/arm/pe.h
--- orig/egcc-CVS20030602/gcc/config/arm/pe.h 2003-03-13
10:00:04.000000000 -0500
+++ egcc-CVS20030602/gcc/config/arm/pe.h 2003-06-03 22:21:47.548556000
-0400
@@ -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)
asm_fprintf supports %wd for printing a HOST_WIDE_INT. Why not use that
instead of casting down?
R.