From 2864d91dbf7244c787f95e5de60f0f4b4e05d07a Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 24 Aug 2007 16:59:16 +0000 Subject: [PATCH] 2007-08-24 Aurelien Jarno * config/tc-arm.c (md_apply_fix): Cast bfd_vma values to long before printing them. --- gas/ChangeLog | 5 +++++ gas/config/tc-arm.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index cb2460c53c..2412503f7a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2007-08-24 Aurelien Jarno + + * config/tc-arm.c (md_apply_fix): Cast bfd_vma values to long + before printing them. + 2007-08-24 Anders Waldenborg Alan Modra diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 117fe16d31..a1abf64ec8 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); -- 2.11.0