This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
patch for include/opcode/cgen.h
- To: matthew green <mrg at cygnus dot com>
- Subject: patch for include/opcode/cgen.h
- From: Doug Evans <dje at transmeta dot com>
- Date: Tue, 30 May 2000 07:41:34 -0700 (PDT)
- Cc: binutils at sourceware dot cygnus dot com, nickc at cygnus dot com
- References: <9449.959538384@cygnus.com>
matthew green writes:
> i'd like to submit this patch to "opcode/cgen.h" to prepare for upcoming
> changes to cgen. it cleans up a small cgen API, and also increases a
> buffer size (necessary for upcoming port). it does not affect any
> current code in opcodes/gas that uses this file (fr30 & m32r).
>
> 2000-05-29 matthew green <mrg@cygnus.com>
>
> * opcode/cgen.h (CGEN_ACTUAL_MAX_SYNTAX_BYTES): Rename this ...
> (CGEN_ACTUAL_MAX_SYNTAX_SIZE): ... to this, now define as 40.
> (CGEN_MAX_SYNTAX_BYTES): Rename this ...
> (CGEN_MAX_SYNTAX_SIZE): ... to this.
> (CGEN_SYNTAX_TYPE): New typedef.
> (CGEN_SYNTAX): Use new CGEN_SYNTAX_TYPE.
> (CGEN_SYNTAX_VALUE): New macro, replaces CGEN_SYNTAX_STRING.
> (CGEN_SYNTAX_CHAR): Now cast to (char).
> (CGEN_SYNTAX_STRING): Define this in terms of CGEN_SYNTAX_VALUE.
> No functional change, but allows CGEN_SYNTAX_TYPE to be define as
> `unsigned int' with no other changes.
You really have a port that has > 128 operands?
How about let's make CGEN_SYNTAX_TYPE be an unsigned short for all ports.