public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* MIPS noreorder and nomacro
@ 2005-04-01  2:05 Daniel Jacobowitz
  2005-04-01 10:29 ` Thiemo Seufer
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-04-01  2:05 UTC (permalink / raw)
  To: binutils

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?

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: MIPS noreorder and nomacro
  2005-04-01  2:05 MIPS noreorder and nomacro Daniel Jacobowitz
@ 2005-04-01 10:29 ` Thiemo Seufer
  0 siblings, 0 replies; 2+ messages in thread
From: Thiemo Seufer @ 2005-04-01 10:29 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-01 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01  2:05 MIPS noreorder and nomacro Daniel Jacobowitz
2005-04-01 10:29 ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).