I use the -target flag to do this.<br><br><div class="gmail_quote">On Mon, Dec 3, 2012 at 9:22 PM, Sixstringartist <span dir="ltr"><<a href="mailto:sixstringartist@aol.com" target="_blank">sixstringartist@aol.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Could someone please clarify the proper way to target a particular arch with Clang -emit-llvm?<br>
<br>
In the past, I used the following<br>
<br>
./clang -emit-llvm -march=armv5te ./input.c<br>
<br>
This had to be changed due to armv5te selecting a cpu (arm1026ejs) which did not have a matching entry in getLLVMArchSuffixForARM. To fix this I started using -mcpu=arm1020e<br>
<br>
Both mcpu=arm1020e and march=armv5te result in warnings of unused arguments and attempt to link using LLVMgold.so rather than produce a bitcode file<br>
<br>
What is the proper workflow here? Should I be using -target? My goal is to create a bitcode file with the target triple of armv5te-none-linux-gnueabi.<br>
<br>
Is the above behavior expected (i.e. should I not expect march and mcpu to control my target when generating bitcode)?<br>
<br>
Thanks<br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Joćo Matos<br>