From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Sbw8B-00087G-0y for garchives@archives.gentoo.org; Tue, 05 Jun 2012 15:57:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40AADE071D; Tue, 5 Jun 2012 15:57:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EFA96E06D9 for ; Tue, 5 Jun 2012 15:55:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 847A11B4022 for ; Tue, 5 Jun 2012 15:55:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.312 X-Spam-Level: X-Spam-Status: No, score=-1.312 tagged_above=-999 required=5.5 tests=[AWL=-0.303, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, FSL_RCVD_USER=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id alYuuSw6ZXry for ; Tue, 5 Jun 2012 15:55:34 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A19F1B4025 for ; Tue, 5 Jun 2012 15:55:33 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sbw6S-0003o0-W7 for gentoo-user@gentoo.org; Tue, 05 Jun 2012 17:55:28 +0200 Received: from athedsl-233726.home.otenet.gr ([85.74.232.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jun 2012 17:55:28 +0200 Received: from realnc by athedsl-233726.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jun 2012 17:55:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: GCC 4.7 and LTO: it works Date: Tue, 05 Jun 2012 18:54:34 +0300 Organization: Lucas Barks Message-ID: References: <4FCE1781.1020605@xunil.at> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-233726.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120603 Thunderbird/12.0.1 In-Reply-To: <4FCE1781.1020605@xunil.at> X-Archives-Salt: c75c1bef-47eb-4c8e-87dc-1057e53bd94a X-Archives-Hash: 46baf2374a58790c4c863bcebfe2bdf3 On 05/06/12 17:28, Stefan G. Weichinger wrote: > Am 04.06.2012 22:19, schrieb Nikos Chantziaras: >> I've emerged system and world with gcc-4.7.0 and LTO. I'm posting from >> it right now :-) It's a KDE system with 1043 packages installed. >> >> I've posted details on how to do this (including info on how to disable >> LTO for specific packages that don't work with it) here: >> >> http://realnc.blogspot.com/2012/06/building-gentoo-linux-with-gcc-47-and.html > > Gave it a try out of curiosity ... got @system emerged OK now ... > > Did you also apply it to compiling the kernel? > Worth it? Kernel builds and runs fine with 4.7. But I didn't try to use LTO on it. I actually never try to force any custom CFLAGS on the kernel build. I trust upstream to pick safe and fast ones.