This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS noreorder and nomacro


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]