From mboxrd@z Thu Jan 1 00:00:00 1970 From: ak@linux.intel.com (Andi Kleen) Date: Wed, 8 Nov 2017 16:02:22 -0800 Subject: [PATCH 13/15] arm64: fix mrs_s/msr_s macros for clang LTO In-Reply-To: <20171108092555.ta4mkqolunyw6mdr@yury-thinkpad> References: <20171103171203.107569-1-samitolvanen@google.com> <20171103171203.107569-18-samitolvanen@google.com> <20171108092555.ta4mkqolunyw6mdr@yury-thinkpad> Message-ID: <20171109000222.GC8522@tassilo.jf.intel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org > There's the series from Andi Kleen that enables LTO for Linux on x86: > https://lwn.net/Articles/512548/ > https://github.com/andikleen/linux-misc/tree/lto-411-1 > > It has solved many problems you also try to solve, and some patches > are looking very similar. > > At now we have different patchsets for gcc and clang, and it would be > better to have them together. One thing I'm worried is that you introduce > CONFIG_CLANG_LTO and use it for all cases, including that where more > generic CONFIG_LTO should be used. Yes would be good to merge the two. I've been looking at updating my old one. I don't cover any ARM code, but lots of generic code. My patches also worked on MIPS at least. There's also older patches to enable single-pass-linking for kallsyms, which is extremly useful for LTO build performance. -Andi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbdKIACY (ORCPT ); Wed, 8 Nov 2017 19:02:24 -0500 Received: from mga04.intel.com ([192.55.52.120]:50778 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbdKIACX (ORCPT ); Wed, 8 Nov 2017 19:02:23 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,365,1505804400"; d="scan'208";a="2730121" Date: Wed, 8 Nov 2017 16:02:22 -0800 From: Andi Kleen To: Yury Norov Cc: Sami Tolvanen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Greg Hackmann , Kees Cook , Matthias Kaehlcke , Nick Desaulniers , Maxim Kuvyrkov , Alex Matveev Subject: Re: [PATCH 13/15] arm64: fix mrs_s/msr_s macros for clang LTO Message-ID: <20171109000222.GC8522@tassilo.jf.intel.com> References: <20171103171203.107569-1-samitolvanen@google.com> <20171103171203.107569-18-samitolvanen@google.com> <20171108092555.ta4mkqolunyw6mdr@yury-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171108092555.ta4mkqolunyw6mdr@yury-thinkpad> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > There's the series from Andi Kleen that enables LTO for Linux on x86: > https://lwn.net/Articles/512548/ > https://github.com/andikleen/linux-misc/tree/lto-411-1 > > It has solved many problems you also try to solve, and some patches > are looking very similar. > > At now we have different patchsets for gcc and clang, and it would be > better to have them together. One thing I'm worried is that you introduce > CONFIG_CLANG_LTO and use it for all cases, including that where more > generic CONFIG_LTO should be used. Yes would be good to merge the two. I've been looking at updating my old one. I don't cover any ARM code, but lots of generic code. My patches also worked on MIPS at least. There's also older patches to enable single-pass-linking for kallsyms, which is extremly useful for LTO build performance. -Andi