aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-25 16:18:41 +0000
committerNick Clifton <nickc@redhat.com>2008-01-25 16:18:41 +0000
commit6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce (patch)
tree20b99c7b038e8a3008462a0137410a21b286e071 /gas
parent53d25da64b00c1cf7f10d04785d66fa003f8bfc9 (diff)
downloadgdb-6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce.zip
gdb-6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce.tar.gz
gdb-6e3d6dc1ed34b1a58ed922ce31a5cf63502f4bce.tar.bz2
Add mingw I64 support for printing long and long long values
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/read.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index f5334ea..2dec3db 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-25 Kai Tietz <kai.tietz@onevision.com>
+
+ * read.c: (emit_expr): Correct for mingw use of printf size
+ specifier.
+
2008-01-24 Bob Wilson <bob.wilson@acm.org>
* doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
diff --git a/gas/read.c b/gas/read.c
index 376e157..109ab23 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -4112,9 +4112,14 @@ emit_expr (expressionS *exp, unsigned int nbytes)
|| (get & hibit) == 0))
{ /* Leading bits contain both 0s & 1s. */
#if defined (BFD64) && BFD_HOST_64BIT_LONG_LONG
+#ifndef __MSVCRT__
as_warn (_("value 0x%llx truncated to 0x%llx"),
(unsigned long long) get, (unsigned long long) use);
#else
+ as_warn (_("value 0x%I64x truncated to 0x%I64x"),
+ (unsigned long long) get, (unsigned long long) use);
+#endif
+#else
as_warn (_("value 0x%lx truncated to 0x%lx"),
(unsigned long) get, (unsigned long) use);
#endif