This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS noreorder and nomacro
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sources dot redhat dot com
- Date: Fri, 1 Apr 2005 12:29:21 +0200
- Subject: Re: MIPS noreorder and nomacro
- References: <20050401020624.GA8700@nevyn.them.org>
Daniel Jacobowitz wrote:
> The MIPS assembler currently complains about .set nomacro like so:
> else if (strcmp (name, "nomacro") == 0)
> {
> if (mips_opts.noreorder == 0)
> as_bad (_("`noreorder' must be set before `nomacro'"));
> mips_opts.warn_about_macros = 1;
> }
>
> But it will allow this:
> .set noreorder
> .set nomacro
> ...
> .set reorder
>
> And nothing resets warn_about_macros. So this limitation isn't very
> effective; is it necessary?
It makes little sense to use nomacro without noreorder. Instead of the
code mentioned above, a warn_about_macros test should probably check
if it is still inside a noreorder section.
Thiemo