This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch installed for format specifier warnings


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]