Fix m68k and mips
H. J. Lu
hjl@lucon.org
Sun Apr 10 16:36:00 GMT 2005
I checked the following patches to fix m68k and mips for 64bit BFD and
64bit host.
H.J.
-------------- next part --------------
2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-m68k.c (md_begin): Support 64bit host.
(get_num): Support 64bit BFD.
--- config/tc-m68k.c.64bit 2005-03-21 13:13:40.000000000 -0800
+++ config/tc-m68k.c 2005-04-10 08:31:56.797366454 -0700
@@ -4160,7 +4160,7 @@ md_begin (void)
m68k_sorted_opcodes = xmalloc (m68k_numopcodes * sizeof (* m68k_sorted_opcodes));
if (!m68k_sorted_opcodes)
as_fatal (_("Internal Error: Can't allocate m68k_sorted_opcodes of size %d"),
- m68k_numopcodes * sizeof (* m68k_sorted_opcodes));
+ m68k_numopcodes * ((int) sizeof (* m68k_sorted_opcodes)));
for (i = m68k_numopcodes; i--;)
m68k_sorted_opcodes[i] = m68k_opcodes + i;
@@ -5292,7 +5292,7 @@ get_num (struct m68k_exp *exp, int ok)
subs (exp) = 0;
offs (exp) = (ok == 10) ? 1 : 0;
as_warn (_("Can't deal with expression; defaulting to %ld"),
- offs (exp));
+ (long) offs (exp));
}
}
else
@@ -5304,7 +5304,7 @@ get_num (struct m68k_exp *exp, int ok)
subs (exp) = 0;
offs (exp) = (ok == 10) ? 1 : 0;
as_warn (_("Can't deal with expression; defaulting to %ld"),
- offs (exp));
+ (long) offs (exp));
}
}
-------------- next part --------------
2005-04-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
--- gas/config/tc-mips.c.typo 2005-03-21 20:09:52.000000000 -0800
+++ gas/config/tc-mips.c 2005-04-10 08:51:06.763246014 -0700
@@ -10986,9 +10986,9 @@ md_apply_fix3 (fixS *fixP, valueT *valP,
hiv = 0xffffffff;
else
hiv = 0;
- md_number_to_chars ((char *)(buf + target_big_endian ? 4 : 0),
+ md_number_to_chars ((char *)(buf + (target_big_endian ? 4 : 0)),
*valP, 4);
- md_number_to_chars ((char *)(buf + target_big_endian ? 0 : 4),
+ md_number_to_chars ((char *)(buf + (target_big_endian ? 0 : 4)),
hiv, 4);
}
}
More information about the Binutils
mailing list