[Mingw-w64-public] Linker plugin problem

2014-05-01 Thread TOCK Chiu
Hi, The linker plugin with LTO seems not working. When I link a static library which only contains LTO-enabled slim objects, the flag -fuse-linker-plugin doesn't work. The linker always tell me some symbols are undefined. Is it a bug? What I use is: x86_64-4.9.0-release-win32-sjlj-rt_v3-rev1 Th

Re: [Mingw-w64-public] Do I need -flto when building a static lib?

2014-04-26 Thread TOCK Chiu
Then you must experience the same thing as I did. 2014-04-26 21:24 GMT+08:00 lh_mouse : > Yes gcc 4.9.0. > Thread model: win32 > gcc version 4.9.0 (i686-win32-sjlj-rev0, Built by MinGW-W64 project) > > 2014-04-26 > -- > Best regards, > lh_mouse > -

Re: [Mingw-w64-public] Do I need -flto when building a static lib?

2014-04-26 Thread TOCK Chiu
Are you using GCC 4.9.0? Since GCC 4.9.0, LTO-enabled object file doesn't contain normal object code but GIMPLE bytecode by default. If you want to link to a static library, you have to pass -fuse-linker-plugin to let it extract LTO segments, and AFAIK it's enabled by default when -flto is passed.

Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-15 Thread TOCK Chiu
2014/1/16 Alexey Pavlov > Long time ago we add possibility to build Clang into mingw-builds scripts. > Now we want to provide Clang builds for mingw-w64 toolchains. > > There are two possibilities that we can do: > *1. *Include clang builds into toolchain archive > *2.* Provide separate builds of

Re: [Mingw-w64-public] Compilation of wxwidgets-3 with tdm-gcc-w64 4.8.1

2013-12-13 Thread TOCK Chiu
Hi, Some .o files are generated by windres, so you have to add "--target=pe-i386" to windres arguments in makefile.gcc. 2013/12/13 Marco N > > Dear subscribers, > > I admit that I am not an expert in using gcc/ld and especially their > flags. Anyway I used them from time time and I know how

Re: [Mingw-w64-public] Announcement: mingw-builds and mingw-w64 are joining forces

2013-09-24 Thread TOCK Chiu
I often get lots of internal compilation error with LTO, too. What make things more weird is that sometimes add LTO related options like -flto-partition=none can remove the problem and sometimes it can not. Thanks! 2013/9/24 Alexey Pavlov > 2013/9/24 TOCK Chiu : > > Hi, > > >

Re: [Mingw-w64-public] Announcement: mingw-builds and mingw-w64 are joining forces

2013-09-24 Thread TOCK Chiu
Hi, Is it possible that only build the runtimes like libstdc++, libgcc_s_sjlj-1 with LTO enabled? Someone static link it with LTO can benefit form it. Thanks! 2013/9/24 xunxun > 于 2013/9/24 星期二 22:21, Alexey Pavlov 写道: > > 2013/9/24 xunxun : > >> 于 2013/9/24 星期二 20:41, niXman 写道: > >>> 2013/9

Re: [Mingw-w64-public] -sjlj vs. -seh

2013-09-19 Thread TOCK Chiu
They're the methods to handle exceptions. "Set Jump Long Jump" and "Structured Exception Handling". 2013/9/19 Incongruous > I would assume that Win32 and posix refers to the threading technology > used, but what does the part after the hyphen mean? > > TIA > > > --

Re: [Mingw-w64-public] MSYS2

2013-09-09 Thread TOCK Chiu
What's the difference between msys2_shell.bat and mingw_shell.bat? Thanks a lot! 2013/9/9 Alexey Pavlov > New MSYS2 snapshots: > > 32-bit: > x32-msys2-beta2-20130909.tar.xz > > 64-bi

Re: [Mingw-w64-public] alias in Windows

2013-08-20 Thread TOCK Chiu
You may specify the include folder by pass -I parameter to GCC. I think this is a better solution because it won't mess the environment variables up. For example pass -I"C:\Users\Arbol One\Documents\dev\C++\Applications\development\intence\ruch\Donald Duck\BatGirl\FidelCastro\Bush_Baboon\Speaker\no

[Mingw-w64-public] A problem about LTO in Ruben's builds

2013-07-23 Thread TOCK Chiu
Hi, There is a problem in Ruben's builds "x86_64-w64-mingw32-gcc-4.8.0-win64_rubenvb.7z" and "x86_64-w64-mingw32-gcc-4.8.0-linux64_rubenvb.tar.xz". The simple code snippet below with argument "-static -O2 -flto" can reproduce the problem: #include int main(){ std::cout << "Foo = " << 101 << std::e

[Mingw-w64-public] A problem about LTO

2013-07-20 Thread TOCK Chiu
Hi, There is a problem in Ruben's builds "x86_64-w64-mingw32-gcc-4.8.0-win64_rubenvb.7z" and "x86_64-w64-mingw32-gcc-4.8.0-linux64_rubenvb.tar.xz". The simple code snippet below with argument "-static -O2 -flto" can reproduce the problem: #include int main(){ std::cout << "Foo = " << 101 << std::e