[Bug lto/47916] Using -flto leads to halved performance of unrar unarchiver

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 27 22:31:00 GMT 2011


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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-27 21:03:31 UTC ---
(In reply to comment #3)
> My bad!
> 
> export LDFLAGS=-O2 -march=i686 -mtune=generic -flto
> 
> has solved the problem.

Yeah, I guess it will be one of the more common mistakes ;)

> However the performance gain from -flto is still negative (0.5%) :)

At the moment I would not expect much performance benefit from LTO
(basically it provides inter-module inlining).  What we see is
consistently smaller binaries with comparable performance though.



More information about the Gcc-bugs mailing list