[cfe-dev] LTO on FreeBSD

Clark Gaebel cg.wowus.cg at gmail.com
Tue Jun 29 15:23:09 PDT 2010


Just theoretically, would it be relatively easy to make the driver do
it? It sure would make -O4 a lot more enticing.

On 06/29/10 18:14, David Chisnall wrote:
> On 29 Jun 2010, at 23:05, SKL wrote:
>
>   
>> What is the OS X version finding and using that the FreeBSD version isn't? I see mention on the llvm site of compiling and using the ld gold plugins, but that appears to be more for llvm-gcc than clang.
>>     
>
> Exactly that.  The FreeBSD linker does not support LTO.  Gold is GPLv3, so is unlikely to ever make it into the FreeBSD base system.  If you want to use LTO on FreeBSD, then you have to do it manually, via llvm-link + opt + llc.  So far, no one has been sufficiently motivated to make the clang driver able to do this itself.
>
> David
>
> --
> This email complies with ISO 3103
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>   

-- 
Regards,
-Clark




More information about the cfe-dev mailing list