Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvs2svn <>2001-01-24 23:09:38 +0300
committercvs2svn <>2001-01-24 23:09:38 +0300
commit0bd942aeb2c83f35d2f51ccdd0f36670f7896676 (patch)
tree2290d4529d7d62319a04710f2c99c40a22cc6f62 /include/opcode/cgen.h
parent4db0b146b8a3e306842d17ab19416dab81af9331 (diff)
This commit was manufactured by cvs2svn to create branch 'binutils-
2_11-branch'. Sprout from gdb-premipsmulti-2000-06-06-branch 2000-06-03 01:57:30 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'gdb-' Cherrypick from master 2001-01-24 20:09:37 UTC Alexandre Oliva <aoliva@redhat.com> '* ltmain.sh (TAG disable-shared, TAG disable-static): Make sure we': COPYING.NEWLIB ChangeLog MAINTAINERS Makefile.in README-maintainer-mode config-ml.in config.guess config.if config.sub config/ChangeLog config/acinclude.m4 config/mh-ia64pic config/mh-irix6 config/mh-openedition config/mh-sparcpic config/mt-ia64pic config/mt-sparcpic configure configure.in gettext.m4 include/COPYING include/ChangeLog include/MAINTAINERS include/alloca-conf.h include/ansidecl.h include/bfdlink.h include/bin-bugs.h include/coff/ChangeLog include/coff/pe.h include/coff/ti.h include/demangle.h include/dis-asm.h include/dyn-string.h include/elf/ChangeLog include/elf/alpha.h include/elf/arc.h include/elf/arm.h include/elf/avr.h include/elf/common.h include/elf/cris.h include/elf/d10v.h include/elf/d30v.h include/elf/fr30.h include/elf/hppa.h include/elf/i370.h include/elf/i386.h include/elf/i860.h include/elf/i960.h include/elf/ia64.h include/elf/internal.h include/elf/m32r.h include/elf/m68hc11.h include/elf/m68k.h include/elf/mcore.h include/elf/mips.h include/elf/mn10200.h include/elf/mn10300.h include/elf/pj.h include/elf/ppc.h include/elf/reloc-macros.h include/elf/sh.h include/elf/sparc.h include/elf/v850.h include/elf/x86-64.h include/getopt.h include/hashtab.h include/libiberty.h include/md5.h include/obstack.h include/opcode/ChangeLog include/opcode/arc.h include/opcode/avr.h include/opcode/cgen.h include/opcode/cris.h include/opcode/hppa.h include/opcode/i386.h include/opcode/i860.h include/opcode/ia64.h include/opcode/m68hc11.h include/opcode/mips.h include/opcode/sparc.h include/os9k.h include/safe-ctype.h include/sort.h include/splay-tree.h include/symcat.h libtool.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh ltconfig ltmain.sh symlink-tree texinfo/texinfo.tex Delete: djunpack.bat
Diffstat (limited to 'include/opcode/cgen.h')
-rw-r--r--include/opcode/cgen.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h
index 1db272bbb..f7962cd77 100644
--- a/include/opcode/cgen.h
+++ b/include/opcode/cgen.h
@@ -1,6 +1,6 @@
/* Header file for targets using CGEN: Cpu tools GENerator.
-Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB, the GNU debugger, and the GNU Binutils.
@@ -452,7 +452,7 @@ typedef struct {
extern const CGEN_HW_ENTRY * cgen_hw_lookup_by_name
PARAMS ((CGEN_CPU_DESC, const char *));
extern const CGEN_HW_ENTRY * cgen_hw_lookup_by_num
- PARAMS ((CGEN_CPU_DESC, int));
+ PARAMS ((CGEN_CPU_DESC, unsigned int));
/* This struct is used to describe things like register names, etc. */
@@ -736,7 +736,7 @@ typedef struct
the data is recorded in the parse/insert/extract/print switch statements. */
/* This should be at least as large as necessary for any target. */
-#define CGEN_MAX_SYNTAX_BYTES 32
+#define CGEN_MAX_SYNTAX_BYTES 40
/* A target may know its own precise maximum. Assert that it falls below
the above limit. */
@@ -746,15 +746,20 @@ typedef struct
#endif
#endif
+#if !defined(MAX_OPERANDS) || MAX_OPERANDS <= 127
+typedef unsigned char CGEN_SYNTAX_CHAR_TYPE;
+#else
+typedef unsigned short CGEN_SYNTAX_CHAR_TYPE;
+#endif
typedef struct
{
- unsigned char syntax[CGEN_MAX_SYNTAX_BYTES];
+ CGEN_SYNTAX_CHAR_TYPE syntax[CGEN_MAX_SYNTAX_BYTES];
} CGEN_SYNTAX;
#define CGEN_SYNTAX_STRING(syn) (syn->syntax)
#define CGEN_SYNTAX_CHAR_P(c) ((c) < 128)
-#define CGEN_SYNTAX_CHAR(c) (c)
+#define CGEN_SYNTAX_CHAR(c) ((unsigned char)c)
#define CGEN_SYNTAX_FIELD(c) ((c) - 128)
#define CGEN_SYNTAX_MAKE_FIELD(c) ((c) + 128)