I've got a trivial fix for this problem, and another one which manifests when thumb is given without an explicit CPU. I'll start pushing it through our submissions process.<br><br>On Saturday, 12 October 2013, Renato Golin  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On 12 October 2013 23:00, Amara Emerson <span dir="ltr"><<a href="javascript:_e({}, 'cvml', 'amara.emerson@gmail.com');" target="_blank">amara.emerson@gmail.com</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Jan,<div><br></div><div>For Cortex-M0, you should probably use the armv6m string in the target triple. For M3 and M4 you need to use the thumbv7m arch string, -mthumb won't be necessary.</div>

</div></blockquote><div></div></div><br></div><div class="gmail_extra">Yes, but I agree with Jim that a bug must be filled.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Jan, would you mind filling a bug?</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://llvm.org/bugs/enter_bug.cgi?product=clang" target="_blank">http://llvm.org/bugs/enter_bug.cgi?product=clang</a><br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">
cheers,<br></div><div class="gmail_extra">--renato</div></div>
</blockquote>