[Bug c++/43601] Enormous increase in DLL object files size in 4.5

dongsheng.song at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 6 06:35:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601

Dongsheng Song <dongsheng.song at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dongsheng.song at gmail dot
                   |                            |com

--- Comment #55 from Dongsheng Song <dongsheng.song at gmail dot com> 2011-04-06 06:35:11 UTC ---
(In reply to comment #54)
> (In reply to comment #53)
> > If I don't use LTO Optimization, Vadim Zeitlin's patch works well.
> > But if I use LTO Optimization, the compiling speed becomes vey slow, and the
> > linker stage fails. I will get the information: 
> > 
> > lto1.exe: out of memory allocating 1900552 bytes
> > lto-wrapper: g++ returned 1 exit status
> > ld.exe: lto-wrapper failed
> > collect2: ld returned 1 exit status
> > 
> > mingw32-make: *** [wxmsw28u_gcc.dll] Error 1
> 
> BTW, I use gcc 4.6.

me too.

If I use 32bit compiler on windows/Linux, target 32bit windows,
single huge monolithic library build with or without LTO will out of memory, 
multiple libraries build failed with LTO, OK for without LTO.



More information about the Gcc-bugs mailing list