aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-09-18 01:05:44 +0000
committerAlan Modra <amodra@gmail.com>2007-09-18 01:05:44 +0000
commitb6ac5419b4d56765a569ed11bfb41d96d713ae9f (patch)
tree1be2e005adab55bc4a1b35899aaf805472c2a904
parent20e192ab8df5502cd405ffd7fe5161985b8a2373 (diff)
downloadgdb-b6ac5419b4d56765a569ed11bfb41d96d713ae9f.zip
gdb-b6ac5419b4d56765a569ed11bfb41d96d713ae9f.tar.gz
gdb-b6ac5419b4d56765a569ed11bfb41d96d713ae9f.tar.bz2
PR gas/5026
* read.c (emit_expr): Only use long long if required and available.
-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 81b5fdc..e3fd86e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-18 Alan Modra <amodra@bigpond.net.au>
+
+ PR gas/5026
+ * read.c (emit_expr): Only use long long if required and available.
+
2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (baseindex): Removed.
diff --git a/gas/read.c b/gas/read.c
index 19b434f..4c13d87 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -4106,8 +4106,13 @@ emit_expr (expressionS *exp, unsigned int nbytes)
&& ((get & mask) != mask
|| (get & hibit) == 0))
{ /* Leading bits contain both 0s & 1s. */
+#if defined (BFD64) && BFD_HOST_64BIT_LONG_LONG
as_warn (_("value 0x%llx truncated to 0x%llx"),
(unsigned long long) get, (unsigned long long) use);
+#else
+ as_warn (_("value 0x%lx truncated to 0x%lx"),
+ (unsigned long) get, (unsigned long) use);
+#endif
}
/* Put bytes in right order. */
md_number_to_chars (p, use, (int) nbytes);