This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Incomplete .macro documentation?
- From: Jan Zizka <ziza at klubicko dot net>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 17 Jul 2003 20:30:42 +0300
- Subject: Re: Incomplete .macro documentation?
- References: <20030715125103.GG10871@velky.homelinux.net> <m3brvtjje0.fsf@redhat.com>
Hi Nick,
> It is not clear exactly what you want this macro to expand to. Are
> you expecting 'TEST 1' to produce:
>
> .equ REG1_TEST,0
> .equ REG1_TEST,1
>
> If so, then why have two .equ directives when the second one will
> override the first ?
>
that is what I wanted, but the second .equ was supposed to be different :)
(just a copy-pase error ")
> > This I take is a feature of macros, but I didn't find anything about
> > this in binutils manual.
>
> You are correct, this feature is not documented. (And it should be).
>
> > If not I think that it should be added :)) OK I can add it if
> > anybody will point me to correct place ;)
>
> Please add it to gas/doc/as.texinfo in the node that describes the
> .macro command.
>
I'll add that and I'll also check macro.c for other undocumented
features :).
Jan