This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] for PR 22594
- From: Dave Murphy <wintermute2k4 at ntlworld dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Jul 2005 18:17:17 +0100
- Subject: [patch] for PR 22594
Hello,
this patch fixes building a mips cross compiler hosted on mingw32
the HOST_WIDE_INT_PRINT macro in gcc/hwint.h ignores the format override used on mingw resulting in (null) instead of $31 in the mips function prologues
Dave
diff -Naurb gcc-4.0.1/gcc/hwint.h gcc-4.0.1-new/gcc/hwint.h
--- gcc-4.0.1/gcc/hwint.h Wed Nov 24 04:31:57 2004
+++ gcc-4.0.1-new/gcc/hwint.h Thu Jul 21 14:37:06 2005
@@ -80,7 +80,7 @@
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
# endif
#else
-# define HOST_WIDE_INT_PRINT "ll"
+# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT
# define HOST_WIDE_INT_PRINT_C "LL"
/* We can assume that 'long long' is at least 64 bits. */
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX \