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]

[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:                                               \

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