Thumb32 assembler (11/69)

Paul Brook paul@codesourcery.com
Tue Apr 26 17:36:00 GMT 2005
On Tuesday 26 April 2005 10:53, Zack Weinberg wrote:
> Almost all the calls to skip_whitespace in tc-arm.c are unnecessary,
> because the input scrubber removes almost all the whitespace before
> md_assemble gets called.  When it is necessary, it doesn't need to
> loop.  The skip_whitespace call that used to appear at the beginning
> of each and every ->parms function, which is necessary, is hoisted to
> md_assemble.

This (or something related) breaks libgcc builds. Reduced testcase below:

        .macro popret regs
        ldmia sp!, {\regs, pc}
        .endm
        .text
        popret "r4, r5"

foo.s: Assembler messages:
foo.s:5: Error: ARM register expected -- `ldmia sp!,{r4, r5,pc}'

Paul



More information about the Binutils mailing list