* crx-dis.c (make_instruction): Warning fix.
* frv-asm.c: Regenerate.
+2005-02-24 Alan Modra <amodra@bigpond.net.au>
+
+ * cris-dis.c (format_hex): Remove ineffective warning fix.
+ * crx-dis.c (make_instruction): Warning fix.
+ * frv-asm.c: Regenerate.
+
2005-02-23 Nick Clifton <nickc@redhat.com>
* cgen-dis.in: Use bfd_byte for buffers that are passed to
char *outbuffer;
struct cris_disasm_data *disdata;
{
- /* Obfuscate to avoid warning on 32-bit host, but properly truncate
- negative numbers on >32-bit hosts. */
- if (sizeof (number) > 4)
- number &= (1 << (sizeof (number) > 4 ? 32 : 1)) - 1;
+ /* Truncate negative numbers on >32-bit hosts. */
+ number &= 0xffffffff;
sprintf (outbuffer, "0x%lx", number);
for (i = 0; i < currInsn.nargs; i++)
{
- argument a = { 0 };
+ argument a;
+ memset (&a, 0, sizeof (a));
a.type = getargtype (instruction->operands[i].op_type);
if (instruction->operands[i].op_type == cst4
|| instruction->operands[i].op_type == rbase_dispu4)
static const char * parse_A1
PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
static const char * parse_A
- PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *, long));
+ PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *, unsigned long));
inline static const char *
parse_symbolic_address (CGEN_CPU_DESC cd,
const char **strp;
int opindex;
unsigned long *valuep;
- long A;
+ unsigned long A;
{
const char *errmsg;