This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Improve warnings about MIPS macros
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 22 Jan 2004 00:12:31 +0100
- Subject: Re: Improve warnings about MIPS macros
- References: <8765f46h6r.fsf@redhat.com>
Richard Sandiford wrote:
[snip]
> Tested on mips64-linux-gnu. OK to install?
>
> Richard
>
>
> gas/
> * 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/testsuite/
> * gas/mips/macro-warn-[1234].[sdl]: New tests.
> * gas/mips/macro-warn-[12]-n32.[dl]: New tests.
> * gas/mips/mips.exp: Run them.
Ok.
Thiemo