[llvm-commits] [Patch] Make Thumb triples force Thumb mode

Renato Golin rengolin at systemcall.org
Tue Jul 24 14:45:04 PDT 2012


As discussed in the main list, triples like "thumbv7m-none-eabi" still
produce ARM code. This is a flaw in the Driver that is fixed by this
patch.

To test, compile any C code like:

$ clang -ccc-host-triple thumbv7-none-eabi -S foo.c

It'll produce ARM code. With this patch, it should produce Thumb code.
In Darwin, all v7 defaults to Thumb, so test this on Linux.

Where should I add a test to match the code generated to Thumb in Clang's suite?

-- 
cheers,
--renato

http://systemcall.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-driver.patch
Type: application/octet-stream
Size: 2113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120724/3cd5f518/attachment.obj>


More information about the llvm-commits mailing list