From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18288 invoked by alias); 27 Feb 2011 21:06:11 -0000 Received: (qmail 18280 invoked by uid 22791); 27 Feb 2011 21:06:11 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Feb 2011 21:06:07 +0000 From: "t.artem at mailcity dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/47916] Using -flto leads to halved performance of unrar unarchiver X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: lto, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: t.artem at mailcity dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Sun, 27 Feb 2011 22:47:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg03038.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D47916 --- Comment #5 from Artem S. Tashkinov 2011-0= 2-27 21:06:04 UTC --- Thanks for the explanation! I'm not sure if it's worth opening a new bug report, but GCC crashes when I= try to use -fprofile-generate/-fprofile-use together with -flto: g++ -o unrar -O3 -march=3Dcore2 -fomit-frame-pointer -fprofile-use -flto ra= r.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o filefn.o filcreat.o archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o filestr.o recvol.o rs.o scantree.o In file included from :43:0: unpack.cpp: In member function =E2=80=98Unpack29=E2=80=99: unpack.cpp:202:6: internal compiler error: in duplicate_loop_to_header_edge= , at cfgloopmanip.c:1115 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. At first I built unrar using: CXXFLAGS=3DLDFLAGS=3D-O3 -march=3Dcore2 -fomit-frame-pointer -fprofile-gene= rate -flto=20 then I made a testrun of unrar, then erased object files, then tried to com= pile it again using: CXXFLAGS=3DLDFLAGS=3D-O3 -march=3Dcore2 -fomit-frame-pointer -fprofile-use = -flto