This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[commit] Minor cleanup to cgen-ibld.in.
- From: Doug Evans <dje at sebabeach dot org>
- To: binutils at sourceware dot org
- Date: Thu, 7 Jan 2010 10:06:35 -0800 (PST)
- Subject: [commit] Minor cleanup to cgen-ibld.in.
Hi,
fyi, I committed this.
2010-01-07 Doug Evans <dje@sebabeach.org>
* cgen-ibld.in (insert_normal, extract_normal): Minor cleanup.
* fr30-ibld.c, * frv-ibld.c, * ip2k-ibld.c, * iq2000-ibld.c,
* lm32-ibld.c, * m32c-ibld.c, * m32r-ibld.c, * mep-ibld.c,
* mt-ibld.c, * openrisc-ibld.c, * xc16x-ibld.c,
* xstormy16-ibld.c: Regenerate.
Index: cgen-ibld.in
===================================================================
RCS file: /cvs/src/src/opcodes/cgen-ibld.in,v
retrieving revision 1.24
diff -u -p -r1.24 cgen-ibld.in
--- cgen-ibld.in 6 Jan 2010 05:30:19 -0000 1.24
+++ cgen-ibld.in 7 Jan 2010 18:00:35 -0000
@@ -138,7 +138,7 @@ insert_normal (CGEN_CPU_DESC cd,
if (length == 0)
return NULL;
- if (word_length > 32)
+ if (word_length > 8 * sizeof (CGEN_INSN_INT))
abort ();
/* For architectures with insns smaller than the base-insn-bitsize,
@@ -442,7 +442,7 @@ extract_normal (CGEN_CPU_DESC cd,
return 1;
}
- if (word_length > 32)
+ if (word_length > 8 * sizeof (CGEN_INSN_INT))
abort ();
/* For architectures with insns smaller than the insn-base-bitsize,
@@ -469,7 +469,7 @@ extract_normal (CGEN_CPU_DESC cd,
{
unsigned char *bufp = ex_info->insn_bytes + word_offset / 8;
- if (word_length > 32)
+ if (word_length > 8 * sizeof (CGEN_INSN_INT))
abort ();
if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0)