This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: [PATCH] Use HOST_LONG_LONG_FORMAT in pretty-print.c


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)
 	  {

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