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: Avoid "I64" format warnings while bootstrapping on mingw32 host


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


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