From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29662 invoked by alias); 15 Jul 2003 12:51:06 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 29654 invoked from network); 15 Jul 2003 12:51:04 -0000 Received: from unknown (HELO velky) (213.243.169.136) by sources.redhat.com with SMTP; 15 Jul 2003 12:51:04 -0000 Received: by velky (Postfix, from userid 1000) id A596831E9F5; Tue, 15 Jul 2003 15:51:03 +0300 (EEST) Date: Tue, 15 Jul 2003 12:51:00 -0000 From: Jan Zizka To: binutils@sources.redhat.com Subject: Incomplete .macro documentation? Message-ID: <20030715125103.GG10871@velky.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i X-SW-Source: 2003-07/txt/msg00274.txt.bz2 Hi, if I define macro as follows: .macro TEST n .equ REG\n_TEST,0 .equ REG\n_TEST,1 .endm then 'TEST 1' will not produce what I've desired, because expansion can't that simply handle arguments which are in the middle of statement. So after some struggle I have found in the macro.c that it has to be done as follows: .macro TEST n .equ REG\n\(_)TEST,0 .equ REG\n\(_)TEST,1 .endm This I take is a feature of macros, but I didn't find anything about this in binutils manual (e.i. http://sources.redhat.com/binutils/docs-2.12/as.info/Macro.html) Or is it described anywhere? If not I think that it should be added :)) OK I can add it if anybody will point me to correct place ;) Jan