* doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
commita2034bb455129c46ea27d3a8c09773f7922d05d8
authorHans-Peter Nilsson <hp@axis.com>
Sun, 21 Mar 2004 23:50:38 +0000 (21 23:50 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Sun, 21 Mar 2004 23:50:38 +0000 (21 23:50 +0000)
tree0cc153a8fc6c325ea8ce09cedcb4d13e25a6e92c
parent19d4914df82e873860bd047f992c216063c56faf
* doc/c-cris.texi (CRIS-Opts): Document --no-mul-bug-abort,
--mul-bug-abort and the default behavior.
* config/tc-cris.c (cris_insn_kind): New member CRIS_INSN_MUL.
(err_for_dangerous_mul_placement): New variable.
(STATE_MUL, OPTION_MULBUG_ABORT_ON, OPTION_MULBUG_ABORT_OFF): New
macros.
(md_cris_relax_table): Have placeholder for STATE_MUL.
(md_longopts): New options --mul-bug-abort and --no-mul-bug-abort.
(cris_relax_frag) <case ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: New
case doing nothing.
(md_estimate_size_before_relax) <case ENCODE_RELAX (STATE_MUL,
STATE_BYTE)>: Ditto.
(md_convert_frag) <ENCODE_RELAX (STATE_MUL, STATE_BYTE)>: Check
alignment and position of this frag, emit error message if
suspicious.
(md_assemble): For a multiply insn and when checking it,
transform the current frag into a special frag for that purpose.
(md_parse_option) <case OPTION_MULBUG_ABORT_OFF, case
OPTION_MULBUG_ABORT_ON>: Handle new options.
gas/ChangeLog
gas/config/tc-cris.c
gas/doc/c-cris.texi