MIPS noreorder and nomacro

Thiemo Seufer ths@networkno.de
Fri Apr 1 10:29:00 GMT 2005
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



More information about the Binutils mailing list