[PATCH] compiler-rt: allow ARM assembly to compile in Thumb mode

Tim Northover t.p.northover at gmail.com
Mon Nov 11 12:45:48 PST 2013

Hi Renato,

> Looks all right to me.


> I heard that the Kernel has macros to avoid printing them when not in Thumb2
> and I assumed it would be an error on, say, Thumb1. Is that going to be a
> problem? If so, will those functions ever be used in Thumb1 mode?

That's a bit of an odd reason: removing an IT instruction isn't
suddenly going to make "movne r0, r1" valid Thumb1. Perhaps older GCC
assemblers don't support UAL?

As far as I'm aware these functions don't assemble as Thumb1 anyway.
I've not tried all of them but statistically the implementors probably
hit at least one 32-bit instruction. I've certainly excluded them
completely from the v6m compiler-rt I'm working on.



More information about the llvm-commits mailing list