mcostalba/Stockfish — comment on commit c4fc82c6b794c832bc9a4fc406cb4773d12c620b
File:  line 0
By mcostalba:

Hi Peterpan,

thanks for point me to the link and I will test the utilities that
you suggest.

The problem with -flto and mingw is discussed here:

http://sourceware.org/bugzilla/show_bug.cgi?id=12762

And seems it is due to:

"The problem, I think is that gcc's LTO framework is trying to use the comdat
feature to handle duplicate symbols, but this is not really supported by COFF
based targets."

I have downloaded mingw directly from mingw official site, I guess I
could workaround the issue in case I use the link you point to, but
because SF is used by many people I doubt that requiring the user to
install a "special" mingw distribution would be an acceptable
solution.

mingw developers are working on it, it seems, so I'd prefer wait for
this bug to be fixed upstream and then I'll check the mingw minimum
supported version number (as I do now with gcc) to enable lto.

Marco

On Sat, Nov 12, 2011 at 12:58, Peterpan-Tinkerbell

wrote:
> hi Marco
>
> I am Peterpan.
> I am trying to type now for the third time here as i don't know how to send this comments on github,bit new to it.
> Mingw does work with link time optimization for quite some time now already. (-flto)
> Try this great site for good mingw builts that work well for me
> http://www.xvidvideo.ru/component/docman/cat_view/28-cross-mingwgcc-x86x64.html
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/mcostalba/Stockfish/commit/c4fc82c6b794c832bc9a4fc406cb4773d12c620b#commitcomment-712912
>