This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] gas/macro.c(buffer_and_nest) skip labels when looking for"ENDM"
- From: Arnold Metselaar <arnold dot metselaar at planet dot nl>
- To: binutils at sources dot redhat dot com
- Date: Tue, 18 Oct 2005 20:29:57 +0200
- Subject: [PATCH] gas/macro.c(buffer_and_nest) skip labels when looking for"ENDM"
Hello,
In the current version, buffer_and_nest() in macro.c only skips
labels when searching for "ENDM" if NO_PSEUDO_DOT is not set.
The result is that the "macros dot"-test fails with "unexpected
end of file in macro definition".
The patch below removes the test on NO_PSEUDO_DOT. I'm not sure
whether the test on flag_m68k_mri should remain; putting a
label before "ENDM" may or may not be allowed in mri mode. If
it is allowed, the whole condition should be removed.
Arnold
* macro.c (buffer_and_nest): remove condition on NO_PSEUDO_DOT
for skipping labels
--- binutils-cvs/src/gas/macro.c 2005-10-18 18:07:55.006473824 +0200
+++ binutils-new/src/gas/macro.c 2005-10-18 20:03:18.620924440 +0200
@@ -183,7 +183,7 @@ buffer_and_nest (const char *from, const
/* Try and find the first pseudo op on the line. */
int i = line_start;
- if (! NO_PSEUDO_DOT && ! flag_m68k_mri)
+ if (! flag_m68k_mri)
{
/* With normal syntax we can suck what we want till we get
to the dot. With the alternate, labels have to start in