projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[AArch64][SVE 25/32] Add support for SVE addressing modes
[deliverable/binutils-gdb.git]
/
opcodes
/
cgen-opc.c
diff --git
a/opcodes/cgen-opc.c
b/opcodes/cgen-opc.c
index 263eb2c4d58f393dd87ae99d56868ef083a1a931..543ce32397b9c784f881ccdaf5393260b3dfdd77 100644
(file)
--- a/
opcodes/cgen-opc.c
+++ b/
opcodes/cgen-opc.c
@@
-1,7
+1,6
@@
/* CGEN generic opcode support.
/* CGEN generic opcode support.
- Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2009
- Free Software Foundation, Inc.
+ Copyright (C) 1996-2016 Free Software Foundation, Inc.
This file is part of libopcodes.
This file is part of libopcodes.
@@
-19,8
+18,8
@@
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
-#include "alloca-conf.h"
#include "sysdep.h"
#include "sysdep.h"
+#include "alloca-conf.h"
#include <stdio.h>
#include "ansidecl.h"
#include "libiberty.h"
#include <stdio.h>
#include "ansidecl.h"
#include "libiberty.h"
@@
-128,7
+127,7
@@
cgen_keyword_add (CGEN_KEYWORD *kt, CGEN_KEYWORD_ENTRY *ke)
&& ! strchr (kt->nonalpha_chars, ke->name[i]))
{
size_t idx = strlen (kt->nonalpha_chars);
&& ! 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. */
/* If you hit this limit, please don't just
increase the size of the field, instead
look for a better algorithm. */
@@
-370,7
+369,7
@@
cgen_get_insn_value (CGEN_CPU_DESC cd, unsigned char *buf, int length)
segments, and endian-convert them, one at a time. */
int i;
segments, and endian-convert them, one at a time. */
int i;
- /* Enforce divisibility. */
+ /* Enforce divisibility. */
if ((length % insn_chunk_bitsize) != 0)
abort ();
if ((length % insn_chunk_bitsize) != 0)
abort ();
@@
-409,7
+408,7
@@
cgen_put_insn_value (CGEN_CPU_DESC cd,
segments, and endian-convert them, one at a time. */
int i;
segments, and endian-convert them, one at a time. */
int i;
- /* Enforce divisibility. */
+ /* Enforce divisibility. */
if ((length % insn_chunk_bitsize) != 0)
abort ();
if ((length % insn_chunk_bitsize) != 0)
abort ();
@@
-461,9
+460,10
@@
cgen_lookup_insn (CGEN_CPU_DESC cd,
if (cd->int_insn_p)
{
info = NULL;
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;
cgen_put_insn_value (cd, buf, length, insn_int_value);
base_insn = insn_int_value;
+ free (buf);
}
else
{
}
else
{
This page took
0.023902 seconds
and
4
git commands to generate.