[Bug middle-end/28967] ld 4.1.1 runs EXTREMLY slow compared to 4.0

andy314 at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 15 18:13:00 GMT 2006

------- Comment #3 from andy314 at gmail dot com  2006-09-15 18:13 -------
I am also experiencing extreamly slow link times with GCC 4.1 (shipping with
Suse 10.1) as opposed to link times I got with previous versions. The
application uses a lot of templates/STL and the final complied binary is 340MB
unstripped, 13MB stripped. ld takes 100% CPU for 9 minutes when linking this
binary (with gcc 3.2 and ld on a Red-Hat linux, it takes 20 sec).

Version information:

>> gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,java,ada --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp --disable-libssp
--enable-java-awt=gtk --enable-gtk-cairo --disable-libjava-multilib
--with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --without-system-libunwind --with-cpu=generic
Thread model: posix
gcc version 4.1.0 (SUSE Linux)

>> ld --version
GNU ld version 20051219 (SUSE Linux)
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.



More information about the Gcc-bugs mailing list