Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp437083pxa; Fri, 21 Aug 2020 11:03:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGQ0vX2mMUNXbpEcOVC66+uooSQS+ZbpBa2HIUO7FJrS+S6Yzgkb6aakGENKdHtt+xCXok X-Received: by 2002:a17:907:385:: with SMTP id ss5mr3930477ejb.496.1598033014622; Fri, 21 Aug 2020 11:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598033014; cv=none; d=google.com; s=arc-20160816; b=j9+1AEhcOC+cBNps7lXJIwooU66JuDGDtX02J03Fh7eukYg8KF+1BUAy4T8rfESjOK 2AS3ujQMmnS/WeZFvqcOSyosC0DJcSZdMpmgebMTqVXvWUcpp/zuoyqzELMwV1XIC7F+ 5b/Dds7K4/KvzNcvu3iyNS2svkJT+nGl+L1u3G/laLA7SqVic6kqyeCjEHRTX7XUQNyP Z4PEO82lf3av/axXHHeI5UW7nWy14Raw+KAS11hdz+3zZfUCvAKDdRtBZKeiKzuOC6c8 Lj3k34ejGdxydJVMJh1CLFeu9Z2LpcQOjM4q9AumqP5HsBopP9h1SFR164+gBLR2EBux 7g+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=W5jlbfKRCl3JIOGz2Ss/o2Y7bPu9rBvFEngYmreq1Cw=; b=LZapgU+wP/STB0BZ4OZAVgE8FoM+vFjffg2lsQpFN6/u2Vk29Wepra+ziasYTTuDAc Xbx5BgY+v9JHeZ2zl4nDVoIFm18WxCoAaVVR9JveBjegr/H0OXj3sXyenAr21VCXqhGE /Imp5dAV14idUZxQTQ3SAJ8Eg+AoBfofv+7jjwjPBtXGcYpOQ4jMew4q7j4nmn0p8QrF HqBQaSxz9KUoG4B8o39M+eJaf9x1VBgBiBI0RlUV6nLl6SHJIjuBpnhXkUJdzPhzmXJO /KrHXLeU5hnXei3R1an85dFd8zX1OEJxl0x/JQnNp63xEjKhUdhYBSEOzoyE7jy1k9FU NHuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XdIrKLre; 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 e17si1638709ejx.211.2020.08.21.11.03.09; Fri, 21 Aug 2020 11:03:34 -0700 (PDT) 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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XdIrKLre; 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 S1726863AbgHUSC2 (ORCPT + 99 others); Fri, 21 Aug 2020 14:02:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgHUSC1 (ORCPT ); Fri, 21 Aug 2020 14:02:27 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A87B7C061573 for ; Fri, 21 Aug 2020 11:02:26 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id h19so2775595ljg.13 for ; Fri, 21 Aug 2020 11:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W5jlbfKRCl3JIOGz2Ss/o2Y7bPu9rBvFEngYmreq1Cw=; b=XdIrKLreG3mWA0Sd5hGpTYI4JB4BZR668IVI8Q/2P4m+46HsQmwrBjgqHESZb6n9zJ QHgdBE8kWpe39ioWRxyYwUfSIq+91IB9t13h/N7011Gb97HTKzOp+ui928AEOkIbRhXP QclUoQWTcwkjMCaHsF+xRHWLLfxntTzt9G7EI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W5jlbfKRCl3JIOGz2Ss/o2Y7bPu9rBvFEngYmreq1Cw=; b=P5J7L6gZ4m1pATgVkVPGDKr0NcX/a8uWtfN6Vy9eFnrcchk3e3Gl4Jccxq/SgEzsEV fPTZ5rBtHhcMJo3sEpXf8/zFNl1rIuW9lrN1wccW/H8xf7DDp8gTOzApSR1HWW82SXNH oid2dLmDjbZynhqCFzQ/EGqifYkYBczahChJUPDOS3QTKy03uxzmqmaNQq6Z7D44JvsO C6GYlxNxwKhru4cnND6D7nSt2i1AtT2mBu2ROEhBKPx0WIJdgRAOhpz2xSAIkSVN4fie aawONa9otk+jUXKjMiqBVEDgIEl6tsWe7thQCOfsbvcfAk2ygu0kJ2wfVTgZyaIr0p5L UsZA== X-Gm-Message-State: AOAM531UquTRp5pc62mbbACfRmYAg/M8tFqmPaAin65//rnaS7FC0Wx7 Z6BzLlDtkfRYCIigq5f6VB+1vBXMXy9Bww== X-Received: by 2002:a05:651c:1344:: with SMTP id j4mr2189172ljb.164.1598032945153; Fri, 21 Aug 2020 11:02:25 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id h6sm514142ljg.86.2020.08.21.11.02.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 11:02:24 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id w14so2809767ljj.4 for ; Fri, 21 Aug 2020 11:02:24 -0700 (PDT) X-Received: by 2002:a2e:545:: with SMTP id 66mr2226306ljf.285.1598032944089; Fri, 21 Aug 2020 11:02:24 -0700 (PDT) MIME-Version: 1.0 References: <76071c24-ec6f-7f7a-4172-082bd574d581@zytor.com> <20200818202407.GA3143683@rani.riverdale.lan> <20200818214146.GA3196105@rani.riverdale.lan> <20200820175617.GA604994@rani.riverdale.lan> <20200821172935.GA1411923@rani.riverdale.lan> In-Reply-To: From: Linus Torvalds Date: Fri, 21 Aug 2020 11:02:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches To: Arvind Sankar Cc: Rasmus Villemoes , Nick Desaulniers , =?UTF-8?B?RMOhdmlkIEJvbHZhbnNrw70=?= , Eli Friedman , "H. Peter Anvin" , Masahiro Yamada , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Michal Marek , Linux Kbuild mailing list , LKML , Kees Cook , Tony Luck , Dmitry Vyukov , Michael Ellerman , Joe Perches , Joel Fernandes , Daniel Axtens , Andy Shevchenko , Alexandru Ardelean , Yury Norov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Ard Biesheuvel , "Paul E . McKenney" , Daniel Kiper , Bruce Ashfield , Marco Elver , Vamshi K Sthambamkadi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 10:54 AM Linus Torvalds wrote: > > On Fri, Aug 21, 2020 at 10:29 AM Arvind Sankar wrote: > > > > This is why I'm saying clang's no-builtin-foo option is useful for > > embedded: it doesn't prevent the programmer using __builtin_foo(), it > > prevents the _compiler_ using __builtin_foo() on its own. > > And that's fine. But it's apparently not what gcc does. Oh, testing it seems to say that that is exactly what gcc does too. I must have misunderstood some comment in this thread to mean otherwise. Linus