clang++ 3.3 issue (excessively slow compile vs. gcc 4.6 in just one file of a port)
Dimitry Andric
dim at FreeBSD.org
Tue Nov 19 10:28:20 UTC 2013
On 19 Nov 2013, at 09:10, Matthias Andree <mandree at FreeBSD.org> wrote:
> Am 19.11.2013 08:49, schrieb Dimitry Andric:
...
>> Ok, this looks like http://llvm.org/PR16474 , which has a relatively
>> simple fix. I have attached it, can you please try it out? You can
>> just apply the patch to /usr/src and do:
>>
>> make -C /usr/src/lib/clang
>> make -C /usr/src/usr.bin/clang/clang
>> sudo make -C /usr/src/usr.bin/clang/clang install
>>
>> It should basically recompile just one file, and re-link the clang
>> executable. I tried building ipsharpen.ii at -O3, and it uses about
>> 20 seconds now (on my relatively slow VM).
>
> Dimitry,
>
> thanks.
>
> The patch speeds up the compile by one and a half orders of magnitude,
> and we're down to 30 s for my VM and compiling the .ii file.
>
> The .cc now compiles in 22 s, rather than 500 s.
>
> Excellent, problem solved!
>
> Can we commit this (what the LLVM PR calls "regression") fix so it
> becomes part of 10.0-RELEASE?
I will commit it to head tonight, and after the normal MFC period of 3
days I will ask re@ to approve merging it to stable/10.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20131119/686788bd/attachment.sig>
More information about the freebsd-toolchain
mailing list