This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Avoid "I64" format warnings while bootstrapping on mingw32 host
- From: Danny Smith <danny_smith_0000 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: mark at codesourcery dot com
- Date: Fri, 26 Nov 2004 16:20:12 +1300 (NZDT)
- Subject: Avoid "I64" format warnings while bootstrapping on mingw32 host
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.
2004-11-26 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/x-mingw32: Avoid format warnings on files using
HOST_WIDEST_INT_PRINT_*.
Index: gcc/gcc/config/i386/x-mingw32
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/x-mingw32,v
retrieving revision 1.4
diff -c -3 -p -r1.4 x-mingw32
*** gcc/gcc/config/i386/x-mingw32 24 Aug 2004 07:31:32 -0000 1.4
--- gcc/gcc/config/i386/x-mingw32 26 Nov 2004 03:11:15 -0000
*************** host-mingw32.o : $(srcdir)/config/i386/h
*** 7,9 ****
--- 7,26 ----
coretypes.h hosthooks.h hosthooks-def.h toplev.h diagnostic.h $(HOOKS_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/i386/host-mingw32.c
+
+ #
+ # host runtime lib's printf uses 'I64' format specifier prefix instead
+ # of 'll' for HOST_WIDEST_INT_PRINT_*. See hwint.h.
+ # Avoid warnings while bootstrapping.
+ #
+ bt-load.o-warn = -Wno-format
+ cfg.o-warn = -Wno-format
+ cfghooks.o-warn = -Wno-format
+ gcov-dump.o-warn = -Wno-format
+ gcov.o-warn = -Wno-format
+ loop-doloop.o-warn = -Wno-format
+ loop-iv.o-warn = -Wno-format
+ loop-unroll.o-warn = -Wno-format
+ modulo-sched,o = -Wno-format
+ predict.o-warn = -Wno-format
+ profile.o-warn = -Wno-format
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com