/* CGEN generic opcode support.
- Copyright (C) 1996-2014 Free Software Foundation, Inc.
+ Copyright (C) 1996-2017 Free Software Foundation, Inc.
This file is part of libopcodes.
&& ! strchr (kt->nonalpha_chars, ke->name[i]))
{
size_t idx = strlen (kt->nonalpha_chars);
-
+
/* If you hit this limit, please don't just
increase the size of the field, instead
look for a better algorithm. */
segments, and endian-convert them, one at a time. */
int i;
- /* Enforce divisibility. */
+ /* Enforce divisibility. */
if ((length % insn_chunk_bitsize) != 0)
abort ();
segments, and endian-convert them, one at a time. */
int i;
- /* Enforce divisibility. */
+ /* Enforce divisibility. */
if ((length % insn_chunk_bitsize) != 0)
abort ();
if (cd->int_insn_p)
{
info = NULL;
- buf = (unsigned char *) alloca (cd->max_insn_bitsize / 8);
+ buf = (unsigned char *) xmalloc (cd->max_insn_bitsize / 8);
cgen_put_insn_value (cd, buf, length, insn_int_value);
base_insn = insn_int_value;
+ free (buf);
}
else
{