This is the mail archive of the 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 <> writes:

> Danny Smith wrote:
> > This change
> > 2004-11-23  Mark Mitchell  <>
> > 	* 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:
> -- 
> Mark Mitchell
> CodeSourcery, LLC
> (916) 791-8304


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