On Thu, Mar 31, 2016 at 5:04 PM, fengwei.yin <fengwei....@linaro.org> wrote:
> Remove the __thumb__ part?

If you remove the __thumb__ part, then you will get an assembler error.

palantir:2025$ arm-linux-gnueabi-as UnwindCurrent.s
UnwindCurrent.s: Assembler messages:
UnwindCurrent.s:1504: Error: PC not allowed in register list -- `stmia
r0,{r0-r15}'
palantir:2026$

This instruction is not a valid thumb instruction.  It is a valid arm
instruction, but deprecated.  The assembler gives an error because you
are in thumb mode.  Since you already have a __thumb__ version of the
macro, you can put a ".thumb" directive at the end of the asm, after
the orr instruction, to manually switch back into thumb mode.

Jim
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to