This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [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, java-patches at gcc dot gnu dot org
- Cc: Paolo Bonzini <bonzini at gnu dot org>
- Date: Mon, 12 May 2008 20:20:08 -0500
- Subject: Re: [PATCH] Use HOST_LONG_LONG_FORMAT in pretty-print.c
- References: <4826AB45.2070907@aaronwl.com>
Aaron W. LaFramboise wrote:
This fixes a -Werror bootstrap failure on i386-pc-mingw32 by
substituting "ll" with HOST_LONG_LONG.
Here's fix to another one of these in gcc/java.
This patch was tested by bootstrapping C and Java on i386-pc-mingw32.
I've committed it as obvious.
2008-05-12 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
* jcf-dump.c (print_constant): Use
HOST_LONG_LONG_FORMAT.
Index: gcc/java/jcf-dump.c
===================================================================
--- gcc/java/jcf-dump.c (revision 135251)
+++ gcc/java/jcf-dump.c (working copy)
@@ -850,9 +850,11 @@ print_constant (FILE *out, JCF *jcf, int
if (dnum.mantissa0 == 0 && dnum.mantissa1 == 0)
fputs ("Inf", out);
else if (dnum.mantissa0 & JDOUBLE_QNAN_MASK)
- fprintf (out, "QNaN(%llu)", (unsigned long long)mantissa);
+ fprintf (out, "QNaN(%" HOST_LONG_LONG_FORMAT "u)",
+ (unsigned long long)mantissa);
else
- fprintf (out, "SNaN(%llu)", (unsigned long long)mantissa);
+ fprintf (out, "SNaN(%" HOST_LONG_LONG_FORMAT "u)",
+ (unsigned long long)mantissa);
}
if (verbosity > 1)
{