If .exitm is used outside a macro definition, then it behaves as .end, stopping
xor %eax, %eax
bogus %eax, %eax # never flagged as illegal insn
Created attachment 2311 [details]
Proposed patch to fix this issue.
Thank you very much for reporting this bug and providing a patch to fix it.
I have checked your patch in, along with the changelog entry below. I also
added a testcase to the gas testsuite in order to make sure that this problem
does not reoccur.
2008-03-13 Evandro Menezes <firstname.lastname@example.org>
* read.c (s_mexit): Warn if attempting to exit a macro when not
inside a macro definition.
2008-03-13 Nick Clifton <email@example.com>
* gas/macros/exit.s: New test case.
* gas/macros/macros.exp: Run the new test, expect it to produce an