patch for include/opcode/cgen.h
Doug Evans
dje@transmeta.com
Tue May 30 07:41:00 GMT 2000
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.
More information about the Binutils
mailing list