Bug 2674 - gas cannot recognize combination of macro parameter with string
Summary: gas cannot recognize combination of macro parameter with string
Status: RESOLVED WONTFIX
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.16
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 15:17 UTC by Bridge Wu
Modified: 2006-05-20 02:50 UTC (History)
1 user (show)

See Also:
Host: Fedora Core 2
Target: iwmmxt
Build: Fedora Core 2
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bridge Wu 2006-05-18 15:17:46 UTC
I built cross gas for arm linux with binutils-2.16.92. The configure is below.

binutils-2.16.92/configure --target=arm-iwmmxt-linux-gnueabi --host=i686-
host_pc-linux-gnu --prefix=/usr/local/arm-iwmmxt-linux-gnueabi --disable-nls --
with-sysroot=/usr/local/arm-iwmmxt-linux-gnueabi/arm-iwmmxt-linux-gnueabi

% cat t.s
    .text
    .align 4

    .macro test label
    BNE                 \label.aaa
    B                   \label
\label.aaa:
\label:
    .endm

    test        a
    test        b


% arm-iwmmxt-linux-gnueabi-as t.s
t.s: Assembler messages:
t.s: Assembler messages:
t.s:11: Error: bad expression -- `bne \label.aaa'
t.s:11: Error: junk at end of line, first unrecognized character is `\'
t.s:12: Error: bad expression -- `bne \label.aaa'
t.s:12: Error: junk at end of line, first unrecognized character is `\'
Comment 1 Alan Modra 2006-05-20 02:50:36 UTC
Not a bug.  Use alternate macro syntax if you want to paste formals with strings.

    .text
    .align 4

    .macro test label
    BNE                 &label&.aaa
    B                   &label&
&label&.aaa:
    nop
&label&:
    nop
    .endm

    test        a
    test        b