aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-08-24 16:59:16 +0000
committerDaniel Jacobowitz <drow@false.org>2007-08-24 16:59:16 +0000
commit495bde8ec4ea55e74afc44cc1ae01d98d0c4a28f (patch)
treea86c9c5f5db751e83ac5f47ff92e31017420c047 /gas
parent29d89e071e7c7d0ea3b13eb883e44498d8390aa0 (diff)
downloadgdb-495bde8ec4ea55e74afc44cc1ae01d98d0c4a28f.zip
gdb-495bde8ec4ea55e74afc44cc1ae01d98d0c4a28f.tar.gz
gdb-495bde8ec4ea55e74afc44cc1ae01d98d0c4a28f.tar.bz2
2007-08-24 Aurelien Jarno <aurel32@debian.org>
* config/tc-arm.c (md_apply_fix): Cast bfd_vma values to long before printing them.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index cb2460c..2412503 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-24 Aurelien Jarno <aurel32@debian.org>
+
+ * config/tc-arm.c (md_apply_fix): Cast bfd_vma values to long
+ before printing them.
+
2007-08-24 Anders Waldenborg <anders@0x63.nu>
Alan Modra <amodra@bigpond.net.au>
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 117fe16..a1abf64 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -18824,7 +18824,7 @@ md_apply_fix (fixS * fixP,
if (encoded_addend == (unsigned int) FAIL)
as_bad_where (fixP->fx_file, fixP->fx_line,
_("the offset 0x%08lX is not representable"),
- addend_abs);
+ (unsigned long) addend_abs);
/* Extract the instruction. */
insn = md_chars_to_number (buf, INSN_SIZE);
@@ -18864,7 +18864,7 @@ md_apply_fix (fixS * fixP,
if (addend_abs >= 0x1000)
as_bad_where (fixP->fx_file, fixP->fx_line,
_("bad offset 0x%08lX (only 12 bits available for the magnitude)"),
- addend_abs);
+ (unsigned long) addend_abs);
/* Extract the instruction. */
insn = md_chars_to_number (buf, INSN_SIZE);
@@ -18903,7 +18903,7 @@ md_apply_fix (fixS * fixP,
if (addend_abs >= 0x100)
as_bad_where (fixP->fx_file, fixP->fx_line,
_("bad offset 0x%08lX (only 8 bits available for the magnitude)"),
- addend_abs);
+ (unsigned long) addend_abs);
/* Extract the instruction. */
insn = md_chars_to_number (buf, INSN_SIZE);
@@ -18943,12 +18943,12 @@ md_apply_fix (fixS * fixP,
if (addend_abs & 0x3)
as_bad_where (fixP->fx_file, fixP->fx_line,
_("bad offset 0x%08lX (must be word-aligned)"),
- addend_abs);
+ (unsigned long) addend_abs);
if ((addend_abs >> 2) > 0xff)
as_bad_where (fixP->fx_file, fixP->fx_line,
_("bad offset 0x%08lX (must be an 8-bit number of words)"),
- addend_abs);
+ (unsigned long) addend_abs);
/* Extract the instruction. */
insn = md_chars_to_number (buf, INSN_SIZE);