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


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'

The following allows bootstrap to proceed.

That's not the right solution. Instead, we need to support the Windows format specifiers. I'll work on that today.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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