This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use HOST_LONG_LONG_FORMAT in pretty-print.c
- From: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 11 May 2008 03:16:05 -0500
- Subject: [PATCH] Use HOST_LONG_LONG_FORMAT in pretty-print.c
This fixes a -Werror bootstrap failure on i386-pc-mingw32 by
substituting "ll" with HOST_LONG_LONG.
This patch was tested by bootstrapping C on i386-pc-mingw32.
OK to commit?
2008-05-10 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
* pretty-print.c (pp_integer_with_precision): Use
HOST_LONG_LONG_FORMAT.
Index: gcc/pretty-print.c
===================================================================
--- gcc/pretty-print.c (revision 135157)
+++ gcc/pretty-print.c (working copy)
@@ -50,7 +50,7 @@ along with GCC; see the file COPYING3.
break; \
\
case 2: \
- pp_scalar (PP, "%ll" F, va_arg (ARG, long long T)); \
+ pp_scalar (PP, "%" HOST_LONG_LONG_FORMAT F, va_arg (ARG, long long T)); \
break; \
\
default: \