Avoid "I64" format warnings while bootstrapping on mingw32 host

James A. Morrison ja2morri@csclub.uwaterloo.ca
Fri Nov 26 22:28:00 GMT 2004


Mark Mitchell <mark@codesourcery.com> writes:

> Danny Smith wrote:
> > This change
> > 2004-11-23  Mark Mitchell  <mark@codesourcery.com>
> > 	* hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it
> > throughout.
> > 	* config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
> > 	* doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
> > breaks bootstrap on mingw32 host with warnings like:
> > ../../gcc/gcc/cfg.c: In function 'dump_flow_info':
> > ../../gcc/gcc/cfg.c:594: warning: ISO C does not support the 'I' printf flag
> > ../../gcc/gcc/cfg.c:594: warning: format '%I64d' expects type 'int', but argument 3 has
> > type 'gcov_type'
> 
> I'm slightly stuck, because c-format.c already wants to claim "I" as a
> a known printf modifier.  (See, for example, printf_flag_specs in
> c-format.c.) I don't know what that flag is for; it doesn't seem to be
> documented in my version of glibc.  I need to know what that's for
> before I can make further progress, I think.  I'm sure Joseph will
> fill me in shortly.
> 
> FYI,

 I think it's for localized numbers.
Here is an explanation of why it is there:
http://sources.redhat.com/ml/libc-alpha/2004-01/msg00141.html
 
> -- 
> Mark Mitchell
> CodeSourcery, LLC
> mark@codesourcery.com
> (916) 791-8304
> 


-- 
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim



More information about the Gcc-patches mailing list