[LLVMdev] llvm-gcc-4.2 and -O4

Chris Lattner
Sat, 29 Dec 2007 19:06:42 -0000

On Dec 29, 2007, at 9:11 AM, Owen Anderson wrote:

> Using -O4 requires support from the system linker, because the files
> written out are LLVM bitcode files rather than object files.

Owen is right.  A future release of the darwin linker will support
this.  In the meantime, you may be able to get things working if you
link with llvm-ld instead of gcc or llvm-gcc.

-Chris