And one last thing, the problem seems to be related to libcpp. Using only C frontend will work?<br><br><div class="gmail_quote">2008/7/7 Julio <<a href="mailto:julio.martin.hidalgo@gmail.com">julio.martin.hidalgo@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, well, I downloaded the head revision of llvm and llvm-gcc. As you said it hangs at:<br><br>
Formal argument #0 has unhandled type f32<br>/home/julio/trunk/llvm-gcc/gcc/libgcc2.c:1765: internal compiler error: Abortado<br>
Please submit a full bug report,<br>with preprocessed source if appropriate.<br><br>Actually, I don't need fp, there is any way to disable?<br><br>By the way, I'm working with a MIPS coprocessor with vectorial reconfigurable units (similar to RSVP). My future work will be autovectorize loops (I've already studied some code in LLVM and doesn seems very difficult, thanks to ScalarEvolution, LoopInfo, etc.). I was wondering about compiling newlib with gcc, compiling my code with llvm, and linking with the traditional ld, OR, compiling newlib with llvm, link my code and newlib (in llvm bitcode), and finally assemble to MIPS binary. With the second way, I could optimize functions like memcpy with vectorial instructions :).<br>

<br>The problem, is that in newlib there are c code mixed with MIPS assembler. I was wondering if configuring its compilation using llvm-gcc as CC and gnu-as as AS would work (linking the as files finally with ld and the result of the llvm assembler). In this way, with llvm-gcc working with -c and --emit-llvm command-options, would call gnu-as or llvm-as?<br>

<br>Thanks.<br>Julio<br><br>PD: My english isn't as good as I wanted, so if you don't understand me let me know.<br><br><br><br><div class="gmail_quote">2008/7/6 Bruno Cardoso Lopes <<a href="mailto:bruno.cardoso@gmail.com" target="_blank">bruno.cardoso@gmail.com</a>>:<div>
<div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Julio,<br>
<div><div></div><div><br>
On Sun, Jul 6, 2008 at 1:58 PM, Julio <<a href="mailto:julio.martin.hidalgo@gmail.com" target="_blank">julio.martin.hidalgo@gmail.com</a>> wrote:<br>
> Hello, I'm trying to compile llvm-gcc to crosscompile mips. I have already<br>
> modified a config.gcc to add mips as a target with llvm, but it gives me<br>
> "Did not get a target machine!" (from llvm-backend.cpp).<br>
><br>
> I thought that I had to modify TargetMachOWriterInfo.h with MIPS info, but<br>
> now the problem is that I don't know where can I get the <mach/machine.h> (I<br>
> don't have it in /usr/include).<br>
><br>
> Any suggestions?<br>
<br>
</div></div>Are you using the llvm-gcc top-of-tree(TOT) ? the TOT contains mips crosscompile<br>
support, btw, you wont be able to pass through libgcc fp compile, which is what<br>
I'm working right now.<br>
What I suggest is that you begin the cross-compilation using llvm-gcc TOT, and<br>
when it breaks, use cc1 directly to emit llvm bytecode specific for mips. Then,<br>
use llc.<br>
If you have doubts, just ask :)<br>
<br>
--<br>
<font color="#888888">Bruno Cardoso Lopes<br>
<a href="http://www.brunocardoso.cc" target="_blank">http://www.brunocardoso.cc</a><br>
"When faced with untenable alternatives, you<br>
 should consider your imperative."<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</font></blockquote></div></div></div><br>
</blockquote></div><br>