Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp728736pxb; Tue, 2 Feb 2021 16:55:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJylqLedmuPtGXQHpF1Vn8zotjT6pOVKzSM2iTOnFwZO2HPA317m8gYfeaffQ9Gtj7rlVnoo X-Received: by 2002:aa7:da98:: with SMTP id q24mr662585eds.370.1612313714286; Tue, 02 Feb 2021 16:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313714; cv=none; d=google.com; s=arc-20160816; b=kE+yMnMTJoXzYXJgnJa9L+uHXNjfQc4w2/f+R8woIKIV9Dkl95oDfEcLxrUPPN+9sf EfjbqVujkIRLRuQqR5ekkd64gPqAAietXhmAvmyrjPhLp9Lul2O8ARiUF4zEDgFCJ401 imgwpeg1ElYdPlBE3a3lJO+XWXgIXgxQ9mrvyFm/RAbqUw1EOUIqTjM/5oZhnzEpDvIA Vsq7Qru5AI7FyQ5jWn5sGlxZ7J5BWmgfMRalBm2pJjTlSRLxOPVIKQoxljiJC1/+Ckv+ TELxa0Rlld2C41Z73fRUl73COaPA0T6X9xdLtzOCjTmeXf+Rr1rkg9Wc2uGbPK5/al40 NM0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/lTneJaVwBCgo+jeJ4H+QEcHrs/MmAjV0ZcNbv0pNjw=; b=WPaeMRqornNwPnhkVNBP8zbGzFJ88nqdVqlRtEI5kXr73j8WrFTZJyVO2UMtGjqDyB dJbYptsM0DlPAc+AwSsE1KRs9hv4GZFoRCbMwO7cEazQ/3edUNtUyAWHBUpun8rdOc85 oL4OlV67gQEscNVvJrQoRo8FUgJF7hQg9MJBqFsMvMLB8mfc/ahdSvL4e5DB6F4Dd1Y5 EJMcctq0/mBRgrNNlwzCXrRnqVwSqgeIZ7hDgxwJOnxJQ6jC37r957XOR+fBLTf+AUHv SXn0G10sdltwGOnUiPmjNHx7KmnYWX93O1owfOBI1kRf1B3o+2hG82hGWWDuvWxAZzrW cAbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si228632edw.152.2021.02.02.16.54.49; Tue, 02 Feb 2021 16:55:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232388AbhBBVmV (ORCPT + 99 others); Tue, 2 Feb 2021 16:42:21 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:49450 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbhBBVlo (ORCPT ); Tue, 2 Feb 2021 16:41:44 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 112Lf1C9029878; Tue, 2 Feb 2021 22:41:01 +0100 Date: Tue, 2 Feb 2021 22:41:01 +0100 From: Willy Tarreau To: Borislav Petkov Cc: Amy Parker , linux-kernel@vger.kernel.org, linux-gcc@vger.kernel.org, linux-kbuild@vger.kernel.org, Michael Matz Subject: Re: Alternative compilers to GCC/Clang Message-ID: <20210202214101.GA29871@1wt.eu> References: <20210202053307.GB28542@1wt.eu> <20210202201920.GA18106@zn.tnic> <20210202210039.GB29751@1wt.eu> <20210202212048.GG18075@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202212048.GG18075@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 10:20:48PM +0100, Borislav Petkov wrote: > It would be good to start forward-porting and integrating some of the > fixes and even extend tcc to handle some of the gnuisms we're using in > the kernel so that we can build the kernel with it too. I agree. And the team is responsive and shows great consideration for patches. > I can imagine having CONFIG_TCC - as long as that doesn't get too > intrusive and get in the way of things - and those who wanna build the > kernel with it, can enable it. For example... I like this idea. It's way better than having to implement everything at once or degrade some code just to make it build. It could be solved at config time by automatically excluding some features. It should also be less of a hassle than dealing with many gcc versions because if we see it as a development speed up tool we can easily accept that we occasionaly break compatibility with older of its versions and that those who want to use it just rebuild the latest one (it's trivial and fast, basically "make" and you're done, not the typical toolchain experience). You don't care if it doesn't work for one week, you're not supposed to ship any form of official code built with it anyway. It's just an aid, and a nice one. Willy