[cfe-commits] [Patch] Make Thumb triples force Thumb mode
Renato Golin
rengolin at systemcall.org
Wed Jul 25 04:37:40 PDT 2012
Hi Jim,
Sending to cfe-commits. I'm preparing a test case and will commit if
there is no objections from cfe guys.
--renato
On 24 July 2012 22:50, Jim Grosbach <grosbach at apple.com> wrote:
> LGTM. Though especially since we've apparently been getting this wrong for quite a while now, test cases seem a good idea.
>
> -Jim
>
> On Jul 24, 2012, at 2:45 PM, Renato Golin <rengolin at systemcall.org> wrote:
>
>> 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/
>> <clang-driver.patch>
>
--
cheers,
--renato
http://systemcall.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-driver.patch
Type: application/octet-stream
Size: 2520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120725/1a6a343d/attachment.obj>
More information about the cfe-commits
mailing list