* config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
authorRichard Sandiford <rdsandiford@googlemail.com>
Fri, 23 Jan 2004 13:00:18 +0000 (13:00 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Fri, 23 Jan 2004 13:00:18 +0000 (13:00 +0000)
commit584892a6d567210d0f242cd5eca32ee46e91872c
treeeaadcedba3207ab4d144dca470fd249b517cf2d8
parent4d7206a284ee1a195271e25a0a50c382efa134b2
* config/tc-mips.c (RELAX_ENCODE): Remove WARN argument.
(RELAX_FIRST, RELAX_SECOND): Turn into 8-bit quantities.
(RELAX_USE_SECOND): Bump to 0x10000.
(RELAX_SECOND_LONGER, RELAX_NOMACRO, RELAX_DELAY_SLOT): New flags.
(mips_macro_warning): New variable.
(md_assemble): Wrap macro expansion in macro_start() and macro_end().
(s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Likewise.
(relax_close_frag): Set mips_macro_warning.first_frag.  Adjust use
of RELAX_ENCODE.
(append_insn): Update mips_macro_warning.sizes.
(macro_start, macro_warning, macro_end): New functions.
(macro_build): Don't emit warnings here.
(macro_build_lui, md_estimate_size_before_relax): ...or here.
(md_convert_frag): Check for cases where one macro alternative
needs a warning and the other doesn't.  Emit a warning if the
longer sequence was chosen.
gas/ChangeLog
gas/config/tc-mips.c