+2005-04-20 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-mips.c (macro): Use sprintf_vma to convert a > 32 bit
+ number into a readable string.
+ (load_register): Likewise.
+
2005-04-20 Andreas Schwab <schwab@suse.de>
* config/tc-ia64.c (specify_resource): Initialize all of tmpl.
if (!dbl || HAVE_32BIT_GPRS)
{
- as_bad (_("Number (0x%lx%08lx) larger than 32 bits"),
- (unsigned long) (ep->X_add_number >> 32),
- (unsigned long) (ep->X_add_number & 0xffffffff));
+ char value[32];
+
+ sprintf_vma (value, ep->X_add_number);
+ as_bad (_("Number (%s) larger than 32 bits"), value);
macro_build (ep, "addiu", "t,r,j", reg, 0, BFD_RELOC_LO16);
return;
}
if (HAVE_32BIT_ADDRESSES
&& !IS_SEXT_32BIT_NUM (offset_expr.X_add_number))
- as_bad (_("Number (0x%lx%08lx) larger than 32 bits"),
- (unsigned long) (offset_expr.X_add_number >> 32),
- (unsigned long) (offset_expr.X_add_number & 0xffffffff));
+ {
+ char value [32];
+
+ sprintf_vma (value, offset_expr.X_add_number);
+ as_bad (_("Number (%s) larger than 32 bits"), value);
+ }
/* A constant expression in PIC code can be handled just as it
is in non PIC code. */
if (HAVE_32BIT_ADDRESSES
&& !IS_SEXT_32BIT_NUM (offset_expr.X_add_number))
- as_bad (_("Number (0x%lx%08lx) larger than 32 bits"),
- (unsigned long) (offset_expr.X_add_number >> 32),
- (unsigned long) (offset_expr.X_add_number & 0xffffffff));
+ {
+ char value [32];
+
+ sprintf_vma (value, offset_expr.X_add_number);
+ as_bad (_("Number (%s) larger than 32 bits"), value);
+ }
/* Even on a big endian machine $fn comes before $fn+1. We have
to adjust when loading from memory. We set coproc if we must