[cfe-commits] [PATCH] Add support for cortex-m0 cpu

James Orr jorr at apple.com
Fri Mar 18 02:06:06 PDT 2011


On Mar 17, 2011, at 5:04 PM, James Orr wrote:

> Hi,
> 
> Currently clang supports the cortex-m3 cpu and gcc-llvm supports this and cortex-m0. In order to maintain parity between clang and gcc-llvm this patch adds support for the cortex-m0.
> 
> Was able to compile firmware and it ran successfully.
> 
> -arch armv6 -mcpu=cortex-m0 -mthumb
> 
> -James
> 

The previous patch was sending the triple "thumb-apple-darwin10.0.0".

Updated it to use: "thumbv6m-apple-darwin10.0.0" for Cortex-M0 and "thumbv7m-apple-darwin10.0.0" for Cortex-M3.

These are the same arch part of the triples as used by llvm-gcc.

-James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cortex-m0-cpu-flag-support.diff
Type: application/octet-stream
Size: 1625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110318/21fa9d91/attachment.obj>


More information about the cfe-commits mailing list